PageSourceSearch

https://www.ibc.ca/_next/static/chunks/pages/_app-60b81efdc481537a.js

js ibc.ca collected 2026-10-02 02:23:03 UTC 1,018,773 bytes, 28 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{249:e=>{"use strict";e.exports=function e(t){if("number"==typeof t)return t;if("string"==typeof t)return parseFloat(t);if(Array.isArray(t))return t.map(e);throw Error("The value should be a number, a parsable string or an array of those.")}},415:e=>{"use strict";e.exports=function(e,t){if(null===e)return{};var n,r,i={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}},789:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,l=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,o=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,x=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case l:case o:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case h:case g:case m:case s:return e;default:return t}}case i:return t}}}function j(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=s,t.Element=r,t.ForwardRef=h,t.Fragment=l,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=o,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return j(e)||w(e)===u},t.isConcurrentMode=j,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===h},t.isFragment=function(e){return w(e)===l},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===o},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===l||e===d||e===o||e===a||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===h||e.$$typeof===y||e.$$typeof===x||e.$$typeof===b||e.$$typeof===v)},t.typeOf=w},885:(e,t,n)=>{"use strict";var r=n(6957);e.exports=function(e,t){var n=(t||[]).map(function(e){return e.split(":")});return e.reduce(function(e,t){var i=t.split(":"),l=r(n,function(e){return e[0]===i[0]});return i.length>1||!l?(e[0].push(i[0]),e[1].push(i[1])):(e[0].push(l[0]),e[1].push(l[1])),e},[[],[]])}},891:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(7876);let i=e=>{let{className:t}=e;return(0,r.jsx)("svg",{className:"".concat(null!=t?t:"w-3 h-5"," flex-shrink-0"),viewBox:"0 0 12 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M2.22416 0L0.109161 2.115L6.97916 9L0.109161 15.885L2.22416 18L11.2242 9L2.22416 0Z",fill:"currentColor"})})}},915:(e,t,n)=>{"use strict";var r=n(4290),i=n(4512);e.exports={formats:n(1151),parse:i,stringify:r}},1010:e=>{"use strict";e.exports=function(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}},1026:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return i}});let r=n(4232);function i(e,t){let n=(0,r.useRef)(null),i=(0,r.useRef)(null);return(0,r.useCallback)(r=>{if(null===r){let e=n.current;e&&(n.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(n.current=l(e,r)),t&&(i.current=l(t,r))},[e,t])}function l(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let n=e(t);return"function"==typeof n?n:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1151:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,r={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:r.RFC3986,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r.RFC1738,RFC3986:r.RFC3986}},1259:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(7876);let i=e=>{let{children:t,className:n="",as:i,mobile:l=!0,tablet:a=!0,desktop:o=!0}=e,s=Array.from(new Set([...(l?"max-w-screen-xl px-6":"").split(" "),...(a?"md:max-w-screen-xl md:px-6":"").split(" "),...(o?"md:max-w-screen-xl xl:px-12 2xl:px-0":"").split(" "),"max-w-screen-xl","w-full","mx-auto",...null==n?void 0:n.split(" ")])).join(" ");return(0,r.jsx)(null!=i?i:"div",{className:s.trim(),children:t})}},1639:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return j},useLinkStatus:function(){return w}});let r=n(8365),i=n(7876),l=r._(n(4232)),a=n(6658),o=n(1851),s=n(6225),c=n(8407),u=n(2696),d=n(8265),h=n(2343),p=n(8940),f=n(7469),m=n(1026);n(3724);let g=new Set;function v(e,t,n,r){if((0,o.isLocalURL)(t)){if(!r.bypassPrefetchedCheck){let i=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(g.has(i))return;g.add(i)}e.prefetch(t,n,r).catch(e=>{})}}function y(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}let x=l.default.forwardRef(function(e,t){let n,r,{href:s,as:g,children:x,prefetch:b=null,passHref:w,replace:j,shallow:S,scroll:k,locale:_,onClick:C,onNavigate:N,onMouseEnter:E,onTouchStart:P,legacyBehavior:T=!1,...O}=e;n=x,T&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let R=l.default.useContext(d.RouterContext),L=!1!==b,{href:I,as:A}=l.default.useMemo(()=>{if(!R){let e=y(s);return{href:e,as:g?y(g):e}}let[e,t]=(0,a.resolveHref)(R,s,!0);return{href:e,as:g?(0,a.resolveHref)(R,g):t||e}},[R,s,g]),M=l.default.useRef(I),F=l.default.useRef(A);T&&(r=l.default.Children.only(n));let D=T?r&&"object"==typeof r&&r.ref:t,[H,B,$]=(0,h.useIntersection)({rootMargin:"200px"}),z=l.default.useCallback(e=>{(F.current!==A||M.current!==I)&&($(),F.current=A,M.current=I),H(e)},[A,I,$,H]),V=(0,m.useMergedRef)(z,D);l.default.useEffect(()=>{R&&B&&L&&v(R,I,A,{locale:_})},[A,I,B,_,L,null==R?void 0:R.locale,R]);let W={ref:V,onClick(e){T||"function"!=typeof C||C(e),T&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),R&&(e.defaultPrevented||function(e,t,n,r,i,l,a,s,c){let{nodeName:u}=e.currentTarget;if(!("A"===u.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||e.currentTarget.hasAttribute("download"))){if(!(0,o.isLocalURL)(n)){i&&(e.preventDefault(),location.replace(n));return}e.preventDefault(),(()=>{if(c){let e=!1;if(c({preventDefault:()=>{e=!0}}),e)return}let e=null==a||a;"beforePopState"in t?t[i?"replace":"push"](n,r,{shallow:l,locale:s,scroll:e}):t[i?"replace":"push"](r||n,{scroll:e})})()}}(e,R,I,A,j,S,k,_,N))},onMouseEnter(e){T||"function"!=typeof E||E(e),T&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),R&&v(R,I,A,{locale:_,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:function(e){T||"function"!=typeof P||P(e),T&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),R&&v(R,I,A,{locale:_,priority:!0,bypassPrefetchedCheck:!0})}};if((0,c.isAbsoluteUrl)(A))W.href=A;else if(!T||w||"a"===r.type&&!("href"in r.props)){let e=void 0!==_?_:null==R?void 0:R.locale;W.href=(null==R?void 0:R.isLocaleDomain)&&(0,p.getDomainLocale)(A,e,null==R?void 0:R.locales,null==R?void 0:R.domainLocales)||(0,f.addBasePath)((0,u.addLocale)(A,e,null==R?void 0:R.defaultLocale))}return T?l.default.cloneElement(r,W):(0,i.jsx)("a",{...O,...W,children:n})}),b=(0,l.createContext)({pending:!1}),w=()=>(0,l.useContext)(b),j=x;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1701:(e,t,n)=>{"use strict";var r=n(4247),i=n(8561),l=n(8539),a=n(5983),o=n(4005);function s(e,t,n,i){return new r(e,t,n,i)}s.version=n(1800),s.AlgoliaSearchHelper=r,s.SearchParameters=a,s.RecommendParameters=i,s.SearchResults=o,s.RecommendResults=l,e.exports=s},1800:e=>{"use strict";e.exports="3.25.0"},1941:(e,t,n)=>{"use strict";n.d(t,{Dp:()=>z,YB:()=>k,_8:()=>Q,K1:()=>_,YV:()=>Z,kY:()=>X});var r=n(4232);let i=!1,l=[],a=e=>new Promise((t,n)=>{if(typeof window>"u"||(window.storyblokRegisterEvent=e=>{if(window.location===window.parent.location)return void console.warn("You are not in Draft Mode or in the Visual Editor.");i?e():l.push(e)},document.getElementById("storyblok-javascript-bridge")))return;let r=document.createElement("script");r.async=!0,r.src=e,r.id="storyblok-javascript-bridge",r.onerror=e=>n(e),r.onload=e=>{l.forEach(e=>e()),i=!0,t(e)},document.getElementsByTagName("head")[0].appendChild(r)});var o=Object.defineProperty,s=(e,t,n)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,c=(e,t,n)=>s(e,"symbol"!=typeof t?t+"":t,n);class u extends Error{constructor(e){super(e),this.name="AbortError"}}class d{constructor(){c(this,"isCDNUrl",(e="")=>e.includes("/cdn/")),c(this,"getOptionsPage",(e,t=25,n=1)=>({...e,per_page:t,page:n})),c(this,"delay",e=>new Promise(t=>setTimeout(t,e))),c(this,"arrayFrom",(e=0,t)=>Array.from({length:e},t)),c(this,"range",(e=0,t=e)=>{let n=Math.abs(t-e)||0,r=e<t?1:-1;return this.arrayFrom(n,(t,n)=>n*r+e)}),c(this,"asyncMap",async(e,t)=>Promise.all(e.map(t))),c(this,"flatMap",(e=[],t)=>e.map(t).reduce((e,t)=>[...e,...t],[])),c(this,"escapeHTML",function(e){let t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},n=/[&<>"']/g,r=new RegExp(n.source);return e&&r.test(e)?e.replace(n,e=>t[e]):e})}stringify(e,t,n){let r=[];for(let i in e){let l;if(!Object.prototype.hasOwnProperty.call(e,i))continue;let a=e[i];if(null==a)continue;let o=n?"":encodeURIComponent(i);l="object"==typeof a?this.stringify(a,t?t+encodeURIComponent(`[${o}]`):o,Array.isArray(a)):`${t?t+encodeURIComponent(`[${o}]`):o}=${encodeURIComponent(a)}`,r.push(l)}return r.join("&")}getRegionURL(e){switch(e){case"us":return"api-us.storyblok.com";case"cn":return"app.storyblokchina.cn";case"ap":return"api-ap.storyblok.com";case"ca":return"api-ca.storyblok.com";default:return"api.storyblok.com"}}}let h=function(e,t){let n={};for(let r in e){let i=e[r];t.includes(r)&&null!==i&&(n[r]=i)}return n},p=e=>"email"===e,f={nodes:{horizontal_rule:()=>({singleTag:"hr"}),blockquote:()=>({tag:"blockquote"}),bullet_list:()=>({tag:"ul"}),code_block:e=>({tag:["pre",{tag:"code",attrs:e.attrs}]}),hard_break:()=>({singleTag:"br"}),heading:e=>({tag:`h${e.attrs.level}`}),image:e=>({singleTag:[{tag:"img",attrs:h(e.attrs,["src","alt","title"])}]}),list_item:()=>({tag:"li"}),ordered_list:()=>({tag:"ol"}),paragraph:()=>({tag:"p"}),emoji:e=>({tag:[{tag:"span",attrs:{"data-type":"emoji","data-name":e.attrs.name,emoji:e.attrs.emoji}}]})},marks:{bold:()=>({tag:"b"}),strike:()=>({tag:"s"}),underline:()=>({tag:"u"}),strong:()=>({tag:"strong"}),code:()=>({tag:"code"}),italic:()=>({tag:"i"}),link:e=>{if(!e.attrs)return{tag:""};let t=new d().escapeHTML,n={...e.attrs},{linktype:r="url"}=e.attrs;if(delete n.linktype,n.href&&(n.href=t(e.attrs.href||"")),p(r)&&(n.href=`mailto:${n.href}`),n.anchor&&(n.href=`${n.href}#${n.anchor}`,delete n.anchor),n.custom){for(let e in n.custom)n[e]=n.custom[e];delete n.custom}return{tag:[{tag:"a",attrs:n}]}},styled:e=>({tag:[{tag:"span",attrs:e.attrs}]}),subscript:()=>({tag:"sub"}),superscript:()=>({tag:"sup"}),anchor:e=>({tag:[{tag:"span",attrs:e.attrs}]}),highlight:e=>{var t;return null!=(t=e.attrs)&&t.color?{tag:[{tag:"span",attrs:{style:`background-color:${e.attrs.color};`}}]}:{tag:""}},textStyle:e=>{var t;return null!=(t=e.attrs)&&t.color?{tag:[{tag:"span",attrs:{style:`color:${e.attrs.color}`}}]}:{tag:""}}}},m=function(e){let t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},n=/[&<>"']/g,r=new RegExp(n.source);return e&&r.test(e)?e.replace(n,e=>t[e]):e},g=!1;class v{constructor(e){c(this,"marks"),c(this,"nodes"),e||(e=f),this.marks=e.marks||[],this.nodes=e.nodes||[]}addNode(e,t){this.nodes[e]=t}addMark(e,t){this.marks[e]=t}render(e,t={optimizeImages:!1},n=!0){if(!g&&n&&(console.warn("Warning ⚠️: The RichTextResolver class is deprecated and will be removed in the next major release. Please use the `@storyblok/richtext` package instead. https://github.com/storyblok/richtext/"),g=!0),e&&e.content&&Array.isArray(e.content)){let n="";
1return e.content.forEach(e=>{n+=this.renderNode(e)}),t.optimizeImages?this.optimizeImages(n,t.optimizeImages):n}return console.warn(`The render method must receive an Object with a "content" field.
2      The "content" field must be an array of nodes as the type ISbRichtext.
3      ISbRichtext:
4        content?: ISbRichtext[]
5        marks?: ISbRichtext[]
6        attrs?: any
7        text?: string
8        type: string
9        
10        Example:
11        {
12          content: [
13            {
14              content: [
15                {
16                  text: 'Hello World',
17                  type: 'text'
18                }
19              ],
20              type: 'paragraph'
21            }
22          ],
23          type: 'doc'
24        }`),""}optimizeImages(e,t){let n=0,r=0,i="",l="";"boolean"!=typeof t&&("number"==typeof t.width&&t.width>0&&(i+=`width="${t.width}" `,n=t.width),"number"==typeof t.height&&t.height>0&&(i+=`height="${t.height}" `,r=t.height),("lazy"===t.loading||"eager"===t.loading)&&(i+=`loading="${t.loading}" `),"string"==typeof t.class&&t.class.length>0&&(i+=`class="${t.class}" `),t.filters&&("number"==typeof t.filters.blur&&t.filters.blur>=0&&t.filters.blur<=100&&(l+=`:blur(${t.filters.blur})`),"number"==typeof t.filters.brightness&&t.filters.brightness>=-100&&t.filters.brightness<=100&&(l+=`:brightness(${t.filters.brightness})`),t.filters.fill&&(t.filters.fill.match(/[0-9A-F]{6}/gi)||"transparent"===t.filters.fill)&&(l+=`:fill(${t.filters.fill})`),t.filters.format&&["webp","png","jpeg"].includes(t.filters.format)&&(l+=`:format(${t.filters.format})`),"boolean"==typeof t.filters.grayscale&&t.filters.grayscale&&(l+=":grayscale()"),"number"==typeof t.filters.quality&&t.filters.quality>=0&&t.filters.quality<=100&&(l+=`:quality(${t.filters.quality})`),t.filters.rotate&&[90,180,270].includes(t.filters.rotate)&&(l+=`:rotate(${t.filters.rotate})`),l.length>0&&(l=`/filters${l}`))),i.length>0&&(e=e.replace(/<img/g,`<img ${i.trim()}`));let a=n>0||r>0||l.length>0?`${n}x${r}${l}`:"";return e=e.replace(/a.storyblok.com\/f\/(\d+)\/([^.]+)\.(gif|jpg|jpeg|png|tif|bmp)/g,`a.storyblok.com/f/$1/$2.$3/m/${a}`),"boolean"!=typeof t&&(t.sizes||t.srcset)&&(e=e.replace(/<img.*?src=["|'](.*?)["|']/g,e=>{var n,r;let i=e.match(/a.storyblok.com\/f\/(\d+)\/([^.]+)\.(gif|jpg|jpeg|png|tif|bmp)/g);if(i&&i.length>0){let a={srcset:null==(n=t.srcset)?void 0:n.map(e=>{if("number"==typeof e)return`//${i}/m/${e}x0${l} ${e}w`;if("object"==typeof e&&2===e.length){let t=0,n=0;return"number"==typeof e[0]&&(t=e[0]),"number"==typeof e[1]&&(n=e[1]),`//${i}/m/${t}x${n}${l} ${t}w`}return""}).join(", "),sizes:null==(r=t.sizes)?void 0:r.map(e=>e).join(", ")},o="";return a.srcset&&(o+=`srcset="${a.srcset}" `),a.sizes&&(o+=`sizes="${a.sizes}" `),e.replace(/<img/g,`<img ${o.trim()}`)}return e})),e}renderNode(e){let t=[];e.marks&&e.marks.forEach(e=>{let n=this.getMatchingMark(e);n&&""!==n.tag&&t.push(this.renderOpeningTag(n.tag))});let n=this.getMatchingNode(e);return n&&n.tag&&t.push(this.renderOpeningTag(n.tag)),e.content?e.content.forEach(e=>{t.push(this.renderNode(e))}):e.text?t.push(m(e.text)):n&&n.singleTag?t.push(this.renderTag(n.singleTag," /")):n&&n.html?t.push(n.html):"emoji"===e.type&&t.push(this.renderEmoji(e)),n&&n.tag&&t.push(this.renderClosingTag(n.tag)),e.marks&&e.marks.slice(0).reverse().forEach(e=>{let n=this.getMatchingMark(e);n&&""!==n.tag&&t.push(this.renderClosingTag(n.tag))}),t.join("")}renderTag(e,t){return e.constructor===String?`<${e}${t}>`:e.map(e=>{if(e.constructor===String)return`<${e}${t}>`;{let n=`<${e.tag}`;if(e.attrs){for(let t in e.attrs)if(Object.prototype.hasOwnProperty.call(e.attrs,t)){let r=e.attrs[t];null!==r&&(n+=` ${t}="${r}"`)}}return`${n}${t}>`}}).join("")}renderOpeningTag(e){return this.renderTag(e,"")}renderClosingTag(e){return e.constructor===String?`</${e}>`:e.slice(0).reverse().map(e=>e.constructor===String?`</${e}>`:`</${e.tag}>`).join("")}getMatchingNode(e){let t=this.nodes[e.type];if("function"==typeof t)return t(e)}getMatchingMark(e){let t=this.marks[e.type];if("function"==typeof t)return t(e)}renderEmoji(e){if(e.attrs.emoji)return e.attrs.emoji;let t=[{tag:"img",attrs:{src:e.attrs.fallbackImage,draggable:"false",loading:"lazy",align:"absmiddle"}}];return this.renderTag(t," /")}}class y{constructor(e){c(this,"baseURL"),c(this,"timeout"),c(this,"headers"),c(this,"responseInterceptor"),c(this,"fetch"),c(this,"ejectInterceptor"),c(this,"url"),c(this,"parameters"),c(this,"fetchOptions"),this.baseURL=e.baseURL,this.headers=e.headers||new Headers,this.timeout=null!=e&&e.timeout?1e3*e.timeout:0,this.responseInterceptor=e.responseInterceptor,this.fetch=(...t)=>e.fetch?e.fetch(...t):fetch(...t),this.ejectInterceptor=!1,this.url="",this.parameters={},this.fetchOptions={}}get(e,t){return this.url=e,this.parameters=t,this._methodHandler("get")}post(e,t){return this.url=e,this.parameters=t,this._methodHandler("post")}put(e,t){return this.url=e,this.parameters=t,this._methodHandler("put")}delete(e,t){return this.url=e,this.parameters=t??{},this._methodHandler("delete")}async _responseHandler(e){let t=[],n={data:{},headers:{},status:0,statusText:""};for(let r of(204!==e.status&&await e.json().then(e=>{n.data=e}),e.headers.entries()))t[r[0]]=r[1];return n.headers={...t},n.status=e.status,n.statusText=e.statusText,n}async _methodHandler(e){let t,n=`${this.baseURL}
24${this.url}`,r=null;if("get"===e){let e=new d;n=`${this.baseURL}${this.url}?${e.stringify(this.parameters)}`}else r=JSON.stringify(this.parameters);let i=new URL(n),l=new AbortController,{signal:a}=l;this.timeout&&(t=setTimeout(()=>l.abort(),this.timeout));try{let n=await this.fetch(`${i}`,{method:e,headers:this.headers,body:r,signal:a,...this.fetchOptions});this.timeout&&clearTimeout(t);let l=await this._responseHandler(n);return this.responseInterceptor&&!this.ejectInterceptor?this._statusHandler(this.responseInterceptor(l)):this._statusHandler(l)}catch(e){return{message:e}}}setFetchOptions(e={}){Object.keys(e).length>0&&"method"in e&&delete e.method,this.fetchOptions={...e}}eject(){this.ejectInterceptor=!0}_statusHandler(e){let t=/20[0-6]/g;return new Promise((n,r)=>{if(t.test(`${e.status}`))return n(e);r({message:e.statusText,status:e.status,response:Array.isArray(e.data)?e.data[0]:e.data.error||e.data.slug})})}}let x="SB-Agent",b={defaultAgentName:"SB-JS-CLIENT",defaultAgentVersion:"SB-Agent-Version",packageVersion:"6.0.0"},w={},j={};class S{constructor(e,t){c(this,"client"),c(this,"maxRetries"),c(this,"retriesDelay"),c(this,"throttle"),c(this,"accessToken"),c(this,"cache"),c(this,"helpers"),c(this,"resolveCounter"),c(this,"relations"),c(this,"links"),c(this,"richTextResolver"),c(this,"resolveNestedRelations"),c(this,"stringifiedStoriesCache");let n=e.endpoint||t;if(!n){let t=new d().getRegionURL,r=!1===e.https?"http":"https";n=e.oauthToken?`${r}://${t(e.region)}/v1`:`${r}://${t(e.region)}/v2`}let r=new Headers;r.set("Content-Type","application/json"),r.set("Accept","application/json"),e.headers&&("Headers"===e.headers.constructor.name?e.headers.entries().toArray():Object.entries(e.headers)).forEach(([e,t])=>{r.set(e,t)}),r.has(x)||(r.set(x,b.defaultAgentName),r.set(b.defaultAgentVersion,b.packageVersion));let i=5;e.oauthToken&&(r.set("Authorization",e.oauthToken),i=3),e.rateLimit&&(i=e.rateLimit),e.richTextSchema?this.richTextResolver=new v(e.richTextSchema):this.richTextResolver=new v,e.componentResolver&&this.setComponentResolver(e.componentResolver),this.maxRetries=e.maxRetries||10,this.retriesDelay=300,this.throttle=function(e,t,n){if(!Number.isFinite(t))throw TypeError("Expected `limit` to be a finite number");if(!Number.isFinite(1e3))throw TypeError("Expected `interval` to be a finite number");let r=[],i=[],l=0,a=!1,o=async()=>{l++;let t=r.shift();if(t)try{let n=await e(...t.args);t.resolve(n)}catch(e){t.reject(e)}let n=setTimeout(()=>{l--,r.length>0&&o(),i=i.filter(e=>e!==n)},1e3);i.includes(n)||i.push(n)},s=(...e)=>a?Promise.reject(Error("Throttled function is already aborted and not accepting new promises")):new Promise((n,i)=>{r.push({resolve:n,reject:i,args:e}),l<t&&o()});return s.abort=()=>{a=!0,i.forEach(clearTimeout),i=[],r.forEach(e=>e.reject(()=>new u("Throttle function aborted"))),r.length=0},s}(this.throttledRequest.bind(this),i,1e3),this.accessToken=e.accessToken||"",this.relations={},this.links={},this.cache=e.cache||{clear:"manual"},this.helpers=new d,this.resolveCounter=0,this.resolveNestedRelations=e.resolveNestedRelations||!0,this.stringifiedStoriesCache={},this.client=new y({baseURL:n,timeout:e.timeout||0,headers:r,responseInterceptor:e.responseInterceptor,fetch:e.fetch})}setComponentResolver(e){this.richTextResolver.addNode("blok",t=>{let n="";return t.attrs.body&&t.attrs.body.forEach(t=>{n+=e(t.component,t)}),{html:n}})}parseParams(e){return e.token||(e.token=this.getToken()),e.cv||(e.cv=j[e.token]),Array.isArray(e.resolve_relations)&&(e.resolve_relations=e.resolve_relations.join(",")),"u">typeof e.resolve_relations&&(e.resolve_level=2),e}factoryParamOptions(e,t){return this.helpers.isCDNUrl(e)?this.parseParams(t):t}
24makeRequest(e,t,n,r,i){let l=this.factoryParamOptions(e,this.helpers.getOptionsPage(t,n,r));return this.cacheResponse(e,l,void 0,i)}get(e,t,n){t||(t={});let r=`/${e}`,i=this.factoryParamOptions(r,t);return this.cacheResponse(r,i,void 0,n)}async getAll(e,t,n,r){let i=(null==t?void 0:t.per_page)||25,l=`/${e}`.replace(/\/$/,""),a=n??l.substring(l.lastIndexOf("/")+1),o=await this.makeRequest(l,t,i,1,r),s=o.total?Math.ceil(o.total/i):1,c=await this.helpers.asyncMap(this.helpers.range(1,s),e=>this.makeRequest(l,t,i,e+1,r));return this.helpers.flatMap([o,...c],e=>Object.values(e.data[a]))}post(e,t,n){let r=`/${e}`;return Promise.resolve(this.throttle("post",r,t,n))}put(e,t,n){let r=`/${e}`;return Promise.resolve(this.throttle("put",r,t,n))}delete(e,t,n){t||(t={});let r=`/${e}`;return Promise.resolve(this.throttle("delete",r,t,n))}getStories(e,t){return this._addResolveLevel(e),this.get("cdn/stories",e,t)}getStory(e,t,n){return this._addResolveLevel(t),this.get(`cdn/stories/${e}`,t,n)}getToken(){return this.accessToken}ejectInterceptor(){this.client.eject()}_addResolveLevel(e){"u">typeof e.resolve_relations&&(e.resolve_level=2)}_cleanCopy(e){return JSON.parse(JSON.stringify(e))}_insertLinks(e,t,n){let r=e[t];r&&"multilink"===r.fieldtype&&"story"===r.linktype&&"string"==typeof r.id&&this.links[n][r.id]?r.story=this._cleanCopy(this.links[n][r.id]):r&&"story"===r.linktype&&"string"==typeof r.uuid&&this.links[n][r.uuid]&&(r.story=this._cleanCopy(this.links[n][r.uuid]))}getStoryReference(e,t){return this.relations[e][t]?JSON.parse(this.stringifiedStoriesCache[t]||JSON.stringify(this.relations[e][t])):t}_resolveField(e,t,n){let r=e[t];"string"==typeof r?e[t]=this.getStoryReference(n,r):Array.isArray(r)&&(e[t]=r.map(e=>this.getStoryReference(n,e)).filter(Boolean))}_insertRelations(e,t,n,r){if(Array.isArray(n)?n.find(e=>e.endsWith(`.${t}`)):n.endsWith(`.${t}`))return void this._resolveField(e,t,r);let i=e.component?`${e.component}.${t}`:t;(Array.isArray(n)?n.includes(i):n===i)&&this._resolveField(e,t,r)}iterateTree(e,t,n){let r=(e,i="")=>{if(!(!e||e._stopResolving)){if(Array.isArray(e))e.forEach((e,t)=>r(e,`${i}[${t}]`));else if("object"==typeof e)for(let l in e){let a=i?`${i}.${l}`:l;(e.component&&e._uid||"link"===e.type)&&(this._insertRelations(e,l,t,n),this._insertLinks(e,l,n)),r(e[l],a)}}};r(e.content)}async resolveLinks(e,t,n){let r=[];if(e.link_uuids){let n=e.link_uuids.length,i=[];for(let t=0;t<n;t+=50){let r=Math.min(n,t+50);i.push(e.link_uuids.slice(t,r))}for(let e=0;e<i.length;
24e++)(await this.getStories({per_page:50,language:t.language,version:t.version,starts_with:t.starts_with,by_uuids:i[e].join(",")})).data.stories.forEach(e=>{r.push(e)})}else r=e.links;r.forEach(e=>{this.links[n][e.uuid]={...e,_stopResolving:!0}})}async resolveRelations(e,t,n){let r=[];if(e.rel_uuids){let n=e.rel_uuids.length,i=[];for(let t=0;t<n;t+=50){let r=Math.min(n,t+50);i.push(e.rel_uuids.slice(t,r))}for(let e=0;e<i.length;e++)(await this.getStories({per_page:50,language:t.language,version:t.version,starts_with:t.starts_with,by_uuids:i[e].join(","),excluding_fields:t.excluding_fields})).data.stories.forEach(e=>{r.push(e)});r.length>0&&(e.rels=r,delete e.rel_uuids)}else r=e.rels;r&&r.length>0&&r.forEach(e=>{this.relations[n][e.uuid]={...e,_stopResolving:!0}})}async resolveStories(e,t,n){var r,i;let l=[];if(this.links[n]={},this.relations[n]={},"u">typeof t.resolve_relations&&t.resolve_relations.length>0&&("string"==typeof t.resolve_relations&&(l=t.resolve_relations.split(",")),await this.resolveRelations(e,t,n)),t.resolve_links&&["1","story","url","link"].includes(t.resolve_links)&&(null!=(r=e.links)&&r.length||null!=(i=e.link_uuids)&&i.length)&&await this.resolveLinks(e,t,n),this.resolveNestedRelations)for(let e in this.relations[n])this.iterateTree(this.relations[n][e],l,n);e.story?this.iterateTree(e.story,l,n):e.stories.forEach(e=>{this.iterateTree(e,l,n)}),this.stringifiedStoriesCache={},delete this.links[n],delete this.relations[n]}async cacheResponse(e,t,n,r){let i=this.helpers.stringify({url:e,params:t}),l=this.cacheProvider();if("published"===t.version&&"/cdn/spaces/me"!==e){let e=await l.get(i);if(e)return Promise.resolve(e)}return new Promise(async(a,o)=>{var s;try{let n=await this.throttle("get",e,t,r);if(200!==n.status)return o(n);let c={data:n.data,headers:n.headers};if(null!=(s=n.headers)&&s["per-page"]&&(c=Object.assign({},c,{perPage:n.headers["per-page"]?Number.parseInt(n.headers["per-page"]):0,total:n.headers["per-page"]?Number.parseInt(n.headers.total):0})),c.data.story||c.data.stories){let e=this.resolveCounter=++this.resolveCounter%1e3;await this.resolveStories(c.data,t,`${e}`)}"published"===t.version&&"/cdn/spaces/me"!==e&&await l.set(i,c);let u="onpreview"===this.cache.clear&&"draft"===t.version||"auto"===this.cache.clear;return t.token&&c.data.cv&&(u&&j[t.token]&&j[t.token]!==c.data.cv&&await this.flushCache(),j[t.token]=c.data.cv),a(c)}catch(r){if(r.response&&429===r.status&&(n=typeof n>"u"?0:n+1)<this.maxRetries)return console.log(`Hit rate limit. Retrying in ${this.retriesDelay/1e3} seconds.`),await this.helpers.delay(this.retriesDelay),this.cacheResponse(e,t,n).then(a).catch(o);o(r)}})}throttledRequest(e,t,n,r){return this.client.setFetchOptions(r),this.client[e](t,n)}cacheVersions(){return j}cacheVersion(){return j[this.accessToken]}setCacheVersion(e){this.accessToken&&(j[this.accessToken]=e)}clearCacheVersion(){this.accessToken&&(j[this.accessToken]=0)}cacheProvider(){switch(this.cache.type){case"memory":return{get:e=>Promise.resolve(w[e]),getAll:()=>Promise.resolve(w),set:(e,t)=>(w[e]=t,Promise.resolve(void 0)),flush:()=>(w={},Promise.resolve(void 0))};case"custom":if(this.cache.custom)return this.cache.custom;default:return{get:()=>Promise.resolve(),getAll:()=>Promise.resolve(void 0),set:()=>Promise.resolve(void 0),flush:()=>Promise.resolve(void 0)}}}async flushCache(){return await this.cacheProvider().flush(),this.clearCacheVersion(),this}}let k=(e={})=>{let{apiOptions:t}=e;return t&&t.accessToken?{storyblokApi:new S(t)}:void console.error("You need to provide an access token to interact with Storyblok API. Read https://www.storyblok.com/docs/api/content-delivery#topics/authentication")},_=e=>{if("object"!=typeof e||typeof e._editable>"u")return{};try{let t=JSON.parse(e._editable.replace(/^<!--#storyblok#/,"").replace(/-->$/,""));return t?{"data-blok-c":JSON.stringify(t),"data-blok-uid":`${t.id}-${t.uid}`}:{}}catch{return{}}};var C=(e=>(e.DOCUMENT="doc",e.HEADING="heading",e.PARAGRAPH="paragraph",e.QUOTE="blockquote",e.OL_LIST="ordered_list",e.UL_LIST="bullet_list",e.LIST_ITEM="list_item",e.CODE_BLOCK="code_block",e.HR="horizontal_rule",e.BR="hard_break",e.IMAGE="image",e.EMOJI="emoji",e.COMPONENT="blok",e.TABLE="table",e.TABLE_ROW="tableRow",e.TABLE_CELL="tableCell",e.TABLE_HEADER="tableHeader",e))(C||{}),N=(e=>
24(e.BOLD="bold",e.STRONG="strong",e.STRIKE="strike",e.UNDERLINE="underline",e.ITALIC="italic",e.CODE="code",e.LINK="link",e.ANCHOR="anchor",e.STYLED="styled",e.SUPERSCRIPT="superscript",e.SUBSCRIPT="subscript",e.TEXT_STYLE="textStyle",e.HIGHLIGHT="highlight",e))(N||{}),E=(e=>(e.TEXT="text",e))(E||{}),P=(e=>(e.URL="url",e.STORY="story",e.ASSET="asset",e.EMAIL="email",e))(P||{});let T=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"],O=(e={})=>Object.keys(e).map(t=>`${t}="${e[t]}"`).join(" "),R=(e={})=>Object.keys(e).map(t=>`${t}: ${e[t]}`).join("; ");function L(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}let I=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>void 0!==t));function A(e,t={},n){let r=O(t),i=r?`${e} ${r}`:e,l=Array.isArray(n)?n.join(""):n||"";return e?T.includes(e)?`<${i}>`:`<${i}>${l}</${e}>`:l}let M,F="https://app.storyblok.com/f/storyblok-v2-latest.js",D=(e,t,n={})=>{var r;let i=!(typeof window>"u")&&"u">typeof window.storyblokRegisterEvent,l=new URL(null==(r=window.location)?void 0:r.href).searchParams.get("_storyblok");if(!(!i||null===l||+l!==e)){if(!e)return void console.warn("Story ID is not defined. Please provide a valid ID.");window.storyblokRegisterEvent(()=>{new window.StoryblokBridge(n).on(["input","published","change"],n=>{var r;n&&("input"===n.action&&(null==(r=n.story)?void 0:r.id)===e?t(n.story):("change"===n.action||"published"===n.action)&&n.storyId===e&&window.location.reload())})})}},H=(e,t)=>{e.addNode("blok",e=>{let n="";return e.attrs.body.forEach(e=>{n+=t(e.component,e)}),{html:n}})},B=(e={})=>{var t,n;let{bridge:r,accessToken:i,use:l=[],apiOptions:o={},richText:s={},bridgeUrl:c}=e;o.accessToken=o.accessToken||i;let u={bridge:r,apiOptions:o},d={};l.forEach(e=>{d={...d,...e(u)}}),c&&(F=c);let h=!(typeof window>"u")&&(null==(n=null==(t=window.location)?void 0:t.search)?void 0:n.includes("_storyblok_tk"));return!1!==r&&h&&a(F),M=new v(s.schema),s.resolver&&H(M,s.resolver),d};var $=n(7876);let z=(0,r.forwardRef)(({blok:e,...t},n)=>{if(!e)return console.error("Please provide a 'blok' property to the StoryblokComponent"),(0,$.jsx)("div",{children:"Please provide a blok property to the StoryblokComponent"});let r=K(e.component);if(r)return(0,$.jsx)(r,{ref:n,blok:e,...t});if(G()){let n=Y();return n?(0,$.jsx)(n,{blok:e,...t}):(0,$.jsx)($.Fragment,{children:(0,$.jsxs)("p",{children:["Component could not be found for blok"," ",(0,$.jsx)("strong",{children:e.component}),"! Is it configured correctly?"]})})}return(0,$.jsx)("div",{})});z.displayName="StoryblokComponent";let V=null,W={},U=!1,q=null,Q=()=>(V||console.error("You can't use getStoryblokApi if you're not loading apiPlugin."),V),K=e=>W[e]?W[e]:(console.error(`Component ${e} doesn't exist.`),!1),G=()=>U,Y=()=>q,Z=(e={})=>{let{storyblokApi:t}=B(e);V=t,W=e.components,U=e.enableFallbackComponent,q=e.customFallbackComponent};function J(e){var t,n;let i=null==(t=null==e?void 0:e.attrs)?void 0:t.body;return r.createElement(z,{blok:Array.isArray(i)?i[0]:void 0,key:null==(n=e.attrs)?void 0:n.id})}let X=(e=null,t={})=>{let[n,i]=(0,r.useState)(e),l=(null==e?void 0:e.id)??0,a="u">typeof window&&"u">typeof window.storyblokRegisterEvent;return(0,r.useEffect)(()=>{i(e),a&&e&&D(l,e=>i(e),t)},[e]),n};(0,r.forwardRef)(({doc:e,resolvers:t},n)=>{var i;let{render:l}=(i={resolvers:t},function(e={}){let t=new Map,{renderFn:n=A,textFn:r=L,resolvers:i={},optimizeImages:l=!1,keyedResolvers:a=!1}=e,o=n!==A,s=()=>({render:(e,r={},i)=>{if(a&&e){let n=t.get(e)||0;t.set(e,n+1),r.key=`${e}-${n}`}return n(e,r,i)}}),c=e=>(t,n)=>{let r=t.attrs||{};return n.render(e,r,t.children||null)},u=(e,t=!1)=>({text:n,attrs:r},i)=>{let{class:l,id:a,...o}=r||{},s=t?{class:l,id:a,style:R(o)||void 0}:r||{};return i.render(e,I(s),n)},d=e=>m(e),h=(e,t)=>{let{linktype:n,href:r,anchor:i,...l}=e.attrs||{},a="";switch(n){case P.ASSET:case P.URL:a=r;break;case P.EMAIL:a=`mailto:${r}`;break;case P.STORY:a=r,i&&(a=`${a}#${i}`);break;default:a=r}let o={...l};return a&&(o.href=a),t.render("a",o,e.text)},p=new Map([[C.DOCUMENT,c("")],[C.HEADING,(e,t)=>{let{level:n,...r}=e.attrs||{};return t.render(`h${n}`,r,e.children)}],[C.PARAGRAPH,c("p")],[C.UL_LIST,c("ul")],[C.OL_LIST,c("ol")],[C.LIST_ITEM,c("li")],[C.IMAGE,(e,t)=>{let{src:n,alt:r,title:i,srcset:a,sizes:o}=e.attrs||{},s=n,c={};if(l){let{src:e,attrs:t}=function(e,t){if(!t)return{src:e,attrs:{}};let n=0,r=0,i={},l=[];function a(e,t,n,r,i){"number"!=typeof e||e<=t||e>=n?console.warn(`[StoryblokRichText] - ${r.charAt(0).toUpperCase()+r.slice(1)} value must be a number between ${t} and ${n} (inclusive)`):i.push(`${r}(${e})`)}if("object"==typeof t){if("number"==typeof t.width&&t.width>0?(i.width=t.width,n=t.width):console.warn("[StoryblokRichText] - Width value must be a number greater than 0"),t.height&&"number"==typeof t.height&&t.height>0?(i.height=t.height,r=t.height):console.warn("[StoryblokRichText] - He
24ight value must be a number greater than 0"),t.loading&&["lazy","eager"].includes(t.loading)&&(i.loading=t.loading),t.class&&(i.class=t.class),t.filters){let{filters:e}=t||{},{blur:n,brightness:r,fill:i,format:o,grayscale:s,quality:c,rotate:u}=e||{};n&&a(n,0,100,"blur",l),c&&a(c,0,100,"quality",l),r&&a(r,0,100,"brightness",l),i&&l.push(`fill(${i})`),s&&l.push("grayscale()"),u&&[0,90,180,270].includes(t.filters.rotate||0)&&l.push(`rotate(${u})`),o&&["webp","png","jpeg"].includes(o)&&l.push(`format(${o})`)}t.srcset&&(i.srcset=t.srcset.map(t=>{if("number"==typeof t)return`${e}/m/${t}x0/${l.length>0?`filters:${l.join(":")}`:""} ${t}w`;if(!Array.isArray(t)||2!==t.length)return void console.warn("[StoryblokRichText] - srcset entry must be a number or a tuple of two numbers");{let[n,r]=t;return`${e}/m/${n}x${r}/${l.length>0?`filters:${l.join(":")}`:""} ${n}w`}}).join(", ")),t.sizes&&(i.sizes=t.sizes.join(", "))}let o=`${e}/m/`;return n>0&&r>0&&(o=`${o}${n}x${r}/`),l.length>0&&(o=`${o}filters:${l.join(":")}`),{src:o,attrs:i}}(n,l);s=e,c=t}let u={src:s,alt:r,title:i,srcset:a,sizes:o,...c};return t.render("img",I(u))}],[C.EMOJI,(e,t)=>{var n,r,i,l;let a=t.render("img",{src:null==(n=e.attrs)?void 0:n.fallbackImage,alt:null==(r=e.attrs)?void 0:r.alt,style:"width: 1.25em; height: 1.25em; vertical-align: text-top",draggable:"false",loading:"lazy"});return t.render("span",{"data-type":"emoji","data-name":null==(i=e.attrs)?void 0:i.name,"data-emoji":null==(l=e.attrs)?void 0:l.emoji},a)}],[C.CODE_BLOCK,(e,t)=>t.render("pre",e.attrs||{},t.render("code",{},e.children||""))],[C.HR,c("hr")],[C.BR,c("br")],[C.QUOTE,c("blockquote")],[C.COMPONENT,(e,t)=>{var n,r;return console.warn("[StoryblokRichtText] - BLOK resolver is not available for vanilla usage"),t.render("span",{blok:null==(n=null==e?void 0:e.attrs)?void 0:n.body[0],id:null==(r=e.attrs)?void 0:r.id,style:"display: none"})}],[E.TEXT,e=>{let{marks:n,...i}=e;if("text"in e){if(n)return n.reduce((e,t)=>d({...t,text:e}),d({...i,children:i.children}));let l=e.attrs||{};if(a){let e=t.get("txt")||0;t.set("txt",e+1),l.key=`txt-${e}`}return r(i.text,l)}return""}],[N.LINK,h],[N.ANCHOR,h],[N.STYLED,u("span",!0)],[N.BOLD,u("strong")],[N.TEXT_STYLE,u("span",!0)],[N.ITALIC,u("em")],[N.UNDERLINE,u("u")],[N.STRIKE,u("s")],[N.CODE,u("code")],[N.SUPERSCRIPT,u("sup")],[N.SUBSCRIPT,u("sub")],[N.HIGHLIGHT,u("mark")],[C.TABLE,(e,t)=>{let n=t.render("tbody",{},e.children);return t.render("table",{},n)}],[C.TABLE_ROW,(e,t)=>t.render("tr",{},e.children)],[C.TABLE_CELL,(e,t)=>{let{colspan:n,rowspan:r,colwidth:i,backgroundColor:l,...a}=e.attrs||{},o={...a};n>1&&(o.colspan=n),r>1&&(o.rowspan=r);let s=[];return i&&s.push(`width: ${i}px;`),l&&s.push(`background-color: ${l};`),s.length>0&&(o.style=s.join(" ")),t.render("td",I(o),e.children)}],[C.TABLE_HEADER,(e,t)=>{let{colspan:n,rowspan:r,colwidth:i,backgroundColor:l,...a}=e.attrs||{},o={...a};n>1&&(o.colspan=n),r>1&&(o.rowspan=r);let s=[];return i&&s.push(`width: ${i}px;`),l&&s.push(`background-color: ${l};`),s.length>0&&(o.style=s.join(" ")),t.render("th",I(o),e.children)}],...Object.entries(i).map(([e,t])=>[e,t])]);function f(e){let t=p.get(e.type);if(!t)return console.error("<Storyblok>",`No resolver found for node type ${e.type}`),"";let n=s();if("text"===e.type)return t(e,n);let r=e.content?e.content.map(m):void 0;return t({...e,children:r},n)}function m(e){return"doc"===e.type?o?e.content.map(f):e.content.map(f).join(""):Array.isArray(e)?e.map(f):f(e)}return{render:m}}({renderFn:r.createElement,textFn:e=>r.createElement(r.Fragment,{key:Math.random().toString(36).substring(2,15)},e),resolvers:{[C.COMPONENT]:J,...i.resolvers},keyedResolvers:!0})),a=function e(t){if(Array.isArray(t))return t.map(t=>e(t));let n={class:"className",for:"htmlFor",targetAttr:"targetattr"},i=Object.keys(t.props).reduce((e,r)=>{let i=t.props[r];return"style"===r&&"string"==typeof i&&(i=i.split(";").reduce((e,t)=>{let[n,r]=t.split(":");return n=null==n?void 0:n.trim(),r=null==r?void 0:r.trim(),n&&r&&(e[n.replace(/-([a-z])/g,e=>e[1].toUpperCase())]=r),e},{})),e[n[r]||r]=i,e},{});i.key=t.key;let l=r.Children.map(t.props.children,t=>"string"==typeof t?t:e(t));return r.createElement(t.type,i,l)}(l(e));return(0,$.jsx)("div",{ref:n,children:a})})},2228:e=>{"use strict";e.exports=function(e){return null!==e&&/^[a-zA-Z0-9_-]{1,64}$/.test(e)}}
24,2343:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return s}});let r=n(4232),i=n(4754),l="function"==typeof IntersectionObserver,a=new Map,o=[];function s(e){let{rootRef:t,rootMargin:n,disabled:s}=e,c=s||!l,[u,d]=(0,r.useState)(!1),h=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{h.current=e},[]);return(0,r.useEffect)(()=>{if(l){if(c||u)return;let e=h.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:i,elements:l}=function(e){let t,n={root:e.root||null,margin:e.rootMargin||""},r=o.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let i=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:i},o.push(n),a.set(n,t),t}(n);return l.set(e,t),i.observe(e),function(){if(l.delete(e),i.unobserve(e),0===l.size){i.disconnect(),a.delete(r);let e=o.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&o.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!u){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[c,n,t,u,h.current]),[p,u,(0,r.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2441:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(7876),i=n(4232);function l(e){let{error:t,reset:n}=e;return(0,i.useEffect)(()=>{console.error(t)},[t]),(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{children:"Something went wrong!"}),(0,r.jsx)("button",{onClick:()=>n(),children:"Try again"})]})}},2443:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},2591:e=>{function t(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(e){return"function"==typeof e}function r(e){return"object"==typeof e&&null!==e}e.exports=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},t.prototype.emit=function(e){var t,i,l,a,o,s;if(this._events||(this._events={}),"error"===e&&(!this._events.error||r(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;var c=Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}if(void 0===(i=this._events[e]))return!1;if(n(i))switch(arguments.length){case 1:i.call(this);break;case 2:i.call(this,arguments[1]);break;case 3:i.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),i.apply(this,a)}else if(r(i))for(o=0,a=Array.prototype.slice.call(arguments,1),l=(s=i.slice()).length;o<l;o++)s[o].apply(this,a);return!0},t.prototype.addListener=function(e,i){var l;if(!n(i))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,n(i.listener)?i.listener:i),this._events[e]?r(this._events[e])?this._events[e].push(i):this._events[e]=[this._events[e],i]:this._events[e]=i,r(this._events[e])&&!this._events[e].warned&&(l=void 0===this._maxListeners?t.defaultMaxListeners:this._maxListeners)&&l>0&&this._events[e].length>l&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(e,t){if(!n(t))throw TypeError("listener must be a function");var r=!1;function i(){this.removeListener(e,i),r||(r=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},t.prototype.removeListener=function(e,t){var i,l,a,o;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(i=this._events[e]).length,l=-1,i===t||n(i.listener)&&i.listener===t)delete this._events[e],this._events.removeListener&&this.emit
24("removeListener",e,t);else if(r(i)){for(o=a;o-- >0;)if(i[o]===t||i[o].listener&&i[o].listener===t){l=o;break}if(l<0)return this;1===i.length?(i.length=0,delete this._events[e]):i.splice(l,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},t.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0==arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0==arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n(r=this._events[e]))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},t.prototype.listeners=function(e){var t;return this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[]},t.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(n(t))return 1;if(t)return t.length}return 0},t.listenerCount=function(e,t){return e.listenerCount(t)}},3025:e=>{e.exports=function(e){return e.reduce(function(e,t){return e.concat(t)},[])}},3250:(e,t,n)=>{"use strict";var r=n(2591);function i(e,t,n){this.main=e,this.fn=t,this.recommendFn=n,this.lastResults=null,this.lastRecommendResults=null}n(1010)(i,r),i.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)},i.prototype.getModifiedState=function(e){return this.fn(e)},i.prototype.getModifiedRecommendState=function(e){return this.recommendFn(e)},e.exports=i},3520:(e,t,n)=>{"use strict";var r=n(7225),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},l={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function s(e){return r.isMemo(e)?a:o[e.$$typeof]||i}o[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(f){var i=p(n);i&&i!==f&&e(t,i,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var o=s(t),m=s(n),g=0;g<a.length;++g){var v=a[g];if(!l[v]&&!(r&&r[v])&&!(m&&m[v])&&!(o&&o[v])){var y=h(n,v);try{c(t,v,y)}catch(e){}}}}return t}},3541:(e,t,n)=>{"use strict";let r,i,l,a;n.r(t),n.d(t,{default:()=>yC});var o,s,c,u={};n.r(u),n.d(u,{boolean:()=>ru,booleanish:()=>rd,commaOrSpaceSeparated:()=>rg,commaSeparated:()=>rm,number:()=>rp,overloadedBoolean:()=>rh,spaceSeparated:()=>rf});var d={};n.r(d),n.d(d,{attentionMarkers:()=>lf,contentInitial:()=>ls,disable:()=>lm,document:()=>lo,flow:()=>lu,flowInitial:()=>lc,insideSpan:()=>lp,string:()=>ld,text:()=>lh});var h=n(7876);n(6048);var p=n(4232),f=n.t(p,2),m=n(1941),g=n(9099);let v=()=>{let e=(0,g.useRouter)(),t=(0,p.useRef)({}),n=(0,p.useRef)(!1);(0,p.useEffect)(()=>{e.beforePopState(()=>(n.current=!0,!0));let r=()=>{let n=e.asPath;t.current[n]=window.scrollY},i=e=>{n.current&&t.current[e]&&window.scroll({top:t.current[e],behavior:"auto"}),n.current=!1};return e.events.on("routeChangeStart",r),e.events.on("routeChangeComplete",i),()=>{e.events.off("routeChangeStart",r),e.events.off("routeChangeComplete",i)}},[e])};var y=n(6314),x=n(5105),b=n.n(x),w=n(1259),j=n(8230),S=n.n(j);let k=(e,t)=>{var n,r,i;let l={auto:["/images/auto_616.jpg"],business:["/images/business_616.jpg"],fire:["/images/fire1.png"],flood:["/images/flood1.png"],home:["/images/home_616.jpg"],snow:["/images/snow.png"],climate:["/images/climate_616.jpg"],"Insurance 101":["/images/insurance-101_616.jpg"],"Severe Weather":["/images/severe-weather_616.jpg"],"Insurance Industry":["/images/insurance-industry_616.jpg"],"Cyber Security":["/images/cyber-security_616.jpg"],Regulation:["/images/regulation_616.jpg"],ibc:["/images/ibc_616.jpg"]},a=[...(null==e?void 0:e.tag_list)||[],...(null==e||null==(n=e.content)?void 0:n.Category)||[]].filter(
24Boolean).find(e=>l[e]),o=a?l[a]:null;if((null==o?void 0:o.length)&&void 0!==t){let e=o.length;return o[Math.ceil(t/e)*e-t]+"?"}return(null==e||null==(i=e.content)||null==(r=i.Content_Blocks)?void 0:r.some(e=>{var t;return null==e||null==(t=e.People_Entries)?void 0:t.length}))?"/images/team_1200.jpg":"/images/placeholder.png?"},_=e=>{var t,n,r,i,l,a,o;return!!((null==e||null==(r=e.content)||null==(n=r[0])||null==(t=n.content)?void 0:t.length)||(null==e||null==(o=e.content)||null==(a=o[0])||null==(l=a.attrs)||null==(i=l.body)?void 0:i.length))},C=function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0],"en"},N=()=>!0,E=e=>"fr"===e?"bac.ibc.ca":"www.ibc.ca",P=e=>"en"===e?"fr":"en",T=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",n=E(P(e));return"//".concat(n).concat(t)};function O(e){let{story:t}=e,n=(0,g.useRouter)(),{t:r}=(0,y.Bd)("common"),i=(e,r)=>{var i,l;return(null==t?void 0:t.slug)==="homepage"?"/":"fr"===e&&(null==t||null==(l=t.translated_slugs)||null==(i=l[0])?void 0:i.path)?"/".concat(t.translated_slugs[0].path):"en"===e&&(null==t?void 0:t.default_full_slug)?"/".concat(t.default_full_slug):n.asPath},l="en"===C({locale:n.locale})?r("languageSwitcher.french","Fran\xe7ais"):r("languageSwitcher.english","English");return(0,h.jsx)("button",{onClick:()=>{let e=C({locale:n.locale}),r=P(e),l=i(r,e);if(N()){let t=T(e,l);window.location.href=t;return}if((null==t?void 0:t.slug)==="homepage")n.push("/","/",{locale:r});else{let e=l.startsWith("/")?l.slice(1):l;e&&e!==n.asPath&&n.push("/".concat(e),"/".concat(e),{locale:r})}},className:"language-switcher",children:l})}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach(function(t){var r,i;r=t,i=n[t],(r=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(r))in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let I=["component"],A="heading",M="paragraph",F="ordered_list",D="bullet_list",H="list_item",B="image",$="textStyle";function z(e,t={}){if("object"==typeof e&&"doc"===e.type&&Array.isArray(e.content)){let n=t.blokResolvers,r=void 0===n?{}:n,i=t.defaultBlokResolver,l=void 0===i?function(){return null}:i,a=t.nodeResolvers,o=t.markResolvers,s=t.textResolver,c=void 0===s?function(e){return e}:s,u=L(L({},Q),void 0===a?{}:a),d=L(L({},K),void 0===o?{}:o),h=0,f=function(e){return p.isValidElement(e)?p.cloneElement(e,{key:h++}):e},m=function(e){let t=e?e.map(g).filter(function(e){return null!=e}):null;return Array.isArray(t)&&0===t.length?null:t},g=function(e){if("blok"===e.type)return e.attrs.body.map(function(e){let t=e.component,n=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,I),i=r[t];return f(i?i(n):l(t,n))});{var t;let n;if("text"===e.type)n=c(e.text);else{let t=u[e.type];n=t?f(t(m(e.content),e.attrs)):null}return(null!=(t=e.marks)?t:[]).reduceRight(function(e,t){let n=d[t.type];return n?f(n(e,t.attrs)):e},n)}};return m(e.content)}if("string"==typeof e){let n=t.defaultStringResolver,r=t.textResolver;return(void 0===n?function(e){return e}:n)((void 0===r?function(e){return e}:r)(e))}return null}let V=function(e){return function(t){return null!=t?p.createElement(e,null,t):null}},W=function(e){return function(){return p.createElement(e)}},U=function(e){return function(t,n){let r={},i={};return 1!==n.colspan&&(r.colspan=n.colspan),1!==n.rowspan&&(r.rowspan=n.rowspan),n.backgroundColor&&(i.backgroundColor=n.backgroundColor),Array.isArray(n.colwidth)&&(1===n.colwidth.length?i.width=n.colwidth[0]+"px":r["data-colwidth"]=n.colwidth.join(",")),Object.keys(i).length>0&&(r.style=i),p.createElement(e,r,t)}},q=function(e){return function(t){return p.createElement(e,null,t)}},Q={[A]:function(e,t){return p.createElement(`h${t.level}`,null,e)},code_block:function(e,t){let n={className:t.class},r=p.createElement("code",n,e);return p.createElement("pre",null,r)},[B]:function(e,t){return p.createElement("img",t,e)},[M]:V("p"),blockquote:V("blockquote"),[F]:V("ol"),[D]:V("ul"),[H]:V("li"),horizontal_rule:W("hr"),hard_break:W("br"),emoji:function(e,t){if(!t)return null;let n={"data-type":"emoji","data-name":t.name,emoji:t.emoji};if(t.emoji||!t.fallbackImage)return p.createElement("span",n,t.emoji);{let e={src:t.fallbackImage,draggable:"false",loading:"lazy",align:"absmiddle",alt:t.name},r=p.createElement("img",e);return p.createElement("span",n,r)}},table:V("table"),tableRow:V("tr"),tableHeader:U("th"),tableCell:U("td")},K={link:function(e,t){let n=t?{href:"email"===t.linktype?`mailto:${t.href}`:t.href,target:t.target}:{};return p.createElement("a",n,e)},styled:function(e,t){let n=t?{className:t.class}:{};return p.createElement("span",n,e)},bold:q("b"),italic:q("i"),strike:q("s"),underline:q("u"),code:q("code"),subscript:q("sub"),superscript:q("sup"),highlight:function(e,t){let n=t?{style:{backgroundColor:t.color}}:{};return p.createElement("span",n,e)},[$]:function(e,t){let n=t?.color?{style:{color:t.color}}:{};return p.createElement("span",n,e)},anchor:function(e,t){let n=t?{id:t.id}:{};return p.createElement("span",n,e)}},G=e=>{if(!e)return"/";let{url:t,cached_url:n,anchor:r}=e;if(t=null==t?void 0:t.trim(),n=null==n?void 0:n.trim(),null==(r=null==r?void 0:r.trim())?void 0:r.length){let e=n.startsWith("/")?n:"/".concat(n);return"".concat(e,"#").concat(r)}return(null==n?void 0:n.match(/^(\d{1})-(\d{3})-(\d{3})-(\d{4})$/))?"tel:+".concat(n):(null==n?void 0:n.match(/^[\w-\.]+@([\w-]+\.)+[\w-]{2,}$/))?"mailto:".concat(n):(null==t?void 0:t.length)?/\/\//.test(t)?t:"https://".concat(t):(null==n?void 0:n.length)?n.startsWith("/")?n:"/".concat(n):"/"},Y=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{offset:n=100}=t;e.preventDefault();let r=document.querySelector(e.target.hash);if(r){let e=document.querySelector("header"),t=e?e.clientHeight:0,i=r.offsetTop;window.scrollTo({top:i-(n||t+32),behavior:"smooth"})}},Z=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:821,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:80,l=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(!e)return"";let a=e=>
24{if(!n||0===n)return 0;let[t,r]=n.split(":").map(Number);return Math.round(r/t*e)};return[Math.round(.5*t),Math.round(.75*t),t,Math.round(1.5*t),2*t].map(t=>{let n=a(t),o=r?"/filters:focal(".concat(r,")"):"/smart/filters:quality(".concat(i,")").concat(l?":fill(transparent)":"");return"".concat(e,"/m/").concat(t,"x").concat(n).concat(o," ").concat(t,"w")}).join(", ")},J=e=>{let{sizes:t,srcSet:n,src:r,alt:i,className:l}=e,[a,o]=(0,p.useState)(!1),s=(0,p.useRef)(null);return(0,p.useEffect)(()=>{let e,{current:t}=s;return t&&(t.offsetTop<window.innerHeight?o(!0):(e=new IntersectionObserver(t=>{t.forEach(t=>{let{isIntersecting:n}=t;n&&(o(!0),e.disconnect())})},{rootMargin:"200px"})).observe(t)),()=>{e&&e.disconnect&&e.disconnect()}},[]),(0,h.jsx)("img",{loading:"lazy",ref:s,src:r,srcSet:n,sizes:t,alt:i,className:"".concat(l," transition-all duration-150 ").concat(a?"blur-none":"blur-lg")})},X=(e,t)=>{if(!t)return p.createElement("a",{},e);let{linktype:n,href:r,target:i,anchor:l,uuid:a,custom:o}=t;if("email"===n)return p.createElement("a",{href:"mailto:".concat(r),target:i||"_self",rel:"noopener noreferrer"},e);if(r&&(r.startsWith("http://")||r.startsWith("https://")))return p.createElement("a",{href:r,target:i||"_blank",rel:"noopener noreferrer"},e);if("story"===n&&r){let t=l?"".concat(r,"#").concat(l):r;return p.createElement(S(),{href:t,target:i||"_self",onClick:l?e=>{window.location.pathname===r&&Y(e,{offset:100})}:void 0},e)}if("anchor"===n&&l)return p.createElement("a",{href:"#".concat(l),target:i||"_self",onClick:e=>Y(e,{offset:100})},e);if(r){if(r.startsWith("/")){let t=l?"".concat(r,"#").concat(l):r;return p.createElement(S(),{href:t,target:i||"_self",onClick:l?e=>{window.location.pathname===r&&Y(e,{offset:100})}:void 0},e)}return p.createElement("a",{href:r,target:i||"_blank",rel:"noopener noreferrer"},e)}return p.createElement("a",{href:"#",target:i||"_self"},e)},ee=e=>p.createElement("li",{className:"!my-1"},e),et=e=>p.createElement("ol",{className:"list-decimal list-inside space-y-1 my-2"},e),en=e=>p.createElement("ul",{className:"list-disc list-inside space-y-1 my-2"},e),er={[B]:(e,t)=>{if(!t||!t.src)return p.createElement("img",{},e);let{src:n,alt:r,title:i,width:l,height:a}=t,o=l?parseInt(l):821,s=Z(n,o,l&&a?"".concat(l,":").concat(a):0),c=n.includes("/m/")?n:"".concat(n,"/m/6x0");return p.createElement(J,{src:c,srcSet:s,sizes:"(max-width: 768px) 100vw, ".concat(o,"px"),alt:r||"",className:"w-full h-auto"})},[H]:ee,[F]:et,[D]:en,ordered_list:et,bullet_list:en,list_item:ee,orderedList:et,bulletList:en,listItem:ee,unorderedList:en,bullet_list:en,unordered_list:en,paragraph:(e,t)=>{let n=(null==t?void 0:t.textAlign)?"text-".concat(t.textAlign):"";return p.createElement("p",{className:"my-2 ".concat(n)},e)}},ei=e=>{var t,n,r,i;let{blok:l,story:a}=e;return(0,h.jsx)("footer",{className:"bg-red-500 w-full py-10 lg:py-24 flex justify-center text-white",...(0,m.K1)(l),children:(0,h.jsxs)(w.A,{className:"flex flex-wrap md:flex-nowrap md:space-x-24 justify-between space-y-16 md:space-y-0",children:[(0,h.jsxs)("div",{className:"space-y-12 md:space-y-16 w-full md:w-auto",children:[(null==l||null==(t=l.content)?void 0:t.Cta)&&_(null==l||null==(n=l.content)?void 0:n.Cta)?(0,h.jsx)("div",{className:"text-lg md:text-xl footer-cta",children:z(l.content.Cta,{markResolvers:{link:X},nodeResolvers:er})}):void 0,(0,h.jsx)("img",{src:"/images/logo-ibc-white.svg",alt:"IBC BAC Logo - Insurance Bureau of Canada",role:"img",width:"173",height:"50"}),(0,h.jsxs)("div",{className:"flex space-x-5",children:[(0,h.jsxs)(S(),{href:"https://www.facebook.com/insurancebureau",target:"_blank","aria-label":"Visit our Facebook page",children:[(0,h.jsx)("img",{src:"/images/icon-facebook.svg",alt:"Facebook",className:"h-5 transition duration-150 ease-in-out cursor-pointer"}),(0,h.jsx)("span",{className:"sr-only",children:"Visit our Facebook page"})]}),(0,h.jsxs)(S(),{href:"https://twitter.com/InsuranceBureau",target:"_blank","aria-label":"Follow us on Twitter",children:[(0,h.jsx)("img",{src:"/images/icon-twitter.svg",alt:"Twitter",className:"h-5 transition duration-150 ease-in-out cursor-pointer"}),(0,h.jsx)("span",{className:"sr-only",children:"Follow us on Twitter"})]}),(0,h.jsxs)(S(),{href:"https://www.youtube.com/channel/UChOOs6RVUn2WQFVQJgAN0Qw",target:"_blank","aria-label":"Visit our YouTube channel",children:[(0,h.jsx)("img",{src:"/images/icon-youtube.svg",alt:"YouTube",className:"h-5 transition duration-150 ease-in-out cursor-pointer"}),(0,h.jsx)("span",{className:"sr-only",children:"Visit our YouTube channel"})]}),(0,h.jsxs)(S(),{href:"https://www.instagram.com/insurancebureau/",target:"_blank","aria-label":"Visit our Instagram page",children:[(0,h.jsx)("img",{src:"/images/icon-instagram.svg",alt:"Instagram",className:"h-5 transition duration-150 ease-in-out cursor-pointer"}),(0,h.jsx)("span",{className:"sr-only",children:"Visit our Instagram page"})]}),(0,h.jsxs)(S(),{href:"https://www.linkedin.com/company/insurance-bureau-of-canada/",target:"_blank","aria-label":"Visit our LinkedIn page",children:[(0,h.jsx)("img",{src:"/images/icon-linkedin.svg",alt:"LinkedIn",className:"h-5 transition duration-150 ease-in-out cursor-pointer"}),(0,h.jsx)("span",{className:"sr-only",children:"Visit our LinkedIn page"})]})]}),(0,h.jsxs)("div",{className:"text-xs space-x-12 items-center hidden md:flex",children:[(0,h.jsxs)("span",{className:"uppercase",children:["\xa9 ",new Date().getFullYear()," ",(null==l||null==(r=l.content)?void 0:r.Copyright)?l.content.Copyright:""]}),(0,h.jsx)(S(),{target:"_blank",href:"http://www.essentialaccessibility.com/ibc/en?utm_source=ibcenhomepage&utm_medium=iconlarge&utm_term=eachannelpage&utm_content=header&utm_campaign=ibcen","aria-label":"Download the Assistive Technology App",children:(0,h.jsx)("img",{src:"/images/icon-essential-accessibility.svg",alt:"Essential Acce
24ssibility",width:"64",height:"24"})})]})]}),(0,h.jsxs)("nav",{className:"w-full lg:flex lg:justify-between md:flex-wrap md:w-2/4 space-y-12 lg:space-y-0",children:[(0,h.jsx)("ul",{className:"flex flex-col justify-between text-xl space-y-6",children:l?l.content.Footer_Menu.map(e=>(0,h.jsx)("li",{children:(0,h.jsx)(m.Dp,{type:"footer",blok:e})},e._uid)):null}),(0,h.jsxs)("ul",{className:"flex flex-col pt-0 justify-between text-base space-y-4 xl:pr-1",children:[l?l.content.Legal_Menu.map(e=>(0,h.jsx)("li",{children:(0,h.jsx)(m.Dp,{type:"footer",blok:e})},e._uid)):null,(0,h.jsx)("li",{children:(0,h.jsx)(O,{className:"space-x-1.5 flex items-center",story:a})})]})]}),(0,h.jsxs)("div",{className:"text-xs space-x-12 items-center flex md:hidden",children:[(0,h.jsxs)("span",{className:"uppercase",children:["\xa9 ",new Date().getFullYear()," ",(null==l||null==(i=l.content)?void 0:i.Copyright)?l.content.Copyright:""]}),(0,h.jsx)(S(),{target:"_blank",href:"http://www.essentialaccessibility.com/ibc/en?utm_source=ibcenhomepage&utm_medium=iconlarge&utm_term=eachannelpage&utm_content=header&utm_campaign=ibcen","aria-label":"Download the Assistive Technology App",children:(0,h.jsx)("img",{src:"/images/icon-essential-accessibility.svg",alt:"Essential Accessibility",width:"64",height:"24"})})]})]})})};function el(e={serializable:!0}){let t={};return{get(n,r,i={miss:()=>Promise.resolve()}){let l=JSON.stringify(n);if(l in t)return Promise.resolve(e.serializable?JSON.parse(t[l]):t[l]);let a=r();return a.then(e=>i.miss(e)).then(()=>a)},set:(n,r)=>(t[JSON.stringify(n)]=e.serializable?JSON.stringify(r):r,Promise.resolve(r)),delete:e=>(delete t[JSON.stringify(e)],Promise.resolve()),clear:()=>(t={},Promise.resolve())}}function ea(e,t="up"){let n=Date.now();return{...e,status:t,lastUpdate:n,isUp:function(){return"up"===t||Date.now()-n>12e4},isTimedOut:function(){return"timed out"===t&&Date.now()-n<=12e4}}}var eo=class extends Error{name="AlgoliaError";constructor(e,t){super(e),t&&(this.name=t)}},es=class extends eo{stackTrace;constructor(e,t,n){super(e,n),this.stackTrace=t}},ec=class extends es{constructor(e){super("Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the Algolia Support team: https://alg.li/support.",e,"RetryError")}},eu=class extends es{status;constructor(e,t,n,r="ApiError"){super(e,n,r),this.status=t}},ed=class extends eo{response;constructor(e,t){super(e,"DeserializationError"),this.response=t}},eh=class extends eu{error;constructor(e,t,n,r){super(e,t,r,"DetailedApiError"),this.error=n}};function ep(e){let t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return{...e,request:{...e.request,headers:{...e.request.headers,...t}}}}var ef="5.27.0";function em(e,t,n){if(!e||"string"!=typeof e)throw Error("`appId` is missing.");if(!t||"string"!=typeof t)throw Error("`apiKey` is missing.");return function({appId:e,apiKey:t,authMode:n,algoliaAgents:r,...i}){let l=function(e,t,n="WithinHeaders"){let r={"x-algolia-api-key":t,"x-algolia-application-id":e};return{headers:()=>"WithinHeaders"===n?r:{},queryParameters:()=>"WithinQueryParameters"===n?r:{}}}(e,t,n),a=function({hosts:e,hostsCache:t,baseHeaders:n,logger:r,baseQueryParameters:i,algoliaAgent:l,timeouts:a,requester:o,requestsCache:s,responsesCache:c}){async function u(e){let n=await Promise.all(e.map(e=>t.get(e,()=>Promise.resolve(ea(e))))),r=n.filter(e=>e.isUp()),i=n.filter(e=>e.isTimedOut()),l=[...r,...i];return{hosts:l.length>0?l:e,getTimeout:(e,t)=>(0===i.length&&0===e?1:i.length+3+e)*t}}async function d(s,c,h=!0){let p=[],f=function(e,t){if("GET"!==e.method&&(void 0!==e.data||void 0!==t.data))return JSON.stringify(Array.isArray(e.data)?e.data:{...e.data,...t.data})}(s,c),m=function(e,t,n){let r={Accept:"application/json",...e,...t,...n},i={};return Object.keys(r).forEach(e=>{let t=r[e];i[e.toLowerCase()]=t}),i}(n,s.headers,c.headers),g="GET"===s.method?{...s.data,...c.data}:{},v={...i,...s.queryParameters,...g};if(l.value&&(v["x-algolia-agent"]=l.value),c&&c.queryParameters)for(let e of Object.keys(c.queryParameters))c.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(c.queryParameters[e])?v[e]=c.queryParameters[e].toString():v[e]=c.queryParameters[e];let y=0,x=async(e,n)=>{let i=e.pop();
24if(void 0===i)throw new ec(p.map(e=>ep(e)));let l={...a,...c.timeouts},u={data:f,headers:m,method:s.method,url:function(e,t,n){var r;let i=Object.keys(r=n).filter(e=>void 0!==r[e]).sort().map(e=>`${e}=${encodeURIComponent("[object Array]"===Object.prototype.toString.call(r[e])?r[e].join(","):r[e]).replace(/\+/g,"%20")}`).join("&"),l=`${e.protocol}://${e.url}${e.port?`:${e.port}`:""}/${"/"===t.charAt(0)?t.substring(1):t}`;return i.length&&(l+=`?${i}`),l}(i,s.path,v),connectTimeout:n(y,l.connect),responseTimeout:n(y,h?l.read:l.write)},d=t=>{let n={request:u,response:t,host:i,triesLeft:e.length};return p.push(n),n},g=await o.send(u);if(function({isTimedOut:e,status:t}){return e||function({isTimedOut:e,status:t}){return!e&&0==~~t}({isTimedOut:e,status:t})||2!=~~(t/100)&&4!=~~(t/100)}(g)){let l=d(g);return g.isTimedOut&&y++,r.info("Retryable failure",ep(l)),await t.set(i,ea(i,g.isTimedOut?"timed out":"down")),x(e,n)}if(function({status:e}){return 2==~~(e/100)}(g))try{return JSON.parse(g.content)}catch(e){throw new ed(e.message,g)}throw d(g),function({content:e,status:t},n){try{let r=JSON.parse(e);if("error"in r)return new eh(r.message,t,r.error,n);return new eu(r.message,t,n)}catch{}return new eu(e,t,n)}(g,p)},b=e.filter(e=>"readWrite"===e.accept||(h?"read"===e.accept:"write"===e.accept)),w=await u(b);return x([...w.hosts].reverse(),w.getTimeout)}return{hostsCache:t,requester:o,timeouts:a,logger:r,algoliaAgent:l,baseHeaders:n,baseQueryParameters:i,hosts:e,request:function(e,t={}){let r=e.useReadTransporter||"GET"===e.method;if(!r)return d(e,t,r);let l=()=>d(e,t);if(!0!==(t.cacheable||e.cacheable))return l();let a={request:e,requestOptions:t,transporter:{queryParameters:i,headers:n}};return c.get(a,()=>s.get(a,()=>s.set(a,l()).then(e=>Promise.all([s.delete(a),e]),e=>Promise.all([s.delete(a),Promise.reject(e)])).then(([e,t])=>t)),{miss:e=>c.set(a,e)})},requestsCache:s,responsesCache:c}}({hosts:[{url:`${e}-dsn.algolia.net`,accept:"read",protocol:"https"},{url:`${e}.algolia.net`,accept:"write",protocol:"https"}].concat(function(e){for(let t=e.length-1;t>0;t--){let n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e}([{url:`${e}-1.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${e}-2.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${e}-3.algolianet.com`,accept:"readWrite",protocol:"https"}])),...i,algoliaAgent:function({algoliaAgents:e,client:t,version:n}){let r=(function(e){let t={value:`Algolia for JavaScript (${e})`,add(e){let n=`; ${e.segment}${void 0!==e.version?` (${e.version})`:""}`;return -1===t.value.indexOf(n)&&(t.value=`${t.value}${n}`),t}};return t})(n).add({segment:t,version:n});return e.forEach(e=>r.add(e)),r}({algoliaAgents:r,client:"Lite",version:ef}),baseHeaders:{"content-type":"text/plain",...l.headers(),...i.baseHeaders},baseQueryParameters:{...l.queryParameters(),...i.baseQueryParameters}});return{transporter:a,appId:e,apiKey:t,clearCache:()=>Promise.all([a.requestsCache.clear(),a.responsesCache.clear()]).then(()=>void 0),get _ua(){return a.algoliaAgent.value},addAlgoliaAgent(e,t){a.algoliaAgent.add({segment:e,version:t})},setClientApiKey({apiKey:e}){n&&"WithinHeaders"!==n?a.baseQueryParameters["x-algolia-api-key"]=e:a.baseHeaders["x-algolia-api-key"]=e},searchForHits(e,t){return this.search(e,t)},searchForFacets(e,t){return this.search(e,t)},customPost({path:e,parameters:t,body:n},r){if(!e)throw Error("Parameter `path` is required when calling `customPost`.");let i="/{path}".replace("{path}",e);return a.request({method:"POST",path:i,queryParameters:t||{},headers:{},data:n||{}},r)},getRecommendations(e,t){if(e&&Array.isArray(e)&&(e={requests:e}),!e)throw Error("Parameter `getRecommendationsParams` is required when calling `getRecommendations`.");if(!e.requests)throw Error("Parameter `getRecommendationsParams.requests` is required when calling `getRecommendations`.");let n={method:"POST",path:"/1/indexes/*/recommendations",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0};return a.request(n,t)},search(e,t){if(e&&Array.isArray(e)&&(e={requests:e.map(({params:e,...t})=>"facet"===t.type?{...t,...e,type:"facet"}:{...t,...e,facet:void 0,maxFacetHits:void 0,facetQuery:void 0})}),!e)throw Error("Parameter `searchMethodParams` is required when calling `search`.");if(!e.requests)throw Error("Parameter `searchMethodParams.requests` is required when calling `search`.");let n={method:"POST",path:"/1/indexes/*/queries",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0};return a.request(n,t)}}}({appId:e,apiKey:t,timeouts:{connect:1e3,read:2e3,write:3e4},logger:{debug:(e,t)=>Promise.resolve(),info:(e,t)=>Promise.resolve(),error:(e,t)=>
24Promise.resolve()},requester:{send:function(e){return new Promise(t=>{let n=new XMLHttpRequest;n.open(e.method,e.url,!0),Object.keys(e.headers).forEach(t=>n.setRequestHeader(t,e.headers[t]));let r=(e,r)=>setTimeout(()=>{n.abort(),t({status:0,content:r,isTimedOut:!0})},e),i=r(e.connectTimeout,"Connection timeout"),l;n.onreadystatechange=()=>{n.readyState>n.OPENED&&void 0===l&&(clearTimeout(i),l=r(e.responseTimeout,"Socket timeout"))},n.onerror=()=>{0===n.status&&(clearTimeout(i),clearTimeout(l),t({content:n.responseText||"Network request failed",status:n.status,isTimedOut:!1}))},n.onload=()=>{clearTimeout(i),clearTimeout(l),t({content:n.responseText,status:n.status,isTimedOut:!1})},n.send(e.data)})}},algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:el(),requestsCache:el({serializable:!1}),hostsCache:function e(t){let n=[...t.caches],r=n.shift();return void 0===r?{get:(e,t,n={miss:()=>Promise.resolve()})=>t().then(e=>Promise.all([e,n.miss(e)])).then(([e])=>e),set:(e,t)=>Promise.resolve(t),delete:e=>Promise.resolve(),clear:()=>Promise.resolve()}:{get:(t,i,l={miss:()=>Promise.resolve()})=>r.get(t,i,l).catch(()=>e({caches:n}).get(t,i,l)),set:(t,i)=>r.set(t,i).catch(()=>e({caches:n}).set(t,i)),delete:t=>r.delete(t).catch(()=>e({caches:n}).delete(t)),clear:()=>r.clear().catch(()=>e({caches:n}).clear())}}({caches:[function(e){let t,n=`algolia-client-js-${e.key}`;function r(){return void 0===t&&(t=e.localStorage||window.localStorage),t}function i(){return JSON.parse(r().getItem(n)||"{}")}function l(e){r().setItem(n,JSON.stringify(e))}return{get:(t,n,r={miss:()=>Promise.resolve()})=>Promise.resolve().then(()=>(!function(){let t=e.timeToLive?1e3*e.timeToLive:null,n=Object.fromEntries(Object.entries(i()).filter(([,e])=>void 0!==e.timestamp));l(n),t&&l(Object.fromEntries(Object.entries(n).filter(([,e])=>{let n=new Date().getTime();return!(e.timestamp+t<n)})))}(),i()[JSON.stringify(t)])).then(e=>Promise.all([e?e.value:n(),void 0!==e])).then(([e,t])=>Promise.all([e,t||r.miss(e)])).then(([e])=>e),set:(e,t)=>Promise.resolve().then(()=>{let l=i();return l[JSON.stringify(e)]={timestamp:new Date().getTime(),value:t},r().setItem(n,JSON.stringify(l)),t}),delete:e=>Promise.resolve().then(()=>{let t=i();delete t[JSON.stringify(e)],r().setItem(n,JSON.stringify(t))}),clear:()=>Promise.resolve().then(()=>{r().removeItem(n)})}}({key:`${ef}-${e}`}),el()]}),...n})}var eg=(0,p.createContext)(null),ev=(0,p.createContext)(null),ey=n(2591),ex=n(1701);function eb(e){return(eb="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 ew(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{fallback:function(){}},n=t.fallback;return"undefined"==typeof window?n():e({window:window})}function ej(){}function eS(e){if(e.appId&&e.apiKey)return[e.appId,e.apiKey];if(!e.transporter)return[e.applicationID,e.apiKey];var t=e.transporter,n=t.headers||t.baseHeaders,r=t.queryParameters||t.baseQueryParameters,i="x-algolia-application-id",l="x-algolia-api-key";return[n[i]||r[i],n[l]||r[l]]}function ek(e,t){for(var n,r=0;r<e.length;r++)if(t(n=e[r],r,e))return n}function e_(e){return(e_="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 eC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eC(Object(n),!0).forEach(function(t){var r,i,l;r=e,i=t,l=n[t],(i=function(e){var t=function(e,t){if("object"!=e_(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=e_(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==e_(t)?t:String(t)}(i))in r?Object.defineProperty(r,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):r[i]=l}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eC(Object(n)).forEac
24h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function eE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,l,a,o=[],s=!0,c=!1;try{if(l=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=l.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return o}}(e,t)||eP(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eP(e,t){if(e){if("string"==typeof e)return eT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eT(e,t)}}function eT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var eO="2.17.2",eR="https://cdn.jsdelivr.net/npm/search-insights@".concat(eO,"/dist/search-insights.min.js");function eL(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.insightsClient,n=e.insightsInitParams,r=e.onEvent,i=e.$$internal,l=void 0!==i&&i,a=e.$$automatic,o=void 0!==a&&a,s=t;t||null===t||ew(function(e){var t=e.window,n=t.AlgoliaAnalyticsObject||"aa";"string"==typeof n&&(s=t[n]),s||(t.AlgoliaAnalyticsObject=n,t[n]||(t[n]=function(){t[n].queue||(t[n].queue=[]);for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];t[n].queue.push(r)},t[n].version=eO,t[n].shouldAddScript=!0),s=t[n])});var c=s||ej;return function(e){var t,i,a=e.instantSearchInstance,s=a.middleware.filter(function(e){return"ais.insights"===e.instance.$$type&&e.instance.$$internal}).map(function(e){return e.creator});a.unuse.apply(a,function(e){if(Array.isArray(e))return eT(e)}(s)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(s)||eP(s)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());var u=eE(eS(a.client),2),d=u[0],h=u[1],p=void 0,f=void 0,m=void 0,g=c.queue;if(Array.isArray(g)){var v=["setUserToken","init"].map(function(e){var t=ek(g.slice().reverse(),function(t){return eE(t,1)[0]===e})||[];return eE(t,2)[1]}),y=eE(v,2);f=y[0],p=y[1]}return c("getUserToken",null,function(e,t){m=eA(t)}),(n||!eI(c))&&c("init",eN({appId:d,apiKey:h,partial:!0},n)),{$$type:"ais.insights",$$internal:l,$$automatic:o,onStateChange:function(){},subscribe:function(){if(c.shouldAddScript){var e="[insights middleware]: could not load search-insights.js. Please load it manually following https://alg.li/insights-init";try{var t=document.createElement("script");t.async=!0,t.src=eR,t.onerror=function(){a.emit("error",Error(e))},document.body.appendChild(t),c.shouldAddScript=!1}catch(t){c.shouldAddScript=!1,a.emit("error",Error(e))}}},started:function(){c("addAlgoliaAgent","insights-middleware"),i=a.mainHelper;var e,s,u,d,h,g,v,y,x,b,w,j,S,k=c.queue;if(Array.isArray(k)){var _=["setUserToken","init"].map(function(e){var t=ek(k.slice().reverse(),function(t){return eE(t,1)[0]===e})||[];return eE(t,2)[1]}),C=eE(_,2);f=C[0],p=C[1]}d=(null==(s=(e=a)._initialResults)||null==(u=s[e.indexName])?void 0:u.state)||{},h=e.mainHelper.state,t={userToken:d.userToken||h.userToken,clickAnalytics:d.clickAnalytics||h.clickAnalytics},o||i.overrideStateWithoutTriggeringChangeEvent(eN(eN({},i.state),{},{clickAnalytics:!0})),l||a.scheduleSearch();var N=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=eA(e);if(n){var r=i.state.userToken;t?l():setTimeout(l,0)}function l(){i.overrideStateWithoutTriggeringChangeEvent(eN(eN({},i.state),{},{userToken:n})),r&&r!==e&&a.scheduleSearch()}};function E(e){N(e,!0),c("setUserToken",e)}var P=void 0,T=function(){if(("undefined"==typeof document?"undefined":eb(document))==="object"&&"string"==typeof document.cookie)for(var e="".concat("_ALGOLIA","="),t=document.cookie.split(";"),n=0;n<t.length;n++){for(var r=t[n];" "===r.charAt(0);)r=r.substring(1);if(0===r.indexOf(e))return r.substring(e.length,r.length)}}();P=T||"anonymous-".concat("xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}));var O=t.userToken;null!=n&&n.userToken&&(b=n.userToken),b?E(b):O?E(O):m?E(m):f?E(f):P&&(E(P),(null!=n&&n.useCookie||null!=(w=p)&&w.useCookie)&&(g=P,v=(null==n?void 0:n.cookieDuration)||(null==(j=p)?void 0:j.cookieDuration),(y=new Date).setTime(y.getTime()+(v||15552e6)),x="expires=".concat(y.toUTCString()),document.cookie="_ALGOLIA=".concat(g,";").concat(x,";path=/"))),c("onUserTokenChange",function(e){return N(e,!0)},{immediate:!0});var R=c;eI(c)&&(R=function(e,t){var n=eE(eS(a.client),2);return c(e,t,{headers:{"X-Algolia-Application-Id":n[0],"X-Algolia-API-Key":n[1]}})});var L=new Set;a.mainHelper.derivedHelpers[0].on("result",function(e){var t=e.results;t&&(!t.queryID||t.queryID!==S)&&(S=t.queryID,L.clear())}),a.sendEventToInsights=function(e){if(r)r(e,R);else if(e.insightsMethod){if("viewedObjectIDs"===e.insightsMethod){var t=e.payload,n=t.objectIDs.filter(function(e){return!L.has(e)});if(0===n.length)return;
24n.forEach(function(e){return L.add(e)}),t.objectIDs=n}e.payload.algoliaSource=["instantsearch"],o&&e.payload.algoliaSource.push("instantsearch-automatic"),"internal"===e.eventModifier&&e.payload.algoliaSource.push("instantsearch-internal"),R(e.insightsMethod,e.payload)}}},unsubscribe:function(){c("onUserTokenChange",void 0),a.sendEventToInsights=ej,i&&t&&(i.overrideStateWithoutTriggeringChangeEvent(eN(eN({},i.state),t)),a.scheduleSearch())}}}}function eI(e){var t=eE((e.version||"").split(".").map(Number),2),n=t[0],r=t[1];return n>=3||2===n&&r>=6||1===n&&r>=10}function eA(e){if(e)return"number"==typeof e?e.toString():e}function eM(e,t,n){var r=t.getHelper();return{uiState:n,helper:r,parent:t,instantSearchInstance:e,state:r.state,renderState:e.renderState,templatesConfig:e.templatesConfig,createURL:t.createURL,scopedResults:[],searchMetadata:{isSearchStalled:"stalled"===e.status},status:e.status,error:e.error}}function eF(e,t,n){var r=t.getResultsForWidget(n),i=t.getHelper();return{helper:i,parent:t,instantSearchInstance:e,results:r,scopedResults:t.getScopedResults(),state:r&&"_state"in r?r._state:i.state,renderState:e.renderState,templatesConfig:e.templatesConfig,createURL:t.createURL,searchMetadata:{isSearchStalled:"stalled"===e.status},status:e.status,error:e.error}}var eD=n(915);function eH(e){return(eH="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 eB(e,t,n){return(t=e$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function e$(e){var t=function(e,t){if("object"!=eH(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=eH(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==eH(t)?t:String(t)}var ez=function(e){e&&(window.document.title=e)},eV=function(){var e;function t(e){var n=this,r=e.windowTitle,i=e.writeDelay,l=e.createURL,a=e.parseURL,o=e.getLocation,s=e.start,c=e.dispose,u=e.push,d=e.cleanUrlOnDispose;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");eB(this,"$$type","ais.browser"),eB(this,"windowTitle",void 0),eB(this,"writeDelay",void 0),eB(this,"_createURL",void 0),eB(this,"parseURL",void 0),eB(this,"getLocation",void 0),eB(this,"writeTimer",void 0),eB(this,"_onPopState",void 0),eB(this,"inPopState",!1),eB(this,"isDisposed",!1),eB(this,"latestAcknowledgedHistory",0),eB(this,"_start",void 0),eB(this,"_dispose",void 0),eB(this,"_push",void 0),eB(this,"_cleanUrlOnDispose",void 0),this.windowTitle=r,this.writeTimer=void 0,this.writeDelay=void 0===i?400:i,this._createURL=l,this.parseURL=a,this.getLocation=o,this._start=s,this._dispose=c,this._push=u,this._cleanUrlOnDispose=void 0===d||d,ew(function(e){var t=e.window;ez(n.windowTitle&&n.windowTitle(n.read())),n.latestAcknowledgedHistory=t.history.length})}return e=[{key:"read",value:function(){return this.parseURL({qsModule:eD,location:this.getLocation()})}},{key:"write",value:function(e){var t=this;ew(function(n){var r=n.window,i=t.createURL(e),l=t.windowTitle&&t.windowTitle(e);t.writeTimer&&clearTimeout(t.writeTimer),t.writeTimer=setTimeout(function(){ez(l),t.shouldWrite(i)&&(t._push?t._push(i):r.history.pushState(e,l||"",i),t.latestAcknowledgedHistory=r.history.length),t.inPopState=!1,t.writeTimer=void 0},t.writeDelay)})}},{key:"onUpdate",value:function(e){var t=this;this._start&&this._start(function(){e(t.read())}),this._onPopState=function(){t.writeTimer&&(clearTimeout(t.writeTimer),t.writeTimer=void 0),t.inPopState=!0,e(t.read())},ew(function(e){e.window.addEventListener("popstate",t._onPopState)})}},{key:"createURL",value:function(e){return this._createURL({qsModule:eD,routeState:e,location:this.getLocation()})}},{key:"dispose",value:function(){var e=this;this._dispose&&this._dispose(),this.isDisposed=!0,ew(function(t){var n=t.window;e._onPopState&&n.removeEventListener("popstate",e._onPopState)}),this.writeTimer&&clearTimeout(this.writeTimer),this._cleanUrlOnDispose&&this.write({})}},{key:"start",value:function(){this.isDisposed=!1}},{key:"shouldWrite",value:function(e){var t=this;return ew(function(n){var r=n.window;if(t.isDisposed&&!t._cleanUrlOnDispose)return!1;var i=!(t.isDisposed&&t.latestAcknowledgedHistory!==r.history.length);return!t.inPopState&&i&&e!==r.location.href})}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,e$(r.key),r)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}();function eW(e){return(eW="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)}var eU=["configure"];function eq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eQ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
24t%2?eq(Object(n),!0).forEach(function(t){eK(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eq(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function eK(e,t,n){var r;return(r=function(e,t){if("object"!=eW(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=eW(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==eW(r)?r:String(r))in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eG(e){return e.configure,function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,eU)}function eY(e){return e!==Object(e)}function eZ(e){return(eZ="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 eJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eX(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eJ(Object(n),!0).forEach(function(t){e0(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eJ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function e0(e,t,n){var r;return(r=function(e,t){if("object"!=eZ(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=eZ(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==eZ(r)?r:String(r))in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var e1=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.router,n=void 0===t?function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.createURL,n=void 0===t?function(e){var t=e.qsModule,n=e.routeState,r=e.location,i=r.protocol,l=r.hostname,a=r.port,o=void 0===a?"":a,s=r.pathname,c=r.hash,u=t.stringify(n),d=""===o?"":":".concat(o);return u?"".concat(i,"//").concat(l).concat(d).concat(s,"?").concat(u).concat(c):"".concat(i,"//").concat(l).concat(d).concat(s).concat(c)}:t,r=e.parseURL,i=void 0===r?function(e){var t=e.qsModule,n=e.location;return t.parse(n.search.slice(1),{arrayLimit:99})}:r,l=e.writeDelay,a=e.windowTitle,o=e.getLocation;return new eV({createURL:n,parseURL:i,writeDelay:void 0===l?400:l,windowTitle:a,getLocation:void 0===o?function(){return ew(function(e){return e.window.location},{fallback:function(){throw Error("You need to provide `getLocation` to the `history` router in environments where `window` does not exist.")}})}:o,start:e.start,dispose:e.dispose,push:e.push,cleanUrlOnDispose:e.cleanUrlOnDispose})}():t,r=e.stateMapping,i=void 0===r?{$$type:"ais.simple",stateToRoute:function(e){return Object.keys(e).reduce(function(t,n){return eQ(eQ({},t),{},eK({},n,eG(e[n])))},{})},routeToState:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,n){return eQ(eQ({},t),{},eK({},n,eG(e[n])))},{})}}:r,l=e.$$internal,a=void 0!==l&&l;return function(e){var t=e.instantSearchInstance;t._createURL=function(e){var r=0===t.mainIndex.getWidgets().length?t._initialUiState:t.mainIndex.getWidgetUiState({}),l=Object.keys(e).reduce(function(t,n){return eX(eX({},t),{},e0({},n,e[n]))},r),a=i.stateToRoute(l);return n.createURL(a)};var r=void 0,l=t._initialUiState;return{$$type:"ais.router({router:".concat(n.$$type||"__unknown__",", stateMapping:").concat(i.$$type||"__unknown__","})"),$$internal:a,onStateChange:function(e){var t=e.uiState,l=i.stateToRoute(t);(void 0===r||!function e(t,n){if(t===n)return!0;
24if(eY(t)||eY(n)||"function"==typeof t||"function"==typeof n)return t===n;if(Object.keys(t).length!==Object.keys(n).length)return!1;for(var r=0,i=Object.keys(t);r<i.length;r++){var l=i[r];if(!(l in n)||!e(t[l],n[l]))return!1}return!0}(r,l))&&(n.write(l),r=l)},subscribe:function(){t._initialUiState=eX(eX({},l),i.routeToState(n.read())),n.onUpdate(function(e){t.mainIndex.getWidgets().length>0&&t.setUiState(i.routeToState(e))})},started:function(){var e;null==(e=n.start)||e.call(n)},unsubscribe:function(){n.dispose()}}}};function e2(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.map(function(e){var t;return["https://www.algolia.com/doc/api-reference/widgets/",e.name,"/js/",void 0!==(t=e.connector)&&t?"#connector":""].join("")}).join(", ");return function(e){return[e,"See documentation: ".concat(r)].filter(Boolean).join("\n\n")}}function e5(e){return"ais.index"===e.$$type}function e3(e){return(e3="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)}var e4=["facets","disjunctiveFacets","facetsRefinements","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacets","hierarchicalFacetsRefinements","ruleContexts"];function e6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function e8(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?e6(Object(n),!0).forEach(function(t){var r,i,l;r=e,i=t,l=n[t],(i=function(e){var t=function(e,t){if("object"!=e3(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=e3(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==e3(t)?t:String(t)}(i))in r?Object.defineProperty(r,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):r[i]=l}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e6(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var e9=function(e,t){t.facets,t.disjunctiveFacets,t.facetsRefinements,t.facetsExcludes,t.disjunctiveFacetsRefinements,t.numericRefinements,t.tagRefinements,t.hierarchicalFacets,t.hierarchicalFacetsRefinements,t.ruleContexts;var n=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,e4);return e.setQueryParameters(n)},e7=function(e,t){var n=[].concat(e.ruleContexts).concat(t.ruleContexts).filter(Boolean).filter(function(e,t,n){return n.indexOf(e)===t});return n.length>0?e.setQueryParameters({ruleContexts:n}):e},te=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(function(e,t){var n,r,i,l,a,o,s,c;return e9((c=e7((n=e.setQueryParameters({hierarchicalFacetsRefinements:e8(e8({},e.hierarchicalFacetsRefinements),t.hierarchicalFacetsRefinements)}),r=n.setQueryParameters({hierarchicalFacets:t.hierarchicalFacets.reduce(function(e,t){var n=function(e,t){if(!Array.isArray(e))return -1;for(var n=0;n<e.length;n++)if(t(e[n]))return n;return -1}(e,function(e){return e.name===t.name});if(-1===n)return e.concat(t);var r=e.slice();return r.splice(n,1,t),r},n.hierarchicalFacets)}),i=t.tagRefinements.reduce(function(e,t){return e.addTagRefinement(t)},r),l=i.setQueryParameters({numericRefinements:e8(e8({},i.numericRefinements),t.numericRefinements)}),a=l.setQueryParameters({disjunctiveFacetsRefinements:e8(e8({},l.disjunctiveFacetsRefinements),t.disjunctiveFacetsRefinements)}
24),o=a.setQueryParameters({facetsExcludes:e8(e8({},a.facetsExcludes),t.facetsExcludes)}),s=o.setQueryParameters({facetsRefinements:e8(e8({},o.facetsRefinements),t.facetsRefinements)}),t.disjunctiveFacets.reduce(function(e,t){return e.addDisjunctiveFacet(t)},s)),t),t.facets.reduce(function(e,t){return e.addFacet(t)},c)),t)})},tt=0;function tn(e){return(tn="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)}var tr=["initialSearchParameters"],ti=["initialRecommendParameters"];function tl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ta(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tl(Object(n),!0).forEach(function(t){to(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function to(e,t,n){var r;return(r=function(e,t){if("object"!=tn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=tn(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==tn(r)?r:String(r))in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ts(e){return function(e){if(Array.isArray(e))return tc(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return tc(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tc(e,t)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function tu(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var td=e2({name:"index-widget"});function th(e,t){var n=t.state,r=t.recommendState,i=t.isPageReset,l=t._uiState;n!==e.state&&(e.state=n,e.emit("change",{state:e.state,results:e.lastResults,isPageReset:i,_uiState:l})),r!==e.recommendState&&(e.recommendState=r)}function tp(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.reduce(function(e,n){return!e5(n)&&(n.getWidgetUiState||n.getWidgetState)?n.getWidgetUiState?n.getWidgetUiState(e,t):n.getWidgetState(e,t):e},n)}function tf(e,t){var n=t.initialSearchParameters,r=tu(t,tr);return e.reduce(function(e,t){return!t.getWidgetSearchParameters||e5(t)?e:"search"===t.dependsOn&&t.getWidgetParameters?t.getWidgetParameters(e,r):t.getWidgetSearchParameters(e,r)},n)}function tm(e,t){var n=t.initialRecommendParameters,r=tu(t,ti);return e.reduce(function(e,t){return!e5(t)&&"recommend"===t.dependsOn&&t.getWidgetParameters?t.getWidgetParameters(e,r):e},n)}let tg=function(e){if(void 0===e||void 0===e.indexName)throw Error(td("The `indexName` option is required."));var t=e.indexName,n=e.indexId,r=void 0===n?t:n,i=[],l={},a=null,o=null,s=null,c=null,u=null,d=!1,h=!1;return{$$type:"ais.index",$$widgetType:"ais.index",getIndexName:function(){return t},getIndexId:function(){return r},getHelper:function(){return s},getResults:function(){var e;return null!=(e=c)&&e.lastResults?(c.lastResults._state=s.state,c.lastResults):null},getResultsForWidget:function(e){var t;return"recommend"!==e.dependsOn||e5(e)||void 0===e.$$id?this.getResults():null!=(t=s)&&t.lastRecommendResults?s.lastRecommendResults[e.$$id]:null},getPreviousState:function(){return u},getScopedResults:function(){var e,n=this.getParent();return function e(t){return t.filter(e5).reduce(function(t,n){return t.concat.apply(t,[{indexId:n.getIndexId(),results:n.getResults(),helper:n.getHelper()}].concat(ts(e(n.getWidgets()))))},[])}
24(n?n.getWidgets():0===t.length?this.getWidgets():[this])},getParent:function(){return o},createURL:function(e){return"function"==typeof e?a._createURL(to({},r,e(l))):a._createURL(to({},r,tp(i,{searchParameters:e,helper:s})))},getWidgets:function(){return i},addWidgets:function(e){var t=this;if(!Array.isArray(e))throw Error(td("The `addWidgets` method expects an array of widgets."));if(e.some(function(e){return"function"!=typeof e.init&&"function"!=typeof e.render}))throw Error(td("The widget definition expects a `render` and/or an `init` method."));return e.forEach(function(e){!e5(e)&&(a&&"recommend"===e.dependsOn?a._hasRecommendWidget=!0:a?a._hasSearchWidget=!0:"recommend"===e.dependsOn?d=!0:h=!0,"recommend"===e.dependsOn&&(e.$$id=tt++))}),i=i.concat(e),a&&e.length&&(th(s,{state:tf(i,{uiState:l,initialSearchParameters:s.state}),recommendState:tm(i,{uiState:l,initialRecommendParameters:s.recommendState}),_uiState:l}),e.forEach(function(e){e.getRenderState&&tv({renderState:e.getRenderState(a.renderState[t.getIndexId()]||{},eM(a,t,a._initialUiState)),instantSearchInstance:a,parent:t})}),e.forEach(function(e){e.init&&e.init(eM(a,t,a._initialUiState))}),a.scheduleSearch()),this},removeWidgets:function(e){var t=this;if(!Array.isArray(e))throw Error(td("The `removeWidgets` method expects an array of widgets."));if(e.some(function(e){return"function"!=typeof e.dispose}))throw Error(td("The widget definition expects a `dispose` method."));if((i=i.filter(function(t){return -1===e.indexOf(t)})).forEach(function(e){e5(e)||(a&&"recommend"===e.dependsOn?a._hasRecommendWidget=!0:a?a._hasSearchWidget=!0:"recommend"===e.dependsOn?d=!0:h=!0)}),a&&e.length){var n=e.reduce(function(e,n){var r=n.dispose({helper:s,state:e.cleanedSearchState,recommendState:e.cleanedRecommendState,parent:t});return r instanceof ex.RecommendParameters?e.cleanedRecommendState=r:r&&(e.cleanedSearchState=r),e},{cleanedSearchState:s.state,cleanedRecommendState:s.recommendState}),r=n.cleanedSearchState,o=n.cleanedRecommendState,c=a.future.preserveSharedStateOnUnmount?tf(i,{uiState:l,initialSearchParameters:new ex.SearchParameters({index:this.getIndexName()})}):tf(i,{uiState:tp(i,{searchParameters:r,helper:s}),initialSearchParameters:r});l=tp(i,{searchParameters:c,helper:s}),s.setState(c),s.recommendState=o,i.length&&a.scheduleSearch()}return this},init:function(e){var n,p=this,f=e.instantSearchInstance,m=e.parent,g=e.uiState;if(null===s){a=f,o=m,l=g[r]||{};var v=f.mainHelper,y=tf(i,{uiState:l,initialSearchParameters:new ex.SearchParameters({index:t})}),x=tm(i,{uiState:l,initialRecommendParameters:new ex.RecommendParameters});(s=ex({},y.index,y)).recommendState=x,s.search=function(){return f.onStateChange?(f.onStateChange({uiState:f.mainIndex.getWidgetUiState({}),setUiState:function(e){return f.setUiState(e,!1)}}),v):v.search()},s.searchWithoutTriggeringOnStateChange=function(){return v.search()},s.searchForFacetValues=function(e,t,n,r){var i=s.state.setQueryParameters(r);return v.searchForFacetValues(e,t,n,i)},c=v.derive(function(){return te.apply(void 0,[v.state].concat(ts(function(e){for(var t=e.getParent(),n=[e.getHelper().state];null!==t;)n=[t.getHelper().state].concat(n),t=t.getParent();return n}(p))))},function(){return p.getHelper().recommendState});var b=null==(n=f._initialResults)?void 0:n[this.getIndexId()];if(null!=b&&b.results){var w=new ex.SearchResults(new ex.SearchParameters(b.state),b.results);c.lastResults=w,s.lastResults=w}if(null!=b&&b.recommendResults){var j=new ex.RecommendResults(new ex.RecommendParameters({params:b.recommendResults.params}),b.recommendResults.results);c.lastRecommendResults=j,s.lastRecommendResults=j}s.on("change",function(e){e.isPageReset&&function e(t){var n=t.filter(e5);0!==n.length&&n.forEach(function(t){var n=t.getHelper();th(n,{state:n.state.resetPage(),recommendState:n.recommendState,isPageReset:!0}),e(t.getWidgets())})}(i)}),c.on("search",function(){f.scheduleStalledRender()}),c.on("result",function(e){var t=e.results;f.scheduleRender(),s.lastResults=t,u=null==t?void 0:t._state}),c.on("recommend:result",function(e){var t=e.recommend;f.scheduleRender(),s.lastRecommendResults=t.results}
24),i.forEach(function(e){e.getRenderState&&tv({renderState:e.getRenderState(f.renderState[p.getIndexId()]||{},eM(f,p,g)),instantSearchInstance:f,parent:p})}),i.forEach(function(e){e.init&&e.init(eM(f,p,g))}),s.on("change",function(e){var t=e.state,n=e._uiState;l=tp(i,{searchParameters:t,helper:s},n||{}),f.onStateChange||f.onInternalStateChange()}),b&&f.scheduleRender(),d&&(f._hasRecommendWidget=!0),h&&(f._hasSearchWidget=!0)}},render:function(e){var t,n=this,r=e.instantSearchInstance;"error"===r.status&&!r.mainHelper.hasPendingRequests()&&u&&s.setState(u);var l=this.getResults()||null!=(t=c)&&t.lastRecommendResults?i:i.filter(e5);(l=l.filter(function(e){return!e.shouldRender||e.shouldRender({instantSearchInstance:r})})).forEach(function(e){e.getRenderState&&tv({renderState:e.getRenderState(r.renderState[n.getIndexId()]||{},eF(r,n,e)),instantSearchInstance:r,parent:n})}),l.forEach(function(e){e.render&&e.render(eF(r,n,e))})},dispose:function(){var e,t,n=this;i.forEach(function(e){e.dispose&&s&&e.dispose({helper:s,state:s.state,recommendState:s.recommendState,parent:n})}),a=null,o=null,null==(e=s)||e.removeAllListeners(),s=null,null==(t=c)||t.detach(),c=null},getWidgetUiState:function(e){return i.filter(e5).reduce(function(e,t){return t.getWidgetUiState(e)},ta(ta({},e),{},to({},r,ta(ta({},e[r]),l))))},getWidgetState:function(e){return this.getWidgetUiState(e)},getWidgetSearchParameters:function(e,t){var n=t.uiState;return tf(i,{uiState:n,initialSearchParameters:e})},refreshUiState:function(){l=tp(i,{searchParameters:this.getHelper().state,helper:this.getHelper()},l)},setIndexUiState:function(e){var t="function"==typeof e?e(l):e;a.setUiState(function(e){return ta(ta({},e),{},to({},r,t))})}}};function tv(e){var t=e.renderState,n=e.instantSearchInstance,r=e.parent,i=r?r.getIndexId():n.mainIndex.getIndexId();n.renderState=ta(ta({},n.renderState),{},to({},i,ta(ta({},n.renderState[i]),t)))}var ty=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.descendantName,r=t.modifierName;return"".concat("ais","-").concat(e).concat(n?"-".concat(n):"").concat(r?"--".concat(r):"")}};function tx(e,t){return(Array.isArray(t)?t:t.split(".")).reduce(function(e,t){return e&&e[t]},e)}var tb={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},tw=/[&<>"']/g,tj=RegExp(tw.source),tS={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},tk=/&(amp|quot|lt|gt|#39);/g,t_=RegExp(tk.source);function tC(e){return e&&t_.test(e)?e.replace(tk,function(e){return tS[e]}):e}function tN(e){return(tN="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 tE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tE(Object(n),!0).forEach(function(t){tT(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tE(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tT(e,t,n){var r;return(r=function(e,t){if("object"!=tN(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=tN(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==tN(r)?r:String(r))in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tO={highlightPreTag:"__ais-highlight__",highlightPostTag:"__/ais-highlight__"},tR={highlightPreTag:"<mark>",highlightPostTag:"</mark>"};function tL(e){return(e&&tj.test(e)?e.replace(tw,function(e){return tb[e]}):e).replace(RegExp(tO.highlightPreTag,"g"),tR.highlightPreTag).replace(RegExp(tO.highlightPostTag,"g"),tR.highlightPostTag)}function tI(e){return isPlainObject(e)&&"string"!=typeof e.value?Object.keys(e).reduce(function(t,n){return tP(tP({},t),{},tT({},n,tI(e[n])))},{}):Array.isArray(e)?e.map(tI):tP(tP({},e),{},{value:tL(e.value)})}var tA=ty("Highlight");function tM(e){var t=tR.highlightPreTag,n=tR.highlightPostTag;return e.map(function(e){return e.isHighlighted?t+e.value+n:e.value}).join("")}var tF=new RegExp(/\w/i);function tD(e){return(tD="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 tH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
24t%2?tH(Object(n),!0).forEach(function(t){var r,i,l;r=e,i=t,l=n[t],(i=function(e){var t=function(e,t){if("object"!=tD(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=tD(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tD(t)?t:String(t)}(i))in r?Object.defineProperty(r,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):r[i]=l}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function t$(e){return e.some(function(e){return e.isHighlighted})?e.map(function(t,n){var r,i,l,a,o;return tB(tB({},t),{},{isHighlighted:(l=e[n],a=(null==(r=e[n+1])?void 0:r.isHighlighted)||!0,o=(null==(i=e[n-1])?void 0:i.isHighlighted)||!0,tF.test(tC(l.value))||o!==a?!l.isHighlighted:!o)})}):e.map(function(e){return tB(tB({},e),{},{isHighlighted:!1})})}function tz(e){var t=tR.highlightPostTag,n=tR.highlightPreTag,r=e.split(n),i=r.shift(),l=i?[{value:i,isHighlighted:!1}]:[];return r.forEach(function(e){var n=e.split(t);l.push({value:n[0],isHighlighted:!0}),""!==n[1]&&l.push({value:n[1],isHighlighted:!1})}),l}var tV=ty("ReverseHighlight"),tW=ty("Snippet"),tU=ty("ReverseSnippet");function tq(e){return(tq="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 tQ(e){return(tQ="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 tK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tK(Object(n),!0).forEach(function(t){var r,i,l;r=e,i=t,l=n[t],(i=function(e){var t=function(e,t){if("object"!=tQ(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=tQ(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tQ(t)?t:String(t)}(i))in r?Object.defineProperty(r,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):r[i]=l}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tK(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var tY=Promise.resolve();function tZ(e){var t=null,n=!1,r=function(){for(var r=arguments.length,i=Array(r),l=0;l<r;l++)i[l]=arguments[l];null===t&&(t=tY.then(function(){if(t=null,n){n=!1;return}e.apply(void 0,i)}))};return r.wait=function(){if(null===t)throw Error("The deferred function should be called before calling `wait()`");return t},r.cancel=function(){null!==t&&(n=!0)},r}function tJ(e){return(tJ="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 tX(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function t0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function t1(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?t0(Object(n),!0).forEach(function(t){t2(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t0(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function t2(e,t,n){var r;return(r=function(e,t){if("object"!=tJ(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=tJ(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==tJ(r)?r:String(r))in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t5(e){var t=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0;return e.replace(/%s/g,function(){return encodeURIComponent(n[i++])})};return Object.keys(e).map(function(n){var r;return t("%s=%s",n,(r=e[n],"[object Object]"===Object.prototype.toString.call(r)||"[object Array]"===Object.prototype.toString.call(r))?JSON.stringify(e[n]):e[n])}).join("&")}function t3(e){return(t3="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 t4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function t6(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
24t%2?t4(Object(n),!0).forEach(function(t){var r,i,l;r=e,i=t,l=n[t],(i=function(e){var t=function(e,t){if("object"!=t3(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=t3(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==t3(t)?t:String(t)}(i))in r?Object.defineProperty(r,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):r[i]=l}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t4(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function t8(e,t){var n=e[t.getIndexId()]||{};t.getHelper().setState(t.getWidgetSearchParameters(t.getHelper().state,{uiState:n})),t.getWidgets().filter(e5).forEach(function(t){return t8(e,t)})}function t9(e){return(t9="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 t7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?t7(Object(n),!0).forEach(function(t){ni(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t7(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nt(e,t){return(nt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nn(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nr(e){return(nr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ni(e,t,n){return(t=nl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nl(e){var t=function(e,t){if("object"!=t9(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=t9(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==t9(t)?t:String(t)}var na=e2({name:"instantsearch"});function no(){return"#"}var ns={preserveSharedStateOnUnmount:!1,persistHierarchicalRootCount:!1},nc=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),e&&nt(i,e);var t,n,r=(t=function(){if("undefined"==typeof Reflect||!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(e){return!1}}(),function(){var e,n=nr(i);return e=t?Reflect.construct(n,arguments,nr(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===t9(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return nn(e)}(this,e)});function i(e){if(!(this instanceof i))throw TypeError("Cannot call a class as a function");ni(nn(t=r.call(this)),"client",void 0),ni(nn(t),"indexName",void 0),ni(nn(t),"compositionID",void 0),ni(nn(t),"insightsClient",void 0),ni(nn(t),"onStateChange",null),ni(nn(t),"future",void 0),ni(nn(t),"helper",void 0),ni(nn(t),"mainHelper",void 0),ni(nn(t),"mainIndex",void 0),ni(nn(t),"started",void 0),ni(nn(t),"templatesConfig",void 0),ni(nn(t),"renderState",{}),ni(nn(t),"_stalledSearchDelay",void 0),ni(nn(t),"_searchStalledTimer",void 0),ni(nn(t),"_initialUiState",void 0),ni(nn(t),"_initialResults",void 0),ni(nn(t),"_createURL",void 0),ni(nn(t),"_searchFunction",void 0),ni(nn(t),"_mainHelperSearch",void 0),ni(nn(t),"_hasSearchWidget",!1),ni(nn(t),"_hasRecommendWidget",!1),ni(nn(t),"_insights",void 0),ni(nn(t),"middleware",[]),ni(nn(t),"sendEventToInsights",void 0),ni(nn(t),"status","idle"),ni(nn(t),"error",void 0),ni(nn(t),"scheduleSearch",tZ(function(){t.started&&t.mainHelper.search()})),ni(nn(t),"scheduleRender",tZ(function(){var e,n=!(arguments.length>0)||void 0===arguments[0]||arguments[0];!(null!=(e=t.mainHelper)&&e.hasPendingRequests())&&(clearTimeout(t._searchStalledTimer),t._searchStalledTimer=null,n&&(t.status="idle",t.error=void 0)),t.mainIndex.render({instantSearchInstance:nn(t)}),t.emit("render")})),ni(nn(t),"onInternalStateChange",tZ(function(){var e=t.mainIndex.getWidgetUiState({});t.middleware.forEach(function(t){t.instance.onStateChange({uiState:e})})})),t.setMaxListeners(100);var t,n=e.indexName,l=e.compositionID,a=e.numberLocale,o=e.initialUiState,s=e.routing,c=void 0===s?null:s,u=e.insights,d=void 0===u?void 0:u,h=e.searchFunction,p=e.stalledSearchDelay,f=e.searchClient,m=void 0===f?null:f,g=e.insightsClient,v=void 0===g?null:g,y=e.onStateChange,x=e.future,b=void 0===x?ne(ne({},ns),e.future||{}):x;if(null===m)throw Error(na("The `searchClient` option is required."));if("function"!=typeof m.search)throw Error("The `searchClient` must implement a `search` method.\n\nSee: https://www.algolia.com/doc/guides/building-search-ui/going-further/backend-search/in-depth/backend-instantsearch/js/");if("function"==typeof m.addAlgoliaAgent&&m.addAlgoliaAgent("instantsearch.js (".concat("4.78.3",")")),v&&"function"!=typeof v)throw Error(na("The `insightsClient` option should be a function."));if(t.client=m,t.future=b,t.insightsClient=v,t.indexName=void 0===n?"":n,t.compositionID=l,t.helper=null,t.mainHelper=null,t.mainIndex=tg({indexName:t.compositionID||t.indexName}),t.onStateChange=void 0===y?null:y,t.started=!1,t.templatesConfig={helpers:{formatNumber:function(e,t){var n;
24return n=Number(t(e)),n.toLocaleString(a)},highlight:function(e,t){try{var n,r,i,l,a,o,s,c,u,d=JSON.parse(e);return t((r=(n=tG(tG({},d),{},{hit:this})).attribute,i=n.highlightedTagName,l=void 0===i?"mark":i,a=n.hit,o=n.cssClasses,s=void 0===o?{}:o,c=(tx(a._highlightResult,r)||{}).value,u=tA({descendantName:"highlighted"})+(s.highlighted?" ".concat(s.highlighted):""),(void 0===c?"":c).replace(RegExp(tR.highlightPreTag,"g"),"<".concat(l,' class="').concat(u,'">')).replace(RegExp(tR.highlightPostTag,"g"),"</".concat(l,">"))))}catch(e){throw Error('\nThe highlight helper expects a JSON object of the format:\n{ "attribute": "name", "highlightedTagName": "mark" }')}},reverseHighlight:function(e,t){try{var n,r,i,l,a,o,s,c,u,d=JSON.parse(e);return t((r=(n=tG(tG({},d),{},{hit:this})).attribute,i=n.highlightedTagName,l=void 0===i?"mark":i,a=n.hit,o=n.cssClasses,s=void 0===o?{}:o,c=(tx(a._highlightResult,r)||{}).value,u=tV({descendantName:"highlighted"})+(s.highlighted?" ".concat(s.highlighted):""),tM(t$(tz(void 0===c?"":c))).replace(RegExp(tR.highlightPreTag,"g"),"<".concat(l,' class="').concat(u,'">')).replace(RegExp(tR.highlightPostTag,"g"),"</".concat(l,">"))))}catch(e){throw Error('\n  The reverseHighlight helper expects a JSON object of the format:\n  { "attribute": "name", "highlightedTagName": "mark" }')}},snippet:function(e,t){try{var n,r,i,l,a,o,s,c,u,d=JSON.parse(e);return t((r=(n=tG(tG({},d),{},{hit:this})).attribute,i=n.highlightedTagName,l=void 0===i?"mark":i,a=n.hit,o=n.cssClasses,s=void 0===o?{}:o,c=(tx(a._snippetResult,r)||{}).value,u=tW({descendantName:"highlighted"})+(s.highlighted?" ".concat(s.highlighted):""),(void 0===c?"":c).replace(RegExp(tR.highlightPreTag,"g"),"<".concat(l,' class="').concat(u,'">')).replace(RegExp(tR.highlightPostTag,"g"),"</".concat(l,">"))))}catch(e){throw Error('\nThe snippet helper expects a JSON object of the format:\n{ "attribute": "name", "highlightedTagName": "mark" }')}},reverseSnippet:function(e,t){try{var n,r,i,l,a,o,s,c,u,d=JSON.parse(e);return t((r=(n=tG(tG({},d),{},{hit:this})).attribute,i=n.highlightedTagName,l=void 0===i?"mark":i,a=n.hit,o=n.cssClasses,s=void 0===o?{}:o,c=(tx(a._snippetResult,r)||{}).value,u=tU({descendantName:"highlighted"})+(s.highlighted?" ".concat(s.highlighted):""),tM(t$(tz(void 0===c?"":c))).replace(RegExp(tR.highlightPreTag,"g"),"<".concat(l,' class="').concat(u,'">')).replace(RegExp(tR.highlightPostTag,"g"),"</".concat(l,">"))))}catch(e){throw Error('\n  The reverseSnippet helper expects a JSON object of the format:\n  { "attribute": "name", "highlightedTagName": "mark" }')}},insights:function(e,t){try{var n,r=JSON.parse(e),i=r.method,l=r.payload;return t((n=tG({objectIDs:[this.objectID]},l),function(e){var t,n=e.method,r=e.payload;if("object"!==tq(r))throw Error("The insights helper expects the payload to be an object.");try{t=btoa(encodeURIComponent(JSON.stringify(r)))}catch(e){throw Error("Could not JSON serialize the payload object.")}return'data-insights-method="'.concat(n,'" data-insights-payload="').concat(t,'"')}({method:i,payload:n})))}catch(e){throw Error('\nThe insights helper expects a JSON object of the format:\n{ "method": "method-name", "payload": { "eventName": "name of the event" } }')}}},compileOptions:{}},t._stalledSearchDelay=void 0===p?200:p,t._searchStalledTimer=null,t._createURL=no,t._initialUiState=void 0===o?{}:o,t._initialResults=null,t._insights=d,h&&(t._searchFunction=h),t.sendEventToInsights=ej,c){var w="boolean"==typeof c?{}:c;w.$$internal=!0,t.use(e1(w))}if(d){var j="boolean"==typeof d?{}:d;j.$$internal=!0,t.use(eL(j))}return ew(function(e){var t,n;return(null==(t=e.window.navigator)||null==(n=t.userAgent)?void 0:n.indexOf("Algolia Crawler"))>-1},{fallback:function(){return!1}})&&t.use(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.$$internal,n=void 0!==t&&t;return function(e){var t=e.instantSearchInstance,r={widgets:[]},i=document.createElement("meta"),l=document.querySelector("head");return i.name="instantsearch:widgets",{$$type:"ais.metadata",$$internal:n,onStateChange:function(){},subscribe:function(){setTimeout(function(){var e=t.client;r.ua=e.transporter&&e.transporter.userAgent?e.transporter.userAgent.value:e._ua,function e(t,n,r){var i=eM(n,n.mainIndex,n._initialUiState);t.forEach(function(t){var l={};
24if(t.getWidgetRenderState){var a=t.getWidgetRenderState(i);a&&a.widgetParams&&(l=a.widgetParams)}var o=Object.keys(l).filter(function(e){return void 0!==l[e]});r.widgets.push({type:t.$$type,widgetType:t.$$widgetType,params:o}),"ais.index"===t.$$type&&e(t.getWidgets(),n,r)})}(t.mainIndex.getWidgets(),t,r),t.middleware.forEach(function(e){return r.widgets.push({middleware:!0,type:e.instance.$$type,internal:e.instance.$$internal})}),i.content=JSON.stringify(r),l.appendChild(i)},0)},started:function(){},unsubscribe:function(){i.remove()}}}}({$$internal:!0})),t}return n=[{key:"_isSearchStalled",get:function(){return"stalled"===this.status}},{key:"use",value:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.map(function(t){var n=ne({$$type:"__unknown__",$$internal:!1,subscribe:ej,started:ej,unsubscribe:ej,onStateChange:ej},t({instantSearchInstance:e}));return e.middleware.push({creator:t,instance:n}),n});return this.started&&i.forEach(function(e){e.subscribe(),e.started()}),this}},{key:"unuse",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.middleware.filter(function(e){return t.includes(e.creator)}).forEach(function(e){return e.instance.unsubscribe()}),this.middleware=this.middleware.filter(function(e){return!t.includes(e.creator)}),this}},{key:"EXPERIMENTAL_use",value:function(){return this.use.apply(this,arguments)}},{key:"addWidget",value:function(e){return this.addWidgets([e])}},{key:"addWidgets",value:function(e){if(!Array.isArray(e))throw Error(na("The `addWidgets` method expects an array of widgets. Please use `addWidget`."));if(e.some(function(e){return"function"!=typeof e.init&&"function"!=typeof e.render}))throw Error(na("The widget definition expects a `render` and/or an `init` method."));if(this.compositionID&&e.some(e5))throw Error(na("The `index` widget cannot be used with a composition-based InstantSearch implementation."));return this.mainIndex.addWidgets(e),this}},{key:"removeWidget",value:function(e){return this.removeWidgets([e])}},{key:"removeWidgets",value:function(e){if(!Array.isArray(e))throw Error(na("The `removeWidgets` method expects an array of widgets. Please use `removeWidget`."));if(e.some(function(e){return"function"!=typeof e.dispose}))throw Error(na("The widget definition expects a `dispose` method."));return this.mainIndex.removeWidgets(e),this}},{key:"start",value:function(){var e=this;if(this.started)throw Error(na("The `start` method has already been called once."));var t=this.mainHelper||ex(this.client,this.indexName,void 0,{persistHierarchicalRootCount:this.future.persistHierarchicalRootCount});if(this.compositionID&&(t.searchForFacetValues=t.searchForCompositionFacetValues.bind(t)),t.search=function(){return e.status="loading",e.scheduleRender(!1),e._hasSearchWidget&&(e.compositionID?t.searchWithComposition():t.searchOnlyWithDerivedHelpers()),e._hasRecommendWidget&&t.recommend(),t},this._searchFunction){var n={search:function(){return new Promise(ej)}};this._mainHelperSearch=t.search.bind(t),t.search=function(){var r=e.mainIndex.getHelper(),i=ex(n,r.state.index,r.state);return i.once("search",function(t){var n=t.state;r.overrideStateWithoutTriggeringChangeEvent(n),e._mainHelperSearch()}),i.on("change",function(e){var t=e.state;r.setState(t)}),e._searchFunction(i),t}}if(t.on("error",function(t){var n=t.error;if(!(n instanceof Error)){var r=n;n=Object.keys(r).reduce(function(e,t){return e[t]=r[t],e},Error(r.message))}n.error=n,e.error=n,e.status="error",e.scheduleRender(!1),e.emit("error",n)}),this.mainHelper=t,this.middleware.forEach(function(e){e.instance.subscribe()}),this.mainIndex.init({instantSearchInstance:this,parent:null,uiState:this._initialUiState}),this._initialResults){!function(e,t){if(t&&("transporter"in e&&!e._cacheHydrated||e._useCache&&"function"==typeof e.addAlgoliaAgent)){var n=[Object.keys(t).reduce(function(e,n){var r=t[n],i=r.state,l=r.requestParams,a=r.results,o=a&&i?a.map(function(e,t){return t1({indexName:i.index||e.index},null!=l&&l[t]||e.params?{params:t5((null==l?void 0:l[t])||e.params.split("&").reduce(function(e,t){var n,r=function(e){if(Array.isArray(e))return e}(n=t.split("="))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,l,a,o=[],s=!0,c=!1;try{l=(n=n.call(e)).next,!1;for(;!(s=(r=l.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(e){c=!0,i=e}
24finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return o}}(n,2)||function(e,t){if(e){if("string"==typeof e)return tX(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tX(e,t)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=r[0],l=r[1];return e[i]=l?decodeURIComponent(l):"",e},{}))}:{})}):[];return e.concat(o)},[])],r=Object.keys(t).reduce(function(e,n){var r=t[n].results;return r?e.concat(r):e},[]);if("transporter"in e&&!e._cacheHydrated){e._cacheHydrated=!0;var i=e.search.bind(e);e.search=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),l=1;l<n;l++)r[l-1]=arguments[l];var a=Array.isArray(t)?t.map(function(e){return t1(t1({},e),{},{params:t5(e.params)})}):t5(t.requestBody.params);return e.transporter.responsesCache.get({method:"search",args:[a].concat(r)},function(){return i.apply(void 0,[t].concat(r))})},e.transporter.responsesCache.set({method:"search",args:n},{results:r})}if(!("transporter"in e)){var l="/1/indexes/*/queries_body_".concat(JSON.stringify({requests:n}));e.cache=t1(t1({},e.cache),{},t2({},l,JSON.stringify({results:Object.keys(t).map(function(e){return t[e].results})})))}}}(this.client,this._initialResults),this.mainHelper._recommendCache=Object.keys(r=this._initialResults).reduce(function(e,t){var n=r[t];return n.recommendResults?t6(t6({},e),n.recommendResults.results):e},{});var r,i=this.scheduleSearch;this.scheduleSearch=tZ(ej),tZ(function(){e.scheduleSearch=i})()}else this.mainIndex.getWidgets().length>0&&this.scheduleSearch();this.helper=this.mainIndex.getHelper(),this.started=!0,this.middleware.forEach(function(e){e.instance.started()}),void 0===this._insights&&t.derivedHelpers[0].once("result",function(){e.mainIndex.getScopedResults().some(function(e){var t=e.results;return null==t?void 0:t._automaticInsights})&&e.use(eL({$$internal:!0,$$automatic:!0}))})}},{key:"dispose",value:function(){var e;this.scheduleSearch.cancel(),this.scheduleRender.cancel(),clearTimeout(this._searchStalledTimer),this.removeWidgets(this.mainIndex.getWidgets()),this.mainIndex.dispose(),this.started=!1,this.removeAllListeners(),null==(e=this.mainHelper)||e.removeAllListeners(),this.mainHelper=null,this.helper=null,this.middleware.forEach(function(e){e.instance.unsubscribe()})}},{key:"scheduleStalledRender",value:function(){var e=this;this._searchStalledTimer||(this._searchStalledTimer=setTimeout(function(){e.status="stalled",e.scheduleRender()},this._stalledSearchDelay))}},{key:"setUiState",value:function(e){var t=this,n=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(!this.mainHelper)throw Error(na("The `start` method needs to be called before `setUiState`."));this.mainIndex.refreshUiState();var r="function"==typeof e?e(this.mainIndex.getWidgetUiState({})):e;this.onStateChange&&n?this.onStateChange({uiState:r,setUiState:function(e){t8("function"==typeof e?e(r):e,t.mainIndex),t.scheduleSearch(),t.onInternalStateChange()}}):(t8(r,this.mainIndex),this.scheduleSearch(),this.onInternalStateChange())}},{key:"getUiState",value:function(){return this.started&&this.mainIndex.refreshUiState(),this.mainIndex.getWidgetUiState({})}},{key:"createURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.started)throw Error(na("The `start` method needs to be called before `createURL`."));return this._createURL(e)}},{key:"refresh",value:function(){if(!this.mainHelper)throw Error(na("The `start` method needs to be called before `refresh`."));this.mainHelper.clearCache().search()}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nl(r.key),r)}}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(ey),nu=n(8806);let nd="7.15.7";function nh(e){return(nh="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)}var np=Object.prototype.hasOwnProperty;function nf(e,t,n){var r,i;if(null!=n&&n(e,t)||e===t)return!0;
24if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((i=e.length)===t.length)for(;i--&&nf(e[i],t[i],n););return -1===i}if(!r||"object"===nh(e)){for(r in i=0,e)if(np.call(e,r)&&++i&&!np.call(t,r)||!(r in t)||!nf(e[r],t[r],n))return!1;return Object.keys(t).length===i}}return e!=e&&t!=t}function nm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ng=(0,p.createContext)(null);function nv(){return(0,p.useContext)(ng)}var ny=(0,p.createContext)(null);function nx(){return(0,p.useContext)(ny)}var nb=(0,p.createContext)(null);function nw(){return(0,p.useContext)(nb)}var nj=n(9742);function nS(e){return(nS="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 nk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nk(Object(n),!0).forEach(function(t){var r,i,l;r=e,i=t,l=n[t],(i=function(e){var t=function(e,t){if("object"!=nS(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=nS(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==nS(t)?t:String(t)}(i))in r?Object.defineProperty(r,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):r[i]=l}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var nC=["react (".concat(p.version,")"),"react-instantsearch (".concat(nd,")"),"react-instantsearch-core (".concat(nd,")")],nN="react-instantsearch-server (".concat(nd,")");function nE(e,t){"function"==typeof e.addAlgoliaAgent&&t.filter(Boolean).forEach(function(t){e.addAlgoliaAgent(t)})}var nP=["children"];function nT(e){var t=e.children,n=function(e){var t=(function(e){if(Array.isArray(e))return e}(d=(0,p.useReducer)(function(e){return e+1},0))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,l,a,o=[],s=!0,c=!1;try{l=(n=n.call(e)).next,!1;for(;!(s=(r=l.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return o}}(d,2)||function(e,t){if(e){if("string"==typeof e)return nm(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nm(e,t)}}(d,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1],n=nv(),r=nx(),i=nw(),l=null==r?void 0:r.initialResults,a=(0,p.useRef)(e),o=n||l||i,s=(0,p.useRef)(null);if(r&&(s=r.ssrSearchRef),null===s.current){var c,u,d,h,f=new nc(e);f._schedule=function(e){f._schedule.queue.push(e),clearTimeout(f._schedule.timer),f._schedule.timer=setTimeout(function(){f._schedule.queue.forEach(function(e){e()}),f._schedule.queue=[]},0)},f._schedule.queue=[],o&&(f._initialResults=l||{}),nE(e.searchClient,[].concat(nC,[n&&nN,(h="undefined"!=typeof window&&(null==(c=window.next)?void 0:c.version)||(void 0!==nj?null==nj.env?void 0:"":void 0))?"next.js (".concat(h,")"):null])),o&&f.start(),n&&n.notifyServer({search:f}),e.routing,s.current=f}var m,g=s.current,v=a.current;v.indexName!==e.indexName&&(g.helper.setIndex(e.indexName||"").search(),a.current=e),v.searchClient!==e.searchClient&&(nE(e.searchClient,[].concat(nC,[n&&nN])),g.mainHelper.setClient(e.searchClient).search(),a.current=e),v.onStateChange!==e.onStateChange&&(g.onStateChange=e.onStateChange,a.current=e),v.searchFunction!==e.searchFunction&&(g._searchFunction=e.searchFunction,a.current=e),v.stalledSearchDelay!==e.stalledSearchDelay&&(g._stalledSearchDelay=null!=(m=e.stalledSearchDelay)?m:200,a.current=e),nf(v.future,e.future)||(g.future=n_(n_({},ns),e.future),a.current=e);var y=(0,p.useRef)(null);return(0,nu.useSyncExternalStore)((0,p.useCallback)(function(){var e=s.current;return null===y.current?e.started||(e.start(),t()):(clearTimeout(y.current),e._preventWidgetCleanup=!1),function(){clearTimeout(e._schedule.timer),y.current=setTimeout(function(){e.dispose()}),e._preventWidgetCleanup=!0}
24},[t]),function(){return s.current},function(){return s.current})}(function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,nP));return n.started?p.createElement(ev.Provider,{value:n},p.createElement(eg.Provider,{value:n.mainIndex},t)):null}function nO(e){return(nO="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 nR(e){return(nR="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 nL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nL(Object(n),!0).forEach(function(t){nA(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nL(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nA(e,t,n){var r;return(r=function(e,t){if("object"!=nR(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=nR(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==nR(r)?r:String(r))in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nM=e2({name:"configure",connector:!0});function nF(e,t){return e.setQueryParameters(Object.keys(t.searchParameters).reduce(function(e,t){return nI(nI({},e),{},nA({},t,void 0))},{}))}let nD=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ej,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ej;return function(n){if(!n||!function(e){if("object"!==nO(e)||null===e||"[object Object]"!==(null===e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(n.searchParameters))throw Error(nM("The `searchParameters` option expects an object."));var r={};return{$$type:"ais.configure",init:function(t){var n=t.instantSearchInstance;e(nI(nI({},this.getWidgetRenderState(t)),{},{instantSearchInstance:n}),!0)},render:function(t){var n=t.instantSearchInstance;e(nI(nI({},this.getWidgetRenderState(t)),{},{instantSearchInstance:n}),!1)},dispose:function(e){var r=e.state;return t(),nF(r,n)},getRenderState:function(e,t){var n,r=this.getWidgetRenderState(t);return nI(nI({},e),{},{configure:nI(nI({},r),{},{widgetParams:nI(nI({},r.widgetParams),{},{searchParameters:te(new ex.SearchParameters(null==(n=e.configure)?void 0:n.widgetParams.searchParameters),new ex.SearchParameters(r.widgetParams.searchParameters)).getQueryParams()})})})},getWidgetRenderState:function(e){var t=e.helper;return r.refine||(r.refine=function(e){var r=te(nF(t.state,n),new ex.SearchParameters(e));n.searchParameters=e,t.setState(r).search()}),{refine:r.refine,widgetParams:n}},getWidgetSearchParameters:function(e,t){var r=t.uiState;return te(e,new ex.SearchParameters(nI(nI({},r.configure),n.searchParameters)))},getWidgetUiState:function(e){return nI(nI({},e),{},{configure:nI(nI({},e.configure),n.searchParameters)})}}}};function nH(e){var t,n,r;return new ex.SearchResults(e,[{query:null!=(t=e.query)?t:"",page:null!=(n=e.page)?n:0,hitsPerPage:null!=(r=e.hitsPerPage)?r:20,hits:[],nbHits:0,nbPages:0,params:"",exhaustiveNbHits:!0,exhaustiveFacetsCount:!0,processingTimeMS:0,index:e.index}],{__isArtificial:!0})}function nB(e){return(nB="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 n$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nz(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
24t%2?n$(Object(n),!0).forEach(function(t){var r,i,l;r=e,i=t,l=n[t],(i=function(e){var t=function(e,t){if("object"!=nB(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=nB(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==nB(t)?t:String(t)}(i))in r?Object.defineProperty(r,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):r[i]=l}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nV(e){var t=e.getHelper(),n=e.getResults()||nH(t.state),r=e.getScopedResults().map(function(t){var r=t.indexId===e.getIndexId()?n:nH(t.helper.state);return nz(nz({},t),{},{results:t.results||r})});return{results:n,scopedResults:r,recommendResults:t.lastRecommendResults}}function nW(e,t){if(!e)throw Error("Invariant failed")}function nU(){var e=(0,p.useContext)(eg);return nW(null!==e,"The <Index> component must be used within <InstantSearch>."),e}function nq(){var e=(0,p.useContext)(ev);return nW(null!==e,"Hooks must be used inside the <InstantSearch> component.\n\nThey are not compatible with the `[email protected]` and `react-instantsearch-dom` packages, so make sure to use the <InstantSearch> component from `[email protected]`."),e}function nQ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function nK(e){var t,n=function(e){if(Array.isArray(e))return e}(t=(0,p.useState)(function(){return e}))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,l,a,o=[],s=!0,c=!1;try{l=(n=n.call(e)).next,!1;for(;!(s=(r=l.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return o}}(t,2)||function(e,t){if(e){if("string"==typeof e)return nQ(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nQ(e,t)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=n[0],i=n[1];return nf(r,e)||i(e),r}var nG=f.use,nY="undefined"!=typeof window?p.useLayoutEffect:p.useEffect;function nZ(e){return(nZ="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)}var nJ=["instantSearchInstance","widgetParams"],nX=["widgetParams"];function n0(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function n1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?n1(Object(n),!0).forEach(function(t){var r,i,l;r=e,i=t,l=n[t],(i=function(e){var t=function(e,t){if("object"!=nZ(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=nZ(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==nZ(t)?t:String(t)}(i))in r?Object.defineProperty(r,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):r[i]=l}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function n5(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function n3(e){var t,n,r,i,l,a,o,s,c,u,d,h,f,m,g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},y=nv(),x=nx(),b=nq(),w=nU(),j=nK(g),S=nK(v),k=(0,p.useRef)(!0),_=(0,p.useRef)(null),C=(0,p.useRef)(b.status),N=(0,p.useMemo)(function(){return n2(n2({},e(function(e,t){if(t){k.current=!0;return}if(k.current){var n=e.instantSearchInstance,r=(e.widgetParams,n5(e,nJ));nf(r,_.current,function(e,t){return(null==e?void 0:e.constructor)===Function&&(null==t?void 0:t.constructor)===Function})&&n.status===C.current||(T(r),_.current=r,C.current=n.status)}},function(){k.current=!1})(j)),S)},[e,j,S]),E=function(e){if(Array.isArray(e))return e}(t=(0,p.useState)(function(){if(N.getWidgetRenderState){var e,t=w.getHelper(),n=w.getWidgetUiState({})[w.getIndexId()];t.state=(null==(e=N.getWidgetSearchParameters)?void 0:e.call(N,t.state,{uiState:n}))||t.state;var r=nV(w),i=r.results,l=r.scopedResults,a=r.recommendResults,o=N.getWidgetRenderState({helper:t,parent:w,instantSearchInstance:b,results:"recommend"===N.dependsOn&&a&&x?a[x.recommendIdx.current++]:i,scopedResults:l,state:t.state,render
24State:b.renderState,templatesConfig:b.templatesConfig,createURL:w.createURL,searchMetadata:{isSearchStalled:"stalled"===b.status},status:b.status,error:b.error});return o.widgetParams,n5(o,nX)}return{}}))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,l,a,o=[],s=!0,c=!1;try{l=(n=n.call(e)).next,!1;for(;!(s=(r=l.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return o}}(t,2)||function(e,t){if(e){if("string"==typeof e)return n0(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return n0(e,t)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),P=E[0],T=E[1];return l=(n={widget:N,parentIndex:w,props:j,shouldSsr:!!y}).widget,a=n.parentIndex,o=n.props,s=n.shouldSsr,c=nw(),u=(0,p.useRef)(o),(0,p.useEffect)(function(){u.current=o},[o]),d=(0,p.useRef)(l),(0,p.useEffect)(function(){d.current=l},[l]),h=(0,p.useRef)(null),f=s&&!a.getWidgets().includes(l),nY(function(){var e=d.current;return h.current?(clearTimeout(h.current),nf(o,u.current)||(a.removeWidgets([e]),a.addWidgets([l]))):s||a.addWidgets([l]),function(){h.current=setTimeout(function(){m._schedule(function(){m._preventWidgetCleanup||a.removeWidgets([e])})})}},[a,l,s,m=nq(),o]),(f||(null==c||null==(r=c.current)?void 0:r.status)==="pending")&&a.addWidgets([l]),"undefined"==typeof window&&null!=c&&c.current&&"ais.index"!==l.$$type&&(nG(c.current),"ais.dynamicWidgets"!==l.$$type&&null!=(i=m.helper)&&i.lastResults&&nG(c.current)),P}function n4(e){return(n4="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 n6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n8(e){return n3(nD,{searchParameters:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?n6(Object(n),!0).forEach(function(t){var r,i,l;r=e,i=t,l=n[t],(i=function(e){var t=function(e,t){if("object"!=n4(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=n4(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n4(t)?t:String(t)}(i))in r?Object.defineProperty(r,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):r[i]=l}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n6(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e)},{$$widgetType:"ais.configure"}),null}let n9=e=>{let{className:t,children:n,href:r="",target:i,onClick:l,locale:a}=e,o=a||C();return r.startsWith("/".concat(o,"/"))?r=r.substring(o.length+1):r.startsWith("".concat(o,"/"))&&((r=r.substring(o.length+1)).startsWith("/")||(r="/"+r)),(0,h.jsx)(S(),{target:/^https?[:]\/\//.test(r)?"_blank":"_self",onClick:l,href:r,className:t,children:n})},n7=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,re=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,rt={};function rn(e,t){return((t||rt).jsx?re:n7).test(e)}let rr=/[ \t\n\f\r]/g;function ri(e){return""===e.replace(rr,"")}class rl{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function ra(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new rl(n,r,t)}function ro(e){return e.toLowerCase()}rl.prototype.normal={},rl.prototype.property={},rl.prototype.space=void 0;class rs{constructor(e,t){this.attribute=t,this.property=e}}rs.prototype.attribute="",rs.prototype.booleanish=!1,rs.prototype.boolean=!1,rs.prototype.commaOrSpaceSeparated=!1,rs.prototype.commaSeparated=!1,rs.prototype.defined=!1,rs.prototype.mustUseProperty=!1,rs.prototype.number=!1,rs.prototype.overloadedBoolean=!1,rs.prototype.property="",rs.prototype.spaceSeparated=!1,rs.prototype.space=void 0;
24let rc=0,ru=rv(),rd=rv(),rh=rv(),rp=rv(),rf=rv(),rm=rv(),rg=rv();function rv(){return 2**++rc}let ry=Object.keys(u);class rx extends rs{constructor(e,t,n,r){let i=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",r),"number"==typeof n)for(;++i<ry.length;){let e=ry[i];!function(e,t,n){n&&(e[t]=n)}(this,ry[i],(n&u[e])===u[e])}}}function rb(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let l=new rx(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[ro(r)]=r,n[ro(l.attribute)]=r}return new rl(t,n,e.space)}rx.prototype.defined=!0;let rw=rb({properties:{ariaActiveDescendant:null,ariaAtomic:rd,ariaAutoComplete:null,ariaBusy:rd,ariaChecked:rd,ariaColCount:rp,ariaColIndex:rp,ariaColSpan:rp,ariaControls:rf,ariaCurrent:null,ariaDescribedBy:rf,ariaDetails:null,ariaDisabled:rd,ariaDropEffect:rf,ariaErrorMessage:null,ariaExpanded:rd,ariaFlowTo:rf,ariaGrabbed:rd,ariaHasPopup:null,ariaHidden:rd,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:rf,ariaLevel:rp,ariaLive:null,ariaModal:rd,ariaMultiLine:rd,ariaMultiSelectable:rd,ariaOrientation:null,ariaOwns:rf,ariaPlaceholder:null,ariaPosInSet:rp,ariaPressed:rd,ariaReadOnly:rd,ariaRelevant:null,ariaRequired:rd,ariaRoleDescription:rf,ariaRowCount:rp,ariaRowIndex:rp,ariaRowSpan:rp,ariaSelected:rd,ariaSetSize:rp,ariaSort:null,ariaValueMax:rp,ariaValueMin:rp,ariaValueNow:rp,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function rj(e,t){return t in e?e[t]:t}function rS(e,t){return rj(e,t.toLowerCase())}let rk=rb({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:rm,acceptCharset:rf,accessKey:rf,action:null,allow:null,allowFullScreen:ru,allowPaymentRequest:ru,allowUserMedia:ru,alt:null,as:null,async:ru,autoCapitalize:null,autoComplete:rf,autoFocus:ru,autoPlay:ru,blocking:rf,capture:null,charSet:null,checked:ru,cite:null,className:rf,cols:rp,colSpan:null,content:null,contentEditable:rd,controls:ru,controlsList:rf,coords:rp|rm,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ru,defer:ru,dir:null,dirName:null,disabled:ru,download:rh,draggable:rd,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ru,formTarget:null,headers:rf,height:rp,hidden:rh,high:rp,href:null,hrefLang:null,htmlFor:rf,httpEquiv:rf,id:null,imageSizes:null,imageSrcSet:null,inert:ru,inputMode:null,integrity:null,is:null,isMap:ru,itemId:null,itemProp:rf,itemRef:rf,itemScope:ru,itemType:rf,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ru,low:rp,manifest:null,max:null,maxLength:rp,media:null,method:null,min:null,minLength:rp,multiple:ru,muted:ru,name:null,nonce:null,noModule:ru,noValidate:ru,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ru,optimum:rp,pattern:null,ping:rf,placeholder:null,playsInl
24ine:ru,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ru,referrerPolicy:null,rel:rf,required:ru,reversed:ru,rows:rp,rowSpan:rp,sandbox:rf,scope:null,scoped:ru,seamless:ru,selected:ru,shadowRootClonable:ru,shadowRootDelegatesFocus:ru,shadowRootMode:null,shape:null,size:rp,sizes:null,slot:null,span:rp,spellCheck:rd,src:null,srcDoc:null,srcLang:null,srcSet:null,start:rp,step:null,style:null,tabIndex:rp,target:null,title:null,translate:null,type:null,typeMustMatch:ru,useMap:null,value:rd,width:rp,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:rf,axis:null,background:null,bgColor:null,border:rp,borderColor:null,bottomMargin:rp,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ru,declare:ru,event:null,face:null,frame:null,frameBorder:null,hSpace:rp,leftMargin:rp,link:null,longDesc:null,lowSrc:null,marginHeight:rp,marginWidth:rp,noResize:ru,noHref:ru,noShade:ru,noWrap:ru,object:null,profile:null,prompt:null,rev:null,rightMargin:rp,rules:null,scheme:null,scrolling:rd,standby:null,summary:null,text:null,topMargin:rp,valueType:null,version:null,vAlign:null,vLink:null,vSpace:rp,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ru,disableRemotePlayback:ru,prefix:null,property:null,results:rp,security:null,unselectable:null},space:"html",transform:rS}),r_=rb({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
24-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:rg,accentHeight:rp,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:rp,amplitude:rp,arabicForm:null,ascent:rp,attributeName:null,attributeType:null,azimuth:rp,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:rp,by:null,calcMode:null,capHeight:rp,className:rf,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:rp,diffuseConstant:rp,direction:null,display:null,dur:null,divisor:rp,dominantBaseline:null,download:ru,dx:null,dy:null,edgeMode:null,editable:null,elevation:rp,enableBackground:null,end:null,event:null,exponent:rp,externalResourcesRequired:null,fill:null,fillOpacity:rp,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:rm,g2:rm,glyphName:rm,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:rp,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:rp,horizOriginX:rp,horizOriginY:rp,id:null,ideographic:rp,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:rp,k:rp,k1:rp,k2:rp,k3:rp,k4:rp,kernelMatrix:rg,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:rp,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:rp,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
24Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:rp,overlineThickness:rp,paintOrder:null,panose1:null,path:null,pathLength:rp,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:rf,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:rp,pointsAtY:rp,pointsAtZ:rp,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:rg,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:rg,rev:rg,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:rg,requiredFeatures:rg,requiredFonts:rg,requiredFormats:rg,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:rp,specularExponent:rp,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:rp,strikethroughThickness:rp,string:null,stroke:null,strokeDashArray:rg,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:rp,strokeOpacity:rp,strokeWidth:null,style:null,surfaceScale:rp,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:rg,tabIndex:rp,tableValues:null,target:null,targetX:rp,targetY:rp,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:rg,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:rp,underlineThickness:rp,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:rp,values:null,vAlphabetic:rp,vMathematical:rp,vectorEffect:null,vHanging:rp,vIdeographic:rp,version:null,vertAdvY:rp,vertOriginX:rp,vertOriginY:rp,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:rp,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:rj}),rC=rb({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),rN=rb({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:rS}),rE=rb({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),rP=ra([rw,rk,rC,rN,rE],"html"),rT=ra([rw,r_,rC,rN,rE],"svg"),rO=/[A-Z]/g,rR=/-[a-z]/g,rL=/^data[-\w.:]+$/i;function rI(e){return"-"+e.toLowerCase()}function rA(e){return e.charAt(1).toUpperCase()}let rM={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var rF=n(3833);let rD=rB("end"),rH=rB("start");function rB(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function r$(e){return e&&"object"==typeof e?"position"in e||"type"in e?rV(e.position):"start"in e||"end"in e?rV(e):"line"in e||"column"in e?rz(e):"":""}function rz(e){return rW(e&&e.line)+":"+rW(e&&e.column)}function rV(e){return rz(e&&e.start)+"-"+rz(e&&e.end)}function rW(e){return e&&"number"==typeof e?e:1}class rU extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},l=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(l=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){let e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=a?a.line:void 0,this.name=r$(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=l&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}rU.prototype.file="",rU.prototype.name="",rU.prototype.reason="",rU.prototype.message="",rU.prototype.stack="",rU.prototype.column=void 0,rU.prototype.line=void 0,rU.prototype.ancestors=void 0,rU.prototype.cause=void 0,rU.prototype.fatal=void 0,rU.prototype.place=void 0,rU.prototype.ruleId=void 0,rU.prototype.source=void 0;let rq={}.hasOwnProperty,rQ=new Map,rK=/[A-Z]/g,rG=new Set(["table","tbody","thead","tfoot","tr"]),rY=new Set(["td","th"]),rZ="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function rJ(e,t,n){var r;return"element"===t.type?function(e,t,n){let r=e.schema,i=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(e.schema=rT),e.ancestors.push(t);let l=r2(e,t.tagName,!1),a=function(e,t){let n,r,i={};for(r in t.properties)if("children"!==r&&rq.call(t.properties,r)){let l=function(e,t,n){let r=function(e,t){let n=ro(t),r=t,i=rs;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&rL.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(rR,rA);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!rR.test(e)){let n=e.replace(rO,rI);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=rx}return new i(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e,t){let n={};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return rF(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new rU("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});
24throw t.file=e.filePath||void 0,t.url=rZ+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)rq.call(e,t)&&(n[function(e){let t=e.replace(rK,r3);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?rM[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(l){let[r,a]=l;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof a&&rY.has(t.tagName)?n=a:i[r]=a}}return n&&((i.style||(i.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),i}(e,t),o=r1(e,t);return rG.has(t.tagName)&&(o=o.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&ri(e.value):ri(e))})),rX(e,a,l,t),r0(a,o),e.ancestors.pop(),e.schema=r,e.create(t,l,a,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}r5(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){let r=e.schema,i=r;"svg"===t.name&&"html"===r.space&&(e.schema=rT),e.ancestors.push(t);let l=null===t.name?e.Fragment:r2(e,t.name,!0),a=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let l=i.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else r5(e,t.position);else{let i,l=r.name;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,i=e.evaluater.evaluateExpression(t.expression)}else r5(e,t.position);else i=null===r.value||r.value;n[l]=i}return n}(e,t),o=r1(e,t);return rX(e,a,l,t),r0(a,o),e.ancestors.pop(),e.schema=r,e.create(t,l,a,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);r5(e,t.position)}(e,t):"root"===t.type?function(e,t,n){let r={};return r0(r,r1(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?(r=0,t.value):void 0}function rX(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function r0(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function r1(e,t){let n=[],r=-1,i=e.passKeys?new Map:rQ;for(;++r<t.children.length;){let l,a=t.children[r];if(e.passKeys){let e="element"===a.type?a.tagName:"mdxJsxFlowElement"===a.type||"mdxJsxTextElement"===a.type?a.name:void 0;if(e){let t=i.get(e)||0;l=e+"-"+t,i.set(e,t+1)}}let o=rJ(e,a,l);void 0!==o&&n.push(o)}return n}function r2(e,t,n){let r;if(n)if(t.includes(".")){let e,n=t.split("."),i=-1;for(;++i<n.length;){let t=rn(n[i])?{type:"Identifier",name:n[i]}:{type:"Literal",value:n[i]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(i&&"Literal"===t.type),optional:!1}:t}r=e}else r=rn(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return rq.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);r5(e)}function r5(e,t){let n=new rU("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=rZ+"#cannot-handle-mdx-estrees-without-createevaluater",n}function r3(e){return"-"+e.toLowerCase()}let r4={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},r6={};function r8(e,t){let n=t||r6;return r9(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function r9(e,t,n){var r;if((r=e)&&"object"==typeof r){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return r7(e.children,t,n)}return Array.isArray(e)?r7(e,t,n):""}function r7(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=r9(e[i],t,n);return r.join("")}function ie(e,t,n,r){let i,l=e.length,a=0;if(t=t<0?-t>l?0:l+t:t>l?l:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a<r.length;)(i=r.slice(a,a+1e4)).unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function it(e,t){return e.length>0?(ie(e,e.length,0,t),e):t}class ir{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),Number.POSITIVE_INFINITY);return n&&ii(this.left,n),r.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),ii(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),ii(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e<this.left.length){let t=this.left.splice(e,Number.POSITIVE_INFINITY);ii(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);ii(this.left,t.reverse())}}}function ii(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function il(e){let t,n,r,i,l,a,o,s={},c=-1,u=new ir(e);for(;++c<u.length;){for(;c in s;)c=s[c];if(t=u.get(c),c&&"chunkFlow"===t[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&((r=0)<(a=t[1]._tokenizer.events).length&&"lineEndingBlank"===a[r][1].type&&(r+=2),r<a.length&&"content"===a[r][1].type))for(;++r<a.length&&"content"!==a[r][1].type;)"chunkText"===a[r][1].type&&(a[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(s,function(e,t){let n,r,i=e.get(t)[1],l=e.get(t)[2],a=t-1,o=[],s=i._tokenizer;!s&&(s=l.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(s._c
24ontentTypeTextTrailing=!0));let c=s.events,u=[],d={},h=-1,p=i,f=0,m=0,g=[0];for(;p;){for(;e.get(++a)[1]!==p;);o.push(a),!p._tokenizer&&(n=l.sliceStream(p),p.next||n.push(null),r&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(n),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),r=p,p=p.next}for(p=i;++h<c.length;)"exit"===c[h][0]&&"enter"===c[h-1][0]&&c[h][1].type===c[h-1][1].type&&c[h][1].start.line!==c[h][1].end.line&&(m=h+1,g.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),h=g.length;h--;){let t=c.slice(g[h],g[h+1]),n=o.pop();u.push([n,n+t.length-1]),e.splice(n,2,t)}for(u.reverse(),h=-1;++h<u.length;)d[f+u[h][0]]=f+u[h][1],f+=u[h][1]-u[h][0]-1;return d}(u,c)),c=s[c],o=!0);else if(t[1]._container){for(r=c,n=void 0;r--;)if("lineEnding"===(i=u.get(r))[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(u.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else if("linePrefix"===i[1].type||"listItemIndent"===i[1].type);else break;n&&(t[1].end={...u.get(n)[1].start},(l=u.slice(n,c)).unshift(t),u.splice(n,c-n+1,l))}}return ie(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!o}let ia={}.hasOwnProperty;function io(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let r,i=(ia.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];if(l)for(r in l){ia.call(i,r)||(i[r]=[]);let e=l[r];!function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);ie(e,0,0,r)}(i[r],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}let is=iw(/[A-Za-z]/),ic=iw(/[\dA-Za-z]/),iu=iw(/[#-'*+\--9=?A-Z^-~]/);function id(e){return null!==e&&(e<32||127===e)}let ih=iw(/\d/),ip=iw(/[\dA-Fa-f]/),im=iw(/[!-/:-@[-`{-~]/);function ig(e){return null!==e&&e<-2}function iv(e){return null!==e&&(e<0||32===e)}function iy(e){return -2===e||-1===e||32===e}let ix=iw(/\p{P}|\p{S}/u),ib=iw(/\s/);function iw(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function ij(e,t,n,r){let i=r?r-1:Number.POSITIVE_INFINITY,l=0;return function(r){return iy(r)?(e.enter(n),function r(a){return iy(a)&&l++<i?(e.consume(a),r):(e.exit(n),t(a))}(r)):t(r)}}let iS={tokenize:function(e){let t,n=e.attempt(this.parser.constructs.contentInitial,function(t){return null===t?void e.consume(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ij(e,n,"linePrefix"))},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return ig(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},ik={tokenize:function(e){let t,n,r,i=this,l=[],a=0;return o;function o(t){if(a<l.length){let n=l[a];return i.containerState=n[1],e.attempt(n[0].continuation,s,c)(t)}return c(t)}function s(e){if(a++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&v();let r=i.events.length,l=r;for(;l--;)if("exit"===i.events[l][0]&&"chunkFlow"===i.events[l][1].type){n=i.events[l][1].end;break}g(a);let o=r;for(;o<i.events.length;)i.events[o][1].end={...n},o++;return ie(i.events,l+1,0,i.events.slice(r)),i.events.length=o,c(e)}return o(e)}function c(n){if(a===l.length){if(!t)return h(n);if(t.currentConstruct&&t.currentConstruct.concrete)return f(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(i_,u,d)(n)}function u(e){return t&&v(),g(a),h(e)}function d(e){return i.parser.lazy[i.now().line]=a!==l.length,r=i.now().offset,f(e)}function h(t){return i.containerState={},e.attempt(i_,p,f)(t)}function p(e){return a++,l.push([i.currentConstruct,i.containerState]),h(e)}function f(r){if(null===r){t&&v(),g(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){m(e.exit("chunkFlow"),!0),g(0),e.consume(n);return}return ig(n)?(e.consume(n),m(e.exit("chunkFlow")),a=0,i.interrupt=void 0,o):(e.consume(n),t)}(r)}function m(e,l){let o=i.sliceStream(e);
24if(l&&o.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(o),i.parser.lazy[e.start.line]){let e,n,l=t.events.length;for(;l--;)if(t.events[l][1].start.offset<r&&(!t.events[l][1].end||t.events[l][1].end.offset>r))return;let o=i.events.length,s=o;for(;s--;)if("exit"===i.events[s][0]&&"chunkFlow"===i.events[s][1].type){if(e){n=i.events[s][1].end;break}e=!0}for(g(a),l=o;l<i.events.length;)i.events[l][1].end={...n},l++;ie(i.events,s+1,0,i.events.slice(o)),i.events.length=l}}function g(t){let n=l.length;for(;n-- >t;){let t=l[n];i.containerState=t[1],t[0].exit.call(i,e)}l.length=t}function v(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},i_={tokenize:function(e,t,n){return ij(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},iC={partial:!0,tokenize:function(e,t,n){return function(t){return iy(t)?ij(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||ig(e)?t(e):n(e)}}},iN={resolve:function(e){return il(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):ig(t)?e.check(iE,l,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function l(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},iE={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ij(e,i,"linePrefix")};function i(i){if(null===i||ig(i))return n(i);let l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},iP={tokenize:function(e){let t=this,n=e.attempt(iC,function(r){return null===r?void e.consume(r):(e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,ij(e,e.attempt(this.parser.constructs.flow,r,e.attempt(iN,r)),"linePrefix")));return n;function r(r){return null===r?void e.consume(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},iT={resolveAll:iI()},iO=iL("string"),iR=iL("text");function iL(e){return{resolveAll:iI("text"===e?iA:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,l,a);return l;function l(e){return s(e)?i(e):a(e)}function a(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),o)}function o(e){return s(e)?(t.exit("data"),i(e)):(t.consume(e),o)}function s(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function iI(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function iA(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r,i=e[n-1][1],l=t.sliceStream(i),a=l.length,o=-1,s=0;for(;a--;){let e=l[a];if("string"==typeof e){for(o=e.length;32===e.charCodeAt(o-1);)s++,o--;if(o)break;o=-1}else if(-2===e)r=!0,s++;else if(-1===e);else{a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let l={type:n===e.length||r||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?o:i.start._bufferIndex+o,_index:i.start._index+a,line:i.end.line,column:i.end.column-s,offset:i.end.offset-s},end:{...i.end}};i.end={...l.start},i.start.offset===i.end.offset?Object.assign(i,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}let iM={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(l){var a;return e.enter("thematicBreak"),r=a=l,function l(a){return a===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),iy(n)?ij(e,l,"whitespace")(n):l(n))}(a)):i>=3&&(null===a||ig(a))?(e.exit("thematicBreak"),t(a)):n(a)}(a)}}},iF={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(iC,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ij(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!iy(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine
24=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(iH,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,ij(e,e.attempt(iF,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],l=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,a=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:ih(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(iM,n,o)(t):o(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return ih(i)&&++a<10?(e.consume(i),t):(!r.interrupt||a<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),o(i)):n(i)}(t)}return n(t)};function o(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(iC,r.interrupt?n:s,e.attempt(iD,u,c))}
24function s(e){return r.containerState.initialBlankLine=!0,l++,u(e)}function c(t){return iy(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),u):n(t)}function u(n){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},iD={partial:!0,tokenize:function(e,t,n){let r=this;return ij(e,function(e){let i=r.events[r.events.length-1];return!iy(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},iH={partial:!0,tokenize:function(e,t,n){let r=this;return ij(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},iB={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return iy(t)?ij(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(iB,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return iy(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function i$(e,t,n,r,i,l,a,o,s){let c=s||Number.POSITIVE_INFINITY,u=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(l),e.consume(t),e.exit(l),d):null===t||32===t||41===t||id(t)?n(t):(e.enter(r),e.enter(a),e.enter(o),e.enter("chunkString",{contentType:"string"}),f(t))};function d(n){return 62===n?(e.enter(l),e.consume(n),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),h(n))}function h(t){return 62===t?(e.exit("chunkString"),e.exit(o),d(t)):null===t||60===t||ig(t)?n(t):(e.consume(t),92===t?p:h)}function p(t){return 60===t||62===t||92===t?(e.consume(t),h):h(t)}function f(i){return!u&&(null===i||41===i||iv(i))?(e.exit("chunkString"),e.exit(o),e.exit(a),e.exit(r),t(i)):u<c&&40===i?(e.consume(i),u++,f):41===i?(e.consume(i),u--,f):null===i||32===i||40===i||id(i)?n(i):(e.consume(i),92===i?m:f)}function m(t){return 40===t||41===t||92===t?(e.consume(t),f):f(t)}}function iz(e,t,n,r,i,l){let a,o=this,s=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(l),c};function c(d){return s>999||null===d||91===d||93===d&&!a||94===d&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(d):93===d?(e.exit(l),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):ig(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||ig(t)||s++>999?(e.exit("chunkString"),c(t)):(e.consume(t),a||(a=!iy(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}}function iV(e,t,n,r,i,l){let a;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),a=40===t?41:t,o):n(t)};function o(n){return n===a?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(l),s(n))}function s(t){return t===a?(e.exit(l),o(a)):null===t?n(t):ig(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ij(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||ig(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?u:c)}function u(t){return t===a||92===t?(e.consume(t),c):c(t)}}function iW(e,t){let n;return function r(i){return ig(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):iy(i)?ij(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function iU(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let iq={partial:!0,tokenize:function(e,t,n){return function(t){return iv(t)?iW(e,r)(t):n(t)};function r(t){return iV(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return iy(t)?ij(e,l,"whitespace")(t):l(t)}function l(e){return null===e||ig(e)?t(e):n(e)}}},iQ={name:"codeIndented",tokenize:function(e,t,n){let r=this;
24return function(t){return e.enter("codeIndented"),ij(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?l(n):ig(n)?e.attempt(iK,t,l)(n):(e.enter("codeFlowValue"),function n(r){return null===r||ig(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function l(n){return e.exit("codeIndented"),t(n)}}},iK={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):ig(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):ij(e,l,"linePrefix",5)(t)}function l(e){let l=r.events[r.events.length-1];return l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?t(e):ig(e)?i(e):n(e)}}},iG={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,l=e.length;for(;l--;)if("enter"===e[l][0]){if("content"===e[l][1].type){n=l;break}"paragraph"===e[l][1].type&&(r=l)}else"content"===e[l][1].type&&e.splice(l,1),i||"definition"!==e[l][1].type||(i=l);let a={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",a,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=a,e.push(["exit",a,t]),e},tokenize:function(e,t,n){let r,i=this;return function(t){var a;let o,s=i.events.length;for(;s--;)if("lineEnding"!==i.events[s][1].type&&"linePrefix"!==i.events[s][1].type&&"content"!==i.events[s][1].type){o="paragraph"===i.events[s][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||o)?(e.enter("setextHeadingLine"),r=t,a=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),iy(n)?ij(e,l,"lineSuffix")(n):l(n))}(a)):n(t)};function l(r){return null===r||ig(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},iY=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],iZ=["pre","script","style","textarea"],iJ={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(iC,t,n)}}},iX={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return ig(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},i0={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},i1={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,i=this,l={partial:!0,tokenize:function(e,t,n){let l=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a};function a(t){return e.enter("codeFencedFence"),iy(t)?ij(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):s(t)}function s(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(l++,e.consume(i),t):l>=o?(e.exit("codeFencedFenceSequence"),iy(i)?ij(e,c,"whitespace")(i):c(i)):n(i)}(t)):n(t)}function c(r){return null===r||ig(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},a=0,o=0;return function(t){var l=t;let c=i.events[i.events.length-1];return a=c&&"linePrefix"===c[1].type?c[2].sliceSerialize(c[1],!0).length:0,r=l,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(o++,e.consume(i),t):o<3?n(i):(e.exit("codeFencedFenceSequence"),iy(i)?ij(e,s,"whitespace")(i):s(i))}(l)};function s(l){return null===l||ig(l)?(e.exit("codeFencedFence"),i.interrupt?t(l):e.check(i0,u,f)(l)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||ig(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),s(i)):iy(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ij(e,c,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(l))}
24function c(t){return null===t||ig(t)?s(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||ig(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),s(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function u(t){return e.attempt(l,f,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h}function h(t){return a>0&&iy(t)?ij(e,p,"linePrefix",a+1)(t):p(t)}function p(t){return null===t||ig(t)?e.check(i0,u,f)(t):(e.enter("codeFlowValue"),function t(n){return null===n||ig(n)?(e.exit("codeFlowValue"),p(n)):(e.consume(n),t)}(t))}function f(n){return e.exit("codeFenced"),t(n)}}},i2=document.createElement("i");function i5(e){let t="&"+e+";";i2.innerHTML=t;let n=i2.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let i3={name:"characterReference",tokenize:function(e,t,n){let r,i,l=this,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),o};function o(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),r=31,i=ic,c(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=ip,c):(e.enter("characterReferenceValue"),r=7,i=ih,c(t))}function c(o){if(59===o&&a){let r=e.exit("characterReferenceValue");return i!==ic||i5(l.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(o),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(o)}return i(o)&&a++<r?(e.consume(o),c):n(o)}}},i4={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return im(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},i6={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ij(e,t,"linePrefix")}}};function i8(e,t,n){let r=[],i=-1;for(;++i<e.length;){let l=e[i].resolveAll;l&&!r.includes(l)&&(t=l(t,n),r.push(l))}return t}let i9={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&ie(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,l,a=e.length,o=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){o=2;break}}else"labelEnd"===n.type&&(i=a);let s={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},u={type:"labelText",start:{...e[r+o+2][1].end},end:{...e[i-2][1].start}};return l=it(l=[["enter",s,t],["enter",c,t]],e.slice(r+1,r+o+3)),l=it(l,[["enter",u,t]]),l=it(l,i8(t.parser.constructs.insideSpan.null,e.slice(r+o+4,i-3),t)),l=it(l,[["exit",u,t],e[i-2],e[i-1],["exit",c,t]]),l=it(l,e.slice(i+1)),l=it(l,[["exit",s,t]]),ie(e,r,e.length,l),e},tokenize:function(e,t,n){let r,i,l=this,a=l.events.length;for(;a--;)if(("labelImage"===l.events[a][1].type||"labelLink"===l.events[a][1].type)&&!l.events[a][1]._balanced){r=l.events[a][1];break}return function(t){return r?r._inactive?u(t):(i=l.parser.defined.includes(iU(l.sliceSerialize({start:r.end,end:l.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),o):n(t)};function o(t){return 40===t?e.attempt(i7,c,i?c:u)(t):91===t?e.attempt(le,c,i?s:u)(t):i?c(t):u(t)}function s(t){return e.attempt(lt,c,u)(t)}function c(e){return t(e)}function u(e){return r._balanced=!0,n(e)}}},i7={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return iv(t)?iW(e,i)(t):i(t)}function i(t){return 41===t?c(t):i$(e,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function l(t){return iv(t)?iW(e,o)(t):c(t)}function a(e){return n(e)}function o(t){return 34===t||39===t||40===t?iV(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function s(t){return iv(t)?iW(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},le={tokenize:function(e,t,n){let r=this;return function(t){return iz.call(r,e,i,l,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(iU(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function l(e){return n(e)}}},lt={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},ln={name:"labelStartImage",resolveAll:i9.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),l):n(t)}function l(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};function lr(e){return null===e||iv(e)||ib(e)?1:ix(e)?2:void 0}let li={name:"attention",resolveAll:function(e,t){let n,r,i,l,a,o,s,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close){for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[
24n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;o=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;let d={...e[n][1].end},h={...e[u][1].start};ll(d,-o),ll(h,o),l={type:o>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},a={type:o>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:h},i={type:o>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:o>1?"strong":"emphasis",start:{...l.start},end:{...a.end}},e[n][1].end={...l.start},e[u][1].start={...a.end},s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=it(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=it(s,[["enter",r,t],["enter",l,t],["exit",l,t],["enter",i,t]]),s=it(s,i8(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),s=it(s,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,s=it(s,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,ie(e,n-1,u-n+3,s),u=n+s.length-c-2;break}}for(u=-1;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,i=this.previous,l=lr(i);return function(a){return n=a,e.enter("attentionSequence"),function a(o){if(o===n)return e.consume(o),a;let s=e.exit("attentionSequence"),c=lr(o),u=!c||2===c&&l||r.includes(o),d=!l||2===l&&c||r.includes(i);return s._open=!!(42===n?u:u&&(l||!d)),s._close=!!(42===n?d:d&&(c||!u)),t(o)}(a)}}};function ll(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let la={name:"labelStartLink",resolveAll:i9.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},lo={42:iF,43:iF,45:iF,48:iF,49:iF,50:iF,51:iF,52:iF,53:iF,54:iF,55:iF,56:iF,57:iF,62:iB},ls={91:{name:"definition",tokenize:function(e,t,n){let r,i=this;return function(t){var r;return e.enter("definition"),r=t,iz.call(i,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(r)};function l(t){return(r=iU(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return iv(t)?iW(e,o)(t):o(t)}function o(t){return i$(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(iq,c,c)(t)}function c(t){return iy(t)?ij(e,u,"whitespace")(t):u(t)}function u(l){return null===l||ig(l)?(e.exit("definition"),i.parser.defined.push(r),t(l)):n(l)}}}},lc={[-2]:iQ,[-1]:iQ,32:iQ},lu={35:{name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,l=3;return"whitespace"===e[3][1].type&&(l+=2),i-2>l&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(l===i-1||i-4>l&&"whitespace"===e[i-2][1].type)&&(i-=l+1===i?2:4),i>l&&(n={type:"atxHeadingText",start:e[l][1].start,end:e[i][1].end},r={type:"chunkText",start:e[l][1].start,end:e[i][1].end,contentType:"text"},ie(e,l,i-l+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){var l;return e.enter("atxHeading"),l=i,e.enter("atxHeadingSequence"),function i(l){return 35===l&&r++<6?(e.consume(l),i):null===l||iv(l)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||ig(r)?(e.exit("atxHeading"),t(r)):iy(r)?ij(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||iv(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(l)):n(l)}(l)}}},42:iM,45:[iG,iM],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let r,i,l,a,o,s=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),c};function c(a){return 33===a?(e.consume(a),u):47===a?(e.consume(a),i=!0,p):63===a?(e.consume(a),r=3,s.interrupt?t:R):is(a)?(e.consume(a),l=String.fromCharCode(a),f):n(a)}function u(i){return 45===i?(e.consume(i),r=2,d):91===i?(e.consume(i),r=5,a=0,h):is(i)?(e.consume(i),r=4,s.interrupt?t:R):n(i)}function d(r){return 45===r?(e.consume(r),s.interrupt?t:R):n(r)}function h(r){let i="CDATA[";return r===i.charCodeAt(a++)?(e.consume(r),a===i.length)?s.interrupt?t:k:h:n(r)}function p(t){return is(t)?(e.consume(t),l=String.fromCharCode(t),f):n(t)}function f(a){if(null===a||47===a||62===a||iv(a)){let o=47===a,c=l.toLowerCase();return!o&&!i&&iZ.includes(c)?(r=1,s.interrupt?t(a):k(a)):iY.includes(l.toLowerCase())?(r=6,o)?(e.consume(a),m):s.interrupt?t(a):k(a):(r=7,s.interrupt&&!s.parser.lazy[s.now().line]?n(a):i?function t(n){return iy(n)?(e.consume(n),t):j(n)}(a):g(a))}return 45===a||ic(a)?(e.consume(a),l+=String.fromCharCode(a),f):n(a)}function m(r){return 62===r?(e.consume(r),s.interrupt?t:k):n(r)}function g(t){return 47===t?(e.consume(t),j):58===t||95===t||is(t)?(e.consume(t),v):iy(t)?(e.consume(t),g):j(t)}function v(t){return 45===t||46===t||58===t||95===t||ic(t)?(e.consume(t),v):y(t)}function y(t){return 61===t?(e.consume(t),x):iy(t)?(e.consume(t),y):g(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,b):iy(t)?(e.consume(t),x):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||iv(n)?y(n):(e.consume(n),t)}(t)}function b(t){return t===o?(e.consume(t),o=null,w):null===t||ig(t)?n(t):(e.consume(t),b)}function w(e){return 47===e||62===e||iy(e)?g(e):n(e)}function j(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||ig(t)?k(t):iy(t)?(e.consume(t),S):n(t)}function k(t){return 45===t&&2===r?(e.consume(t),E):60===t&&1===r?(e.consume(t),P):62===t&&4===r?(e.consume(t),L):63===t&&3===r?(e.consume(t),R):93===t&&5===r?(e.consume(t),O):ig(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(iJ,I,_)(t)):null===t||ig(t)?(e.exit("htmlFlowData"),_(t)):(e.consume(t),k)}function _(t){return e.check(iX,C,I)(t)}function C(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N}function N(t){return null===t||ig(t)?_(t):(e.enter("htmlFlowData"),k(t))}function E(t){return 45===t?(e.consume(t),R):k(t)}function P(t){return 47===t?(e.consume(t),l="",T):k(t)}function T(t){if(62===t){let n=l.toLowerCase();return iZ.includes(n)?(e.consume(t),L):k(t)}return is(t)&&l.length<8?(e.consume(t),l+=String.fromCharCode(t),T):k(t)}function O(t){return 93===t?(e.consume(t),R):k(t)}function R(t){return 62===t?(e.consume(t),L):45===t&&2===r?(e.consume(t),R):k(t)}function L(t){return null===t||ig(t)?(e.exit("htmlFlowData"),I(t)):(e.consume(t),L)}function I(n){return e.exit("htmlFlow"),t(n)}}},61:iG,95:iM,96:i1,126:i1},ld={38:i3,92:i4},lh={[-5]:i6,[-4]:i6,[-3]:i6,33:ln,38:i3,42:li,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return is(t)?(e.consume(t),l):64===t?n(t):o(t)}function l(t){return 43===t||45===t||46===t||ic(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,a):(43===n||45===n||46===n||ic(n))&&r++<32?(e.consume(n),t):(r=0,o(n))}(t)):o(t)}function a(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||id(r)?n(r):(e.consume(r),a)}function o(t){return 64===t?(e.consume(t),s):iu(t)?(e.consume(t),o):n(t)}
24function s(i){return ic(i)?function i(l){return 46===l?(e.consume(l),r=0,s):62===l?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(l),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(l){if((45===l||ic(l))&&r++<63){let n=45===l?t:i;return e.consume(l),n}return n(l)}(l)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,l,a=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),o};function o(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),b):63===t?(e.consume(t),y):is(t)?(e.consume(t),j):n(t)}function s(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,p):is(t)?(e.consume(t),v):n(t)}function c(t){return 45===t?(e.consume(t),h):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):ig(t)?(l=u,T(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),h):u(t)}function h(e){return 62===e?P(e):45===e?d(e):u(e)}function p(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?f:p):n(t)}function f(t){return null===t?n(t):93===t?(e.consume(t),m):ig(t)?(l=f,T(t)):(e.consume(t),f)}function m(t){return 93===t?(e.consume(t),g):f(t)}function g(t){return 62===t?P(t):93===t?(e.consume(t),g):f(t)}function v(t){return null===t||62===t?P(t):ig(t)?(l=v,T(t)):(e.consume(t),v)}function y(t){return null===t?n(t):63===t?(e.consume(t),x):ig(t)?(l=y,T(t)):(e.consume(t),y)}function x(e){return 62===e?P(e):y(e)}function b(t){return is(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||ic(t)?(e.consume(t),w):function t(n){return ig(n)?(l=t,T(n)):iy(n)?(e.consume(n),t):P(n)}(t)}function j(t){return 45===t||ic(t)?(e.consume(t),j):47===t||62===t||iv(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),P):58===t||95===t||is(t)?(e.consume(t),k):ig(t)?(l=S,T(t)):iy(t)?(e.consume(t),S):P(t)}function k(t){return 45===t||46===t||58===t||95===t||ic(t)?(e.consume(t),k):function t(n){return 61===n?(e.consume(n),_):ig(n)?(l=t,T(n)):iy(n)?(e.consume(n),t):S(n)}(t)}function _(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,C):ig(t)?(l=_,T(t)):iy(t)?(e.consume(t),_):(e.consume(t),N)}function C(t){return t===r?(e.consume(t),r=void 0,E):null===t?n(t):ig(t)?(l=C,T(t)):(e.consume(t),C)}function N(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||iv(t)?S(t):(e.consume(t),N)}function E(e){return 47===e||62===e||iv(e)?S(e):n(e)}function P(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function T(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),O}function O(t){return iy(t)?ij(e,R,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):R(t)}function R(t){return e.enter("htmlTextData"),l(t)}}}],91:la,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return ig(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},i4],93:i9,95:li,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,l=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),l++,t):(e.exit("codeTextSequence"),a(n))}(t)};function a(s){return null===s?n(s):32===s?(e.enter("space"),e.consume(s),e.exit("space"),a):96===s?(i=e.enter("codeTextSequence"),r=0,function n(a){return 96===a?(e.consume(a),r++,n):r===l?(e.exit("codeTextSequence"),e.exit("codeText"),t(a)):(i.type="codeTextData",o(a))}(s)):ig(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):(e.enter("co
24deTextData"),o(s))}function o(t){return null===t||32===t||96===t||ig(t)?(e.exit("codeTextData"),a(t)):(e.consume(t),o)}}}},lp={null:[li,iT]},lf={null:[42,95]},lm={null:[]},lg=/[\0\t\n\r]/g;function lv(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let ly=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function lx(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return lv(n.slice(t?2:1),t?16:10)}return i5(n)||e}let lb={}.hasOwnProperty;function lw(e){return{line:e.line,column:e.column,offset:e.offset}}function lj(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+r$({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+r$({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+r$({start:t.start,end:t.end})+") is still open")}function lS(e){let t=this;t.parser=function(n){var r,i;let l,a,o,s;return"string"!=typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(i=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(v),autolinkProtocol:c,autolinkEmail:c,atxHeading:r(f),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:c,characterReference:c,codeFenced:r(p),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(p,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:c,data:c,codeFlowValue:c,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(g,i),htmlFlowData:c,htmlText:r(g,i),htmlTextData:c,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(v),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(y,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(y),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(f),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:a(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:a(),autolinkEmail:function(e){u.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){u.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:a(),characterEscapeValue:u,characterReferenceMarkerHexadecimal:h,characterReferenceMarkerNumeric:h,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=lv(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=i5(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=lw(e.end)},codeFenced:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:u,codeIndented:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:u,data:u,definition:a(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=iU(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:a(),hardBreakEscape:a(d),hardBreakTrailing:a(d),htmlFlow:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:u,htmlText:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:u,image:a(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(ly,lx),n.identifier=iU(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=lw(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.t
24ype)&&(c.call(this,e),u.call(this,e))},link:a(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=iU(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:a(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:a(),thematicBreak:a()}};!function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(lb.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},a={stack:[r],tokenStack:[],config:t,enter:l,exit:o,buffer:i,resume:s,data:n},c=[],u=-1;for(;++u<e.length;)("listOrdered"===e[u][1].type||"listUnordered"===e[u][1].type)&&("enter"===e[u][0]?c.push(u):u=function(e,t,n){let r,i,l,a,o=t-1,s=-1,c=!1;for(;++o<=n;){let t=e[o];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?s++:s--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||a||s||l||(l=o),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=void 0}if(!s&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===s&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=o;for(i=void 0;a--;){let t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",i=a}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}l&&(!i||l<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||o,0,["exit",r,t[2]]),o++,n++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(o,0,["enter",i,t[2]]),o++,n++,l=void 0,a=!0}}}return e[t][1]._spread=c,n}(e,c.pop(),u));for(u=-1;++u<e.length;){let n=t[e[u][0]];lb.call(n,e[u][1].type)&&n[e[u][1].type].call(Object.assign({sliceSerialize:e[u][2].sliceSerialize},a),e[u][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||lj).call(a,void 0,e[0])}for(r.position={start:lw(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:lw(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u<t.transforms.length;)r=t.transforms[u](r)||r;return r};function r(e,t){return function(n){l.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function l(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:lw(t.start),end:void 0}}function a(e){return function(t){e&&e.call(this,t),o.call(this,t)}}function o(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||lj).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+r$({start:e.start,end:e.end})+"): it’s not open");n.position.end=lw(e.end)}function s(){return r8(this.stack.pop())}function c(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:lw(e.start),end:void 0},t.push(n)),this.stack.push(n)}function u(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=lw(e.end)}function d(){this.data.atHardBreak=!0}function h(e){this.data.characterReferenceType=e.type}function p(){return{type:"code",lang:null,meta:null,value:""}}function f(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function g(){return{type:"html",value:""}}function v(){return{type:"link",title:null,url:"",children:[]}}function y(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(i)(function(e){for(;!il(e););return e}((function(e){let t={constructs:io([d,...(e||{}).extensions||[]]),content:n(iS),defined:[],document:n(ik),flow:n(iP),lazy:{},string:n(iO),text:n(iR)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,c
24olumn:n&&n.column||1,offset:n&&n.offset||0},i={},l=[],a=[],o=[],s={attempt:f(function(e,t){m(e,t.from)}),check:f(p),consume:function(e){ig(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,g()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=h(),c.events.push(["enter",n,c]),o.push(n),n},exit:function(e){let t=o.pop();return t.end=h(),c.events.push(["exit",t,c]),t},interrupt:f(p,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,g()},events:[],now:h,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let l,a=e[r];if("string"==typeof a)l=a;else switch(a){case -5:l="\r";break;case -4:l="\n";break;case -3:l="\r\n";break;case -2:l=t?" ":"	";break;case -1:if(!t&&n)continue;l=" ";break;default:l=String.fromCharCode(a)}n=-2===a,i.push(l)}return i.join("")}(d(e),t)},sliceStream:d,write:function(e){return(a=it(a,e),function(){let e;for(;r._index<a.length;){let n=a[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),u=u(t)}else u=u(n)}}(),null!==a[a.length-1])?[]:(m(t,0),c.events=i8(l,c.events,c),c.events)}},u=t.tokenize.call(c,s);return t.resolveAll&&l.push(t),c;function d(e){return function(e,t){let n,r=t.start._index,i=t.start._bufferIndex,l=t.end._index,a=t.end._bufferIndex;if(r===l)n=[e[r].slice(i,a)];else{if(n=e.slice(r,l),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}a>0&&n.push(e[l].slice(0,a))}return n}(a,e)}function h(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:l}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:l}}function p(e,t){t.restore()}function f(e,t){return function(n,i,l){var a;let u,d,p,f;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):(a=n,function(e){let t=null!==e&&a[e],n=null!==e&&a.null;return m([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function m(e){return(u=e,d=0,0===e.length)?l:v(e[d])}function v(e){return function(n){return(f=function(){let e=h(),t=c.previous,n=c.currentConstruct,i=c.events.length,l=Array.from(o);return{from:i,restore:function(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=i,o=l,g()}}}(),p=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name))?x(n):e.tokenize.call(t?Object.assign(Object.create(c),t):c,s,y,x)(n)}}function y(t){return e(p,f),i}function x(e){return(f.restore(),++d<u.length)?v(u[d]):l}}}function m(e,t){e.resolveAll&&!l.includes(e)&&l.push(e),e.resolve&&ie(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function g(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}})(i).document().write((a=1,o="",s=!0,function(e,t,n){let r,i,c,u,d,h=[];for(e=o+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),c=0,o="",s&&(65279===e.charCodeAt(0)&&c++,s=void 0);c<e.length;){if(lg.lastIndex=c,u=(r=lg.exec(e))&&void 0!==r.index?r.index:e.length,d=e.charCodeAt(u),!r){o=e.slice(c);break}if(10===d&&c===u&&l)h.push(-3),l=void 0;else switch(l&&(h.push(-5),l=void 0),c<u&&(h.push(e.slice(c,u)),a+=u-c),d){case 0:h.push(65533),a++;break;case 9:for(i=4*Math.ceil(a/4),h.push(-2);a++<i;)h.push(-1);break;case 10:h.push(-4),a=1;break;default:l=!0,a=1}c=u+1}return n&&(l&&h.push(-5),o&&h.push(o),h.push(null)),h})(n,r,!0))))}}let lk="object"==typeof self?self:globalThis,l_=(e,t)=>
24{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[l,a]=t[i];switch(l){case 0:case -1:return n(a,i);case 1:{let e=n([],i);for(let t of a)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),i);case 4:{let{source:e,flags:t}=a;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of a)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of a)e.add(r(t));return e}case 7:{let{name:e,message:t}=a;return n(new lk[e](t),i)}case 8:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{let{buffer:e}=new Uint8Array(a);return n(new DataView(e),a)}}return n(new lk[l](a),i)};return r},lC=e=>l_(new Map,e)(0),{toString:lN}={},{keys:lE}=Object,lP=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=lN.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},lT=([e,t])=>0===e&&("function"===t||"symbol"===t),lO=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},l=r=>{if(n.has(r))return n.get(r);let[a,o]=lP(r);switch(a){case 0:{let t=r;switch(o){case"bigint":a=8,t=r.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+o);t=null;break;case"undefined":return i([-1],r)}return i([a,t],r)}case 1:{if(o){let e=r;return"DataView"===o?e=new Uint8Array(r.buffer):"ArrayBuffer"===o&&(e=new Uint8Array(r)),i([o,[...e]],r)}let e=[],t=i([a,e],r);for(let t of r)e.push(l(t));return t}case 2:{if(o)switch(o){case"BigInt":return i([o,r.toString()],r);case"Boolean":case"Number":case"String":return i([o,r.valueOf()],r)}if(t&&"toJSON"in r)return l(r.toJSON());let n=[],s=i([a,n],r);for(let t of lE(r))(e||!lT(lP(r[t])))&&n.push([l(t),l(r[t])]);return s}case 3:return i([a,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([a,{source:e,flags:t}],r)}case 5:{let t=[],n=i([a,t],r);
24for(let[n,i]of r)(e||!(lT(lP(n))||lT(lP(i))))&&t.push([l(n),l(i)]);return n}case 6:{let t=[],n=i([a,t],r);for(let n of r)(e||!lT(lP(n)))&&t.push(l(n));return n}}let{message:s}=r;return i([a,{name:o,message:s}],r)};return l},lR=(e,{json:t,lossy:n}={})=>{let r=[];return lO(!(t||n),!!t,new Map,r)(e),r},lL="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?lC(lR(e,t)):structuredClone(e):(e,t)=>lC(lR(e,t));function lI(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let l=e.charCodeAt(n),a="";if(37===l&&ic(e.charCodeAt(n+1))&&ic(e.charCodeAt(n+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(a=String.fromCharCode(l));else if(l>55295&&l<57344){let t=e.charCodeAt(n+1);l<56320&&t>56319&&t<57344?(a=String.fromCharCode(l,t),i=1):a="�"}else a=String.fromCharCode(l);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function lA(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function lM(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let lF=function(e){var t,n;if(null==e)return lH;if("function"==typeof e)return lD(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=lF(e[n]);return lD(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,lD(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,lD(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function lD(e){return function(t,n,r){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function lH(){return!0}let lB=[];function l$(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),l=i[0];l&&"text"===l.type?l.value="["+l.value:i.unshift({type:"text",value:"["});let a=i[i.length-1];return a&&"text"===a.type?a.value+=r:i.push({type:"text",value:r}),i}function lz(e){let t=e.spread;return null==t?e.children.length>1:t}function lV(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let lW={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i={type:"element",tagName:"pre",properties:{},children:[i=e.applyData(t,i)]},e.patch(t,i),i},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n,r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),l=lI(i.toLowerCase()),a=e.footnoteOrder.indexOf(i),o=e.footnoteCounts.get(i);void 0===o?(o=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=a+1,o+=1,e.footnoteCounts.set(i,o);let s={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+l,id:r+"fnref-"+l+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,s);let c={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return l$(e,t);let i={src:lI(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,l),e.applyData(t,l)},image:function(e,t){let n={src:lI(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return l$(e,t);let i={href:lI(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let l={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)},link:function(e,t){let n={href:lI(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=lz(n[r])}return t}(n):lz(t),l={},a=[];if("boolean"==typeof t.checked){let e,n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let o=-1;for(;++o<r.length;){let e=r[o];(i||0!==o||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?a.push(e):a.push(...e.children)}let s=r[r.length-1];s&&(i||"element"!==s.type||"p"!==s.tagName)&&a.push({type:"text",value:"\n"});let c={type:"element",tagName:"li",properties:l,children:a};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){let n={},r=e.all(t),i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){let e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,l),e.applyData(t,l)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=rH(t.children[1]),a=rD(t.children[t.children.length-1]);l&&a&&(r.position={start:l,end:a}),i.push(r)}let l={type:"element",tagName:"table",properties:{}
24,children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",l=n&&"table"===n.type?n.align:void 0,a=l?l.length:t.children.length,o=-1,s=[];for(;++o<a;){let n=t.children[o],r={},a=l?l[o]:void 0;a&&(r.align=a);let c={type:"element",tagName:i,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),s.push(c)}let c={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,l=[];for(;r;)l.push(lV(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(lV(t.slice(i),i>0,!1)),l.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:lU,yaml:lU,definition:lU,footnoteDefinition:lU};function lU(){}let lq={}.hasOwnProperty,lQ={};function lK(e,t){e.position&&(t.position=function(e){let t=rH(e),n=rD(e);if(t&&n)return{start:t,end:n}}(e))}function lG(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,lL(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function lY(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function lZ(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function lJ(e,t){let n=function(e,t){let n=t||lQ,r=new Map,i=new Map,l={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let i=l.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=lZ(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=lZ(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:lG,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...lW,...n.handlers},one:function(e,t){let n=e.type,r=l.handlers[n];if(lq.call(l.handlers,n)&&r)return r(l,e,t);if(l.options.passThrough&&l.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=lL(n);return r.children=l.all(e),r}return lL(e)}return(l.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(lq.call(n,"hProperties")||lq.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)})(l,e,t)},options:n,patch:lK,wrap:lY};return!function(e,t,n,r){let i,l,a,o;"function"==typeof t?(l=void 0,a=t,i=void 0):(l=t,a=n,i=void 0);var s=l,c=function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)},u=i;"function"==typeof s&&"function"!=typeof c?(u=c,c=s):o=s;let d=lF(o),h=u?-1:1;(function e(t,n,r){let i=t&&"object"==typeof t?t:{};if("string"==typeof i.type){let e="string"==typeof i.tagName?i.tagName:"string"==typeof i.name?i.name:void 0;Object.defineProperty(l,"name",{value:"node ("+t.type+(e?"<"+e+">":"")+")"})}return l;function l(){var i;let l,a,o,p=lB;if((!s||d(t,n,r[r.length-1]||void 0))&&!1===(p=Array.isArray(i=c(t,r))?i:"number"==typeof i?[!0,i]:null==i?lB:[i])[0])return p;if("children"in t&&t.children&&t.children&&"skip"!==p[0])for(a=(u?t.children.length:-1)+h,o=r.concat(t);a>-1&&a<t.children.length;){if(!1===(l=e(t.children[a],a,o)())[0])return l;a="number"==typeof l[1]?l[1]:a+h}return p}})(e,void 0,[])()}(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),l}(e,t),r=n.one(e,void 0),i=function(e){let t="string"==typeof e.o
24ptions.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||lA,r=e.options.footnoteBackLabel||lM,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[],s=-1;for(;++s<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[s]);if(!i)continue;let l=e.all(i),a=String(i.identifier).toUpperCase(),c=lI(a.toLowerCase()),u=0,d=[],h=e.footnoteCounts.get(a);for(;void 0!==h&&++u<=h;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(s,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(s,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let p=l[l.length-1];if(p&&"element"===p.type&&"p"===p.tagName){let e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...d)}else l.push(...d);let f={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(l,!0)};e.patch(i,f),o.push(f)}if(0!==o.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...lL(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)}
24,{type:"text",value:"\n"}]}}(n),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:"\n"},i),l}function lX(e,t){return e&&"run"in e?async function(n,r){let i=lJ(n,{file:r,...t});await e.run(i,r)}:function(n,r){return lJ(n,{file:r,...e||t})}}function l0(e){if(e)throw e}var l1=n(9735);function l2(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let l5={basename:function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');l3(e);let r=0,i=-1,l=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;l--;)if(47===e.codePointAt(l)){if(n){r=l+1;break}}else i<0&&(n=!0,i=l+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let a=-1,o=t.length-1;for(;l--;)if(47===e.codePointAt(l)){if(n){r=l+1;break}}else a<0&&(n=!0,a=l+1),o>-1&&(e.codePointAt(l)===t.codePointAt(o--)?o<0&&(i=l):(o=-1,i=a));return r===i?i=a:i<0&&(i=e.length),e.slice(r,i)},dirname:function(e){let t;if(l3(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){let t;l3(e);let n=e.length,r=-1,i=0,l=-1,a=0;for(;n--;){let o=e.codePointAt(n);if(47===o){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===o?l<0?l=n:1!==a&&(a=1):l>-1&&(a=-1)}return l<0||r<0||0===a||1===a&&l===r-1&&l===i+1?"":e.slice(l,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)l3(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){l3(e);let t=47===e.codePointAt(0),n=function(e,t){let n,r,i="",l=0,a=-1,o=0,s=-1;for(;++s<=e.length;){if(s<e.length)n=e.codePointAt(s);else if(47===n)break;else n=47;if(47===n){if(a===s-1||1===o);else if(a!==s-1&&2===o){if(i.length<2||2!==l||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2)){if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",l=0):l=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),a=s,o=0;continue}}else if(i.length>0){i="",l=0,a=s,o=0;continue}}t&&(i=i.length>0?i+"/..":"..",l=2)}else i.length>0?i+="/"+e.slice(a+1,s):i=e.slice(a+1,s),l=s-a-1;a=s,o=0}else 46===n&&o>-1?o++:o=-1}return i}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function l3(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}let l4={cwd:function(){return"/"}};function l6(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let l8=["history","path","basename","stem","extname","dirname"];class l9{constructor(e){let t,n;t=e?l6(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":l4.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<l8.length;){let e=l8[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)l8.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?l5.basename(this.path):void 0}set basename(e){ae(e,"basename"),l7(e,"basename"),this.path=l5.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?l5.dirname(this.path):void 0}set dirname(e){at(this.basename,"dirname"),this.path=l5.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?l5.extname(this.path):void 0}set extname(e){if(l7(e,"extname"),at(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=l5.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){l6(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!l6(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),ae(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?l5.basename(this.path,this.extname):void 0}set stem(e){ae(e,"stem"),l7(e,"stem"),this.path=l5.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new rU(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function l7(e,t){if(e&&e.includes(l5.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+l5.sep+"`")}function ae(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function at(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let an=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},ar={}.hasOwnProperty;class ai extends an{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);!function i(l,...a){let o=e[++n],s=-1;if(l)return void r(l);for(;++s<t.length;)(null===a[s]||void 0===a[s])&&(a[s]=t[s]);t=a,o?(function(e,t){let n;return function(...t){let l,a=e.length>t.length;a&&t.push(r);try{l=e.apply(this,t)}catch(e){if(a&&n)throw e;return r(e)}a||(l&&l.then&&"function"==typeof l.then?l.then(i,r):l instanceof Error?r(l):i(l))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(o,i)(...a):r(null,...a)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new ai,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data(l1(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(as("data",this.frozen),this.namespace[e]=t,this):ar.call(this.namespace,e)&&this.namespace[e]||void 0:e?(as("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();let t=ad(e),n=this.parser||this.Parser;return aa("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),aa("process",this.parser||this.Parser),ao("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let l=ad(e),a=n.parse(l);function o(e,n){e||!n?i(e):r?r(n):t(void 0,n)}n.run(a,l,function(e,t,r){var i,l;if(e||!t||!r)return o(e);let a=n.stringify(t,r);"string"==typeof(i=a)||(l=i)&&"object"==typeof l&&"byteLength"in l&&"byteOffset"in l?r.value=a:r.result=a,o(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),aa("processSync",this.parser||this.Parser),ao("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,l0(e),t=r}),au("processSync","process",n),t}
24run(e,t,n){ac(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,l){let a=ad(t);r.run(e,a,function(t,r,a){let o=r||e;t?l(t):i?i(o):n(void 0,o,a)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){l0(e),n=t,r=!0}),au("runSync","run",r),n}stringify(e,t){this.freeze();let n=ad(t),r=this.compiler||this.Compiler;return ao("stringify",r),ac(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(as("use",this.frozen),null==e);else if("function"==typeof e)a(e,t);else if("object"==typeof e)Array.isArray(e)?l(e):i(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(!("plugins"in e)&&!("settings"in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(e.plugins),e.settings&&(r.settings=l1(!0,r.settings,e.settings))}function l(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;){var n=e[t];if("function"==typeof n)a(n,[]);else if("object"==typeof n)if(Array.isArray(n)){let[e,...t]=n;a(e,t)}else i(n);else throw TypeError("Expected usable value, not `"+n+"`")}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function a(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...l]=t,a=n[i][1];l2(a)&&l2(r)&&(r=l1(!0,a,r)),n[i]=[e,r,...l]}}}}let al=new ai().freeze();function aa(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function ao(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function as(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ac(e){if(!l2(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function au(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function ad(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new l9(e)}let ah=function(e){var t,n;if(null==e)return af;if("function"==typeof e)return ap(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=ah(e[n]);return ap(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,ap(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,ap(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function ap(e){return function(t,n,r){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function af(){return!0}let am=[],ag=[],av={allowDangerousHtml:!0},ay=/^(https?|ircs?|mailto|xmpp)$/i,ax=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function ab(e){let t=function(e){let t=e.rehypePlugins||ag,n=e.remarkPlugins||ag,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...av}:av;return al().use(lS).use(n).use(lX,r).use(t)}(e),n=function(e){let t=e.children||"",n=new l9;return"string"==typeof t&&(n.value=t),n}(e);return function(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,l=t.disallowedElements,a=t.skipHtml,o=t.unwrapDisallowed,s=t.urlTransform||aw;for(let e of ax)Object.hasOwn(t,e.from)&&(e.from,e.to&&e.to,e.id);return!function(e,t,n,r){let i,l,a,o;"function"==typeof t?(l=void 0,a=t,i=void 0):(l=t,a=n,i=void 0);var s=l,c=function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)},u=i;"function"==typeof s&&"function"!=typeof c?(u=c,c=s):o=s;let d=ah(o),h=u?-1:1;(function e(t,n,r){let i=t&&"object"==typeof t?t:{};if("string"==typeof i.type){let e="string"==typeof i.tagName?i.tagName:"string"==typeof i.name?i.name:void 0;Object.defineProperty(l,"name",{value:"node ("+t.type+(e?"<"+e+">":"")+")"})}return l;function l(){var i;let l,a,o,p=am;if((!s||d(t,n,r[r.length-1]||void 0))&&!1===(p=Array.isArray(i=c(t,r))?i:"number"==typeof i?[!0,i]:null==i?am:[i])[0])return p;
24if("children"in t&&t.children&&t.children&&"skip"!==p[0])for(a=(u?t.children.length:-1)+h,o=r.concat(t);a>-1&&a<t.children.length;){if(!1===(l=e(t.children[a],a,o)())[0])return l;a="number"==typeof l[1]?l[1]:a+h}return p}})(e,void 0,[])()}(e,function(e,t,i){if("raw"===e.type&&i&&"number"==typeof t)return a?i.children.splice(t,1):i.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in r4)if(Object.hasOwn(r4,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=r4[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=s(String(n||""),t,e))}}if("element"===e.type){let a=n?!n.includes(e.tagName):!!l&&l.includes(e.tagName);if(!a&&r&&"number"==typeof t&&(a=!r(e,t,i)),a&&i&&"number"==typeof t)return o&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}),function(e,t){var n,r,i,l,a;let o;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let s=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=s,r=t.jsxDEV,o=function(e,t,i,l){let a=Array.isArray(i.children),o=rH(e);return r(t,i,l,a,{columnNumber:o?o.column-1:void 0,fileName:n,lineNumber:o?o.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");
24if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");i=0,l=t.jsx,a=t.jsxs,o=function(e,t,n,r){let i=Array.isArray(n.children)?a:l;return r?i(t,n,r):i(t,n)}}let c={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:s,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?rT:rP,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},u=rJ(c,e,void 0);return u&&"string"!=typeof u?u:c.create(e,c.Fragment,{children:u||void 0},void 0)}(e,{Fragment:h.Fragment,components:i,ignoreInvalidStyle:!0,jsx:h.jsx,jsxs:h.jsxs,passKeys:!0,passNode:!0})}(t.runSync(t.parse(n),n),e)}function aw(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return -1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||ay.test(e.slice(0,t))?e:""}function aj(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||"string"!=typeof e)return e;let{locale:n,isStaticExport:r}=t,i=n||C();return(void 0===r||r)&&"en"!==i?e.replace(/\]\(\/fr\//g,"](/"):e}let aS=e=>{var t,n,r,i;let{blok:l,showBanner:a,setShowBanner:o}=e,{t:s}=(0,y.Bd)("common"),c={amber:{card:"bg-amber-400",cardText:"text-red-900 prose-a:text-red-900 hover:prose-a:text-red-500 active:prose-a:text-red-700"},green:{card:"bg-green-500",cardText:"text-white"},white:{card:"bg-white",cardText:"text-blue-500"},blue:{card:"bg-blue-500",cardText:"text-white"},teal:{card:"bg-teal-500",cardText:"text-teal-900"},sage:{card:"bg-sage-500",cardText:"text-sage-900"}};return(0,h.jsx)("div",{className:"".concat(null!=(r=null==c||null==(t=c[null==l?void 0:l.Colour_Scheme])?void 0:t.card)?r:"bg-amber-500"," ").concat(a&&(null==l?void 0:l.Show_Alert)?"":"hidden"),...(0,m.K1)(l),children:(0,h.jsxs)(w.A,{as:"aside",className:"flex items-center justify-between py-3 space-x-5 xl:space-x-0 xl:pr-3",children:[(0,h.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,h.jsx)("svg",{className:"flex-shrink-0",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M9 13H11V15H9V13ZM9 5H11V11H9V5ZM9.99 0C4.47 0 0 4.48 0 10C0 15.52 4.47 20 9.99 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 9.99 0ZM10 18C5.58 18 2 14.42 2 10C2 5.58 5.58 2 10 2C14.42 2 18 5.58 18 10C18 14.42 14.42 18 10 18Z",fill:"#290A15"})}),(0,h.jsx)("div",{className:"".concat(null!=(i=null==c||null==(n=c[null==l?void 0:l.Colour_Scheme])?void 0:n.cardText)?i:""," font-display font-medium text-sm prose max-w-full"),children:(0,h.jsx)(ab,{children:aj(null==l?void 0:l.Blurb)})})]}),(0,h.jsx)("button",{onClick:()=>o(!1),"aria-label":s("components.Alert_Banner.close"),children:(0,h.jsx)("svg",{className:"flex-shrink-0 text-red-900 hover:text-red-500 active:text-red-700",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z",fill:"currentColor"})})})]})})};function ak(e,t){if(void 0===e||"function"!=typeof e)throw Error("The render function is not valid (received type ".concat(Object.prototype.toString.call(e).slice(8,-1),").\n\n").concat(t))}function a_(e){return(a_="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 aC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function aN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aC(Object(n),!0).forEach(function(t){var r,i,l;r=e,i=t,l=n[t],(i=function(e){var t=function(e,t){if("object"!=a_(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a_(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a_(t)?t:String(t)}(i))in r?Object.defineProperty(r,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):r[i]=l}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aC(Object(n)).forEac
24h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var aE=e2({name:"search-box",connector:!0}),aP=function(e,t){return t(e)};let aT=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ej;return ak(e,aE()),function(n){var r,i,l=(n||{}).queryHook,a=void 0===l?aP:l;return{$$type:"ais.searchBox",init:function(t){var n=t.instantSearchInstance;e(aN(aN({},this.getWidgetRenderState(t)),{},{instantSearchInstance:n}),!0)},render:function(t){var n=t.instantSearchInstance;e(aN(aN({},this.getWidgetRenderState(t)),{},{instantSearchInstance:n}),!1)},dispose:function(e){var n=e.state;return t(),n.setQueryParameter("query",void 0)},getRenderState:function(e,t){return aN(aN({},e),{},{searchBox:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t=e.helper,l=e.instantSearchInstance,o=e.state;return r||(r=function(e){a(e,function(e){return t.setQuery(e).search()})},i=function(){t.setQuery("").search()}),{query:o.query||"",refine:r,clear:i,widgetParams:n,isSearchStalled:"stalled"===l.status}},getWidgetUiState:function(e,t){var n=t.searchParameters.query||"";return""===n||e&&e.query===n?e:aN(aN({},e),{},{query:n})},getWidgetSearchParameters:function(e,t){var n=t.uiState;return e.setQueryParameter("query",n.query||"")}}}},aO=e=>{var t,n,r,i,l,a,o,s,c,u,d,f,m,v;let{isSearch:x,isTopNav:b,searchResults:w,searchTerm:j,isFocused:S,toggleSearch:k,placeholder:_,popularItems:C,popularLabel:N}=e,E=(0,p.useRef)(null),{refine:P}=n3(aT,void 0,void 0),T=(0,g.useRouter)(),{t:O}=(0,y.Bd)("common"),R=O("search.placeholder","What can we help you find?"),L=[O("search.popular.items[0]","insurance basics"),O("search.popular.items[1]","auto insurance"),O("search.popular.items[2]","VIN Services")],I=O("search.popular.label","Popular Searches"),A=e=>{E.current.value=e.target.innerText,P(E.current.value)},M=()=>{E.current.value="",P("")};return(0,p.useEffect)(()=>{let e=new URL(window.location.href).searchParams.get("term");if("algolia_search_header"===E.current.id)j&&(E.current.value=j,P(j));else{let t=e||j||"";E.current.value=t,P(t)}},[T.asPath,j,P]),(0,p.useEffect)(()=>{S&&E.current.focus()},[S]),(0,h.jsxs)("div",{className:"".concat(b?"w-full flex items-center space-x-8":"lg:w-5/6 px-6 lg:px-24 py-12 bg-white lg:mx-auto lg:-mt-16 relative"," ").concat(x?"max-w-5xl":""," ").concat((null==E||null==(t=E.current)?void 0:t.value.length)>=3&&!x?"pb-0":""),children:[(0,h.jsxs)("div",{className:"relative group/search ".concat(b?"w-full":"border-b-2 border-red-900 hover:border-red-500"),children:[(0,h.jsx)("input",{autoComplete:"off",id:"".concat(b?"algolia_search_header":"algolia_search"),type:"search",name:"term",ref:E,"aria-label":O("components.CustomSearchBox.search"),className:"w-full ".concat(b?"outline-none group-hover/search:border-red-500 focus:ring-0 focus:border-grey-500 placeholder:text-grey-100 h-min py-3 pl-5 border border-grey-300 text-base font-body text-grey-500":"text-4xl px-3 md:px-0 border-none focus:pl-3 focus:ring-0 focus:bg-grey-50 text-grey-500 py-2 group-hover/search:placeholder:text-grey-300 placeholder:text-grey-500 focus:placeholder:invisible md:text-5xl md:font-medium font-display pr-12"),placeholder:_||R,onChange:e=>P(e.currentTarget.value)}),b?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("svg",{className:"".concat((null==E||null==(r=E.current)||null==(n=r.value)?void 0:n.length)?"hidden":""," cursor-pointer text-grey-500 hover:text-red-500 right-3 absolute top-1/2 transform -translate-y-1/2 h-5 w-5"),viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M12.7549 11.2549H11.9649L11.6849 10.9849C12.6649 9.84488 13.2549 8.36488 13.2549 6.75488C13.2549 3.16488 10.3449 0.254883 6.75488 0.254883C3.16488 0.254883 0.254883 3.16488 0.254883 6.75488C0.254883 10.3449 3.16488 13.2549 6.75488 13.2549C8.36488 13.2549 9.84488 12.6649 10.9849 11.6849L11.2549 11.9649V12.7549L16.2549 17.7449L17.7449 16.2549L12.7549 11.2549ZM6.75488 11.2549C4.26488 11.2549 2.25488 9.24488 2.25488 6.75488C2.25488 4.26488 4.26488 2.25488 6.75488 2.25488C9.24488 2.25488 11.2549 4.26488 11.2549 6.75488C11.2549 9.24488 9.24488 11.2549 6.75488 11.2549Z",fill:"currentColor"})}),(0,h.jsx)("svg",{onClick:M,className:"cursor-pointer right-4 absolute top-1/2 h-3.5 w-3.5 transform -translate-y-1/2 ".concat((null==E||null==(l=E.current)||null==(i=l.value)?void 0:i.length)?"":"hidden"),viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z",fill:"#5456
245B"})})]}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("svg",{className:"".concat((null==E||null==(o=E.current)||null==(a=o.value)?void 0:a.length)?"hidden":""," right-3 absolute top-1/2 transform -translate-y-1/2 h-6 w-6"),viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{className:"group-hover/search:fill-red-500",d:"M17.0065 15.0068H15.9532L15.5798 14.6468C16.8865 13.1268 17.6732 11.1534 17.6732 9.00675C17.6732 4.22009 13.7932 0.340088 9.00651 0.340088C4.21984 0.340088 0.339844 4.22009 0.339844 9.00675C0.339844 13.7934 4.21984 17.6734 9.00651 17.6734C11.1532 17.6734 13.1265 16.8868 14.6465 15.5801L15.0065 15.9534V17.0068L21.6732 23.6601L23.6598 21.6734L17.0065 15.0068ZM9.00651 15.0068C5.68651 15.0068 3.00651 12.3268 3.00651 9.00675C3.00651 5.68675 5.68651 3.00675 9.00651 3.00675C12.3265 3.00675 15.0065 5.68675 15.0065 9.00675C15.0065 12.3268 12.3265 15.0068 9.00651 15.0068Z",fill:"#290A15"})}),(0,h.jsx)("svg",{onClick:M,className:"".concat((null==E||null==(s=E.current)?void 0:s.value.length)?"":"hidden"," cursor-pointer right-3 absolute top-1/2 transform -translate-y-1/2 h-5 w-5"),viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M19.3332 2.54666L17.4532 0.666656L9.99984 8.11999L2.5465 0.666656L0.666504 2.54666L8.11984 9.99999L0.666504 17.4533L2.5465 19.3333L9.99984 11.88L17.4532 19.3333L19.3332 17.4533L11.8798 9.99999L19.3332 2.54666Z",fill:"#290A15"})})]})]}),(null==E||null==(u=E.current)||null==(c=u.value)?void 0:c.length)>=3||b?void 0:(0,h.jsxs)("p",{className:"pt-7 text-grey-500",children:[N||I,"\xa0",(C||L).map(e=>(0,h.jsx)("button",{className:"outline-none text-red-500 font-semibold cursor-pointer hover:text-red-700 hover:underline focus:text-red-900 focus:underline mr-2",onClick:e=>A(e),children:e},e))]}),x&&(null==E||null==(f=E.current)||null==(d=f.value)?void 0:d.length)>=3?(0,h.jsx)("p",{className:"pt-7 text-grey-500",children:(0,h.jsx)(y.x6,{i18nKey:"components.CustomSearchBox.showing_results",components:{bold:(0,h.jsx)("span",{className:"font-bold"}),searchTerm:(0,h.jsx)("span",{className:"text-red-500 font-semibold"})},values:{current:null==w||null==(m=w.hits)?void 0:m.length,total:null==w?void 0:w.nbHits,term:null==E||null==(v=E.current)?void 0:v.value}})}):void 0,b?(0,h.jsx)("button",{type:"button",className:"hidden xl:block text-gray-500 hover:text-red-500 active:text-red-700",onClick:()=>{M(),k()},children:(0,h.jsx)("svg",{className:"cursor-pointer",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M21.5 2.615L19.385 0.5L11 8.885L2.615 0.5L0.5 2.615L8.885 11L0.5 19.385L2.615 21.5L11 13.115L19.385 21.5L21.5 19.385L13.115 11L21.5 2.615Z",fill:"currentColor"})})}):void 0]})};function aR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function aL(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,l,a,o=[],s=!0,c=!1;try{if(l=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=l.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return aI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aI(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function aI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function aA(){var e,t,n,r,i,l,a,o,s,c,u,d,h,f,m,g,v,y,x,b=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},w=b.catchError,j=nq(),S=(e=nq(),n=(t=nU()).getIndexId(),i=(r=aL((0,p.useState)(function(){return e.getUiState()}),2))[0],l=r[1],a=i[n],s=(o=aL((0,p.useState)(function(){return e.render
24State}),2))[0],c=o[1],u=s[n]||{},d=(0,p.useCallback)(function(t){e.setUiState(t)},[e]),h=(0,p.useCallback)(function(e){t.setIndexUiState(e)},[t]),(0,p.useEffect)(function(){function t(){l(e.getUiState()),c(e.renderState)}return e.addListener("render",t),function(){e.removeListener("render",t)}},[e]),{uiState:i,setUiState:d,indexUiState:a,setIndexUiState:h,renderState:s,indexRenderState:u}),k=S.uiState,_=S.setUiState,C=S.indexUiState,N=S.setIndexUiState,E=S.renderState,P=S.indexRenderState,T=(f=nq(),m=nU(),y=(v=function(e){if(Array.isArray(e))return e}(g=(0,p.useState)(function(){var e=nV(m);return{results:e.results,scopedResults:e.scopedResults}}))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,l,a,o=[],s=!0,c=!1;try{l=(n=n.call(e)).next,!1;for(;!(s=(r=l.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return o}}(g,2)||function(e,t){if(e){if("string"==typeof e)return aR(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aR(e,t)}}(g,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],x=v[1],(0,p.useEffect)(function(){function e(){var e=m.getResults();if(null!==e)x({results:e,scopedResults:m.getScopedResults()});else if(0===f.mainIndex.getIndexName().length){var t=f.mainIndex.getWidgets().find(e5);t&&x({results:nV(m).results,scopedResults:t.getScopedResults()})}}return f.addListener("render",e),function(){f.removeListener("render",e)}},[f,m]),y),O=T.results,R=T.scopedResults,L=(0,p.useCallback)(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return j.use.apply(j,t),function(){j.unuse.apply(j,t)}},[j]),I=(0,p.useCallback)(function(){j.refresh()},[j]);return nY(function(){if(w){var e=function(){};return j.addListener("error",e),function(){return j.removeListener("error",e)}}return function(){}},[j,w]),{results:O,scopedResults:R,uiState:k,setUiState:_,indexUiState:C,setIndexUiState:N,renderState:E,indexRenderState:P,addMiddlewares:L,refresh:I,status:j.status,error:j.error}}let aM=function(e){var t;let{isTopNav:n,setSearch:r,locale:i}=e,{results:l,indexUiState:a}=aA(),o=(null==(t=a.query)?void 0:t.length)>=3,{t:s}=(0,y.Bd)("common"),{t:c,i18n:u}=(0,y.Bd)("datasources"),d=u.language||i||"en",[f,m]=(0,p.useState)([]);(0,p.useEffect)(()=>{m(x())},[d,u.language]);let g=e=>{let{regionSlug:t,currentLocale:n}=e,r=c("news-regions.".concat(t),t);return"en"===n?r.toUpperCase():r},v=e=>{let{regions:t}=e;return t&&Array.isArray(t)&&0!==t.length?t.map((e,n)=>(0,h.jsxs)("span",{children:[(0,h.jsx)(g,{regionSlug:e,currentLocale:d}),n<t.length-1?" | ":""]},"".concat(e,"-").concat(n))):null},x=()=>{var e,t,n;let r=null==u||null==(n=u.store)||null==(t=n.data)||null==(e=t[d])?void 0:e.datasources;if(!r||!r["popular-search-terms"])return[];let i=r["popular-search-terms"];return"object"!=typeof i?[]:Object.entries(i).map(e=>{let[t,n]=e;return{id:t,name:n,slug:t}}).sort((e,t)=>e.slug.localeCompare(t.slug))},b=s("search.contactUrl","/contact-us"),w=e=>{r(e.target.innerText)};return(0,h.jsxs)("div",{className:"text-red-500 flex flex-col ".concat(o||n?"relative":"hidden"," ").concat(n?"":"w-5/6 px-24 py-6 md:pb-12 bg-white left-1/2 transform-x -translate-x-1/2"),children:[(null==l?void 0:l.hits.length)===0&&o&&(0,h.jsx)(y.x6,{i18nKey:"search.noResults",contactUrl:b,children:(0,h.jsxs)("p",{children:["Looks like we're unable to find what you're looking for. Please try broadening your search terms or ",(0,h.jsx)(n9,{className:"hover:underline hover:text-red-700 active:text-red-900",href:b,children:"contact us directly"}),"."]})}),(null==l?void 0:l.hits.length)>0&&o&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("ol",{className:"space-y-5",children:l.hits.slice(0,6).map(e=>{let t=/^https?:\/\//.test(null==e?void 0:e.full_slug);return(0,h.jsx)("li",{children:(0,h.jsxs)(n9,{href:"".concat(t?"".concat(null==e?void 0:e.full_slug):"/".concat(null==e?void 0:e.full_slug)),children:[e.name,"News_Article_Layout"===e.content.component&&e.content.Region?(0,h.jsxs)(h.Fragment,{children:[" | ",(0,h.jsx)(v,{regions:e.content.Region},"region-".concat(d,"-").concat(null==e?void 0:e.id))]}):void 0]})},e.id)})}),(0,h.jsx)("button",{type:"submit",className:"px-6 py-3 bg-red-500 text-white inline-block self-center mt-6",children:s("components.CustomHits.view_all_results")})]}),!o&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("span",{className:"text-2xl font-display uppercase font-medium mb-6 text-grey-500",children:[s("search.popular.label","Popular Searches"),":"]}),(0,h.jsx)("ul",{className:"space-y-5 text-red-500",children:f.map(e=>(0,h.jsx)("li",{children:(0,h.jsx)("button",{onClick:w,children:e.name})},e.id))})]})]})};n(9742);let aF=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return"fr"===C(e)?"prod_IBC_FR":"prod_IBC_EN"},aD=em("Y0ASKBJHCJ","2380008829670b05a2f8edca316a5818"),aH={...aD,search:e=>e.every(e=>{let{params:t}=e;return!t.query})?Promise.resolve({results:e.map(()=>({hits:[],nbHits:0,nbPages:0,page:0,processingTimeMS:0,hitsPerPage:0,exhaustiveNbHits:!1,query:"",params:""}))}):aD.search(e)},aB=e=>{var t,n,r,i;let{blok:l,story:a}=e,{t:o}=(0,y.Bd)("common"),s=(0,g.useRouter)(),[c,u]=(0,p.useState)(!1),[d,f]=(0,p.useState)(!1),[v,x]=(0,p.useState)(!1),[b,w]=(0,p.useState)(!0),j=aF({locale:s.locale}),S=(e,t)=>{let n;var r=void 0;return function(){for(var i=arguments.length,l=Array(i),a=0;a<i;a++)l[a]=arguments[a];clearTimeout(n),n=setTimeout(()=>{e.apply(r,l)},t)}};(0,p.useEffect)(()=>{u(!1),f(!1)},[]),(0,p.useEffect)(()=>{let e=()=>{C()};return s.events.on("routeChangeStart",e),()=>{s.events.off("routeChangeStart",e)}},[s.events]),(0,p.useEffect)(()=>{let e=0,t=0,n=S(()=>{t=window.scrollY-document.querySelector("header").clientHeight,1>=Math.abs(e-t)||(e-t<0?x(!0):e-t>0&&x(!1),e=t)},5);return window.addEventListener("scroll",n),()=>{window.removeEventListener("scroll",n)}},[]);let[k,_]=(0,p.useState)(""),C=()=>{f(!1),u(null)},N=()=>{u(null),f(!d)},E=e=>{_(e)};return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("header",{className:"z-20 bg-white sticky top-0 max-h-screen overflow-y-auto overscroll-contain no-scrollbar xl:max-h-full xl:overflow-y-visible ".concat(c?"h-screen xl:h-fit flex flex-col":""),...(0,m.K1)(l),children:[(0,h.jsx)(aS,{showBanner:b,blok:null==l||null==(t=l.content)?void 0:t.Emergency_Alert[0],setShowBanner:w}),(0,h.jsxs)("nav",{className:"relative flex flex-col xl:flex-row divide-red-500 xl:divide-y-0 border-red-500 ".concat(c?"h-full justify-start":"justify-center"," ").concat(v?"xl:border-b-4":"xl:border-b-8"," ").concat(d?"":"divide-y-4"),children:[(0,h.jsxs)("div",{className:"flex items-center justify-between xl:hidden px-3 py-4 md:px-6",children:[(0,h.jsx)(n9,{className:"self-center",onClick:C,href:"/",children:(0,h.jsx)("img",{src:"/images/logo-ibc.svg",alt:"IBC BAC Logo - Insurance Bureau of Canada",className:"h-10 ".concat(v?"xl:h-8":""),role:"img"})}),(0,h.jsxs)("ul",{className:"flex items-center flex-row xl:hidden",children:[(0,h.jsx)("li",{className:"flex",children:(0,h.jsxs)("button",{onClick:()=>N(),"aria-label":o("search.toggle","Toggle search"),"aria-haspopup":"true","aria-expanded":d,children:[(0,h.jsx)("img",{src:"/images/icon-search.svg",alt:"Search",className:"".concat(d?" h-0 opacity-0":"opacity-100 w-9 h-9"," duration-200 ease-in-out")}),(0,h.jsx)("img",{src:"/images/icon-close.svg",alt:"Close search",className:"".concat(d?"opacity-100 h-7 w-7":" h-0 opacity-0"," duration-200 ease-in-out xl:hidden")})]})}),(0,h.jsx)("li",{children:(0,h.jsxs)("button",{className:"hamburger h-5 w-9 ml-6 flex cursor-pointer relative",onClick:()=>{f(!1),u(!c||null)},"aria-label":o("components.Top_Nav.menu.toggle","Toggle menu"),"aria-haspopup":"true","aria-expanded":!!c,children:[(0,h.jsx)("span",{className:"h-1 top-0 w-full bg-grey-500 absolute transition-all duration-300 ease-in-out"}),(0,h.jsx)("span",{className:"h-1 top-1/2 w-full bg-grey-500 absolute transition-all duration-300 ease-in-out"}),(0,h.jsx)("span",{className:"h-1 top-full w-full bg-grey-500 absolute transition-all duration-300 ease-in-out"})]})})]})]}),(0,h.jsxs)("nav",{className:"flex w-full h-full md:max-w-screen-xl xl:px-12 2xl:px-0 mx-auto",children:[(0,h.jsx)(n9,{className:"self-center hidden xl:inline-block",href:"/",children:(0,h.jsx)("img",{src:"/images/logo-ibc.svg",alt:"IBC BAC Logo - Insurance Bureau of Canada",className:"".concat(v&&!d?"xl:h-8 xl:w-fit":"w-[173px] h-[50px] max-w-none"),role:"img",width:"173",height:"50"})}),(0,h.jsxs)("div",{className:"".concat(c?"flex w-full overflow-y-auto":"hidden"," ").concat(d?"hidden":"xl:flex"," no-scrollbar flex-col justify-between xl:justify-start xl:items-end w-full xl:min-h-fit duration-100 ease-in-out"),children:[(0,h.jsxs)("ul",{className:"".concat(v?"xl:h-0 xl:overflow-y-hidden":"h-auto xl:pt-5 xl:pb-1.5"," duration-200 ease-in-out py-12 xl:pr-3 xl:py-0 hidden xl:flex flex-col xl:flex-row justify-start xl:justify-between xl:items-center text-base xl:text-sm text-grey-500 xl:divide-x divide-grey-200 font-display"),children:[(0,h.jsx)("li",{onClick:N,className:"hidden xl:flex cursor-pointer xl:px-3 text-grey-500 hover:text-red-500 active:text-red-700",children:(0,h.jsxs)("button",{className:"space-x-1.5 flex items-center",children:[(0,h.jsx)("img",{src:"/images/icon-search-small.svg",alt:"Search",width:"16",height:"16"}),(0,h.jsx)("span",{children:o("search.text","Search")})]})}),(null==l||null==(n=l.content)?void 0:n.Utility_Menu)&&!d?l.content.Utility_Menu.map(e=>(0,h.jsx)("li",{className:"px-6 py-3 xl:py-0 xl:px-3 last:pr-0",children:(0,h.jsx)(m.Dp,{type:"utility",blok:e})},e._uid)):null,(0,h.jsx)("li",{className:"hidden xl:flex cursor-pointer xl:px-3 ",children:(0,h.jsx)(O,{className:"text-grey-500 hover:text-red-500 active:text-red-700 space-x-1.5 flex items-center",story:a})})]}),(0,h.jsx)("ul",{className:"flex flex-col xl:flex-row divide-y divide-grey-100 xl:divide-y-0 border-b border-grey-100 xl:border-b-0 font-display",children:(null==l||null==(r=l.content)?void 0:r.Header_Menu)?l.content.Header_Menu.map((e,t)=>(0,p.createElement)(m.Dp,{blok:e,showBanner:b,reduceNav:v,key:e._uid})):null}),(0,h.jsxs)("ul",{className:"text-base text-grey-500 font-display py-12 pt-3 xl:hidden",children:[(null==l||null==(i=l.content)?void 0:i.Utility_Menu)&&!d?l.content.Utility_Menu.map((e,t)=>{var n,r;return(0,h.jsx)("li",{children:(0,h.jsx)(m.Dp,{className:"px-6 py-3 xl:py-0 xl:px-3 last:pr-0",blok:e,onBlur:t===(null==l||null==(r=l.content)||null==(n=r.Utility_Menu)?void 0:n.length)-1?()=>u(null):null})},e._uid)}):null,(0,h.jsx)("li",{className:"px-6 py-3 xl:py-0 xl:px-3 last:pr-0",children:(0,h.jsx)(O,{className:"space-x-1.5 flex items-center",story:a})})]})]}),(0,h.jsxs)(nT,{searchClient:aH,indexName:j,future:{preserveSharedStateOnUnmount:!1},children:[(0,h.jsx)(n8,{facetFilters:["content.component:-Resource_Details"]}
24),(0,h.jsxs)("form",{onSubmit:e=>{e.preventDefault();let t=e.target[0].value;e.target[0].value="",s.push({pathname:o("urls.search"),query:{term:t}})},action:o("urls.search"),method:"GET",className:"h-full ml-12 w-full bg-white hidden ".concat(d?"xl:block":"hidden"),children:[(0,h.jsx)("div",{className:"flex items-center w-full py-[1.375rem]",children:(0,h.jsx)(aO,{searchTerm:k,isTopNav:!0,isFocused:d,toggleSearch:N,placeholder:o("search.placeholder","What can we help you find?"),popularItems:[o("search.popular.items[0]","insurance basics"),o("search.popular.items[1]","auto insurance"),o("search.popular.items[2]","VIN Services")],popularLabel:o("search.popular.label","Popular Searches")})}),(0,h.jsx)("div",{className:"left-0 bg-white border-t-4 xl:border-t-8 border-red-500 absolute w-full block",children:(0,h.jsxs)("div",{className:"max-w-screen-xl mx-auto flex py-12 xl:py-6 text-base px-6 md:px-0",children:[(0,h.jsx)("div",{className:"hidden xl:block xl:w-72 2xl:w-60 mr-0.5"}),(0,h.jsx)(aM,{setSearch:E,isTopNav:!0})]})})]})]})]}),(0,h.jsxs)(nT,{searchClient:aH,indexName:j,future:{preserveSharedStateOnUnmount:!1},children:[(0,h.jsx)(n8,{facetFilters:["content.component:-Resource_Details"]}),(0,h.jsx)("div",{className:"border-t-4 border-red-500 left-0 h-screen w-full xl:hidden bg-white ".concat(d?"flex":"hidden"),children:(0,h.jsxs)("form",{action:o("urls.search"),method:"GET",className:"w-full py-12 px-6",children:[(0,h.jsx)("div",{className:"mb-12 w-full focus-within:border-grey-100 text-base text-grey-500 flex items-center justify-between",children:(0,h.jsx)(aO,{searchTerm:k,isTopNav:!0})}),(0,h.jsx)(aM,{setSearch:E,isTopNav:!0})]})})]})]})]}),(0,h.jsx)("div",{children:b})]})},a$=e=>{let{story:t,children:n,topNav:r,footer:i}=e;return(0,p.useEffect)(()=>{document&&!CSS.supports("selector(html:has(body))")&&document.querySelectorAll(".prose > ol").forEach(e=>{e.querySelectorAll("ol").length||e.classList.add("step-list")})},[]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(n9,{className:"top-0 left-1/2 -translate-x-1/2 bg-red-500 text-white p-3 transform -translate-y-full z-50 absolute focus:translate-y-0",href:"#main",children:"Skip to Main Content"}),(0,h.jsx)(aB,{blok:r,story:t}),n,(0,h.jsx)(ei,{blok:i,story:t})]})};class az extends p.Component{static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,t){console.log({error:e,errorInfo:t}),(async()=>{let{buildId:e}=await fetch("/api/buildId").then(e=>e.json());e!==__NEXT_DATA__.buildId&&window.location.reload()})()}render(){return this.state.hasError?(0,h.jsx)("div",{className:"relative flex min-h-screen flex-col justify-center overflow-hidden bg-gray-50 py-6 sm:py-12",children:(0,h.jsx)("div",{className:"relative bg-white px-6 pt-10 pb-8 shadow-xl ring-1 ring-gray-900/5 sm:mx-auto sm:max-w-lg sm:rounded-lg sm:px-10",children:(0,h.jsx)("div",{className:"mx-auto max-w-md",children:(0,h.jsx)("div",{className:"divide-y divide-gray-300/50",children:(0,h.jsxs)("div",{className:"space-y-6 py-8 text-base leading-7 text-gray-600",children:[(0,h.jsx)("h1",{className:"text-2xl",children:"New updates. Please wait..."}),(0,h.jsx)("p",{children:"Loading the latest IBC website updates"})]})})})})}):this.props.children}constructor(e){super(e),this.state={hasError:!1}}}var aV=n(2441);let aW={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function aU(e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}let aq={date:aU({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:aU({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:aU({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},aQ={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},aK=(e,t,n,r)=>aQ[e];function aG(e){return(t,n)=>{let r;if("formatting"===((null==n?void 0:n.context)?String(n.context):"standalone")&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,i=(null==n?void 0:n.width)?String(n.width):t;r=e.formattingValues[i]||e.formattingValues[t]}else{let t=e.defaultWidth,i=(null==n?void 0:n.width)?String(n.width):e.defaultWidth;r=e.values[i]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}let aY={ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:aG({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:aG({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:aG({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:aG({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
24ay","Saturday"]},defaultWidth:"wide"}),dayPeriod:aG({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function aZ(e){return function(t){let n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.width,l=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(l);if(!a)return null;let o=a[0],s=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}(s,e=>e.test(o)):function(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}(s,e=>e.test(o));return n=e.valueCallback?e.valueCallback(c):c,{value:n=r.valueCallback?r.valueCallback(n):n,rest:t.slice(o.length)}}}function aJ(e){return function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;let i=r[0],l=t.match(e.parsePattern);if(!l)return null;let a=e.valueCallback?e.valueCallback(l[0]):l[0];return{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(i.length)}}}let aX={ordinalNumber:aJ({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:aZ({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:aZ({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:aZ({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:aZ({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:aZ({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},a0={code:"en-US",formatDistance:(e,t,n)=>{let r,i=aW[e];if(r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null==n?void 0:n.addSuffix)if(n.comparison&&n.comparison>0)return"in "+r;else return r+" ago";return r},formatLong:aq,formatRelative:aK,localize:aY,match:aX,options:{weekStartsOn:0,firstWeekContainsDate:1}},a1={},a2=Symbol.for("constructDateFrom");function a5(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&a2 in e?e[a2](t):e instanceof Date?new e.constructor(t):new Date(t)}function a3(e,t){return a5(t||e,e)}function a4(e){let t=a3(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),e-n}function a6(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];let i=a5.bind(null,e||n.find(e=>"object"==typeof e));return n.map(i)}function a8(e,t){let n=a3(e,null==t?void 0:t.in);return n.setHours(0,0,0,0),n}function a9(e,t){var n,r,i,l,a,o,s,c;let u=null!=(c=null!=(s=null!=(o=null!=(a=null==t?void 0:t.weekStartsOn)?a:null==t||null==(r=t.locale)||null==(n=r.options)?void 0:n.weekStartsOn)?o:a1.weekStartsOn)?s:null==(l=a1.locale)||null==(i=l.options)?void 0:i.weekStartsOn)?c:0,d=a3(e,null==t?void 0:t.in),h=d.getDay();return d.setDate(d.getDate()-(7*(h<u)+h-u)),d.setHours(0,0,0,0),d}function a7(e,t){return a9(e,{...t,weekStartsOn:1}
24)}function oe(e,t){let n=a3(e,null==t?void 0:t.in),r=n.getFullYear(),i=a5(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);let l=a7(i),a=a5(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);let o=a7(a);return n.getTime()>=l.getTime()?r+1:n.getTime()>=o.getTime()?r:r-1}function ot(e,t){var n,r,i,l,a,o,s,c;let u=a3(e,null==t?void 0:t.in),d=u.getFullYear(),h=null!=(c=null!=(s=null!=(o=null!=(a=null==t?void 0:t.firstWeekContainsDate)?a:null==t||null==(r=t.locale)||null==(n=r.options)?void 0:n.firstWeekContainsDate)?o:a1.firstWeekContainsDate)?s:null==(l=a1.locale)||null==(i=l.options)?void 0:i.firstWeekContainsDate)?c:1,p=a5((null==t?void 0:t.in)||e,0);p.setFullYear(d+1,0,h),p.setHours(0,0,0,0);let f=a9(p,t),m=a5((null==t?void 0:t.in)||e,0);m.setFullYear(d,0,h),m.setHours(0,0,0,0);let g=a9(m,t);return+u>=+f?d+1:+u>=+g?d:d-1}function on(e,t){let n=Math.abs(e).toString().padStart(t,"0");return(e<0?"-":"")+n}let or={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return on("yy"===t?r%100:r,t.length)},M(e,t){let n=e.getMonth();return"M"===t?String(n+1):on(n+1,2)},d:(e,t)=>on(e.getDate(),t.length),a(e,t){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>on(e.getHours()%12||12,t.length),H:(e,t)=>on(e.getHours(),t.length),m:(e,t)=>on(e.getMinutes(),t.length),s:(e,t)=>on(e.getSeconds(),t.length),S(e,t){let n=t.length;return on(Math.trunc(e.getMilliseconds()*Math.pow(10,n-3)),t.length)}},oi={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ol={G:function(e,t,n){let r=+(e.getFullYear()>0);switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){let t=e.getFullYear();return n.ordinalNumber(t>0?t:1-t,{unit:"year"})}return or.y(e,t)},Y:function(e,t,n,r){let i=ot(e,r),l=i>0?i:1-i;return"YY"===t?on(l%100,2):"Yo"===t?n.ordinalNumber(l,{unit:"year"}):on(l,t.length)},R:function(e,t){return on(oe(e),t.length)},u:function(e,t){return on(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return on(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return on(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){let r=e.getMonth();switch(t){case"M":case"MM":return or.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){let r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return on(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){let i=function(e,t){let n=a3(e,null==t?void 0:t.in);return Math.round((a9(n,t)-function(e,t){var n,r,i,l,a,o,s,c;let u=null!=(c=null!=(s=null!=(o=null!=(a=null==t?void 0:t.firstWeekContainsDate)?a:null==t||null==(r=t.locale)||null==(n=r.options)?void 0:n.firstWeekContainsDate)?o:a1.firstWeekContainsDate)?s:null==(l=a1.locale)||null==(i=l.options)?void 0:i.firstWeekContainsDate)?c:1,d=ot(e,t),h=a5((null==t?void 0:t.in)||e,0);return h.setFullYear(d,0,u),h.setHours(0,0,0,0),a9(h,t)}(n,t))/6048e5)+1}(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):on(i,t.length)},I:function(e,t,n){let r=function(e,t){let n=a3(e,void 0);return Math.round((a7(n)-function(e,t){let n=oe(e,void 0),r=a5(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),a7(r)}(n))/6048e5)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):on(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):or.d(e,t)},D:function(e,t,n){let r=function(e,t){let n=a3(e,void 0);return function(e,t,n){let[r,i]=a6(void 0,e,t),l=a8(r),a=a8(i);return Math.round((l-a4(l)-(a-a4(a)))/864e5)}(n,function(e,t){let n=a3(e,void 0);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}(n))+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):on(r,t.length)},E:function(e,t,n){let r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){let i=e.getDay(),l=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(l);case"ee":return on(l,2);case"eo":return n.ordinalNumber(l,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){let i=e.getDay(),l=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(l);case"cc":return on(l,t.length);case"co":return n.ordinalNumber(l,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){let r=e.getDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return on(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){let r,i=e.getHours();switch(r=12===i?oi.noon:0===i?oi.midnight:i/12>
24=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){let r,i=e.getHours();switch(r=i>=17?oi.evening:i>=12?oi.afternoon:i>=4?oi.morning:oi.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return or.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):or.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):on(r,t.length)},k:function(e,t,n){let r=e.getHours();return(0===r&&(r=24),"ko"===t)?n.ordinalNumber(r,{unit:"hour"}):on(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):or.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):or.s(e,t)},S:function(e,t){return or.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return oo(r);case"XXXX":case"XX":return os(r);default:return os(r,":")}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"x":return oo(r);case"xxxx":case"xx":return os(r);default:return os(r,":")}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+oa(r,":");default:return"GMT"+os(r,":")}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+oa(r,":");default:return"GMT"+os(r,":")}},t:function(e,t,n){return on(Math.trunc(e/1e3),t.length)},T:function(e,t,n){return on(+e,t.length)}};function oa(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),l=r%60;return 0===l?n+String(i):n+String(i)+t+on(l,2)}function oo(e,t){return e%60==0?(e>0?"-":"+")+on(Math.abs(e)/60,2):os(e,t)}function os(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Math.abs(e);return(e>0?"-":"+")+on(Math.trunc(n/60),2)+t+on(n%60,2)}let oc=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},ou=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},od={p:ou,P:(e,t)=>{let n,r=e.match(/(P+)(p+)?/)||[],i=r[1],l=r[2];if(!l)return oc(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",oc(i,t)).replace("{{time}}",ou(l,t))}},oh=/^D+$/,op=/^Y+$/,of=["D","DD","YY","YYYY"],om=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,og=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ov=/^'([^]*?)'?$/,oy=/''/g,ox=/[a-zA-Z]/;function ob(e,t,n){var r,i,l,a,o,s,c,u,d,h,p,f,m,g,v,y,x,b;let w=null!=(h=null!=(d=null==n?void 0:n.locale)?d:a1.locale)?h:a0,j=null!=(g=null!=(m=null!=(f=null!=(p=null==n?void 0:n.firstWeekContainsDate)?p:null==n||null==(i=n.locale)||null==(r=i.options)?void 0:r.firstWeekContainsDate)?f:a1.firstWeekContainsDate)?m:null==(a=a1.locale)||null==(l=a.options)?void 0:l.firstWeekContainsDate)?g:1,S=null!=(b=null!=(x=null!=(y=null!=(v=null==n?void 0:n.weekStartsOn)?v:null==n||null==(s=n.locale)||null==(o=s.options)?void 0:o.weekStartsOn)?y:a1.weekStartsOn)?x:null==(u=a1.locale)||null==(c=u.options)?void 0:c.weekStartsOn)?b:0,k=a3(e,null==n?void 0:n.in);if(!(k instanceof Date||"object"==typeof k&&"[object Date]"===Object.prototype.toString.call(k))&&"number"!=typeof k||isNaN(+a3(k)))throw RangeError("Invalid time value");let _=t.match(og).map(e=>{let t=e[0];return"p"===t||"P"===t?(0,od[t])(e,w.formatLong):e}).join("").match(om).map(e=>{if("''"===e)return{isToken:!1,value:"'"};let t=e[0];if("'"===t)return{isToken:!1,value:function(e){let t=e.match(ov);return t?t[1].replace(oy,"'"):e}(e)};if(ol[t])return{isToken:!0,value:e};
24if(t.match(ox))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});w.localize.preprocessor&&(_=w.localize.preprocessor(k,_));let C={firstWeekContainsDate:j,weekStartsOn:S,locale:w};return _.map(r=>{if(!r.isToken)return r.value;let i=r.value;return(!(null==n?void 0:n.useAdditionalWeekYearTokens)&&op.test(i)||!(null==n?void 0:n.useAdditionalDayOfYearTokens)&&oh.test(i))&&function(e,t,n){let r=function(e,t,n){let r="Y"===e[0]?"years":"days of the month";return"Use `".concat(e.toLowerCase(),"` instead of `").concat(e,"` (in `").concat(t,"`) for formatting ").concat(r," to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")}(e,t,n);if(console.warn(r),of.includes(e))throw RangeError(r)}(i,t,String(e)),(0,ol[i[0]])(k,i,w.localize,C)}).join("")}let ow={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"a second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"a minute",other:"{{count}} minutes"},aboutXHours:{one:"about an hour",other:"about {{count}} hours"},xHours:{one:"an hour",other:"{{count}} hours"},xDays:{one:"a day",other:"{{count}} days"},aboutXWeeks:{one:"about a week",other:"about {{count}} weeks"},xWeeks:{one:"a week",other:"{{count}} weeks"},aboutXMonths:{one:"about a month",other:"about {{count}} months"},xMonths:{one:"a month",other:"{{count}} months"},aboutXYears:{one:"about a year",other:"about {{count}} years"},xYears:{one:"a year",other:"{{count}} years"},overXYears:{one:"over a year",other:"over {{count}} years"},almostXYears:{one:"almost a year",other:"almost {{count}} years"}},oj={code:"en-CA",formatDistance:(e,t,n)=>{let r,i=ow[e];if(r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null==n?void 0:n.addSuffix)if(n.comparison&&n.comparison>0)return"in "+r;else return r+" ago";return r},formatLong:{date:aU({formats:{full:"EEEE, MMMM do, yyyy",long:"MMMM do, yyyy",medium:"MMM d, yyyy",short:"yyyy-MM-dd"},defaultWidth:"full"}),time:aU({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:aU({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:aK,localize:aY,match:aX,options:{weekStartsOn:0,firstWeekContainsDate:1}},oS={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}},ok={lastWeek:"eeee 'dernier \xe0' p",yesterday:"'hier \xe0' p",today:"'aujourd’hui \xe0' p",tomorrow:"'demain \xe0' p'",nextWeek:"eeee 'prochain \xe0' p",other:"P"},o_=["MMM","MMMM"],oC={preprocessor:(e,t)=>1!==e.getDate()&&t.some(e=>e.isToken&&o_.includes(e.value))?t.map(e=>e.isToken&&"do"===e.value?{isToken:!0,value:"d"}:e):t,ordinalNumber:(e,t)=>{let n,r=Number(e),i=null==t?void 0:t.unit;return 0===r?"0":(n=1===r?i&&["year","week","hour","minute","second"].includes(i)?"\xe8re":"er":"\xe8me",r+n)},era:aG({values:{narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant J\xe9sus-Christ","apr\xe8s J\xe9sus-Christ"]},defaultWidth:"wide"}),quarter:aG({values:{narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2\xe8me trim.","3\xe8me trim.","4\xe8me trim."],wide:["1er trimestre","2\xe8me trimestre","3\xe8me trimestre","4\xe8me trimestre"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:aG({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","f\xe9vr.","mars","avr.","mai","juin","juil.","ao\xfbt","sept.","oct.","nov.","d\xe9c."],wide:["janvier","f\xe9vrier","mars","avril","mai","juin","juillet","ao\xfbt","septembre","octobre","novembre","d\xe9cembre"]},defaultWidth:"wide"}),day:aG({values:{narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},defaultWidth:"wide"}),dayPeriod:aG({values:{narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"apr\xe8s-mi
24di",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’apr\xe8s-midi",evening:"du soir",night:"du matin"}},defaultWidth:"wide"})},oN={ordinalNumber:aJ({matchPattern:/^(\d+)(ième|ère|ème|er|e)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e)}),era:aZ({matchPatterns:{narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:"any"}),quarter:aZ({matchPatterns:{narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:aZ({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:aZ({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:aZ({matchPatterns:{narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},defaultParseWidth:"any"})},oE={code:"fr-CA",formatDistance:(e,t,n)=>{let r,i=oS[e];if(r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),null==n?void 0:n.addSuffix)if(n.comparison&&n.comparison>0)return"dans "+r;else return"il y a "+r;return r},formatLong:{date:aU({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"yy-MM-dd"},defaultWidth:"full"}),time:aU({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:aU({formats:{full:"{{date}} '\xe0' {{time}}",long:"{{date}} '\xe0' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:(e,t,n,r)=>ok[e],localize:oC,match:oN,options:{weekStartsOn:0,firstWeekContainsDate:1}};var oP=n(7328),oT=n.n(oP);let oO=N(),oR=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{version:t?"draft":"published",language:e,resolve_links:"url"}},oL=async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Array.isArray(e)?e:[e];if(!n.length)return e;let r=n.filter(e=>null==e?void 0:e.uuid);r.length!==n.length&&console.warn("[WARN] Some stories missing UUIDs: ".concat(n.length-r.length," invalid"));try{let i=(0,m._8)(),l={...oR("en",t),by_uuids:r.map(e=>e.uuid).join(",")},{data:{stories:a}}=await i.get("cdn/stories",l),o=new Map;a&&a.forEach(e=>o.set(e.uuid,e));let s=n.map(e=>{let t=o.get(e.uuid);return(null==t?void 0:t.first_published_at)?{...e,first_published_at:t.first_published_at}:e});return Array.isArray(e)?s:s[0]}catch(t){return console.warn("[WARN] Failed to fetch EN fallbacks for ".concat(n.length," stories"),t.message),e}},oI=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=(0,m._8)(),i=t||C(),l={...oR(i,n),...e};try{let{data:{stories:e,links:t,total:a}}=await r.get("cdn/stories",l);if(!e)return{stories:[],links:{},total:0};let o=e;return"fr"===i&&(o=await oL(o,n)),"fr"===i&&t&&(o=o.map(e=>oA(e,Object.values(t),i))),{stories:o,links:t,total:a}}catch(e){throw console.error("Error fetching stories:",e),e}},oA=(e,t,n)=>{var r;if("en"===n||!t||!(null==e?void 0:e.content))return e;let i=function e(t,n,r){if(!t||"object"!=typeof t)return t;if(Array.isArray(t))return t.map(t=>e(t,n,r));let i={...t};for(let[t,l]of Object.entries(i))if("object"==typeof l&&null!==l)if(l.cached_url&&l.id&&"story"===l.linktype){let e=l.id,a=n.find(t=>t.uuid===e);if(null==a?void 0:a.full_slug){let e=a.full_slug;if(oO&&"en"!==r){let t="".concat(r,"/");e.startsWith(t)&&(e=e.substring(t.length))}i[t]={...l,default_cached_url:l.cached_url,cached_url:"/".concat(e)}}}else"marks"===t&&Array.isArray(l)?i[t]=l.map(e=>{if("link"===e.type&&e.attrs&&e.attrs.uuid&&"story"===e.attrs.linktype){let t=n.find(t=>t.uuid===e.attrs.uuid);if(null==t?void 0:t.full_slug){let n=t.full_slug;if(oO&&"en"!==r){let e="".concat(r,"/");n.startsWith(e)&&(n=n.substring(e.length))}return{...e,attrs:{...e.attrs,default_href:e.attrs.href,href:"/".concat(n)}}}}return e}):i[t]=e(l,n,r);return i}(e.content,t,n);return{...e,content:i,first_published_at:null!=(r=e.first_published_at)?r:null}},oM=(e,t)=>{if(!(null==e?void 0:e.translated_slugs)||"en"===t)return(null==e?void 0:e.full_slug)||null;let n=e.translated_slugs.find(e=>e.lang===t);return(null==n?void 0:n.path)||(null==e?void 0:e.full_slug)||null},oF={en:oj,fr:oE},oD=e=>{let{jobType:t,locale:n}=e,{t:r}=(0,y.Bd)("datasources");if(!t)return null;let i=r("job-type.".concat(t),t);return(0,h.jsx)("p",{className:"text-base uppercase font-medium tracking-wide font-display",children:i})},oH=e=>{let{location:t,exclude:n,locale:r}=e,{t:i}=(0,y.Bd)("common"),[l,a]=(0,p.useState)([]),[o,s]=(0,p.useState)(!0),[c,u]=(0,p.useState)(!1),[d,f]=(0,p.useState)(r||"en");(0,p.useEffect)(()=>{r?f(r):f(C())},[r]);let m=(0,p.useCallback)(async()=>{try{s(!0);let{stories:e}=await oI({starts_with:"about/working-at-ibc/",sort_by:"first_published_at:desc",per_page:3,page:1,excluding_ids:n||""},d);a(e||[]),u(!0)}catch(e){console.error("Error fetching related openings:",e),a([]),u(!0)}finally{s(!1)}},[d,n,t,r]);if((0,p.useEffect)(()=>{m()},[m]),o||!c||!l.length)return null;let g=l.filter(e=>
24e.content&&e.content.Title).filter((e,t,n)=>{var r;let i=(null==e?void 0:e.id)||(null==e||null==(r=e.content)?void 0:r._uid);return n.findIndex(e=>{var t;return((null==e?void 0:e.id)||(null==e||null==(t=e.content)?void 0:t._uid))===i})===t});return g.length?(0,h.jsx)("div",{className:"w-full bg-blue-100 py-12 md:py-24",children:(0,h.jsxs)(w.A,{as:"section",className:"space-y-12",children:[(0,h.jsx)("h2",{className:"text-6xl md:text-8xl font-normal font-display text-blue-900",children:i("components.Related_Openings.heading","Related openings")}),(0,h.jsx)("ul",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 lg:gap-12",children:g.map((e,t)=>{var n,r,i,l;let a="opening-".concat(t,"-").concat((null==e?void 0:e.id)||(null==e||null==(n=e.content)?void 0:n._uid)||"no-id");return(0,h.jsx)("li",{className:"flex flex-col",children:(0,h.jsxs)(n9,{href:null==e?void 0:e.full_slug,className:"group/card flex flex-col justify-between pt-6 px-6 text-grey-500 bg-white h-full transition duration-150 ease-in-out hover:drop-shadow-mobile active:drop-shadow-active-mobile md:hover:drop-shadow-desktop md:active:drop-shadow-active-desktop",children:[(0,h.jsxs)("div",{className:"space-y-3",children:[(0,h.jsx)(oD,{jobType:null==e||null==(r=e.content)?void 0:r.Job_Type,locale:d},"job-type-".concat(d,"-").concat(a)),(0,h.jsx)("h3",{className:"text-5xl font-display font-medium transition duration-150 ease-in-out text-blue-500 group-hover/card:text-red-500 group-active/card:text-red-700",children:null==e||null==(i=e.content)?void 0:i.Title}),(0,h.jsxs)("div",{children:[(0,h.jsxs)("p",{children:[(0,h.jsx)("span",{className:"font-bold",children:"Posted:"})," ",ob(new Date(e.first_published_at),"PP",{locale:oF[d]})]}),e.content.Closing_Date?(0,h.jsxs)("p",{children:[(0,h.jsx)("span",{className:"font-bold",children:"Closes:"})," ",ob(new Date(e.content.Closing_Date),"PP",{locale:oF[d]})]}):void 0]})]}),(0,h.jsxs)("div",{className:"text-xs text-grey-500 group-hover/card:text-red-500 group-active/card:text-red-700 py-7 flex items-center justify-between transition duration-150 ease-in-out",children:[(0,h.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,h.jsx)("svg",{width:"20",height:"28",viewBox:"0 0 20 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M10.0013 0.666656C4.8413 0.666656 0.667969 4.83999 0.667969 9.99999C0.667969 17 10.0013 27.3333 10.0013 27.3333C10.0013 27.3333 19.3346 17 19.3346 9.99999C19.3346 4.83999 15.1613 0.666656 10.0013 0.666656ZM10.0013 13.3333C8.1613 13.3333 6.66797 11.84 6.66797 9.99999C6.66797 8.15999 8.1613 6.66666 10.0013 6.66666C11.8413 6.66666 13.3346 8.15999 13.3346 9.99999C13.3346 11.84 11.8413 13.3333 10.0013 13.3333Z",fill:"currentColor"})}),(0,h.jsx)("p",{children:null==e||null==(l=e.content)?void 0:l.Location})]}),(0,h.jsx)("svg",{width:"22",height:"12",viewBox:"0 0 22 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M16.0133 4.66666H0V7.33332H16.0133V11.3333L21.3333 5.99999L16.0133 0.666656V4.66666Z",fill:"currentColor"})})]})]})},a)})})]})}):null},oB=e=>{let{breadcrumbs:t=[],containerClasses:n,itemClasses:r,title:i=""}=e;return(0,h.jsx)("ul",{className:"".concat(n," breadcrumbs flex"),children:null==t?void 0:t.map((e,n)=>(0,h.jsx)("li",{children:n<(null==t?void 0:t.length)-1?(0,h.jsx)(n9,{className:"underline hover:no-underline font-semibold ".concat(r),href:e.real_path,children:e.name}):(0,h.jsx)("span",{children:i||e.name})},e.uuid))})},o$={en:oj,fr:oE},oz={en:oj,fr:oE},oV=e=>{let{jobs:t,locale:n}=e,r=(0,g.useRouter)(),i=n||r.locale||"en",{t:l}=(0,y.Bd)("common",{lng:i}),{t:a}=(0,y.Bd)("datasources",{lng:i}),o=e=>{let{resourceTitleSlug:t}=e;return a("work-departments.".concat(t),t)};return(0,h.jsxs)(w.A,{className:"py-24 space-y-12",children:[(0,h.jsx)("h2",{id:l("components.Job_Grid.named_anchor","current-openings"),className:"text-red-500 text-6xl md:text-8xl font-display",children:l("components.Job_Grid.headings.current_openings")},"heading-".concat(i)),(0,h.jsx)("ul",{className:"grid grid-cols-1 md:grid-cols-3 gap-12",children:(null==t?void 0:t.length)&&(null==t?void 0:t.map(e=>{var t,n,r,a,s,c,u,d,p,f,m;return(0,h.jsx)("li",{className:"h-full text-grey-500",children:(0,h.jsxs)(n9,{href:null!=(f="/".concat(null==e?void 0:e.full_slug))?f:"",className:"bg-grey-50 flex h-full flex-col justify-between group/card hover:drop-shadow-mobile active:drop-shadow-active-mobile  md:hover:drop-shadow-desktop md:active:drop-shadow-active-desktop transition duration-150 ease-in-out",children:[(0,h.jsxs)("div",{className:"p-6",children:[(0,h.jsx)("h3",{className:"text-2xl font-display uppercase",children:(0,h.jsx)(o,{resourceTitleSlug:e.content.Resource_Title},"resource-title-".concat(i,"-").concat(e.uuid))}),(0,h.jsx)("h4",{className:"text-4xl md:text-5xl md:font-medium font-display text-red-500 py-3 group-hover/card:text-red-700 group-active/card:text-red-900 transition duration-150 ease-in-out",children:e.content.Title}),(0,h.jsxs)("p",{children:[(0,h.jsx)("span",{className:"font-bold",children:l("components.Job_Grid.job_card.posted")},"posted-".concat(i,"-").concat(e.uuid))," ",ob(new Date(e.first_published_at),"PP",{locale:oz[i]})]}),(null==e||null==(n=e.content)||null==(t=n.Closing_Date)?void 0:t.length)||(null==e||null==(r=e.content)?void 0:r.Closing_Date_Text)?(0,h.jsxs)("p",{children:[(0,h.jsx)("span",{className:"font-bold",children:l("components.Job_Grid.job_card.closes")},"closes-".concat(i,"-").concat(e.uuid))," ",null!=(m=null==e||null==(a=e.content)?void 0:a.Closing_Date_Text)?m:ob(new Date(e.content.Closing_Date),"PP",{locale:oz[i]})]}):void 0]}),(0,h.jsxs)("div",{className:"flex ".concat((null==e||null==(c=e.content)||null==(s=c.Location)?void 0:s.length)?"justify-between":"justify-end","  p-6 items-center w-full group-hover/card:text-red-700 group-active/card:text-red-900 transition duration-150 ease-in-out"),children:[(null==e||null==(d=e.content)||null==(u=d.Location)?void 0:u.length)?(0,h.jsxs)("div",{className:"flex space-x-3",children:[(0,h.jsx)("svg",{width:"20",height:"28",viewBox:"0 0 20 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M10.0013 0.666626C4.8413 0.666626 0.667969 4.83996 0.667969 9.99996C0.667969 17 10.0013 27.3333 10.0013 27.3333C10.0013 27.3333 19.3346 17 19.3346 9.99996C19.3346 4.83996 15.1613 0.666626 10.0013 0.666626ZM10.0013 13.3333C8.1613 13.3333 6.66797 11.84 6.66797 9.99996C6.66797 8.15996 8.1613 6.66663 10.0013 6.66663C11.8413 6.66663 13.3346 8.15996 13.3346 9.99996C13.3346 11.84 11.8413 13.3333 10.0013 13.3333Z",fill:"currentColor"})}),(0,h.jsx)("span",{children:null==e||null==(p=e.content)?void 0:p.Location})]}):void 0,(0,h.jsx)("svg",{width:"22",height:"12",viewBox:"0 0 22 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M16.0133 4.66663H0V7.33329H16.0133V11.3333L21.3333 5.99996L16.0133 0.666626V4.66663Z",fill:"currentColor"})})]})]})},e.uuid)}))})]})},oW=e=>"string"==typeof e?null==e?void 0:e.replace(/[?]+/g,"").replace(/\W+/g,"-").replace(/^\d+-/,"").toLowerCase():"",oU={National:"National",bc:"British Columbia",on:"Ontario",ab:"Alberta",nl:"Newfoundland & Labrador",nb:"New Brunswick",ns:"Nova Scotia",pe:"Prince Edward Island",qc:"Quebec",sk:"Saskatchewan",mb:"Manitoba",
24nt:"Northwest Territories",nu:"Nunavut",yt:"Yukon"},oq=e=>e.split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" "),oQ=e=>{var t;let n;return e&&"string"==typeof e&&(null==(n=e.match(/^(?:[^|]*\|\s*)?(?:(?:By|Par)\s*:?\s*)?([^,]+)/i))||null==(t=n[1])?void 0:t.trim())||""};function oK(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}let oG=function(e){var t,n;if(null==e)return oZ;if("function"==typeof e)return oY(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=oG(e[n]);return oY(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,oY(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,oY(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function oY(e){return function(t,n,r){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function oZ(){return!0}let oJ=[],oX="phrasing",o0=["autolink","link","image","label"];function o1(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function o2(e){this.config.enter.autolinkProtocol.call(this,e)}function o5(e){this.config.exit.autolinkProtocol.call(this,e)}function o3(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function o4(e){this.config.exit.autolinkEmail.call(this,e)}function o6(e){this.exit(e)}function o8(e){!function(e,t,n){let r=oG((n||{}).ignore||[]),i=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){var i;let e=n[r];t.push(["string"==typeof(i=e[0])?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(i),"g"):i,function(e){return"function"==typeof e?e:function(){return e}}(e[1])])}return t}(t),l=-1;for(;++l<i.length;)!function(e,t,n,r){let i;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):i=t;let l=oG(i),a=r?-1:1;(function e(i,o,s){let c=i&&"object"==typeof i?i:{};if("string"==typeof c.type){let e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return u;function u(){var c;let u,d,h,p=oJ;if((!t||l(i,o,s[s.length-1]||void 0))&&!1===(p=Array.isArray(c=n(i,s))?c:"number"==typeof c?[!0,c]:null==c?oJ:[c])[0])return p;if("children"in i&&i.children&&i.children&&"skip"!==p[0])for(d=(r?i.children.length:-1)+a,h=s.concat(i);d>-1&&d<i.children.length;){if(!1===(u=e(i.children[d],d,h)())[0])return u;d="number"==typeof u[1]?u[1]:d+a}return p}})(e,void 0,[])()}(e,"text",a);function a(e,t){let n,a=-1;for(;++a<t.length;){let e=t[a],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){let n=t[t.length-1],r=i[l][0],a=i[l][1],o=0,s=n.children.indexOf(e),c=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},l=a(...d,i);if("string"==typeof l&&(l=l.length>0?{type:"text",value:l}:void 0),!1===l?r.lastIndex=n+1:(o!==n&&u.push({type:"text",value:e.value.slice(o,n)}),Array.isArray(l)?u.push(...l):l&&u.push(l),o=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}return c?(o<e.value.length&&u.push({type:"text",value:e.value.slice(o)}),n.children.splice(s,1,...u)):u=[e],s+u.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,o9],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,o7]],{ignore:["link","linkReference"]})}function o9(e,t,n,r,i){let l="";if(!se(i)||(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!function(e){let t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(n)))return!1;let a=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")"),i=oK(e,"("),l=oK(e,")");for(;-1!==r&&i>l;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),l++;return[e,n]}(n+r);if(!a[0])return!1;let o={type:"link",title:null,url:l+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[o,{type:"text",value:a[1]}]:o}function o7(e,t,n,r){return!(!se(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function se(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||ib(n)||ix(n))&&(!t||47!==n)}function st(){this.buffer()}function sn(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function sr(){this.buffer()}function si(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function sl(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=iU(this.sliceSerialize(e)).toLowerCase(),n.label=t}function sa(e){this.exit(e)}function so(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=iU(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ss(e){this.exit(e)}function sc(e,t,n,r){let i=n.createTracker(r),l=i.move("[^"),a=n.enter("footnoteReference"),o=n.enter("reference");return l+=i.move(n.safe(n.associationId(e),{after:"]",before:l})),o(),a(),l+=i.move("]")}
24function su(e,t,n){return 0===t?e:sd(e,t,n)}function sd(e,t,n){return(n?"":"    ")+e}sc.peek=function(){return"["};let sh=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function sp(e){this.enter({type:"delete",children:[]},e)}function sf(e){this.exit(e)}function sm(e,t,n,r){let i=n.createTracker(r),l=n.enter("strikethrough"),a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),l(),a}function sg(e){return e.length}function sv(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:114*(82===t||114===t)}sm.peek=function(){return"~"};function sy(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function sx(e){let t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function sb(e){return"&#x"+e.toString(16).toUpperCase()+";"}function sw(e,t,n){let r=lr(e),i=lr(t);return void 0===r?void 0===i?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function sj(e){return function(t,n,r){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function sS(){return!0}function sk(e,t,n){let r=e.value||"",i="`",l=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++l<n.unsafe.length;){let e,t=n.unsafe[l],i=n.compilePattern(t);if(t.atBreak)for(;e=i.exec(r);){let t=e.index;10===r.charCodeAt(t)&&13===r.charCodeAt(t-1)&&t--,r=r.slice(0,t)+" "+r.slice(e.index+1)}}return i+r+i}function s_(e,t){let n=r8(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}sk.peek=function(){return"`"};let sC=function(e){var t,n;if(null==e)return sE;if("function"==typeof e)return sN(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=sC(e[n]);return sN(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,sN(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,sN(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function sN(e){return function(t,n,r){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function sE(){return!0}sC(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);let sP={inlineCode:sk,listItem:function(e,t,n,r){let i=function(e){let t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n),l=n.bulletCurrent||function(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(n);t&&"list"===t.type&&t.ordered&&(l=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+l);let a=l.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));let o=n.createTracker(r);o.move(l+" ".repeat(a-l.length)),o.shift(a);let s=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,o.current()),function(e,t,n){return t?(n?"":" ".repeat(a))+e:(n?l:l+" ".repeat(a-l.length))+e});return s(),c}};function sT(e){let t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function sO(e){this.exit(e),this.data.inTable=void 0}function sR(e){this.enter({type:"tableRow",children:[]},e)}function sL(e){this.exit(e)}function sI(e){this.enter({type:"tableCell",children:[]},e)}function sA(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,sM));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function sM(e,t){return"|"===t?t:e}function sF(e){let t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function sD(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&"text"===n.type){let r,i=t.children,l=-1;for(;++l<i.length;){let e=i[l];if("paragraph"===e.type){r=e;break}}r===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function sH(e,t,n,r){let i=e.children[0],l="boolean"==typeof e.checked&&i&&"paragraph"===i.type,a="["+(e.checked?"x":" ")+"] ",o=n.createTracker(r);l&&o.move(a);let s=sP.listItem(e,t,n,{...r,...o.current()});return l&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+a})),s}let sB={tokenize:function(e,t,n){let r=0;return function t(l){return(87===l||119===l)&&r<3?(r++,e.consume(l),t):46===l&&3===r?(e.consume(l),i):n(l)};function i(e){return null===e?n(e):t(e)}},partial:!0},s$={tokenize:function(e,t,n){let r,i,l;return a;function a(t){return 46===t||95===t?e.check(sV,s,o)(t):null===t||iv(t)||ib(t)||45!==t&&ix(t)?s(t):(l=!0,e.consume(t),a)}function o(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),a}function s(e){return i||r||!l?n(e):t(e)}},partial:!0},sz={tokenize:function(e,t){let n=0,r=0;return i;function i(a){return 40===a?(n++,e.consume(a),i):41===a&&r<n?l(a):33===a||34===a||38===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||
2460===a||63===a||93===a||95===a||126===a?e.check(sV,t,l)(a):null===a||iv(a)||ib(a)?t(a):(e.consume(a),i)}function l(t){return 41===t&&r++,e.consume(t),i}},partial:!0},sV={tokenize:function(e,t,n){return r;function r(a){return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(e.consume(a),r):38===a?(e.consume(a),l):93===a?(e.consume(a),i):60===a||null===a||iv(a)||ib(a)?t(a):n(a)}function i(e){return null===e||40===e||91===e||iv(e)||ib(e)?t(e):r(e)}function l(t){return is(t)?function t(i){return 59===i?(e.consume(i),r):is(i)?(e.consume(i),t):n(i)}(t):n(t)}},partial:!0},sW={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return ic(e)?n(e):t(e)}},partial:!0},sU={name:"wwwAutolink",tokenize:function(e,t,n){let r=this;return function(t){return 87!==t&&119!==t||!sY.call(r,r.previous)||s0(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(sB,e.attempt(s$,e.attempt(sz,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:sY},sq={name:"protocolAutolink",tokenize:function(e,t,n){let r=this,i="",l=!1;return function(t){return(72===t||104===t)&&sZ.call(r,r.previous)&&!s0(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),a):n(t)};function a(t){if(is(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),a;if(58===t){let n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),o}return n(t)}function o(t){return 47===t?(e.consume(t),l)?s:(l=!0,o):n(t)}function s(t){return null===t||id(t)||iv(t)||ib(t)||ix(t)?n(t):e.attempt(s$,e.attempt(sz,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:sZ},sQ={name:"emailAutolink",tokenize:function(e,t,n){let r,i,l=this;return function(t){return!sX(t)||!sJ.call(l,l.previous)||s0(l.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(r){return sX(r)?(e.consume(r),t):64===r?(e.consume(r),a):n(r)}(t))};function a(t){return 46===t?e.check(sW,s,o)(t):45===t||95===t||ic(t)?(i=!0,e.consume(t),a):s(t)}function o(t){return e.consume(t),r=!0,a}function s(a){return i&&r&&is(l.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):n(a)}},previous:sJ},sK={},sG=48;for(;sG<123;)sK[sG]=sQ,58==++sG?sG=65:91===sG&&(sG=97);function sY(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||iv(e)}function sZ(e){return!is(e)}function sJ(e){return!(47===e||sX(e))}function sX(e){return 43===e||45===e||46===e||95===e||ic(e)}function s0(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}sK[43]=sQ,sK[45]=sQ,sK[46]=sQ,sK[95]=sQ,sK[72]=[sQ,sq],sK[104]=[sQ,sq],sK[87]=[sQ,sU],sK[119]=[sQ,sU];let s1={tokenize:function(e,t,n){let r=this;return ij(e,function(e){let i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function s2(e,t,n){let r,i=this,l=i.events.length,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);for(;l--;){let e=i.events[l][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(l){if(!r||!r._balanced)return n(l);let o=iU(i.sliceSerialize({start:r.end,end:i.now()}));return 94===o.codePointAt(0)&&a.includes(o.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l)):n(l)}}function s5(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let l={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",l,t],["enter",a,t],["exit",a,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function s3(e,t,n){let r,i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),o};function o(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(o){if(a>999||93===o&&!r||null===o||91===o||iv(o))return n(o);if(93===o){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return l.includes(iU(i.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(o)}return iv(o)||(r=!0),a++,e.consume(o),92===o?c:s}function c(t){return 91===t||92===t||93===t?(e.consume(t),a++,s):s(t)}}function s4(e,t,n){let r,i,l=this,a=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]),o=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),s};function s(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(o>999||93===t&&!i||null===t||91===t||iv(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=iU(l.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return iv(t)||(i=!0),o++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),o++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a.includes(r)||a.push(r),ij(e,h,"gfmFootnoteDefinitionWhitespace")):n(t)}function h(e){return t(e)}}function s6(e,t,n){return e.check(iC,t,e.attempt(s1,t,n))}function s8(e){e.exit("gfmFootnoteDefinition")}class s9{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0!==n||0!==r.length){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}}
24function s7(e,t,n){let r,i=this,l=0,a=0;return function(e){let t=i.events.length-1;for(;t>-1;){let e=i.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?i.events[t][1].type:null,l="tableHead"===r||"tableRow"===r?y:o;return l===y&&i.parser.lazy[i.now().line]?n(e):l(e)};function o(t){var n;return e.enter("tableHead"),e.enter("tableRow"),124===(n=t)||(r=!0,a+=1),s(n)}function s(t){return null===t?n(t):ig(t)?a>1?(a=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):iy(t)?ij(e,s,"whitespace")(t):(a+=1,r&&(r=!1,l+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,s):(e.enter("data"),c(t))}function c(t){return null===t||124===t||iv(t)?(e.exit("data"),s(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return(i.interrupt=!1,i.parser.lazy[i.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,iy(t))?ij(e,h,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):h(t)}function h(t){return 45===t||58===t?f(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):n(t)}function p(t){return iy(t)?ij(e,f,"whitespace")(t):f(t)}function f(t){return 58===t?(a+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(a+=1,m(t)):null===t||ig(t)?v(t):n(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(n))}(t)):n(t)}function g(t){return iy(t)?ij(e,v,"whitespace")(t):v(t)}function v(i){if(124===i)return h(i);if(null===i||ig(i))return r&&l===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):n(i);return n(i)}function y(t){return e.enter("tableRow"),x(t)}function x(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),x):null===n||ig(n)?(e.exit("tableRow"),t(n)):iy(n)?ij(e,x,"whitespace")(n):(e.enter("data"),b(n))}function b(t){return null===t||124===t||iv(t)?(e.exit("data"),x(t)):(e.consume(t),92===t?w:b)}function w(t){return 92===t||124===t?(e.consume(t),b):b(t)}}function ce(e,t){let n,r,i,l=-1,a=!0,o=0,s=[0,0,0,0],c=[0,0,0,0],u=!1,d=0,h=new s9;for(;++l<e.length;){let p=e[l],f=p[1];"enter"===p[0]?"tableHead"===f.type?(u=!1,0!==d&&(cn(h,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},f.start),end:Object.assign({},f.end)},h.add(l,0,[["enter",n,t]])):"tableRow"===f.type||"tableDelimiterRow"===f.type?(a=!0,i=void 0,s=[0,0,0,0],c=[0,l+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},f.start),end:Object.assign({},f.end)},h.add(l,0,[["enter",r,t]])),o="tableDelimiterRow"===f.type?2:r?3:1):o&&("data"===f.type||"tableDelimiterMarker"===f.type||"tableDelimiterFiller"===f.type)?(a=!1,0===c[2]&&(0!==s[1]&&(c[0]=c[1],i=ct(h,t,s,o,void 0,i),s=[0,0,0,0]),c[2]=l)):"tableCellDivider"===f.type&&(a?a=!1:(0!==s[1]&&(c[0]=c[1],i=ct(h,t,s,o,void 0,i)),c=[(s=c)[1],l,0,0])):"tableHead"===f.type?(u=!0,d=l):"tableRow"===f.type||"tableDelimiterRow"===f.type?(d=l,0!==s[1]?(c[0]=c[1],i=ct(h,t,s,o,l,i)):0!==c[1]&&(i=ct(h,t,c,o,l,i)),o=0):o&&("data"===f.type||"tableDelimiterMarker"===f.type||"tableDelimiterFiller"===f.type)&&(c[3]=l)}for(0!==d&&cn(h,t,d,n,r),h.consume(t.events),l=-1;++l<t.events.length;){let e=t.events[l];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=function(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){let e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}(t.events,l))}return e}function ct(e,t,n,r,i,l){0!==n[0]&&(l.end=Object.assign({},cr(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));let a=cr(t.events,n[1]);if(l={type:1===r?"tableHeader":2===r?"tableDelimiter":"tableData",start:Object.assign({},a),end:Object.assign({},a)},e.add(n[1],0,[["enter",l,t]]),0!==n[2]){let i=cr(t.events,n[2]),l=cr(t.events,n[3]),a={type:"tableContent",start:Object.assign({},i),end:Object.assign({},l)};if(e.add(n[2],0,[["enter",a,t]]),2!==r){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}
24e.add(n[3]+1,0,[["exit",a,t]])}return void 0!==i&&(l.end=Object.assign({},cr(t.events,i)),e.add(i,0,[["exit",l,t]]),l=void 0),l}function cn(e,t,n,r,i){let l=[],a=cr(t.events,n);i&&(i.end=Object.assign({},a),l.push(["exit",i,t])),r.end=Object.assign({},a),l.push(["exit",r,t]),e.add(n+1,0,l)}function cr(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let ci={name:"tasklistCheck",tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return iv(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),l):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),l):n(t)}function l(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return ig(r)?t(r):iy(r)?e.check({tokenize:cl},t,n)(r):n(r)}}};function cl(e,t,n){return ij(e,function(e){return null===e?n(e):t(e)},"whitespace")}let ca={};function co(e){let t,n=e||ca,r=this.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),l=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(io([{text:sK},{document:{91:{name:"gfmFootnoteDefinition",tokenize:s4,continuation:{tokenize:s6},exit:s8}},text:{91:{name:"gfmFootnoteCall",tokenize:s3},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:s2,resolveTo:s5}}},function(e){let t=(e||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,r){let i=this.previous,l=this.events,a=0;return function(o){return 126===i&&"characterEscape"!==l[l.length-1][1].type?r(o):(e.enter("strikethroughSequenceTemporary"),function l(o){let s=lr(i);if(126===o)return a>1?r(o):(e.consume(o),a++,l);if(a<2&&!t)return r(o);let c=e.exit("strikethroughSequenceTemporary"),u=lr(o);return c._open=!u||2===u&&!!s,c._close=!s||2===s&&!!u,n(o)}(o))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},l={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",l,t]],o=t.parser.constructs.insideSpan.null;o&&ie(a,a.length,0,i8(o,e.slice(r+1,n),t)),ie(a,a.length,0,[["exit",l,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),ie(e,r-1,n-r+3,a),n=r+a.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}(n),{flow:{null:{name:"table",tokenize:s7,resolveAll:ce}}},{text:{91:ci}}
24])),l.push([{transforms:[o8],enter:{literalAutolink:o1,literalAutolinkEmail:o2,literalAutolinkHttp:o2,literalAutolinkWww:o2},exit:{literalAutolink:o6,literalAutolinkEmail:o4,literalAutolinkHttp:o5,literalAutolinkWww:o3}},{enter:{gfmFootnoteCallString:st,gfmFootnoteCall:sn,gfmFootnoteDefinitionLabelString:sr,gfmFootnoteDefinition:si},exit:{gfmFootnoteCallString:sl,gfmFootnoteCall:sa,gfmFootnoteDefinitionLabelString:so,gfmFootnoteDefinition:ss}},{canContainEols:["delete"],enter:{strikethrough:sp},exit:{strikethrough:sf}},{enter:{table:sT,tableData:sI,tableHeader:sI,tableRow:sR},exit:{codeText:sA,table:sO,tableData:sL,tableHeader:sL,tableRow:sL}},{exit:{taskListCheckValueChecked:sF,taskListCheckValueUnchecked:sF,paragraph:sD}}]),a.push({extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:oX,notInConstruct:o0},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:oX,notInConstruct:o0},{character:":",before:"[ps]",after:"\\/",inConstruct:oX,notInConstruct:o0}]},(t=!1,n&&n.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,i){let l=r.createTracker(i),a=l.move("[^"),o=r.enter("footnoteDefinition"),s=r.enter("label");return a+=l.move(r.safe(r.associationId(e),{before:a,after:"]"})),s(),a+=l.move("]:"),e.children&&e.children.length>0&&(l.shift(4),a+=l.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,l.current()),t?sd:su))),o(),a},footnoteReference:sc},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:sh}],handlers:{delete:sm}},function(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[	 :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=sP.inlineCode(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return o(function(e,t,n){let r=e.children,i=-1,l=[],a=t.enter("table");for(;++i<r.length;)l[i]=s(r[i],t,n);return a(),l}(e,n,r),e.align)},tableCell:a,tableRow:function(e,t,n,r){let i=o([s(e,n,r)]);return i.slice(0,i.indexOf("\n"))}}};function a(e,t,n,r){let i=n.enter("tableCell"),a=n.enter("phrasing"),o=n.containerPhrasing(e,{...r,before:l,after:l});return a(),i(),o}function o(e,t){return function(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||sg,l=[],a=[],o=[],s=[],c=0,u=-1;for(;++u<e.length;){let t=[],r=[],l=-1;for(e[u].length>c&&(c=e[u].length);++l<e[u].length;){var d;let a=null==(d=e[u][l])?"":String(d);if(!1!==n.alignDelimiters){let e=i(a);r[l]=e,(void 0===s[l]||e>s[l])&&(s[l]=e)}t.push(a)}a[u]=t,o[u]=r}let h=-1;if("object"==typeof r&&"length"in r)for(;++h<c;)l[h]=sv(r[h]);else{let e=sv(r);for(;++h<c;)l[h]=e}h=-1;let p=[],f=[];for(;++h<c;){let e=l[h],t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let i=!1===n.alignDelimiters?1:Math.max(1,s[h]-t.length-r.length),a=t+"-".repeat(i)+r;!1!==n.alignDelimiters&&((i=t.length+i+r.length)>s[h]&&(s[h]=i),f[h]=i),p[h]=a}a.splice(1,0,p),o.splice(1,0,f),u=-1;let m=[];for(;++u<a.length;){let e=a[u],t=o[u];h=-1;let r=[];for(;++h<c;){let i=e[h]||"",a="",o="";if(!1!==n.alignDelimiters){let e=s[h]-(t[h]||0),n=l[h];114===n?a=" ".repeat(e):99===n?e%2?(a=" ".repeat(e/2+.5),o=" ".repeat(e/2-.5)):o=a=" ".repeat(e/2):o=" ".repeat(e)}!1===n.delimiterStart||h||r.push("|"),!1!==n.padding&&(!1!==n.alignDelimiters||""!==i)&&(!1!==n.delimiterStart||h)&&r.push(" "),!1!==n.alignDelimiters&&r.push(a),r.push(i),!1!==n.alignDelimiters&&r.push(o),!1!==n.padding&&r.push(" "),(!1!==n.delimiterEnd||h!==c-1)&&r.push("|")}m.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return m.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function s(e,t,n){let r=e.children,i=-1,l=[],o=t.enter("tableRow");for(;++i<r.length;)l[i]=a(r[i],e,t,n);return o(),l}}(n),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:sH}}]})}let cs=function(e){var t,n;if(null==e)return cu;if("string"==typeof e){return t=e,cc(function(e){return e&&e.type===t})}if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=cs(e[n]);return cc(function(...e){let n=-1;for(;++n<t.length;)if(t[n].call(this,...e))return!0;return!1})}(e):(n=e,cc(function(e){let t;for(t in n)if(e[t]!==n[t])return!1;return!0}))}if("function"==typeof e)return cc(e);throw Error("Expected function, string, or object as test")};function cc(e){return function(t,...n){return!!(t&&"object"==typeof t&&"type"in t&&e.call(this,t,...n))}}function cu(){return!0}let cd=function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null);let i=cs(t),l=r?-1:1;(function e(a,o,s){let c=a&&"object"==typeof a?a:{};if("string"==typeof c.type){let e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+a.type+(e?"<"+e+">":"")+")"})}return u;function u(){var c;let u,d,h,p=[];if((!t||i(a,o,s[s.length-1]||null))&&!1===(p=Array.isArray(c=n(a,s))?c:"number"==typeof c?[!0,c]:[c])[0])return p;
24if(a.children&&"skip"!==p[0])for(d=(r?a.children.length:-1)+l,h=s.concat(a);d>-1&&d<a.children.length;){if(!1===(u=e(a.children[d],d,h)())[0])return u;d="number"==typeof u[1]?u[1]:d+l}return p}})(e,void 0,[])()},ch=function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null),cd(e,t,function(e,t){let r=t[t.length-1];return n(e,r?r.children.indexOf(e):null,r)},r)};function cp(){return e=>{ch(e,["text"],(e,t,n)=>{if("text"!==e.type)return;let{value:r}=e,i=r.split(/\^/);if(1===i.length||i.length%2==0)return;let l=i.map((e,t)=>t%2==0?{type:"text",value:e}:{type:"superscript",data:{hName:"sup"},children:[{type:"text",value:e}]});n.children.splice(t,1,...l)}),ch(e,["text"],(e,t,n)=>{if("text"!==e.type)return;let{value:r}=e,i=r.split(/\~/);if(1===i.length||i.length%2==0)return;let l=i.map((e,t)=>t%2==0?{type:"text",value:e}:{type:"subscript",data:{hName:"sub"},children:[{type:"text",value:e}]});n.children.splice(t,1,...l)})}}let cf=e=>{let{children:t,className:n="",as:r,hideBullets:i}=e,[l,a]=(0,p.useState)(!1);return(0,p.useEffect)(()=>{a(!0)},[]),_(t)?(0,h.jsx)(null!=r?r:"div",{className:"prose ".concat(n," ").concat(i?"idented-list":""," prose-a:text-red-500 prose-a:no-underline prose-p:text-base prose-p:font-body prose-blockquote:my-12 prose-blockquote:border-teal-300 prose-blockquote:pl-6 prose-blockquote:lg:pl-12 prose-ul:text-base prose-ul:space-y-6 prose-ul:mt-2 prose-headings:text-red-500 prose-h2:text-6xl prose-h2:md:text-8xl prose-h2:font-medium prose-h2:font-display prose-h5:text-lg prose-h5:md:text-xl prose-h5:pb-7 prose-li:my-0 prose-li:marker:text-red-500 max-w-full"),children:z(t,{markResolvers:{[$]:e=>(0,h.jsx)("span",{children:e}),link:X},textResolver:e=>e.replace(/\u2028/g,""),nodeResolvers:{...er,[A]:(e,t)=>{var n;let{level:r}=t,i="h".concat(r);if(!Array.isArray(e)||null==(n=e[0].props)||!n.children)return(0,h.jsx)(i,{id:oW(null==e?void 0:e.toString()),children:e});{let t=e[0].props.children;return(0,h.jsx)(i,{id:oW(t),children:e})}},[M]:e=>e&&Array.isArray(e)?(0,h.jsx)("p",{children:null==e?void 0:e.map(e=>{var t,n;return(null==e||null==(n=e.props)||null==(t=n.style)?void 0:t.color)&&(e.props.style.color=""),e})}):(0,h.jsx)("p",{}),[F]:e=>{let t=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(!e||!Array.isArray(e))return n>0;for(let r of e){if("ol"===r.type)return t(r.props.children,n+1);if(r.props&&r.props.children&&t(r.props.children,n))return!0}return n>0},n=t(e,0)?"":"step-list";return(0,h.jsx)("ol",{className:n,children:e})}},defaultBlokResolver:(e,t)=>{let n={...t,component:e};return l?(0,h.jsx)(m.Dp,{blok:n,type:"rich_text"},t._uid):null}})}):void 0},cm={en:oj,fr:oE},cg=e=>{let{relatedArticles:t=[],title:n,locale:r}=e,{t:i}=(0,y.Bd)("common"),{t:l}=(0,y.Bd)("datasources"),[a,o]=(0,p.useState)(r||"en");(0,p.useEffect)(()=>{r?o(r):o(C())},[r]);let s=e=>{let{regionSlug:t,currentLocale:n}=e,r=l("news-regions.".concat(t),t);return"en"===n?r.toUpperCase():r},c=e=>{let{categorySlug:t,fallbackName:n}=e;return t?l("news-categories.".concat(t),t.replace(/_/g," & ")):n||null},u=e=>{let{regions:t}=e;return t&&Array.isArray(t)&&0!==t.length?t.map((e,n)=>(0,h.jsxs)("span",{children:[(0,h.jsx)(s,{regionSlug:e,currentLocale:a}),n<t.length-1?", ":""]},"".concat(e,"-").concat(n))):null},d=n||i("components.Related_Articles.title");return t.length?(0,h.jsx)("div",{className:"w-full bg-blue-100 py-12 md:py-24",children:(0,h.jsxs)(w.A,{as:"section",className:"space-y-6 md:space-y-16",children:[(0,h.jsx)("h2",{className:"text-6xl md:text-8xl font-normal font-display text-blue-900",children:d}),(0,h.jsx)("ul",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 lg:gap-12",children:t.map(e=>{var t,n,r,l,o,s,d,p,f,m,g,v,y,x,b,w,j,S,_,C,N,E,P,T;return(0,h.jsx)("li",{children:(0,h.jsxs)(n9,{href:null==e?void 0:e.full_slug,className:"flex h-full md:flex-col group hover:drop-shadow-mobile active:drop-shadow-active-mobile md:hover:drop-shadow-desktop md:active:drop-shadow-active-desktop transition-all duration-150 ease-in-out ",children:[(0,h.jsx)("picture",{className:"aspect-[150/163] md:aspect-[400/280] min-w-[150px] w-min md:w-full inline-block",children:(null==e||null==(n=e.content)||null==(t=n.Image)?void 0:t.filename)?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("source",{media:"(max-width: 767px)",srcSet:Z(null==e||null==(l=e.content)||null==(r=l.Image)?void 0:r.filename,500,"150:163",null==e||null==(s=e.content)||null==(o=s.Image)?void 0:o.focus),sizes:"(max-width: 768px) 100vw, 500px"}),(0,h.jsx)("source",{media:"(min-width: 768px)",srcSet:Z(null==e||null==(p=e.content)||null==(d=p.Image)?void 0:d.filename,395,"400:280",null==e||null==(m
24=e.content)||null==(f=m.Image)?void 0:f.focus),sizes:"(max-width: 1280px) calc(33vw-3rem), 395px"}),(0,h.jsx)(J,{loading:"lazy",src:"".concat(null==e||null==(v=e.content)||null==(g=v.Image)?void 0:g.filename,"/m/6x0/"),alt:(null==e||null==(x=e.content)||null==(y=x.Image)?void 0:y.alt)||i("components.Related_Articles.image.alt",{title:(null==e||null==(b=e.content)?void 0:b.Succinct_Title)||""}),className:"h-full w-full object-cover"})]}):(0,h.jsx)(J,{loading:"lazy",src:null!=(T=k(e,0))?T:"",alt:(null==e?void 0:e.Heading)||i("components.Related_Articles.image.placeholder_alt",{title:(null==e||null==(w=e.content)?void 0:w.Succinct_Title)||""}),className:"w-full h-full object-cover"})}),(0,h.jsxs)("div",{className:"flex flex-col justify-between p-6 text-grey-500 bg-white h-full space-y-6",children:[(0,h.jsxs)("div",{className:"space-y-6",children:[(0,h.jsx)("p",{className:"text-xs uppercase font-semibold font-display pb-2 border-b-2 border-red-500",children:(0,h.jsx)(c,{categorySlug:null==e||null==(S=e.content)||null==(j=S.Category)?void 0:j[0],fallbackName:null==e||null==(N=e.content)||null==(C=N.Category)||null==(_=C[0])?void 0:_.replace(/_/g," & ")},"category-".concat(a,"-").concat(null==e?void 0:e.uuid))}),(0,h.jsx)("h3",{className:"text-4xl md:text-5xl font-display group-hover:text-red-500 group-active:text-red-700 font-medium line-clamp-4 pb-px",children:null==e||null==(E=e.content)?void 0:E.Succinct_Title}),(0,h.jsx)(cf,{className:"text-grey-500 text-base",children:null==e||null==(P=e.content)?void 0:P.Blurb})]}),(0,h.jsxs)("div",{className:"text-xs text-grey-500 max-h-full flex",children:[ob(new Date(e.first_published_at),"PP",{locale:cm[a]}),e.content.Region&&(0,h.jsx)("span",{children:" | "}),(0,h.jsx)(u,{regions:e.content.Region},"region-".concat(a,"-").concat(null==e?void 0:e.uuid))]})]})]})},e.uuid)})})]})}):null},cv={en:oj,fr:oE},cy=function(e){var t,n;let{setSearchResults:r,selected:i,type:l,locale:a,hasActiveFilters:o=!1}=e,{results:s,indexUiState:c}=aA(),{t:u}=(0,y.Bd)("datasources"),{t:d}=(0,y.Bd)("common"),[f,m]=(0,p.useState)(a||"en");(0,p.useEffect)(()=>{a?m(a):m(C())},[a]);let g=e=>{let{categorySlug:t,currentLocale:n}=e;return u("news-categories.".concat(t),t)},v=e=>{let{regionSlug:t,currentLocale:n}=e,r=u("news-regions.".concat(t),t);return"en"===n?r.toUpperCase():r},x=e=>{let{categories:t,fallbackName:n}=e;return t&&Array.isArray(t)&&0!==t.length?t.map((e,n)=>(0,h.jsxs)("span",{children:[(0,h.jsx)(g,{categorySlug:e,currentLocale:f}),n<t.length-1?", ":""]},"".concat(e,"-").concat(n))):n||null},b=e=>{let{regions:t}=e;return t&&Array.isArray(t)&&0!==t.length?t.map((e,n)=>(0,h.jsxs)("span",{children:[(0,h.jsx)(v,{regionSlug:e,currentLocale:f}),n<t.length-1?", ":""]},"".concat(e,"-").concat(n))):null};null==(t=c.query)||t.length;let w=(null==(n=c.query)?void 0:n.length)>0,j=(null==s?void 0:s.hits.length)===0&&(w||o);return(0,h.jsxs)("div",{className:"py-6 md:py-12 flex flex-col text-red-500",children:[j&&(0,h.jsxs)("p",{children:["Looks like we're unable to find what you're looking for. Please try adjusting your search terms or filters, or ",(0,h.jsx)(n9,{className:"hover:underline hover:text-red-700 active:text-red-900",href:"/contact-us",children:"contact us directly"}),"."]}),(null==s?void 0:s.hits.length)>0&&(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("ul",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-6 xl:gap-12",children:s.hits.map((e,t)=>{var n,r,a,o,u,p,m,g,v,y,w,j,S,_,C,N,E,P,T,O,R,L,I,A,M,F,D,H,B,$,z,V,W,U,q,Q;return(0,h.jsx)("li",{className:"\n                      ".concat((null==(n=c.query)?void 0:n.length)||0!==t||0!==s.page||i?"":"md:col-span-2 md:row-span-2"," \n                    "),children:(0,h.jsxs)(n9,{href:null!=(q="/".concat(null==e?void 0:e.full_slug))?q:"",className:"bg-white group/news hover:drop-shadow-mobile active:drop-shadow-active-mobile md:hover:drop-shadow-desktop md:active:drop-shadow-active-desktop transition-all duration-150 ease-in-out h-full md:min-h-[26rem] ".concat((null==(r=c.query)?void 0:r.length)||0!==t||0!==s.page||i?"flex flex-row md:flex-col":"flex flex-col"),children:[(0,h.jsx)("picture",{className:"bg-grey-300 ".concat((null==(a=c.query)?void 0:a.length)||0!==t||0!==s.page||i?"min-w-[150px] w-min md:h-fit aspect-square md:w-full md:aspect-video":"aspect-video md:aspect-[4/3] md:h-3/5 w-full"),children:(null==e||null==(u=e.content)||null==(o=u.Image)?void 0:o.filename)?(null==(p=c.query)?void 0:p.length)||0!==t||0!==s.page||i?(0,h.jsxs)("picture",{className:"w-full h-full",children:[(0,h.jsx)("source",{media:"(max-width: 768px)",srcSet:Z(null==e||null==(_=e.content.Image)?void 0:_.filename,284,"1:1",null==e||null==(C=e.content.Image)?void 0:C.focus),sizes:"(max-width: 768px) 150px, (max-width: 1023px) 33vw, (max-width: 1279px) calc(25vw), 284px"}),(0,h.jsx)("source",{media:"(min-width: 769px)",srcSet:Z(null==e||null==(N=e.content.Image)?void 0:N.filename,284,"16:9",null==e||null==(E=e.content.Image)?void 0:E.focus),sizes:"(max-width: 768px) 150px, (max-width: 1023px) 33vw, (max-width: 1279px) calc(25vw), 284px"}),(0,h.jsx)(J,{src:"".concat(null==e||null==(P=e.content.Image)?void 0:P.filename,"/m/6x0/"),alt:(null==e||null==(T=e.content.Image)?void 0:T.alt)||"".concat(null==e||null==(O=e.content)?void 0:O.Title," Latest News Image"),className:"w-full h-full aspect-square md:aspect-video"})]}):(0,h.jsxs)("picture",{className:"w-full h-full",children:[(0,h.jsx)("source",{media:"(max-width: 768px)",srcSet:Z(null==e||null==(m
24=e.content.Image)?void 0:m.filename,616,"16:9",null==e||null==(g=e.content.Image)?void 0:g.focus),sizes:"(max-width: 768px) 100vw, (max-width: 1023px) 66vw, (max-width: 1279px) 50vw, 616px"}),(0,h.jsx)("source",{media:"(min-width: 769px)",srcSet:Z(null==e||null==(v=e.content.Image)?void 0:v.filename,616,"1:1",null==e||null==(y=e.content.Image)?void 0:y.focus),sizes:"(max-width: 768px) 100vw, (max-width: 1023px) 66vw, (max-width: 1279px) 50vw, 616px"}),(0,h.jsx)(J,{src:"".concat(null==e||null==(w=e.content.Image)?void 0:w.filename,"/m/6x0/"),alt:(null==e||null==(j=e.content.Image)?void 0:j.alt)||"".concat(null==e||null==(S=e.content)?void 0:S.Title," Latest News Image"),className:"w-full h-full aspect-video md:aspect-square"})]}):(0,h.jsx)(J,{src:null!=(Q=k(e,t))?Q:"",alt:(null==e?void 0:e.Heading)||"".concat(null==e||null==(R=e.content)?void 0:R.Title," Latest News Placeholder Image"),className:"object-cover w-full h-full aspect-video"})}),(0,h.jsxs)("div",{className:"text-grey-500 p-6 flex flex-col relative ".concat((null==(L=c.query)?void 0:L.length)||0!==t||0!==s.page||i?"space-y-3 md:space-y-6 p-6 h-fit md:h-full md:px-6 w-full":"space-y-6 md:flex-grow"),children:[(null==e||null==(I=e.content)?void 0:I.Category)||(null==e?void 0:e.Title)?(0,h.jsx)("h2",{className:"py-2 text-xs font-semibold uppercase border-b-2 border-red-500",children:(0,h.jsx)(x,{categories:null==e||null==(A=e.content)?void 0:A.Category,fallbackName:null==e||null==(M=e.content)?void 0:M.Title},"category-".concat(f,"-").concat(null==e?void 0:e.uuid))}):void 0,(0,h.jsx)("h3",{className:"font-display group-hover/news:text-red-500 group-active/news:text-red-700 ".concat((null==(F=c.query)?void 0:F.length)||0!==t||0!==s.page||i?"text-3xl font-display line-clamp-2 md:line-clamp-3 pb-px":"text-4xl md:text-5xl md:font-medium font-display line-clamp-2 md:line-clamp-none pb-px"),children:(null==(D=c.query)?void 0:D.length)||0!==t||0!==s.page||i?null==e||null==(B=e.content)?void 0:B.Succinct_Title:null==e||null==(H=e.content)?void 0:H.Title}),(null==($=c.query)?void 0:$.length)||0!==t||0!==s.page||i||null==e||!e.content?null:(0,h.jsx)(cf,{className:"text-base text-grey-500 hidden md:block line-clamp-3",children:null==e||null==(z=e.content)?void 0:z.Blurb}),(0,h.jsxs)("div",{className:"text-xs",children:[ob(new Date(null==e?void 0:e.first_published_at),"PP",{locale:cv[f]}),(null==e?void 0:e.content.Region.length)&&"in-focus"!==l?(0,h.jsxs)(h.Fragment,{children:[" | ",(0,h.jsx)(b,{regions:null==e||null==(V=e.content)?void 0:V.Region},"region-".concat(f,"-").concat(null==e?void 0:e.uuid))]}):"",(null==e?void 0:e.content.Region.length)&&"in-focus"==l?(0,h.jsx)(h.Fragment,{children:" | ".concat(d("components.LatestNewsHits.article.written_by",{author:oQ(null==e||null==(W=e.content)?void 0:W.Author)}))}):""]})]})]})},"".concat(null==e||null==(U=e.content)?void 0:U._uid,"_").concat(t))})})})]})},cx=e=>{var t,n,r,i;let{id:l,searchTerm:a,isFocused:o,placeholder:s,setIsSearching:c}=e,u=(0,p.useRef)(null),{refine:d}=n3(aT,void 0,void 0);return(0,p.useEffect)(()=>{let e=new URL(window.location.href).searchParams.get("term"),t=a||e||"";t&&(u.current.value=t,d(t))},[a,d]),(0,p.useEffect)(()=>{o&&u.current.focus()},[o]),(0,h.jsxs)("div",{id:l,className:"w-full relative group/search",children:[(0,h.jsx)("input",{autoComplete:"off",id:"algolia_search",type:"search",name:"term",ref:u,className:"ais-SearchBox-input w-full pl-4 py-3 border border-grey-100 focus:ring-0 text-grey-500 group-hover/search:placeholder:text-grey-300 group-hover/search:border-red-500 focus:border-grey-500 focus:placeholder:invisible placeholder:text-grey-500 transition duration-150 ease-in-out pr-12",placeholder:s,onChange:e=>{if(c){var t,n;(null==u||null==(n=u.current)||null==(t=n.value)?void 0:t.length)?c(!0):c(!1)}d(e.currentTarget.value)}}),(0,h.jsx)("svg",{className:"right-3 absolute top-1/2 transform -translate-y-1/2 h-6 w-6 ".concat((null==u||null==(n=u.current)||null==(t=n.value)?void 0:t.length)?"hidden":""),viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{className:"group-hover/search:fill-red-500",d:"M17.0065 15.0068H15.9532L15.5798 14.6468C16.8865 13.1268 17.6732 11.1534 17.6732 9.00675C17.6732 4.22009 13.7932 0.340088 9.00651 0.340088C4.21984 0.340088 0.339844 4.22009 0.339844 9.00675C0.339844 13.7934 4.21984 17.6734 9.00651 17.6734C11.1532 17.6734 13.1265 16.8868 14.6465 15.5801L15.0065 15.9534V17.0068L21.6732 23.6601L23.6598 21.6734L17.0065 15.0068ZM9.00651 15.0068C5.68651 15.0068 3.00651 12.3268 3.00651 9.00675C3.00651 5.68675 5.68651 3.00675 9.00651 3.00675C12.3265 3.00675 15.0065 5.68675 15.0065 9.00675C15.0065 12.3268 12.3265 15.0068 9.00651 15.0068Z",fill:"#290A15"})}),(0,h.jsx)("svg",{onClick:()=>{c&&c(!1),u.current.value="",d("")},className:"right-4 absolute top-1/2 transform -translate-y-1/2 h-3.5 w-3.5 ".concat((null==u||null==(i=u.current)||null==(r=i.value)?void 0:r.length)?"":"hidden"),viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z",fill:"#5456
245B"})})]})};function cb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function cw(e){var t,n=e.start,r=void 0===n?0:n,i=e.end,l=e.step,a=void 0===l?1:l,o=0===a?1:a;return((function(e){if(Array.isArray(e))return cb(e)})(t=Array(Math.round((i-r)/o)))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return cb(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cb(e,t)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map(function(e,t){return r+t*o})}function cj(e){return(cj="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 cS(e,t,n){return(t=ck(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ck(e){var t=function(e,t){if("object"!=cj(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=cj(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==cj(t)?t:String(t)}var c_=function(){var e;function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");cS(this,"currentPage",void 0),cS(this,"total",void 0),cS(this,"padding",void 0),this.currentPage=e.currentPage,this.total=e.total,this.padding=e.padding}return e=[{key:"pages",value:function(){var e=this.total,t=this.currentPage,n=this.padding;if(0===e)return[0];var r=this.nbPagesDisplayed(n,e);if(r===e)return cw({end:e});var i=this.calculatePaddingLeft(t,n,e,r),l=r-i;return cw({start:t-i,end:t+l})}},{key:"nbPagesDisplayed",value:function(e,t){return Math.min(2*e+1,t)}},{key:"calculatePaddingLeft",value:function(e,t,n,r){return e<=t?e:e>=n-t?r-(n-e):t}},{key:"isLastPage",value:function(){return this.currentPage>=this.total-1}},{key:"isFirstPage",value:function(){return this.currentPage<=0}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ck(r.key),r)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}();function cC(e){return(cC="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 cN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function cE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cN(Object(n),!0).forEach(function(t){var r,i,l;r=e,i=t,l=n[t],(i=function(e){var t=function(e,t){if("object"!=cC(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=cC(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==cC(t)?t:String(t)}(i))in r?Object.defineProperty(r,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):r[i]=l}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cN(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var cP=e2({name:"pagination",connector:!0});let cT=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ej;return ak(e,cP()),function(n){var r=n||{},i=r.totalPages,l=r.padding,a=new c_({currentPage:0,total:0,padding:void 0===l?3:l}),o={};return{$$type:"ais.pagination",init:function(t){var n=t.instantSearchInstance;e(cE(cE({},this.getWidgetRenderState(t)),{},{instantSearchInstance:n}),!0)},render:function(t){var n=t.instantSearchInstance;e(cE(cE({},this.getWidgetRenderState(t)),{},{instantSearchInstance:n}),!1)},dispose:function(e){var n=e.state;return t(),n.setQueryParameter("page",void 0)},getWidgetUiState:function(e,t){var n=t.searchParameters.page||0;return n?cE(cE({},e),{},{page:n+1}):e},getWidgetSearchParameters:function(e,t){var n=t.uiState,r=n.page?n.page-1:0;return e.setQueryParameter("page",r)},getWidgetRenderState:function(e){var t,r=e.results,l=e.helper,s=e.state,c=e.createURL;o.refine||(o.refine=function(e){l.setPage(e),l.search()}),o.createURL||(o.createURL=function(e){return c(function(t){return cE(cE({},t),{},{page:e+1})})});var u=s.page||0,d=(t=(r||{nbPages:0}).nbPages,void 0!==i?Math.min(i,t):t);return a.currentPage=u,a.total=d,{createURL:o.createURL,refine:o.refine,canRefine:d>1,currentRefinement:u,nbHits:(null==r?void 0:r.nbHits)||0,nbPages:d,pages:r?a.pages():[],isFirstPage:a.isFirstPage(),isLastPage:a.isLastPage(),widgetParams:n}},getRenderState:function(e,t){return cE(cE({},e),{},{pagination:this.getWidgetRenderState(t)})}}}},cO=e=>{let{setCurrentPage:t,searchResults:n}=e,{currentRefinement:r,nbPages:i,refine:l,createURL:a}=n3(cT,void 0,void 0);(0,p.useEffect)(()=>{t&&t(r)},[r,t]);let{t:o}=(0,y.Bd)("common"),s=Math.max(r-Math.floor(2),0),c=Math.min(s+4-1,i-1);c-s<3&&(s=Math.max(c-4+1,0));let u=Array.from({length:c-s+1},(e,t)=>s+t),d=(e,t)=>{e.preventDefault(),window.scrollTo({top:document.querySelector("#search-results").offsetTop-document.querySelector("header").clientHeight}),t>=0&&t<i&&r!==t&&l(t)}
24;return(0,h.jsxs)("ul",{className:"ais-Pagination-list",children:[(0,h.jsx)("li",{className:"bg-grey-100 text-grey-500 flex items-center justify-center custom ais-Pagination-item ais-Pagination-item--firstPage ".concat(0===r?"ais-Pagination-item--disabled":""),children:(0,h.jsx)("a",{"aria-label":o("components.CustomPagination.firstPage"),href:a(0),onClick:e=>d(e,0),children:(0,h.jsxs)("svg",{className:"my-0.5",width:"14",height:"12",viewBox:"0 0 14 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,h.jsx)("path",{d:"M12.59 12L14 10.59L9.42 6L14 1.41L12.59 0L6.59 6L12.59 12Z",fill:"currentColor"}),(0,h.jsx)("path",{d:"M6 12L7.41 10.59L2.83 6L7.41 1.41L6 0L0 6L6 12Z",fill:"currentColor"})]})})},"firstPage"),(0,h.jsx)("li",{className:"bg-grey-100 text-grey-500 flex items-center justify-center custom ais-Pagination-item ais-Pagination-item--previousPage ".concat(0===r?"ais-Pagination-item--disabled":""),children:(0,h.jsx)("a",{"aria-label":o("components.CustomPagination.previousPage"),href:a(r-1),onClick:e=>d(e,r-1),children:(0,h.jsx)("svg",{className:"my-0.5",width:"8",height:"12",viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M7.70492 1.41L6.29492 0L0.294922 6L6.29492 12L7.70492 10.59L3.12492 6L7.70492 1.41Z",fill:"currentColor"})})})},"prevPage"),u.map(e=>(0,h.jsx)("li",{className:"flex items-center justify-center ais-Pagination-item ".concat(i<=1?"ais-Pagination-item--disabled":""," ").concat(r===e?"ais-Pagination-item--selected":""),children:(0,h.jsx)("a",{className:"bg-grey-100 text-grey-500 px-5 py-3",href:a(e),onClick:t=>d(t,e),children:e+1})},e)),(0,h.jsx)("li",{className:"bg-grey-100 text-grey-500 flex items-center justify-center custom ais-Pagination-item ais-Pagination-item--nextPage ".concat(r===i-1||0===i?"ais-Pagination-item--disabled":""),children:(0,h.jsx)("a",{"aria-label":o("components.CustomPagination.nextPage"),href:a(r+1),onClick:e=>d(e,r+1),children:(0,h.jsx)("svg",{className:"my-0.5",width:"8",height:"12",viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M1.70492 0L0.294922 1.41L4.87492 6L0.294922 10.59L1.70492 12L7.70492 6L1.70492 0Z",fill:"currentColor"})})})},"nextPage"),(0,h.jsx)("li",{className:"bg-grey-100 text-grey-500 flex items-center justify-center custom ais-Pagination-item ais-Pagination-item--lastPage ".concat(r===i-1||0===i?"ais-Pagination-item--disabled":""),children:(0,h.jsx)("a",{"aria-label":o("components.CustomPagination.lastPage"),href:a(i-1),onClick:e=>d(e,i-1),children:(0,h.jsxs)("svg",{className:"my-0.5",width:"14",height:"12",viewBox:"0 0 14 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,h.jsx)("path",{d:"M1.41 0L0 1.41L4.58 6L0 10.59L1.41 12L7.41 6L1.41 0Z",fill:"currentColor"}),(0,h.jsx)("path",{d:"M8 0L6.59 1.41L11.17 6L6.59 10.59L8 12L14 6L8 0Z",fill:"currentColor"})]})})},"lastPage")]})};function cR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function cL(e){return(cL="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 cI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function cA(e){var t=e.instantSearchInstance,n=e.helper,r=e.attribute,i=e.widgetType;return function(){for(var e,l,a=arguments.length,o=Array(a),s=0;s<a;s++)o[s]=arguments[s];var c=o[1],u=o[2],d=o[3],h=function(e){if(Array.isArray(e))return e}(e=o[0].split(":"))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,l,a,o=[],s=!0,c=!1;try{l=(n=n.call(e)).next,!1;for(;!(s=(r=l.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return o}}(e,2)||function(e,t){if(e){if("string"==typeof e)return cI(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cI(e,t)}}
24(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),p=h[0],f=h[1],m="string"==typeof r?r:r(c);1===o.length&&"object"===cL(o[0])?t.sendEventToInsights(o[0]):"click"===p&&o.length>=2&&o.length<=4&&((n.state.isHierarchicalFacet(m)?n.state.isHierarchicalFacetRefined(m,c):n.state.isConjunctiveFacet(m)?n.state.isFacetRefined(m,c):n.state.isDisjunctiveFacetRefined(m,c))||t.sendEventToInsights({insightsMethod:"clickedFilters",widgetType:i,eventType:p,eventModifier:f,payload:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cR(Object(n),!0).forEach(function(t){var r,i,l;r=e,i=t,l=n[t],(i=function(e){var t=function(e,t){if("object"!=cL(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=cL(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==cL(t)?t:String(t)}(i))in r?Object.defineProperty(r,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):r[i]=l}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cR(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({eventName:void 0===u?"Filter Applied":u,index:(null==(l=n.lastResults)?void 0:l.index)||n.state.index,filters:["".concat(m,":").concat(c)]},void 0===d?{}:d),attribute:m}))}}var cM=["name","escapedValue","path"];function cF(e){return(cF="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 cD(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,l,a,o=[],s=!0,c=!1;try{if(l=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=l.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return cH(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cH(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function cB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cB(Object(n),!0).forEach(function(t){cz(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cB(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cz(e,t,n){var r;return(r=function(e,t){if("object"!=cF(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=cF(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==cF(r)?r:String(r))in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cV=e2({name:"menu",connector:!0}),cW=["isRefined","name:asc"];let cU=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ej;return ak(e,cV()),function(n){var r,i,l,a=n||{},o=a.attribute,s=a.limit,c=void 0===s?10:s,u=a.showMore,d=void 0!==u&&u,h=a.showMoreLimit,p=void 0===h?20:h,f=a.sortBy,m=void 0===f?cW:f,g=a.transformItems,v=void 0===g?function(e){return e}:g;if(!o)throw Error(cV("The `attribute` option is required."));if(!0===d&&p<=c)throw Error(cV("The `showMoreLimit` option must be greater than `limit`."));var y=!1,x=function(){};function b(){x()}return{$$type:"ais.menu",init:function(t){var n=t.instantSearchInstance;e(c$(c$({},this.getWidgetRenderState(t)),{},{instantSearchInstance:n}),!0)},render:function(t){var n=t.instantSearchInstance;e(c$(c$({},this.getWidgetRenderState(t)),{},{instantSearchInstance:n}),!1)},dispose:function(e){var n=e.state;return t(),n.removeHierarchicalFacet(o).setQueryParameter("maxValuesPerFacet",void 0)},getRenderState:function(e,t){return c$(c$({},e),{},{menu:c$(c$({},e.menu),{},cz({},o,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(e){var t,a=this,s=e.results,u=e.createURL,h=e.instantSearchInstance,f=e.helper,g=[],w=!1;if(r||(r=cA({instantSearchInstance:h,helper:f,attribute:o,widgetType:this.$$type})),i||(i=function(e){return u(function(t){return a.getWidgetUiState(t,{searchParameters:f.state.resetPage().toggleFacetRefinement(o,e),helper:f})})}),l||(l=function(e){var t=cD(f.getHierarchicalFacetBreadcrumb(o),1)[0];r("click:internal",e||t),f.toggleFacetRefinement(o,e||t).search()}),e.results&&(t=this,x=function(){y=!y,t.render(e)}),s){var j=s.getFacetValues(o,{sortBy:m,facetOrdering:m===cW}),S=j&&!Array.isArray(j)&&j.data?j.data:[];w=d&&(y||S.length>(y?p:c)),g=v(S.slice(0,y?p:c).map(function(e){var t=e.name,n=e.escapedValue;return c$(c$({},(e.path,function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,cM))),{},{label:t,value:n})}),{results:s})}return{items:g,createURL:i,refine:l,sendEvent:r,canRefine:g.length>0,widgetParams:n,isShowingMore:y,toggleShowMore:b,canToggleShowMore:w}},getWidgetUiState:function(e,t){var n,r,i=cD(t.searchParameters.getHierarchicalFacetBreadcrumb(o),1)[0];return n=c$(c$({},e),{},{menu:c$(c$({},e.menu),{},cz({},o,i))}),r=o,n.menu&&(void 0===n.menu[r]&&delete n.menu[r],0===Object.keys(n.menu).length&&delete n.menu),n},getWidgetSearchParameters:function(e,t){var n=t.uiState,r=n.menu&&n.menu[o];if(e.isConjunctiveFacet(o)||e.isDisjunctiveFacet(o))return e;var i=e.removeHierarchicalFacet(o).addHierarchicalFacet({name:o,attributes:[o]}),l=Math.max(i.maxValuesPerFacet||0,d?p:c),a=i.setQueryParameter("maxValuesPerFacet",l);return r?a.addHierarchicalFacetRefinement(o,r):a.setQueryParameters({hierarchicalFacetsRefinements:c$(c$({},a.hierarchicalFacetsRefinements),{},cz({},o,[]))})}}}},cq=e=>{let{onValueChange:t,className:n,id:r,attribute:i,placeholder:l,transformItems:a,value:o,c
24ontrolledMode:s=!1}=e,{t:c}=(0,y.Bd)("common"),{items:u,refine:d}=n3(cU,{attribute:i,transformItems:a,sortBy:["name:asc"]},void 0);return(0,h.jsx)("div",{className:"ais-MenuSelect ".concat(n),children:(0,h.jsxs)("select",{id:r,className:"ais-MenuSelect-select",value:o||"",onChange:e=>{let n=e.target.value;s||d(n),t&&t(n)},"aria-label":c("components.CustomMenuSelect.filter"),children:[(0,h.jsx)("option",{value:"",children:c(l||"components.CustomMenuSelect.see_all")}),u.map(e=>(0,h.jsxs)("option",{value:e.value,children:[e.label," (",e.count,")"]},e.label))]})})},cQ=em("Y0ASKBJHCJ","2380008829670b05a2f8edca316a5818"),cK=e=>{let{selectedTopic:t}=e,{indexUiState:n,setIndexUiState:r}=aA();return(0,p.useEffect)(()=>{n.page&&n.page>0&&r({...n,page:0})},[t,r]),null},cG=e=>{let{onSearchChange:t}=e,{query:n}=n3(aT,void 0,void 0);return(0,p.useEffect)(()=>{t(n)},[n,t]),null},cY={en:oj,fr:oE},cZ=em("Y0ASKBJHCJ","2380008829670b05a2f8edca316a5818"),cJ=e=>{let{selectedTopic:t,selectedRegion:n}=e,{indexUiState:r,setIndexUiState:i}=aA();return(0,p.useEffect)(()=>{r.page&&r.page>0&&i({...r,page:0})},[t,n]),null},cX=e=>{let{onSearchChange:t}=e,{query:n}=n3(aT,void 0,void 0);return(0,p.useEffect)(()=>{t(n)},[n,t]),null};function c0(e){return(c0="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)}var c1=["name","escapedValue"],c2=["escapedValue","value"];function c5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c3(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c5(Object(n),!0).forEach(function(t){c4(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c5(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c4(e,t,n){var r;return(r=function(e,t){if("object"!=c0(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=c0(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==c0(r)?r:String(r))in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c6(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var c8=e2({name:"refinement-list",connector:!0}),c9=["isRefined","count:desc","name:asc"];let c7=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ej;return ak(e,c8()),function(n){var r,i,l,a=n||{},o=a.attribute,s=a.operator,c=void 0===s?"or":s,u=a.limit,d=void 0===u?10:u,h=a.showMore,p=void 0!==h&&h,f=a.showMoreLimit,m=void 0===f?20:f,g=a.sortBy,v=void 0===g?c9:g,y=a.escapeFacetValues,x=void 0===y||y,b=a.transformItems,w=void 0===b?function(e){return e}:b;if(!o)throw Error(c8("The `attribute` option is required."));if(!/^(and|or)$/.test(c))throw Error(c8('The `operator` must one of: `"and"`, `"or"` (got "'.concat(c,'").')));if(!0===p&&m<=d)throw Error(c8("`showMoreLimit` should be greater than `limit`."));var j=function(e){var t=e.name,n=e.escapedValue;return c3(c3({},c6(e,c1)),{},{value:n,label:t,highlighted:t})},S=[],k=!0,_=!1,C=function(){};function N(){C()}var E=function(){return function(){}};return{$$type:"ais.refinementList",init:function(t){e(c3(c3({},this.getWidgetRenderState(t)),{},{instantSearchInstance:t.instantSearchInstance}),!0)},render:function(t){e(c3(c3({},this.getWidgetRenderState(t)),{},{instantSearchInstance:t.instantSearchInstance}),!1)},getRenderState:function(e,t){return c3(c3({},e),{},{refinementList:c3(c3({},e.refinementList),{},c4({},o,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(t){var a=this,s=t.results,c=t.state,u=t.createURL,h=t.instantSearchInstance,f=t.helper,g=[],y=[];if(l&&i&&E||(l=cA({instantSearchInstance:h,helper:f,attribute:o,widgetType:this.$$type}),i=function(e){l("click:internal",e),f.toggleFacetRefinement(o,e).search()},b=this,E=function(t){return function(n){var i=t.instantSearchInstance,l=t.results;if(""===n&&S)e(c3(c3({},b.getWidgetRenderState(c3(c3({},t),{},{results:r}))),{},{instantSearchInstance:i}),!1);else{var a={highlightPreTag:x?tO.highlightPreTag:tR.highlightPreTag,highlightPostTag:x?tO.highlightPostTag:tR.highlightPostTag};f.searchForFacetValues(o,n,Math.min(_?m:d,100),a).then(function(n){var a=w((x?n.facetHits.map(function(e){return tP(tP({},e),{},{highlighted:tL(e.highlighted)})}):n.facetHits).map(function(e){var t=e.escapedValue,n=e.value;return c3(c3({},c6(e,c2)),{},{value:t,label:n})}),{results:l});e(c3(c3({},b.getWidgetRenderState(c3(c3({},t),{},{results:r}))),{},{items:a,canToggleShowMore:!1,canRefine:!0,isFromSearch:!0,instantSearchInstance:i}),!1)})}}}),s){var b,P,T=s.getFacetValues(o,{sortBy:v,facetOrdering:v===c9});g=w((y=T&&Array.isArray(T)?T:[]).slice(0,_?m:d).map(j),{results:s});var O=c.maxValuesPerFacet,R=_?m:d;k=O>R?y.length<=R:y.length<R,r=s,S=g,t.results&&(P=this,C=function(){_=!_,P.render(t)})}var L=E&&E(t),I=_&&S.length>d,A=p&&!k;return{createURL:function(e){return u(function(t){return a.getWidgetUiState(t,{searchParameters:c.resetPage().toggleFacetRefinement(o,e),helper:f})})},items:g,refine:i,searchForItems:L,isFromSearch:!1,canRefine:g.length>0,widgetParams:n,isShowingMore:_,canToggleShowMore:I||A,toggleShowMore:N,sendEvent:l,hasExhaustiveItems:k}},dispose:function(e){var n=e.state;t();var r=n.setQueryParameter("maxValuesPerFacet",void 0);return"and"===c?r.removeFacet(o):r.removeDisjunctiveFacet(o)},getWidgetUiState:function(e,t){var n,r,i=t.searchParameters,l="or"===c?i.getDisjunctiveRefinements(o):i.getConjunctiveRefinements(o);return n=c3(c3({},e),{},{refinementList:c3(c3({},e.refinementList),{},c4({},o,l))}),r=o,n.refinementList&&(n.refinementList[r]&&0!==n.refinementList[r].length||delete n.refinementList[r],0===Object.keys(n.refinementList).length&&delete n.refinementList),n},getWidgetSearchParameters:function(e,t){var n=t.uiState,r="or"===c;if(e.isHierarchicalFacet(o)||r&&e.isConjunctiveFacet(o)||!r&&e.isDisjunctiveFacet(o))return e;var i=n.refinementList&&n.refinementList[o],l=r?e.addDisjunctiveFacet(o).removeDisjunctiveFacetRefinement(o):e.addFacet(o).removeFacetRefinement(o),a=Math.max(l.maxValuesPerFacet||0,p?m:d),s=l.setQueryParameter("maxValuesPerFacet",a);if(!i){var u=r?"disjunctiveFacetsRefinements":"facetsRefinements";return s.setQueryParameters(c4({},u,c3(c3({},s[u]),{},c4({},o,[]))))}return i.reduce(function(e,t){return r?e.addDisjunctiveFacetRefinement(o,t):e.addFacetRefinement(o,t)},s)}}}};function ue(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(function(e,t){return Array.isArray(t)?e.concat(t):e.concat([t])}
24,[]).filter(Boolean).join(" ")}var ut=n(4501),un=n(8683),ur=["parts","highlightedTagName","nonHighlightedTagName","separator","className","classNames"],ui=function(e){var t=e.createElement,n=e.Fragment,r=function(e){var n=e.classNames,r=e.children,i=e.highlightedTagName,l=e.isHighlighted,a=e.nonHighlightedTagName;return t(l?i:a,{className:l?n.highlighted:n.nonHighlighted},r)};return function(e){var i=e.parts,l=e.highlightedTagName,a=void 0===l?"mark":l,o=e.nonHighlightedTagName,s=void 0===o?"span":o,c=e.separator,u=void 0===c?", ":c,d=e.className,h=e.classNames,p=void 0===h?{}:h,f=(0,un.A)(e,ur);return t("span",(0,ut.A)({},f,{className:ue(p.root,d)}),i.map(function(e,l){var o=l===i.length-1;return t(n,{key:l},e.map(function(e,n){return t(r,{key:n,classNames:p,highlightedTagName:a,nonHighlightedTagName:s,isHighlighted:e.isHighlighted},e.value)}),!o&&t("span",{className:p.separator},u))}))}}({createElement:p.createElement,Fragment:p.Fragment}),ul=["classNames"];function ua(){return(ua=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function uo(e){var t=e.classNames,n=void 0===t?{}:t,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,ul);return p.createElement(ui,ua({classNames:{root:ue("ais-Highlight",n.root),highlighted:ue("ais-Highlight-highlighted",n.highlighted),nonHighlighted:ue("ais-Highlight-nonHighlighted",n.nonHighlighted),separator:ue("ais-Highlight-separator",n.separator)}},r))}var us=["isShowingMore","translations"];function uc(e){var t=e.isShowingMore,n=e.translations,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,us);return p.createElement("button",r,n.showMoreButtonText({isShowingMore:t}))}var uu=["canRefine","items","onRefine","query","searchBox","noResults","showMore","canToggleShowMore","onToggleShowMore","isShowingMore","className","classNames","translations"];function ud(){return(ud=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function uh(e){e.canRefine;var t=e.items,n=e.onRefine,r=e.query,i=e.searchBox,l=e.noResults,a=e.showMore,o=e.canToggleShowMore,s=e.onToggleShowMore,c=e.isShowingMore,u=e.className,d=e.classNames,h=void 0===d?{}:d,f=e.translations,m=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,uu);return p.createElement("div",ud({},m,{className:ue("ais-RefinementList",h.root,0===t.length&&ue("ais-RefinementList--noRefinement",h.noRefinementRoot),u)}),i&&p.createElement("div",{className:ue("ais-RefinementList-searchBox",h.searchBox)},i),l?p.createElement("div",{className:ue("ais-RefinementList-noResults",h.noResults)},l):p.createElement("ul",{className:ue("ais-RefinementList-list",h.list)},t.map(function(e){return p.createElement("li",{key:e.value,className:ue("ais-RefinementList-item",h.item,e.isRefined&&ue("ais-RefinementList-item--selected",h.selectedItem))},p.createElement("label",{className:ue("ais-RefinementList-label",h.label)},p.createElement("input",{checked:e.isRefined,className:ue("ais-RefinementList-checkbox",h.checkbox),type:"checkbox",value:e.value,onChange:function(){n(e)}}),p.createElement("span",{className:ue("ais-RefinementList-labelText",h.labelText)},r.length>0?p.createElement(uo,{parts:[tz(tC(e.highlighted||""))]}):e.label),p.createElement("span",{className:ue("ais-RefinementList-count",h.count)},e.count)))})),a&&p.createElement(uc,{className:ue("ais-RefinementList-showMore",h.showMore,!o&&ue("ais-RefinementList-showMore--disabled",h.disabledShowMore)),disabled:!o,onClick:s,isShowingMore:c,translations:f}))}var up=["formRef","inputRef","isSearchStalled","onChange","onReset","onSubmit","placeholder","value","autoF
24ocus","resetIconComponent","submitIconComponent","loadingIconComponent","classNames","translations"];function uf(){return(uf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var um=p.createElement("path",{d:"M26.804 29.01c-2.832 2.34-6.465 3.746-10.426 3.746C7.333 32.756 0 25.424 0 16.378 0 7.333 7.333 0 16.378 0c9.046 0 16.378 7.333 16.378 16.378 0 3.96-1.406 7.594-3.746 10.426l10.534 10.534c.607.607.61 1.59-.004 2.202-.61.61-1.597.61-2.202.004L26.804 29.01zm-10.426.627c7.323 0 13.26-5.936 13.26-13.26 0-7.32-5.937-13.257-13.26-13.257C9.056 3.12 3.12 9.056 3.12 16.378c0 7.323 5.936 13.26 13.258 13.26z"});function ug(e){var t=e.classNames;return p.createElement("svg",{className:ue("ais-SearchBox-submitIcon",t.submitIcon),width:"10",height:"10",viewBox:"0 0 40 40","aria-hidden":"true"},um)}var uv=p.createElement("path",{d:"M8.114 10L.944 2.83 0 1.885 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943L8.113 10z"});function uy(e){var t=e.classNames;return p.createElement("svg",{className:ue("ais-SearchBox-resetIcon",t.resetIcon),viewBox:"0 0 20 20",width:"10",height:"10","aria-hidden":"true"},uv)}var ux=p.createElement("g",{fill:"none",fillRule:"evenodd"},p.createElement("g",{transform:"translate(1 1)",strokeWidth:"2"},p.createElement("circle",{strokeOpacity:".5",cx:"18",cy:"18",r:"18"}),p.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18"},p.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"}))));function ub(e){var t=e.classNames;return p.createElement("svg",{"aria-label":"Results are loading",width:"16",height:"16",viewBox:"0 0 38 38",stroke:"#444",className:ue("ais-SearchBox-loadingIcon",t.loadingIcon),"aria-hidden":"true"},ux)}function uw(e){var t=e.formRef,n=e.inputRef,r=e.isSearchStalled,i=e.onChange,l=e.onReset,a=e.onSubmit,o=e.placeholder,s=e.value,c=e.autoFocus,u=e.resetIconComponent,d=e.submitIconComponent,h=e.loadingIconComponent,f=e.classNames,m=void 0===f?{}:f,g=e.translations,v=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,up);return p.createElement("div",uf({},v,{className:ue("ais-SearchBox",m.root,v.className)}),p.createElement("form",{ref:t,action:"",className:ue("ais-SearchBox-form",m.form),noValidate:!0,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),a&&a(e),n.current&&n.current.blur()},onReset:function(e){e.preventDefault(),e.stopPropagation(),l(e),n.current&&n.current.focus()},role:"search"},p.createElement("input",{ref:n,className:ue("ais-SearchBox-input",m.input),"aria-label":"Search",autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",placeholder:void 0===o?"":o,spellCheck:!1,maxLength:512,type:"search",value:s,onChange:i,onCompositionEnd:i,autoFocus:c}),p.createElement("button",{className:ue("ais-SearchBox-submit",m.submit),type:"submit",title:g.submitButtonTitle},p.createElement(void 0===d?ug:d,{classNames:m})),p.createElement("button",{className:ue("ais-SearchBox-reset",m.reset),type:"reset",title:g.resetButtonTitle,hidden:0===s.length||r},p.createElement(void 0===u?uy:u,{classNames:m})),p.createElement("span",{className:ue("ais-SearchBox-loadingIndicator",m.loadingIndicator),hidden:!r},p.createElement(void 0===h?ub:h,{classNames:m}))))}function uj(e){return(uj="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)}var uS=["searchable","searchablePlaceholder","attribute","operator","limit","showMore","showMoreLimit","sortBy","escapeFacetValues","transformItems","translations"];function uk(){return(uk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function uC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function uN(e){var t,n=e.searchable,r=e.searchablePlaceholder,i=e.attribute,l=e.operator,a=e.limit,o=e.showMore,s=e.showMoreLimit,c=e.sortBy,u=e.escapeFacetValues,d=e.transformItems,h=e.translations,f=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,uS),m=n3(c7,{attribute:i,operator:l,limit:a,showMore:o,showMoreLimit:s,sortBy:c,escapeFacetValues:u,transformItems:d},{$$widgetType:"ais.refinementList"}),g=m.canRefine,v=m.canToggleShowMore,y=m.isFromSearch,x=m.isShowingMore,b=m.items,w=m.refine,j=m.searchForItems,S=m.toggleShowMore,k=function(e){if(Array.isArray(e))return e}(t=(0,p.useState)(""))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,l,a,o=[],s=!0,c=!1;try{l=(n=n.call(e)).next,!1;for(;!(s=(r=l.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(e){c=!0,i=e}
24finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return o}}(t,2)||function(e,t){if(e){if("string"==typeof e)return uC(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uC(e,t)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),_=k[0],C=k[1],N=(0,p.useRef)(null);function E(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];C(e),t&&j(e)}var P=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u_(Object(n),!0).forEach(function(t){var r,i,l;r=e,i=t,l=n[t],(i=function(e){var t=function(e,t){if("object"!=uj(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=uj(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==uj(t)?t:String(t)}(i))in r?Object.defineProperty(r,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):r[i]=l}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({resetButtonTitle:"Clear the search query",submitButtonTitle:"Submit the search query",noResultsText:"No results.",showMoreButtonText:function(e){return e.isShowingMore?"Show less":"Show more"}},h),T={items:b,canRefine:g,onRefine:function(e){w(e.value),E("")},query:_,searchBox:n&&p.createElement(uw,{inputRef:N,placeholder:r,isSearchStalled:!1,value:_,onChange:function(e){var t="compositionend"===e.type||!e.nativeEvent.isComposing;E(e.currentTarget.value,t)},onReset:function(){E("")},onSubmit:function(){b.length>0&&(w(b[0].value),E(""))},translations:{submitButtonTitle:P.submitButtonTitle,resetButtonTitle:P.resetButtonTitle}}),noResults:n&&y&&0===b.length&&P.noResultsText,canToggleShowMore:v,onToggleShowMore:S,isShowingMore:x,translations:{showMoreButtonText:P.showMoreButtonText}};return p.createElement(uh,uk({},f,T,{showMore:o}))}let uE=function(e){var t;let{setSearchResults:n,locale:r}=e,{results:i,indexUiState:l}=aA(),a=(null==(t=l.query)?void 0:t.length)>=0,{t:o}=(0,y.Bd)("datasources"),[s,c]=(0,p.useState)(r||"en");(0,p.useEffect)(()=>{r?c(r):c(C())},[r]);let u=e=>{let{regionSlug:t,currentLocale:n}=e,r=o("news-regions.".concat(t),t);return"en"===n?r.toUpperCase():r},d=e=>{let{regions:t}=e;return t&&Array.isArray(t)&&0!==t.length?t.map((e,n)=>(0,h.jsxs)("span",{children:[(0,h.jsx)(u,{regionSlug:e,currentLocale:s}),n<t.length-1?" | ":""]},"".concat(e,"-").concat(n))):null};function f(e){return e?e.replace(/<em>/g,'<span class="bg-amber-100">').replace(/<\/em>/g,"</span>"):""}return(0,p.useEffect)(()=>{n(i)},[i,n]),(0,h.jsxs)("div",{className:"py-6 md:py-24 flex flex-col text-red-500",children:[(null==i?void 0:i.hits.length)===0&&a&&(0,h.jsxs)("p",{children:["Looks like we're unable to find what you're looking for. Please try broadening your search terms or ",(0,h.jsx)(n9,{className:"hover:underline hover:text-red-700 active:text-red-900",href:"/contact-us",children:"contact us directly"}),"."]}),(null==i?void 0:i.hits.length)>0&&(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("ol",{className:"divide-y divide-grey-300",children:i.hits.map(e=>{var t,r,i,l,a;return(0,h.jsx)("li",{className:"py-6 md:py-12 first:pt-0 group/hits",children:(0,h.jsxs)(n9,{href:null==e?void 0:e.full_slug,onClick:e=>{n(null)},className:"space-y-6 block",children:[(0,h.jsxs)("h2",{className:"text-4xl md:text-5xl md:font-medium font-display text-red-500 group-hover/hits:text-red-700 group-hover/hits:underline group-active/hits:text-red-900 group-active/hits:underline",children:[(0,h.jsx)("span",{dangerouslySetInnerHTML:{__html:f((null==(r=e._highlightResult)||null==(t=r.name)?void 0:t.value)||e.name)}}),(null==e||null==(i=e.content)?void 0:i.Region)&&(0,h.jsxs)(h.Fragment,{children:[" | ",(0,h.jsx)(d,{regions:e.content.Region},"region-".concat(s,"-").concat(null==e?void 0:e.id))]})]}),(0,h.jsx)("p",{className:"text-grey-500 group-hover/hits:text-grey-700 group-active/hits:text-grey-900",dangerouslySetInnerHTML:{__html:f((null==(a=e._snippetResult)||null==(l=a.searchText)?void 0:l.value)||"")}})]})},e.id)})})})]})},uP=em("Y0ASKBJHCJ","2380008829670b05a2f8edca316a5818"),uT=e=>{let{children:t,id:n,index:r,className:i}=e;return(0,h.jsx)(0===r?"h1":"h2",{className:i,id:n,children:t})},uO=e=>{var t,n,r,i,l,a,o,s,c,u;let{blok:d,locale:f}=e,[m,g]=(0,p.useState)(f||"en"),{t:v}=(0,y.Bd)("datasources"),x=(null==d||null==(n=d.content)||null==(t=n.Category)?void 0:t[0])?v("resources-data-filters.".concat(d.content.Category[0]),d.content.Category[0]):"";return(0,p.useEffect)(()=>{f||g(C())},[f]),(0,h.jsx)("li",{children:(0,h.jsxs)(n9,{className:"bg-white p-6 block h-full group/resource hover:drop-shadow-mobile active:drop-shadow-active-mobile  md:hover:drop-shadow-desktop md:active:drop-shadow-active-desktop transition duration-150 ease-in-out",href:G(null==d||null==(r=d.content)?void 0:r.Link),target:null==d||null==(l=d.content)||null==(i=l.Link)?void 0:i.target,children:[(0,h.jsx)("span",{className:"text-xs pb-2 text-grey-500 uppercase font-semibold font-body inline-block",children:x||(null==d||null==(s=d.content)||null==(o=s.Category)||null==(a=o[0])?void 0:a.replace(/_/g," "))}),(0,h.jsxs)("div",{className:"border-t-2 borderg-grey-100 pt-6 space-y-3",children:[(0,h.jsx)("span",{className:"text-3xl font-display text-red-500 group-hover/resource:text-red-700 group-active/resource:text-red-900 transition duration-150 ease-in-out",children:null==d||null==(c=d.content)?void 0:c.Title}),(0,h.jsx)(cf,{className:"text-grey-500 line-clamp-3 text-base",children:null==d||null==(u=d.content)?void 0:u.Blurb})]})]})})},uR=function(e){var t,n;let{setSearchResults:r,hasActiveFilters:i=!1}=e,{results:l,indexUiState:a}=aA();
24null==(t=a.query)||t.length;let o=(null==(n=a.query)?void 0:n.length)>0,s=(null==l?void 0:l.hits.length)===0&&(o||i);return(0,h.jsxs)("div",{className:"py-12 flex flex-col text-red-500",children:[s&&(0,h.jsxs)("p",{children:["Looks like we're unable to find what you're looking for. Please try adjusting your search terms or filters, or ",(0,h.jsx)(n9,{className:"hover:underline hover:text-red-700 active:text-red-900",href:"/contact-us",children:"contact us directly"}),"."]}),(null==l?void 0:l.hits.length)>0&&(0,h.jsx)("ul",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 lg:gap-12",children:l.hits.map(e=>(0,h.jsx)(uO,{blok:e},e.objectID))})]})},uL=em("Y0ASKBJHCJ","2380008829670b05a2f8edca316a5818"),uI=e=>{let{selectedCategory:t}=e,{indexUiState:n,setIndexUiState:r}=aA();return(0,p.useEffect)(()=>{n.page&&n.page>0&&r({...n,page:0})},[t]),null},uA=e=>{let{onSearchChange:t}=e,{query:n}=n3(aT,void 0,void 0);return(0,p.useEffect)(()=>{t(n)},[n,t]),null};var uM=n(5062),uF=n.n(uM);function uD(){return(uD=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function uH(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var uB=function(e){function t(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(uH(t)),t.handleErrored=t.handleErrored.bind(uH(t)),t.handleChange=t.handleChange.bind(uH(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(uH(t)),t}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e;var n=t.prototype;return n.getValue=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this.props.grecaptcha.enterprise.getResponse(this._widgetId):null},n.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},n.execute=function(){var e=this.props.grecaptcha;if(e&&void 0!==this._widgetId)return e.enterprise.execute(this._widgetId);this._executeRequested=!0},n.executeAsync=function(){var e=this;return new Promise(function(t,n){e.executionResolve=t,e.executionReject=n,e.execute()})},n.reset=function(){this.props.grecaptcha&&void 0!==this._widgetId&&this.props.grecaptcha.enterprise.reset(this._widgetId)},n.forceReset=function(){this.props.grecaptcha&&this.props.grecaptcha.enterprise.reset()},n.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},n.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},n.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},n.explicitRender=function(){if(this.props.grecaptcha&&this.props.grecaptcha.enterprise&&this.props.grecaptcha.enterprise.render&&void 0===this._widgetId){var e=document.createElement("div");this._widgetId=this.props.grecaptcha.enterprise.render(e,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(e)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},n.componentDidMount=function(){this.explicitRender()},n.componentDidUpdate=function(){this.explicitRender()},n.handleRecaptchaRef=function(e){this.captcha=e},n.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,e.isolated,function(e,t){if(null==e)return{};var n,r,i={},l=Object.keys(e);for(r=0;r<l.length;r++)t.indexOf(n=l[r])>=0||(i[n]=e[n]);return i}(e,["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"]));return p.createElement("div",uD({},t,{ref:this.handleRecaptchaRef}))},t}(p.Component);uB.displayName="ReCAPTCHA",uB.propTypes={sitekey:uF().string.isRequired,onChange:uF().func,grecaptcha:uF().object,theme:uF().oneOf(["dark","light"]),type:uF().oneOf(["image","audio"]),tabindex:uF().number,onExpired:uF().func,onErrored:uF().func,size:uF().oneOf(["compact","normal","invisible"]),stoken:uF().string,hl:uF().string,badge:uF().oneOf(["bottomright","bottomleft","inline"]),isolated:uF().bool}
24,uB.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var u$=n(3520),uz=n.n(u$);function uV(){return(uV=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var uW={},uU=0,uq="onloadcallback";let uQ=(function(e,t){return t=t||{},function(n){var r=n.displayName||n.name||"Component",i=function(r){function i(e,t){var n;return(n=r.call(this,e,t)||this).state={},n.__scriptURL="",n}i.prototype=Object.create(r.prototype),i.prototype.constructor=i,i.__proto__=r;var l=i.prototype;return l.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+uU++),this.__scriptLoaderID},l.setupScriptURL=function(){return this.__scriptURL="function"==typeof e?e():e,this.__scriptURL},l.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)})},l.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=uW[this.__scriptURL];if(!e||!e.loaded)throw Error("Script is not loaded.");for(var n in e.observers)e.observers[n](e);delete window[t.callbackName]},l.componentDidMount=function(){var e=this,n=this.setupScriptURL(),r=this.asyncScriptLoaderGetScriptLoaderID(),i=t,l=i.globalName,a=i.callbackName,o=i.scriptId;if(l&&void 0!==window[l]&&(uW[n]={loaded:!0,observers:{}}),uW[n]){var s=uW[n];return s&&(s.loaded||s.errored)?void this.asyncScriptLoaderHandleLoad(s):void(s.observers[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)})}var c={};c[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)},uW[n]={loaded:!1,observers:c};var u=document.createElement("script");for(var d in u.src=n,u.async=!0,t.attributes)u.setAttribute(d,t.attributes[d]);o&&(u.id=o);var h=function(e){if(uW[n]){var t=uW[n].observers;for(var r in t)e(t[r])&&delete t[r]}};a&&"undefined"!=typeof window&&(window[a]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),u.onload=function(){var e=uW[n];e&&(e.loaded=!0,h(function(t){return!a&&(t(e),!0)}))},u.onerror=function(){var e=uW[n];e&&(e.errored=!0,h(function(t){return t(e),!0}))},document.body.appendChild(u)},l.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===t.removeOnUnmount)for(var n=document.getElementsByTagName("script"),r=0;r<n.length;r+=1)n[r].src.indexOf(e)>-1&&n[r].parentNode&&n[r].parentNode.removeChild(n[r]);var i=uW[e];i&&(delete i.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===t.removeOnUnmount&&delete uW[e])},l.render=function(){var e=t.globalName,r=this.props,i=(r.asyncScriptOnLoad,r.forwardedRef),l=function(e,t){if(null==e)return{};var n,r,i={},l=Object.keys(e);for(r=0;r<l.length;r++)t.indexOf(n=l[r])>=0||(i[n]=e[n]);return i}(r,["asyncScriptOnLoad","forwardedRef"]);return e&&"undefined"!=typeof window&&(l[e]=void 0!==window[e]?window[e]:void 0),l.ref=i,(0,p.createElement)(n,l)},i}(p.Component),l=(0,p.forwardRef)(function(e,t){return(0,p.createElement)(i,uV({},e,{forwardedRef:t}))});return l.displayName="AsyncScriptLoader("+r+")",l.propTypes={asyncScriptOnLoad:uF().func},uz()(l,n)}})(function(){return"https://"+(("undefined"!=typeof window&&window.recaptchaOptions||{}).useRecaptchaNet?"recaptcha.net":"www.google.com")+"/recaptcha/enterprise.js?onload="+uq+"&render=explicit"},{callbackName:uq,globalName:"grecaptcha"})(uB),uK=e=>{let{show:t,success:n,title:r,message:i,close:l,className:a}=e,{t:o}=(0,y.Bd)("common");return t?(0,h.jsx)("div",{onClick:l,className:"animate-[fadeIn_303ms_ease-out_1] modal fixed bg-grey-900/70 inset-0 w-full h-full center z-50 flex items-center justify-around",children:(0,h.jsx)("div",{className:"".concat(n?"bg-green-500":"bg-red-500"," text-white p-6 md:p-12 shadow-lg w-[95%] md:w-fit animate-[fadeIn_909ms_ease-out_1]"),children:(0,h.jsxs)("div",{className:"px-4 py-6 sm:p-6",children:[(0,h.jsx)("h3",{className:"text-5xl md:text-6xl font-extrabold font-display ",children:r}),(0,h.jsx)("div",{className:"mt-2 max-w-xl ".concat(a),children:(0,h.jsx)(ab,{children:aj(i)})}),(0,h.jsx)("div",{className:"mt-5",children:(0,h.jsx)("button",{type:"button",onClick:l,className:"inline-flex items-center bg-white ".concat(n?"text-green-500":"text-red-500"," py-3 px-6 text-sm font-semibold shadow-sm hover:bg-grey-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-500"),children:o("components.Results_Modal.close")})})]})})}):void 0};var uG=n(9742);let uY=e=>{let{blok:t,index:n}=e,{t:r}=(0,y.Bd)("common"),[i,l]=(0,p.useState)(""),[a,o]=(0,p.useState)(!1),[s,c]=(0,p.useState)(!1),[u,d]=(0,p.useState)({terms:!1,vin:!1}),[f,m]=(0,p.useState)({show:!1}),g=(0,p.useRef)(null),v=()=>{l(""),o(!1),g.current.reset()},x=async()=>{g.current.props.grecaptcha.enterprise.ready(async()=>{let e=await g.current.execute(uG.env.NEXT_PUBLIC_RecaptchaSiteID,{action:"LOGIN"}).then(e=>e);await fetch("/api/vinVerifyTool?vin=".concat(i,"&recaptchaToken=").concat(e)).then(e=>{if(200===e.status)return e.json();throw Error("Failed to fetch data from the API. Status code: ".concat(e.status))}).then(e=>{let t=e.status;m({show:!0,success:"Not found"===t,title:"Not found"===t?r("components.VIN_Verify.modal.no_match_title"):429===t?r("components.VIN_Verify.modal.rate_limit_title"):r("components.VIN_Verify.modal.match_title"),message:"Not found"===t?r("components.VIN_Verify.modal.no_match_message",{vin:i.toUpperCase()}):429===t?r("components.VIN_Verify.modal.rate_limit_message"):r("components.VIN_Verify.modal.match_message",{vin:i.toUpperCase()})}),v()}).catch(e=>{throw Error("Failed to fetch data from the API. Status code: ".concat(e.status))})})},b=()=>{let e=i.trim();return e&&/^[0-9a-zA-Z]+$/.test(e)?(d({...u,vin:!1}),l(e),!0):(d({...u,vin:!0}),!1)};return(0,h.jsxs)(w.A,{children:[(0,h.jsxs)("section",{id:"vin-form",className:"bg-white font-body py-12 md:py-24",children:[(null==t?void 0:t.Title)?(0,h.jsx)(uT,{index:n,className:"text-6xl text-red-500 md:text-8xl font-normal pb-6 font-display",children:t.Title}):void 0,(0,h.jsxs)("div",{className:"flex md:flex-row flex-col items-start md:space-x-12",children:[(0,h.jsx)("div",{className:"basis-1/2",children:_(null==t?void 0:t.Blurb)?(0,h.jsx)(cf,{className:"text-grey-500 text-lg md:text-xl",children:null==t?void 0:t.Blurb}):void 0}),(0,h.jsxs)("div",{className:"w-full basis-1/2 mt-6",children:[(0,h.jsxs)("form",{className:"space-y-6 bg-red-500 text-white p-6",onSubmit:e=>{e.preventDefault(),b()&&a?x():a||d({...u,terms:!0})},children:[(0,h.jsx)(uQ,{ref:g,size:"invisible",sitekey:"6LejT0IlAAAAAEfRO0Rz2fqYcCaKLToLVMcLuyC0",onChange:e=>{}}),(0,h.jsx)("div",{className:"space-y-1.5 w-full",children:(0,h.jsxs)("div",{className:"space-y-1",children:[(0,h.jsx)("label",{className:"flex flex-col",htmlFor:"vin_number",children:r("components.VIN_Verify.label.enter_vin")}),(0,h.jsx)("input",{className:"py-3 px-5 w-full text-grey-500 transition duration-150 ease-in-out outline-none focus:ring-0 border-grey-100 hover:border-red-900 focus:border-grey-500 ".concat(u.vin?"border-red-900":""),type:"text",maxLength:17,id:"vin_number",name:"vin_number",value:i,onChange:e=>{l(e.target.value),u.vin&&d({...u,vin:!1})}}),u.vin&&(0,h.jsxs)("div",{className:"text-xs text-white",children:[(0,h.jsx)("p",{children:r("components.VIN_Verify.error.vin_required")}),(0,h.jsx)("p",{children:r("components.VIN_Verify.error.vin_validation")})]})]})}),(0,h.jsxs)("div",{className:"space-y-1",children:[(0,h.jsxs)("div",{className:"w-full flex items-center space-x-3",children:[(0,h.jsx)("input",{className:"vin-checkbox transition duration-150 ease-in-out outline-none focus:ring-0 border-grey-100 hover:border-red-900 focus:border-grey-500 ".concat(u.terms?"border-red-900":""),type:"checkbox",id:"check_agree",name:"check_agree",checked:a,onChange:()=>{d({...u,terms:!1}),o(!a)}}),(0,h.jsx)("label",{className:"flex flex-col",htmlFor:"check_agree",children:r("components.VIN_Verify.label.agree_terms")})]}),u.terms&&(0,h.jsx)("div",{className:"text-xs text-white",children:(0,h.jsx)("p",{children:r("components.VIN_Verify.error.terms_required")})})]}),(0,h.jsx)("input",{className:"hover:bg-red-900 active:bg-red-900 px-6 py-3 text-center text-red-500 hover:text-white cursor-pointer transition duration-150 ease-in-out bg-white",type:"submit",value:r("components.VIN_Verify.button.submit")})]}),(0,h.jsx)("div",{className:"mt-9",children:(0,h.jsxs)("div",{children:[(0,h.jsx)("p",{onClick:()=>{c(!s)},className:"text-red-500 cursor-pointer",children:s?(0,h.jsx)("span",{children:r("components.VIN_Verify.toggle.hide_terms")}):(0,h.jsx)("span",{children:r("components.VIN_Verify.toggle.show_terms")})}),(0,h.jsxs)("div",{className:"".concat(s?"space-y-5 p-4 opacity-100 visible h-fit":"opacity-0 invisible h-0 overflow-hidden"," duration-150 ease-in-out"),children:[(0,h.jsxs)("ul",{className:"ml-5 list-disc",children:[(0,h.jsx)("li",{children:r("components.VIN_Verify.terms.item1")}),(0,h.jsx)("li",{children:r("components.VIN_Verify.terms.item2")}),(0,h.jsx)("li",{children:r("components.VIN_Verify.terms.item3")})]}),(0,h.jsx)("p",{children:r("components.VIN_Verify.terms.disclaimer")}),(0,h.jsx)("p",{children:r("components.VIN_Verify.terms.no_representation")}),(0,h.jsx)("p",{children:r("components.VIN_Verify.terms.liability")}),(0,h.jsx)("p",{children:r("components.VIN_Verify.terms.agreement")}
24),(0,h.jsx)("p",{children:r("components.VIN_Verify.terms.cooperation")})]})]})})]})]})]}),(0,h.jsx)(uK,{show:f.show,success:f.success,title:f.title,message:f.message,close:()=>{m({show:!1})},className:"space-y-12"})]})},uZ={"16:9":"md:aspect-[16/9]","16:11":"md:aspect-[16/11]","9:16":"md:aspect-[9/16]","1:1":"md:aspect-[1/1]","6:10":"md:aspect-[6/10]","7:10":"md:aspect-[7/10]","8:10":"md:aspect-[8/10]"},uJ={"16:9":"aspect-[16/9]","16:11":"aspect-[9/16]","9:16":"aspect-[1/1]","6:10":"aspect-[6/10]","7:10":"aspect-[7/10]","8:10":"aspect-[8/10]"},uX=e=>{let{contentTitle:t,contentSource:n,desktopAspectRatio:r,mobileAspectRatio:i}=e;return(0,h.jsx)("iframe",{title:t,className:"w-full ".concat(i?uJ[i]:"aspect-[16/9]"," ").concat(r?uZ[r]:"md:aspect-[16/9]"),src:new URL(n),allowFullScreen:!0,scrolling:"no",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",sandbox:"allow-same-origin allow-forms allow-scripts allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation"})};var u0=n(891);function u1(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function u2(e={},t={}){Object.keys(t).forEach(n=>{void 0===e[n]?e[n]=t[n]:u1(t[n])&&u1(e[n])&&Object.keys(t[n]).length>0&&u2(e[n],t[n])})}let u5={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function u3(){let e="undefined"!=typeof document?document:{};return u2(e,u5),e}let u4={document:u5,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function u6(){let e="undefined"!=typeof window?window:{};return u2(e,u4),e}class u8 extends Array{constructor(e){"number"==typeof e?super(e):(super(...e||[]),function(e){let t=e.__proto__;Object.defineProperty(e,"__proto__",{get:()=>t,set(e){t.__proto__=e}})}(this))}}function u9(e=[]){let t=[];return e.forEach(e=>{Array.isArray(e)?t.push(...u9(e)):t.push(e)}),t}function u7(e,t){return Array.prototype.filter.call(e,t)}function de(e,t){let n=u6(),r=u3(),i=[];if(!t&&e instanceof u8)return e;if(!e)return new u8(i);if("string"==typeof e){let n=e.trim();if(n.indexOf("<")>=0&&n.indexOf(">")>=0){let e="div";0===n.indexOf("<li")&&(e="ul"),0===n.indexOf("<tr")&&(e="tbody"),(0===n.indexOf("<td")||0===n.indexOf("<th"))&&(e="tr"),0===n.indexOf("<tbody")&&(e="table"),0===n.indexOf("<option")&&(e="select");let t=r.createElement(e);t.innerHTML=n;for(let e=0;e<t.childNodes.length;e+=1)i.push(t.childNodes[e])}else i=function(e,t){if("string"!=typeof e)return[e];let n=[],r=t.querySelectorAll(e);for(let e=0;e<r.length;e+=1)n.push(r[e]);return n}(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)i.push(e);else if(Array.isArray(e)){if(e instanceof u8)return e;i=e}return new u8(function(e){let t=[];for(let n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(i))}de.fn=u8.prototype;let dt="resize scroll".split(" ");function dn(e){return function(...t){if(void 0===t[0]){for(let t=0;t<this.length;t+=1)0>dt.indexOf(e)&&(e in this[t]?this[t][e]():de(this[t]).trigger(e));return this}return this.on(e,...t)}}dn("click"),dn("blur"),dn("focus"),dn("focusin"),dn("focusout"),dn("keyup"),dn("keydown"),dn("keypress"),dn("submit"),dn("change"),dn("mousedown"),dn("mousemove"),dn("mouseup"),dn("mouseenter"),dn("mouseleave"),dn("mouseout"),dn("mouseover"),dn("touchstart"),dn("touchend"),dn("touchmove"),dn("resize"),dn("scroll");let dr={addClass:function(...e){let t=u9(e.map(e=>e.split(" ")));
24return this.forEach(e=>{e.classList.add(...t)}),this},removeClass:function(...e){let t=u9(e.map(e=>e.split(" ")));return this.forEach(e=>{e.classList.remove(...t)}),this},hasClass:function(...e){let t=u9(e.map(e=>e.split(" ")));return u7(this,e=>t.filter(t=>e.classList.contains(t)).length>0).length>0},toggleClass:function(...e){let t=u9(e.map(e=>e.split(" ")));this.forEach(e=>{t.forEach(t=>{e.classList.toggle(t)})})},attr:function(e,t){if(1==arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(let n=0;n<this.length;n+=1)if(2==arguments.length)this[n].setAttribute(e,t);else for(let t in e)this[n][t]=e[t],this[n].setAttribute(t,e[t]);return this},removeAttr:function(e){for(let t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this},transform:function(e){for(let t=0;t<this.length;t+=1)this[t].style.transform=e;return this},transition:function(e){for(let t=0;t<this.length;t+=1)this[t].style.transitionDuration="string"!=typeof e?`${e}ms`:e;return this},on:function(...e){let t,[n,r,i,l]=e;function a(e){let t=e.target;if(!t)return;let n=e.target.dom7EventData||[];if(0>n.indexOf(e)&&n.unshift(e),de(t).is(r))i.apply(t,n);else{let e=de(t).parents();for(let t=0;t<e.length;t+=1)de(e[t]).is(r)&&i.apply(e[t],n)}}function o(e){let t=e&&e.target&&e.target.dom7EventData||[];0>t.indexOf(e)&&t.unshift(e),i.apply(this,t)}"function"==typeof e[1]&&([n,i,l]=e,r=void 0),l||(l=!1);let s=n.split(" ");for(let e=0;e<this.length;e+=1){let n=this[e];if(r)for(t=0;t<s.length;t+=1){let e=s[t];n.dom7LiveListeners||(n.dom7LiveListeners={}),n.dom7LiveListeners[e]||(n.dom7LiveListeners[e]=[]),n.dom7LiveListeners[e].push({listener:i,proxyListener:a}),n.addEventListener(e,a,l)}else for(t=0;t<s.length;t+=1){let e=s[t];n.dom7Listeners||(n.dom7Listeners={}),n.dom7Listeners[e]||(n.dom7Listeners[e]=[]),n.dom7Listeners[e].push({listener:i,proxyListener:o}),n.addEventListener(e,o,l)}}return this},off:function(...e){let[t,n,r,i]=e;"function"==typeof e[1]&&([t,r,i]=e,n=void 0),i||(i=!1);let l=t.split(" ");for(let e=0;e<l.length;e+=1){let t=l[e];for(let e=0;e<this.length;e+=1){let l,a=this[e];if(!n&&a.dom7Listeners?l=a.dom7Listeners[t]:n&&a.dom7LiveListeners&&(l=a.dom7LiveListeners[t]),l&&l.length)for(let e=l.length-1;e>=0;e-=1){let n=l[e];r&&n.listener===r||r&&n.listener&&n.listener.dom7proxy&&n.listener.dom7proxy===r?(a.removeEventListener(t,n.proxyListener,i),l.splice(e,1)):r||(a.removeEventListener(t,n.proxyListener,i),l.splice(e,1))}}}return this},trigger:function(...e){let t=u6(),n=e[0].split(" "),r=e[1];for(let i=0;i<n.length;i+=1){let l=n[i];for(let n=0;n<this.length;n+=1){let i=this[n];if(t.CustomEvent){let n=new t.CustomEvent(l,{detail:r,bubbles:!0,cancelable:!0});i.dom7EventData=e.filter((e,t)=>t>0),i.dispatchEvent(n),i.dom7EventData=[],delete i.dom7EventData}}}return this},transitionEnd:function(e){let t=this;return e&&t.on("transitionend",function n(r){r.target===this&&(e.call(this,r),t.off("transitionend",n))}),this},outerWidth:function(e){if(this.length>0){if(e){let e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){let e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){let e=u6();return this[0]?e.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){let e=u6(),t=u3(),n=this[0],r=n.getBoundingClientRect(),i=t.body,l=n.clientTop||i.clientTop||0,a=n.clientLeft||i.clientLeft||0,o=n===e?e.scrollY:n.scrollTop,s=n===e?e.scrollX:n.scrollLeft;return{top:r.top+o-l,left:r.left+s-a}}return null},css:function(e,t){let n,r=u6();if(1==arguments.length)if("string"==typeof e){if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}else{for(n=0;n<this.length;n+=1)for(let t in e)this[n].style[t]=e[t];return this}if(2==arguments.length&&"string"==typeof e)for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this},each:function(e){return e&&this.forEach((t,n)=>{e.apply(t,[t,n])}),this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(let t=0;t<this.length;t+=1)this[t].innerHTML=e;return this},text:function(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(let t=0;t<this.length;t+=1)this[t].textContent=e;return this}
24,is:function(e){let t,n,r=u6(),i=u3(),l=this[0];if(!l||void 0===e)return!1;if("string"==typeof e){if(l.matches)return l.matches(e);if(l.webkitMatchesSelector)return l.webkitMatchesSelector(e);if(l.msMatchesSelector)return l.msMatchesSelector(e);for(n=0,t=de(e);n<t.length;n+=1)if(t[n]===l)return!0;return!1}if(e===i)return l===i;if(e===r)return l===r;if(e.nodeType||e instanceof u8){for(n=0,t=e.nodeType?[e]:e;n<t.length;n+=1)if(t[n]===l)return!0}return!1},index:function(){let e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if(void 0===e)return this;let t=this.length;if(e>t-1)return de([]);if(e<0){let n=t+e;return n<0?de([]):de([this[n]])}return de([this[e]])},append:function(...e){let t,n=u3();for(let r=0;r<e.length;r+=1){t=e[r];for(let e=0;e<this.length;e+=1)if("string"==typeof t){let r=n.createElement("div");for(r.innerHTML=t;r.firstChild;)this[e].appendChild(r.firstChild)}else if(t instanceof u8)for(let n=0;n<t.length;n+=1)this[e].appendChild(t[n]);else this[e].appendChild(t)}return this},prepend:function(e){let t,n,r=u3();for(t=0;t<this.length;t+=1)if("string"==typeof e){let i=r.createElement("div");for(i.innerHTML=e,n=i.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(i.childNodes[n],this[t].childNodes[0])}else if(e instanceof u8)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this},next:function(e){if(this.length>0){if(e)return this[0].nextElementSibling&&de(this[0].nextElementSibling).is(e)?de([this[0].nextElementSibling]):de([]);if(this[0].nextElementSibling)return de([this[0].nextElementSibling])}return de([])},nextAll:function(e){let t=[],n=this[0];if(!n)return de([]);for(;n.nextElementSibling;){let r=n.nextElementSibling;e?de(r).is(e)&&t.push(r):t.push(r),n=r}return de(t)},prev:function(e){if(this.length>0){let t=this[0];if(e)return t.previousElementSibling&&de(t.previousElementSibling).is(e)?de([t.previousElementSibling]):de([]);if(t.previousElementSibling)return de([t.previousElementSibling])}return de([])},prevAll:function(e){let t=[],n=this[0];if(!n)return de([]);for(;n.previousElementSibling;){let r=n.previousElementSibling;e?de(r).is(e)&&t.push(r):t.push(r),n=r}return de(t)},parent:function(e){let t=[];for(let n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?de(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return de(t)},parents:function(e){let t=[];for(let n=0;n<this.length;n+=1){let r=this[n].parentNode;for(;r;)e?de(r).is(e)&&t.push(r):t.push(r),r=r.parentNode}return de(t)},closest:function(e){let t=this;return void 0===e?de([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(e){let t=[];for(let n=0;n<this.length;n+=1){let r=this[n].querySelectorAll(e);for(let e=0;e<r.length;e+=1)t.push(r[e])}return de(t)},children:function(e){let t=[];for(let n=0;n<this.length;n+=1){let r=this[n].children;for(let n=0;n<r.length;n+=1)(!e||de(r[n]).is(e))&&t.push(r[n])}return de(t)},filter:function(e){return de(u7(this,e))},remove:function(){for(let e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}};function di(e,t=0){return setTimeout(e,t)}function dl(){return Date.now()}function da(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function ds(...e){let t=Object(e[0]),n=["__proto__","constructor","prototype"];for(let r=1;r<e.length;r+=1){let i=e[r];if(null!=i&&("undefined"!=typeof window&&void 0!==window.HTMLElement?!(i instanceof HTMLElement):!i||1!==i.nodeType&&11!==i.nodeType)){let e=Object.keys(Object(i)).filter(e=>0>n.indexOf(e));for(let n=0,r=e.length;n<r;n+=1){let r=e[n],l=Object.getOwnPropertyDescriptor(i,r);void 0!==l&&l.enumerable&&(da(t[r])&&da(i[r])?i[r].__swiper__?t[r]=i[r]:ds(t[r],i[r]):!da(t[r])&&da(i[r])?(t[r]={},i[r].__swiper__?t[r]=i[r]:ds(t[r],i[r])):t[r]=i[r])}}}return t}function dc(e,t,n){e.style.setProperty(t,n)}function du({swiper:e,targetPosition:t,side:n}){let r,i=u6(),l=-e.translate,a=null,o=e.params.speed;e.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(e.cssModeFrameID);let s=t>l?"next":"prev",c=(e,t)=>"next"===s&&e>=t||"prev"===s&&e<=t,u=()=>{r=new Date().getTime(),null===a&&(a=r);
24let s=l+(.5-Math.cos(Math.max(Math.min((r-a)/o,1),0)*Math.PI)/2)*(t-l);if(c(s,t)&&(s=t),e.wrapperEl.scrollTo({[n]:s}),c(s,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:s})}),i.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=i.requestAnimationFrame(u)};u()}function dd(){return r||(r=function(){let e=u6(),t=u3();return{smoothScroll:t.documentElement&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),passiveListener:function(){let t=!1;try{let n=Object.defineProperty({},"passive",{get(){t=!0}});e.addEventListener("testPassiveListener",null,n)}catch(e){}return t}(),gestures:"ongesturestart"in e}}()),r}function dh({swiper:e,runCallbacks:t,direction:n,step:r}){let{activeIndex:i,previousIndex:l}=e,a=n;if(a||(a=i>l?"next":i<l?"prev":"reset"),e.emit(`transition${r}`),t&&i!==l){if("reset"===a)return void e.emit(`slideResetTransition${r}`);e.emit(`slideChangeTransition${r}`),"next"===a?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`)}}function dp(e){let t=u3(),n=u6(),r=this.touchEventsData,{params:i,touches:l,enabled:a}=this;if(!a||this.animating&&i.preventInteractionOnTransition)return;!this.animating&&i.cssMode&&i.loop&&this.loopFix();let o=e;o.originalEvent&&(o=o.originalEvent);let s=de(o.target);if("wrapper"===i.touchEventsTarget&&!s.closest(this.wrapperEl).length||(r.isTouchEvent="touchstart"===o.type,!r.isTouchEvent&&"which"in o&&3===o.which||!r.isTouchEvent&&"button"in o&&o.button>0||r.isTouched&&r.isMoved))return;let c=!!i.noSwipingClass&&""!==i.noSwipingClass,u=e.composedPath?e.composedPath():e.path;c&&o.target&&o.target.shadowRoot&&u&&(s=de(u[0]));let d=i.noSwipingSelector?i.noSwipingSelector:`.${i.noSwipingClass}`,h=!!(o.target&&o.target.shadowRoot);if(i.noSwiping&&(h?function(e,t=this){return function t(n){if(!n||n===u3()||n===u6())return null;n.assignedSlot&&(n=n.assignedSlot);let r=n.closest(e);return r||n.getRootNode?r||t(n.getRootNode().host):null}(t)}(d,s[0]):s.closest(d)[0])){this.allowClick=!0;return}if(i.swipeHandler&&!s.closest(i.swipeHandler)[0])return;l.currentX="touchstart"===o.type?o.targetTouches[0].pageX:o.pageX,l.currentY="touchstart"===o.type?o.targetTouches[0].pageY:o.pageY;let p=l.currentX,f=l.currentY,m=i.edgeSwipeDetection||i.iOSEdgeSwipeDetection,g=i.edgeSwipeThreshold||i.iOSEdgeSwipeThreshold;if(m&&(p<=g||p>=n.innerWidth-g))if("prevent"!==m)return;else e.preventDefault();if(Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),l.startX=p,l.startY=f,r.touchStartTime=dl(),this.allowClick=!0,this.updateSize(),this.swipeDirection=void 0,i.threshold>0&&(r.allowThresholdMove=!1),"touchstart"!==o.type){let e=!0;s.is(r.focusableElements)&&(e=!1,"SELECT"===s[0].nodeName&&(r.isTouched=!1)),t.activeElement&&de(t.activeElement).is(r.focusableElements)&&t.activeElement!==s[0]&&t.activeElement.blur();let n=e&&this.allowTouchMove&&i.touchStartPreventDefault;(i.touchStartForcePreventDefault||n)&&!s[0].isContentEditable&&o.preventDefault()}this.params.freeMode&&this.params.freeMode.enabled&&this.freeMode&&this.animating&&!i.cssMode&&this.freeMode.onTouchStart(),this.emit("touchStart",o)}function df(e){let t=u3(),n=this.touchEventsData,{params:r,touches:i,rtlTranslate:l,enabled:a}=this;if(!a)return;let o=e;if(o.originalEvent&&(o=o.originalEvent),!n.isTouched){n.startMoving&&n.isScrolling&&this.emit("touchMoveOpposite",o);return}if(n.isTouchEvent&&"touchmove"!==o.type)return;let s="touchmove"===o.type&&o.targetTouches&&(o.targetTouches[0]||o.changedTouches[0]),c="touchmove"===o.type?s.pageX:o.pageX,u="touchmove"===o.type?s.pageY:o.pageY;if(o.preventedByNestedSwiper){i.startX=c,i.startY=u;return}if(!this.allowTouchMove){de(o.target).is(n.focusableElements)||(this.allowClick=!1),n.isTouched&&(Object.assign(i,{startX:c,startY:u,currentX:c,currentY:u}),n.touchStartTime=dl());return}if(n.isTouchEvent&&r.touchReleaseOnEdges&&!r.loop){if(this.isVertical()){if(u<i.startY&&this.translate<=this.maxTranslate()||u>i.startY&&this.translate>=this.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else if(c<i.startX&&this.translate<=this.maxTranslate()||c>i.startX&&this.translate>=this.minTranslate())return}if(n.isTouchEvent&&t.activeElement&&o.target===t.activeElement&&de(o.target).is(n.focusableElements)){n.isMoved=!0,this.allowClick=!1;return}
24if(n.allowTouchCallbacks&&this.emit("touchMove",o),o.targetTouches&&o.targetTouches.length>1)return;i.currentX=c,i.currentY=u;let d=i.currentX-i.startX,h=i.currentY-i.startY;if(this.params.threshold&&Math.sqrt(d**2+h**2)<this.params.threshold)return;if(void 0===n.isScrolling){let e;this.isHorizontal()&&i.currentY===i.startY||this.isVertical()&&i.currentX===i.startX?n.isScrolling=!1:d*d+h*h>=25&&(e=180*Math.atan2(Math.abs(h),Math.abs(d))/Math.PI,n.isScrolling=this.isHorizontal()?e>r.touchAngle:90-e>r.touchAngle)}if(n.isScrolling&&this.emit("touchMoveOpposite",o),void 0===n.startMoving&&(i.currentX!==i.startX||i.currentY!==i.startY)&&(n.startMoving=!0),n.isScrolling){n.isTouched=!1;return}if(!n.startMoving)return;this.allowClick=!1,!r.cssMode&&o.cancelable&&o.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&o.stopPropagation(),n.isMoved||(r.loop&&!r.cssMode&&this.loopFix(),n.startTranslate=this.getTranslate(),this.setTransition(0),this.animating&&this.$wrapperEl.trigger("webkitTransitionEnd transitionend"),n.allowMomentumBounce=!1,r.grabCursor&&(!0===this.allowSlideNext||!0===this.allowSlidePrev)&&this.setGrabCursor(!0),this.emit("sliderFirstMove",o)),this.emit("sliderMove",o),n.isMoved=!0;let p=this.isHorizontal()?d:h;i.diff=p,p*=r.touchRatio,l&&(p=-p),this.swipeDirection=p>0?"prev":"next",n.currentTranslate=p+n.startTranslate;let f=!0,m=r.resistanceRatio;if(r.touchReleaseOnEdges&&(m=0),p>0&&n.currentTranslate>this.minTranslate()?(f=!1,r.resistance&&(n.currentTranslate=this.minTranslate()-1+(-this.minTranslate()+n.startTranslate+p)**m)):p<0&&n.currentTranslate<this.maxTranslate()&&(f=!1,r.resistance&&(n.currentTranslate=this.maxTranslate()+1-(this.maxTranslate()-n.startTranslate-p)**m)),f&&(o.preventedByNestedSwiper=!0),!this.allowSlideNext&&"next"===this.swipeDirection&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!this.allowSlidePrev&&"prev"===this.swipeDirection&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),this.allowSlidePrev||this.allowSlideNext||(n.currentTranslate=n.startTranslate),r.threshold>0)if(Math.abs(p)>r.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,i.startX=i.currentX,i.startY=i.currentY,n.currentTranslate=n.startTranslate,i.diff=this.isHorizontal()?i.currentX-i.startX:i.currentY-i.startY;return}}else{n.currentTranslate=n.startTranslate;return}r.followFinger&&!r.cssMode&&((r.freeMode&&r.freeMode.enabled&&this.freeMode||r.watchSlidesProgress)&&(this.updateActiveIndex(),this.updateSlidesClasses()),this.params.freeMode&&r.freeMode.enabled&&this.freeMode&&this.freeMode.onTouchMove(),this.updateProgress(n.currentTranslate),this.setTranslate(n.currentTranslate))}function dm(e){let t,n=this,r=n.touchEventsData,{params:i,touches:l,rtlTranslate:a,slidesGrid:o,enabled:s}=n;if(!s)return;let c=e;if(c.originalEvent&&(c=c.originalEvent),r.allowTouchCallbacks&&n.emit("touchEnd",c),r.allowTouchCallbacks=!1,!r.isTouched){r.isMoved&&i.grabCursor&&n.setGrabCursor(!1),r.isMoved=!1,r.startMoving=!1;return}i.grabCursor&&r.isMoved&&r.isTouched&&(!0===n.allowSlideNext||!0===n.allowSlidePrev)&&n.setGrabCursor(!1);let u=dl(),d=u-r.touchStartTime;if(n.allowClick){let e=c.path||c.composedPath&&c.composedPath();n.updateClickedSlide(e&&e[0]||c.target),n.emit("tap click",c),d<300&&u-r.lastClickTime<300&&n.emit("doubleTap doubleClick",c)}if(r.lastClickTime=dl(),di(()=>{n.destroyed||(n.allowClick=!0)}),!r.isTouched||!r.isMoved||!n.swipeDirection||0===l.diff||r.currentTranslate===r.startTranslate){r.isTouched=!1,r.isMoved=!1,r.startMoving=!1;return}if(r.isTouched=!1,r.isMoved=!1,r.startMoving=!1,t=i.followFinger?a?n.translate:-n.translate:-r.currentTranslate,i.cssMode)return;if(n.params.freeMode&&i.freeMode.enabled)return void n.freeMode.onTouchEnd({currentPos:t});let h=0,p=n.slidesSizesGrid[0];for(let e=0;e<o.length;e+=e<i.slidesPerGroupSkip?1:i.slidesPerGroup){let n=e<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;void 0!==o[e+n]?t>=o[e]&&t<o[e+n]&&(h=e,p=o[e+n]-o[e]):t>=o[e]&&(h=e,p=o[o.length-1]-o[o.length-2])}let f=null,m=null;i.rewind&&(n.isBeginning?m=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1:n.isEnd&&(f=0));let g=(t-o[h])/p,v=h<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(d>i.longSwipesMs){if(!i.longSwipes)return void n.slideTo(n.activeIndex);"next"===n.swipeDirection&&(g>=i.longSwipesRatio?n.slideTo(i.rewind&&n.isEnd?f:h+v):n.slideTo(h)),"prev"===n.swipeDirection&&(g>1-i.longSwipesRatio?n.slideTo(h+v):null!==m&&g<0&&Math.abs(g)>i.longSwipesRatio?n.slideTo(m):n.slideTo(h))}else{if(!i.shortSwipes)return void n.slideTo(n.activeIndex);n.navigation&&(c.target===n.navigation.nextEl||c.target===n.navigation.prevEl)?c.target===n.navigation.nextEl?n.slideTo(h+v):n.slideTo(h):("next"===n.swipeDirection&&n.slideTo(null!==f?f:h+v),"prev"===n.swipeDirection&&n.slideTo(null!==m?m:h))}}function dg(){let{params:e,el:t}=this;if(t&&0===t.offsetWidth)return;e.breakpoints&&this.setBreakpoint();let{allowSlideNext:n,allowSlidePrev:r,snapGrid:i}=this;this.allowSlideNext=!0,this.allowSlidePrev=!0,this.updateSize(),this.updateSlides(),this.updateSlidesClasses(),("auto"===e.slidesPerView||e.slidesPerView>
241)&&this.isEnd&&!this.isBeginning&&!this.params.centeredSlides?this.slideTo(this.slides.length-1,0,!1,!0):this.slideTo(this.activeIndex,0,!1,!0),this.autoplay&&this.autoplay.running&&this.autoplay.paused&&this.autoplay.run(),this.allowSlidePrev=r,this.allowSlideNext=n,this.params.watchOverflow&&i!==this.snapGrid&&this.checkOverflow()}function dv(e){this.enabled&&!this.allowClick&&(this.params.preventClicks&&e.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function dy(){let e,{wrapperEl:t,rtlTranslate:n,enabled:r}=this;if(!r)return;this.previousTranslate=this.translate,this.isHorizontal()?this.translate=-t.scrollLeft:this.translate=-t.scrollTop,0===this.translate&&(this.translate=0),this.updateActiveIndex(),this.updateSlidesClasses();let i=this.maxTranslate()-this.minTranslate();(0===i?0:(this.translate-this.minTranslate())/i)!==this.progress&&this.updateProgress(n?-this.translate:this.translate),this.emit("setTranslate",this.translate,!1)}Object.keys(dr).forEach(e=>{Object.defineProperty(de.fn,e,{value:dr[e],writable:!0})});let dx=!1;function db(){}let dw=(e,t)=>{let n=u3(),{params:r,touchEvents:i,el:l,wrapperEl:a,device:o,support:s}=e,c=!!r.nested,u="on"===t?"addEventListener":"removeEventListener";if(s.touch){let t="touchstart"===i.start&&!!s.passiveListener&&!!r.passiveListeners&&{passive:!0,capture:!1};l[u](i.start,e.onTouchStart,t),l[u](i.move,e.onTouchMove,s.passiveListener?{passive:!1,capture:c}:c),l[u](i.end,e.onTouchEnd,t),i.cancel&&l[u](i.cancel,e.onTouchEnd,t)}else l[u](i.start,e.onTouchStart,!1),n[u](i.move,e.onTouchMove,c),n[u](i.end,e.onTouchEnd,!1);(r.preventClicks||r.preventClicksPropagation)&&l[u]("click",e.onClick,!0),r.cssMode&&a[u]("scroll",e.onScroll),r.updateOnWindowResize?e[t](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",dg,!0):e[t]("observerUpdate",dg,!0)},dj=(e,t)=>e.grid&&t.grid&&t.grid.rows>1,dS={init:!0,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopedSlidesLimit:!0,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1},dk={eventsEmitter:{on(e,t,n){let r=this;if(!r.eventsListeners||r.destroyed||"function"!=typeof t)return r;let i=n?"unshift":"push";
24return e.split(" ").forEach(e=>{r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][i](t)}),r},once(e,t,n){let r=this;if(!r.eventsListeners||r.destroyed||"function"!=typeof t)return r;function i(...n){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy,t.apply(r,n)}return i.__emitterProxy=t,r.on(e,i,n)},onAny(e,t){return!this.eventsListeners||this.destroyed||"function"!=typeof e||0>this.eventsAnyListeners.indexOf(e)&&this.eventsAnyListeners[t?"unshift":"push"](e),this},offAny(e){if(!this.eventsListeners||this.destroyed||!this.eventsAnyListeners)return this;let t=this.eventsAnyListeners.indexOf(e);return t>=0&&this.eventsAnyListeners.splice(t,1),this},off(e,t){let n=this;return n.eventsListeners&&!n.destroyed&&n.eventsListeners&&e.split(" ").forEach(e=>{void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach((r,i)=>{(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&n.eventsListeners[e].splice(i,1)})}),n},emit(...e){let t,n,r,i=this;return i.eventsListeners&&!i.destroyed&&i.eventsListeners&&("string"==typeof e[0]||Array.isArray(e[0])?(t=e[0],n=e.slice(1,e.length),r=i):(t=e[0].events,n=e[0].data,r=e[0].context||i),n.unshift(r),(Array.isArray(t)?t:t.split(" ")).forEach(e=>{i.eventsAnyListeners&&i.eventsAnyListeners.length&&i.eventsAnyListeners.forEach(t=>{t.apply(r,[e,...n])}),i.eventsListeners&&i.eventsListeners[e]&&i.eventsListeners[e].forEach(e=>{e.apply(r,n)})})),i}},update:{updateSize:function(){let e,t,n=this.$el;e=void 0!==this.params.width&&null!==this.params.width?this.params.width:n[0].clientWidth,t=void 0!==this.params.height&&null!==this.params.height?this.params.height:n[0].clientHeight,0===e&&this.isHorizontal()||0===t&&this.isVertical()||(e=e-parseInt(n.css("padding-left")||0,10)-parseInt(n.css("padding-right")||0,10),t=t-parseInt(n.css("padding-top")||0,10)-parseInt(n.css("padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(t)&&(t=0),Object.assign(this,{width:e,height:t,size:this.isHorizontal()?e:t}))},updateSlides:function(){let e,t=this;function n(e){return t.isHorizontal()?e:({width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"})[e]}function r(e,t){return parseFloat(e.getPropertyValue(n(t))||0)}let i=t.params,{$wrapperEl:l,size:a,rtlTranslate:o,wrongRTL:s}=t,c=t.virtual&&i.virtual.enabled,u=c?t.virtual.slides.length:t.slides.length,d=l.children(`.${t.params.slideClass}`),h=c?t.virtual.slides.length:d.length,p=[],f=[],m=[],g=i.slidesOffsetBefore;"function"==typeof g&&(g=i.slidesOffsetBefore.call(t));let v=i.slidesOffsetAfter;"function"==typeof v&&(v=i.slidesOffsetAfter.call(t));let y=t.snapGrid.length,x=t.slidesGrid.length,b=i.spaceBetween,w=-g,j=0,S=0;if(void 0===a)return;"string"==typeof b&&b.indexOf("%")>=0&&(b=parseFloat(b.replace("%",""))/100*a),t.virtualSize=-b,o?d.css({marginLeft:"",marginBottom:"",marginTop:""}):d.css({marginRight:"",marginBottom:"",marginTop:""}),i.centeredSlides&&i.cssMode&&(dc(t.wrapperEl,"--swiper-centered-offset-before",""),dc(t.wrapperEl,"--swiper-centered-offset-after",""));let k=i.grid&&i.grid.rows>1&&t.grid;k&&t.grid.initSlides(h);let _="auto"===i.slidesPerView&&i.breakpoints&&Object.keys(i.breakpoints).filter(e=>void 0!==i.breakpoints[e].slidesPerView).length>0;for(let l=0;l<h;l+=1){e=0;let o=d.eq(l);if(k&&t.grid.updateSlide(l,o,h,n),"none"!==o.css("display")){if("auto"===i.slidesPerView){_&&(d[l].style[n("width")]="");let a=getComputedStyle(o[0]),s=o[0].style.transform,c=o[0].style.webkitTransform;if(s&&(o[0].style.transform="none"),c&&(o[0].style.webkitTransform="none"),i.roundLengths)e=t.isHorizontal()?o.outerWidth(!0):o.outerHeight(!0);else{let t=r(a,"width"),n=r(a,"padding-left"),i=r(a,"padding-right"),l=r(a,"margin-left"),s=r(a,"margin-right"),c=a.getPropertyValue("box-sizing");if(c&&"border-box"===c)e=t+l+s;else{let{clientWidth:r,offsetWidth:a}=o[0];e=t+n+i+l+s+(a-r)}}s&&(o[0].style.transform=s),c&&(o[0].style.webkitTransform=c),i.roundLengths&&(e=Math.floor(e))}else e=(a-(i.slidesPerView-1)*b)/i.slidesPerView,i.roundLengths&&(e=Math.floor(e)),d[l]&&(d[l].style[n("width")]=`${e}px`);d[l]&&(d[l].swiperSlideSize=e),m.push(e),i.centeredSlides?(w=w+e/2+j/2+b,0===j&&0!==l&&(w=w-a/2-b),0===l&&(w=w-a/2-b),.001>Math.abs(w)&&(w=0),i.roundLengths&&(w=Math.floor(w)),S%i.slidesPerGroup==0&&p.push(w),f.push(w)):(i.roundLengths&&(w=Math.floor(w)),(S-Math.min(t.params.slidesPerGroupSkip,S))%t.params.slidesPerGroup==0&&p.push(w),f.push(w),w=w+e+b),t.virtualSize+=e+b,j=e,S+=1}}if(t.virtualSize=Math.max(t.virtualSize,a)+v,o&&s&&("slide"===i.effect||"coverflow"===i.effect)&&l.css({width:`${t.virtualSize+i.spaceBetween}px`}),i.setWrapperSize&&l.css({[n("width")]:`${t.virtualSize+i.spaceBetween}px`}),k&&t.grid.updateWrapperSize(e,p,n),!i.centeredSlides){let e=[];for(let n=0;n<p.length;n+=1){let r=p[n];i.roundLengths&&(r=Math.floor(r)),p[n]<=t.virtualSize-a&&e.push(r)}p=e,Math.floor(t.virtualSize-a)-Math.floor(p[p.length-1])>1&&p.push(t.virtualSize-a)}if(0===p.length&&(p=[0]),0!==i.spaceBetween){let e=t.isHorizontal()&&o?"marginLeft":n("marginRight");d.filter((e,t)=>
24!i.cssMode||t!==d.length-1).css({[e]:`${b}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let e=0;m.forEach(t=>{e+=t+(i.spaceBetween?i.spaceBetween:0)});let t=(e-=i.spaceBetween)-a;p=p.map(e=>e<0?-g:e>t?t+v:e)}if(i.centerInsufficientSlides){let e=0;if(m.forEach(t=>{e+=t+(i.spaceBetween?i.spaceBetween:0)}),(e-=i.spaceBetween)<a){let t=(a-e)/2;p.forEach((e,n)=>{p[n]=e-t}),f.forEach((e,n)=>{f[n]=e+t})}}if(Object.assign(t,{slides:d,snapGrid:p,slidesGrid:f,slidesSizesGrid:m}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){dc(t.wrapperEl,"--swiper-centered-offset-before",`${-p[0]}px`),dc(t.wrapperEl,"--swiper-centered-offset-after",`${t.size/2-m[m.length-1]/2}px`);let e=-t.snapGrid[0],n=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(t=>t+e),t.slidesGrid=t.slidesGrid.map(e=>e+n)}if(h!==u&&t.emit("slidesLengthChange"),p.length!==y&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),f.length!==x&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),!c&&!i.cssMode&&("slide"===i.effect||"fade"===i.effect)){let e=`${i.containerModifierClass}backface-hidden`,n=t.$el.hasClass(e);h<=i.maxBackfaceHiddenSlides?n||t.$el.addClass(e):n&&t.$el.removeClass(e)}},updateAutoHeight:function(e){let t,n=this,r=[],i=n.virtual&&n.params.virtual.enabled,l=0;"number"==typeof e?n.setTransition(e):!0===e&&n.setTransition(n.params.speed);let a=e=>i?n.slides.filter(t=>parseInt(t.getAttribute("data-swiper-slide-index"),10)===e)[0]:n.slides.eq(e)[0];if("auto"!==n.params.slidesPerView&&n.params.slidesPerView>1)if(n.params.centeredSlides)(n.visibleSlides||de([])).each(e=>{r.push(e)});else for(t=0;t<Math.ceil(n.params.slidesPerView);t+=1){let e=n.activeIndex+t;if(e>n.slides.length&&!i)break;r.push(a(e))}else r.push(a(n.activeIndex));for(t=0;t<r.length;t+=1)if(void 0!==r[t]){let e=r[t].offsetHeight;l=e>l?e:l}(l||0===l)&&n.$wrapperEl.css("height",`${l}px`)},updateSlidesOffset:function(){let e=this.slides;for(let t=0;t<e.length;t+=1)e[t].swiperSlideOffset=this.isHorizontal()?e[t].offsetLeft:e[t].offsetTop},updateSlidesProgress:function(e=this&&this.translate||0){let t=this.params,{slides:n,rtlTranslate:r,snapGrid:i}=this;if(0===n.length)return;void 0===n[0].swiperSlideOffset&&this.updateSlidesOffset();let l=-e;r&&(l=e),n.removeClass(t.slideVisibleClass),this.visibleSlidesIndexes=[],this.visibleSlides=[];for(let e=0;e<n.length;e+=1){let a=n[e],o=a.swiperSlideOffset;t.cssMode&&t.centeredSlides&&(o-=n[0].swiperSlideOffset);let s=(l+(t.centeredSlides?this.minTranslate():0)-o)/(a.swiperSlideSize+t.spaceBetween),c=(l-i[0]+(t.centeredSlides?this.minTranslate():0)-o)/(a.swiperSlideSize+t.spaceBetween),u=-(l-o),d=u+this.slidesSizesGrid[e];(u>=0&&u<this.size-1||d>1&&d<=this.size||u<=0&&d>=this.size)&&(this.visibleSlides.push(a),this.visibleSlidesIndexes.push(e),n.eq(e).addClass(t.slideVisibleClass)),a.progress=r?-s:s,a.originalProgress=r?-c:c}this.visibleSlides=de(this.visibleSlides)},updateProgress:function(e){if(void 0===e){let t=this.rtlTranslate?-1:1;e=this&&this.translate&&this.translate*t||0}let t=this.params,n=this.maxTranslate()-this.minTranslate(),{progress:r,isBeginning:i,isEnd:l}=this,a=i,o=l;0===n?(r=0,i=!0,l=!0):(i=(r=(e-this.minTranslate())/n)<=0,l=r>=1),Object.assign(this,{progress:r,isBeginning:i,isEnd:l}),(t.watchSlidesProgress||t.centeredSlides&&t.autoHeight)&&this.updateSlidesProgress(e),i&&
24!a&&this.emit("reachBeginning toEdge"),l&&!o&&this.emit("reachEnd toEdge"),(a&&!i||o&&!l)&&this.emit("fromEdge"),this.emit("progress",r)},updateSlidesClasses:function(){let e,{slides:t,params:n,$wrapperEl:r,activeIndex:i,realIndex:l}=this,a=this.virtual&&n.virtual.enabled;t.removeClass(`${n.slideActiveClass} ${n.slideNextClass} ${n.slidePrevClass} ${n.slideDuplicateActiveClass} ${n.slideDuplicateNextClass} ${n.slideDuplicatePrevClass}`),(e=a?this.$wrapperEl.find(`.${n.slideClass}[data-swiper-slide-index="${i}"]`):t.eq(i)).addClass(n.slideActiveClass),n.loop&&(e.hasClass(n.slideDuplicateClass)?r.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${l}"]`).addClass(n.slideDuplicateActiveClass):r.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${l}"]`).addClass(n.slideDuplicateActiveClass));let o=e.nextAll(`.${n.slideClass}`).eq(0).addClass(n.slideNextClass);n.loop&&0===o.length&&(o=t.eq(0)).addClass(n.slideNextClass);let s=e.prevAll(`.${n.slideClass}`).eq(0).addClass(n.slidePrevClass);n.loop&&0===s.length&&(s=t.eq(-1)).addClass(n.slidePrevClass),n.loop&&(o.hasClass(n.slideDuplicateClass)?r.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${o.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicateNextClass):r.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${o.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicateNextClass),s.hasClass(n.slideDuplicateClass)?r.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${s.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicatePrevClass):r.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${s.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicatePrevClass)),this.emitSlidesClasses()},updateActiveIndex:function(e){let t,n=this.rtlTranslate?this.translate:-this.translate,{slidesGrid:r,snapGrid:i,params:l,activeIndex:a,realIndex:o,snapIndex:s}=this,c=e;if(void 0===c){for(let e=0;e<r.length;e+=1)void 0!==r[e+1]?n>=r[e]&&n<r[e+1]-(r[e+1]-r[e])/2?c=e:n>=r[e]&&n<r[e+1]&&(c=e+1):n>=r[e]&&(c=e);l.normalizeSlideIndex&&(c<0||void 0===c)&&(c=0)}if(i.indexOf(n)>=0)t=i.indexOf(n);else{let e=Math.min(l.slidesPerGroupSkip,c);t=e+Math.floor((c-e)/l.slidesPerGroup)}if(t>=i.length&&(t=i.length-1),c===a){t!==s&&(this.snapIndex=t,this.emit("snapIndexChange"));return}let u=parseInt(this.slides.eq(c).attr("data-swiper-slide-index")||c,10);Object.assign(this,{snapIndex:t,realIndex:u,previousIndex:a,activeIndex:c}),this.emit("activeIndexChange"),this.emit("snapIndexChange"),o!==u&&this.emit("realIndexChange"),(this.initialized||this.params.runCallbacksOnInit)&&this.emit("slideChange")},updateClickedSlide:function(e){let t,n=this.params,r=de(e).closest(`.${n.slideClass}`)[0],i=!1;if(r){for(let e=0;e<this.slides.length;e+=1)if(this.slides[e]===r){i=!0,t=e;break}}if(r&&i)this.clickedSlide=r,this.virtual&&this.params.virtual.enabled?this.clickedIndex=parseInt(de(r).attr("data-swiper-slide-index"),10):this.clickedIndex=t;else{this.clickedSlide=void 0,this.clickedIndex=void 0;return}n.slideToClickedSlide&&void 0!==this.clickedIndex&&this.clickedIndex!==this.activeIndex&&this.slideToClickedSlide()}},translate:{getTranslate:function(e=this.isHorizontal()?"x":"y"){let{params:t,rtlTranslate:n,translate:r,$wrapperEl:i}=this;if(t.virtualTranslate)return n?-r:r;if(t.cssMode)return r;let l=function(e,t="x"){let n,r,i,l=u6(),a=function(e){let t,n=u6();return n.getComputedStyle&&(t=n.getComputedStyle(e,null)),!t&&e.currentStyle&&(t=e.currentStyle),t||(t=e.style),t}(e,null);return l.WebKitCSSMatrix?((r=a.transform||a.webkitTransform).split(",").length>6&&(r=r.split(", ").map(e=>e.replace(",",".")).join(", ")),i=new l.WebKitCSSMatrix("none"===r?"":r)):n=(i=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===t&&(r=l.WebKitCSSMatrix?i.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===t&&(r=l.WebKitCSSMatrix?i.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),r||0}(i[0],e);return n&&(l=-l),l||0},setTranslate:function(e,t){let n,{rtlTranslate:r,params:i,$wrapperEl:l,wrapperEl:a,progress:o}=this,s=0,c=0;this.isHorizontal()?s=r?-e:e:c=e,i.roundLengths&&(s=Math.floor(s),c=Math.floor(c)),i.cssMode?a[this.isHorizontal()?"scrollLeft":"scrollTop"]=this.isHorizontal()?-s:-c:i.virtualTranslate||l.transform(`translate3d(${s}px, ${c}px, 0px)`),this.previousTranslate=this.translate,this.translate=this.isHorizontal()?s:c;let u=this.maxTranslate()-this.minTranslate();(0===u?0:(e-this.minTranslate())/u)!==o&&this.updateProgress(e),this.emit
24("setTranslate",this.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e=0,t=this.params.speed,n=!0,r=!0,i){let l,a=this,{params:o,wrapperEl:s}=a;if(a.animating&&o.preventInteractionOnTransition)return!1;let c=a.minTranslate(),u=a.maxTranslate();if(l=r&&e>c?c:r&&e<u?u:e,a.updateProgress(l),o.cssMode){let e=a.isHorizontal();if(0===t)s[e?"scrollLeft":"scrollTop"]=-l;else{if(!a.support.smoothScroll)return du({swiper:a,targetPosition:-l,side:e?"left":"top"}),!0;s.scrollTo({[e?"left":"top"]:-l,behavior:"smooth"})}return!0}return 0===t?(a.setTransition(0),a.setTranslate(l),n&&(a.emit("beforeTransitionStart",t,i),a.emit("transitionEnd"))):(a.setTransition(t),a.setTranslate(l),n&&(a.emit("beforeTransitionStart",t,i),a.emit("transitionStart")),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||(a.onTranslateToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.$wrapperEl[0].removeEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.$wrapperEl[0].removeEventListener("webkitTransitionEnd",a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,n&&a.emit("transitionEnd"))}),a.$wrapperEl[0].addEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.$wrapperEl[0].addEventListener("webkitTransitionEnd",a.onTranslateToWrapperTransitionEnd))),!0}},transition:{setTransition:function(e,t){this.params.cssMode||this.$wrapperEl.transition(e),this.emit("setTransition",e,t)},transitionStart:function(e=!0,t){let{params:n}=this;n.cssMode||(n.autoHeight&&this.updateAutoHeight(),dh({swiper:this,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e=!0,t){let{params:n}=this;this.animating=!1,n.cssMode||(this.setTransition(0),dh({swiper:this,runCallbacks:e,direction:t,step:"End"}))}},slide:{slideTo:function(e=0,t=this.params.speed,n=!0,r,i){let l;if("number"!=typeof e&&"string"!=typeof e)throw Error(`The 'index' argument cannot have type other than 'number' or 'string'. [${typeof e}] given.`);if("string"==typeof e){let t=parseInt(e,10);if(!isFinite(t))throw Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`);e=t}let a=this,o=e;o<0&&(o=0);let{params:s,snapGrid:c,slidesGrid:u,previousIndex:d,activeIndex:h,rtlTranslate:p,wrapperEl:f,enabled:m}=a;if(a.animating&&s.preventInteractionOnTransition||!m&&!r&&!i)return!1;let g=Math.min(a.params.slidesPerGroupSkip,o),v=g+Math.floor((o-g)/a.params.slidesPerGroup);v>=c.length&&(v=c.length-1);let y=-c[v];if(s.normalizeSlideIndex)for(let e=0;e<u.length;e+=1){let t=-Math.floor(100*y),n=Math.floor(100*u[e]),r=Math.floor(100*u[e+1]);void 0!==u[e+1]?t>=n&&t<r-(r-n)/2?o=e:t>=n&&t<r&&(o=e+1):t>=n&&(o=e)}if(a.initialized&&o!==h&&(!a.allowSlideNext&&y<a.translate&&y<a.minTranslate()||!a.allowSlidePrev&&y>a.translate&&y>a.maxTranslate()&&(h||0)!==o))return!1;if(o!==(d||0)&&n&&a.emit("beforeSlideChangeStart"),a.updateProgress(y),l=o>h?"next":o<h?"prev":"reset",p&&-y===a.translate||!p&&y===a.translate)return a.updateActiveIndex(o),s.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),"slide"!==s.effect&&a.setTranslate(y),"reset"!==l&&(a.transitionStart(n,l),a.transitionEnd(n,l)),!1;if(s.cssMode){let e=a.isHorizontal(),n=p?y:-y;if(0===t){let t=a.virtual&&a.params.virtual.enabled;t&&(a.wrapperEl.style.scrollSnapType="none",a._immediateVirtual=!0),f[e?"scrollLeft":"scrollTop"]=n,t&&requestAnimationFrame(()=>{a.wrapperEl.style.scrollSnapType="",a._swiperImmediateVirtual=!1})}else{if(!a.support.smoothScroll)return du({swiper:a,targetPosition:n,side:e?"left":"top"}),!0;f.scrollTo({[e?"left":"top"]:n,behavior:"smooth"})}return!0}return a.setTransition(t),a.setTranslate(y),a.updateActiveIndex(o),a.updateSlidesClasses(),a.emit("beforeTransitionStart",t,r),a.transitionStart(n,l),0===t?a.transitionEnd(n,l):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||(a.onSlideToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.$wrapperEl[0].removeEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.$wrapperEl[0].removeEventListener("webkitTransitionEnd",a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(n,l))}),a.$wrapperEl[0].addEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.$wrapperEl[0].addEventListener("webkitTransitionEnd",a.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e=0,t=this.params.speed,n=!0,r){if("string"==typeof e){let t=parseInt(e,10);if(!isFinite(t))throw Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`);e=t}let i=e;return this.params.loop&&(i+=this.loopedSlides),this.slideTo(i,t,n,r)},slideNext:function(e=this.params.speed,t=!0,n){let{animating:r,enabled:i,params:l}=this;if(!i)return this;let a=l.slidesPerGroup;"auto"===l.slidesPerView&&1===l.slidesPerGroup&&l.slidesPerGroupAuto&&(a=Math.max(this.slidesPerViewDynamic("current",!0),1));let o=this.activeIndex<l.slidesPerGroupSkip?1:a;if(l.loop){if(r&&l.loopPreventsSlide)return!1;this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft}return l.rewind&&this.isEnd?this.slideTo(0,e,t,n):this.slideTo(this.activeIndex+o,e,t,n)},slidePrev:function(e=this.params.speed,t=!0,n){let{params:r,animating:i,snapGrid:l,slidesGrid:a,rtlTranslate:o,enabled:s}=this;if(!s)return this;if(r.loop){if(i&&r.loopPreventsSlide)return!1;this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft}function c(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}let u=c(o?this.translate:-this.translate),d=l.map(e=>c(e)),h=l[d.indexOf(u)-1];if(void 0===h&&r.cssMode){let e;l.forEach((t,n)=>{u>=t&&(e=n)}),void 0!==e&&(h=l[e>0?e-1:e])}let p=0;if(void 0!==h&&((p=a.indexOf(h))<0&&(p=this.activeIndex-1),"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(p=Math.max(p=p-this.slidesPerViewDynamic("previous",!0)+1,0))),r.rewind&&this.isBeg
24inning){let r=this.params.virtual&&this.params.virtual.enabled&&this.virtual?this.virtual.slides.length-1:this.slides.length-1;return this.slideTo(r,e,t,n)}return this.slideTo(p,e,t,n)},slideReset:function(e=this.params.speed,t=!0,n){return this.slideTo(this.activeIndex,e,t,n)},slideToClosest:function(e=this.params.speed,t=!0,n,r=.5){let i=this.activeIndex,l=Math.min(this.params.slidesPerGroupSkip,i),a=l+Math.floor((i-l)/this.params.slidesPerGroup),o=this.rtlTranslate?this.translate:-this.translate;if(o>=this.snapGrid[a]){let e=this.snapGrid[a];o-e>(this.snapGrid[a+1]-e)*r&&(i+=this.params.slidesPerGroup)}else{let e=this.snapGrid[a-1];o-e<=(this.snapGrid[a]-e)*r&&(i-=this.params.slidesPerGroup)}return i=Math.min(i=Math.max(i,0),this.slidesGrid.length-1),this.slideTo(i,e,t,n)},slideToClickedSlide:function(){let e,t=this,{params:n,$wrapperEl:r}=t,i="auto"===n.slidesPerView?t.slidesPerViewDynamic():n.slidesPerView,l=t.clickedIndex;if(n.loop){if(t.animating)return;e=parseInt(de(t.clickedSlide).attr("data-swiper-slide-index"),10),n.centeredSlides?l<t.loopedSlides-i/2||l>t.slides.length-t.loopedSlides+i/2?(t.loopFix(),l=r.children(`.${n.slideClass}[data-swiper-slide-index="${e}"]:not(.${n.slideDuplicateClass})`).eq(0).index(),di(()=>{t.slideTo(l)})):t.slideTo(l):l>t.slides.length-i?(t.loopFix(),l=r.children(`.${n.slideClass}[data-swiper-slide-index="${e}"]:not(.${n.slideDuplicateClass})`).eq(0).index(),di(()=>{t.slideTo(l)})):t.slideTo(l)}else t.slideTo(l)}},loop:{loopCreate:function(){let e=u3(),{params:t,$wrapperEl:n}=this,r=n.children().length>0?de(n.children()[0].parentNode):n;r.children(`.${t.slideClass}.${t.slideDuplicateClass}`).remove();let i=r.children(`.${t.slideClass}`);if(t.loopFillGroupWithBlank){let n=t.slidesPerGroup-i.length%t.slidesPerGroup;if(n!==t.slidesPerGroup){for(let i=0;i<n;i+=1){let n=de(e.createElement("div")).addClass(`${t.slideClass} ${t.slideBlankClass}`);r.append(n)}i=r.children(`.${t.slideClass}`)}}"auto"!==t.slidesPerView||t.loopedSlides||(t.loopedSlides=i.length),this.loopedSlides=Math.ceil(parseFloat(t.loopedSlides||t.slidesPerView,10)),this.loopedSlides+=t.loopAdditionalSlides,this.loopedSlides>i.length&&this.params.loopedSlidesLimit&&(this.loopedSlides=i.length);let l=[],a=[];i.each((e,t)=>{de(e).attr("data-swiper-slide-index",t)});for(let e=0;e<this.loopedSlides;e+=1){let t=e-Math.floor(e/i.length)*i.length;a.push(i.eq(t)[0]),l.unshift(i.eq(i.length-t-1)[0])}for(let e=0;e<a.length;e+=1)r.append(de(a[e].cloneNode(!0)).addClass(t.slideDuplicateClass));for(let e=l.length-1;e>=0;e-=1)r.prepend(de(l[e].cloneNode(!0)).addClass(t.slideDuplicateClass))},loopFix:function(){let e;this.emit("beforeLoopFix");let{activeIndex:t,slides:n,loopedSlides:r,allowSlidePrev:i,allowSlideNext:l,snapGrid:a,rtlTranslate:o}=this;this.allowSlidePrev=!0,this.allowSlideNext=!0;let s=-a[t]-this.getTranslate();t<r?(e=n.length-3*r+t+r,this.slideTo(e,0,!1,!0)&&0!==s&&this.setTranslate((o?-this.translate:this.translate)-s)):t>=n.length-r&&(e=-n.length+t+r+r,this.slideTo(e,0,!1,!0)&&0!==s&&this.setTranslate((o?-this.translate:this.translate)-s)),this.allowSlidePrev=i,this.allowSlideNext=l,this.emit("loopFix")},loopDestroy:function(){let{$wrapperEl:e,params:t,slides:n}=this;e.children(`.${t.slideClass}.${t.slideDuplicateClass},.${t.slideClass}.${t.slideBlankClass}`).remove(),n.removeAttr("data-swiper-slide-index")}},grabCursor:{setGrabCursor:function(e){if(this.support.touch||!this.params.simulateTouch||this.params.watchOverflow&&this.isLocked||this.params.cssMode)return;let t="container"===this.params.touchEventsTarget?this.el:this.wrapperEl;t.style.cursor="move",t.style.cursor=e?"grabbing":"grab"},unsetGrabCursor:function(){this.support.touch||this.params.watchOverflow&&this.isLocked||this.params.cssMode||(this["container"===this.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="")}}
24,events:{attachEvents:function(){let e=u3(),{params:t,support:n}=this;this.onTouchStart=dp.bind(this),this.onTouchMove=df.bind(this),this.onTouchEnd=dm.bind(this),t.cssMode&&(this.onScroll=dy.bind(this)),this.onClick=dv.bind(this),n.touch&&!dx&&(e.addEventListener("touchstart",db),dx=!0),dw(this,"on")},detachEvents:function(){dw(this,"off")}},breakpoints:{setBreakpoint:function(){let e=this,{activeIndex:t,initialized:n,loopedSlides:r=0,params:i,$el:l}=e,a=i.breakpoints;if(!a||a&&0===Object.keys(a).length)return;let o=e.getBreakpoint(a,e.params.breakpointsBase,e.el);if(!o||e.currentBreakpoint===o)return;let s=(o in a?a[o]:void 0)||e.originalParams,c=dj(e,i),u=dj(e,s),d=i.enabled;c&&!u?(l.removeClass(`${i.containerModifierClass}grid ${i.containerModifierClass}grid-column`),e.emitContainerClasses()):!c&&u&&(l.addClass(`${i.containerModifierClass}grid`),(s.grid.fill&&"column"===s.grid.fill||!s.grid.fill&&"column"===i.grid.fill)&&l.addClass(`${i.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(t=>{let n=i[t]&&i[t].enabled,r=s[t]&&s[t].enabled;n&&!r&&e[t].disable(),!n&&r&&e[t].enable()});let h=s.direction&&s.direction!==i.direction,p=i.loop&&(s.slidesPerView!==i.slidesPerView||h);h&&n&&e.changeDirection(),ds(e.params,s);let f=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),d&&!f?e.disable():!d&&f&&e.enable(),e.currentBreakpoint=o,e.emit("_beforeBreakpoint",s),p&&n&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-r+e.loopedSlides,0,!1)),e.emit("breakpoint",s)},getBreakpoint:function(e,t="window",n){if(!e||"container"===t&&!n)return;let r=!1,i=u6(),l="window"===t?i.innerHeight:n.clientHeight,a=Object.keys(e).map(e=>"string"==typeof e&&0===e.indexOf("@")?{value:l*parseFloat(e.substr(1)),point:e}:{value:e,point:e});a.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e<a.length;e+=1){let{point:l,value:o}=a[e];"window"===t?i.matchMedia(`(min-width: ${o}px)`).matches&&(r=l):o<=n.clientWidth&&(r=l)}return r||"max"}},checkOverflow:{checkOverflow:function(){let{isLocked:e,params:t}=this,{slidesOffsetBefore:n}=t;if(n){let e=this.slides.length-1,t=this.slidesGrid[e]+this.slidesSizesGrid[e]+2*n;this.isLocked=this.size>t}else this.isLocked=1===this.snapGrid.length;!0===t.allowSlideNext&&(this.allowSlideNext=!this.isLocked),!0===t.allowSlidePrev&&(this.allowSlidePrev=!this.isLocked),e&&e!==this.isLocked&&(this.isEnd=!1),e!==this.isLocked&&this.emit(this.isLocked?"lock":"unlock")}},classes:{addClasses:function(){let{classNames:e,params:t,rtl:n,$el:r,device:i,support:l}=this,a=function(e,t){let n=[];return e.forEach(e=>{"object"==typeof e?Object.keys(e).forEach(r=>{e[r]&&n.push(t+r)}):"string"==typeof e&&n.push(t+e)}),n}(["initialized",t.direction,{"pointer-events":!l.touch},{"free-mode":this.params.freeMode&&t.freeMode.enabled},{autoheight:t.autoHeight},{rtl:n},{grid:t.grid&&t.grid.rows>1},{"grid-column":t.grid&&t.grid.rows>1&&"column"===t.grid.fill},{android:i.android},{ios:i.ios},{"css-mode":t.cssMode},{centered:t.cssMode&&t.centeredSlides},{"watch-progress":t.watchSlidesProgress}],t.containerModifierClass);e.push(...a),r.addClass([...e].join(" ")),this.emitContainerClasses()},removeClasses:function(){let{$el:e,classNames:t}=this;e.removeClass(t.join(" ")),this.emitContainerClasses()}},images:{loadImage:function(e,t,n,r,i,l){let a,o=u6();function s(){l&&l()}de(e).parent("picture")[0]||e.complete&&i?s():t?((a=new o.Image).onload=s,a.onerror=s,r&&(a.sizes=r),n&&(a.srcset=n),t&&(a.src=t)):s()},preloadImages:function(){let e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(let n=0;n<e.imagesToLoad.length;n+=1){let r=e.imagesToLoad[n];e.loadImage(r,r.currentSrc||r.getAttribute("src"),r.srcset||r.getAttribute("srcset"),r.sizes||r.getAttribute("sizes"),!0,t)}}}},d_={};class dC{constructor(...e){let t,n;if(1===e.length&&e[0].constructor&&"Object"===Object.prototype.toString.call(e[0]).slice(8,-1)?n=e[0]:[t,n]=e,n||(n={}),n=ds({},n),t&&!n.el&&(n.el=t),n.el&&de(n.el).length>1){let e=[];return de(n.el).each(t=>{let r=ds({},n,{el:t});e.push(new dC(r))}),e}let r=this;r.__swiper__=!0,r.support=dd(),r.device=function(e={}
24){return i||(i=function({userAgent:e}={}){let t=dd(),n=u6(),r=n.navigator.platform,i=e||n.navigator.userAgent,l={ios:!1,android:!1},a=n.screen.width,o=n.screen.height,s=i.match(/(Android);?[\s\/]+([\d.]+)?/),c=i.match(/(iPad).*OS\s([\d_]+)/),u=i.match(/(iPod)(.*OS\s([\d_]+))?/),d=!c&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h="MacIntel"===r;return!c&&h&&t.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${a}x${o}`)>=0&&((c=i.match(/(Version)\/([\d.]+)/))||(c=[0,1,"13_0_0"]),h=!1),s&&"Win32"!==r&&(l.os="android",l.android=!0),(c||d||u)&&(l.os="ios",l.ios=!0),l}(e)),i}({userAgent:n.userAgent}),l||(l=function(){let e=u6();return{isSafari:function(){let t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&0>t.indexOf("chrome")&&0>t.indexOf("android")}(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),r.browser=l,r.eventsListeners={},r.eventsAnyListeners=[],r.modules=[...r.__modules__],n.modules&&Array.isArray(n.modules)&&r.modules.push(...n.modules);let a={};r.modules.forEach(e=>{e({swiper:r,extendParams:function(e,t){return function(n={}){let r=Object.keys(n)[0],i=n[r];return"object"!=typeof i||null===i?void ds(t,n):(["navigation","pagination","scrollbar"].indexOf(r)>=0&&!0===e[r]&&(e[r]={auto:!0}),r in e&&"enabled"in i)?void(!0===e[r]&&(e[r]={enabled:!0}),"object"==typeof e[r]&&!("enabled"in e[r])&&(e[r].enabled=!0),!e[r]&&(e[r]={enabled:!1}),ds(t,n)):void ds(t,n)}}(n,a),on:r.on.bind(r),once:r.once.bind(r),off:r.off.bind(r),emit:r.emit.bind(r)})});let o=ds({},dS,a);return r.params=ds({},o,d_,n),r.originalParams=ds({},r.params),r.passedParams=ds({}
24,n),r.params&&r.params.on&&Object.keys(r.params.on).forEach(e=>{r.on(e,r.params.on[e])}),r.params&&r.params.onAny&&r.onAny(r.params.onAny),r.$=de,Object.assign(r,{enabled:r.params.enabled,el:t,classNames:[],slides:de(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===r.params.direction,isVertical:()=>"vertical"===r.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:r.params.allowSlideNext,allowSlidePrev:r.params.allowSlidePrev,touchEvents:(r.touchEventsTouch={start:"touchstart",move:"touchmove",end:"touchend",cancel:"touchcancel"},r.touchEventsDesktop={start:"pointerdown",move:"pointermove",end:"pointerup"},r.support.touch||!r.params.simulateTouch?r.touchEventsTouch:r.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:r.params.focusableElements,lastClickTime:dl(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:r.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),r.emit("_swiper"),r.params.init&&r.init(),r}enable(){this.enabled||(this.enabled=!0,this.params.grabCursor&&this.setGrabCursor(),this.emit("enable"))}disable(){this.enabled&&(this.enabled=!1,this.params.grabCursor&&this.unsetGrabCursor(),this.emit("disable"))}setProgress(e,t){e=Math.min(Math.max(e,0),1);let n=this.minTranslate(),r=(this.maxTranslate()-n)*e+n;this.translateTo(r,void 0===t?0:t),this.updateActiveIndex(),this.updateSlidesClasses()}emitContainerClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=e.el.className.split(" ").filter(t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){let t=this;return t.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=[];e.slides.each(n=>{let r=e.getSlideClasses(n);t.push({slideEl:n,classNames:r}),e.emit("_slideClass",n,r)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e="current",t=!1){let{params:n,slides:r,slidesGrid:i,slidesSizesGrid:l,size:a,activeIndex:o}=this,s=1;if(n.centeredSlides){let e,t=r[o].swiperSlideSize;for(let n=o+1;n<r.length;n+=1)r[n]&&!e&&(t+=r[n].swiperSlideSize,s+=1,t>a&&(e=!0));for(let n=o-1;n>=0;n-=1)r[n]&&!e&&(t+=r[n].swiperSlideSize,s+=1,t>a&&(e=!0))}else if("current"===e)for(let e=o+1;e<r.length;e+=1)(t?i[e]+l[e]-i[o]<a:i[e]-i[o]<a)&&(s+=1);else for(let e=o-1;e>=0;e-=1)i[o]-i[e]<a&&(s+=1);return s}update(){let e,t=this;if(!t||t.destroyed)return;let{snapGrid:n,params:r}=t;function i(){let e=Math.min(Math.max(t.rtlTranslate?-1*t.translate:t.translate,t.maxTranslate()),t.minTranslate());t.setTranslate(e),t.updateActiveIndex(),t.updateSlidesClasses()}r.breakpoints&&t.setBreakpoint(),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.params.freeMode&&t.params.freeMode.enabled?(i(),t.params.autoHeight&&t.updateAutoHeight()):(("auto"===t.params.slidesPerView||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0))||i(),r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(e,t=!0){let n=this.params.direction;return e||(e="horizontal"===n?"vertical":"horizontal"),e===n||"horizontal"!==e&&"vertical"!==e||(this.$el.removeClass(`${this.params.containerModifierClass}${n}`).addClass(`${this.params.containerModifierClass}${e}`),this.emitContainerClasses(),this.params.direction=e,this.slides.each(t=>{"vertical"===e?t.style.width="":t.style.height=""}),this.emit("changeDirection"),t&&this.update()),this}changeLanguageDirection(e){(!this.rtl||"rtl"!==e)&&(this.rtl||"ltr"!==e)&&(this.rtl="rtl"===e,this.rtlTranslate="horizontal"===this.params.direction&&this.rtl,this.rtl?(this.$el.addClass(`${this.params.containerModifierClass}rtl`),this.el.dir="rtl"):(this.$el.removeClass(`${this.params.containerModifierClass}rtl`),this.el.dir="ltr"),this.update())}mount(e){let t=this;if(t.mounted)return!0;let n=de(e||t.params.el);if(!(e=n[0]))return!1;e.swiper=t;let r=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`,i=(()=>
24{if(e&&e.shadowRoot&&e.shadowRoot.querySelector){let t=de(e.shadowRoot.querySelector(r()));return t.children=e=>n.children(e),t}return n.children?n.children(r()):de(n).children(r())})();if(0===i.length&&t.params.createElements){let e=u3().createElement("div");i=de(e),e.className=t.params.wrapperClass,n.append(e),n.children(`.${t.params.slideClass}`).each(e=>{i.append(e)})}return Object.assign(t,{$el:n,el:e,$wrapperEl:i,wrapperEl:i[0],mounted:!0,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===n.css("direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===n.css("direction")),wrongRTL:"-webkit-box"===i.css("display")}),!0}init(e){return this.initialized||!1===this.mount(e)||(this.emit("beforeInit"),this.params.breakpoints&&this.setBreakpoint(),this.addClasses(),this.params.loop&&this.loopCreate(),this.updateSize(),this.updateSlides(),this.params.watchOverflow&&this.checkOverflow(),this.params.grabCursor&&this.enabled&&this.setGrabCursor(),this.params.preloadImages&&this.preloadImages(),this.params.loop?this.slideTo(this.params.initialSlide+this.loopedSlides,0,this.params.runCallbacksOnInit,!1,!0):this.slideTo(this.params.initialSlide,0,this.params.runCallbacksOnInit,!1,!0),this.attachEvents(),this.initialized=!0,this.emit("init"),this.emit("afterInit")),this}destroy(e=!0,t=!0){let n=this,{params:r,$el:i,$wrapperEl:l,slides:a}=n;if(void 0===n.params||n.destroyed)return null;(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),t&&(n.removeClasses(),i.removeAttr("style"),l.removeAttr("style"),a&&a.length&&a.removeClass([r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(e=>{n.off(e)}),!1!==e)&&(n.$el[0].swiper=null,Object.keys(n).forEach(e=>{try{n[e]=null}catch(e){}try{delete n[e]}catch(e){}}));return n.destroyed=!0,null}static extendDefaults(e){ds(d_,e)}static get extendedDefaults(){return d_}static get defaults(){return dS}static installModule(e){dC.prototype.__modules__||(dC.prototype.__modules__=[]);let t=dC.prototype.__modules__;"function"==typeof e&&0>t.indexOf(e)&&t.push(e)}static use(e){return Array.isArray(e)?e.forEach(e=>dC.installModule(e)):dC.installModule(e),dC}}function dN(e,t,n,r){let i=u3();return e.params.createElements&&Object.keys(r).forEach(l=>{if(!n[l]&&!0===n.auto){let a=e.$el.children(`.${r[l]}`)[0];a||((a=i.createElement("div")).className=r[l],e.$el.append(a)),n[l]=a,t[l]=a}}),n}function dE({swiper:e,extendParams:t,on:n,emit:r}){function i(t){let n;return t&&(n=de(t),e.params.uniqueNavElements&&"string"==typeof t&&n.length>1&&1===e.$el.find(t).length&&(n=e.$el.find(t))),n}function l(t,n){let r=e.params.navigation;t&&t.length>0&&(t[n?"addClass":"removeClass"](r.disabledClass),t[0]&&"BUTTON"===t[0].tagName&&(t[0].disabled=n),e.params.watchOverflow&&e.enabled&&t[e.isLocked?"addClass":"removeClass"](r.lockClass))}function a(){if(e.params.loop)return;let{$nextEl:t,$prevEl:n}=e.navigation;l(n,e.isBeginning&&!e.params.rewind),l(t,e.isEnd&&!e.params.rewind)}function o(t){t.preventDefault(),(!e.isBeginning||e.params.loop||e.params.rewind)&&(e.slidePrev(),r("navigationPrev"))}function s(t){t.preventDefault(),(!e.isEnd||e.params.loop||e.params.rewind)&&(e.slideNext(),r("navigationNext"))}function c(){let t=e.params.navigation;if(e.params.navigation=dN(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(t.nextEl||t.prevEl))return;let n=i(t.nextEl),r=i(t.prevEl);n&&n.length>0&&n.on("click",s),r&&r.length>0&&r.on("click",o),Object.assign(e.navigation,{$nextEl:n,nextEl:n&&n[0],$prevEl:r,prevEl:r&&r[0]}),!e.enabled&&(n&&n.addClass(t.lockClass),r&&r.addClass(t.lockClass))}function u(){let{$nextEl:t,$prevEl:n}=e.navigation;t&&t.length&&(t.off("click",s),t.removeClass(e.params.navigation.disabledClass)),n&&n.length&&(n.off("click",o),n.removeClass(e.params.navigation.disabledClass))}t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,$nextEl:null,prevEl:null,$prevEl:null},n("init",()=>{!1===e.params.navigation.enabled?d():(c(),a())}),n("toEdge fromEdge lock unlock",()=>{a()}),n("destroy",()=>{u()}),n("enable disable",()=>{let{$nextEl:t,$prevEl:n}=e.navigation;t&&t[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass),n&&n[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass)}),n("click",(t,n)=>{let{$nextEl:i,$prevEl:l}=e.navigation,a=n.target;if(e.params.navigation.hideOnClick&&!de(a).is(l)&&!de(a).is(i)){let t;if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===a||e.pagination.el.contains(a)))return;i?t=i.hasClass(e.params.navigation.hiddenClass):l&&(t=l.hasClass(e.params.navigation.hiddenClass)),!0===t?r("navigationShow"):r("navigationHide"),i&&i.toggleClass(e.params.navigation.hiddenClass),l&&l.toggleClass(e.params.navigation.hiddenClass)}});let d=()=>{e.$el.addClass(e.params.navigation.navigationDisabledClass),u()};Object.assign(e.navigation,{enable:()=>{e.$el.removeClass(e.params.navigation.navigationDisabledClass),c(),a()},disable:d,update:a,init:c,destroy:u})}function dP(e=""){return`.${e.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}`}function dT({swiper:e,extendParams:t,on:n,emit:r}){let i,l="swiper-pagination";t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${l}-bullet`,bulletActiveClass:`${l}-bullet-active`,modifierClass:`${l}-`,currentClass:`${l}-current`,totalClass:`${l}-total`,hiddenClass:`${l}-hidden`,progressbarFillClass:`${l}-progressbar-fill`,progressbarOppositeClass:`${l}-progressbar-opposite`,clickableClass:`${l}-clickable`,lockClass:`${l}-lock`,horizontalClass:`${l}-horizontal`,verticalClass:`${l}-vertical`,paginationDisabledClass:`${l}-disabled`}}),e.pagination={el:null,$el:null,bullets:[]};let a=0;function o(){return!e.params.pagination.el||!e.pagination.el||!e.pagination.$el||0===e.pagination.$el.length}function s(t,n){let{bulletActiveClass:r}=e.params.pagination;t[n]().addClass(`${r}-${n}`)[n]().addClass(`${r}-${n}-${n}`)}function c(){let t,n=e.rtl,l=e.params.pagination;if(o())return;let c=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,u=e.pagination.$el,d=e.params.loop?Math.
24ceil((c-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?((t=Math.ceil((e.activeIndex-e.loopedSlides)/e.params.slidesPerGroup))>c-1-2*e.loopedSlides&&(t-=c-2*e.loopedSlides),t>d-1&&(t-=d),t<0&&"bullets"!==e.params.paginationType&&(t=d+t)):t=void 0!==e.snapIndex?e.snapIndex:e.activeIndex||0,"bullets"===l.type&&e.pagination.bullets&&e.pagination.bullets.length>0){let r,o,c,d=e.pagination.bullets;if(l.dynamicBullets&&(i=d.eq(0)[e.isHorizontal()?"outerWidth":"outerHeight"](!0),u.css(e.isHorizontal()?"width":"height",`${i*(l.dynamicMainBullets+4)}px`),l.dynamicMainBullets>1&&void 0!==e.previousIndex&&((a+=t-(e.previousIndex-e.loopedSlides||0))>l.dynamicMainBullets-1?a=l.dynamicMainBullets-1:a<0&&(a=0)),c=((o=(r=Math.max(t-a,0))+(Math.min(d.length,l.dynamicMainBullets)-1))+r)/2),d.removeClass(["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>`${l.bulletActiveClass}${e}`).join(" ")),u.length>1)d.each(e=>{let n=de(e),i=n.index();i===t&&n.addClass(l.bulletActiveClass),l.dynamicBullets&&(i>=r&&i<=o&&n.addClass(`${l.bulletActiveClass}-main`),i===r&&s(n,"prev"),i===o&&s(n,"next"))});else{let n=d.eq(t),i=n.index();if(n.addClass(l.bulletActiveClass),l.dynamicBullets){let t=d.eq(r),n=d.eq(o);for(let e=r;e<=o;e+=1)d.eq(e).addClass(`${l.bulletActiveClass}-main`);if(e.params.loop)if(i>=d.length){for(let e=l.dynamicMainBullets;e>=0;e-=1)d.eq(d.length-e).addClass(`${l.bulletActiveClass}-main`);d.eq(d.length-l.dynamicMainBullets-1).addClass(`${l.bulletActiveClass}-prev`)}else s(t,"prev"),s(n,"next");else s(t,"prev"),s(n,"next")}}if(l.dynamicBullets){let t=Math.min(d.length,l.dynamicMainBullets+4),r=(i*t-i)/2-c*i;d.css(e.isHorizontal()?n?"right":"left":"top",`${r}px`)}}if("fraction"===l.type&&(u.find(dP(l.currentClass)).text(l.formatFractionCurrent(t+1)),u.find(dP(l.totalClass)).text(l.formatFractionTotal(d))),"progressbar"===l.type){let n;n=l.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";let r=(t+1)/d,i=1,a=1;"horizontal"===n?i=r:a=r,u.find(dP(l.progressbarFillClass)).transform(`translate3d(0,0,0) scaleX(${i}) scaleY(${a})`).transition(e.params.speed)}"custom"===l.type&&l.renderCustom?(u.html(l.renderCustom(e,t+1,d)),r("paginationRender",u[0])):r("paginationUpdate",u[0]),e.params.watchOverflow&&e.enabled&&u[e.isLocked?"addClass":"removeClass"](l.lockClass)}function u(){let t=e.params.pagination;if(o())return;let n=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,i=e.pagination.$el,l="";if("bullets"===t.type){let r=e.params.loop?Math.ceil((n-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&!e.params.loop&&r>n&&(r=n);for(let n=0;n<r;n+=1)t.renderBullet?l+=t.renderBullet.call(e,n,t.bulletClass):l+=`<${t.bulletElement} class="${t.bulletClass}"></${t.bulletElement}>`;i.html(l),e.pagination.bullets=i.find(dP(t.bulletClass))}"fraction"===t.type&&(l=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`,i.html(l)),"progressbar"===t.type&&(l=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`,i.html(l)),"custom"!==t.type&&r("paginationRender",e.pagination.$el[0])}function d(){e.params.pagination=dN(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});let t=e.params.pagination;if(!t.el)return;let n=de(t.el);0!==n.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&n.length>1&&(n=e.$el.find(t.el)).length>1&&(n=n.filter(t=>de(t).parents(".swiper")[0]===e.el)),"bullets"===t.type&&t.clickable&&n.addClass(t.clickableClass),n.addClass(t.modifierClass+t.type),n.addClass(e.isHorizontal()?t.horizontalClass:t.verticalClass),"bullets"===t.type&&t.dynamicBullets&&(n.addClass(`${t.modifierClass}${t.type}-dynamic`),a=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&n.addClass(t.progressbarOppositeClass),t.clickable&&n.on("click",dP(t.bulletClass),function(t){t.preventDefault();let n=de(this).index()*e.params.slidesPerGroup;e.params.loop&&(n+=e.loopedSlides),e.slideTo(n)}),Object.assign(e.pagination,{$el:n,el:n[0]}),e.enabled||n.addClass(t.lockClass))}function h(){let t=e.params.pagination;if(o())return;let n=e.pagination.$el;n.removeClass(t.hiddenClass),n.removeClass(t.modifierClass+t.type),n.removeClass(e.isHorizontal()?t.horizontalClass:t.verticalClass),e.pagination.bullets&&e.pagination.bullets.removeClass&&e.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&n.off("click",dP(t.bulletClass))}n("init",()=>{!1===e.params.pagination.enabled?p():(d(),u(),c())}),n("activeIndexChange",()=>{e.params.loop?c():void 0===e.snapIndex&&c()}),n("snapIndexChange",()=>{e.params.loop||c()}),n("slidesLengthChange",()=>{e.params.loop&&(u(),c())}),n("snapGridLengthChange",()=>{e.params.loop||(u(),c())}),n("destroy",()=>{h()}),n("enable disable",()=>{let{$el:t}=e.pagination;t&&t[e.enabled?"removeClass":"addClass"](e.params.pagination.lockClass)}),n("lock unlock",()=>{c()}),n("click",(t,n)=>{let i=n.target,{$el:l}=e.pagination;if(e.params.pagination.el&&e.params.pagination.hideOnClick&&l&&l.length>0&&!de(i).hasClass(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&i===e.navigation.nextEl||e.navigation.prevEl&&i===e.navigation.prevEl))return;!0===l.hasClass(e.params.pagination.hiddenClass)?r("paginationShow"):r("paginationHide"),l.toggleClass(e.params.pagination.hiddenClass)}});let p=()=>{e.$el.addClass(e.params.pagination.paginationDisabledClass),e.pagination.$el&&e.pagination.$el.addClass(e.params.pagination.paginationDisabledClass),h()};Object.assign(e.pagination,{enable:()=>{e.$el.removeClass(e.params.pagination.paginationDisabledClass),e.pagination.$el&&e.pagination.$el.removeClass(e.params.pagination.paginationDisabledClass),d(),u(),c()},disable:p,render:u,update:c,init:d,destroy:h})}function dO(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function dR(e,t){let n=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>0>
24n.indexOf(e)).forEach(n=>{void 0===e[n]?e[n]=t[n]:dO(t[n])&&dO(e[n])&&Object.keys(t[n]).length>0?t[n].__swiper__?e[n]=t[n]:dR(e[n],t[n]):e[n]=t[n]})}function dL(e={}){return e.navigation&&void 0===e.navigation.nextEl&&void 0===e.navigation.prevEl}function dI(e={}){return e.pagination&&void 0===e.pagination.el}function dA(e={}){return e.scrollbar&&void 0===e.scrollbar.el}function dM(e=""){let t=e.split(" ").map(e=>e.trim()).filter(e=>!!e),n=[];return t.forEach(e=>{0>n.indexOf(e)&&n.push(e)}),n.join(" ")}Object.keys(dk).forEach(e=>{Object.keys(dk[e]).forEach(t=>{dC.prototype[t]=dk[e][t]})}),dC.use([function({swiper:e,on:t,emit:n}){let r=u6(),i=null,l=null,a=()=>{e&&!e.destroyed&&e.initialized&&(n("beforeResize"),n("resize"))},o=()=>{e&&!e.destroyed&&e.initialized&&(i=new ResizeObserver(t=>{l=r.requestAnimationFrame(()=>{let{width:n,height:r}=e,i=n,l=r;t.forEach(({contentBoxSize:t,contentRect:n,target:r})=>{r&&r!==e.el||(i=n?n.width:(t[0]||t).inlineSize,l=n?n.height:(t[0]||t).blockSize)}),(i!==n||l!==r)&&a()})})).observe(e.el)},s=()=>{l&&r.cancelAnimationFrame(l),i&&i.unobserve&&e.el&&(i.unobserve(e.el),i=null)},c=()=>{e&&!e.destroyed&&e.initialized&&n("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&void 0!==r.ResizeObserver)return void o();r.addEventListener("resize",a),r.addEventListener("orientationchange",c)}),t("destroy",()=>{s(),r.removeEventListener("resize",a),r.removeEventListener("orientationchange",c)})},function({swiper:e,extendParams:t,on:n,emit:r}){let i=[],l=u6(),a=(e,t={})=>{let n=new(l.MutationObserver||l.WebkitMutationObserver)(e=>{if(1===e.length)return void r("observerUpdate",e[0]);let t=function(){r("observerUpdate",e[0])};l.requestAnimationFrame?l.requestAnimationFrame(t):l.setTimeout(t,0)});n.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),i.push(n)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",()=>{if(e.params.observer){if(e.params.observeParents){let t=e.$el.parents();for(let e=0;e<t.length;e+=1)a(t[e])}a(e.$el[0],{childList:e.params.observeSlideChildren}),a(e.$wrapperEl[0],{attributes:!1})}}),n("destroy",()=>{i.forEach(e=>{e.disconnect()}),i.splice(0,i.length)})}]);let dF=["modules","init","_direction","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_preloadImages","updateOnImagesReady","_loop","_loopAdditionalSlides","_loopedSlides","_loopedSlidesLimit","_loopFillGroupWithBlank","loopPreventsSlide","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideBlankClass","slideActiveClass","slideDuplicateActiveClass","slideVisibleClass","slideDuplicateClass","slideNextClass","slideDuplicateNextClass","slidePrevClass","slideDuplicatePrevClass","wrapperClass","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","lazy","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom"],dD=(e,t)=>{let n=t.slidesPerView;
24if(t.breakpoints){let e=dC.prototype.getBreakpoint(t.breakpoints),r=e in t.breakpoints?t.breakpoints[e]:void 0;r&&r.slidesPerView&&(n=r.slidesPerView)}let r=Math.ceil(parseFloat(t.loopedSlides||n,10));return(r+=t.loopAdditionalSlides)>e.length&&t.loopedSlidesLimit&&(r=e.length),r};function dH(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}let dB=e=>{e&&!e.destroyed&&e.params.virtual&&(!e.params.virtual||e.params.virtual.enabled)&&(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.lazy&&e.params.lazy.enabled&&e.lazy.load(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function d$(e,t){return"undefined"==typeof window?(0,p.useEffect)(e,t):(0,p.useLayoutEffect)(e,t)}let dz=(0,p.createContext)(null),dV=(0,p.createContext)(null);function dW(){return(dW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let dU=(0,p.forwardRef)(function(e,t){let{className:n,tag:r="div",wrapperTag:i="div",children:l,onSwiper:a,...o}=void 0===e?{}:e,s=!1,[c,u]=(0,p.useState)("swiper"),[d,h]=(0,p.useState)(null),[f,m]=(0,p.useState)(!1),g=(0,p.useRef)(!1),v=(0,p.useRef)(null),y=(0,p.useRef)(null),x=(0,p.useRef)(null),b=(0,p.useRef)(null),w=(0,p.useRef)(null),j=(0,p.useRef)(null),S=(0,p.useRef)(null),k=(0,p.useRef)(null),{params:_,passedParams:C,rest:N,events:E}=function(e={},t=!0){let n={on:{}},r={},i={};dR(n,dC.defaults),dR(n,dC.extendedDefaults),n._emitClasses=!0,n.init=!1;let l={},a=dF.map(e=>e.replace(/_/,""));return Object.keys(Object.assign({},e)).forEach(o=>{void 0!==e[o]&&(a.indexOf(o)>=0?dO(e[o])?(n[o]={},i[o]={},dR(n[o],e[o]),dR(i[o],e[o])):(n[o]=e[o],i[o]=e[o]):0===o.search(/on[A-Z]/)&&"function"==typeof e[o]?t?r[`${o[2].toLowerCase()}${o.substr(3)}`]=e[o]:n.on[`${o[2].toLowerCase()}${o.substr(3)}`]=e[o]:l[o]=e[o])}),["navigation","pagination","scrollbar"].forEach(e=>{!0===n[e]&&(n[e]={}),!1===n[e]&&delete n[e]}),{params:n,passedParams:i,rest:l,events:r}}(o),{slides:P,slots:T}=function(e){let t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return p.Children.toArray(e).forEach(e=>{if(dH(e))t.push(e);else if(e.props&&e.props.slot&&n[e.props.slot])n[e.props.slot].push(e);else if(e.props&&e.props.children){let r=function e(t){let n=[];return p.Children.toArray(t).forEach(t=>{dH(t)?n.push(t):t.props&&t.props.children&&e(t.props.children).forEach(e=>n.push(e))}),n}(e.props.children);r.length>0?r.forEach(e=>t.push(e)):n["container-end"].push(e)}else n["container-end"].push(e)}),{slides:t,slots:n}}(l),O=()=>{m(!f)};Object.assign(_.on,{_containerClasses(e,t){u(t)}});let R=()=>{if(Object.assign(_.on,E),s=!0,y.current=new dC(_),y.current.loopCreate=()=>{},y.current.loopDestroy=()=>{},_.loop&&(y.current.loopedSlides=dD(P,_)),y.current.virtual&&y.current.params.virtual.enabled){y.current.virtual.slides=P;let e={cache:!1,slides:P,renderExternal:h,renderExternalUpdate:!1};dR(y.current.params.virtual,e),dR(y.current.originalParams.virtual,e)}};v.current||R(),y.current&&y.current.on("_beforeBreakpoint",O);let L=()=>
24{!s&&E&&y.current&&Object.keys(E).forEach(e=>{y.current.on(e,E[e])})},I=()=>{E&&y.current&&Object.keys(E).forEach(e=>{y.current.off(e,E[e])})};return(0,p.useEffect)(()=>()=>{y.current&&y.current.off("_beforeBreakpoint",O)}),(0,p.useEffect)(()=>{!g.current&&y.current&&(y.current.emitSlidesClasses(),g.current=!0)}),d$(()=>{if(t&&(t.current=v.current),v.current)return y.current.destroyed&&R(),!function({el:e,nextEl:t,prevEl:n,paginationEl:r,scrollbarEl:i,swiper:l},a){dL(a)&&t&&n&&(l.params.navigation.nextEl=t,l.originalParams.navigation.nextEl=t,l.params.navigation.prevEl=n,l.originalParams.navigation.prevEl=n),dI(a)&&r&&(l.params.pagination.el=r,l.originalParams.pagination.el=r),dA(a)&&i&&(l.params.scrollbar.el=i,l.originalParams.scrollbar.el=i),l.init(e)}({el:v.current,nextEl:w.current,prevEl:j.current,paginationEl:S.current,scrollbarEl:k.current,swiper:y.current},_),a&&a(y.current),()=>{y.current&&!y.current.destroyed&&y.current.destroy(!0,!1)}},[]),d$(()=>{L();let e=function(e,t,n,r,i){let l=[];if(!t)return l;let a=e=>{0>l.indexOf(e)&&l.push(e)};if(n&&r){let e=r.map(i),t=n.map(i);e.join("")!==t.join("")&&a("children"),r.length!==n.length&&a("children")}return dF.filter(e=>"_"===e[0]).map(e=>e.replace(/_/,"")).forEach(n=>{if(n in e&&n in t)if(dO(e[n])&&dO(t[n])){let r=Object.keys(e[n]),i=Object.keys(t[n]);r.length!==i.length?a(n):(r.forEach(r=>{e[n][r]!==t[n][r]&&a(n)}
24),i.forEach(r=>{e[n][r]!==t[n][r]&&a(n)}))}else e[n]!==t[n]&&a(n)}),l}(C,x.current,P,b.current,e=>e.key);return x.current=C,b.current=P,e.length&&y.current&&!y.current.destroyed&&function({swiper:e,slides:t,passedParams:n,changedParams:r,nextEl:i,prevEl:l,scrollbarEl:a,paginationEl:o}){let s,c,u,d,h,p=r.filter(e=>"children"!==e&&"direction"!==e),{params:f,pagination:m,navigation:g,scrollbar:v,virtual:y,thumbs:x}=e;r.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&f.thumbs&&!f.thumbs.swiper&&(s=!0),r.includes("controller")&&n.controller&&n.controller.control&&f.controller&&!f.controller.control&&(c=!0),r.includes("pagination")&&n.pagination&&(n.pagination.el||o)&&(f.pagination||!1===f.pagination)&&m&&!m.el&&(u=!0),r.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||a)&&(f.scrollbar||!1===f.scrollbar)&&v&&!v.el&&(d=!0),r.includes("navigation")&&n.navigation&&(n.navigation.prevEl||l)&&(n.navigation.nextEl||i)&&(f.navigation||!1===f.navigation)&&g&&!g.prevEl&&!g.nextEl&&(h=!0);let b=t=>{e[t]&&(e[t].destroy(),"navigation"===t?(f[t].prevEl=void 0,f[t].nextEl=void 0,e[t].prevEl=void 0,e[t].nextEl=void 0):(f[t].el=void 0,e[t].el=void 0))};p.forEach(e=>{if(dO(f[e])&&dO(n[e]))dR(f[e],n[e]);else{let t=n[e];(!0===t||!1===t)&&("navigation"===e||"pagination"===e||"scrollbar"===e)?!1===t&&b(e):f[e]=n[e]}}),p.includes("controller")&&!c&&e.controller&&e.controller.control&&f.controller&&f.controller.control&&(e.controller.control=f.controller.control),r.includes("children")&&t&&y&&f.virtual.enabled?(y.slides=t,y.update(!0)):r.includes("children")&&e.lazy&&e.params.lazy.enabled&&e.lazy.load(),s&&x.init()&&x.update(!0),c&&(e.controller.control=f.controller.control),u&&(o&&(f.pagination.el=o),m.init(),m.render(),m.update()),d&&(a&&(f.scrollbar.el=a),v.init(),v.updateSize(),v.setTranslate()),h&&(i&&(f.navigation.nextEl=i),l&&(f.navigation.prevEl=l),g.init(),g.update()),r.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),r.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),r.includes("direction")&&e.changeDirection(n.direction,!1),e.update()}({swiper:y.current,slides:P,passedParams:C,changedParams:e,nextEl:w.current,prevEl:j.current,scrollbarEl:k.current,paginationEl:S.current}),()=>{I()}}),d$(()=>{dB(y.current)},[d]),p.createElement(r,dW({ref:v,className:dM(`${c}${n?` ${n}`:""}`)},N),p.createElement(dV.Provider,{value:y.current},T["container-start"],p.createElement(i,{className:"swiper-wrapper"},T["wrapper-start"],function(){if(_.virtual){var e=y.current;if(!d)return null;let t=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${d.offset}px`}:{top:`${d.offset}px`};return P.filter((e,t)=>t>=d.from&&t<=d.to).map(n=>p.cloneElement(n,{swiper:e,style:t}))}return!_.loop||y.current&&y.current.destroyed?P.map(e=>p.cloneElement(e,{swiper:y.current})):function(e,t,n){let r=t.map((t,n)=>p.cloneElement(t,{swiper:e,"data-swiper-slide-index":n}));function i(e,t,r){return p.cloneElement(e,{key:`${e.key}-duplicate-${t}-${r}`,className:`${e.props.className||""} ${n.slideDuplicateClass}`})}if(n.loopFillGroupWithBlank){let e=n.slidesPerGroup-r.length%n.slidesPerGroup;if(e!==n.slidesPerGroup)for(let t=0;t<e;t+=1){let e=p.createElement("div",{className:`${n.slideClass} ${n.slideBlankClass}`});r.push(e)}}"auto"!==n.slidesPerView||n.loopedSlides||(n.loopedSlides=r.length);let l=dD(r,n),a=[],o=[];for(let e=0;e<l;e+=1){let t=e-Math.floor(e/r.length)*r.length;o.push(i(r[t],e,"append")),a.unshift(i(r[r.length-t-1],e,"prepend"))}return e&&(e.loopedSlides=l),[...a,...r,...o]}(y.current,P,_)}(),T["wrapper-end"]),dL(_)&&p.createElement(p.Fragment,null,p.createElement("div",{ref:j,className:"swiper-button-prev"}),p.createElement("div",{ref:w,className:"swiper-button-next"})),dA(_)&&p.createElement("div",{ref:k,className:"swiper-scrollbar"}),dI(_)&&p.createElement("div",{ref:S,className:"swiper-pagination"}),T["container-end"]))});function dq(){return(dq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}dU.displayName="Swiper";let dQ=(0,p.forwardRef)(function(e,t){let{tag:n="div",children:r,className:i="",swiper:l,zoom:a,virtualIndex:o,...s}=void 0===e?{}:e,c=(0,p.useRef)(null),[u,d]=(0,p.useState)("swiper-slide");function h(e,t,n){t===c.current&&d(n)}d$(()=>{if(t&&(t.current=c.current),c.current&&l){if(l.destroyed){"swiper-slide"!==u&&d("swiper-slide");return}return l.on("_slideClass",h),()=>{l&&l.off("_slideClass",h)}}}),d$(()=>{l&&c.current&&!l.destroyed&&d(l.getSlideClasses(c.current))},[l]);let f={isActive:u.indexOf("swiper-slide-active")>=0||u.indexOf("swiper-slide-duplicate-active")>=0,isVisible:u.indexOf("swiper-slide-visible")>=0,isDuplicate:u.indexOf("swiper-slide-duplicate")>=0,isPrev:u.indexOf("swiper-slide-prev")>=0||u.indexOf("swiper-slide-duplicate-prev")>=0,isNext:u.indexOf("swiper-slide-next")>=0||u.indexOf("swiper-slide-duplicate-next")>=0},m=()=>"function"==typeof r?r(f):r;return p.createElement(n,dq({ref:c,className:dM(`${u}${i?` ${i}`:""}`),"data-swiper-slide-index":o},s),p.createElement(dz.Provider,{value:f},a?p.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":"number"==typeof a?a:void 0},m()):m()))});dQ.displayName="SwiperSlide";var dK=n(9742);function dG(e,t,n){let[r,i]=a6(null==n?void 0:n.in,e,t);return+a8(r)==+a8(i)}let dY={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},dZ=new Uint8Array(16),dJ=[];for(let e=0;e<256;++e)dJ.push((e+256).toString(16).slice(1));let dX=function(e,t,n){if(dY.randomUUID&&!t&&!e)return dY.randomUUID();let r=(e=e||{}).random??e.rng?.()??function(){if(!a){if("undefined"==typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");a=crypto.getRandomValues.bind(crypto)}return a(dZ)}();if(r.length<16)throw Error("Random bytes length must be >= 16");if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){if((n=n||0)<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return(dJ[e[t+0]]+dJ[e[t+1]]+dJ[e[t+2]]+dJ[e[t+3]]+"-"+dJ[e[t+4]]+dJ[e[t+5]]+"-"+dJ[e[t+6]]+dJ[e[t+7]]+"-"+dJ[e[t+8]]+dJ[e[t+9]]+"-"+dJ[e[t+10]]+dJ[e[t+11]]+dJ[e[t+12]]+dJ[e[t+13]]+dJ[e[t+14]]+dJ[e[t+15]]).toLowerCase()}(r)},d0="EB_SCRIPT_".concat(Date.now()),d1=e=>{let{eventId:t,modal:n,onOrderComplete:r,iFrameHeight:i,iFrameAutoAdapt:l,promoCode:a}=e,[o]=(0,p.useState)("EB_".concat(dX())),[s,c]=(0,p.useState)(!1),u=(0,p.useCallback)(()=>{c(!0)},[]),d=(0,p.useCallback)(e=>{console.error("Failed to load Eventbrite script from ".concat(scriptUrl)),console.error(e),c(!1)},[c]);return(0,p.useEffect)(()=>{var e;if(null==(e=window)?void 0:e.EBWidgets)return void c(!0);let t=document.getElementById(d0);t&&t.remove();let n=document.createElement("script");return n.id=d0,n.async=!0,n.src="https://www.eventbrite.com/static/widgets/eb_widgets.js",n.addEventListener("load",u),n.addEventListener("error",d),n.addEventListener("abort",d),document.body.appendChild(n),()=>{var e,t;n.removeEventListener("load",u),n.removeEventListener("error",d),n.removeEventListener("abort",d),n.remove(),(null==(e=window)?void 0:e.EBWidgets)&&(null==(t=window)||delete t.EBWidgets);let r=document.getElementById("eventbrite-widget-modal-overlay");r&&r.remove(),c(!1)}},[c,u,d]),(0,p.useEffect)(()=>
24{if(!s)return;let e={widgetType:"checkout",eventId:t,onOrderComplete:r,modal:n};n?e.modalTriggerElementId=o:(e.iframeContainerId=o,e.iframeContainerHeight=i||600,e.iframeAutoAdapt=l||100),a&&(e.promoCode=a),window.EBWidgets.createWidget(e)},[s]),s?{id:o}:null},d2={MODAL:"modal"},d5=e=>{let{eventId:t,widgetType:n,buttonText:r,iframeHeight:i,className:l}=e,a=(0,p.useCallback)(()=>{console.log("Order was completed successfully")},[]),o=n===d2.MODAL,s=d1({eventId:t,modal:o,onOrderComplete:a,iFrameHeight:i?Number(i):void 0});return(0,h.jsx)(h.Fragment,{children:t?o?s&&(0,h.jsx)("span",{id:s.id,className:l,type:"button",children:r}):s&&(0,h.jsx)("div",{id:s.id}):null})},d3={en:oj,fr:oE},d4={grey:{layout:"bg-grey-50",heading:"text-red-500"},white:{layout:"bg-white",heading:"text-red-500"},blue:{layout:"bg-blue-100",heading:"text-blue-900"}},d6={en:oj,fr:oE},d8=e=>{let{latestNewsArticles:t,inFocusNewsArticels:n,latestNewsHeading:r,inFocusNewsHeading:i,linkText:l,className:a,locale:o}=e,[s,c]=(0,p.useState)(o||"en");(0,p.useEffect)(()=>{o||c(C())},[o]);let{t:u}=(0,y.Bd)("common"),{t:d}=(0,y.Bd)("datasources"),f=u("urls.newsInsights"),m=e=>{let{categorySlug:t,currentLocale:n}=e;return d("news-categories.".concat(t),t)},g=e=>{let{categories:t}=e;return t&&Array.isArray(t)&&0!==t.length?t.map((e,n)=>(0,h.jsxs)("span",{children:[(0,h.jsx)(m,{categorySlug:e,currentLocale:s}),n<t.length-1?" / ":""]},"".concat(e,"-").concat(n))):null};return(null==t?void 0:t.length)||(null==n?void 0:n.length)?(0,h.jsx)("div",{className:"h-full w-full lg:w-72 flex-col justify-center ".concat(a),children:(0,h.jsxs)("div",{className:"bg-grey-900 lg:bg-grey-950 lg:bg-opacity-50 lg:backdrop-blur-lg p-6",children:[(null==t?void 0:t.length)?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("h2",{className:"text-xs uppercase",children:r}),(0,h.jsx)("ul",{className:"border-t border-b border-grey-700 lg:border-grey-500 py-3 my-3 space-y-6",children:t.map(e=>{var t,n,r;return(0,h.jsx)("li",{className:"text-sm",children:(0,h.jsxs)(n9,{className:"group space-y-1",href:"/".concat(e.full_slug),children:[(0,h.jsxs)("h3",{className:"text-xs text-grey-100 uppercase",children:[ob(new Date(e.first_published_at),"PP",{locale:d6[s]}).toLocaleUpperCase(),"  –  ",(0,h.jsx)(g,{categories:e.content.Category})]}),(0,h.jsx)("div",{className:"group-hover:underline group-active:text-grey-100 text-base",children:(null==e||null==(t=e.content)?void 0:t.Succinct_Title)?null==e||null==(n=e.content)?void 0:n.Succinct_Title:null==e||null==(r=e.content)?void 0:r.Title})]})},e.id)})})]}):void 0,(null==n?void 0:n.length)?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("h2",{className:"text-xs uppercase",children:i}),(0,h.jsx)("ul",{className:"border-t border-b border-grey-700 lg:border-grey-500 py-3 my-3 space-y-6",children:n.map(e=>{var t,n,r;return(0,h.jsx)("li",{className:"text-sm",children:(0,h.jsxs)(n9,{className:"group space-y-1",href:"/".concat(e.full_slug),children:[(0,h.jsxs)("h3",{className:"text-xs text-grey-100 uppercase",children:[ob(new Date(e.first_published_at),"PP",{locale:d6[s]}).toLocaleUpperCase(),"  –  ",(0,h.jsx)(g,{categories:e.content.Category})]}),(0,h.jsx)("div",{className:"group-hover:underline group-active:text-grey-100 text-base",children:(null==e||null==(t=e.content)?void 0:t.Succinct_Title)?null==e||null==(n=e.content)?void 0:n.Succinct_Title:null==e||null==(r=e.content)?void 0:r.Title})]})},e.id)})})]}):void 0,(0,h.jsxs)(n9,{href:f,className:"group flex items-center",children:[(0,h.jsx)("span",{className:"group-hover:underline group-active:text-grey-100 capitalize",children:l}),(0,h.jsx)("svg",{className:"ml-2.5 group-hover:ml-4 transition-all duration-150 ease-in-out",width:"16",height:"8",viewBox:"0 0 16 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M12.01 3H0V5H12.01V8L16 4L12.01 0V3Z",fill:"white"})})]})]})}):void 0},d9=em("Y0ASKBJHCJ","2380008829670b05a2f8edca316a5818"),d7={...d9,search:e=>e.every(e=>{let{params:t}=e;return!t.query})?Promise.resolve({results:e.map(()=>({hits:[],nbHits:0,nbPages:0,page:0,processingTimeMS:0,hitsPerPage:0,exhaustiveNbHits:!1,query:"",params:""}))}):d9.search(e)},he=e=>{let{type:t,config:n}=e,r=(0,g.useRouter)(),{t:i}=(0,y.Bd)("common"),l=aF({locale:r.locale});return(0,h.jsx)("form",{onSubmit:e=>{e.preventDefault();let t=e.target[0].value;e.target[0].value="",r.push({pathname:i("urls.search"),query:{term:t}})},action:i("urls.search"),method:"GET",className:"w-full bg-grey-50 ".concat("Resources_Overview_Layout"===t||"News_Overview_Layout"===t?"":"hidden md:block"),role:"search",children:(0,h.jsx)(w.A,{as:"aside",className:"relative",mobile:!1,tablet:!1,children:(0,h.jsxs)(nT,{searchClient:d7,indexName:l,future:{preserveSharedStateOnUnmount:!1},children:[(0,h.jsx)(n8,{facetFilters:["content.component:-Resource_Details"]}
24),(0,h.jsx)(aO,{placeholder:i("search.placeholder","What can we help you find?"),popularItems:[i("search.popular.items[0]","insurance basics"),i("search.popular.items[1]","auto insurance"),i("search.popular.items[2]","VIN Services")],popularLabel:"".concat(i("search.popular.label","Popular Searches"),":")}),(0,h.jsx)(aM,{})]})})})},ht={en:oj,fr:oE},hn=e=>{var t,n,r,i,l,a,o,s,c,u,d;let{blok:f,story:m,locale:g}=e,{t:v}=(0,y.Bd)("common"),[x,b]=(0,p.useState)(g||"en");return(0,p.useEffect)(()=>{g||b(C())},[g]),(0,h.jsxs)("div",{children:[(0,h.jsxs)("p",{className:"uppercase mb-3",children:[null==m||null==(n=m.content)||null==(t=n.Event_Type)?void 0:t.replace(/-/g," ")," Event"]}),(0,h.jsx)("h1",{className:"mb-6 text-7xl md:text-9xl md:w-[40rem]",children:null==f?void 0:f.Heading.replace(/\u2028/g,"")}),(0,h.jsx)(cf,{className:"text-3xl md:w-1/2 lg:w-[38%] mb-8 text-white",children:null==f?void 0:f.Short_Blurb}),(0,h.jsxs)("p",{className:"mb-8",children:[ob(new Date(null==m||null==(r=m.content)?void 0:r.Start_Datetime),"EEEE",{locale:ht[x]}),", ",ob(new Date(null==m||null==(i=m.content)?void 0:i.Start_Datetime),"MMMM dd, yyyy",{locale:ht[x]})]}),(null==m||null==(l=m.content)?void 0:l.Event_Id)?(0,h.jsx)(d5,{className:"cursor-pointer bg-red-500 text-white hover:bg-red-700 active:bg-red-900 transition duration-150 ease-in-out font-body py-3 px-6 mb-12 inline-block",eventId:null==m||null==(a=m.content)?void 0:a.Event_Id,widgetType:d2.MODAL,buttonText:v("components.Hero_Event_Details.register","Register")}):(null==m||null==(s=m.content)||null==(o=s.Registration_Link)?void 0:o.url)?(0,h.jsx)("div",{children:(0,h.jsx)(n9,{href:"".concat(G(null==m||null==(c=m.content)?void 0:c.Registration_Link)),target:null==m||null==(d=m.content)||null==(u=d.Registration_Link)?void 0:u.target,className:"bg-red-500 text-white hover:bg-red-700 active:bg-red-900 transition duration-150 ease-in-out font-body py-3 px-6 mb-2 inline-block",children:v("components.Hero_Event_Details.register","Register")})}):null]})},hr={grey:"bg-grey-50",white:"bg-white"},hi=e=>{var t,n,r,i,l,a,o,s;let{blok:c}=e,[u,d]=(0,p.useState)(null),f=e=>{u&&e===u?d(null):d(e)};return(0,h.jsxs)("li",{className:"grow group",children:[u===(null==c?void 0:c._uid)&&(0,h.jsxs)("div",{className:"modalBg bg-grey-500/75 fixed inset-0 center z-50 flex items-center justify-around",children:[(0,h.jsx)("div",{className:"w-full h-full absolute",onClick:()=>f(null==c?void 0:c._uid)}),(0,h.jsxs)("div",{className:"modal max-w-4xl bg-white relative max-h-screen lg:max-h-[95%] overflow-auto",children:[(0,h.jsx)("button",{className:"absolute top-5 right-5 md:top-12 md:right-12 text-gray-500 hover:text-red-500 active:text-red-700",onClick:()=>f(null==c?void 0:c._uid),children:(0,h.jsx)("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M28 2.82L25.18 0L14 11.18L2.82 0L0 2.82L11.18 14L0 25.18L2.82 28L14 16.82L25.18 28L28 25.18L16.82 14L28 2.82Z",fill:"currentColor"})})}),(0,h.jsxs)("div",{className:"md:grid grid-cols-2 pt-16 px-6 pb-6 md:py-24 md:px-12 max-h-5/6 overflow-y-auto gap-x-12",children:[(0,h.jsx)("div",{children:(0,h.jsx)("picture",{className:"w-1/2 md:w-full mb-6 md:mb-12 aspect-square flex",children:(0,h.jsx)(J,{loading:"lazy",sizes:"(max-width: 912px) 50vw, 376px",srcSet:Z(null==c||null==(t=c.Image)?void 0:t.filename,376,"1:1",null==c||null==(n=c.Image)?void 0:n.focus),src:"".concat(null==c||null==(r=c.Image)?void 0:r.filename,"/m/6x0/"),alt:(null==c||null==(i=c.Image)?void 0:i.alt)||"".concat((null==c?void 0:c.Name)||""," Profile Image"),className:"h-full w-full object-cover"})})}),(0,h.jsxs)("div",{children:[(0,h.jsx)("h2",{className:"text-red-500 text-6xl md:text-8xl font-display mb-6 md:mb-12",children:null==c?void 0:c.Name}),(0,h.jsx)("p",{className:"text-3xl text-grey-500 mb-6 md:mb-12",children:(null==c?void 0:c.Title)||(null==c?void 0:c.Position_Title)}),(0,h.jsx)(cf,{className:"text-grey-500 text-base prose-p:pb-4",children:_(null==c?void 0:c.Description)?null==c?void 0:c.Description:null==c?void 0:c.Biography})]})]})]})]}),(0,h.jsxs)("button",{onClick:()=>f(null==c?void 0:c._uid),className:"w-full text-left mb-12",children:[(0,h.jsx)("div",{className:"p-[50%] relative",children:(0,h.jsx)("picture",{className:"absolute object-cover w-full h-full top-0 left-0 aspect-square flex",children:(0,h.jsx)(J,{loading:"lazy",sizes:"(max-width: 639px) 100vw, (max-width: 768px) calc(50vw-2.25rem), (max-width: 1280px) calc(25vw-1.125rem), 395px",srcSet:Z(null==c||null==(l=c.Image)?void 0:l.filename,395,"1:1",null==c||null==(a=c.Image)?void 0:a.focus),src:"".concat(null==c||null==(o=c.Image)?void 0:o.filename,"/m/6x0/"),alt:(null==c||null==(s=c.Image)?void 0:s.alt)||"".concat((null==c?void 0:c.Name)||""," Modal Image"),className:"h-full w-full object-cover"})})}),(0,h.jsxs)("div",{className:"flex mt-4 ",children:[(0,h.jsx)("span",{className:"text-4xl md:text-5xl flex-1 text-grey-500 group-hover:text-red-500 group-active:text-red-700",children:null==c?void 0:c.Name}),(0,h.jsx)("div",{children:(0,h.jsx)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"flex-1 text-blue-500 group-hover:text-red-500 group-active:text-red-700",children:(0,h.jsx)("path",{d:"M20 0C8.96 0 0 8.96 0 20C0 31.04 8.96 40 20 40C31.04 40 40 31.04 40 20C40 8.96 31.04 0 20 0ZM30 22H22V30H18V22H10V18H18V10H22V18H30V22Z",fill:"currentColor"})})})]}),(0,h.jsx)("p",{className:"text-grey-500 font-display font-medium uppercase",children:null==c?void 0:c.Title}),(0,h.jsx)("p",{className:"text-grey-500",children:(null==c?void 0:c.Organization)||(null==c?void 0:c.Position_Title)})]})]})},hl=e=>{var t;return null!=(t=({red:{background:"bg-red-100",list:"bg-white"},grey:{background:"bg-grey-50",list:"bg-white"},green:{background:"bg-green-100",list:"bg-white"},blue:{background:"bg-blue-100",list:"bg-white"},teal:{background:"bg-teal-100",list:"bg-white"},sage:{background:"bg-sage-100",list:"bg-white"},white:{background:"bg-white",list:"bg-grey-50"}})[e])?t:"bg-grey-50"},ha={en:oj,fr:oE},ho=e=>{var t,n,r,i,l,a,o,s,c,u,d,f,g,v,x,b,j,S,N;let{blok:E,story:P,categories:T,regions:O,articles:R,search:L=!1,layout:I="news",locale:A}=e,{t:M}=(0,y.Bd)("common"),{t:F}=(0,y.Bd)("datasources"),[D,H]=(0,p.useState)(A||"en");(0,p.useEffect)(()=>{A?H(A):H(C())},[A]);let B=M("urls.latestNews"),$=e=>{let{categorySlug:t,currentLocale:n}=e;return F("news-categories.".concat(t),t)},z=e=>{let{regionSlug:t,currentLocale:n}=e,r=F("news-regions.".concat(t),t);return"en"===n?r.toUpperCase():r},V=e=>{let{categories:t,fallbackName:n,translatedSlugs:r}=e;if(!t||!Array.isArray(t)||0===t.length){let e=null==r?void 0:r.find(e=>e.lang===D);return(null==e?void 0:e.name)||n||null}return t.map((e,n)=>(0,h.jsxs)("span",{children:[(0,h.jsx)($,{categorySlug:e,currentLocale:D}),n<t.length-1?", ":""]},"".concat(e,"-").concat(n)))},W=e=>{let{regions:t}=e;return t&&Array.isArray(t)&&0!==t.length?t.map((e,n)=>(0,h.jsxs)("span",{children:[(0,h.jsx)(z,{regionSlug:e,currentLocale:D}),n<t.length-1?", ":""]},"".concat(e,"-").concat(n))):null},U="trending"===I&&null!=(b=null==P||null==(i=P.trendingNews)||null==(r=i[E._uid])||null==(n=r.newsArticles)||null==(t=n.data)?void 0:t.stories)?b:[],q="trending"===I&&null!=(j=null==P||null==(o=P.trendingNews)||null==(a=o[E._uid])||null==(l=a.filters)?void 0:l.categoryFilter)?j:null,Q="trending"===I&&null!=(S=null==P||null==(u=P.trendingNews)||null==(c=u[E._uid])||null==(s=c.filters)?void 0:s.regionFilter)?S:null;"trending"===I&&(null==P||null==(g=P.trendingNews)||null==(f=g[E._uid])||null==(d=f.filters)||d.tagFilter);let K="news"===I?null!=(N=(null==R?void 0:R.length)+1)?N:9:5,[G,Y]=(0,p.useState)(null==P||null==(x=P.trendingNews)||null==(v=x[E._uid])?void 0:v.newsArticles.total),[X,ee]=(0,p.useState)(1),[et,en]=(0,p.useState)(!1),[er,ei]=(0,p.useState)(U),[el,ea]=(0,p.useState)(q),[eo,es]=(0,p.useState)(Q),ec=async()=>{en(!0);try{let{stories:e,total:t}=await oI({starts_with:"news-insights/news/",sort_by:"created_at:desc",is_startpage:0,per_page:K,page:X,filter_query:{...null!==el&&{Category:{any_in_array:el}},...null!==eo&&""!==eo&&{Region:{any_in_array:eo}}}},D);Y(t||0),ei([...new Set([...er,...e||[]].flat())]),en(!1),((null==er?void 0:er.length)===(t||0)||(e||[]).length===(t||0))&&en(null)}catch(e){console.error("Error loading more news articles:",e),en(!1)}},eu=()=>{ee(X+1)},ed=e=>{el!==e&&(ee(1),ei([]),ea(e))}
24,eh=e=>{eo!==e&&(ee(1),ei([]),es(e))},ep=()=>null===et?er.length:"news"===I?(null==er?void 0:er.length)<K?er.length:4*Math.floor(er.length/4)+1:er.length;return(0,p.useEffect)(()=>{"news"===I&&ec()},[el]),(0,p.useEffect)(()=>{"news"===I&&ec()},[eo]),(0,p.useEffect)(()=>{"news"===I&&ec()},[X]),(0,h.jsx)("section",{id:oW((null==E?void 0:E.Heading)||"trending-news"),className:"bg-grey-50",...(0,m.K1)(E),children:(0,h.jsxs)(w.A,{as:"div",className:"".concat("trending"===I?"py-12 md:py-24":""," ").concat(L?"md:py-40":void 0),children:["trending"===I?(0,h.jsx)("h2",{className:"text-red-500 text-5xl md:text-6xl font-extrabold font-display pb-6 md:pb-12",children:(null==E?void 0:E.Heading)||"{t('components.News_Grid.headings.trending')}"}):void 0,(0,h.jsxs)("div",{className:"flex w-full justify-between items-end",children:[(null==T?void 0:T.length)?(0,h.jsxs)("div",{className:"space-y-3",children:[(0,h.jsx)("span",{className:"text-xs text-gray-500",children:M("components.News_Grid.filters.topic")}),(0,h.jsxs)("nav",{className:"flex flex-wrap",children:[(0,h.jsx)("button",{className:"mr-3 mb-3 px-6 py-3 ".concat(null===el?"bg-red-500 hover:bg-red-700 active:bg-red-900 transition duration-150 ease-in-out text-white":"bg-gray-200"),onClick:()=>{ed(null)},children:M("components.News_Grid.filters.all")}),T.map(e=>(0,h.jsx)("button",{className:"mr-3 mb-3 px-6 py-3 ".concat(el===e.value?"bg-red-500 hover:bg-red-700 active:bg-red-900 transition duration-150 ease-in-out text-white":"bg-gray-200"),onClick:()=>{ed(e.value)},children:e.name},e.id))]})]}):void 0,"news"===I?(0,h.jsxs)("div",{className:"flex flex-col space-y-3",children:[(0,h.jsx)("span",{className:"text-xs text-gray-500",children:M("components.News_Grid.filters.region")}),(0,h.jsxs)("select",{onChange:e=>eh(e.target.value),className:"mt-2 block w-full border-0 py-3 pl-4 pr-10 text-gray-900 ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-grey-100 sm:text-sm sm:leading-6",children:[(0,h.jsx)("option",{value:"",children:M("components.News_Grid.filters.all")}),null==O?void 0:O.map(e=>(0,h.jsx)("option",{value:e.value,children:e.name},e.id))]})]}):void 0]}),"news"===I?(0,h.jsx)("p",{className:"py-12 text-gray-500",children:(0,h.jsx)(y.x6,{i18nKey:"components.News_Grid.results.showing_count",values:{current:ep(),total:G},components:{bold:(0,h.jsx)("span",{className:"font-bold"})}})}):void 0,(0,h.jsxs)("ul",{className:"grid grid-cols-1  \n                ".concat("news"===I?"md:grid-cols-4 gap-12":"","\n                ").concat("trending"===I?"sm:grid-cols-2 lg:grid-cols-3 gap-6 xl:gap-x-12":"","\n        "),children:[null==er?void 0:er.slice(0,ep()).map((e,t)=>{var n,r,i,l,a,o,s,c,u,d,p,f,m,g,v,y,x,b,w,j,S,C,N,E,P,T,O,R,L,A,F;return(0,h.jsx)("li",{className:"group hover:drop-shadow-mobile active:drop-shadow-active-mobile md:hover:drop-shadow-desktop md:active:drop-shadow-active-desktop transition-all duration-150 ease-in-out break-normal \n                ".concat("news"===I&&0===t?"md:col-span-2 md:row-span-2":"","\n                ").concat("trending"===I&&t<2?"md:row-span-3":"last:hidden sm:last:block lg:last:hidden","\n            "),children:(0,h.jsxs)(n9,{href:null!=(A="/".concat(null==e?void 0:e.full_slug))?A:"",className:"bg-white md:h-full ".concat("news"===I&&0===t||"trending"===I&&t<2?"flex flex-col mb-6 sm:mb-0 sm:h-full":"flex flex-row ".concat("trending"===I?"":"md:flex-col")),children:[(0,h.jsx)("picture",{className:"bg-grey-300 ".concat("news"===I&&0===t||"trending"===I&&t<2?"aspect-video h-2/5 w-full":"min-w-[150px] sm:min-w-[125px] md:min-w-[150px] max-w-min w-fit h-auto md:h-full aspect-square ".concat("trending"===I?"":"md:w-full md:h-full md:aspect-video")," inline-block"),children:(null==e||null==(r=e.content)||null==(n=r.Image)?void 0:n.filename)?"news"===I&&0===t||"trending"===I&&t<2?(0,h.jsx)(J,{loading:"lazy",sizes:"(max-width: 639px) 100vw, (max-width: 1023px) 50vw, (max-width: 1279px) 33vw, 323px",srcSet:Z(null==e||null==(i=e.content.Image)?void 0:i.filename,639,0,null==e||null==(l=e.content.Image)?void 0:l.focus),src:"".concat(null==e||null==(a=e.content.Image)?void 0:a.filename,"/m/6x0/"),alt:(null==e||null==(o=e.content.Image)?void 0:o.alt)||"".concat((null==e||null==(s=e.content)?void 0:s.Title)||(null==e||null==(c=e.content)?void 0:c.Succinct_Title)||""," News Image"),className:"h-full w-full object-cover"}):(0,h.jsx)(J,{loading:"lazy",sizes:"300px",srcSet:Z(null==e||null==(u=e.content.Image)?void 0:u.filename,300,0,null==e||null==(d=e.content.Image)?void 0:d.focus),src:"".concat(null==e||null==(p=e.content.Image)?void 0:p.filename,"/m/6x0/"),alt:(null==e||null==(f=e.content.Image)?void 0:f.alt)||"".concat((null==e||null==(m
24=e.content)?void 0:m.Title)||(null==e||null==(g=e.content)?void 0:g.Succinct_Title)||""," News Image"),className:"h-full w-full object-cover"}):(0,h.jsx)(J,{loading:"lazy",src:null!=(F=k(e,t))?F:"",alt:(null==e?void 0:e.Heading)||"".concat((null==e||null==(v=e.content)?void 0:v.Title)||(null==e||null==(y=e.content)?void 0:y.Succinct_Title)||""," News Placeholder Image"),className:"h-full w-full object-cover"})}),(0,h.jsxs)("div",{className:"p-6 flex flex-col justify-between md:h-full relative ".concat("news"===I&&0===t||"trending"===I&&t<2?"space-y-6 md:h-3/5 sm:flex-grow md:flex-grow-0":"space-y-3 py-3 px-3 pl-6 md:px-6 w-full"),children:[(0,h.jsxs)("div",{className:"".concat("news"===I&&0===t||"trending"===I&&t<2?"space-y-6":"space-y-3"),children:[(null==e||null==(x=e.content)?void 0:x.Category)||(null==e?void 0:e.name)?(0,h.jsx)("h3",{className:"text-xs font-semibold uppercase border-b-2 border-red-500 py-2",children:(0,h.jsx)(V,{categories:null==e||null==(b=e.content)?void 0:b.Category,fallbackName:null==e||null==(w=e.content)?void 0:w.Title,translatedSlugs:null==e?void 0:e.translated_slugs},"category-".concat(D,"-").concat(null==e?void 0:e.uuid))}):void 0,(0,h.jsx)("div",{children:(0,h.jsx)("h4",{className:"text-grey-500 group-hover:text-red-500 group-active:text-red-700 flex-grow font-display ".concat("news"===I&&0===t||"trending"===I&&t<2?"text-4xl md:text-5xl md:font-medium font-display":"line-clamp-2 text-3xl font-display"),children:"news"===I&&0===t?null==e||null==(j=e.content)?void 0:j.Title:(null==e||null==(S=e.content)?void 0:S.Succinct_Title)||(null==e||null==(C=e.content)?void 0:C.Title)})}),"news"===I&&0===t||"trending"===I&&t<2&&_(null==e||null==(N=e.content)?void 0:N.About_Blurb)?(0,h.jsx)(cf,{className:"text-base",children:null==e||null==(E=e.content)?void 0:E.About_Blurb}):null,"spotlight"===I?(0,h.jsx)("svg",{className:"absolute ".concat("news"===I&&0===t||"trending"===I&&t<2?"right-7 bottom-8":"bottom-5 right-3 md:right-7"),width:"22",height:"12",viewBox:"0 0 22 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M16.3467 4.66675H0.333374V7.33342H16.3467V11.3334L21.6667 6.00008L16.3467 0.666748V4.66675Z",fill:"#5A8034"})}):void 0]}),"spotlight"!==I?(0,h.jsxs)("div",{className:"text-xs text-grey-500 line-clamp-2",children:[ob(new Date(e.first_published_at),"PP",{locale:ha[D]}),"News_Article_Layout"===e.content.component&&(null==(P=e.content)?void 0:P.Region)?(0,h.jsxs)(h.Fragment,{children:[" | ",(0,h.jsx)(W,{regions:null==(T=e.content)?void 0:T.Region},"region-".concat(D,"-").concat(null==e?void 0:e.uuid))]}):"","Insights_Article_Layout"===e.content.component&&(null==(O=e.content)?void 0:O.Author)?(0,h.jsx)(h.Fragment,{children:" | ".concat(M("components.News_Grid.article.written_by",{author:oQ(null==e||null==(R=e.content)?void 0:R.Author)}))}):""]}):void 0]})]})},"".concat(null==e||null==(L=e.content)?void 0:L._uid,"_").concat(t))}),(null==er?void 0:er.length)||!et?void 0:(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("li",{className:"animate-pulse opacity-80 md:col-span-2 md:row-span-2 bg-white",children:[(0,h.jsx)("picture",{className:"bg-grey-300 w-full aspect-video inline-block"}),(0,h.jsxs)("div",{className:"p-6 flex flex-col h-full relative space-y-6",children:[(0,h.jsx)("div",{className:"text-xs font-semibold uppercase border-b-2 border-red-500 py-2",children:(0,h.jsx)("div",{className:"h-2 w-32 bg-grey-300 rounded"})}),(0,h.jsx)("div",{className:"h-4 bg-slate-200 dark:bg-grey-300 rounded"}),(0,h.jsx)("div",{className:"h-4 w-5/6 bg-slate-200 dark:bg-grey-300 rounded"}),(0,h.jsx)("div",{className:"h-4 w-4/5 bg-slate-200 dark:bg-grey-300 rounded"}),(0,h.jsx)("div",{className:"text-base"}),(0,h.jsxs)("div",{className:"text-xs flex items-center space-x-2",children:[(0,h.jsx)("div",{className:"h-1 w-14 bg-slate-200 dark:bg-grey-300 rounded"}),(0,h.jsx)("span",{children:"|"}),(0,h.jsx)("div",{className:"h-1 w-16 bg-grey-300 dark:bg-grey-300 rounded"})]})]})]}),(0,h.jsxs)("li",{className:"animate-pulse opacity-80 bg-white h-full flex flex-row md:flex-col",children:[(0,h.jsx)("picture",{className:"bg-grey-300 w-64 aspect-square md:w-full md:h-full md:aspect-video inline-block"}),(0,h.jsxs)("div",{className:"p-6 flex flex-col h-full relative space-y-3 py-3 px-3 md:px-6",children:[(0,h.jsx)("h3",{className:"text-xs font-semibold uppercase border-b-2 border-red-500 py-2",children:(0,h.jsx)("div",{className:"h-2 w-24 bg-grey-300 rounded"})}),(0,h.jsx)("h4",{className:"text-grey-500 flex-grow font-display text-3xl line-clamp-4",children:(0,h.jsx)("div",{className:"h-3 bg-grey-300 dark:bg-grey-300 rounded"})}),(0,h.jsxs)("div",{className:"text-xs flex items-center space-x-2",children:[(0,h.jsx)("div",{className:"h-1 w-14 bg-slate-200 dark:bg-grey-300 rounded"}),(0,h.jsx)("span",{children:"|"}),(0,h.jsx)("div",{className:"h-1 w-16 bg-grey-300 dark:bg-grey-300 rounded"})]})]})]}),(0,h.jsxs)("li",{className:"animate-pulse bg-white h-full flex flex-row md:flex-col",children:[(0,h.jsx)("picture",{className:"bg-grey-300 w-64 aspect-square md:w-full md:h-full md:aspect-video inline-block"}),(0,h.jsxs)("div",{className:"p-6 flex flex-col h-full relative space-y-3 py-3 px-3 md:px-6",children:[(0,h.jsx)("h3",{className:"text-xs font-semibold uppercase border-b-2 border-red-500 py-2",children:(0,h.jsx)("div",{className:"h-2 w-24 bg-grey-300 rounded"})}),(0,h.jsx)("h4",{className:"text-grey-500 flex-grow font-display text-3xl line-clamp-4",children:(0,h.jsx)("div",{className:"h-3 bg-grey-300 dark:bg-grey-300 rounded"})}),(0,h.jsxs)("div",{className:"text-xs flex items-center space-x-2",children:[(0,h.jsx)("div",{className:"h-1 w-14 bg-slate-200 dark:bg-grey-300 rounded"}),(0,h.jsx)("span",{children:"|"}),(0,h.jsx)("div",{className:"h-1 w-16 bg-grey-300 dark:bg-grey-300 rounded"})]})]})]}),(0,h.jsxs)("li",{className:"animate-pulse opacity-80 bg-white h-full flex flex-row md:flex-col",children:[(0,h.jsx)("picture",{className:"bg-grey-300 w-64 aspect-square md:w-full md:h-full md:aspect-video inline-block"}),(0,h.jsxs)("div",{className:"p-6 flex flex-col h-full relative space-y-3 py-3 px-3 md:px-6",children:[(0,h.jsx)("h3",{className:"text-xs font-semibold uppercase border-b-2 border-red-500 py-2",children:(0,h.jsx)("div",{className:"h-2 w-24 bg-grey-300 rounded"})}),(0,h.jsx)("h4",{className:"text-grey-500 flex-grow font-display text-3xl line-clamp-4",children:(0,h.jsx)("div",{className:"h-3 bg-grey-300 dark:bg-grey-300 rounded"})}),(0,h.jsxs)("div",{className:"text-xs flex items-center space-x-2",children:[(0,h.jsx)("div",{className:"h-1 w-14 bg-slate-200 dark:bg-grey-300 rounded"}),(0,h.jsx)("span",{children:"|"}),(0,h.jsx)("div",{className:"h-1 w-16 bg-grey-300 dark:bg-grey-300 rounded"})]})]})]}),(0,h.jsxs)("li",{className:"animate-pulse opacity-80 bg-white h-full flex flex-row md:flex-col",children:[(0,h.jsx)("picture",{className:"bg-grey-300 w-64 aspect-square md:w-full md:h-full md:aspect-video inline-block"}),(0,h.jsxs)("div",{className:"p-6 flex flex-col h-full relative space-y-3 py-3 px-3 md:px-6",children:[(0,h.jsx)("h3",{className:"text-xs font-semibold uppercase border-b-2 border-red-500 py-2",children:(0,h.jsx)("div",{className:"h-2 w-24 bg-grey-300 rounded"})}),(0,h.jsx)("h4",{className:"text-grey-500 flex-grow font-display text-3xl line-clamp-4",children:(0,h.jsx)("div",{className:"h-3 bg-grey-300 dark:bg-grey-300 rounded"})}),(0,h.jsxs)("div",{className:"text-xs flex items-center space-x-2",children:[(0,h.jsx)("div",{className:"h-1 w-14 bg-slate-200 dark:bg-grey-300 rounded"}),(0,h.jsx)("span",{children:"|"}),(0,h.jsx)("div",{className:"h-1 w-16 bg-grey-300 dark:bg-grey-300 rounded"})]})]})]})]})]}),et?(0,h.jsxs)("button",{className:"mt-20 mx-auto block px-6 py-3 bg-red-500 hover:bg-red-700 active:bg-red-900 transition duration-150 ease-in-out text-white relative",children:[(0,h.jsx)("span",{className:"invisible",children:M("components.News_Grid.buttons.show_more")}),(0,h.jsxs)("div",{className:"absolute left-1/2 transform -translate-y-1/2 top-1/2 -translate-x-1/2 flex items-center",children:[(0,h.jsxs)("svg",{className:"animate-spin -ml-1 mr-3 h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,h.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,h.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),(0,h.jsx)("span",{children:M("components.News_Grid.loading")})]})]}):(0,h.jsx)("button",{onClick:()=>eu(),className:"".concat(null===et||"trending"===I?"hidden":""," mt-20 mx-auto block px-6 py-3 bg-red-500 hover:bg-red-700 active:bg-red-900 transition duration-150 ease-in-out text-white"),children:M("components.News_Grid.buttons.show_more")}),"trending"===I?(0,h.jsx)("button",{onClick:()=>eu(),className:"mt-6 md:mt-12 mx-auto block bg-red-500 hover:bg-red-700 active:bg-red-900 transition duration-150 ease-in-out text-white",children:(0,h.jsx)(n9,{href:B,className:"px-6 py-3 block",children:M("components.News_Grid.buttons.view_more")})}):void 0]})})},hs={en:oj,fr:oE},hc=e=>{let{ev:t,categories:n,past:r,locale:i}=e,[l,a]=(0,p.useState)(1),[o,s]=(0,p.useState)(t),[c,u]=(0,p.useState)(!0),[d,f]=(0,p.useState)("all-events"),[m,g]=(0,p.useState)(i||"en");(0,p.useEffect)(()=>{i||g(C())},[i]);let v=e=>{if("en"===m)return"/".concat(e.full_slug);
24let t=oM(e,m);return"/".concat(t)},y=n.length>0?"[Start_Datetime][gt_date]":"[End_Datetime][lt_date]",x=async()=>{try{let e=l+1;a(e);let{stories:t}=await oI({content_type:"Event_Detail_Layout",sort_by:"created_at:desc",is_startpage:0,per_page:3,page:e,filter_query:n.length>0?{[y]:{gt_date:ob(new Date,"yyyy-MM-dd HH:mm")}}:{Start_Datetime:{lt_date:ob(new Date,"yyyy-MM-dd HH:mm")},End_Datetime:{lt_date:ob(new Date,"yyyy-MM-dd HH:mm")}}},m);(t||[]).length<3&&u(!1),s([...o,...t||[]])}catch(e){console.error("Error loading more events:",e),u(!1)}};ob(new Date,"yyyy-MM-dd HH:mm"),ob(new Date,"yyyy-MM-dd HH:mm"),ob(new Date,"yyyy-MM-dd HH:mm"),ob(new Date,"yyyy-MM-dd HH:mm"),ob(new Date,"yyyy-MM-dd HH:mm"),ob(new Date,"yyyy-MM-dd HH:mm"),ob(new Date,"yyyy-MM-dd HH:mm"),ob(new Date,"yyyy-MM-dd HH:mm"),n.length;let b=async()=>{try{a(1);let{stories:e}=await oI({content_type:"Event_Detail_Layout",sort_by:"created_at:desc",is_startpage:0,per_page:3,page:1,filter_query:n.length>0?{[y]:{gt_date:ob(new Date,"yyyy-MM-dd HH:mm")}}:{Start_Datetime:{lt_date:ob(new Date,"yyyy-MM-dd HH:mm")},End_Datetime:{lt_date:ob(new Date,"yyyy-MM-dd HH:mm")}}},m);(e||[]).length<3?u(!1):u(!0),s(e||[])}catch(e){console.error("Error changing event filters:",e),s([]),u(!1)}};return(0,p.useEffect)(()=>{b()},[d]),(0,h.jsxs)("div",{className:"mt-8",children:[null==n?void 0:n.map((e,t)=>(0,h.jsx)("button",{className:"capitalize transition duration-150 ease-in-out font-body py-3 px-6 mr-3 mb-4 ".concat(d===e.value?"bg-red-500 hover:bg-red-700 active:bg-red-900 text-white":"bg-grey-100 hover:bg-grey-300 active:bg-grey-500 hover:text-grey-700 active:text-grey-50"),onClick:()=>f(e.value),children:e.name},e.name)),(0,h.jsx)("ul",{children:(null==o?void 0:o.length)?null==o?void 0:o.map(e=>{var t;return(0,h.jsx)("li",{className:"list-none",children:null==(t=e.content.Hero)?void 0:t.map((t,n)=>{var r,i,l,a;return(0,h.jsxs)("div",{className:"md:flex my-9 bg-white",children:[(0,h.jsx)("div",{className:"md:w-1/3",children:(0,h.jsx)("picture",{children:(0,h.jsx)(J,{loading:"lazy",sizes:"(max-width: 768px) 100vw, (max-width: 1280px) calc(50vw-1.5rem), 616px",srcSet:Z(null==t||null==(r=t.Full_Width_Image)?void 0:r.filename,616,0,null==t||null==(i=t.Full_Width_Image)?void 0:i.focus),src:"".concat(null==t||null==(l=t.Full_Width_Image)?void 0:l.filename,"/m/6x0/"),alt:(null==t||null==(a=t.Full_Width_Image)?void 0:a.alt)||"".concat(e.name||""," Event Image"),className:"h-full w-full object-cover"})})}),(0,h.jsxs)("div",{className:"md:w-2/3 bg-white px-6 py-6 md:px-12 md:pt-12 md:pb-12",children:[(0,h.jsx)("h3",{className:"text-5xl md:text-6xl font-black",children:e.name}),e.content.End_Datetime&&!dG(new Date(e.content.End_Datetime),new Date(e.content.Start_Datetime))?(0,h.jsxs)("p",{className:"text-xs mt-6",children:[ob(new Date(e.content.Start_Datetime),"MMMM d",{locale:hs[m]})," - ",ob(new Date(e.content.End_Datetime),"MMMM d",{locale:hs[m]}),", ",e.content.City]}):(0,h.jsxs)("p",{className:"text-xs mt-6",children:[ob(new Date(e.content.Start_Datetime),"MMMM d",{locale:hs[m]}),", ",e.content.City]}),(0,h.jsx)(cf,{className:"mt-6 text-grey-500 text-base",children:t.Short_Blurb}),(0,h.jsx)("div",{className:"mt-6",children:(0,h.jsx)(n9,{className:"bg-grey-100 transition duration-150 ease-in-out hover:bg-grey-300 hover:text-grey-700 active:bg-grey-500 active:text-grey-50 font-body py-3 px-6 inline-block",href:v(e),locale:m,children:"See event details"})})]})]},t._uid)})},e.uuid)}):(0,h.jsx)("p",{children:"No events in this category. "})}),c&&(0,h.jsx)("button",{disabled:!c,onClick:()=>x(),className:"bg-red-500 hover:bg-red-700 active:bg-red-900 transition duration-150 ease-in-out mt-20 mx-auto block px-6 py-3 text-white text-center ".concat(c?"":"bg-grey-1001 opacity-40"),children:r?"Show more past events":"Show more events"})]})},hu={en:oj,fr:oE},hd={Questions:e=>{let{className:t}=e;return(0,h.jsx)("svg",{className:"".concat(null!=t?t:"w-3 h-5"," flex-shrink-0"),viewBox:"0 0 60 53",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M11 0C9.3 0 8 1.3 8 3V18H3C1.3 18 0 19.3 0 21V43C0 44.7 1.3 46 3 46H8.2C8.3 46.8 8.3 48.6 7.1 51.6C7 51.9 7 52.3 7.2 52.6C7.4 52.9 7.7 53 8 53H8.1C14.1 52.1 16.1 47.9 16.7 46H29C30.7 46 32 44.7 32 43V38H39.3C40.1 39.7 43 44.3 50.7 46C50.8 46 50.8 46 50.9 46C51.2 46 51.5 45.8 51.7 45.6C51.9 45.3 51.9 44.8 51.7 44.5C49.8 41.3 49.6 39.1 49.7 38H57C58.7 38 60 36.7 60 35V3C60 1.3 58.7 0 57 0H11ZM11 2H57C57.6 2 58 2.4 58 3V35C58 35.6 57.6 36 57 36H49C48.6 36 48.2 36.3 48.1 36.7C48.1 36.8 47.3 39.3 49.1 43.4C42.6 41.2 41.1 36.9 41 36.7C40.8 36.3 40.4 36 40 36H32V21C32 19.9 31.4 18.9 30.5 18.4L34 9.7L38.9 22H35C34.4 22 34 22.4 34 23C34 23.6 34.4 24 35 24H39.7L41.1 27.4C41.3 27.8 41.6 28 42 28C42.1 28 42.2 28 42.4 27.9C42.9 27.7 43.2 27.1 43 26.6L35 6.6C34.8 6.2 34.4 6 34 6C33.6 6 33.2 6.2 33.1 6.6L28.5 18H10V3C10 2.4 10.4 2 11 2ZM3 20H29C29.6 20 30 20.4 30 21V43C30 43.6 29.6 44 29 44H16C15.5 44 15.1 44.4 15 44.8C15 45 14.2 49.1 9.5 50.6C10.8 46.6 10 44.7 9.8 44.5C9.7 44.2 9.4 44 9 44H3C2.4 44 2 43.6 2 43V21C2 20.4 2.4 20 3 20ZM15 24C12.2 24 10 26.2 10 29V35C10 37.8 12.2 40 15 40H17C17.5 40 18 39.9 18.4 39.8L19 41.4C19.2 41.8 19.5 42 19.9 42C20 42 20.1 42 20.3 41.9C20.8 41.7 21.1 41.1 20.9 40.6L20.2 38.8C21.3 37.9 22 36.5 22 35V29C22 26.2 19.8 24 
2417 24H15ZM15 26H17C18.7 26 20 27.3 20 29V35C20 35.7 19.8 36.3 19.4 36.8L18.9 35.6C18.7 35.1 18.1 34.8 17.6 35C17.1 35.2 16.8 35.8 17 36.3L17.6 37.8C17.5 38 17.2 38 17 38H15C13.3 38 12 36.7 12 35V29C12 27.3 13.3 26 15 26ZM35 30C34.4 30 34 30.4 34 31V33C34 33.6 34.4 34 35 34C35.6 34 36 33.6 36 33V31C36 30.4 35.6 30 35 30ZM40 30C39.4 30 39 30.4 39 31V33C39 33.6 39.4 34 40 34C40.6 34 41 33.6 41 33V31C41 30.4 40.6 30 40 30ZM45 30C44.4 30 44 30.4 44 31V33C44 33.6 44.4 34 45 34C45.6 34 46 33.6 46 33V31C46 30.4 45.6 30 45 30ZM50 30C49.4 30 49 30.4 49 31V33C49 33.6 49.4 34 50 34C50.6 34 51 33.6 51 33V31C51 30.4 50.6 30 50 30ZM55 30C54.4 30 54 30.4 54 31V33C54 33.6 54.4 34 55 34C55.6 34 56 33.6 56 33V31C56 30.4 55.6 30 55 30Z",fill:"currentColor"})})},Collision:e=>{let{className:t}=e;return(0,h.jsx)("svg",{className:"".concat(null!=t?t:"w-3 h-5"," flex-shrink-0"),viewBox:"0 0 62 50",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M32.8 0C32.3 0 31.9 0.2 31.5 0.6C31.2 1 31 1.5 31 2L32 15C32 15.6 32.5 16 33.1 16C33.7 16 34.1 15.6 34.1 15L35 2.1C35 1.6 34.9 1 34.5 0.6C34.2 0.3 33.8 0.1 33.4 0C33.2 0 33 0 32.8 0ZM1 12C0.4 12 0 12.4 0 13C0 13.6 0.4 14 1 14H2C2.2 14 2.4 14 2.6 14C3.7 14.1 4.7 14.4 5.6 14.9C6.3 15.4 7 16 7.6 16.8L11.7 22.2C12.6 23.3 13.6 24.3 14.8 25C16.1 25.8 17.6 26.3 19.1 26.5L27.4 27.5C28.3 27.6 29.1 28.2 29.6 29H28.7C27.4 29 26.1 30 26 31.3C25.9 32.8 27 34 28.5 34H30V38H23.9C21.2 35.4 16.9 35.4 14.1 38H1C0.4 38 0 38.4 0 39C0 39.6 0.4 40 1 40H12.6C12.6 40 12.6 40 12.6 40.1C12.3 40.7 12.1 41.4 12 42C11.5 42 3.8 42 1 42C0.4 42 0 42.5 0 43C0 43.6 0.4 44 1 44H12C12.6 47.8 16.2 50.4 20 49.8C23 49.3 25.4 47 25.9 44H28.9C30.6 44 31.9 42.6 31.9 41V30.6C31.9 28.1 30 25.9 27.5 25.6L19.2 24.6C16.8 24.3 14.6 23 13.1 21L9.1 15.6C7.5 13.3 4.8 12 2 12H1ZM54.9 12C51.5 12 48.4 14 46.9 17L43.5 23.6L43.4 24H41C38.2 24 36 26.2 36 29V41C36 42.7 37.3 44 39 44H42.1C42.7 47.8 46.3 50.4 50.1 49.9C53.1 49.4 55.5 47.1 56 44H61C61.6 44 62 43.5 62 43C62 42.5 61.5 42 61 42H55.9C55.8 41.3 55.6 40.6 55.3 40H61C61.6 40 62 39.6 62 39C62 38.4 61.6 38 61 38H53.9C51.2 35.3 46.8 35.3 44.1 38H38V29C38 27.3 39.3 26 41 26H61C61.6 26 62 25.6 62 25C62 24.4 61.6 24 61 24H45.6L48.7 17.9C49.9 15.5 52.3 14 55 14H61C61.6 14 62 13.6 62 13C62 12.4 61.6 12 61 12H54.9ZM33 18C31.9 18 31 18.9 31 20C31 21.1 31.9 22 33 22C34.1 22 35 21.1 35 20C35 18.9 34.1 18 33 18ZM1 24C0.4 24 0 24.4 0 25C0 25.6 0.4 26 1 26H3C3.6 26 4 25.5 4 25C4 24.4 3.6 24 3 24H1ZM7 24C6.4 24 6 24.4 6 25C6 25.5 6.4 26 7 26H11C11.6 26 12 25.5 12 25C12 24.4 11.6 24 11 24H7ZM3 29C2.5 29 2 29.4 2 30V32C2 32.5 2.5 33 3 33C3.5 33 4 32.5 4 32V30C4 29.5 3.6 29 3 29ZM8 29C7.4 29 7 29.4 7 30V32C7 32.5 7.4 33 8 33C8.6 33 9 32.5 9 32V30C9 29.5 8.6 29 8 29ZM13 29C12.4 29 12 29.4 12 30V32C12 32.5 12.4 33 13 33C13.6 33 14 32.5 14 32V30C14 29.5 13.6 29 13 29ZM18 29C17.5 29 17 29.4 17 30V32C17 32.5 17.5 33 18 33C18.5 33 19 32.5 19 32V30C19 29.5 18.5 29 18 29ZM23 29C22.5 29 22 29.4 22 30V32C22 32.5 22.5 33 23 33C23.5 33 24 32.5 24 32V30C24 29.5 23.5 29 23 29ZM41 29C40.5 29 40 29.4 40 30V32C40 32.5 40.5 33 41 33C41.5 33 42 32.5 42 32V30C42 29.5 41.5 29 41 29ZM46 29C45.5 29 45 29.4 45 30V32C45 32.5 45.5 33 46 33C46.5 33 47 32.5 47 32V30C47 29.5 46.5 29 46 29ZM51 29C50.5 29 50 29.4 50 30V32C50 32.5 50.5 33 51 33C51.5 33 52 32.5 52 32V30C52 29.5 51.5 29 51 29ZM56 29C55.5 29 55 29.4 55 30V32C55 32.5 55.5 33 56 33C56.5 33 57 32.5 57 32V30C57 29.5 56.5 29 56 29ZM61 29C60.5 29 60 29.4 60 30V32C60 32.5 60.5 33 61 33C61.5 33 62 32.5 62 32V30C62 29.5 61.5 29 61 29ZM28.5 31H30V32H28.5C28.2 32 28 31.8 28 31.5C28 31.2 28.2 31 28.5 31ZM18.9 38C20 38 21.1 38.3 22 39L22.1 39.1C22.4 39.4 22.8 39.7 23 40C23.5 40.6 23.8 41.3 23.9 42C24 42.3 24 42.7 24 43C24 43.3 24 43.7 23.9 44C23.4 46.3 21.4 48 19 48C16.6 48 14.6 46.3 14.1 44C14 43.7 14 43.4 14 43C14 42.6 14 42.3 14.1 41.9C14.2 41.6 14.3 41 14.5 40.7C14.9 40 15.3 39.5 15.9 39C16.8 38.4 17.8 38.1 18.9 38ZM48.9 38C50 38 51.1 38.3 52 39L52.1 39.1C52.4 39.4 52.8 39.7 53 40C53.5 40.6 53.8 41.3 53.9 42C54 42.3 54 42.7 54 43C54 43.3 54 43.7 53.9 44C53.4 46.3 51.4 48 49 48C46.6 48 44.6 46.3 44.1 44C44 43.7 44 43.4 44 43C44 42.6 44 42.3 44.1 42C44.3 41.3 44.6 40.6 45 40C45.3 39.6 45.6 39.3 45.9 39.1C46.8 38.4 47.8 38.1 48.9 38ZM38 40H42.7C42.4 40.6 42.2 41.3 42.1 42H39C38.5 42 38 41.5 38 41V40ZM25.4 40H30V41C30 41.6 29.5 42 29 42H26C25.8 41.3 25.6 40.7 25.4 40ZM19 41C17.9 41 17 41.9 17 43C17 44.1 17.9 45 19 45C20.1 45 21 44.1 21 43C21 41.9 20.1 41 19 41ZM49 41C47.9 41 47 41.9 47 43C47 44.1 47.9 45 49 45C50.1 45 51 44.1 51 43C51 41.9 50.1 41 49 41Z",fill:"currentColor"})})},Claim:e=>{let{className:t}=e;return(0,h.jsx)("svg",{className:"".concat(null!=t?t:"w-3 h-5"," flex-shrink-0"),viewBox:"0 0 54 62",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M13.7 0C12.4 0 11.1 0.5 10.2 1.5L1.5 10.2C0.5 11.1 0 12.3 0 13.7V53C0 54.7 1.3 56 3 56H30.1C32.4 59.6 36.4 62 41 62C48.2 62 54 56.2 54 49C54 43.6 50.7 39 46 37V3C46 1.3 44.7 0 43 0H13.7ZM14 2H43C43.6 2 44 2.4 44 3V36.4C43 36.2 42 36 41 36C33.8 36 28 41.8 28 49C28 50.8 28.4 52.5 29 54H3C2.4 54 2 53.6 2 53V14H11C12.7 14 14 12.7 14 11V2ZM12 2.5V11C12 11.6 11.6 12 11 12H2.5C2.6 11.8 2.7 11.7 2.9 11.5L11.6 2.8C11.7 2.7 11.8 2.6 12 2.5ZM9 20C8.4 20 8 20.4 8 21C8 21.6 8.4 22 9 22H25C25.6 22 26 21.6 26 21C26 20.4 25.6 20 25 20H9ZM29 20C28.4 20 28 20.4 28 21C28 21.6 28.4 22 29 22H33C33.6 22 34 21.6 34 21C34 20.4 33.6 20 33 20H29ZM9 24C8.4 24 8 24.4 8 25C8 25.6 8.4 26 9 26H29C29.6 26 30 25.6 30 25C30 24.4 29.6 24 29 24H9ZM9 30C8.4 30 8 30.4 8 31C8 31.6 8.4 32 9 32H31C31.6 32 32 31.6 32 31C32 30.4 31.6 30 31 30H9ZM9 34C8.4 34 8 34.4 8 35C8 35.6 8.4 36 9 36H26C26.6 36 27 35.6 27 35C27 34.4 26.6 34 26 34H9ZM41 38C47.1 38 52 42.9 52 49C52 55.1 47.1 60 41 60C34.9 60 30 55.1 30 49C30 42.9 34.9 38 41 38ZM47 44C46.7 44 46.5 44.1 46.3 44.3L39 51.6L35.7 48.3C35.3 47.9 34.7 47.9 34.3 48.3C33.9 48.7 33.9 49.3 34.3 49.7L38.3 53.7C38.5 53.9 38.7 54 39 54C39.3 54 39.5 53.9 39.7 53.7L47.7 45.7C48.1 45.3 48.1 44.7 47.7 44.3C47.5 44.1 47.3 44 47 44ZM5 48C4.4 48 4 48.4 4 49V51C4 51.
246 4.4 52 5 52C5.6 52 6 51.6 6 51V49C6 48.4 5.6 48 5 48ZM10 48C9.4 48 9 48.4 9 49V51C9 51.6 9.4 52 10 52C10.6 52 11 51.6 11 51V49C11 48.4 10.6 48 10 48ZM15 48C14.4 48 14 48.4 14 49V51C14 51.6 14.4 52 15 52C15.6 52 16 51.6 16 51V49C16 48.4 15.6 48 15 48ZM20 48C19.4 48 19 48.4 19 49V51C19 51.6 19.4 52 20 52C20.6 52 21 51.6 21 51V49C21 48.4 20.6 48 20 48ZM25 48C24.4 48 24 48.4 24 49V51C24 51.6 24.4 52 25 52C25.6 52 26 51.6 26 51V49C26 48.4 25.6 48 25 48Z",fill:"currentColor"})})},Protect_Business:e=>{let{className:t}=e;return(0,h.jsx)("svg",{className:"".concat(null!=t?t:"w-3 h-5"," flex-shrink-0"),viewBox:"0 0 52 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M25.9054 0C25.2054 0 24.6054 0.2 24.0054 0.7L22.6054 1.8C18.0054 5.5 12.4054 7.7 6.40541 8.1L2.80541 8.3C1.20541 8.4 -0.0945917 9.8 0.00540834 11.5L0.705408 23C1.50541 33.9 6.50541 43.8 14.7054 51L23.9054 59C24.5054 59.5 25.2054 59.7 25.9054 59.7C26.6054 59.7 27.3054 59.5 27.9054 59L37.1054 51C45.3054 43.8 50.3054 33.9 51.1054 23L51.8054 11.5C51.9054 9.9 50.6054 8.4 49.0054 8.3L45.4054 8.1C39.5054 7.7 33.9054 5.5 29.2054 1.8L27.8054 0.7C27.2054 0.2 26.5054 0 25.9054 0ZM25.9054 2C26.1054 2 26.3054 2.1 26.5054 2.2L27.9054 3.3C32.9054 7.3 38.9054 9.6 45.2054 10L48.8054 10.2C49.3054 10.2 49.8054 10.7 49.7054 11.3L49.0054 22.8C48.3054 32.7 44.0054 41.7 36.8054 48.4V48.3C36.8054 47.7 36.4054 47.3 35.8054 47.3C35.2054 47.3 34.8054 47.7 34.8054 48.3V50.2L26.5054 57.5C26.1054 57.8 25.6054 57.8 25.2054 57.5L16.9054 50.2V48.3C16.9054 47.7 16.5054 47.3 15.9054 47.3C15.3054 47.3 14.9054 47.7 14.9054 48.3V48.4C7.70541 41.8 3.40541 32.8 2.70541 22.9L2.00541 11.4C2.00541 10.9 2.40541 10.4 2.90541 10.3L6.50541 10.1C12.9054 9.7 18.8054 7.4 23.8054 3.4L25.2054 2.3C25.4054 2.1 25.7054 2 25.9054 2ZM25.9054 4.9C25.5054 4.9 25.1054 5 24.8054 5.3L22.2054 7C17.9054 10 12.8054 11.8 7.50541 12.2H6.80541C6.20541 12.2 5.80541 12.7 5.90541 13.3C5.90541 13.8 6.40541 14.2 6.90541 14.2C6.90541 14.2 6.90541 14.2 7.00541 14.2H7.60541C13.2054 13.8 18.7054 11.9 23.3054 8.7L25.9054 6.9L28.5054 8.7C31.3054 10.6 34.3054 12.1 37.6054 13.1C38.1054 13.3 38.7054 13 38.8054 12.4C39.0054 11.9 38.7054 11.3 38.1054 11.2C35.1054 10.3 32.2054 8.9 29.6054 7.1L27.0054 5.2C26.7054 5 26.3054 4.9 25.9054 4.9ZM42.0054 12C41.4054 11.9 40.9054 12.3 40.9054 12.8C40.8054 13.3 41.2054 13.9 41.7054 13.9C42.5054 14 43.3054 14.1 44.1054 14.2H44.7054C44.7054 14.2 44.7054 14.2 44.8054 14.2C45.3054 14.2 45.8054 13.8 45.8054 13.3C45.8054 12.7 45.4054 12.3 44.9054 12.2H44.3054C43.5054 12.1 42.8054 12.1 42.0054 12ZM38.9054 20.4C38.6054 20.4 38.4054 20.5 38.2054 20.7L23.9054 35L16.6054 27.7C16.2054 27.3 15.6054 27.3 15.2054 27.7C14.8054 28.1 14.8054 28.7 15.2054 29.1L23.2054 37.1C23.4054 37.3 23.7054 37.4 23.9054 37.4C24.2054 37.4 24.4054 37.3 24.6054 37.1L39.6054 22.1C40.0054 21.7 40.0054 21.1 39.6054 20.7C39.4054 20.5 39.1054 20.4 38.9054 20.4ZM20.9054 47.4C20.3054 47.4 19.9054 47.8 19.9054 48.4V50.4C19.9054 51 20.3054 51.4 20.9054 51.4C21.5054 51.4 21.9054 51 21.9054 50.4V48.4C21.9054 47.9 21.4054 47.4 20.9054 47.4ZM25.9054 47.4C25.3054 47.4 24.9054 47.8 24.9054 48.4V50.4C24.9054 51 25.3054 51.4 25.9054 51.4C26.5054 51.4 26.9054 51 26.9054 50.4V48.4C26.9054 47.9 26.4054 47.4 25.9054 47.4ZM30.9054 47.4C30.3054 47.4 29.9054 47.8 29.9054 48.4V50.4C29.9054 51 30.3054 51.4 30.9054 51.4C31.5054 51.4 31.9054 51 31.9054 50.4V48.4C31.9054 47.9 31.4054 47.4 30.9054 47.4Z",fill:"currentColor"})})}},hh=e=>{let{iconType:t,className:n}=e,r=hd[t]||null;return r?(0,h.jsx)(r,{className:n}):null},hp=e=>{var t;let{blok:n,className:r,onBlur:i,type:l}=e;return(0,h.jsx)("div",{className:r,onBlur:i,children:(0,h.jsx)(n9,{className:"".concat(l," ").concat({footer:"hover:underline active:text-red-100",utility:"hover:text-red-500 active:text-red-700 capitalize",rich_text:"inline-block text-center transition duration-150 ease-in-out py-3 px-6 bg-red-500 hover:bg-red-700 active:bg-red-900 text-white md:text-white md:hover:text-white"}[l]),href:G(null==n?void 0:n.Link),target:null==n||null==(t=n.Link)?void 0:t.target,...(0,m.K1)(n),children:n.Title})},n._uid)},hf=e=>{var t,n,r,i,l,a,o,s;let{blok:c,onBlur:u}=e,[d,f]=(0,p.useState)(null),{t:m}=(0,y.Bd)("common"),g=()=>{d?f(void 0):f(c._uid)},v=()=>{f(void 0)};return(0,h.jsxs)("li",{className:"group/child font-display text-red-500 xl:text-gray-500 hover:bg-grey-50 hover:text-red-500 ".concat(d===(null==c?void 0:c._uid)?"xl:bg-grey-50 xl:text-red-500":""),children:[(0,h.jsxs)("div",{className:"flex items-center justify-between ".concat((null==c||null==(t=c.Children)?void 0:t.length)?"pr-9":"pr-0"),children:[(0,h.jsx)(n9,{href:G(null==c?void 0:c.Link),target:null==c||null==(n=c.Link)?void 0:n.target,className:"uppercase hidden xl:flex xl:items-center xl:justify-between w-full xl:font-medium tracking-wider pl-12 xl:pl-6 py-5 px-6",children:null==c?void 0:c.Title}),(0,h.jsx)("button",{className:"".concat((null==c||null==(r=c.Children)?void 0:r.length)?"xl:block":"xl:hidden"," hidden"),onClick:g,"aria-haspopup":"true","aria-expanded":!!d,"aria-label":m("components.Menu_Section.toggle_submenu",{name:null==c?void 0:c.Name}),children:(0,h.jsx)("svg",{width:"12",height:"18",viewBox:"0 0 12 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M2.5575 0L0.442505 2.115L7.3125 9L0.442505 15.885L2.5575 18L11.5575 9L2.5575 0Z",fill:"#882345"})})}),(0,h.jsxs)(n9,{href:G(null==c?void 0:c.Link),target:null==c||null==(i=c.Link)?void 0:i.target,className:"xl:hidden text-lg leading-6 pl-12 py-5 px-6 pr-9",onBlur:u,children:[null==c?void 0:c.Title," "]}),(0,h.jsx)("button",{className:"xl:hidden ".concat((null==c||null==(l=c.Children)?void 0:l.length)?"block":"hidden"),onClick:g,"aria-haspopup":"true","aria-expanded":!!d,"aria-label":m("components.Menu_Section.toggle_submenu",{name:null==c?void 0:c.Name}),children:(0,h.jsx)("svg",{className:"transition-transform duration-300 ease-in-out ".concat(d===(null==c?void 0:c._uid)?"rotate-90":""),width:"12",height:"18",viewBox:"0 0 12 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M2.55641 0L0.441406 2.115L7.31141 9L0.441406 15.885L2.55641 18L11.5564 9L2.55641 0Z",fill:"#5456
245B"})})})]}),(null==c||null==(a=c.Children)?void 0:a.length)?(0,h.jsxs)("div",{className:"h-full group-hover/child:xl:absolute group-hover/child:xl:flex divide-y divide-grey-50 xl:divide-y-0 bg-grey-100 xl:bg-grey-50 xl:p-12 xl:w-1/3 top-0 right-0 flex-col z-10 ".concat(d===c._uid?"flex xl:absolute":"hidden xl:hidden"," ").concat((null==c||null==(o=c.Children)?void 0:o.length)>0?"block":"hidden"),children:[(0,h.jsx)("div",{className:"hidden xl:block text-base font-bold font-body py-5",children:(0,h.jsx)("span",{children:(null==c?void 0:c.Children_Heading)||"Explore this section"})}),(0,h.jsx)("ul",{className:"xl:space-y-3",children:null==c||null==(s=c.Children)?void 0:s.map((e,t)=>{var n;return(0,h.jsx)(hp,{className:"py-5 pl-20 pr-6 xl:p-0 text-red-700 xl:text-red-500 hover:underline active:underline xl:hover:text-red-700 active:text-red-900",blok:e,onBlur:t===(null==c||null==(n=c.Children)?void 0:n.length)-1?v:null},e._uid)})})]}):void 0]})},hm=e=>{let{blok:t,index:n,type:r}=e,i=(e=>{switch(e){case"small":return{maxWidth:"max-w-[150px]",height:"h-[120px]",maxHeight:"max-h-[120px]",imageWidth:150};case"medium":default:return{maxWidth:"max-w-[225px]",height:"h-[160px]",maxHeight:"max-h-[160px]",imageWidth:225};case"large":return{maxWidth:"max-w-[300px]",height:"h-[200px]",maxHeight:"max-h-[200px]",imageWidth:300}}})(t.Logo_Size),l=(e,n)=>{var r,i,l,a,o;if(!(null==e||null==(r=e.Image)?void 0:r.filename))return null;let s={src:"".concat(e.Image.filename,"/m/6x0/"),alt:e.Image.alt||"Sponsors Image",className:"object-contain max-w-full max-h-full w-auto h-auto"};switch(t.Logo_Size){case"small":return(0,h.jsx)(J,{...s,sizes:"(max-width: 768px) 150px, (max-width: 1280px) 150px, 150px",srcSet:Z(e.Image.filename,150,0,null==t||null==(i=t.Image)?void 0:i.focus)});case"medium":return(0,h.jsx)(J,{...s,sizes:"(max-width: 768px) 225px, (max-width: 1280px) 225px, 225px",srcSet:Z(e.Image.filename,225,0,null==t||null==(l=t.Image)?void 0:l.focus)});case"large":return(0,h.jsx)(J,{...s,sizes:"(max-width: 768px) 300px, (max-width: 1280px) 300px, 300px",srcSet:Z(e.Image.filename,300,0,null==t||null==(a=t.Image)?void 0:a.focus)});default:return(0,h.jsx)(J,{...s,sizes:"(max-width: 768px) 225px, (max-width: 1280px) 225px, 225px",srcSet:Z(e.Image.filename,225,0,null==t||null==(o=t.Image)?void 0:o.focus)})}};return(0,h.jsx)("div",{id:oW(null==t?void 0:t.Title),className:"w-full",...(0,m.K1)(t),children:(0,h.jsx)(w.A,{className:"pb-4 md:pb-8",mobile:"Intro"!==r&&"News_Article_Layout"!==r,tablet:"Intro"!==r&&"News_Article_Layout"!==r,desktop:"Intro"!==r&&"News_Article_Layout"!==r,children:(0,h.jsxs)("div",{className:"pb-32 ".concat((null==t?void 0:t.Align_With_Sidebar)?"md:w-2/3 md:pr-8":""),children:[(null==t?void 0:t.Title)?(0,h.jsx)(uT,{index:n,className:"self-stretch text-center justify-start text-zinc-600 text-xs font-semibold font-display uppercase tracking-[3.25px] pb-10",children:null==t?void 0:t.Title}):void 0,(0,h.jsx)("div",{className:"flex flex-wrap justify-center items-center gap-14",children:null==t?void 0:t.Sponsors_Item.map(e=>(0,h.jsxs)(S(),{href:e.Url.url,target:"_blank",className:"flex flex-col justify-start items-center w-full md:w-auto ".concat(i.maxWidth),children:[(0,h.jsx)("picture",{className:"flex justify-center items-center w-full ".concat(i.height," ").concat(i.maxWidth," ").concat(i.maxHeight),children:l(e,i)}),(null==e?void 0:e.Heading)?(0,h.jsx)("div",{className:"text-center text-base font-normal font-display mt-6",children:null==e?void 0:e.Heading}):null]},e._uid))})]})})})};function hg(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function hv(...e){return t=>{let n=!1,r=e.map(e=>{let r=hg(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():hg(e[t],null)}}}}function hy(...e){return p.useCallback(hv(...e),e)}function hx(e){let t=function(e){let t=p.forwardRef((e,t)=>{let{children:n,...r}=e;if(p.isValidElement(n)){var i;let e,l,a=(i=n,(l=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(l=(e
24=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),o=function(e,t){let n={...t};for(let r in t){let i=e[r],l=t[r];/^on[A-Z]/.test(r)?i&&l?n[r]=(...e)=>{let t=l(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...l}:"className"===r&&(n[r]=[i,l].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==p.Fragment&&(o.ref=t?hv(t,a):a),p.cloneElement(n,o)}return p.Children.count(n)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=p.forwardRef((e,n)=>{let{children:r,...i}=e,l=p.Children.toArray(r),a=l.find(hj);if(a){let e=a.props.children,r=l.map(t=>t!==a?t:p.Children.count(e)>1?p.Children.only(null):p.isValidElement(e)?e.props.children:null);return(0,h.jsx)(t,{...i,ref:n,children:p.isValidElement(e)?p.cloneElement(e,void 0,r):null})}return(0,h.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var hb=hx("Slot"),hw=Symbol("radix.slottable");function hj(e){return p.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===hw}function hS(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var l=t.length;for(n=0;n<l;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r);return i}(e))&&(r&&(r+=" "),r+=t);return r}let hk=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,h_=e=>{let t=hP(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{let n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),hC(n,t)||hE(e)},getConflictingClassGroupIds:(e,t)=>{let i=n[e]||[];return t&&r[e]?[...i,...r[e]]:i}}},hC=(e,t)=>{if(0===e.length)return t.classGroupId;let n=e[0],r=t.nextPart.get(n),i=r?hC(e.slice(1),r):void 0;if(i)return i;if(0===t.validators.length)return;let l=e.join("-");return t.validators.find(({validator:e})=>e(l))?.classGroupId},hN=/^\[(.+)\]$/,hE=e=>{if(hN.test(e)){let t=hN.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},hP=e=>{let{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return hL(Object.entries(e.classGroups),n).forEach(([e,n])=>{hT(n,r,e,t)}),r},hT=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){(""===e?t:hO(t,e)).classGroupId=n;return}if("function"==typeof e)return hR(e)?void hT(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,i])=>{hT(i,hO(t,e),n,r)})})},hO=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},hR=e=>e.isThemeGetter,hL=(e,t)=>t?e.map(([e,n])=>[e,n.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,n])=>[t+e,n])):e)]):e,hI=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=new Map,r=new Map,i=(i,l)=>{n.set(i,l),++t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(i(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):i(e,t)}}},hA=e=>{let{separator:t,experimentalParseClassName:n}=e,r=1===t.length,i=t[0],l=t.length,a=e=>{let n,a=[],o=0,s=0;for(let c=0;c<e.length;c++){let u=e[c];if(0===o){if(u===i&&(r||e.slice(c,c+l)===t)){a.push(e.slice(s,c)),s=c+l;continue}if("/"===u){n=c;continue}}"["===u?o++:"]"===u&&o--}let c=0===a.length?e:e.substring(s),u=c.startsWith("!"),d=u?c.substring(1):c;return{modifiers:a,hasImportantModifier:u,baseClassName:d,maybePostfixModifierPosition:n&&n>s?n-s:void 0}};return n?e=>n({className:e,parseClassName:a}):a},hM=e=>{if(e.length<=1)return e;let t=[],n=[];return e.forEach(e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)}),t.push(...n.sort()),t},hF=e=>({cache:hI(e.cacheSize),parseClassName:hA(e),...h_(e)}),hD=/\s+/,hH=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,l=[],a=e.trim().split(hD),o="";for(let e=a.length-1;e>=0;e-=1){let t=a[e],{modifiers:s,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:d}=n(t),h=!!d,p=r(h?u.substring(0,d):u);if(!p){if(!h||!(p=r(u))){o=t+(o.length>0?" "+o:o);continue}h=!1}let f=hM(s).join(":"),m=c?f+"!":f,g=m+p;if(l.includes(g))continue;l.push(g);let v=i(p,h);for(let e=0;e<v.length;++e){let t=v[e];l.push(m+t)}o=t+(o.length>0?" "+o:o)}return o};function hB(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=h$(e))&&(r&&(r+=" "),r+=t);return r}let h$=e=>{let t;if("string"==typeof e)return e;let n="";for(let r=0;r<e.length;r++)e[r]&&(t=h$(e[r]))&&(n&&(n+=" "),n+=t);return n},hz=e=>{let t=t=>t[e]||[];return t.isThemeGetter=!0,t},hV=/^\[(?:([a-z-]+):)?(.+)\]$/i,hW=/^\d+\/\d+$/,hU=new Set(["px","full","screen"]),hq=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hQ=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,hK=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,hG=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,hY=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,hZ=e=>hX(e)||hU.has(e)||hW.test(e),hJ=e=>pn(e,"length",pr),hX=e=>!!e&&!Number.isNaN(Number(e)),h0=e=>pn(e,"number",hX),h1=e=>!!e&&Number.isInteger(Number(e)),h2=e=>e.endsWith("%")&&hX(e.slice(0,-1)),h5=e=>hV.test(e),h3=e=>hq.test(e),h4=new Set(["length","size","percentage"]),h6=e=>pn(e,h4,pi),h8=e=>pn(e,"position",pi),h9=new Set(["image","url"]),h7=e=>pn(e,h9,pa),pe=e=>pn(e,"",pl),pt=()=>!0,pn=(e,t,n)=>{let r=hV.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},pr=e=>hQ.test(e)&&!hK.test(e),pi=()=>!1,pl=e=>hG.test(e),pa=e=>hY.test(e);Symbol.toStringTag;let po=function(e,...t){let n,r,i,l=function(o){return r=(n=hF(t.reduce((e,t)=>
vendor: 7,761 bytes, line 24
24t(e),e()))).cache.get,i=n.cache.set,l=a,a(o)};function a(e){let t=r(e);if(t)return t;let l=hH(e,n);return i(e,l),l}return function(){return l(hB.apply(null,arguments))}}(()=>{let e=hz("colors"),t=hz("spacing"),n=hz("blur"),r=hz("brightness"),i=hz("borderColor"),l=hz("borderRadius"),a=hz("borderSpacing"),o=hz("borderWidth"),s=hz("contrast"),c=hz("grayscale"),u=hz("hueRotate"),d=hz("invert"),h=hz("gap"),p=hz("gradientColorStops"),f=hz("gradientColorStopPositions"),m=hz("inset"),g=hz("margin"),v=hz("opacity"),y=hz("padding"),x=hz("saturate"),b=hz("scale"),w=hz("sepia"),j=hz("skew"),S=hz("space"),k=hz("translate"),_=()=>["auto","contain","none"],C=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto",h5,t],E=()=>[h5,t],P=()=>["",hZ,hJ],T=()=>["auto",hX,h5],O=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],R=()=>["solid","dashed","dotted","double","none"],L=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>["start","end","center","between","around","evenly","stretch"],A=()=>["","0",h5],M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],F=()=>[hX,h5];return{cacheSize:500,separator:":",theme:{colors:[pt],spacing:[hZ,hJ],blur:["none","",h3,h5],brightness:F(),borderColor:[e],borderRadius:["none","","full",h3,h5],borderSpacing:E(),borderWidth:P(),contrast:F(),grayscale:A(),hueRotate:F(),invert:A(),gap:E(),gradientColorStops:[e],gradientColorStopPositions:[h2,hJ],inset:N(),margin:N(),opacity:F(),padding:E(),saturate:F(),scale:F(),sepia:A(),skew:F(),space:E(),translate:E()},classGroups:{aspect:[{aspect:["auto","square","video",h5]}],container:["container"],columns:[{columns:[h3]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...O(),h5]}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",h1,h5]}],basis:[{basis:N()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",h5]}],grow:[{grow:A()}],shrink:[{shrink:A()}],order:[{order:["first","last","none",h1,h5]}],"grid-cols":[{"grid-cols":[pt]}],"col-start-end":[{col:["auto",{span:["full",h1,h5]},h5]}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":[pt]}],"row-start-end":[{row:["auto",{span:[h1,h5]},h5]}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",h5]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",h5]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...I()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...I(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...I(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",h5,t]}],"min-w":[{"min-w":[h5,t,"min","max","fit"]}],"max-w":[{"max-w":[h5,t,"none","full","min","max","fit","prose",{screen:[h3]},h3]}],h:[{h:[h5,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[h5,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[h5,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[h5,t,"auto","min","max","fit"]}],"font-size":[{text:["base",h3,hJ]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",h0]}],"font-family":[{font:[pt]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",h5]}],"line-clamp":[{"line-clamp":["none",hX,h0]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",hZ,h5]}],"list-image":[{"list-image":["none",h5]}],"list-style-type":[{list:["none","disc","decimal",h5]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...R(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",hZ,hJ]}],"underline-offset":[{"underline-offset":["auto",hZ,h5]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",h5]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",h5]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...O(),h8]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",h6]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},h7]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[f]}
vendor: 5,180 bytes, line 24
24],"gradient-via-pos":[{via:[f]}],"gradient-to-pos":[{to:[f]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[l]}],"rounded-s":[{"rounded-s":[l]}],"rounded-e":[{"rounded-e":[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-ss":[{"rounded-ss":[l]}],"rounded-se":[{"rounded-se":[l]}],"rounded-ee":[{"rounded-ee":[l]}],"rounded-es":[{"rounded-es":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...R(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:R()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...R()]}],"outline-offset":[{"outline-offset":[hZ,h5]}],"outline-w":[{outline:[hZ,hJ]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[hZ,hJ]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",h3,pe]}],"shadow-color":[{shadow:[pt]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...L(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":L()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",h3,h5]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[x]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",h5]}],duration:[{duration:F()}],ease:[{ease:["linear","in","out","in-out",h5]}],delay:[{delay:F()}],animate:[{animate:["none","spin","ping","pulse","bounce",h5]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[b]}],"scale-x":[{"scale-x":[b]}],"scale-y":[{"scale-y":[b]}],rotate:[{rotate:[h1,h5]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[j]}],"skew-y":[{"skew-y":[j]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",h5]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",h5]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
24],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",h5]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[hZ,hJ,h0]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function ps(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return po(hS(t))}let pc=((e,t)=>n=>{var r;if((null==t?void 0:t.variants)==null)return hS(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:i,defaultVariants:l}=t,a=Object.keys(i).map(e=>{let t=null==n?void 0:n[e],r=null==l?void 0:l[e];if(null===t)return null;let a=hk(t)||hk(r);return i[e][a]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return hS(e,a,null==t||null==(r=t.compoundVariants)?void 0:r.reduce((e,t)=>{let{class:n,className:r,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...l,...o}[t]):({...l,...o})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)})("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-red-600 text-white shadow-sm hover:bg-red-600/70",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),pu=p.forwardRef((e,t)=>
24{let{className:n,variant:r,size:i,asChild:l=!1,...a}=e;return(0,h.jsx)(l?hb:"button",{className:ps(pc({variant:r,size:i,className:n})),ref:t,...a})});pu.displayName="Button";let pd=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ph=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),pp=e=>{let t=ph(e);return t.charAt(0).toUpperCase()+t.slice(1)},pf=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim()},pm=e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};var pg={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let pv=(0,p.forwardRef)((e,t)=>{let{color:n="currentColor",size:r=24,strokeWidth:i=2,absoluteStrokeWidth:l,className:a="",children:o,iconNode:s,...c}=e;return(0,p.createElement)("svg",{ref:t,...pg,width:r,height:r,stroke:n,strokeWidth:l?24*Number(i)/Number(r):i,className:pf("lucide",a),...!o&&!pm(c)&&{"aria-hidden":"true"},...c},[...s.map(e=>{let[t,n]=e;return(0,p.createElement)(t,n)}),...Array.isArray(o)?o:[o]])}),py=(e,t)=>{let n=(0,p.forwardRef)((n,r)=>{let{className:i,...l}=n;return(0,p.createElement)(pv,{ref:r,iconNode:t,className:pf("lucide-".concat(pd(pp(e))),"lucide-".concat(e),i),...l})});return n.displayName=pp(e),n},px=py("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]),pb=py("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);var pw=/[\\\/_+.#"@\[\(\{&]/,pj=/[\\\/_+.#"@\[\(\{&]/g,pS=/[\s-]/,pk=/[\s-]/g;function p_(e){return e.toLowerCase().replace(pk," ")}function pC(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function pN(e,t=[]){let n=[],r=()=>{let t=n.map(e=>p.createContext(e));return function(n){let r=n?.[e]||t;return p.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=p.createContext(r),l=n.length;n=[...n,r];let a=t=>{let{scope:n,children:r,...a}=t,o=n?.[e]?.[l]||i,s=p.useMemo(()=>a,Object.values(a));return(0,h.jsx)(o.Provider,{value:s,children:r})};return a.displayName=t+"Provider",[a,function(n,a){let o=a?.[e]?.[l]||i,s=p.useContext(o);if(s)return s;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}var pE=globalThis?.document?p.useLayoutEffect:()=>{},pP=f[" useId ".trim().toString()]||(()=>void 0),pT=0;function pO(e){let[t,n]=p.useState(pP());return pE(()=>{e||n(e=>e??String(pT++))},[e]),e||(t?`radix-${t}`:"")}var pR=f[" useInsertionEffect ".trim().toString()]||pE;function pL({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,l,a]=function({defaultProp:e,onChange:t}){let[n,r]=p.useState(e),i=p.useRef(n),l=p.useRef(t);return pR(()=>{l.current=t},[t]),p.useEffect(()=>{i.current!==n&&(l.current?.(n),i.current=n)},[n,i]),[n,r,l]}({defaultProp:t,onChange:n}),o=void 0!==e,s=o?e:i;{let t=p.useRef(void 0!==e);p.useEffect(()=>{let e=t.current;if(e!==o){let t=o?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=o},[o,r])}return[s,p.useCallback(t=>{if(o){let n="function"==typeof t?t(e):t;n!==e&&a.current?.(n)}else l(t)},[o,e,l,a])]}Symbol("RADIX:SYNC_STATE");var pI=n(8477),pA=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=hx(`Primitive.${t}`),r=p.forwardRef((e,r)=>{let{asChild:i,...l}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,h.jsx)(i?n:t,{...l,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function pM(e){let t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...e)=>t.current?.(...e),[])}var pF="dismissableLayer.update",pD=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pH=p.forwardRef((e,t)=>
24{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:l,onInteractOutside:a,onDismiss:o,...c}=e,u=p.useContext(pD),[d,f]=p.useState(null),m=d?.ownerDocument??globalThis?.document,[,g]=p.useState({}),v=hy(t,e=>f(e)),y=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=y.indexOf(x),w=d?y.indexOf(d):-1,j=u.layersWithOutsidePointerEventsDisabled.size>0,S=w>=b,k=function(e,t=globalThis?.document){let n=pM(e),r=p.useRef(!1),i=p.useRef(()=>{});return p.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){p$("dismissableLayer.pointerDownOutside",n,l,{discrete:!0})},l={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=r,t.addEventListener("click",i.current,{once:!0})):r()}else t.removeEventListener("click",i.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...u.branches].some(e=>e.contains(t));S&&!n&&(i?.(e),a?.(e),e.defaultPrevented||o?.())},m),_=function(e,t=globalThis?.document){let n=pM(e),r=p.useRef(!1);return p.useEffect(()=>{let e=e=>{e.target&&!r.current&&p$("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;![...u.branches].some(e=>e.contains(t))&&(l?.(e),a?.(e),e.defaultPrevented||o?.())},m);return!function(e,t=globalThis?.document){let n=pM(e);p.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{w===u.layers.size-1&&(r?.(e),!e.defaultPrevented&&o&&(e.preventDefault(),o()))},m),p.useEffect(()=>{if(d)return n&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(s=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),pB(),()=>{n&&1===u.layersWithOutsidePointerEventsDisabled.size&&(m.body.style.pointerEvents=s)}},[d,m,n,u]),p.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),pB())},[d,u]),p.useEffect(()=>{let e=()=>g({});return document.addEventListener(pF,e),()=>document.removeEventListener(pF,e)},[]),(0,h.jsx)(pA.div,{...c,ref:v,style:{pointerEvents:j?S?"auto":"none":void 0,...e.style},onFocusCapture:pC(e.onFocusCapture,_.onFocusCapture),onBlurCapture:pC(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:pC(e.onPointerDownCapture,k.onPointerDownCapture)})});function pB(){let e=new CustomEvent(pF);document.dispatchEvent(e)}function p$(e,t,n,{discrete:r}){let i=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});if(t&&i.addEventListener(e,t,{once:!0}),r)i&&pI.flushSync(()=>i.dispatchEvent(l));else i.dispatchEvent(l)}pH.displayName="DismissableLayer",p.forwardRef((e,t)=>{let n=p.useContext(pD),r=p.useRef(null),i=hy(t,r);return p.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,h.jsx)(pA.div,{...e,ref:i})}).displayName="DismissableLayerBranch";var pz="focusScope.autoFocusOnMount",pV="focusScope.autoFocusOnUnmount",pW={bubbles:!1,cancelable:!0},pU=p.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:l,...a}=e,[o,s]=p.useState(null),c=pM(i),u=pM(l),d=p.useRef(null),f=hy(t,e=>s(e)),m=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(r){let e=function(e){if(m.paused||!o)return;let t=e.target;o.contains(t)?d.current=t:pK(d.current,{select:!0})},t=function(e){if(m.paused||!o)return;let t=e.relatedTarget;null!==t&&(o.contains(t)||pK(d.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&pK(o)});return o&&n.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,o,m.paused]),p.useEffect(()=>{if(o){pG.add(m);let e=document.activeElement;if(!o.contains(e)){let t=new CustomEvent(pz,pW);o.addEventListener(pz,c),o.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(pK(r,{select:t}),document.activeElement!==n)return}(pq(o).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&pK(o))}return()=>{o.removeEventListener(pz,c),setTimeout(()=>{let t=new CustomEvent(pV,pW);o.addEventListener(pV,u),o.dispatchEvent(t),t.defaultPrevented||pK(e??document.body,{select:!0}),o.removeEventListener(pV,u),pG.remove(m)},0)}}},[o,c,u,m]);let g=p.useCallback(e=>{if(!n&&!r||m.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,l]=function(e){let t=pq(e);return[pQ(t,e),pQ(t.reverse(),e)]}(t);r&&l?e.shiftKey||i!==l?e.shiftKey&&i===r&&(e.preventDefault(),n&&pK(l,{select:!0})):(e.preventDefault(),n&&pK(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,m.paused]);return(0,h.jsx)(pA.div,{tabIndex:-1,...a,ref:f,onKeyDown:g})});function pq(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function pQ(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function pK(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}pU.displayName="FocusScope";var pG=function(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),(e=pY(e,t)).unshift(t)},remove(t){e=pY(e,t),e[0]?.resume()}}}();function pY(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var pZ=p.forwardRef((e,t)=>
24{let{container:n,...r}=e,[i,l]=p.useState(!1);pE(()=>l(!0),[]);let a=n||i&&globalThis?.document?.body;return a?pI.createPortal((0,h.jsx)(pA.div,{...r,ref:t}),a):null});pZ.displayName="Portal";var pJ=e=>{let{present:t,children:n}=e,r=function(e){var t,n;let[r,i]=p.useState(),l=p.useRef(null),a=p.useRef(e),o=p.useRef("none"),[s,c]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},p.useReducer((e,t)=>n[e][t]??e,t));return p.useEffect(()=>{let e=pX(l.current);o.current="mounted"===s?e:"none"},[s]),pE(()=>{let t=l.current,n=a.current;if(n!==e){let r=o.current,i=pX(t);e?c("MOUNT"):"none"===i||t?.display==="none"?c("UNMOUNT"):n&&r!==i?c("ANIMATION_OUT"):c("UNMOUNT"),a.current=e}},[e,c]),pE(()=>{if(r){let e,t=r.ownerDocument.defaultView??window,n=n=>{let i=pX(l.current).includes(n.animationName);if(n.target===r&&i&&(c("ANIMATION_END"),!a.current)){let n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)})}},i=e=>{e.target===r&&(o.current=pX(l.current))};return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}c("ANIMATION_END")},[r,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:p.useCallback(e=>{l.current=e?getComputedStyle(e):null,i(e)},[])}}(t),i="function"==typeof n?n({present:r.isPresent}):p.Children.only(n),l=hy(r.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(i));return"function"==typeof n||r.isPresent?p.cloneElement(i,{ref:l}):null};function pX(e){return e?.animationName||"none"}pJ.displayName="Presence";var p0=0;function p1(){p.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??p2()),document.body.insertAdjacentElement("beforeend",e[1]??p2()),p0++,()=>{1===p0&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),p0--}},[])}function p2(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var p5=function(){return(p5=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function p3(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}Object.create;Object.create;var p4=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),p6="width-before-scroll-bar";function p8(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var p9="undefined"!=typeof window?p.useLayoutEffect:p.useEffect,p7=new WeakMap;function fe(e){return e}var ft=function(e){void 0===e&&(e={});var t,n,r,i,l=(t=null,void 0===n&&(n=fe),r=[],i=!1,{read:function(){if(i)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:null},useMedium:function(e){var t=n(e,i);return r.push(t),function(){r=r.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(i=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){i=!0;var t=[];if(r.length){var n=r;r=[],n.forEach(e),t=r}var l=function(){var n=t;
24t=[],n.forEach(e)},a=function(){return Promise.resolve().then(l)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}});return l.options=p5({async:!0,ssr:!1},e),l}(),fn=function(){},fr=p.forwardRef(function(e,t){var n,r,i,l,a=p.useRef(null),o=p.useState({onScrollCapture:fn,onWheelCapture:fn,onTouchMoveCapture:fn}),s=o[0],c=o[1],u=e.forwardProps,d=e.children,h=e.className,f=e.removeScrollBar,m=e.enabled,g=e.shards,v=e.sideCar,y=e.noRelative,x=e.noIsolation,b=e.inert,w=e.allowPinchZoom,j=e.as,S=e.gapMode,k=p3(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=(n=[a,t],r=function(e){return n.forEach(function(t){return p8(t,e)})},(i=(0,p.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,l=i.facade,p9(function(){var e=p7.get(l);if(e){var t=new Set(e),r=new Set(n),i=l.current;t.forEach(function(e){r.has(e)||p8(e,null)}),r.forEach(function(e){t.has(e)||p8(e,i)})}p7.set(l,n)},[n]),l),C=p5(p5({},k),s);return p.createElement(p.Fragment,null,m&&p.createElement(v,{sideCar:ft,removeScrollBar:f,shards:g,noRelative:y,noIsolation:x,inert:b,setCallbacks:c,allowPinchZoom:!!w,lockRef:a,gapMode:S}),u?p.cloneElement(p.Children.only(d),p5(p5({},C),{ref:_})):p.createElement(void 0===j?"div":j,p5({},C,{className:h,ref:_}),d))});fr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},fr.classNames={fullWidth:p6,zeroRight:p4};var fi=function(e){var t=e.sideCar,n=p3(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return p.createElement(r,p5({},n))};fi.isSideCarExport=!0;var fl=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=c||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,l;(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),l=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(l)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},fa=function(){var e=fl();return function(t,n){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},fo=function(){var e=fa();return function(t){return e(t.styles,t.dynamic),null}},fs={left:0,top:0,right:0,gap:0},fc=function(e){return parseInt(e||"",10)||0},fu=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[fc(n),fc(r),fc(i)]},fd=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return fs;var t=fu(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},fh=fo(),fp="data-scroll-locked",ff=function(e,t,n,r){var i=e.left,l=e.top,a=e.right,o=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(o,"px ").concat(r,";\n  }\n  body[").concat(fp,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(i,"px;\n    padding-top: ").concat(l,"px;\n    padding-right: ").concat(a,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(o,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(o,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(p4," {\n    right: ").concat(o,"px ").concat(r,";\n  }\n  \n  .").concat(p6," {\n    margin-right: ").concat(o,"px ").concat(r,";\n  }\n  \n  .").concat(p4," .").concat(p4," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(p6," .").concat(p6," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(fp,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(o,"px;\n  }\n")},fm=function(){var e=parseInt(document.body.getAttribute(fp)||"0",10);return isFinite(e)?e:0},fg=function(){p.useEffect(function(){return document.body.setAttribute(fp,(fm()+1).toString()),function(){var e=fm()-1;e<=0?document.body.removeAttribute(fp):document.body.setAttribute(fp,e.toString())}},[])},fv=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;fg();var l=p.useMemo(function(){return fd(i)},[i]);return p.createElement(fh,{styles:ff(l,!t,i,n?"":"!important")})},fy=!1;if("undefined"!=typeof window)try{var fx=Object.defineProperty({},"passive",{get:function(){return fy=!0,!0}});window.addEventListener("test",fx,fx),window.removeEventListener("test",fx,fx)}catch(e){fy=!1}var fb=!!fy&&{passive:!1},fw=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},fj=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),fS(e,r)){var i=fk(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},fS=function(e,t){return"v"===e?fw(t,"overflowY"):fw(t,"overflowX")},fk=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},f_=function(e,t,n,r,i){var l,a=(l=window.getComputedStyle(t).direction,"h"===e&&"rtl"===l?-1:1),o=a*r,s=n.target,c=t.contains(s),u=!1,d=o>0,h=0,p=0;do{var f=fk(e,s),m=f[0],g=f[1]-f[2]-a*m;
24(m||g)&&fS(e,s)&&(h+=g,p+=m),s=s.parentNode.host||s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return d&&(i&&1>Math.abs(h)||!i&&o>h)?u=!0:!d&&(i&&1>Math.abs(p)||!i&&-o>p)&&(u=!0),u},fC=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},fN=function(e){return[e.deltaX,e.deltaY]},fE=function(e){return e&&"current"in e?e.current:e},fP=0,fT=[];let fO=(o=function(e){var t=p.useRef([]),n=p.useRef([0,0]),r=p.useRef(),i=p.useState(fP++)[0],l=p.useState(fo)[0],a=p.useRef(e);p.useEffect(function(){a.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,i=0,l=t.length;i<l;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(fE),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var o=p.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var i,l=fC(e),o=n.current,s="deltaX"in e?e.deltaX:o[0]-l[0],c="deltaY"in e?e.deltaY:o[1]-l[1],u=e.target,d=Math.abs(s)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var h=fj(d,u);if(!h)return!0;if(h?i=d:(i="v"===d?"h":"v",h=fj(d,u)),!h)return!1;if(!r.current&&"changedTouches"in e&&(s||c)&&(r.current=i),!i)return!0;var p=r.current||i;return f_(p,t,e,"h"===p?s:c,!0)},[]),s=p.useCallback(function(e){if(fT.length&&fT[fT.length-1]===l){var n="deltaY"in e?fN(e):fC(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var i=(a.current.shards||[]).map(fE).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?o(e,i[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=p.useCallback(function(e,n,r,i){var l={name:e,delta:n,target:r,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(l),setTimeout(function(){t.current=t.current.filter(function(e){return e!==l})},1)},[]),u=p.useCallback(function(e){n.current=fC(e),r.current=void 0},[]),d=p.useCallback(function(t){c(t.type,fN(t),t.target,o(t,e.lockRef.current))},[]),h=p.useCallback(function(t){c(t.type,fC(t),t.target,o(t,e.lockRef.current))},[]);p.useEffect(function(){return fT.push(l),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",s,fb),document.addEventListener("touchmove",s,fb),document.addEventListener("touchstart",u,fb),function(){fT=fT.filter(function(e){return e!==l}),document.removeEventListener("wheel",s,fb),document.removeEventListener("touchmove",s,fb),document.removeEventListener("touchstart",u,fb)}},[]);var f=e.removeScrollBar,m=e.inert;return p.createElement(p.Fragment,null,m?p.createElement(l,{styles:"\n  .block-interactivity-".concat(i," {pointer-events: none;}\n  .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,f?p.createElement(fv,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},ft.useMedium(o),fi);var fR=p.forwardRef(function(e,t){return p.createElement(fr,p5({},e,{ref:t,sideCar:fO}))});fR.classNames=fr.classNames;var fL=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},fI=new WeakMap,fA=new WeakMap,fM={},fF=0,fD=function(e){return e&&(e.host||fD(e.parentNode))},fH=function(e,t,n,r){var i=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=fD(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});fM[n]||(fM[n]=new WeakMap);var l=fM[n],a=[],o=new Set,s=new Set(i),c=function(e){!e||o.has(e)||(o.add(e),c(e.parentNode))};
vendor: 4,179 bytes, line 24
24i.forEach(c);var u=function(e){!e||s.has(e)||Array.prototype.forEach.call(e.children,function(e){if(o.has(e))u(e);else try{var t=e.getAttribute(r),i=null!==t&&"false"!==t,s=(fI.get(e)||0)+1,c=(l.get(e)||0)+1;fI.set(e,s),l.set(e,c),a.push(e),1===s&&i&&fA.set(e,!0),1===c&&e.setAttribute(n,"true"),i||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),o.clear(),fF++,function(){a.forEach(function(e){var t=fI.get(e)-1,i=l.get(e)-1;fI.set(e,t),l.set(e,i),t||(fA.has(e)||e.removeAttribute(r),fA.delete(e)),i||e.removeAttribute(n)}),--fF||(fI=new WeakMap,fI=new WeakMap,fA=new WeakMap,fM={})}},fB=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||fL(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),fH(r,i,n,"aria-hidden")):function(){return null}},f$="Dialog",[fz,fV]=pN(f$),[fW,fU]=fz(f$),fq=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:l,modal:a=!0}=e,o=p.useRef(null),s=p.useRef(null),[c,u]=pL({prop:r,defaultProp:i??!1,onChange:l,caller:f$});return(0,h.jsx)(fW,{scope:t,triggerRef:o,contentRef:s,contentId:pO(),titleId:pO(),descriptionId:pO(),open:c,onOpenChange:u,onOpenToggle:p.useCallback(()=>u(e=>!e),[u]),modal:a,children:n})};fq.displayName=f$;var fQ="DialogTrigger",fK=p.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=fU(fQ,n),l=hy(t,i.triggerRef);return(0,h.jsx)(pA.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":mi(i.open),...r,ref:l,onClick:pC(e.onClick,i.onOpenToggle)})});fK.displayName=fQ;var fG="DialogPortal",[fY,fZ]=fz(fG,{forceMount:void 0}),fJ=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,l=fU(fG,t);return(0,h.jsx)(fY,{scope:t,forceMount:n,children:p.Children.map(r,e=>(0,h.jsx)(pJ,{present:n||l.open,children:(0,h.jsx)(pZ,{asChild:!0,container:i,children:e})}))})};fJ.displayName=fG;var fX="DialogOverlay",f0=p.forwardRef((e,t)=>{let n=fZ(fX,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,l=fU(fX,e.__scopeDialog);return l.modal?(0,h.jsx)(pJ,{present:r||l.open,children:(0,h.jsx)(f2,{...i,ref:t})}):null});f0.displayName=fX;var f1=hx("DialogOverlay.RemoveScroll"),f2=p.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=fU(fX,n);return(0,h.jsx)(fR,{as:f1,allowPinchZoom:!0,shards:[i.contentRef],children:(0,h.jsx)(pA.div,{"data-state":mi(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),f5="DialogContent",f3=p.forwardRef((e,t)=>{let n=fZ(f5,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,l=fU(f5,e.__scopeDialog);return(0,h.jsx)(pJ,{present:r||l.open,children:l.modal?(0,h.jsx)(f4,{...i,ref:t}):(0,h.jsx)(f6,{...i,ref:t})})});f3.displayName=f5;var f4=p.forwardRef((e,t)=>{let n=fU(f5,e.__scopeDialog),r=p.useRef(null),i=hy(t,n.contentRef,r);return p.useEffect(()=>{let e=r.current;if(e)return fB(e)},[]),(0,h.jsx)(f8,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:pC(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:pC(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:pC(e.onFocusOutside,e=>e.preventDefault())})}),f6=p.forwardRef((e,t)=>{let n=fU(f5,e.__scopeDialog),r=p.useRef(!1),i=p.useRef(!1);return(0,h.jsx)(f8,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let l=t.target;n.triggerRef.current?.contains(l)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),f8=p.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:l,...a}=e,o=fU(f5,n),s=p.useRef(null),c=hy(t,s);return p1(),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(pU,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:l,children:(0,h.jsx)(pH,{role:"dialog",id:o.c
24ontentId,"aria-describedby":o.descriptionId,"aria-labelledby":o.titleId,"data-state":mi(o.open),...a,ref:c,onDismiss:()=>o.onOpenChange(!1)})}),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(ms,{titleId:o.titleId}),(0,h.jsx)(mc,{contentRef:s,descriptionId:o.descriptionId})]})]})}),f9="DialogTitle",f7=p.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=fU(f9,n);return(0,h.jsx)(pA.h2,{id:i.titleId,...r,ref:t})});f7.displayName=f9;var me="DialogDescription",mt=p.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=fU(me,n);return(0,h.jsx)(pA.p,{id:i.descriptionId,...r,ref:t})});mt.displayName=me;var mn="DialogClose",mr=p.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=fU(mn,n);return(0,h.jsx)(pA.button,{type:"button",...r,ref:t,onClick:pC(e.onClick,()=>i.onOpenChange(!1))})});function mi(e){return e?"open":"closed"}mr.displayName=mn;var ml="DialogTitleWarning",[ma,mo]=function(e,t){let n=p.createContext(t),r=e=>{let{children:t,...r}=e,i=p.useMemo(()=>r,Object.values(r));return(0,h.jsx)(n.Provider,{value:i,children:t})};return r.displayName=e+"Provider",[r,function(r){let i=p.useContext(n);if(i)return i;if(void 0!==t)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}]}(ml,{contentName:f5,titleName:f9,docsSlug:"dialog"}),ms=({titleId:e})=>{let t=mo(ml),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
25
26If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
27
28For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return p.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},mc=({contentRef:e,descriptionId:t})=>{let n=mo("DialogDescriptionWarning"),r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${n.contentName}}.`;return p.useEffect(()=>{let n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},mu='[cmdk-group=""]',md='[cmdk-group-items=""]',mh='[cmdk-item=""]',mp=`${mh}:not([aria-disabled="true"])`,mf="cmdk-item-select",mm="data-value",mg=(e,t,n)=>(function(e,t,n){return function e(t,n,r,i,l,a,o){if(a===n.length)return l===t.length?1:.99;var s=`${l},${a}`;if(void 0!==o[s])return o[s];for(var c,u,d,h,p=i.charAt(a),f=r.indexOf(p,l),m=0;f>=0;)(c=e(t,n,r,i,f+1,a+1,o))>m&&(f===l?c*=1:pw.test(t.charAt(f-1))?(c*=.8,(d=t.slice(l,f-1).match(pj))&&l>0&&(c*=Math.pow(.999,d.length))):pS.test(t.charAt(f-1))?(c*=.9,(h=t.slice(l,f-1).match(pk))&&l>0&&(c*=Math.pow(.999,h.length))):(c*=.17,l>0&&(c*=Math.pow(.999,f-l))),t.charAt(f)!==n.charAt(a)&&(c*=.9999)),(c<.1&&r.charAt(f-1)===i.charAt(a+1)||i.charAt(a+1)===i.charAt(a)&&r.charAt(f-1)!==i.charAt(a))&&.1*(u=e(t,n,r,i,f+1,a+2,o))>c&&(c=.1*u),c>m&&(m=c),f=r.indexOf(p,f+1);return o[s]=m,m}(e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,t,p_(e),p_(t),0,0,{})})(e,t,n),mv=p.createContext(void 0),my=()=>p.useContext(mv),mx=p.createContext(void 0),mb=()=>p.useContext(mx),mw=p.createContext(void 0),mj=p.forwardRef((e,t)=>{let n=mR(()=>{var t,n;return{search:"",value:null!=(n=null!=(t=e.value)?t:e.defaultValue)?n:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=mR(()=>new Set),i=mR(()=>new Map),l=mR(()=>new Map),a=mR(()=>new Set),o=mT(e),{label:s,children:c,value:u,onValueChange:d,filter:h,shouldFilter:f,loop:m,disablePointerSelection:g=!1,vimBindings:v=!0,...y}=e,x=pO(),b=pO(),w=pO(),j=p.useRef(null),S=mA();mO(()=>{if(void 0!==u){let e=u.trim();n.current.value=e,k.emit()}},[u]),mO(()=>{S(6,T)},[]);let k=p.useMemo(()=>({subscribe:e=>(a.current.add(e),()=>a.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var i,l,a,s;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)P(),N(),S(1,E);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(w);e?e.focus():null==(i=document.getElementById(x))||i.focus()}if(S(7,()=>{var e;n.current.selectedItemId=null==(e=O())?void 0:e.id,k.emit()}),r||S(5,T),(null==(l=o.current)?void 0:l.value)!==void 0){null==(s=(a=o.current).onValueChange)||s.call(a,null!=t?t:"");return}}
28k.emit()}},emit:()=>{a.current.forEach(e=>e())}}),[]),_=p.useMemo(()=>({value:(e,t,r)=>{var i;t!==(null==(i=l.current.get(e))?void 0:i.value)&&(l.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,C(t,r)),S(2,()=>{N(),k.emit()}))},item:(e,t)=>(r.current.add(e),t&&(i.current.has(t)?i.current.get(t).add(e):i.current.set(t,new Set([e]))),S(3,()=>{P(),N(),n.current.value||E(),k.emit()}),()=>{l.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=O();S(4,()=>{P(),(null==t?void 0:t.getAttribute("id"))===e&&E(),k.emit()})}),group:e=>(i.current.has(e)||i.current.set(e,new Set),()=>{l.current.delete(e),i.current.delete(e)}),filter:()=>o.current.shouldFilter,label:s||e["aria-label"],getDisablePointerSelection:()=>o.current.disablePointerSelection,listId:x,inputId:w,labelId:b,listInnerRef:j}),[]);function C(e,t){var r,i;let l=null!=(i=null==(r=o.current)?void 0:r.filter)?i:mg;return e?l(e,n.current.search,t):0}function N(){if(!n.current.search||!1===o.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach(n=>{let r=i.current.get(n),l=0;r.forEach(t=>{l=Math.max(e.get(t),l)}),t.push([n,l])});let r=j.current;R().sort((t,n)=>{var r,i;let l=t.getAttribute("id"),a=n.getAttribute("id");return(null!=(r=e.get(a))?r:0)-(null!=(i=e.get(l))?i:0)}).forEach(e=>{let t=e.closest(md);t?t.appendChild(e.parentElement===t?e:e.closest(`${md} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${md} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let n=null==(t=j.current)?void 0:t.querySelector(`${mu}[${mm}="${encodeURIComponent(e[0])}"]`);null==n||n.parentElement.appendChild(n)})}function E(){let e=R().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(mm);k.setState("value",t||void 0)}function P(){var e,t,a,s;if(!n.current.search||!1===o.current.shouldFilter){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let c=0;for(let i of r.current){let r=C(null!=(t=null==(e=l.current.get(i))?void 0:e.value)?t:"",null!=(s=null==(a=l.current.get(i))?void 0:a.keywords)?s:[]);n.current.filtered.items.set(i,r),r>0&&c++}for(let[e,t]of i.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=c}function T(){var e,t,n;let r=O();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(mu))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function O(){var e;return null==(e=j.current)?void 0:e.querySelector(`${mh}[aria-selected="true"]`)}function R(){var e;return Array.from((null==(e=j.current)?void 0:e.querySelectorAll(mp))||[])}function L(e){let t=R()[e];t&&k.setState("value",t.getAttribute(mm))}function I(e){var t;let n=O(),r=R(),i=r.findIndex(e=>e===n),l=r[i+e];null!=(t=o.current)&&t.loop&&(l=i+e<0?r[r.length-1]:i+e===r.length?r[0]:r[i+e]),l&&k.setState("value",l.getAttribute(mm))}function A(e){let t=O(),n=null==t?void 0:t.closest(mu),r;for(;n&&!r;)r=null==(n=e>0?function(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}(n,mu):function(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}(n,mu))?void 0:n.querySelector(mp);r?k.setState("value",r.getAttribute(mm)):I(e)}let M=()=>L(R().length-1),F=e=>{e.preventDefault(),e.metaKey?M():e.altKey?A(1):I(1)},D=e=>{e.preventDefault(),e.metaKey?L(0):e.altKey?A(-1):I(-1)};return p.createElement(pA.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=y.onKeyDown)||t.call(y,e);let n=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||n))switch(e.key){case"n":case"j":v&&e.ctrlKey&&F(e);break;case"ArrowDown":F(e);break;case"p":case"k":v&&e.ctrlKey&&D(e);break;case"ArrowUp":D(e);break;case"Home":e.preventDefault(),L(0);break;case"End":e.preventDefault(),M();break;case"Enter":{e.preventDefault();
28let t=O();if(t){let e=new Event(mf);t.dispatchEvent(e)}}}}},p.createElement("label",{"cmdk-label":"",htmlFor:_.inputId,id:_.labelId,style:mF},s),mM(e,e=>p.createElement(mx.Provider,{value:k},p.createElement(mv.Provider,{value:_},e))))}),mS=p.forwardRef((e,t)=>{var n,r;let i=pO(),l=p.useRef(null),a=p.useContext(mw),o=my(),s=mT(e),c=null!=(r=null==(n=s.current)?void 0:n.forceMount)?r:null==a?void 0:a.forceMount;mO(()=>{if(!c)return o.item(i,null==a?void 0:a.id)},[c]);let u=mI(i,l,[e.value,e.children,l],e.keywords),d=mb(),h=mL(e=>e.value&&e.value===u.current),f=mL(e=>!!c||!1===o.filter()||!e.search||e.filtered.items.get(i)>0);function m(){var e,t;g(),null==(t=(e=s.current).onSelect)||t.call(e,u.current)}function g(){d.setState("value",u.current,!0)}if(p.useEffect(()=>{let t=l.current;if(!(!t||e.disabled))return t.addEventListener(mf,m),()=>t.removeEventListener(mf,m)},[f,e.onSelect,e.disabled]),!f)return null;let{disabled:v,value:y,onSelect:x,forceMount:b,keywords:w,...j}=e;return p.createElement(pA.div,{ref:hv(l,t),...j,id:i,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!h,"data-disabled":!!v,"data-selected":!!h,onPointerMove:v||o.getDisablePointerSelection()?void 0:g,onClick:v?void 0:m},e.children)}),mk=p.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:i,...l}=e,a=pO(),o=p.useRef(null),s=p.useRef(null),c=pO(),u=my(),d=mL(e=>!!i||!1===u.filter()||!e.search||e.filtered.groups.has(a));mO(()=>u.group(a),[]),mI(a,o,[e.value,e.heading,s]);let h=p.useMemo(()=>({id:a,forceMount:i}),[i]);return p.createElement(pA.div,{ref:hv(o,t),...l,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&p.createElement("div",{ref:s,"cmdk-group-heading":"","aria-hidden":!0,id:c},n),mM(e,e=>p.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?c:void 0},p.createElement(mw.Provider,{value:h},e))))}),m_=p.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,i=p.useRef(null),l=mL(e=>!e.search);return n||l?p.createElement(pA.div,{ref:hv(i,t),...r,"cmdk-separator":"",role:"separator"}):null}),mC=p.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,i=null!=e.value,l=mb(),a=mL(e=>e.search),o=mL(e=>e.selectedItemId),s=my();return p.useEffect(()=>{null!=e.value&&l.setState("search",e.value)},[e.value]),p.createElement(pA.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":s.listId,"aria-labelledby":s.labelId,"aria-activedescendant":o,id:s.inputId,type:"text",value:i?e.value:a,onChange:e=>{i||l.setState("search",e.target.value),null==n||n(e.target.value)}})}),mN=p.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...i}=e,l=p.useRef(null),a=p.useRef(null),o=mL(e=>e.selectedItemId),s=my();return p.useEffect(()=>{if(a.current&&l.current){let e=a.current,t=l.current,n,r=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{let n=e.offsetHeight;t.style.setProperty("--cmdk-list-height",n.toFixed(1)+"px")})});return r.observe(e),()=>{cancelAnimationFrame(n),r.unobserve(e)}}},[]),p.createElement(pA.div,{ref:hv(l,t),...i,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":o,"aria-label":r,id:s.listId},mM(e,e=>p.createElement("div",{ref:hv(a,s.listInnerRef),"cmdk-list-sizer":""},e)))}),mE=p.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:i,contentClassName:l,container:a,...o}=e;return p.createElement(fq,{open:n,onOpenChange:r},p.createElement(fJ,{container:a},p.createElement(f0,{"cmdk-overlay":"",className:i}),p.createElement(f3,{"aria-label":e.label,"cmdk-dialog":"",className:l},p.createElement(mj,{ref:t,...o}))))}),mP=Object.assign(mj,{List:mN,Item:mS,Input:mC,Group:mk,Separator:m_,Dialog:mE,Empty:p.forwardRef((e,t)=>mL(e=>0===e.filtered.count)?p.createElement(pA.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:p.forwardRef((e,t)=>{let{progress:n,children:r,label:i="Loading...",...l}=e;return p.createElement(pA.div,{ref:t,...l,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},mM(e,e=>p.createElement("div",{"aria-hidden":!0},e)))})});function mT(e){let t=p.useRef(e);return mO(()=>{t.current=e}),t}var mO="undefined"==typeof window?p.useEffect:p.useLayoutEffect;function mR(e){let t=p.useRef();return void 0===t.current&&(t.current=e()),t}function mL(e){let t=mb(),n=()=>e(t.snapshot());return p.useSyncExternalStore(t.subscribe,n,n)}function mI(e,t,n,r=[]){let i=p.useRef(),l=my();return mO(()=>{var a;let o=(()=>{var e;
28for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():i.current}})(),s=r.map(e=>e.trim());l.value(e,o,s),null==(a=t.current)||a.setAttribute(mm,o),i.current=o}),i}var mA=()=>{let[e,t]=p.useState(),n=mR(()=>new Map);return mO(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}};function mM({asChild:e,children:t},n){let r;return e&&p.isValidElement(t)?p.cloneElement("function"==typeof(r=t.type)?r(t.props):"render"in r?r.render(t.props):t,{ref:t.ref},n(t.props.children)):n(t)}var mF={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};let mD=py("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);function mH(e,t){if(null==e)return{};var n,r,i={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var mB=["color"],m$=(0,p.forwardRef)(function(e,t){var n=e.color,r=mH(e,mB);return(0,p.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,p.createElement)("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:void 0===n?"currentColor":n,fillRule:"evenodd",clipRule:"evenodd"}))}),mz=["color"],mV=(0,p.forwardRef)(function(e,t){var n=e.color,r=mH(e,mz);return(0,p.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,p.createElement)("path",{d:"M0.877075 7.49972C0.877075 3.84204 3.84222 0.876892 7.49991 0.876892C11.1576 0.876892 14.1227 3.84204 14.1227 7.49972C14.1227 11.1574 11.1576 14.1226 7.49991 14.1226C3.84222 14.1226 0.877075 11.1574 0.877075 7.49972ZM7.49991 1.82689C4.36689 1.82689 1.82708 4.36671 1.82708 7.49972C1.82708 10.6327 4.36689 13.1726 7.49991 13.1726C10.6329 13.1726 13.1727 10.6327 13.1727 7.49972C13.1727 4.36671 10.6329 1.82689 7.49991 1.82689ZM8.24993 10.5C8.24993 10.9142 7.91414 11.25 7.49993 11.25C7.08571 11.25 6.74993 10.9142 6.74993 10.5C6.74993 10.0858 7.08571 9.75 7.49993 9.75C7.91414 9.75 8.24993 10.0858 8.24993 10.5ZM6.05003 6.25C6.05003 5.57211 6.63511 4.925 7.50003 4.925C8.36496 4.925 8.95003 5.57211 8.95003 6.25C8.95003 6.74118 8.68002 6.99212 8.21447 7.27494C8.16251 7.30651 8.10258 7.34131 8.03847 7.37854L8.03841 7.37858C7.85521 7.48497 7.63788 7.61119 7.47449 7.73849C7.23214 7.92732 6.95003 8.23198 6.95003 8.7C6.95004 9.00376 7.19628 9.25 7.50004 9.25C7.8024 9.25 8.04778 9.00601 8.05002 8.70417L8.05056 8.7033C8.05924 8.6896 8.08493 8.65735 8.15058 8.6062C8.25207 8.52712 8.36508 8.46163 8.51567 8.37436L8.51571 8.37433C8.59422 8.32883 8.68296 8.27741 8.78559 8.21506C9.32004 7.89038 10.05 7.35382 10.05 6.25C10.05 4.92789 8.93511 3.825 7.50003 3.825C6.06496 3.825 4.95003 4.92789 4.95003 6.25C4.95003 6.55376 5.19628 6.8 5.50003 6.8C5.80379 6.8 6.05003 6.55376 6.05003 6.25Z",fill:void 0===n?"currentColor":n,fillRule:"evenodd",clipRule:"evenodd"}))});function mW(e){let{...t}=e;return(0,h.jsx)(fq,{"data-slot":"dialog",...t})}function mU(e){let{...t}=e;return(0,h.jsx)(fK,{"data-slot":"dialog-trigger",...t})}function mq(e){let{...t}=e;return(0,h.jsx)(fJ,{"data-slot":"dialog-portal",...t})}function mQ(e){let{className:t,...n}=e;return(0,h.jsx)(f0,{"data-slot":"dialog-overlay",className:ps("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...n})}function mK(e){let{className:t,children:n,showCloseButton:r=!0,...i}=e;return(0,h.jsxs)(mq,{"data-slot":"dialog-portal",children:[(0,h.jsx)(mQ,{}),(0,h.jsxs)(f3,{"data-slot":"dialog-content",className:ps("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 roun
28ded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...i,children:[n,r&&(0,h.jsxs)(mr,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,h.jsx)(m$,{}),(0,h.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function mG(e){let{className:t,...n}=e;return(0,h.jsx)("div",{"data-slot":"dialog-header",className:ps("flex flex-col gap-2 text-center sm:text-left",t),...n})}function mY(e){let{className:t,...n}=e;return(0,h.jsx)(f7,{"data-slot":"dialog-title",className:ps("text-lg leading-none font-semibold",t),...n})}function mZ(e){let{className:t,...n}=e;return(0,h.jsx)(mt,{"data-slot":"dialog-description",className:ps("text-muted-foreground text-sm",t),...n})}function mJ(e){let{className:t,...n}=e;return(0,h.jsx)(mP,{"data-slot":"command",className:ps("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),...n})}function mX(e){let{className:t,...n}=e;return(0,h.jsxs)("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[(0,h.jsx)(mD,{className:"size-4 shrink-0 opacity-50"}),(0,h.jsx)(mP.Input,{"data-slot":"command-input",className:ps("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",t),...n})]})}function m0(e){let{className:t,...n}=e;return(0,h.jsx)(mP.List,{"data-slot":"command-list",className:ps("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),...n})}function m1(e){let{...t}=e;return(0,h.jsx)(mP.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...t})}function m2(e){let{className:t,...n}=e;return(0,h.jsx)(mP.Group,{"data-slot":"command-group",className:ps("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),...n})}function m5(e){let{className:t,...n}=e;return(0,h.jsx)(mP.Item,{"data-slot":"command-item",className:ps("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 hover:bg-slate-100 cursor-pointer",t),...n})}let m3=["top","right","bottom","left"],m4=Math.min,m6=Math.max,m8=Math.round,m9=Math.floor,m7=e=>({x:e,y:e}),ge={left:"right",right:"left",bottom:"top",top:"bottom"},gt={start:"end",end:"start"};function gn(e,t){return"function"==typeof e?e(t):e}function gr(e){return e.split("-")[0]}function gi(e){return e.split("-")[1]}function gl(e){return"x"===e?"y":"x"}function ga(e){return"y"===e?"height":"width"}function go(e){return["top","bottom"].includes(gr(e))?"y":"x"}function gs(e){return e.replace(/start|end/g,e=>gt[e])}function gc(e){return e.replace(/left|right|bottom|top/g,e=>ge[e])}function gu(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function gd(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function gh(e,t,n){let r,{reference:i,floating:l}=e,a=go(t),o=gl(go(t)),s=ga(o),c=gr(t),u="y"===a,d=i.x+i.width/2-l.width/2,h=i.y+i.height/2-l.height/2,p=i[s]/2-l[s]/2;switch(c){case"top":r={x:d,y:i.y-l.height};break;case"bottom":r={x:d,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:h};break;case"left":r={x:i.x-l.width,y:h};break;default:r={x:i.x,y:i.y}}switch(gi(t)){case"start":r[o]-=p*(n&&u?-1:1);break;case"end":r[o]+=p*(n&&u?-1:1)}return r}let gp=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:l=[],platform:a}=n,o=l.filter(Boolean),s=await (null==a.isRTL?void 0:a.isRTL(t)),c=await a.getElementRects({reference:e,floating:t,strategy:i}
28),{x:u,y:d}=gh(c,r,s),h=r,p={},f=0;for(let n=0;n<o.length;n++){let{name:l,fn:m}=o[n],{x:g,y:v,data:y,reset:x}=await m({x:u,y:d,initialPlacement:r,placement:h,strategy:i,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,p={...p,[l]:{...p[l],...y}},x&&f<=50&&(f++,"object"==typeof x&&(x.placement&&(h=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=gh(c,h,s)),n=-1)}return{x:u,y:d,placement:h,strategy:i,middlewareData:p}};async function gf(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:l,rects:a,elements:o,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=gn(t,e),f=gu(p),m=o[h?"floating"===d?"reference":"floating":d],g=gd(await l.getClippingRect({element:null==(n=await (null==l.isElement?void 0:l.isElement(m)))||n?m:m.contextElement||await (null==l.getDocumentElement?void 0:l.getDocumentElement(o.floating)),boundary:c,rootBoundary:u,strategy:s})),v="floating"===d?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,y=await (null==l.getOffsetParent?void 0:l.getOffsetParent(o.floating)),x=await (null==l.isElement?void 0:l.isElement(y))&&await (null==l.getScale?void 0:l.getScale(y))||{x:1,y:1},b=gd(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:v,offsetParent:y,strategy:s}):v);return{top:(g.top-b.top+f.top)/x.y,bottom:(b.bottom-g.bottom+f.bottom)/x.y,left:(g.left-b.left+f.left)/x.x,right:(b.right-g.right+f.right)/x.x}}function gm(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function gg(e){return m3.some(t=>e[t]>=0)}async function gv(e,t){let{placement:n,platform:r,elements:i}=e,l=await (null==r.isRTL?void 0:r.isRTL(i.floating)),a=gr(n),o=gi(n),s="y"===go(n),c=["left","top"].includes(a)?-1:1,u=l&&s?-1:1,d=gn(t,e),{mainAxis:h,crossAxis:p,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return o&&"number"==typeof f&&(p="end"===o?-1*f:f),s?{x:p*u,y:h*c}:{x:h*c,y:p*u}}function gy(){return"undefined"!=typeof window}function gx(e){return gj(e)?(e.nodeName||"").toLowerCase():"#document"}function gb(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function gw(e){var t;return null==(t=(gj(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function gj(e){return!!gy()&&(e instanceof Node||e instanceof gb(e).Node)}function gS(e){return!!gy()&&(e instanceof Element||e instanceof gb(e).Element)}function gk(e){return!!gy()&&(e instanceof HTMLElement||e instanceof gb(e).HTMLElement)}function g_(e){return!!gy()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof gb(e).ShadowRoot)}function gC(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=gO(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function gN(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function gE(e){let t=gP(),n=gS(e)?gO(e):e;return["transform","translate","scale","rotate","perspective"].some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function gP(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function gT(e){return["html","body","#document"].includes(gx(e))}function gO(e){return gb(e).getComputedStyle(e)}function gR(e){return gS(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function gL(e){if("html"===gx(e))return e;let t=e.assignedSlot||e.parentNode||g_(e)&&e.host||gw(e);return g_(t)?t.host:t}function gI(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=gL(t);return gT(n)?t.ownerDocument?t.ownerDocument.body:t.body:gk(n)&&gC(n)?n:e(n)}(e),l=i===(null==(r=e.ownerDocument)?void 0:r.body),a=gb(i);if(l){let e=gA(a);
28return t.concat(a,a.visualViewport||[],gC(i)?i:[],e&&n?gI(e):[])}return t.concat(i,gI(i,[],n))}function gA(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function gM(e){let t=gO(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=gk(e),l=i?e.offsetWidth:n,a=i?e.offsetHeight:r,o=m8(n)!==l||m8(r)!==a;return o&&(n=l,r=a),{width:n,height:r,$:o}}function gF(e){return gS(e)?e:e.contextElement}function gD(e){let t=gF(e);if(!gk(t))return m7(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:l}=gM(t),a=(l?m8(n.width):n.width)/r,o=(l?m8(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),o&&Number.isFinite(o)||(o=1),{x:a,y:o}}let gH=m7(0);function gB(e){let t=gb(e);return gP()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:gH}function g$(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let l=e.getBoundingClientRect(),a=gF(e),o=m7(1);t&&(r?gS(r)&&(o=gD(r)):o=gD(e));let s=(void 0===(i=n)&&(i=!1),r&&(!i||r===gb(a))&&i)?gB(a):m7(0),c=(l.left+s.x)/o.x,u=(l.top+s.y)/o.y,d=l.width/o.x,h=l.height/o.y;if(a){let e=gb(a),t=r&&gS(r)?gb(r):r,n=e,i=gA(n);for(;i&&r&&t!==n;){let e=gD(i),t=i.getBoundingClientRect(),r=gO(i),l=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,d*=e.x,h*=e.y,c+=l,u+=a,i=gA(n=gb(i))}}return gd({width:d,height:h,x:c,y:u})}function gz(e,t){let n=gR(e).scrollLeft;return t?t.left+n:g$(gw(e)).left+n}function gV(e,t,n){void 0===n&&(n=!1);let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:gz(e,r)),y:r.top+t.scrollTop}}function gW(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=gb(e),r=gw(e),i=n.visualViewport,l=r.clientWidth,a=r.clientHeight,o=0,s=0;if(i){l=i.width,a=i.height;let e=gP();(!e||e&&"fixed"===t)&&(o=i.offsetLeft,s=i.offsetTop)}return{width:l,height:a,x:o,y:s}}(e,n);else if("document"===t)r=function(e){let t=gw(e),n=gR(e),r=e.ownerDocument.body,i=m6(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=m6(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+gz(e),o=-n.scrollTop;return"rtl"===gO(r).direction&&(a+=m6(t.clientWidth,r.clientWidth)-i),{width:i,height:l,x:a,y:o}}(gw(e));else if(gS(t))r=function(e,t){let n=g$(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,l=gk(e)?gD(e):m7(1),a=e.clientWidth*l.x,o=e.clientHeight*l.y;return{width:a,height:o,x:i*l.x,y:r*l.y}}(t,n);else{let n=gB(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return gd(r)}function gU(e){return"static"===gO(e).position}function gq(e,t){if(!gk(e)||"fixed"===gO(e).position)return null;if(t)return t(e);let n=e.offsetParent;return gw(e)===n&&(n=n.ownerDocument.body),n}function gQ(e,t){let n=gb(e);if(gN(e))return n;if(!gk(e)){let t=gL(e);for(;t&&!gT(t);){if(gS(t)&&!gU(t))return t;t=gL(t)}return n}let r=gq(e,t);for(;r&&["table","td","th"].includes(gx(r))&&gU(r);)r=gq(r,t);return r&&gT(r)&&gU(r)&&!gE(r)?n:r||function(e){let t=gL(e);for(;gk(t)&&!gT(t);){if(gE(t))return t;if(gN(t))break;t=gL(t)}return null}(e)||n}let gK=async function(e){let t=this.getOffsetParent||gQ,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=gk(t),i=gw(t),l="fixed"===n,a=g$(e,!0,l,t),o={scrollLeft:0,scrollTop:0},s=m7(0);if(r||!r&&!l)if(("body"!==gx(t)||gC(i))&&(o=gR(t)),r){let e=g$(t,!0,l,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=gz(i));l&&!r&&i&&(s.x=gz(i));let c=!i||r||l?m7(0):gV(i,o);return{x:a.left+o.scrollLeft-s.x-c.x,y:a.top+o.scrollTop-s.y-c.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},gG={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,l="fixed"===i,a=gw(r),o=!!t&&gN(t.floating);if(r===a||o&&l)return n;let s={scrollLeft:0,scrollTop:0},c=m7(1),u=m7(0),d=gk(r);if((d||!d&&!l)&&(("body"!==gx(r)||gC(a))&&(s=gR(r)),gk(r))){let e=g$(r);c=gD(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let h=!a||d||l?m7(0):gV(a,s,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-s.scrollTop*c.y+u.y+h.y}},getDocumentElement:gw,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,l=[..."clippingAncestors"===n?gN(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=gI(e,[],!1).filter(e=>gS(e)&&"body"!==gx(e)),i=null,l="fixed"===gO(e).position,a=l?gL(e):e;for(;gS(a)&&!gT(a);){let t=gO(a),n=gE(a);n||"fixed"!==t.position||(i=null),(l?!n&&!i:!n&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||gC(a)&&!n&&function e(t,n){let r=gL(t);return!(r===n||!gS(r)||gT(r))&&("fixed"===gO(r).position||e(r,n))}(e,a))?r=r.filter(e=>e!==a):i=t,a=gL(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=l[0],o=l.reduce((e,n)=>{let r=gW(t,n,i);return e.top=m6(r.top,e.top),e.right=m4(r.right,e.right),e.bottom=m4(r.bottom,e.bottom),e.left=m6(r.left,e.left),e},gW(t,a,i));return{width:o.right-o.left,height:o.bottom-o.top,x:o.left,y:o.top}},getOffsetParent:gQ,getElementRects:gK,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=gM(e);return{width:t,height:n}},getScale:gD,isElement:gS,isRTL:function(e){return"rtl"===gO(e).direction}};function gY(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let gZ=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:l,platform:a,elements:o,middlewareData:s}=t,{element:c,padding:u=0}=gn(e,t)||{};if(null==c)return{};let d=gu(u),h={x:n,y:r},p=gl(go(i)),f=ga(p),m=await a.getDimensions(c),g="y"===p,v=g?"clientHeight":"clientWidth",y=l.reference[f]+l.reference[p]-h[p]-l.floating[f],x=h[p]-l.reference[p],b=await (null==a.getOffsetParent?void 0:a.getOffsetParent(c)),w=b?b[v]:0;w&&await (null==a.isElement?void 0:a.isElement(b))||(w=o.floating[v]||l.floating[f]);let j=w/2-m[f]/2-1,S=m4(d[g?"top":"left"],j),k=m4(d[g?"bottom":"right"],j),_=w-m[f]-k,C=w/2-m[f]/2+(y/2-x/2),N=m6(S,m4(C,_)),E=!s.arrow&&null!=gi(i)&&C!==N&&l.reference[f]/2-(C<S?S:k)-m[f]/2<0,P=E?C<S?C-S:C-_:0;return{[p]:h[p]+P,data:{[p]:N,centerOffset:C-N-P,...E&&{alignmentOffset:P}},reset:E}}}
28),gJ=(e,t,n)=>{let r=new Map,i={platform:gG,...n},l={...i.platform,_c:r};return gp(e,t,{...i,platform:l})};var gX="undefined"!=typeof document?p.useLayoutEffect:p.useEffect;function g0(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!g0(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!g0(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function g1(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function g2(e,t){let n=g1(e);return Math.round(t*n)/n}function g5(e){let t=p.useRef(e);return gX(()=>{t.current=e}),t}let g3=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?gZ({element:n.current,padding:r}).fn(t):{}:n?gZ({element:n,padding:r}).fn(t):{}}}),g4=(e,t)=>({...function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:l,placement:a,middlewareData:o}=t,s=await gv(t,e);return a===(null==(n=o.offset)?void 0:n.placement)&&null!=(r=o.arrow)&&r.alignmentOffset?{}:{x:i+s.x,y:l+s.y,data:{...s,placement:a}}}}}(e),options:[e,t]}),g6=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:l=!0,crossAxis:a=!1,limiter:o={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=gn(e,t),c={x:n,y:r},u=await gf(t,s),d=go(gr(i)),h=gl(d),p=c[h],f=c[d];if(l){let e="y"===h?"top":"left",t="y"===h?"bottom":"right",n=p+u[e],r=p-u[t];p=m6(n,m4(p,r))}if(a){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=f+u[e],r=f-u[t];f=m6(n,m4(f,r))}let m=o.fn({...t,[h]:p,[d]:f});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[h]:l,[d]:a}}}}}}(e),options:[e,t]}),g8=(e,t)=>({...function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:l,middlewareData:a}=t,{offset:o=0,mainAxis:s=!0,crossAxis:c=!0}=gn(e,t),u={x:n,y:r},d=go(i),h=gl(d),p=u[h],f=u[d],m=gn(o,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(s){let e="y"===h?"height":"width",t=l.reference[h]-l.floating[e]+g.mainAxis,n=l.reference[h]+l.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var v,y;let e="y"===h?"width":"height",t=["top","left"].includes(gr(i)),n=l.reference[d]-l.floating[e]+(t&&(null==(v=a.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),r=l.reference[d]+l.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[d])||0)-(t?g.crossAxis:0);f<n?f=n:f>r&&(f=r)}return{[h]:p,[d]:f}}}}(e),options:[e,t]}),g9=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,l,a,o;let{placement:s,middlewareData:c,rects:u,initialPlacement:d,platform:h,elements:p}=t,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:x=!0,...b}=gn(e,t);if(null!=(n=c.arrow)&&n.alignmentOffset)return{};let w=gr(s),j=go(d),S=gr(d)===d,k=await (null==h.isRTL?void 0:h.isRTL(p.floating)),_=g||(S||!x?[gc(d)]:function(e){let t=gc(e);return[gs(e),t,gs(t)]}(d)),C="none"!==y;!g&&C&&_.push(...function(e,t,n,r){let i=gi(e),l=function(e,t,n){let r=["left","right"],i=["right","left"];switch(e){case"top":case"bottom":if(n)return t?i:r;return t?r:i;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(gr(e),"start"===n,r);return i&&(l=l.map(e=>e+"-"+i),t&&(l=l.concat(l.map(gs)))),l}(d,x,y,k));let N=[d,..._],E=await gf(t,b),P=[],T=(null==(r=c.flip)?void 0:r.overflows)||[];if(f&&P.push(E[w]),m){let e=function(e,t,n){void 0===n&&(n=!1);let r=gi(e),i=gl(go(e)),l=ga(i),a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[l]>t.floating[l]&&(a=gc(a)),[a,gc(a)]}(s,u,k);P.push(E[e[0]],E[e[1]])}if(T=[...T,{placement:s,overflows:P}],!P.every(e=>e<=0)){let e=((null==(i=c.flip)?void 0:i.index)||0)+1,t=N[e];if(t){let n="alignment"===m&&j!==go(t),r=(null==(a=T[0])?void 0:a.overflows[0])>0;
28if(!n||r)return{data:{index:e,overflows:T},reset:{placement:t}}}let n=null==(l=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:l.placement;if(!n)switch(v){case"bestFit":{let e=null==(o=T.filter(e=>{if(C){let t=go(e.placement);return t===j||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(n=e);break}case"initialPlacement":n=d}if(s!==n)return{reset:{placement:n}}}return{}}}}(e),options:[e,t]}),g7=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let i,l,{placement:a,rects:o,platform:s,elements:c}=t,{apply:u=()=>{},...d}=gn(e,t),h=await gf(t,d),p=gr(a),f=gi(a),m="y"===go(a),{width:g,height:v}=o.floating;"top"===p||"bottom"===p?(i=p,l=f===(await (null==s.isRTL?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(l=p,i="end"===f?"top":"bottom");let y=v-h.top-h.bottom,x=g-h.left-h.right,b=m4(v-h[i],y),w=m4(g-h[l],x),j=!t.middlewareData.shift,S=b,k=w;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(k=x),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(S=y),j&&!f){let e=m6(h.left,0),t=m6(h.right,0),n=m6(h.top,0),r=m6(h.bottom,0);m?k=g-2*(0!==e||0!==t?e+t:m6(h.left,h.right)):S=v-2*(0!==n||0!==r?n+r:m6(h.top,h.bottom))}await u({...t,availableWidth:k,availableHeight:S});let _=await s.getDimensions(c.floating);return g!==_.width||v!==_.height?{reset:{rects:!0}}:{}}}}(e),options:[e,t]}),ve=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...i}=gn(e,t);switch(r){case"referenceHidden":{let e=gm(await gf(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:gg(e)}}}case"escaped":{let e=gm(await gf(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:gg(e)}}}default:return{}}}}}(e),options:[e,t]}),vt=(e,t)=>({...g3(e),options:[e,t]});var vn=p.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...l}=e;return(0,h.jsx)(pA.svg,{...l,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,h.jsx)("polygon",{points:"0,0 30,0 15,10"})})});function vr(e){let[t,n]=p.useState(void 0);return pE(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let l=t[0];if("borderBoxSize"in l){let e=l.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}vn.displayName="Arrow";var vi="Popper",[vl,va]=pN(vi),[vo,vs]=vl(vi),vc=e=>{let{__scopePopper:t,children:n}=e,[r,i]=p.useState(null);return(0,h.jsx)(vo,{scope:t,anchor:r,onAnchorChange:i,children:n})};vc.displayName=vi;var vu="PopperAnchor",vd=p.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,l=vs(vu,n),a=p.useRef(null),o=hy(t,a);return p.useEffect(()=>{l.onAnchorChange(r?.current||a.current)}),r?null:(0,h.jsx)(pA.div,{...i,ref:o})});vd.displayName=vu;var vh="PopperContent",[vp,vf]=vl(vh),vm=p.forwardRef((e,t)=>{let{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:l="center",alignOffset:a=0,arrowPadding:o=0,avoidCollisions:s=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:m="optimized",onPlaced:g,...v}=e,y=vs(vh,n),[x,b]=p.useState(null),w=hy(t,e=>b(e)),[j,S]=p.useState(null),k=vr(j),_=k?.width??0,C=k?.height??0,N="number"==typeof u?u:{top:0,right:0,bottom:0,left:0,...u},E=Array.isArray(c)?c:[c],P=E.length>0,T={padding:N,boundary:E.filter(vx),altBoundary:P},{refs:O,floatingStyles:R,placement:L,isPositioned:I,middlewareData:A}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:l,floating:a}={},transform:o=!0,whileElementsMounted:s,open:c}=e,[u,d]=p.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=p.useState(r);g0(h,r)||f(r);let[m,g]=p.useState(null),[v,y]=p.useState(null),x=p.useCallback(e=>
28{e!==S.current&&(S.current=e,g(e))},[]),b=p.useCallback(e=>{e!==k.current&&(k.current=e,y(e))},[]),w=l||m,j=a||v,S=p.useRef(null),k=p.useRef(null),_=p.useRef(u),C=null!=s,N=g5(s),E=g5(i),P=g5(c),T=p.useCallback(()=>{if(!S.current||!k.current)return;let e={placement:t,strategy:n,middleware:h};E.current&&(e.platform=E.current),gJ(S.current,k.current,e).then(e=>{let t={...e,isPositioned:!1!==P.current};O.current&&!g0(_.current,t)&&(_.current=t,pI.flushSync(()=>{d(t)}))})},[h,t,n,E,P]);gX(()=>{!1===c&&_.current.isPositioned&&(_.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);let O=p.useRef(!1);gX(()=>(O.current=!0,()=>{O.current=!1}),[]),gX(()=>{if(w&&(S.current=w),j&&(k.current=j),w&&j){if(N.current)return N.current(w,j,T);T()}},[w,j,T,N,C]);let R=p.useMemo(()=>({reference:S,floating:k,setReference:x,setFloating:b}),[x,b]),L=p.useMemo(()=>({reference:w,floating:j}),[w,j]),I=p.useMemo(()=>{let e={position:n,left:0,top:0};if(!L.floating)return e;let t=g2(L.floating,u.x),r=g2(L.floating,u.y);return o?{...e,transform:"translate("+t+"px, "+r+"px)",...g1(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,o,L.floating,u.x,u.y]);return p.useMemo(()=>({...u,update:T,refs:R,elements:L,floatingStyles:I}),[u,T,R,L,I])}({strategy:"fixed",placement:r+("center"!==l?"-"+l:""),whileElementsMounted:(...e)=>(function(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:l=!0,ancestorResize:a=!0,elementResize:o="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,u=gF(e),d=l||a?[...u?gI(u):[],...gI(t)]:[];d.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});let h=u&&s?function(e,t){let n,r=null,i=gw(e);function l(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function a(o,s){void 0===o&&(o=!1),void 0===s&&(s=1),l();let c=e.getBoundingClientRect(),{left:u,top:d,width:h,height:p}=c;if(o||t(),!h||!p)return;let f=m9(d),m=m9(i.clientWidth-(u+h)),g={rootMargin:-f+"px "+-m+"px "+-m9(i.clientHeight-(d+p))+"px "+-m9(u)+"px",threshold:m6(0,m4(1,s))||1},v=!0;function y(t){let r=t[0].intersectionRatio;if(r!==s){if(!v)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||gY(c,e.getBoundingClientRect())||a(),v=!1}try{r=new IntersectionObserver(y,{...g,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(y,g)}r.observe(e)}(!0),l}(u,n):null,p=-1,f=null;o&&(f=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=f)||e.observe(t)})),n()}),u&&!c&&f.observe(u),f.observe(t));let m=c?g$(e):null;return c&&function t(){let r=g$(e);m&&!gY(m,r)&&n(),m=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{l&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==h||h(),null==(e=f)||e.disconnect(),f=null,c&&cancelAnimationFrame(i)}})(...e,{animationFrame:"always"===m}),elements:{reference:y.anchor},middleware:[g4({mainAxis:i+C,alignmentAxis:a}),s&&g6({mainAxis:!0,crossAxis:!1,limiter:"partial"===d?g8():void 0,...T}),s&&g9({...T}),g7({...T,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:l}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${i}px`),a.setProperty("--radix-popper-anchor-height",`${l}px`)}}),j&&vt({element:j,padding:o}),vb({arrowWidth:_,arrowHeight:C}),f&&ve({strategy:"referenceHidden",...T})]}),[M,F]=vw(L),D=pM(g);pE(()=>{I&&D?.()},[I,D]);let H=A.arrow?.x,B=A.arrow?.y,$=A.arrow?.centerOffset!==0,[z,V]=p.useState();return pE(()=>{x&&V(window.getComputedStyle(x).zIndex)},[x]),(0,h.jsx)("div",{ref:O.setFloating,"data-radix-popper-content-wrapper":"",style:{...R,transform:I?R.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:z,"--radix-popper-transform-origin":[A.transformOrigin?.x,A.transformOrigin?.y].join(" "),...A.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,h.jsx)(vp,{scope:n,placedSide:M,onArrowChange:S,arrowX:H,arrowY:B,shouldHideArrow:$,children:(0,h.jsx)(pA.div,{"data-side":M,"data-align":F,...v,ref:w,style:{...v.style,animation:I?void 0:"none"}})})})});vm.displayName=vh;var vg="PopperArrow",vv={top:"bottom",right:"left",bottom:"top",left:"r
28ight"},vy=p.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=vf(vg,n),l=vv[i.placedSide];return(0,h.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,h.jsx)(vn,{...r,ref:t,style:{...r.style,display:"block"}})})});function vx(e){return null!==e}vy.displayName=vg;var vb=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,l=i.arrow?.centerOffset!==0,a=l?0:e.arrowWidth,o=l?0:e.arrowHeight,[s,c]=vw(n),u={start:"0%",center:"50%",end:"100%"}[c],d=(i.arrow?.x??0)+a/2,h=(i.arrow?.y??0)+o/2,p="",f="";return"bottom"===s?(p=l?u:`${d}px`,f=`${-o}px`):"top"===s?(p=l?u:`${d}px`,f=`${r.floating.height+o}px`):"right"===s?(p=`${-o}px`,f=l?u:`${h}px`):"left"===s&&(p=`${r.floating.width+o}px`,f=l?u:`${h}px`),{data:{x:p,y:f}}}});function vw(e){let[t,n="center"]=e.split("-");return[t,n]}var vj="Popover",[vS,vk]=pN(vj,[va]),v_=va(),[vC,vN]=vS(vj),vE=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:l,modal:a=!1}=e,o=v_(t),s=p.useRef(null),[c,u]=p.useState(!1),[d,f]=pL({prop:r,defaultProp:i??!1,onChange:l,caller:vj});return(0,h.jsx)(vc,{...o,children:(0,h.jsx)(vC,{scope:t,contentId:pO(),triggerRef:s,open:d,onOpenChange:f,onOpenToggle:p.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:c,onCustomAnchorAdd:p.useCallback(()=>u(!0),[]),onCustomAnchorRemove:p.useCallback(()=>u(!1),[]),modal:a,children:n})})};vE.displayName=vj;var vP="PopoverAnchor";p.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=vN(vP,n),l=v_(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:o}=i;return p.useEffect(()=>(a(),()=>o()),[a,o]),(0,h.jsx)(vd,{...l,...r,ref:t})}).displayName=vP;var vT="PopoverTrigger",vO=p.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=vN(vT,n),l=v_(n),a=hy(t,i.triggerRef),o=(0,h.jsx)(pA.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":vV(i.open),...r,ref:a,onClick:pC(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?o:(0,h.jsx)(vd,{asChild:!0,...l,children:o})});vO.displayName=vT;var vR="PopoverPortal",[vL,vI]=vS(vR,{forceMount:void 0}),vA=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,l=vN(vR,t);return(0,h.jsx)(vL,{scope:t,forceMount:n,children:(0,h.jsx)(pJ,{present:n||l.open,children:(0,h.jsx)(pZ,{asChild:!0,container:i,children:r})})})};vA.displayName=vR;var vM="PopoverContent",vF=p.forwardRef((e,t)=>{let n=vI(vM,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,l=vN(vM,e.__scopePopover);return(0,h.jsx)(pJ,{present:r||l.open,children:l.modal?(0,h.jsx)(vH,{...i,ref:t}):(0,h.jsx)(vB,{...i,ref:t})})});vF.displayName=vM;var vD=hx("PopoverContent.RemoveScroll"),vH=p.forwardRef((e,t)=>{let n=vN(vM,e.__scopePopover),r=p.useRef(null),i=hy(t,r),l=p.useRef(!1);return p.useEffect(()=>{let e=r.current;if(e)return fB(e)},[]),(0,h.jsx)(fR,{as:vD,allowPinchZoom:!0,children:(0,h.jsx)(v$,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:pC(e.onCloseAutoFocus,e=>{e.preventDefault(),l.current||n.triggerRef.current?.focus()}),onPointerDownOutside:pC(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;l.current=2===t.button||n},{checkForDefaultPrevented:!1}),onFocusOutside:pC(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),vB=p.forwardRef((e,t)=>{let n=vN(vM,e.__scopePopover),r=p.useRef(!1),i=p.useRef(!1);return(0,h.jsx)(v$,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let l=t.target;n.triggerRef.current?.contains(l)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),v$=p.forwardRef((e,t)=>
28{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:l,disableOutsidePointerEvents:a,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:u,...d}=e,p=vN(vM,n),f=v_(n);return p1(),(0,h.jsx)(pU,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:l,children:(0,h.jsx)(pH,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:u,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:c,onDismiss:()=>p.onOpenChange(!1),children:(0,h.jsx)(vm,{"data-state":vV(p.open),role:"dialog",id:p.contentId,...f,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),vz="PopoverClose";function vV(e){return e?"open":"closed"}p.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=vN(vz,n);return(0,h.jsx)(pA.button,{type:"button",...r,ref:t,onClick:pC(e.onClick,()=>i.onOpenChange(!1))})}).displayName=vz,p.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=v_(n);return(0,h.jsx)(vy,{...i,...r,ref:t})}).displayName="PopoverArrow";let vW=p.forwardRef((e,t)=>{let{className:n,align:r="center",sideOffset:i=4,...l}=e;return(0,h.jsx)(vA,{children:(0,h.jsx)(vF,{ref:t,align:r,sideOffset:i,className:ps("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n),...l})})});function vU(e){let{options:t=[],placeholder:n="Select...",value:r,onChange:i,disabled:l=!1,loading:a=!1,translation:o}=e,[s,c]=p.useState(!1),u=null==t?void 0:t.find(e=>e.id===r);return(0,h.jsxs)(vE,{open:s,onOpenChange:c,children:[(0,h.jsx)(vO,{asChild:!0,children:(0,h.jsxs)(pu,{variant:"outline",role:"combobox","aria-expanded":s,className:ps("w-full justify-between",u?"":"text-black/60"),disabled:l||a,children:[(0,h.jsx)("span",{className:"truncate",children:u?o?null==u?void 0:u["en"===o?"enName":"frName"]:null==u?void 0:u.enName:n}),a?(0,h.jsx)("span",{className:"inline-block size-5 mr-2 align-middle rounded-full border-2 border-black/30 border-t-black animate-spin"}):(0,h.jsx)(px,{className:"opacity-50"})]})}),(0,h.jsx)(vW,{className:"w-full p-0",children:(0,h.jsxs)(mJ,{children:[(0,h.jsx)(mX,{placeholder:"Search...",className:"h-9"}),(0,h.jsxs)(m0,{children:[(0,h.jsx)(m1,{children:"-"}),(0,h.jsx)(m2,{children:null==t?void 0:t.map(e=>(0,h.jsxs)(m5,{value:e.id,onSelect:()=>{i(e.id===r?null:e.id),c(!1)},children:[(0,h.jsx)(pb,{className:ps("mr-2 h-4 w-4",r===e.id?"opacity-100":"opacity-0")}),o?null==e?void 0:e["en"===o?"enName":"frName"]:e.enName]},e.id))})]})]})})]})}vW.displayName=vF.displayName;let vq=py("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);function vQ(e,[t,n]){return Math.min(n,Math.max(t,e))}var vK=p.createContext(void 0),vG=new WeakMap;function vY(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=function(e,t){let n=e.length,r=vZ(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}(e,t);return -1===n?void 0:e[n]}function vZ(e){return e!=e||0===e?0:Math.trunc(e)}var vJ=["PageUp","PageDown"],vX=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],v0={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},v1="Slider",[v2,v5,v3]=function(e){let t=e+"CollectionProvider",[n,r]=pN(t),[i,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e=>{let{scope:t,children:n}=e,r=p.useRef(null),l=p.useRef(new Map).current;return(0,h.jsx)(i,{scope:t,itemMap:l,collectionRef:r,children:n})};a.displayName=t;let o=e+"CollectionSlot",s=hx(o),c=p.forwardRef((e,t)=>
28{let{scope:n,children:r}=e,i=hy(t,l(o,n).collectionRef);return(0,h.jsx)(s,{ref:i,children:r})});c.displayName=o;let u=e+"CollectionItemSlot",d="data-radix-collection-item",f=hx(u),m=p.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=p.useRef(null),o=hy(t,a),s=l(u,n);return p.useEffect(()=>(s.itemMap.set(a,{ref:a,...i}),()=>void s.itemMap.delete(a))),(0,h.jsx)(f,{...{[d]:""},ref:o,children:r})});return m.displayName=u,[{Provider:a,Slot:c,ItemSlot:m},function(t){let n=l(e+"CollectionConsumer",t);return p.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}(v1),[v4,v6]=pN(v1,[v3]),[v8,v9]=v4(v1),v7=p.forwardRef((e,t)=>{let{name:n,min:r=0,max:i=100,step:l=1,orientation:a="horizontal",disabled:o=!1,minStepsBetweenThumbs:s=0,defaultValue:c=[r],value:u,onValueChange:d=()=>{},onValueCommit:f=()=>{},inverted:m=!1,form:g,...v}=e,y=p.useRef(new Set),x=p.useRef(0),b="horizontal"===a,[w=[],j]=pL({prop:u,defaultProp:c,onChange:e=>{let t=[...y.current];t[x.current]?.focus(),d(e)}}),S=p.useRef(w);function k(e,t,{commit:n}={commit:!1}){let a=(String(l).split(".")[1]||"").length,o=vQ(function(e,t){let n=Math.pow(10,t);return Math.round(e*n)/n}(Math.round((e-r)/l)*l+r,a),[r,i]);j((e=[])=>{let r=function(e=[],t,n){let r=[...e];return r[n]=t,r.sort((e,t)=>e-t)}(e,o,t);if(!function(e,t){if(t>0)return Math.min(...e.slice(0,-1).map((t,n)=>e[n+1]-t))>=t;return!0}(r,s*l))return e;{x.current=r.indexOf(o);let t=String(r)!==String(e);return t&&n&&f(r),t?r:e}})}return(0,h.jsx)(v8,{scope:e.__scopeSlider,name:n,disabled:o,min:r,max:i,valueIndexToChangeRef:x,thumbs:y.current,values:w,orientation:a,form:g,children:(0,h.jsx)(v2.Provider,{scope:e.__scopeSlider,children:(0,h.jsx)(v2.Slot,{scope:e.__scopeSlider,children:(0,h.jsx)(b?yn:yr,{"aria-disabled":o,"data-disabled":o?"":void 0,...v,ref:t,onPointerDown:pC(v.onPointerDown,()=>{o||(S.current=w)}),min:r,max:i,inverted:m,onSlideStart:o?void 0:function(e){let t=function(e,t){if(1===e.length)return 0;let n=e.map(e=>Math.abs(e-t)),r=Math.min(...n);return n.indexOf(r)}(w,e);k(e,t)},onSlideMove:o?void 0:function(e){k(e,x.current)},onSlideEnd:o?void 0:function(){let e=S.current[x.current];w[x.current]!==e&&f(w)},onHomeKeyDown:()=>!o&&k(r,0,{commit:!0}),onEndKeyDown:()=>!o&&k(i,w.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!o){let n=vJ.includes(e.key)||e.shiftKey&&vX.includes(e.key),r=x.current;k(w[r]+l*(n?10:1)*t,r,{commit:!0})}}})})})})});v7.displayName=v1;var[ye,yt]=v4(v1,{startEdge:"left",endEdge:"right",size:"width",direction:1}),yn=p.forwardRef((e,t)=>{let{min:n,max:r,dir:i,inverted:l,onSlideStart:a,onSlideMove:o,onSlideEnd:s,onStepKeyDown:c,...u}=e,[d,f]=p.useState(null),m=hy(t,e=>f(e)),g=p.useRef(void 0),v=function(e){let t=p.useContext(vK);return e||t||"ltr"}(i),y="ltr"===v,x=y&&!l||!y&&l;function b(e){let t=g.current||d.getBoundingClientRect(),i=yf([0,t.width],x?[n,r]:[r,n]);return g.current=t,i(e-t.left)}return(0,h.jsx)(ye,{scope:e.__scopeSlider,startEdge:x?"left":"right",endEdge:x?"right":"left",direction:x?1:-1,size:"width",children:(0,h.jsx)(yi,{dir:v,"data-orientation":"horizontal",...u,ref:m,style:{...u.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{let t=b(e.clientX);a?.(t)},onSlideMove:e=>{let t=b(e.clientX);o?.(t)},onSlideEnd:()=>{g.current=void 0,s?.()},onStepKeyDown:e=>{let t=v0[x?"from-left":"from-right"].includes(e.key);c?.({event:e,direction:t?-1:1})}})})}),yr=p.forwardRef((e,t)=>{let{min:n,max:r,inverted:i,onSlideStart:l,onSlideMove:a,onSlideEnd:o,onStepKeyDown:s,...c}=e,u=p.useRef(null),d=hy(t,u),f=p.useRef(void 0),m=!i;function g(e){let t=f.current||u.current.getBoundingClientRect(),i=yf([0,t.height],m?[r,n]:[n,r]);return f.current=t,i(e-t.top)}return(0,h.jsx)(ye,{scope:e.__scopeSlider,startEdge:m?"bottom":"top",endEdge:m?"top":"bottom",size:"height",direction:m?1:-1,children:(0,h.jsx)(yi,{"data-orientation":"vertical",...c,ref:d,style:{...c.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{let t=g(e.clientY);l?.(t)},onSlideMove:e=>{let t=g(e.clientY);a?.(t)},onSlideEnd:()=>{f.current=void 0,o?.()},onStepKeyDown:e=>
28{let t=v0[m?"from-bottom":"from-top"].includes(e.key);s?.({event:e,direction:t?-1:1})}})})}),yi=p.forwardRef((e,t)=>{let{__scopeSlider:n,onSlideStart:r,onSlideMove:i,onSlideEnd:l,onHomeKeyDown:a,onEndKeyDown:o,onStepKeyDown:s,...c}=e,u=v9(v1,n);return(0,h.jsx)(pA.span,{...c,ref:t,onKeyDown:pC(e.onKeyDown,e=>{"Home"===e.key?(a(e),e.preventDefault()):"End"===e.key?(o(e),e.preventDefault()):vJ.concat(vX).includes(e.key)&&(s(e),e.preventDefault())}),onPointerDown:pC(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),u.thumbs.has(t)?t.focus():r(e)}),onPointerMove:pC(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&i(e)}),onPointerUp:pC(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),l(e))})})}),yl="SliderTrack",ya=p.forwardRef((e,t)=>{let{__scopeSlider:n,...r}=e,i=v9(yl,n);return(0,h.jsx)(pA.span,{"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation,...r,ref:t})});ya.displayName=yl;var yo="SliderRange",ys=p.forwardRef((e,t)=>{let{__scopeSlider:n,...r}=e,i=v9(yo,n),l=yt(yo,n),a=hy(t,p.useRef(null)),o=i.values.length,s=i.values.map(e=>yp(e,i.min,i.max)),c=o>1?Math.min(...s):0,u=100-Math.max(...s);return(0,h.jsx)(pA.span,{"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,...r,ref:a,style:{...e.style,[l.startEdge]:c+"%",[l.endEdge]:u+"%"}})});ys.displayName=yo;var yc="SliderThumb",yu=p.forwardRef((e,t)=>{let n=v5(e.__scopeSlider),[r,i]=p.useState(null),l=hy(t,e=>i(e)),a=p.useMemo(()=>r?n().findIndex(e=>e.ref.current===r):-1,[n,r]);return(0,h.jsx)(yd,{...e,ref:l,index:a})}),yd=p.forwardRef((e,t)=>{let{__scopeSlider:n,index:r,name:i,...l}=e,a=v9(yc,n),o=yt(yc,n),[s,c]=p.useState(null),u=hy(t,e=>c(e)),d=!s||a.form||!!s.closest("form"),f=vr(s),m=a.values[r],g=void 0===m?0:yp(m,a.min,a.max),v=function(e,t){return t>2?`Value ${e+1} of ${t}`:2===t?["Minimum","Maximum"][e]:void 0}(r,a.values.length),y=f?.[o.size],x=y?function(e,t,n){let r=e/2,i=yf([0,50],[0,r]);return(r-i(t)*n)*n}(y,g,o.direction):0;return p.useEffect(()=>{if(s)return a.thumbs.add(s),()=>{a.thumbs.delete(s)}},[s,a.thumbs]),(0,h.jsxs)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[o.startEdge]:`calc(${g}% + ${x}px)`},children:[(0,h.jsx)(v2.ItemSlot,{scope:e.__scopeSlider,children:(0,h.jsx)(pA.span,{role:"slider","aria-label":e["aria-label"]||v,"aria-valuemin":a.min,"aria-valuenow":m,"aria-valuemax":a.max,"aria-orientation":a.orientation,"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,tabIndex:a.disabled?void 0:0,...l,ref:u,style:void 0===m?{display:"none"}:e.style,onFocus:pC(e.onFocus,()=>{a.valueIndexToChangeRef.current=r})})}),d&&(0,h.jsx)(yh,{name:i??(a.name?a.name+(a.values.length>1?"[]":""):void 0),form:a.form,value:m},r)]})});yu.displayName=yc;var yh=p.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{let i=p.useRef(null),l=hy(i,r),a=function(e){let t=p.useRef({value:e,previous:e});return p.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(t);return p.useEffect(()=>{let e=i.current;if(!e)return;let n=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set;if(a!==t&&n){let r=new Event("input",{bubbles:!0});n.call(e,t),e.dispatchEvent(r)}},[a,t]),(0,h.jsx)(pA.input,{style:{display:"none"},...n,ref:l,defaultValue:t})});function yp(e,t,n){return vQ(100/(n-t)*(e-t),[0,100])}function yf(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}yh.displayName="RadioBubbleInput";let ym=e=>{let{defaultValue:t=[50],max:n=100,min:r=0,step:i=1,readOnly:l=!1,bgClassName:a="",fillerBgClassName:o="",sliderThumbClassName:s="hover:bg-violet-200"}=e,[c,u]=(0,p.useState)(t);return(0,h.jsx)("form",{children:(0,h.jsxs)(v7,{className:"relative flex h-5 flex-1 items-center select-none touch-none",value:c,onValueChange:e=>!l&&u(e),max:n,min:r,step:i,disabled:l,children:[(0,h.jsx)(ya,{className:ps("relative h-[3px] flex-grow rounded-full bg-black/10",a),children:(0,h.jsx)(ys,{className:ps("absolute h-full rounded-full bg-white",o)})}),(0,h.jsx)(yu,{className:ps("block h-5 w-5 rounded-full bg-white shadow-[0_2px_10px_rgba(0,0,0,0.35)] focus:outline-none focus:ring-2 focus:ring-black/50 disabled:pointer-events-none disabled:opacity-50",s),"aria-label":"Slider thumb"})]})})},yg=[{key:"coll"},{key:"comp"},{key:"dcpd"},{key:"ab"},{key:"tfrq"}],yv=e=>yg.some(t=>{let{key:n}=t;return n in e}),yy=e=>{let{HCMUResult:t,blok:n}=e,r=e=>e>100?"".concat(e-100,"% ").concat(null==n?void 0:n.AboveStatement):e<100?"".concat(100-e,"% ").concat(null==n?void 0:n.BelowStatement):null==n?void 0:n.AverageStatement;if(yv(t))return(0,h.jsxs)("div",{children:[(0,h.jsx)("div",{className:"space-y-4",children:null==yg?void 0:yg.map(e=>{let{key:i}=e;return(0,h.jsx)("div",{className:"flex flex-col items-center h-10",children:(null==t?void 0:t[i])?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"w-full",children:(0,h.jsx)(ym,{bgClassName:"bg-gradient-to-r from-green-600 from-[0%] to-yellow-400 to-[60%] via-yellow-400 via-[60%] to-red-600 to-[100%] h-5",defaultValue:[null==t?void 0:t[i]],readOnly:!0,fillerBgClassName:"hidden",sliderThumbClassName:"",max:150})}),(0,h.jsx)("span",{className:"text-xs text-grey-500 mt-1",children:r(null==t?void 0:t[i])})]}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"w-full",children:(0,h.jsx)(ym,{bgClassName:"bg-gray-600 h-5 opacity-50",defaultValue:[0],readOnly:!0,fillerBgClassName:"hidden",sliderThumbClassName:"",max:150})}),(0,h.jsxs)(vE,{children:[(0,h.jsx)(vO,{asChild:!0,children:(0,h.jsxs)("div",{className:"text-xs text-grey-500 flex gap-x-1 justify-center items-center cursor-pointer mt-1",children:[null==n?void 0:n.InsufficientLabel,(0,h.jsx)(mV,{className:"size-5 cursor-pointer"})]})}),(0,h.jsx)(vW,{children:null==n?void 0:n.InsufficientInfo})]})]})},i)})}),(0,h.jsxs)(mW,{children:[(0,h.jsx)(mU,{asChild:!0,children:(0,h.jsx)(pu,{variant:"link",className:"text-blue-600 w-full justify-center",children:null==n?void 0:n.WhatDoesThisMeanLabel})}),(0,h.jsx)(mK,{className:"bg-slate-100 text-black max-h-[90%] overflow-y-auto w-full max-w-[calc(100%-2rem)] sm:max-w-lg lg:max-w-2xl",children:(0,h.jsxs)(mG,{children:[(0,h.jsx)(mY,{children:null==n?void 0:n.WhatDoesThisMeanLabel}),(0,h.jsx)(mZ,{children:(0,h.jsx)("div",{className:"space-y-5",children:(0,h.jsx)(ab,{remarkPlugins:[co,cp],children:null==n?void 0:n.WhatDoesThisMeanInfo})})})]})})]})]})},yx=new Map;function yb(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{cache:"no-store"},{cacheDuration:n=180,...r}=t,[i,l]=(0,p.useState)(null),[a,o]=(0,p.useState)(!!e);return(0,p.useEffect)(()=>
28{if(!e)return;let t=yx.get(e),i=Date.now();if(t&&i-t.timestamp<1e3*n){l(t.data),o(!1);return}o(!0),fetch(e,{...r}).then(async t=>{t.ok;let n=await t.json(),r=Array.isArray(n)?n:[];yx.set(e,{data:r,timestamp:i}),l(r)}).catch(e=>{console.error("Fetch error:",e),l([])}).finally(()=>o(!1))},[e]),{data:i,loading:a}}let yw=e=>{let{blok:t,showResultLabel:n,className:r}=e;return(0,h.jsxs)("div",{className:"flex flex-col gap-20 min-w-32 md:min-w-[185px]",children:[(0,h.jsx)("div",{children:(0,h.jsxs)("div",{className:"space-y-2 flex flex-col",children:[(0,h.jsx)("p",{className:"text-sm text-muted-foreground flex items-center justify-end h-9",children:null==t?void 0:t.MakeLabel}),(0,h.jsx)("p",{className:"text-sm text-muted-foreground flex items-center justify-end h-9",children:null==t?void 0:t.ModelLabel}),(0,h.jsx)("p",{className:"text-sm text-muted-foreground flex items-center justify-end h-9",children:null==t?void 0:t.ModelYearLabel}),(0,h.jsx)("p",{className:"text-sm text-muted-foreground flex items-center justify-end h-9",children:null==t?void 0:t.BodyStyleLabel}),(0,h.jsx)("p",{className:"text-sm text-muted-foreground flex items-center justify-end h-9",children:null==t?void 0:t.PowerTypeLabel})]})}),(0,h.jsx)("div",{children:n&&(0,h.jsxs)("div",{className:"space-y-4",children:[(0,h.jsxs)("div",{className:"flex justify-end items-start text-sm gap-x-1 h-10",children:[null==t?void 0:t.CollisionLabel,(0,h.jsxs)(vE,{children:[(0,h.jsx)(vO,{asChild:!0,children:(0,h.jsx)(mV,{className:"size-5 flex-shrink-0 cursor-pointer"})}),(0,h.jsx)(vW,{children:null==t?void 0:t.CollisionInfo})]})]}),(0,h.jsxs)("div",{className:"flex justify-end items-start text-sm gap-x-1 h-10",children:[null==t?void 0:t.ComprehensiveLabel,(0,h.jsxs)(vE,{children:[(0,h.jsx)(vO,{asChild:!0,children:(0,h.jsx)(mV,{className:"size-5 flex-shrink-0 cursor-pointer"})}),(0,h.jsx)(vW,{children:null==t?void 0:t.ComprehensiveInfo})]})]}),(0,h.jsxs)("div",{className:"flex justify-end items-start text-sm gap-x-1 h-10",children:[null==t?void 0:t.DCPDLabel,(0,h.jsxs)(vE,{children:[(0,h.jsx)(vO,{asChild:!0,children:(0,h.jsx)(mV,{className:"size-5 flex-shrink-0 cursor-pointer"})}),(0,h.jsx)(vW,{children:null==t?void 0:t.DCPDInfo})]})]}),(0,h.jsxs)("div",{className:"flex justify-end items-start text-sm gap-x-1 h-10",children:[null==t?void 0:t.ABLabel,(0,h.jsxs)(vE,{children:[(0,h.jsx)(vO,{asChild:!0,children:(0,h.jsx)(mV,{className:"size-5 flex-shrink-0 cursor-pointer"})}),(0,h.jsx)(vW,{children:null==t?void 0:t.ABInfo})]})]}),(0,h.jsxs)("div",{className:"flex justify-end items-start text-sm gap-x-1 h-10 text-end",children:[null==t?void 0:t.RelativeTheftFrequencyLabel,(0,h.jsxs)(vE,{children:[(0,h.jsx)(vO,{asChild:!0,children:(0,h.jsx)(mV,{className:"size-5 flex-shrink-0 cursor-pointer"})}),(0,h.jsx)(vW,{children:null==t?void 0:t.RelativeTheftFrequencyInfo})]})]})]})})]})};var yj=n(9742);let yS={makeID:null,modelID:null,modelYear:null,bodyStyleID:null,powerTypeId:null},yk=e=>{let{onRemove:t,blok:n,locale:r,setShowResultLabel:i}=e,[l,a]=(0,p.useState)(yS),[o,s]=(0,p.useState)(null),[c,u]=(0,p.useState)(!1),d=(0,p.useRef)(null),f=Object.values(l).every(e=>e),{data:m,loading:g}=yb("/api/hcmuList?key=Make"),{data:v,loading:y}=yb(l.makeID?"/api/hcmuList?key=Model&MakeID=".concat(l.makeID):null),{data:x,loading:b}=yb(l.modelID?"/api/hcmuList?key=ModelYear&ModelID=".concat(l.modelID):null),{data:w,loading:j}=yb(l.modelYear?"/api/hcmuList?key=BodyStyle&ModelID=".concat(l.modelID,"&ModelYear=").concat(l.modelYear):null),{data:S,loading:k}=yb(l.bodyStyleID?"/api/hcmuList?key=PowerType&ModelID=".concat(l.modelID,"&ModelYear=").concat(l.modelYear,"&BodyStyleID=").concat(l.bodyStyleID):null);async function _(e){e.preventDefault(),u(!0),null==i||i(!1),s(null),d.current.props.grecaptcha.enterprise.ready(async()=>{let e=await d.current.execute(yj.env.NEXT_PUBLIC_RecaptchaSiteID,{action:"LOGIN"}).then(e=>e);fetch("/api/hcmuSearch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l,recaptchaToken:e})}).then(e=>e.json()).then(e=>{s(e),yv(e)&&(null==i||i(!0))}).finally(()=>u(!1))})}return(0,p.useEffect)(()=>{(null==x?void 0:x.length)===1&&l.makeID&&a(e=>({...e,modelYear:x[0].id})),(null==w?void 0:w.length)===1&&l.modelYear&&a(e=>({...e,bodyStyleID:w[0].id})),(null==S?void 0:S.length)===1&&l.bodyStyleID&&a(e=>({...e,powerTypeId:S[0].id}))},[x,w,S]),(0,h.jsxs)("div",{className:"grid grid-cols-[120px_minmax(0,1fr)] md:grid-cols-[max-content,1fr] gap-4 lg:gap-0 lg:grid-cols-none",children:[(0,h.jsx)("div",{className:"lg:hidden",children:(0,h.jsx)(yw,{blok:n,showResultLabel:null!==o})}),(0,h.jsxs)("div",{className:"space-y-6 max-w-md min-w-0",children:[(0,h.jsxs)("form",{onSubmit:_,children:[(0,h.jsx)(uQ,{ref:d,size:"invisible",sitekey:"6LejT0IlAAAAAEfRO0Rz2fqYcCaKLToLVMcLuyC0",onChange:e=>{}}),(0,h.jsxs)("div",{className:"space-y-2",children:[(0,h.jsx)(vU,{options:m,placeholder:null==n?void 0:n.MakeLabel,translation:r,loading:g,value:l.makeID,onChange:e=>a(t=>({...yS,makeID:e}))}),(0,h.jsx)(vU,{options:v,placeholder:null==n?void 0:n.ModelLabel,translation:r,loading:y,value:l.modelID,onChange:e=>a(t=>({...yS,makeID:t.makeID,modelID:e})),disabled:!l.makeID}),(0,h.jsx)(vU,{options:x,placeholder:null==n?void 0:n.ModelYearLabel,loading:b,value:l.modelYear,onChange:e=>a(t=>({...yS,makeID:t.makeID,modelID:t.modelID,modelYear:e})),disabled:!l.modelID}),(0,h.jsx)(vU,{options:w,placeholder:null==n?void 0:n.BodyStyleLabel,translation:r,loading:j,value:l.bodyStyleID,onChange:e=>a(t=>({...t,bodyStyleID:e,powerTypeId:null})),disabled:!l.modelYear}),(0,h.jsx)(vU,{options:S,translation:r,placeholder:null==n?void 0:n.PowerTypeLabel,loading:k,value:l.powerTypeId,onChange:e=>a(t=>({...t,powerTypeId:e})),disabled:!l.bodyStyleID})]}),(0,h.jsxs)("div",{className:"flex flex-row justify-center items-center gap-x-2 mt-5",children:[t&&(0,h.jsxs)(pu,{onClick:t,className:"cursor-pointer bg-gray-500 hover:bg-gray-400 text-white",type:"button",children:[(0,h.jsx)(vq,{}),null==n?void 0:n.RemoveButtonLabel]}),(0,h.jsx)(pu,{className:"bg-red-500 hover:bg-red-500/90 text-white w-full",type:"submit",disabled:c||!f,children:c?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("span",{className:"inline-block size-5 mr-2 align-middle rounded-full border-2 border-white/30 border-t-white animate-spin"}),null==n?void 0:n.SearchingLabel]}):(0,h.jsx)(h.Fragment,{children:null==n?void 0:n.SearchLabel})})]})]}),o&&(0,h.jsx)(yy,{HCMUResult:o,blok:n})]})]})},y_={grey:"bg-grey-50 text-black",red:"bg-red-500 text-white",green:"bg-green-500 text-white",blue:"bg-blue-500 text-white",teal:"bg-teal-500 text-white",sage:"bg-lime-500 text-white",white:"bg-white text-black",amber:"bg-amber-500 text-black",insightGrey:"bg-[#5456
285a] text-white",tealBlue:"bg-[#7ca7ad] text-white",rose:"bg-[#9d7692] text-white",cisGreen:"bg-[#71984a] text-white"};(0,m.YV)({accessToken:"CNlbkh6FTpH4uwPBDOgc0gtt",use:[m.YB],apiOptions:{region:"EU"},components:{Career_Detail_Layout:e=>{var t,n,r,i,l,a,o,s,c,u,d,f,g,v,x,b,j,S,k,N,E,P,T,O,R,L,I,A,M,F,D,H,B,$,V,W,U,q;let{blok:Q,story:K,locale:G}=e,{t:Y}=(0,y.Bd)("common"),{t:Z}=(0,y.Bd)("datasources"),[J,ee]=(0,p.useState)(G||"en"),et=(null==Q?void 0:Q.Job_Type)?Z("job-type.".concat(Q.Job_Type),Q.Job_Type):"";(0,p.useEffect)(()=>{G||ee(C())},[G]);let en=(null==Q?void 0:Q.Resource_Title)?Z("work-departments.".concat(Q.Resource_Title),Q.Resource_Title):"";return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(oT(),{children:[(0,h.jsx)("title",{children:(null==Q||null==(t=Q.Meta_Tags)?void 0:t.title)||(null==Q?void 0:Q.Title)||(null==Q||null==(r=Q.Hero)||null==(n=r[0])?void 0:n.Heading)}),(0,h.jsx)("meta",{name:"description",content:(null==Q||null==(i=Q.Meta_Tags)?void 0:i.description)||(null==Q||null==(s=Q.Blurb)||null==(o=s.content)||null==(a=o[0])||null==(l=a.content)?void 0:l[0].text)||(null==Q||null==(v=Q.Hero)||null==(g=v[0])||null==(f=g.Short_Blurb)||null==(d=f.content)||null==(u=d[0])||null==(c=u.content)?void 0:c[0].text)||"Insurance Bureau of Canada is the national industry association representing Canada's private home, car and business insurers. Its member companies represent 90% of the property and casualty (P&C) insurance market in Canada."}),(0,h.jsx)("meta",{property:"og:title",content:(null==Q||null==(x=Q.Meta_Tags)?void 0:x.og_title)||(null==Q?void 0:Q.Title)||(null==Q||null==(j=Q.Hero)||null==(b=j[0])?void 0:b.Heading)}),(0,h.jsx)("meta",{property:"og:description",content:(null==Q||null==(S=Q.Meta_Tags)?void 0:S.og_description)||(null==Q||null==(P=Q.Blurb)||null==(E=P.content)||null==(N=E[0])||null==(k=N.content)?void 0:k[0].text)||(null==Q||null==(A=Q.Hero)||null==(I=A[0])||null==(L=I.Short_Blurb)||null==(R=L.content)||null==(O=R[0])||null==(T=O.content)?void 0:T[0].text)||"Insurance Bureau of Canada is the national industry association representing Canada's private home, car and business insurers. Its member companies represent 90% of the property and casualty (P&C) insurance market in Canada."}),(0,h.jsx)("meta",{property:"og:image",content:"".concat((null==Q||null==(M=Q.Meta_Tags)?void 0:M.og_image)||(null==Q||null==(F=Q.Image)?void 0:F.filename)||(null==Q||null==(B=Q.Hero)||null==(H=B[0])||null==(D=H.Full_Width_Image)?void 0:D.filename),"/m/1200x630")}),(0,h.jsx)("meta",{property:"og:type",content:"website"}),(0,h.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})]}),(0,h.jsxs)("main",{...(0,m.K1)(Q),className:"bg-grey-50 pt-12 md:pt-0",children:[(0,h.jsxs)(w.A,{children:[(0,h.jsx)("nav",{className:"py-12 font-body hidden md:block",children:(0,h.jsx)(oB,{breadcrumbs:K.breadcrumbs,containerClasses:"text-gray-500",title:Q.Title})}),(0,h.jsxs)("div",{className:"md:w-2/3",children:[(0,h.jsx)("p",{className:"text-xs uppercase text-grey-500 border-b-2 border-red-500 leading-loose",children:en}),(0,h.jsx)("h1",{className:"text-red-500 text-7xl md:text-9xl font-display py-12",children:Q.Title})]}),(0,h.jsxs)("div",{className:"flex flex-col md:flex-row md:gap-12 pb-12 md:pb-0",children:[_(null==Q?void 0:Q.Job_Description)?(0,h.jsx)("div",{className:"md:w-2/3 prose max-w-full prose-ul:py-0 prose-li:marker:text-red-500 prose-h2:text-6xl prose-h2:md:text-8xl prose-h2:font-medium prose-h2:text-red-500 prose-h2:mt-12 first:prose-h2:mt-0 prose-h3:text-5xl prose-h3:md:text-6xl prose-h3:font-extrabold prose-h3:font-display prose-h3:text-grey-500 prose-strong:font-normal pb-12 md:pb-48",children:z(null==Q?void 0:Q.Job_Description,{markResolvers:{link:X},nodeResolvers:er})}):void 0,(0,h.jsx)("div",{className:"md:w-1/3",children:(0,h.jsxs)("aside",{className:"bg-white p-6 text-grey-500 space-y-6",children:[_(null==Q?void 0:Q.Position_Info)?(0,h.jsx)("div",{className:"prose max-w-full font-display text-grey-500 prose-a:block prose-a:text-red-500 prose-a:no-underline hover:prose-a:underline hover:prose-a:text-red-700 active:prose-a:text-red-900 prose-h3:text-red-500 prose-h3:text-2xl prose-h3:uppercase [&_h3+p]:mt-3 [&_p+h3]:mt-6",children:z(null==Q?void 0:Q.Position_Info,{markResolvers:{link:X},nodeResolvers:er})}):void 0,(null==Q?void 0:Q.Show_Other_Info)?(0,h.jsxs)(h.Fragment,{children:[(null==Q||null==($=Q.Job_Type)?void 0:$.length)?(0,h.jsxs)("dl",{className:"space-y-3",children:[(0,h.jsx)("dt",{className:"text-2xl font-display uppercase text-red-500",children:Y("
28components.Career_Detail_Layout.job_type","Job Type")}),(0,h.jsx)("dd",{children:et})]}):void 0,(null==Q||null==(V=Q.Street_Address)?void 0:V.length)||(null==Q||null==(W=Q.Location)?void 0:W.length)?(0,h.jsxs)("dl",{className:"space-y-3",children:[(0,h.jsx)("dt",{className:"text-2xl font-display uppercase text-red-500",children:Y("components.Career_Detail_Layout.location","Location")}),(0,h.jsx)("dd",{children:[Q.Street_Address,Q.Location].filter(e=>!!e).join(", ")})]}):void 0,(null==K||null==(U=K.first_published_at)?void 0:U.length)?(0,h.jsxs)("dl",{className:"space-y-3",children:[(0,h.jsx)("dt",{className:"text-2xl font-display uppercase text-red-500",children:Y("components.Career_Detail_Layout.posting_date","Posting Date")}),(0,h.jsx)("dd",{children:ob(new Date(K.first_published_at),"PP",{locale:o$[G]})})]}):void 0,(null==Q||null==(q=Q.Closing_Date)?void 0:q.length)?(0,h.jsxs)("dl",{className:"space-y-3",children:[(0,h.jsx)("dt",{className:"text-2xl font-display uppercase text-red-500",children:Y("components.Career_Detail_Layout.closing_date","Closing Date")}),(0,h.jsx)("dd",{children:ob(new Date(Q.Closing_Date),"PP",{locale:o$[G]})})]}):void 0]}):void 0,_(Q.Application_Contact)?(0,h.jsxs)("dl",{className:"space-y-3",children:[(0,h.jsxs)("dt",{className:"text-4xl md:text-5xl md:font-medium font-display text-red-500",children:["​​​​​",Y("components.Career_Detail_Layout.resume","Resume")]}),(0,h.jsx)("dd",{children:(0,h.jsx)("div",{className:"text-grey-500 prose max-w-full prose-ul:py-0 prose-h2:text-6xl prose-h2:md:text-8xl prose-h2:font-medium prose-h2:text-red-500 prose-h3:text-5xl prose-h3:md:text-6xl prose-h3:font-extrabold prose-h3:font-display prose-h3:text-grey-500 prose-a:block prose-a:text-red-500 prose-a:no-underline hover:prose-a:underline hover:prose-a:text-red-700 active:prose-a:text-red-900 prose-strong:text-grey-500",children:z(Q.Application_Contact,{markResolvers:{link:X},nodeResolvers:er})})})]}):void 0]})})]})]}),(0,h.jsx)(oH,{location:null==Q?void 0:Q.Location,exclude:null==K?void 0:K.id,locale:G})]})]})},Careers_Overview_Layout:e=>{var t,n,r,i,l,a,o,s,c,u,d,f,g,v,y,x,b,w,j,S,k,_,C,N,E,P,T,O,R,L,I,A,M,F,D;let{blok:H,story:B,locale:$,jobs:z}=e;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(oT(),{children:[(0,h.jsx)("title",{children:(null==H||null==(t=H.Meta_Tags)?void 0:t.title)||(null==H?void 0:H.Title)||(null==H||null==(r=H.Hero)||null==(n=r[0])?void 0:n.Heading)}),(0,h.jsx)("meta",{name:"description",content:(null==H||null==(i=H.Meta_Tags)?void 0:i.description)||(null==H||null==(s=H.Blurb)||null==(o=s.content)||null==(a=o[0])||null==(l=a.content)?void 0:l[0].text)||(null==H||null==(v=H.Hero)||null==(g=v[0])||null==(f=g.Short_Blurb)||null==(d=f.content)||null==(u=d[0])||null==(c=u.content)?void 0:c[0].text)||"Insurance Bureau of Canada is the national industry association representing Canada's private home, car and business insurers. Its member companies represent 90% of the property and casualty (P&C) insurance market in Canada."}),(0,h.jsx)("meta",{property:"og:title",content:(null==H||null==(y=H.Meta_Tags)?void 0:y.og_title)||(null==H?void 0:H.Title)||(null==H||null==(b=H.Hero)||null==(x=b[0])?void 0:x.Heading)}),(0,h.jsx)("meta",{property:"og:description",content:(null==H||null==(w=H.Meta_Tags)?void 0:w.og_description)||(null==H||null==(_=H.Blurb)||null==(k=_.content)||null==(S=k[0])||null==(j=S.content)?void 0:j[0].text)||(null==H||null==(O=H.Hero)||null==(T=O[0])||null==(P=T.Short_Blurb)||null==(E=P.content)||null==(N=E[0])||null==(C=N.content)?void 0:C[0].text)||"Insurance Bureau of Canada is the national industry association representing Canada's private home, car and business insurers. Its member companies represent 90% of the property and casualty (P&C) insurance market in Canada."}),(0,h.jsx)("meta",{property:"og:image",content:"".concat((null==H||null==(R=H.Meta_Tags)?void 0:R.og_image)||(null==H||null==(L=H.Image)?void 0:L.filename)||(null==H||null==(M=H.Hero)||null==(A=M[0])||null==(I=A.Full_Width_Image)?void 0:I.filename),"/m/1200x630")}),(0,h.jsx)("meta",{property:"og:type",content:"website"}),(0,h.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})]}
28),(0,h.jsxs)("main",{...(0,m.K1)(H),children:[[...null!=(F=H.Hero)?F:[],...null!=(D=H.Intro)?D:[]].map(e=>(0,p.createElement)(m.Dp,{blok:e,type:H.component,story:B,key:e._uid})),(0,h.jsx)(oV,{jobs:z,locale:$},$),H.Content_Blocks.map(e=>(0,p.createElement)(m.Dp,{blok:e,type:H.component,story:B,key:e._uid}))]})]})},Contact_Layout:e=>{var t,n,r,i,l,a,o,s,c,u,d,f,g,v,y,x,b,j,S,k,_,C,N,E,P,T,O,R,L,I,A,M,F,D,H,B;let{blok:$,story:z}=e;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(oT(),{children:[(0,h.jsx)("title",{children:(null==$||null==(t=$.Meta_Tags)?void 0:t.title)||(null==$?void 0:$.Title)||(null==$||null==(r=$.Hero)||null==(n=r[0])?void 0:n.Heading)}),(0,h.jsx)("meta",{name:"description",content:(null==$||null==(i=$.Meta_Tags)?void 0:i.description)||(null==$||null==(s=$.Blurb)||null==(o=s.content)||null==(a=o[0])||null==(l=a.content)?void 0:l[0].text)||(null==$||null==(v=$.Hero)||null==(g=v[0])||null==(f=g.Short_Blurb)||null==(d=f.content)||null==(u=d[0])||null==(c=u.content)?void 0:c[0].text)||"Insurance Bureau of Canada is the national industry association representing Canada's private home, car and business insurers. Its member companies represent 90% of the property and casualty (P&C) insurance market in Canada."}),(0,h.jsx)("meta",{property:"og:title",content:(null==$||null==(y=$.Meta_Tags)?void 0:y.og_title)||(null==$?void 0:$.Title)||(null==$||null==(b=$.Hero)||null==(x=b[0])?void 0:x.Heading)}),(0,h.jsx)("meta",{property:"og:description",content:(null==$||null==(j=$.Meta_Tags)?void 0:j.og_description)||(null==$||null==(C=$.Blurb)||null==(_=C.content)||null==(k=_[0])||null==(S=k.content)?void 0:S[0].text)||(null==$||null==(R=$.Hero)||null==(O=R[0])||null==(T=O.Short_Blurb)||null==(P=T.content)||null==(E=P[0])||null==(N=E.content)?void 0:N[0].text)||"Insurance Bureau of Canada is the national industry association representing Canada's private home, car and business insurers. Its member companies represent 90% of the property and casualty (P&C) insurance market in Canada."}),(0,h.jsx)("meta",{property:"og:image",content:"".concat((null==$||null==(L=$.Meta_Tags)?void 0:L.og_image)||(null==$||null==(I=$.Image)?void 0:I.filename)||(null==$||null==(F=$.Hero)||null==(M=F[0])||null==(A=M.Full_Width_Image)?void 0:A.filename),"/m/1200x630")}),(0,h.jsx)("meta",{property:"og:type",content:"website"}),(0,h.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})]}),(0,h.jsxs)("main",{className:"bg-grey-50",...(0,m.K1)($),children:[[...null!=(D=$.Hero)?D:[],...null!=(H=$.Intro)?H:[]].map(e=>(0,p.createElement)(m.Dp,{blok:e,type:$.component,story:z,key:e._uid})),(0,h.jsx)("div",{className:"w-full bg-white",children:(0,h.jsxs)(w.A,{className:"py-12 md:py-24",children:[(0,h.jsx)(uT,{className:"pb-24 text-red-500 text-6xl md:text-8xl font-normal font-display",children:null==$?void 0:$.Office_Locations_Heading}),(0,h.jsx)("div",{className:"space-y-24",children:$.Office_Locations.map(e=>(0,p.createElement)(m.Dp,{blok:e,type:$.component,story:z,key:e._uid}))})]})}),[...null!=(B=$.Content_Blocks)?B:[]].map(e=>(0,p.createElement)(m.Dp,{blok:e,type:$.component,story:z,key:e._uid}))]})]})},Events_Overview_Layout:e=>{var t,n,r,i,l,a,o,s,c,u,d,f,g,v,y,x,b,w,j,S,k,_,C,N,E,P,T,O,R,L,I,A,M,F,D;let{story:H,blok:B,events:$,myevents:z,dataSrcEntries:V,locale:W}=e;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(oT(),{children:[(0,h.jsx)("title",{children:(null==B||null==(t=B.Meta_Tags)?void 0:t.title)||(null==B?void 0:B.Title)||(null==B||null==(r=B.Hero)||null==(n=r[0])?void 0:n.Heading)}),(0,h.jsx)("meta",{name:"description",content:(null==B||null==(i=B.Meta_Tags)?void 0:i.description)||(null==B||null==(s=B.Blurb)||null==(o=s.content)||null==(a=o[0])||null==(l=a.content)?void 0:l[0].text)||(null==B||null==(v=B.Hero)||null==(g=v[0])||null==(f=g.Short_Blurb)||null==(d=f.content)||null==(u=d[0])||null==(c=u.content)?void 0:c[0].text)||"Insurance Bureau of Canada is the national industry association representing Canada's private home, car and business insurers. Its member companies represent 90% of the property and casualty (P&C) insurance market in Canada."}),(0,h.jsx)("meta",{property:"og:title",content:(null==B||null==(y=B.Meta_Tags)?void 0:y.og_title)||(null==B?void 0:B.Title)||(null==B||null==(b=B.Hero)||null==(x=b[0])?void 0:x.Heading)}),(0,h.jsx)("meta",{property:"og:description",content:(null==B||null==(w=B.Meta_Tags)?void 0:w.og_description)||(null==B||null==(_=B.Blurb)||null==(k=_.content)||null==(S=k[0])||null==(j=S.content)?void 0:j[0].text)||(null==B||null==(O=B.Hero)||null==(T=O[0])||null==(P=T.Short_Blurb)||null==(E=P.content)||null==(N=E[0])||null==(C=N.content)?void 0:C[0].text)||"Insurance Bureau of Canada is the national industry association representing Canada's private home, car and business insurers. Its member companies represent 90% of the property and casualty (P&C) insurance market in Canada."}),(0,h.jsx)("meta",{property:"og:image",content:"".concat((null==B||null==(R=B.Meta_Tags)?void 0:R.og_image)||(null==B||null==(L=B.Image)?void 0:L.filename)||(null==B||null==(M=B.Hero)||null==(A=M[0])||null==(I=A.Full_Width_Image)?void 0:I.filename),"/m/1200x630")}),(0,h.jsx)("meta",{property:"og:type",content:"website"}),(0,h.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})]}
28),(0,h.jsx)("main",{...(0,m.K1)(B),children:[...null!=(F=B.Hero)?F:[],...null!=(D=B.Content_Blocks)?D:[]].map(e=>(0,p.createElement)(m.Dp,{blok:e,type:B.component,events:$,story:H,myevents:z,dataSrcEntries:V,locale:W,key:e._uid}))})]})},Event_Detail_Layout:e=>{var t,n,r,i,l,a,o,s,c,u,d,f,g,v,y,x,b,w,j,S,k,_,C,N,E,P,T,O,R,L,I,A,M,F,D;let{blok:H,events:B,story:$}=e;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(oT(),{children:[(0,h.jsx)("title",{children:(null==H||null==(t=H.Meta_Tags)?void 0:t.title)||(null==H?void 0:H.Title)||(null==H||null==(r=H.Hero)||null==(n=r[0])?void 0:n.Heading)}),(0,h.jsx)("meta",{name:"description",content:(null==H||null==(i=H.Meta_Tags)?void 0:i.description)||(null==H||null==(s=H.Blurb)||null==(o=s.content)||null==(a=o[0])||null==(l=a.content)?void 0:l[0].text)||(null==H||null==(v=H.Hero)||null==(g=v[0])||null==(f=g.Short_Blurb)||null==(d=f.content)||null==(u=d[0])||null==(c=u.content)?void 0:c[0].text)||"Insurance Bureau of Canada is the national industry association representing Canada's private home, car and business insurers. Its member companies represent 90% of the property and casualty (P&C) insurance market in Canada."}),(0,h.jsx)("meta",{property:"og:title",content:(null==H||null==(y=H.Meta_Tags)?void 0:y.og_title)||(null==H?void 0:H.Title)||(null==H||null==(b=H.Hero)||null==(x=b[0])?void 0:x.Heading)}),(0,h.jsx)("meta",{property:"og:description",content:(null==H||null==(w=H.Meta_Tags)?void 0:w.og_description)||(null==H||null==(_=H.Blurb)||null==(k=_.content)||null==(S=k[0])||null==(j=S.content)?void 0:j[0].text)||(null==H||null==(O=H.Hero)||null==(T=O[0])||null==(P=T.Short_Blurb)||null==(E=P.content)||null==(N=E[0])||null==(C=N.content)?void 0:C[0].text)||"Insurance Bureau of Canada is the national industry association representing Canada's private home, car and business insurers. Its member companies represent 90% of the property and casualty (P&C) insurance market in Canada."}),(0,h.jsx)("meta",{property:"og:image",content:"".concat((null==H||null==(R=H.Meta_Tags)?void 0:R.og_image)||(null==H||null==(L=H.Image)?void 0:L.filename)||(null==H||null==(M=H.Hero)||null==(A=M[0])||null==(I=A.Full_Width_Image)?void 0:I.filename),"/m/1200x630")}),(0,h.jsx)("meta",{property:"og:type",content:"website"}),(0,h.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})]}),(0,h.jsx)("main",{...(0,m.K1)(H),children:[...null!=(F=H.Hero)?F:[],...null!=(D=H.Content_Blocks)?D:[]].map(e=>(0,p.createElement)(m.Dp,{blok:e,type:H.component,events:B,story:$,key:e._uid}))})]})},Glossary_Layout:e=>{var t,n,r,i,l,a,o,s,c,u,d,f,g,v,y,x,b,j,S,k,_,C,N,E,P,T,O,R,L,I,A,M,F,D,H;let{blok:B,story:$}=e;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(oT(),{children:[(0,h.jsx)("title",{children:(null==B||null==(t=B.Meta_Tags)?void 0:t.title)||(null==B?void 0:B.Title)||(null==B||null==(r=B.Hero)||null==(n=r[0])?void 0:n.Heading)}),(0,h.jsx)("meta",{name:"description",content:(null==B||null==(i=B.Meta_Tags)?void 0:i.description)||(null==B||null==(s=B.Blurb)||null==(o=s.content)||null==(a=o[0])||null==(l=a.content)?void 0:l[0].text)||(null==B||null==(v=B.Hero)||null==(g=v[0])||null==(f=g.Short_Blurb)||null==(d=f.content)||null==(u=d[0])||null==(c=u.content)?void 0:c[0].text)||"Insurance Bureau of Canada is the national industry association representing Canada's private home, car and business insurers. Its member companies represent 90% of the property and casualty (P&C) insurance market in Canada."}),(0,h.jsx)("meta",{property:"og:title",content:(null==B||null==(y=B.Meta_Tags)?void 0:y.og_title)||(null==B?void 0:B.Title)||(null==B||null==(b=B.Hero)||null==(x=b[0])?void 0:x.Heading)}),(0,h.jsx)("meta",{property:"og:description",content:(null==B||null==(j=B.Meta_Tags)?void 0:j.og_description)||(null==B||null==(C=B.Blurb)||null==(_=C.content)||null==(k=_[0])||null==(S=k.content)?void 0:S[0].text)||(null==B||null==(R=B.Hero)||null==(O=R[0])||null==(T=O.Short_Blurb)||null==(P=T.content)||null==(E=P[0])||null==(N=E.content)?void 0:N[0].text)||"Insurance Bureau of Canada is the national industry association representing Canada's private home, car and business insurers. Its member companies represent 90% of the property and casualty (P&C) insurance market in Canada."}),(0,h.jsx)("meta",{property:"og:image",content:"".concat((null==B||null==(L=B.Meta_Tags)?void 0:L.og_image)||(null==B||null==(I=B.Image)?void 0:I.filename)||(null==B||null==(F=B.Hero)||null==(M=F[0])||null==(A=M.Full_Width_Image)?void 0:A.filename),"/m/1200x630")}),(0,h.jsx)("meta",{property:"og:type",content:"website"}),(0,h.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})]}),(0,h.jsxs)("main",{...(0,m.K1)(B),children:[[...null!=(D=B.Hero)?D:[],...null!=(H=B.Intro)?H:[]].map(e=>(0,p.createElement)(m.Dp,{blok:e,type:B.component,story:$,key:e._uid})),(0,h.jsx)(w.A,{as:"article",className:"flex flex-col items-start w-full",mobile:!1,children:(0,h.jsx)("div",{className:"w-full md:w-2/3",children:B.Content_Blocks.filter(e=>"Accordion"===e.component).map(e=>(0,p.createElement)(m.Dp,{blok:e,type:B.component,story:$,key:e._uid}))})}),B.Content_Blocks.filter(e=>"Accordion"!==e.component).map(e=>(0,p.createElement)(m.Dp,{blok:e,type:B.component,story:$,key:e._uid}))]})]})},FAQs_Layout:e=>{var t,n,r,i,l,a,o,s,c,u,d,f,g,v,y,x,b,j,S,k,_,C,N,E,P,T,O,R,L,I,A,M,F,D,H;let{blok:B,story:$}=e;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(oT(),{children:[(0,h.jsx)("title",{children:(null==B||null==(t=B.Meta_Tags)?void 0:t.t
28itle)||(null==B?void 0:B.Title)||(null==B||null==(r=B.Hero)||null==(n=r[0])?void 0:n.Heading)}),(0,h.jsx)("meta",{name:"description",content:(null==B||null==(i=B.Meta_Tags)?void 0:i.description)||(null==B||null==(s=B.Blurb)||null==(o=s.content)||null==(a=o[0])||null==(l=a.content)?void 0:l[0].text)||(null==B||null==(v=B.Hero)||null==(g=v[0])||null==(f=g.Short_Blurb)||null==(d=f.content)||null==(u=d[0])||null==(c=u.content)?void 0:c[0].text)||"Insurance Bureau of Canada is the national industry association representing Canada's private home, car and business insurers. Its member companies represent 90% of the property and casualty (P&C) insurance market in Canada."}),(0,h.jsx)("meta",{property:"og:title",content:(null==B||null==(y=B.Meta_Tags)?void 0:y.og_title)||(null==B?void 0:B.Title)||(null==B||null==(b=B.Hero)||null==(x=b[0])?void 0:x.Heading)}),(0,h.jsx)("meta",{property:"og:description",content:(null==B||null==(j=B.Meta_Tags)?void 0:j.og_description)||(null==B||null==(C=B.Blurb)||null==(_=C.content)||null==(k=_[0])||null==(S=k.content)?void 0:S[0].text)||(null==B||null==(R=B.Hero)||null==(O=R[0])||null==(T=O.Short_Blurb)||null==(P=T.content)||null==(E=P[0])||null==(N=E.content)?void 0:N[0].text)||"Insurance Bureau of Canada is the national industry association representing Canada's private home, car and business insurers. Its member companies represent 90% of the property and casualty (P&C) insurance market in Canada."}),(0,h.jsx)("meta",{property:"og:image",content:"".concat((null==B||null==(L=B.Meta_Tags)?void 0:L.og_image)||(null==B||null==(I=B.Image)?void 0:I.filename)||(null==B||null==(F=B.Hero)||null==(M=F[0])||null==(A=M.Full_Width_Image)?void 0:A.filename),"/m/1200x630")}),(0,h.jsx)("meta",{property:"og:type",content:"website"}),(0,h.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})]}),(0,h.jsxs)("main",{...(0,m.K1)(B),children:[[...null!=(D=B.Hero)?D:[],...null!=(H=B.Intro)?H:[]].map(e=>(0,p.createElement)(m.Dp,{blok:e,type:B.component,story:$,key:e._uid})),(0,h.jsx)(w.A,{className:"pt-12 md:pt-24",children:(0,h.jsx)("nav",{className:"flex flex-wrap",children:B.Content_Blocks.filter(e=>"Accordion"===e.component).map(e=>(0,h.jsx)("button",{className:"mb-3 mr-3",children:(0,h.jsx)(n9,{onClick:e=>Y(e,{offset:100}),className:"px-6 py-3 bg-grey-100 hover:bg-grey-300 active:bg-grey-500 hover:text-grey-700 active:text-grey-50 transition duration-150 ease-in-out inline-block text-grey-900",href:"#".concat(oW(e.Title)),children:e.Title})},e._uid))})}),(0,h.jsx)(w.A,{as:"article",className:"flex flex-col items-start w-full xl:px-0",mobile:!1,tablet:!1,desktop:!1,children:(0,h.jsx)("div",{className:"md:w-2/3 py-12 md:py-24 space-y-12 md:space-y-24",children:B.Content_Blocks.filter(e=>"Accordion"===e.component).map(e=>(0,p.createElement)(m.Dp,{blok:e,type:B.component,story:$,key:e._uid}))})}),B.Content_Blocks.filter(e=>"Accordion"!==e.component).map(e=>(0,p.createElement)(m.Dp,{blok:e,type:B.component,story:$,key:e._uid}))]})]})},Homepage_Layout:e=>{var t,n,r,i,l,a,o,s,c,u,d,p,f,g,v,y,x,b,w,j,S,k,_,C,N,E,P,T,O,R,L,I,A,M,F;let{blok:D,latestNews:H,inFocusNews:B,locale:$}=e;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(oT(),{children:[(0,h.jsx)("title",{children:(null==D||null==(t=D.Meta_Tags)?void 0:t.title)||(null==D?void 0:D.Title)||(null==D||null==(r=D.Hero)||null==(n=r[0])?void 0:n.Heading)}),(0,h.jsx)("meta",{name:"description",content:(null==D||null==(i=D.Meta_Tags)?void 0:i.description)||(null==D||null==(s=D.Blurb)||null==(o=s.content)||null==(a=o[0])||null==(l=a.content)?void 0:l[0].text)||(null==D||null==(g=D.Hero)||null==(f=g[0])||null==(p=f.Short_Blurb)||null==(d=p.content)||null==(u=d[0])||null==(c=u.content)?void 0:c[0].text)||"Insurance Bureau of Canada is the national industry association representing Canada's private home, car and business insurers. Its member companies represent 90% of the property and casualty (P&C) insurance market in Canada."}),(0,h.jsx)("meta",{property:"og:title",content:(null==D||null==(v=D.Meta_Tags)?void 0:v.og_title)||(null==D?void 0:D.Title)||(null==D||null==(x=D.Hero)||null==(y=x[0])?void 0:y.Heading)}),(0,h.jsx)("meta",{property:"og:description",content:(null==D||null==(b=D.Meta_Tags)?void 0:b.og_description)||(null==D||null==(k=D.Blurb)||null==(S=k.content)||null==(j=S[0])||null==(w=j.content)?void 0:w[0].text)||(null==D||null==(T=D.Hero)||null==(P=T[0])||null==(E=P.Short_Blurb)||null==(N=E.content)||null==(C=N[0])||null==(_=C.content)?void 0:_[0].text)||"Insurance Bureau of Canada is the national industry association representing Canada's private home, car and business insurers. Its member companies represent 90% of the property and casualty (P&C) insurance market in Canada."}),(0,h.jsx)("meta",{property:"og:image",content:"".concat((null==D||null==(O=D.Meta_Tags)?void 0:O.og_image)||(null==D||null==(R=D.Image)?void 0:R.filename)||(null==D||null==(A=D.Hero)||null==(I=A[0])||null==(L=I.Full_Width_Image)?void 0:L.filename),"/m/1200x630")}),(0,h.jsx)("meta",{property:"og:type",content:"website"}),(0,h.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})]}),(0,h.jsx)("main",{...(0,m.K1)(D),children:[...null!=(M=D.Hero)?M:[],...null!=(
28F=D.Content_Blocks)?F:[]].map((e,t)=>{let n="Hero"===e.component?{latestNews:H,inFocusNews:B,search:e.Display_Search_Bar,locale:$}:void 0,r=D.Hero&&"Hero"!==e.component&&1===t?{search:[...null==D?void 0:D.Hero][0].Display_Search_Bar}:void 0,i={blok:e,type:D.component,index:t,locale:$,...n,...r};return(0,h.jsx)(m.Dp,{...i},e._uid)})})]})},Insights_Article_Layout:e=>{var t,n,r,i,l,a,o,s,c,u,d,f,v,x,b,j,_,C,N,E,P,T,O,R,L,I,A,M,F,D,H,B,$,z,V,W,U,q,Q,K,G,Y,X,ee,et,en,er,ei,el,ea,eo,es,ec,eu,ed,eh,ep,ef,em,eg,ev,ey,ex,eb,ew,ej,eS,ek;let e_,eC,{blok:eN,story:eE,locale:eP}=e,{t:eT}=(0,y.Bd)("common"),{t:eO}=(0,y.Bd)("datasources"),eR=(0,g.useRouter)(),[eL,eI]=(0,p.useState)(""),eA=e=>{let{categorySlug:t,locale:n}=e;return eO("news-categories.".concat(t),t)};(0,p.useEffect)(()=>{let e=window.location.host;eI("https://".concat(e))},[]);let eM=RegExp("^[#][ ][*][*](.*?)[*][*]\r?\n\r?\n[*][*](.*?)[*][*][ ][–][ ](.*)","gm");if((null==(t=eN.Content_Blocks)?void 0:t.filter(e=>"Text"===e.component).length)===1&&/^[#][ ][*][*](.*?)[*][*]\r?\n\r?\n[*][*]/.test(null==(n=eN.Content_Blocks)?void 0:n.filter(e=>"Text"===e.component)[0].Markdown)){let e=null==(eS=eN.Content_Blocks)?void 0:eS.filter(e=>"Text"===e.component)[0].Markdown;Array.from(e.matchAll(eM)),(e_=e.split("** – ")).shift(),(null==(eC=e_.join("").split("**About Insurance Bureau of Canada**")[1])?void 0:eC.length)&&eC.split("**Media contact:**")[1],eC=(null==eC?void 0:eC.length)&&eC.split("**Media contact:**")[0],e_=e_.join("").split("**About Insurance Bureau of Canada**")[0]}return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(oT(),{children:[(0,h.jsx)("title",{children:(null==eN||null==(r=eN.Meta_Tags)?void 0:r.title)||(null==eN?void 0:eN.Title)||(null==eN||null==(l=eN.Hero)||null==(i=l[0])?void 0:i.Heading)}),(0,h.jsx)("meta",{name:"description",content:(null==eN||null==(a=eN.Meta_Tags)?void 0:a.description)||(null==eN||null==(u=eN.Blurb)||null==(c=u.content)||null==(s=c[0])||null==(o=s.content)?void 0:o[0].text)||(null==eN||null==(j=eN.Hero)||null==(b=j[0])||null==(x=b.Short_Blurb)||null==(v=x.content)||null==(f=v[0])||null==(d=f.content)?void 0:d[0].text)||"Insurance Bureau of Canada is the national industry association representing Canada's private home, car and business insurers. Its member companies represent 90% of the property and casualty (P&C) insurance market in Canada."}),(0,h.jsx)("meta",{property:"og:title",content:(null==eN||null==(_=eN.Meta_Tags)?void 0:_.og_title)||(null==eN?void 0:eN.Title)||(null==eN||null==(N=eN.Hero)||null==(C=N[0])?void 0:C.Heading)}),(0,h.jsx)("meta",{property:"og:description",content:(null==eN||null==(E=eN.Meta_Tags)?void 0:E.og_description)||(null==eN||null==(R=eN.Blurb)||null==(O=R.content)||null==(T=O[0])||null==(P=T.content)?void 0:P[0].text)||(null==eN||null==(D=eN.Hero)||null==(F=D[0])||null==(M=F.Short_Blurb)||null==(A=M.content)||null==(I=A[0])||null==(L=I.content)?void 0:L[0].text)||"Insurance Bureau of Canada is the national industry association representing Canada's private home, car and business insurers. Its member companies represent 90% of the property and casualty (P&C) insurance market in Canada."}),(0,h.jsx)("meta",{property:"og:image",content:(null==eN||null==(H=eN.Meta_Tags)?void 0:H.og_image)||(null==eN||null==(B=eN.Image)?void 0:B.filename)||(null==eN||null==(V=eN.Hero)||null==(z=V[0])||null==($=z.Full_Width_Image)?void 0:$.filename)?"".concat((null==eN||null==(W=eN.Meta_Tags)?void 0:W.og_image)||(null==eN||null==(U=eN.Image)?void 0:U.filename)||(null==eN||null==(K=eN.Hero)||null==(Q=K[0])||null==(q=Q.Full_Width_Image)?void 0:q.filename),"/m/1200x630"):k(eE,0)}),(0,h.jsx)("meta",{property:"og:type",content:"website"}),(0,h.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})]}),(0,h.jsxs)("main",{className:"news-article bg-grey-50 pt-12",children:[(0,h.jsxs)(w.A,{as:"div",className:"flex flex-col",children:[(0,h.jsx)("nav",{className:"pb-12 font-body hidden md:block w-full",children:(0,h.jsx)(oB,{breadcrumbs:eE.breadcrumbs,containerClasses:"text-gray-500",itemClasses:"hover:text-red-500 active:text-red-900",title:(e=>{if(e)return e.split(" ").slice(0,4).join(" ")+"..."})(eN.Title)})}),(0,h.jsxs)("section",{className:"md:w-2/3",...(0,m.K1)(eN),children:[(0,h.jsx)("p",{className:"text-xs font-semibold uppercase border-b-2 border-red-500 py-2 text-grey-500",children:(0,h.jsx)(e=>{let{categories:t,locale:n,fallback:r}=e;return t&&Array.isArray(t)&&0!==t.length?t.map((e,r)=>(0,h.jsxs)("span",{children:[(0,h.jsx)(eA,{categorySlug:e,locale:n}),r<t.length-1?", ":""]},"".concat(e,"-").concat(r))):r||null},{categories:null==eN?void 0:eN.Category,locale:eP,fallback:null==eN?void 0:eN.Title})}),(0,h.jsx)("div",{className:"min-w-full prose prose-h1:text-7xl prose-h1:md:text-9xl prose-h1:font-display prose-h1:text-red-500 prose-strong:font-normal py-6 md:py-12",children:(0,h.jsx)(ab,{remarkPlugins:[co,cp],children:aj(null==eN||null==(Y=eN.News_Article)||null==(G=Y[0])?void 0:G.Heading)})}),(0,h.jsx)("div",{className:"text-base text-grey-500",children:eN.Author})]})]}),(0,h.jsxs)(w.A,{as:"div",className:"flex flex-col md:flex-row gap-12 py-12",children:[(0,h.jsxs)("article",{className:"md:w-2/3 prose max-w-full p-0 m-0 space-y-6 md:space-y-12",...(0,m.K1)(eN),children:[(0,h.jsx)("picture",{className:"block w-full aspect-video relative p-0 m-0 overflow-hidden",children:(null==eE||null==(ee=eE.content)||null==(X=ee.Image)?void 0:X.filename)?(0,h.jsx)(J,{loading:"lazy",sizes:"(max-width: 768px) 100vw, (max-width: 1280px) calc(50vw-1.5rem), 821px",srcSet:Z(null==eE||null==(et=eE.content.Image)?void 0:et.filename,821,"16:9",null==eE||null==(en=eE.content.Image)?void 0:en.focus),src:"".concat(null==eE||null==(er=eE.content.Image)?void 0:er.filename,"/m/6x0/"),alt:(null==eE||null==(ei=eE.content.Image)?void 0:ei.alt)||"".concat(eN.Title||""," Insights Article Image"),className:"w-full absolute inset-0 p-0 m-0"}):(0,h.jsx)(J,{loading:"lazy",src:null!=(ek=k(eE,0))?ek:"",alt:(null==eE?void 0:eE.Heading)||"".concat(eN.Title||""," Insights Article Placeholder Image"),className:"w-full absolute inset-0 p-0 m-0"})}),null==eN||null==(eo=eN.News_Article)||null==(ea=eo[0])||null==(el=ea.Content_Blocks)?void 0:el.map(e=>(0,p.createElement)(m.Dp,{blok:e,type:eN.component,key:e._uid})),(0,h.jsxs)("nav",{className:"flex w-full justify-between bg-white p-6 mb-48",children:[(0,h.jsx)("span",{className:"text-red-500 font-display font-medium uppercase",children:eT("components.Insights_Article_Layout.share")}),(0,h.jsxs)("div",{className:"flex items-center space-x-6",children:[(0,h.jsxs)(S(),{href:"https://www.facebook.com/sharer/sharer.php?u=".concat(eL).concat(eR.asPath),target:"_blank",className:"text-grey-500 hover:text-red-500 active:text-red-700","aria-label":eT("components.Insights_Article_Layout.share_facebook",{category:(null==eN||null==(es=eN.Category)?void 0:es[0])||"insights"}),children:[(0,h.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M23.625 12C23.625 5.57812 18.4219 0.375 12 0.375C5.57812 0.375 0.375 5.57812 0.375 12C0.375 17.8125 4.59375 22.6406 10.1719 23.4844V15.375H7.21875V12H10.1719V9.46875C10.1719 6.5625 11.9062 4.92188 14.5312 4.92188C15.8438 4.92188 17.1562 5.15625 17.1562 5.15625V8.01562H15.7031C14.25 8.01562 13.7812 8.90625 13.7812 9.84375V12H17.0156L16.5 15.375H13.7812V23.4844C19.3594 22.6406 23.625 17.8125 23.625 12Z",fill:"currentColor"})}),(0,h.jsx)("span",{className:"sr-only",children:eT("components.Insights_Article_Layout.share_facebook",{category:(null==eN||null==(ec=eN.Category)?void 0:ec[0])||"insights"})})]}),(0,h.jsxs)(S(),{href:"https://twitter.com/share?text=".concat(encodeURIComponent(eN.Title),"&url=").concat(eL).concat(eR.asPath),target:"_blank",className:"text-grey-500 hover:text-red-500 active:text-red-700","aria-label":eT("components.Insights_Article_Layout.share_twitter",{category:(null==eN||null==(eu=eN.Category)?void 0:eu[0])||"insights"}),children:[(0,h.jsx)("svg",{width:"21",height:"21",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M12.6.75h2.454l-5.36 6.142L16 15.25h-4.937l-3.867-5.07-4.425 5.07H.316l5.733-6.57L0 .75h5.063l3.495 4.633L12.601.75Zm-.86 13.028h1.36L4.323 2.145H2.865z",fill:"
28currentColor"})}),(0,h.jsx)("span",{className:"sr-only",children:eT("components.Insights_Article_Layout.share_twitter",{category:(null==eN||null==(ed=eN.Category)?void 0:ed[0])||"insights"})})]}),(0,h.jsxs)(S(),{href:"https://www.linkedin.com/shareArticle?mini=true&url=".concat(eL).concat(eR.asPath),target:"_blank",className:"text-grey-500 hover:text-red-500 active:text-red-700","aria-label":eT("components.Insights_Article_Layout.share_linkedin",{category:(null==eN||null==(eh=eN.Category)?void 0:eh[0])||"insights"}),children:[(0,h.jsx)("svg",{width:"21",height:"22",viewBox:"0 0 21 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M19.5 0.5H1.45312C0.65625 0.5 0 1.20312 0 2.04688V20C0 20.8438 0.65625 21.5 1.45312 21.5H19.5C20.2969 21.5 21 20.8438 21 20V2.04688C21 1.20312 20.2969 0.5 19.5 0.5ZM6.32812 18.5H3.23438V8.51562H6.32812V18.5ZM4.78125 7.10938C3.75 7.10938 2.95312 6.3125 2.95312 5.32812C2.95312 4.34375 3.75 3.5 4.78125 3.5C5.76562 3.5 6.5625 4.34375 6.5625 5.32812C6.5625 6.3125 5.76562 7.10938 4.78125 7.10938ZM18 18.5H14.8594V13.625C14.8594 12.5 14.8594 11 13.2656 11C11.625 11 11.3906 12.2656 11.3906 13.5781V18.5H8.29688V8.51562H11.25V9.875H11.2969C11.7188 9.07812 12.75 8.23438 14.25 8.23438C17.3906 8.23438 18 10.3438 18 13.0156V18.5Z",fill:"currentColor"})}),(0,h.jsx)("span",{className:"sr-only",children:eT("components.Insights_Article_Layout.share_linkedin",{category:(null==eN||null==(ep=eN.Category)?void 0:ep[0])||"insights"})})]})]})]})]}),(0,h.jsxs)("aside",{className:"md:w-1/3 space-y-6",...(0,m.K1)(eN),children:[null==eN||null==(ef=eN.Sidebar_Blocks)?void 0:ef.map(e=>(0,h.jsx)(m.Dp,{blok:e,type:eN.component},e._uid)),(0,h.jsxs)("div",{className:"p-6 bg-white space-y-6",children:[(0,h.jsx)("h2",{className:"text-red-500 text-2xl font-display uppercase",children:null==eN||null==(eg=eN.News_Article)||null==(em=eg[0])?void 0:em.Media_Title}),(0,h.jsx)("div",{className:"text-grey-500 leading-6 prose prose-strong:text-grey-500 prose-p:mb-0 prose-a:text-red-500 prose-a:no-underline hover:prose-a:underline hover:prose-a:text-red-700 active:prose-a:text-red-900 space-y-0",children:(0,h.jsx)(ab,{remarkPlugins:[co,cp],children:aj(null==eN||null==(ey=eN.News_Article)||null==(ev=ey[0])?void 0:ev.Media_Content)})})]})]})]}),(0,h.jsx)("section",{className:"bg-green-500 py-12 md:py-24",children:(0,h.jsxs)(w.A,{as:"div",className:"flex gap-12",children:[(0,h.jsxs)("div",{className:"md:w-2/3 space-y-12",children:[(0,h.jsx)("h3",{className:"text-6xl  md:text-8xl font-medium font-display text-white",children:null==eN||null==(eb=eN.News_Article)||null==(ex=eb[0])?void 0:ex.About_Title}),(0,h.jsx)("div",{className:"min-w-full prose prose-li:marker:text-white text-white prose-strong:text-white prose-a:text-white hover:prose-a:no-underline transition duration-150 ease-in-out",children:(0,h.jsx)(ab,{remarkPlugins:[co,cp],children:aj(null==eN||null==(ej=eN.News_Article)||null==(ew=ej[0])?void 0:ew.About_Content)})})]}),(0,h.jsx)("div",{className:"hidden md:block md:w-1/3"})]})}),(0,h.jsx)(cg,{relatedArticles:eE.relatedArticles,locale:eP})]})]})},Insights_Overview_Layout:e=>{var t,n,r,i,l,a,o,s,c,u,d,f,v,x,b,j,S,k,_,C,N,E,P,T,O,R,L,I,A,M,F,D,H,B,$;let{blok:z,story:V,locale:W}=e,U=(0,g.useRouter)(),[q,Q]=(0,p.useState)(),[K,G]=(0,p.useState)(!1),[Y,Z]=(0,p.useState)(null),[J,X]=(0,p.useState)(null),[ee,et]=(0,p.useState)(null),[en,er]=(0,p.useState)(0),[ei,el]=(0,p.useState)(!0),[ea,eo]=(0,p.useState)(["content.component: Insights_Article_Layout"]),[es,ec]=(0,p.useState)(""),{t:eu}=(0,y.Bd)("common"),{t:ed}=(0,y.Bd)("datasources"),eh=e=>{er(e),el(!1),setTimeout(()=>el(!0),50)};(0,p.useEffect)(()=>{eh(en)},[en]);let ep=aF({locale:U.locale}),ef=e=>{let t=ed("news-categories.".concat(e),e.replace("ibc","IBC").replaceAll("_"," ").replaceAll("()"," "));return"ibc"===t.toLowerCase()?"IBC":"bac"===t.toLowerCase()?"BAC":t.charAt(0).toUpperCase()+t.slice(1)};return(0,p.useEffect)(()=>{let e=()=>{Q([])};return U.events.on("routeChangeStart",e),()=>{U.events.off("routeChangeStart",e)}},[U]),(0,p.useEffect)(()=>{let e=["content.component: Insights_Article_Layout"];Y&&e.push("content.Category:".concat(Y)),eo(e)},[Y]),(0,p.useEffect)(()=>{Y||J?et(!0):et(null)},[Y,J]),(0,p.useEffect)(()=>{(null==q?void 0:q.page)!==void 0&&er(q.page)},[null==q?void 0:q.page]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(oT(),{children:[(0,h.jsx)("title",{children:(null==z||null==(t=z.Meta_Tags)?void 0:t.t
28itle)||(null==z?void 0:z.Title)||(null==z||null==(r=z.Hero)||null==(n=r[0])?void 0:n.Heading)}),(0,h.jsx)("meta",{name:"description",content:(null==z||null==(i=z.Meta_Tags)?void 0:i.description)||(null==z||null==(s=z.Blurb)||null==(o=s.content)||null==(a=o[0])||null==(l=a.content)?void 0:l[0].text)||(null==z||null==(x=z.Hero)||null==(v=x[0])||null==(f=v.Short_Blurb)||null==(d=f.content)||null==(u=d[0])||null==(c=u.content)?void 0:c[0].text)||"Insurance Bureau of Canada is the national industry association representing Canada's private home, car and business insurers. Its member companies represent 90% of the property and casualty (P&C) insurance market in Canada."}),(0,h.jsx)("meta",{property:"og:title",content:(null==z||null==(b=z.Meta_Tags)?void 0:b.og_title)||(null==z?void 0:z.Title)||(null==z||null==(S=z.Hero)||null==(j=S[0])?void 0:j.Heading)}),(0,h.jsx)("meta",{property:"og:description",content:(null==z||null==(k=z.Meta_Tags)?void 0:k.og_description)||(null==z||null==(E=z.Blurb)||null==(N=E.content)||null==(C=N[0])||null==(_=C.content)?void 0:_[0].text)||(null==z||null==(I=z.Hero)||null==(L=I[0])||null==(R=L.Short_Blurb)||null==(O=R.content)||null==(T=O[0])||null==(P=T.content)?void 0:P[0].text)||"Insurance Bureau of Canada is the national industry association representing Canada's private home, car and business insurers. Its member companies represent 90% of the property and casualty (P&C) insurance market in Canada."}),(0,h.jsx)("meta",{property:"og:image",content:"".concat((null==z||null==(A=z.Meta_Tags)?void 0:A.og_image)||(null==z||null==(M=z.Image)?void 0:M.filename)||(null==z||null==(H=z.Hero)||null==(D=H[0])||null==(F=D.Full_Width_Image)?void 0:F.filename),"/m/1200x630")}),(0,h.jsx)("meta",{property:"og:type",content:"website"}),(0,h.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})]}),(0,h.jsxs)("main",{...(0,m.K1)(z),children:[[...null!=(B=z.Hero)?B:[]].map(e=>(0,p.createElement)(m.Dp,{blok:e,type:z.component,story:V,locale:W,key:e._uid})),(0,h.jsxs)(nT,{searchClient:cQ,indexName:ep,refresh:!0,future:{preserveSharedStateOnUnmount:!1},children:[(0,h.jsx)(n8,{hitsPerPage:12,facetFilters:ea}),(0,h.jsx)(cG,{onSearchChange:ec}),(0,h.jsx)(cK,{selectedTopic:Y}),(0,h.jsx)("section",{className:"bg-grey-50",children:(0,h.jsxs)(w.A,{as:"div",children:[(0,h.jsxs)("div",{id:"search-results",className:"flex flex-col lg:flex-row w-full lg:gap-12",children:[(0,h.jsxs)("div",{className:"order-last lg:order-none pt-6 lg:pt-24 space-y-1.5 md:space-y-3 flex-1",children:[(0,h.jsx)("label",{htmlFor:"algolia_search",className:"text-xs text-grey-500",children:eu("components.Insights_Overview_Layout.search.label")}),(0,h.jsx)(cx,{setIsSearching:G,placeholder:eu("components.Insights_Overview_Layout.search.placeholder")})]}),(0,h.jsx)("div",{className:"flex flex-col md:flex-row md:gap-12",children:(0,h.jsxs)("div",{className:"flex-1 pt-12 md:pt-24 space-y-1.5 md:space-y-3",children:[(0,h.jsx)("label",{htmlFor:"topicFilter",className:"text-xs text-grey-500",children:eu("components.Insights_Overview_Layout.filter_by_topic.label")}),(0,h.jsx)(cq,{id:"topicFilter",attribute:"content.Category",className:"in-focus",onValueChange:Z,placeholder:eu("components.Insights_Overview_Layout.filter_by_topic.placeholder"),transformItems:e=>e.map(e=>({...e,label:ef(e.value)})),value:Y,controlledMode:!0})]})})]}),(null==q?void 0:q.nbPages)?(0,h.jsx)("div",{children:(0,h.jsx)("p",{className:"pt-6 md:pt-12 text-grey-500",children:(0,h.jsx)(y.x6,{i18nKey:"components.Insights_Overview_Layout.pagination.page_of_total",components:{bold:(0,h.jsx)("span",{className:"font-bold"})},values:{current:(null==q?void 0:q.page)+1,total:(null==q?void 0:q.nbPages)===0?1:Math.ceil((null==q?void 0:q.nbHits)/12)}})})}):void 0,ei?(0,h.jsx)("div",{className:"animate-[fadeIn_0.5s_ease-in-out]",children:(0,h.jsx)(cy,{selected:ee,searchResults:q,setSearchResults:Q,type:"in-focus",locale:W,hasActiveFilters:Y})}):void 0,(0,h.jsx)(cO,{searchResults:q,setCurrentPage:er})]})})]}),[...null!=($=z.Content_Blocks)?$:[]].map(e=>(0,p.createElement)(m.Dp,{blok:e,type:z.component,story:V,locale:W,key:e._uid}))]})]})},Section_Overview_Layout:e=>{var t,n,r,i,l,a,o,s,c,u,d,f,g,v,y,x,b,w,j,S,k,_,C,N,E,P,T,O,R,L,I,A,M,F,D,H;let{blok:B,story:$}=e;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(oT(),{children:[(0,h.jsx)("title",{children:(null==B||null==(t=B.Meta_Tags)?void 0:t.t
28itle)||(null==B?void 0:B.Title)||(null==B||null==(r=B.Hero)||null==(n=r[0])?void 0:n.Heading)}),(0,h.jsx)("meta",{name:"description",content:(null==B||null==(i=B.Meta_Tags)?void 0:i.description)||(null==B||null==(s=B.Blurb)||null==(o=s.content)||null==(a=o[0])||null==(l=a.content)?void 0:l[0].text)||(null==B||null==(v=B.Hero)||null==(g=v[0])||null==(f=g.Short_Blurb)||null==(d=f.content)||null==(u=d[0])||null==(c=u.content)?void 0:c[0].text)||"Insurance Bureau of Canada is the national industry association representing Canada's private home, car and business insurers. Its member companies represent 90% of the property and casualty (P&C) insurance market in Canada."}),(0,h.jsx)("meta",{property:"og:title",content:(null==B||null==(y=B.Meta_Tags)?void 0:y.og_title)||(null==B?void 0:B.Title)||(null==B||null==(b=B.Hero)||null==(x=b[0])?void 0:x.Heading)}),(0,h.jsx)("meta",{property:"og:description",content:(null==B||null==(w=B.Meta_Tags)?void 0:w.og_description)||(null==B||null==(_=B.Blurb)||null==(k=_.content)||null==(S=k[0])||null==(j=S.content)?void 0:j[0].text)||(null==B||null==(O=B.Hero)||null==(T=O[0])||null==(P=T.Short_Blurb)||null==(E=P.content)||null==(N=E[0])||null==(C=N.content)?void 0:C[0].text)||"Insurance Bureau of Canada is the national industry association representing Canada's private home, car and business insurers. Its member companies represent 90% of the property and casualty (P&C) insurance market in Canada."}),(0,h.jsx)("meta",{property:"og:image",content:"".concat((null==B||null==(R=B.Meta_Tags)?void 0:R.og_image)||(null==B||null==(L=B.Image)?void 0:L.filename)||(null==B||null==(M=B.Hero)||null==(A=M[0])||null==(I=A.Full_Width_Image)?void 0:I.filename),"/m/1200x630")}),(0,h.jsx)("meta",{property:"og:type",content:"website"}),(0,h.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})]}),(0,h.jsx)("main",{...(0,m.K1)(B),children:[...null!=(F=B.Hero)?F:[],...null!=(D=B.Intro)?D:[],...null!=(H=B.Content_Blocks)?H:[]].map(e=>(0,p.createElement)(m.Dp,{blok:e,type:B.component,story:$,key:e._uid}))})]})},Section_Content_Layout:e=>{var t,n,r,i,l,a,o,s,c,u,d,f,g,v,y,x,b,w,j,S,_,C,N,E,P,T,O,R,L,I,A,M,F,D,H,B,$,z,V,W,U;let{blok:q,story:Q,locale:K}=e;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(oT(),{children:[(0,h.jsx)("title",{children:(null==q||null==(t=q.Meta_Tags)?void 0:t.title)||(null==q?void 0:q.Title)||(null==q||null==(r=q.Hero)||null==(n=r[0])?void 0:n.Heading)}),(0,h.jsx)("meta",{name:"description",content:(null==q||null==(i=q.Meta_Tags)?void 0:i.description)||(null==q||null==(s=q.Blurb)||null==(o=s.content)||null==(a=o[0])||null==(l=a.content)?void 0:l[0].text)||(null==q||null==(v=q.Hero)||null==(g=v[0])||null==(f=g.Short_Blurb)||null==(d=f.content)||null==(u=d[0])||null==(c=u.content)?void 0:c[0].text)||"Insurance Bureau of Canada is the national industry association representing Canada's private home, car and business insurers. Its member companies represent 90% of the property and casualty (P&C) insurance market in Canada."}),(0,h.jsx)("meta",{property:"og:title",content:(null==q||null==(y=q.Meta_Tags)?void 0:y.og_title)||(null==q?void 0:q.Title)||(null==q||null==(b=q.Hero)||null==(x=b[0])?void 0:x.Heading)}),(0,h.jsx)("meta",{property:"og:description",content:(null==q||null==(w=q.Meta_Tags)?void 0:w.og_description)||(null==q||null==(C=q.Blurb)||null==(_=C.content)||null==(S=_[0])||null==(j=S.content)?void 0:j[0].text)||(null==q||null==(R=q.Hero)||null==(O=R[0])||null==(T=O.Short_Blurb)||null==(P=T.content)||null==(E=P[0])||null==(N=E.content)?void 0:N[0].text)||"Insurance Bureau of Canada is the national industry association representing Canada's private home, car and business insurers. Its member companies represent 90% of the property and casualty (P&C) insurance market in Canada."}),(0,h.jsx)("meta",{property:"og:image",content:(null==q||null==(L=q.Meta_Tags)?void 0:L.og_image)||(null==q||null==(I=q.Image)?void 0:I.filename)||(null==q||null==(F=q.Hero)||null==(M=F[0])||null==(A=M.Full_Width_Image)?void 0:A.filename)?"".concat((null==q||null==(D=q.Meta_Tags)?void 0:D.og_image)||(null==q||null==(H=q.Image)?void 0:H.filename)||(null==q||null==(z=q.Hero)||null==($=z[0])||null==(B=$.Full_Width_Image)?void 0:B.filename),"/m/1200x630"):k(Q)}),(0,h.jsx)("meta",{property:"og:type",content:"website"}),(0,h.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})]}),(0,h.jsx)("main",{...(0,m.K1)(q),children:[...null!=(V=q.Hero)?V:[],...null!=(W=q.Intro)?W:[],...null!=(U=q.Content_Blocks)?U:[]].map((e,t)=>(0,p.createElement)(m.Dp,{blok:e,type:q.component,story:Q,locale:K,index:t,key:e._uid}))})]})},News_Article_Layout:e=>{var t,n,r,i,l,a,o,s,c,u,d,f,v,x,b,j,_,N,E,P,T,O,R,L,I,A,M,F,D,H,B,$,z,V,W,U,q,Q,K,G,Y,X,ee,et,en,er,ei,el,ea,eo,es,ec,eu,ed,eh,ep;let ef,em,{blok:eg,story:ev,locale:ey}=e,{t:ex}=(0,y.Bd)("common"),{t:eb}=(0,y.Bd)("datasources"),ew=(0,g.useRouter)(),[ej,eS]=(0,p.useState)(""),[ek,e_]=(0,p.useState)(ey||"en"),eC=e=>{let{categorySlug:t,currentLocale:n}=e;return eb("news-categories.".concat(t),t)},eN=e=>{let{regionSlug:t,currentLocale:n}=e,r=eb("news-regions.".concat(t),t);return"en"===n?r.toUpperCase():r};(0,p.useEffect)(()=>{let e=window.location.host;eS("https://".concat(e))},[]),(0,p.useEffect)(()=>{ey||e_(C())},[ey]);let eE=RegExp("^[#][ ][*][*](.*?)[*][*]\r?\n\r?\n[*][*](.*?)[*][*][ ][–][ ](.*)","gm");if((null==(t=eg.Content_Blocks)?void 0:t.filter(e=>"Text"===e.component).length)===1&&/^[#][ ][*][*](.*?)[*][*]\r?\n\r?\n[*][*]/.test(null==(n=eg.Content_Blocks)?void 0:n.filter(e=>"Text"===e.component)[0].Markdown)){let e=null==(eh=eg.Content_Blocks)?void 0:eh.filter(e=>"Text"===e.component)[0].Markdown;Array.from(e.matchAll(eE)),(ef=e.split("** – ")).shift(),(null==(em=ef.join("").split("**About Insurance Bureau of Canada**")[1])?void 0:em.length)&&em.split("**Media contact:**")[1],em=(null==em?void 0:em.length)&&em.split("**Media contact:**")[0],ef=ef.join("").split("**About Insurance Bureau of Canada**")[0]}return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(oT(),{children:[(0,h.jsx)("title",{children:(null==eg||null==(r=eg.Meta_Tags)?void 0:r.title)||(null==eg?void 0:eg.Title)||(null==eg||null==(l=eg.Hero)||null==(i=l[0])?void 0:i.Heading)}),(0,h.jsx)("meta",{name:"description",content:(null==eg||null==(a=eg.Meta_Tags)?void 0:a.description)||(null==eg||null==(u=eg.Blurb)||null==(c=u.content)||null==(s=c[0])||null==(o=s.content)?void 0:o[0].text)||(null==eg||null==(j=eg.Hero)||null==(b=j[0])||null==(x=b.Short_Blurb)||null==(v=x.content)||null==(f=v[0])||null==(d=f.content)?void 0:d[0].text)||"Insurance Bureau of Canada is the national industry association representing Canada's private home, car and business insurers. Its member companies represent 90% of the property and casualty (P&C) insurance market in Canada."}),(0,h.jsx)("meta",{property:"og:title",content:(null==eg||null==(_=eg.Meta_Tags)?void 0:_.og_title)||(null==eg?void 0:eg.Title)||(null==eg||null==(E=eg.Hero)||null==(N=E[0])?void 0:N.Heading)}),(0,h.jsx)("meta",{property:"og:description",content:(null==eg||null==(P=eg.Meta_Tags)?void 0:P.og_description)||(null==eg||null==(L=eg.Blurb)||null==(R=L.content)||null==(O=R[0])||null==(T=O.content)?void 0:T[0].text)||(null==eg||null==(H=eg.Hero)||null==(D=H[0])||null==(F=D.Short_Blurb)||null==(M=F.content)||null==(A=M[0])||null==(I=A.content)?void 0:I[0].text)||"Insurance Bureau of Canada is the national industry association representing Canada's private home, car and business insurers. Its member companies represent 90% of the property and casualty (P&C) insurance market in Canada."}),(0,h.jsx)("meta",{property:"og:image",content:(null==eg||null==(B=eg.Meta_Tags)?void 0:B.og_image)||(null==eg||null==($=eg.Image)?void 0:$.filename)||(null==eg||null==(W=eg.Hero)||null==(V=W[0])||null==(z=V.Full_Width_Image)?void 0:z.filename)?"".concat((null==eg||null==(U=eg.Meta_Tags)?void 0:U.og_image)||(null==eg||null==(q=eg.Image)?void 0:q.filename)||(null==eg||null==(G=eg.Hero)||null==(K=G[0])||null==(Q=K.Full_Width_Image)?void 0:Q.filename),"/m/1200x630"):k(ev,0)}),(0,h.jsx)("meta",{property:"og:type",content:"website"}),(0,h.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})]}),(0,h.jsxs)("main",{className:"news-article bg-grey-50 pt-12",...(0,m.K1)(eg),children:[(0,h.jsxs)(w.A,{as:"div",className:"flex flex-col",children:[(0,h.jsx)("nav",{className:"pb-12 font-body hidden md:block w-full",children:(0,h.jsx)(oB,{breadcrumbs:ev.breadcrumbs,containerClasses:"text-gray-500",itemClasses:"hover:text-red-500 active:text-red-900",title:eg.Title.split(" ").slice(0,4).join(" ")+"..."})}),(0,h.jsxs)("section",{className:"md:w-2/3",children:[(0,h.jsx)("p",{className:"text-xs font-semibold uppercase border-b-2 border-red-500 py-2 text-grey-500",children:(0,h.jsx)(e=>{let{categories:t,currentLocale:n,fallback:r}=e;return t&&Array.isArray(t)&&0!==t.length?t.map((e,r)=>(0,h.jsxs)("span",{children:[(0,h.jsx)(eC,{categorySlug:e,currentLocale:n}),r<t.length-1?", ":""]},"".concat(e,"-").concat(r))):r||null},{categories:null==eg?void 0:eg.Category,currentLocale:ek,fallback:null==eg?void 0:eg.Title})}),(0,h.jsx)("div",{className:"min-w-full prose prose-h1:text-7xl prose-h1:md:text-9xl prose-h1:font-display prose-h1:text-red-500 prose-strong:font-normal py-6 md:py-12",children:(0,h.jsx)(ab,{remarkPlugins:[co,cp],children:aj(eg.News_Article[0].Heading)})}),(0,h.jsxs)("div",{className:"text-xs text-grey-500",children:[ob(new Date(ev.first_published_at),"PP",{locale:cY[ek]}),(null==eg||null==(Y=eg.Region)?void 0:Y.length)?(0,h.jsxs)(h.Fragment,{children:[" | ",(0,h.jsx)(e=>{let{regions:t,currentLocale:n}=e;return t&&Array.isArray(t)&&0!==t.length?t.map((e,r)=>(0,h.jsxs)("span",{children:[(0,h.jsx)(eN,{regionSlug:e,currentLocale:n}),r<t.length-1?" | ":""]},"".concat(e,"-").concat(r))):null},{regions:eg.Region,currentLocale:ek})]}):void 0]})]})]}),(0,h.jsxs)(w.A,{as:"div",className:"flex flex-col md:flex-row gap-12 py-12",children:[(0,h.jsxs)("article",{className:"md:w-2/3 prose max-w-full p-0 m-0 space-y-6 md:space-y-12",children:[(0,h.jsx)("picture",{className:"block w-full aspect-video relative p-0 m-0 overflow-hidden",children:(null==ev||null==(ee=ev.content)||null==(X=ee.Image)?void 0:X.filename)?(0,h.jsx)(J,{loading:"lazy",sizes:"(max-width: 768px) 100vw, (max-width: 1280px) calc(50vw-1.5rem), 821px",srcSet:Z(null==ev||null==(et=ev.content.Image)?void 0:et.filename,821,0,null==ev||null==(en=ev.content.Image)?void 0:en.focus),src:"".concat(null==ev||null==(er=ev.content.Image)?void 0:er.filename,"/m/6x0/"),alt:(null==ev||null==(ei=ev.content.Image)?void 0:ei.alt)||"".concat(eg.Title||""," News Article Image"),className:"w-full absolute inset-0 p-0 m-0"}):(0,h.jsx)(J,{loading:"lazy",src:null!=(ep=k(ev,0))?ep:"",alt:(null==ev?void 0:ev.Heading)||"".concat(eg.Title||""," News Article Placeholder Image"),className:"w-full absolute inset-0 p-0 m-0"})}),eg.News_Article[0].Content_Blocks.map(e=>(0,p.createElement)(m.Dp,{blok:e,type:eg.component,key:e._uid})),(0,h.jsxs)("nav",{className:"flex w-full justify-between bg-white p-6 mb-48",children:[(0,h.jsx)("span",{className:"text-red-500 font-display font-medium uppercase",children:ex("components.News_Article_Layout.share")}),(0,h.jsxs)("div",{className:"flex items-center space-x-6",children:[(0,h.jsxs)(S(),{href:"https://www.facebook.com/sharer/sharer.php?u=".concat(ej).concat(ew.asPath),target:"_blank",className:"text-grey-500 hover:text-red-500 active:text-red-700","aria-label":ex("components.News_Article_Layout.share_facebook",{category:(null==eg||null==(el=eg.Category)?void 0:el[0])||"news"}),children:[(0,h.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M23.625 12C23.625 5.57812 18.4219 0.375 12 0.375C5.57812 0.375 0.375 5.57812 0.375 12C0.375 17.8125 4.59375 22.6406 10.1719 23.4844V15.375H7.21875V12H10.1719V9.46875C10.1719 6.5625 11.9062 4.92188 14.5312 4.92188C15.8438 4.92188 17.1562 5.15625 17.1562 5.15625V8.01562H15.7031C14.25 8.01562 13.7812 8.90625 13.7812 9.84375V12H17.0156L16.5 15.375H13.7812V23.4844C19.3594 22.6406 23.625 17.8125 23.625 12Z",fill:"currentColor"})}),(0,h.jsx)("span",{className:"sr-only",children:ex("components.News_Article_Layout.share_facebook",{category:(null==eg||null==(ea=eg.Category)?void 0:ea[0])||"news"})})]}),(0,h.jsxs)(S(),{href:"https://twitter.com/share?text=".concat(encodeURIComponent(eg.Title),"&url=").concat(ej).concat(ew.asPath),target:"_blank",className:"text-grey-500 hover:text-red-500 active:text-red-700","aria-label":ex("components.News_Article_Layout.share_twitter",{category:(null==eg||null==(eo=eg.Category)?void 0:eo[0])||"news"}),children:[(0,h.jsx)("svg",{width:"24",height:"20",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M12.6.75h2.454l-5.36 6.142L16 15.25h-4.937l-3.867-5.07-4.425 5.07H.316l5.733-6.57L0 .75h5.063l3.495 4.633L12.601.75Zm-.86 13.028h1.36L4.323 2.145H2.865z",fill:"
28currentColor"})}),(0,h.jsx)("span",{className:"sr-only",children:ex("components.News_Article_Layout.share_twitter",{category:(null==eg||null==(es=eg.Category)?void 0:es[0])||"news"})})]}),(0,h.jsxs)(S(),{href:"https://www.linkedin.com/shareArticle/?mini=true&url=".concat(ej).concat(ew.asPath),target:"_blank",className:"text-grey-500 hover:text-red-500 active:text-red-700","aria-label":ex("components.News_Article_Layout.share_linkedin",{category:(null==eg||null==(ec=eg.Category)?void 0:ec[0])||"news"}),children:[(0,h.jsx)("svg",{width:"21",height:"22",viewBox:"0 0 21 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M19.5 0.5H1.45312C0.65625 0.5 0 1.20312 0 2.04688V20C0 20.8438 0.65625 21.5 1.45312 21.5H19.5C20.2969 21.5 21 20.8438 21 20V2.04688C21 1.20312 20.2969 0.5 19.5 0.5ZM6.32812 18.5H3.23438V8.51562H6.32812V18.5ZM4.78125 7.10938C3.75 7.10938 2.95312 6.3125 2.95312 5.32812C2.95312 4.34375 3.75 3.5 4.78125 3.5C5.76562 3.5 6.5625 4.34375 6.5625 5.32812C6.5625 6.3125 5.76562 7.10938 4.78125 7.10938ZM18 18.5H14.8594V13.625C14.8594 12.5 14.8594 11 13.2656 11C11.625 11 11.3906 12.2656 11.3906 13.5781V18.5H8.29688V8.51562H11.25V9.875H11.2969C11.7188 9.07812 12.75 8.23438 14.25 8.23438C17.3906 8.23438 18 10.3438 18 13.0156V18.5Z",fill:"currentColor"})}),(0,h.jsx)("span",{className:"sr-only",children:ex("components.News_Article_Layout.share_linkedin",{category:(null==eg||null==(eu=eg.Category)?void 0:eu[0])||"news"})})]})]})]})]}),(0,h.jsxs)("aside",{className:"md:w-1/3 space-y-6",...(0,m.K1)(eg),children:[null==eg||null==(ed=eg.Sidebar_Blocks)?void 0:ed.map(e=>(0,h.jsx)(m.Dp,{blok:e,type:eg.component},e._uid)),(0,h.jsxs)("div",{className:"p-6 bg-white space-y-6",children:[(0,h.jsx)("h2",{className:"text-red-500 text-2xl font-display uppercase",children:eg.News_Article[0].Media_Title}),(0,h.jsx)("div",{className:"text-grey-500 leading-6 prose prose-strong:text-grey-500 prose-p:mb-0 prose-a:text-red-500 prose-a:no-underline hover:prose-a:underline hover:prose-a:text-red-700 active:prose-a:text-red-900 space-y-0",children:(0,h.jsx)(ab,{remarkPlugins:[co,cp],children:aj(eg.News_Article[0].Media_Content)})})]})]})]}),(0,h.jsx)("section",{className:"bg-green-500 py-12 md:py-24",children:(0,h.jsxs)(w.A,{as:"div",className:"flex gap-12",children:[(0,h.jsxs)("div",{className:"md:w-2/3 space-y-12",children:[(0,h.jsx)("h2",{className:"text-6xl  md:text-8xl font-medium font-display text-white",children:eg.News_Article[0].About_Title}),(0,h.jsx)("div",{className:"min-w-full prose prose-li:marker:text-white text-white prose-strong:text-white prose-a:text-white hover:prose-a:no-underline transition duration-150 ease-in-out",children:(0,h.jsx)(ab,{remarkPlugins:[co,cp],children:aj(eg.News_Article[0].About_Content)})})]}),(0,h.jsx)("div",{className:"hidden md:block md:w-1/3"})]})}),(0,h.jsx)(cg,{relatedArticles:null==ev?void 0:ev.relatedArticles,title:ex("components.News_Article_Layout.related_articles"),locale:ey})]})]})},News_Overview_Layout:e=>{var t,n,r,i,l,a,o,s,c,u,d,f,v,x,b,j,S,k,_,C,N,E,P,T,O,R,L,I,A,M,F,D,H,B,$;let{blok:z,story:V,locale:W}=e,U=(0,g.useRouter)(),[q,Q]=(0,p.useState)(),[K,G]=(0,p.useState)(!1),[Y,Z]=(0,p.useState)(null),[J,X]=(0,p.useState)(null),[ee,et]=(0,p.useState)(null),[en,er]=(0,p.useState)(0),[ei,el]=(0,p.useState)(!0),[ea,eo]=(0,p.useState)(["content.component: News_Article_Layout"]),[es,ec]=(0,p.useState)([]),[eu,ed]=(0,p.useState)([]),[eh,ep]=(0,p.useState)([]),[ef,em]=(0,p.useState)([]),[eg,ev]=(0,p.useState)(""),ey=aF({locale:U.locale}),{t:ex}=(0,y.Bd)("common"),{t:eb}=(0,y.Bd)("datasources"),ew=e=>{let t=eb("news-categories.".concat(e),e.replace("ibc","IBC").replaceAll("_"," ").replaceAll("()"," "));return"ibc"===t.toLowerCase()?"IBC":"bac"===t.toLowerCase()?"BAC":t.charAt(0).toUpperCase()+t.slice(1)},ej=e=>{let t=eb("news-regions.".concat(e),oU[e]||e);return"en"===W?t.split(" ").map(e=>"national"===e.toLowerCase()?e:e.toUpperCase()).join(" "):t},eS=async()=>{try{let e={facets:["content.Category","content.Region"],facetFilters:["content.component: News_Article_Layout"],hitsPerPage:0,maxValuesPerFacet:1e3};eg&&(e.query=eg);let t=(await cZ.search([{indexName:ey,params:e}])).results[0].facets,n=Object.entries(t["content.Category"]||{}).map(e=>{let[t,n]=e;
28return{value:t,count:n,label:t.replace("ibc","IBC").replaceAll("_"," ").replaceAll("()"," ")}}),r=Object.entries(t["content.Region"]||{}).map(e=>{let[t,n]=e;return{value:t,count:n,label:oU[t]||t}});if(ec(n),ed(r),Y||J){let e={facets:["content.Category"],facetFilters:J?["content.component: News_Article_Layout","content.Region:".concat(J)]:["content.component: News_Article_Layout"],hitsPerPage:0,maxValuesPerFacet:1e3},t={facets:["content.Region"],facetFilters:Y?["content.component: News_Article_Layout","content.Category:".concat(Y)]:["content.component: News_Article_Layout"],hitsPerPage:0,maxValuesPerFacet:1e3};eg&&(e.query=eg,t.query=eg);let[n,r]=await Promise.all([cZ.search([{indexName:ey,params:e}]),cZ.search([{indexName:ey,params:t}])]),i=Object.entries(n.results[0].facets["content.Category"]||{}).map(e=>{let[t,n]=e;return{value:t,count:n}}),l=Object.entries(r.results[0].facets["content.Region"]||{}).map(e=>{let[t,n]=e;return{value:t,count:n}});ep(i),em(l)}else ep([]),em([])}catch(e){console.error("Error fetching facet data:",e)}};(0,p.useEffect)(()=>{eS()},[Y,J,eg,ey]),(0,p.useEffect)(()=>{let e=()=>{Q([])};return U.events.on("routeChangeStart",e),()=>{U.events.off("routeChangeStart",e)}},[U]),(0,p.useEffect)(()=>{let e=["content.component: News_Article_Layout"];Y&&e.push("content.Category:".concat(Y)),J&&e.push("content.Region:".concat(J)),eo(e)},[Y,J]);let ek=(0,p.useMemo)(()=>e=>{if(!es.length)return e.map(e=>({...e,label:ew(e.value)}));if(!J&&!Y||Y&&!J)return es.filter(e=>e.count>0).map(e=>({...e,label:ew(e.value)}));if(J&&!Y||Y&&J){let e=new Map(eh.map(e=>[e.value,e.count]));return es.map(t=>({...t,count:e.get(t.value)||0,label:ew(t.value)})).filter(e=>e.count>0)}return es.filter(e=>e.count>0).map(e=>({...e,label:ew(e.value)}))},[es,eh,Y,J]),e_=(0,p.useMemo)(()=>e=>{if(!eu.length)return e.map(e=>({...e,label:ej(e.value)}));if(!J&&!Y||J&&!Y)return eu.filter(e=>e.count>0).map(e=>({...e,label:ej(e.value)}));if(Y&&!J||Y&&J){let e=new Map(ef.map(e=>[e.value,e.count]));return eu.map(t=>({...t,count:e.get(t.value)||0,label:ej(t.value)})).filter(e=>e.count>0)}return eu.filter(e=>e.count>0).map(e=>({...e,label:ej(e.value)}))},[eu,ef,Y,J]),eC=e=>{er(e),el(!1),setTimeout(()=>el(!0),50)};return(0,p.useEffect)(()=>{eC(en)},[en]),(0,p.useEffect)(()=>{Y||J?et(!0):et(null)},[Y,J]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(oT(),{children:[(0,h.jsx)("title",{children:(null==z||null==(t=z.Meta_Tags)?void 0:t.title)||(null==z?void 0:z.Title)||(null==z||null==(r=z.Hero)||null==(n=r[0])?void 0:n.Heading)}),(0,h.jsx)("meta",{name:"description",content:(null==z||null==(i=z.Meta_Tags)?void 0:i.description)||(null==z||null==(s=z.Blurb)||null==(o=s.content)||null==(a=o[0])||null==(l=a.content)?void 0:l[0].text)||(null==z||null==(x=z.Hero)||null==(v=x[0])||null==(f=v.Short_Blurb)||null==(d=f.content)||null==(u=d[0])||null==(c=u.content)?void 0:c[0].text)||"Insurance Bureau of Canada is the national industry association representing Canada's private home, car and business insurers. Its member companies represent 90% of the property and casualty (P&C) insurance market in Canada."}),(0,h.jsx)("meta",{property:"og:title",content:(null==z||null==(b=z.Meta_Tags)?void 0:b.og_title)||(null==z?void 0:z.Title)||(null==z||null==(S=z.Hero)||null==(j=S[0])?void 0:j.Heading)}),(0,h.jsx)("meta",{property:"og:description",content:(null==z||null==(k=z.Meta_Tags)?void 0:k.og_description)||(null==z||null==(E=z.Blurb)||null==(N=E.content)||null==(C=N[0])||null==(_=C.content)?void 0:_[0].text)||(null==z||null==(I=z.Hero)||null==(L=I[0])||null==(R=L.Short_Blurb)||null==(O=R.content)||null==(T=O[0])||null==(P=T.content)?void 0:P[0].text)||"Insurance Bureau of Canada is the national industry association representing Canada's private home, car and business insurers. Its member companies represent 90% of the property and casualty (P&C) insurance market in Canada."}),(0,h.jsx)("meta",{property:"og:image",content:"".concat((null==z||null==(A=z.Meta_Tags)?void 0:A.og_image)||(null==z||null==(M=z.Image)?void 0:M.filename)||(null==z||null==(H=z.Hero)||null==(D=H[0])||null==(F=D.Full_Width_Image)?void 0:F.filename),"/m/1200x630")}),(0,h.jsx)("meta",{property:"og:type",content:"website"}),(0,h.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})]}),(0,h.jsxs)("main",{...(0,m.K1)(z),children:[[...null!=(B=z.Hero)?B:[]].map(e=>(0,p.createElement)(m.Dp,{blok:e,type:z.component,story:V,locale:W,key:e._uid})),(0,h.jsxs)(nT,{searchClient:cZ,indexName:ey,refresh:!0,future:{preserveSharedStateOnUnmount:!1},children:[(0,h.jsx)(n8,{hitsPerPage:ee||K||en?12:Number(null==z?void 0:z.Initial_Number_of_Articles),facetFilters:ea}),(0,h.jsx)(cX,{onSearchChange:ev}),(0,h.jsx)(cJ,{selectedTopic:Y,selectedRegion:J}),(0,h.jsx)("section",{className:"bg-grey-50",children:(0,h.jsxs)(w.A,{as:"div",children:[(0,h.jsxs)("div",{id:"search-results",className:"flex flex-col lg:flex-row w-full lg:gap-12",children:[(0,h.jsxs)("div",{className:"order-last lg:order-none pt-6 lg:pt-24 space-y-1.5 md:space-y-3 flex-1",children:[(0,h.jsx)("label",{htmlFor:"algolia_search",className:"text-xs text-grey-500",children:ex("components.News_Overview_Layout.search.label")}),(0,h.jsx)(cx,{setIsSearching:G,placeholder:ex("components.News_Overview_Layout.search.placeholder")})]}),(0,h.jsxs)("div",{className:"flex flex-col md:flex-row md:gap-12",children:[(0,h.jsxs)("div",{className:"flex-1 pt-12 md:pt-24 space-y-1.5 md:space-y-3",children:[(0,h.jsx)("label",{htmlFor:"topicFilter",className:"text-xs text-grey-500",children:ex("components.News_Overview_Layout.filter_by_topic.label")}),(0,h.jsx)(cq,{id:"topicFilter",attribute:"content.Category",className:"resource",placeholder:ex("components.News_Overview_Layout.filter_by_topic.placeholder"),onValueChange:Z,transformItems:ek,value:Y,controlledMode:!0})]}),(0,h.jsxs)("div",{className:"flex-1 pt-6 md:pt-24 space-y-1.5 md:space-y-3",children:[(0,h.jsx)("label",{htmlFor:"regionFilter",className:"text-xs text-grey-500",children:ex("components.News_Overview_Layout.filter_by_region.label")}),(0,h.jsx)(cq,{id:"regionFilter",attribute:"content.Region",className:"resource",onValueChange:X,placeholder:ex("components.News_Overview_Layout.filter_by_region.placeholder"),transformItems:e_,value:J,controlledMode:!0})]})]})]}),(null==q?void 0:q.nbPages)?(0,h.jsx)("div",{children:(0,h.jsx)("p",{className:"pt-6 md:pt-12 text-grey-500",children:(0,h.jsx)(y.x6,{i18nKey:"components.News_Overview_Layout.pagination.page_of_total",components:{bold:(0,h.jsx)("span",{className:"font-bold"})},values:{current:(null==q?void 0:q.page)+1,total:(null==q?void 0:q.nbPages)===0?1:Math.ceil((null==q?void 0:q.nbHits)/12)}})})}):void 0,ei?(0,h.jsx)("div",{className:"animate-[fadeIn_0.5s_ease-in-out]",children:(0,h.jsx)(cy,{selected:ee,searchResults:q,setSearchResults:Q,locale:W,hasActiveFilters:Y||J})}):void 0,(0,h.jsx)(cO,{searchResults:q,setCurrentPage:er})]})})]}),[...null!=($=z.Content_Blocks)?$:[]].map(e=>(0,p.createElement)(m.Dp,{blok:e,type:z.component,story:V,locale:W,key:e._uid}))]})]})},Search_Layout:e=>{var t,n,r,i,l,a,o,s,c,u,d,f,v,x,b,j,S,k,_,C,N,E,P,T,O,R,L,I,A,M,F,D,H,B;let{blok:$,story:z}=e,{t:V}=(0,y.Bd)("common"),W=(0,g.useRouter)(),[U,q]=(0,p.useState)([]),[Q,K]=(0,p.useState)(!1),[G,Y]=(0,p.useState)(0),Z=aF({locale:W.locale});(0,p.useEffect)(()=>{let e=()=>{q([])};return W.events.on("routeChangeStart",e),()=>{W.events.off("routeChangeStart",e)}},[W]);let J=(0,p.useMemo)(()=>e=>e.map(e=>({...e,label:e.label.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")})),[]);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(oT(),{children:[(0,h.jsx)("title",{children:(null==$||null==(t=$.Meta_Tags)?void 0:t.t
28itle)||(null==$?void 0:$.Title)||(null==$||null==(r=$.Hero)||null==(n=r[0])?void 0:n.Heading)}),(0,h.jsx)("meta",{name:"description",content:(null==$||null==(i=$.Meta_Tags)?void 0:i.description)||(null==$||null==(s=$.Blurb)||null==(o=s.content)||null==(a=o[0])||null==(l=a.content)?void 0:l[0].text)||(null==$||null==(x=$.Hero)||null==(v=x[0])||null==(f=v.Short_Blurb)||null==(d=f.content)||null==(u=d[0])||null==(c=u.content)?void 0:c[0].text)||"Insurance Bureau of Canada is the national industry association representing Canada's private home, car and business insurers. Its member companies represent 90% of the property and casualty (P&C) insurance market in Canada."}),(0,h.jsx)("meta",{property:"og:title",content:(null==$||null==(b=$.Meta_Tags)?void 0:b.og_title)||(null==$?void 0:$.Title)||(null==$||null==(S=$.Hero)||null==(j=S[0])?void 0:j.Heading)}),(0,h.jsx)("meta",{property:"og:description",content:(null==$||null==(k=$.Meta_Tags)?void 0:k.og_description)||(null==$||null==(E=$.Blurb)||null==(N=E.content)||null==(C=N[0])||null==(_=C.content)?void 0:_[0].text)||(null==$||null==(I=$.Hero)||null==(L=I[0])||null==(R=L.Short_Blurb)||null==(O=R.content)||null==(T=O[0])||null==(P=T.content)?void 0:P[0].text)||"Insurance Bureau of Canada is the national industry association representing Canada's private home, car and business insurers. Its member companies represent 90% of the property and casualty (P&C) insurance market in Canada."}),(0,h.jsx)("meta",{property:"og:image",content:"".concat((null==$||null==(A=$.Meta_Tags)?void 0:A.og_image)||(null==$||null==(M=$.Image)?void 0:M.filename)||(null==$||null==(H=$.Hero)||null==(D=H[0])||null==(F=D.Full_Width_Image)?void 0:F.filename),"/m/1200x630")}),(0,h.jsx)("meta",{property:"og:type",content:"website"}),(0,h.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})]}),(0,h.jsxs)("main",{...(0,m.K1)($),className:"bg-grey-50",children:[(0,h.jsxs)(nT,{searchClient:uP,indexName:Z,future:{preserveSharedStateOnUnmount:!1},children:[(0,h.jsx)(n8,{facetFilters:["content.component:-Resource_Details"],hitsPerPage:12}),$.Hero.map(e=>(0,p.createElement)(m.Dp,{blok:e,type:$.component,story:z,key:e._uid})),(0,h.jsx)(aO,{searchResults:U,isSearch:!0,placeholder:V("search.placeholder","What can we help you find?"),popularItems:[V("search.popular.items[0]","insurance basics"),V("search.popular.items[1]","auto insurance"),V("search.popular.items[2]","VIN Services")],popularLabel:V("search.popular.label","Popular Searches")}),(0,h.jsxs)(w.A,{className:"flex flex-col-reverse md:flex-row md:gap-12",children:[(0,h.jsxs)("div",{id:"search-results",className:"md:w-2/3",children:[(0,h.jsx)("div",{className:"animate-[fadeIn_0.5s_ease-in-out]",children:(0,h.jsx)(uE,{setSearchResults:q})}),(0,h.jsx)("div",{children:(0,h.jsx)(cO,{searchResults:U,setCurrentPage:Y})})]}),(0,h.jsx)("div",{className:"md:w-1/3 py-12 pb-6 md:py-24",children:(0,h.jsxs)("aside",{className:"bg-white p-6 md:space-y-6 ".concat(Q?"space-y-6":""),children:[(0,h.jsxs)("div",{onClick:()=>K(!Q),className:"flex justify-between",children:[(0,h.jsx)("h3",{className:"text-red-500 text-2xl font-display uppercase",children:"Filter by Category"}),(0,h.jsx)("svg",{className:"".concat(Q?"rotate-90":""," duration-300 ease-in-out md:hidden"),width:"16",height:"24",viewBox:"0 0 16 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M3.40984 0L0.589844 2.82L9.74984 12L0.589844 21.18L3.40984 24L15.4098 12L3.40984 0Z",fill:"#882345"})})]}),(0,h.jsx)("div",{className:"".concat(Q?"h-auto":"h-0"," text-grey-500 overflow-hidden md:h-auto duration-300 ease-in-out"),children:(0,h.jsx)(uN,{attribute:"hierarchy",transformItems:J})})]})})]})]}),null==$||null==(B=$.Content_Blocks)?void 0:B.map(e=>(0,p.createElement)(m.Dp,{blok:e,type:$.component,story:z,key:e._uid}))]})]})},Person_Layout:e=>{var t;let{blok:n}=e;return(0,h.jsx)("main",{...(0,m.K1)(n),children:null==n||null==(t=n.Body)?void 0:t.map(e=>(0,h.jsx)(m.Dp,{blok:e},e._uid))})},Resources_Overview_Layout:e=>{var t,n,r,i,l,a,o,s,c,u,d,f,v,x,b,j,S,k,_,C,N,E,P,T,O,R,L,I,A,M,F,D,H,B,$,z;let{blok:V,story:W,locale:U}
28=e,q=(0,g.useRouter)(),{t:Q}=(0,y.Bd)("common"),{t:K}=(0,y.Bd)("datasources"),[G,Y]=(0,p.useState)([]),[Z,J]=(0,p.useState)(null),[X,ee]=(0,p.useState)(0),[et,en]=(0,p.useState)(!0),[er,ei]=(0,p.useState)(["content.component: Resource_Details"]),[el,ea]=(0,p.useState)(""),eo=aF({locale:q.locale}),es=e=>{ee(e),en(!1),setTimeout(()=>en(!0),50)};return(0,p.useEffect)(()=>{es(X)},[X]),(0,p.useEffect)(()=>{let e=["content.component: Resource_Details"];Z&&e.push("content.Category:".concat(Z)),ei(e)},[Z]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(oT(),{children:[(0,h.jsx)("title",{children:(null==V||null==(t=V.Meta_Tags)?void 0:t.title)||(null==V?void 0:V.Title)||(null==V||null==(r=V.Hero)||null==(n=r[0])?void 0:n.Heading)}),(0,h.jsx)("meta",{name:"description",content:(null==V||null==(i=V.Meta_Tags)?void 0:i.description)||(null==V||null==(s=V.Blurb)||null==(o=s.content)||null==(a=o[0])||null==(l=a.content)?void 0:l[0].text)||(null==V||null==(x=V.Hero)||null==(v=x[0])||null==(f=v.Short_Blurb)||null==(d=f.content)||null==(u=d[0])||null==(c=u.content)?void 0:c[0].text)||"Insurance Bureau of Canada is the national industry association representing Canada's private home, car and business insurers. Its member companies represent 90% of the property and casualty (P&C) insurance market in Canada."}),(0,h.jsx)("meta",{property:"og:title",content:(null==V||null==(b=V.Meta_Tags)?void 0:b.og_title)||(null==V?void 0:V.Title)||(null==V||null==(S=V.Hero)||null==(j=S[0])?void 0:j.Heading)}),(0,h.jsx)("meta",{property:"og:description",content:(null==V||null==(k=V.Meta_Tags)?void 0:k.og_description)||(null==V||null==(E=V.Blurb)||null==(N=E.content)||null==(C=N[0])||null==(_=C.content)?void 0:_[0].text)||(null==V||null==(I=V.Hero)||null==(L=I[0])||null==(R=L.Short_Blurb)||null==(O=R.content)||null==(T=O[0])||null==(P=T.content)?void 0:P[0].text)||"Insurance Bureau of Canada is the national industry association representing Canada's private home, car and business insurers. Its member companies represent 90% of the property and casualty (P&C) insurance market in Canada."}),(0,h.jsx)("meta",{property:"og:image",content:"".concat((null==V||null==(A=V.Meta_Tags)?void 0:A.og_image)||(null==V||null==(M=V.Image)?void 0:M.filename)||(null==V||null==(H=V.Hero)||null==(D=H[0])||null==(F=D.Full_Width_Image)?void 0:F.filename),"/m/1200x630")}),(0,h.jsx)("meta",{property:"og:type",content:"website"}),(0,h.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})]}),(0,h.jsx)("main",{...(0,m.K1)(V),children:(0,h.jsxs)(nT,{searchClient:uL,indexName:eo,refresh:!0,future:{preserveSharedStateOnUnmount:!1},children:[(0,h.jsx)(n8,{facetFilters:er,hitsPerPage:15}),(0,h.jsx)(uA,{onSearchChange:ea}),(0,h.jsx)(uI,{selectedCategory:Z}),[...null!=(B=V.Hero)?B:[]].map(e=>(0,p.createElement)(m.Dp,{blok:e,type:V.component,story:W,key:e._uid})),(0,h.jsx)("section",{className:"bg-grey-50",children:(0,h.jsxs)(w.A,{as:"div",children:[(0,h.jsxs)("div",{className:"flex flex-col lg:flex-row w-full lg:gap-12",children:[(0,h.jsxs)("div",{className:"order-last lg:order-none pt-6 lg:pt-24 space-y-1.5 md:space-y-3 flex-1",children:[(0,h.jsx)("label",{htmlFor:"algolia_search",className:"text-xs text-grey-500",children:Q("components.Resources_Overview_Layout.search.label","Search:")}),(0,h.jsx)(cx,{searchResults:G,placeholder:Q("components.Resources_Overview_Layout.search.placeholder","Search Resources")})]}),(0,h.jsx)("div",{id:"search-results",className:"flex flex-col md:flex-row md:gap-12",children:(0,h.jsxs)("div",{className:"flex-1 pt-12 md:pt-24 space-y-1.5 md:space-y-3",children:[(0,h.jsx)("label",{htmlFor:"categoryFilter",className:"text-xs text-grey-500",children:Q("components.Resources_Overview_Layout.filter_by_topic.label","Filter by topic:")}),(0,h.jsx)(cq,{id:"categoryFilter",attribute:"content.Category",className:"resource",placeholder:Q("components.Resources_Overview_Layout.filter_by_topic.placeholder","See all"),onValueChange:J,value:Z,controlledMode:!0,transformItems:e=>e.map(e=>({...e,label:K("resources-data-filters.".concat(e.value),e.value.replace("ib
28c","IBC").replaceAll("_"," "))}))})]})})]}),void 0!==(null==G?void 0:G.nbHits)?(0,h.jsx)("p",{className:"pt-12 text-grey-500",children:(0,h.jsx)(y.x6,{i18nKey:"components.Resources_Overview_Layout.pagination.page_of_total",values:{current:(null!=($=null==G?void 0:G.page)?$:0)+1,total:(null==G?void 0:G.nbHits)===0?1:Math.ceil((null==G?void 0:G.nbHits)/15)},components:{bold:(0,h.jsx)("span",{className:"font-bold"})}})}):null,et?(0,h.jsx)("div",{className:"animate-[fadeIn_0.5s_ease-in-out]",children:(0,h.jsx)(uR,{setSearchResults:Y,hasActiveFilters:Z,locale:U})}):void 0,(0,h.jsx)(cO,{searchResults:G,setCurrentPage:ee})]})}),[...null!=(z=V.Content_Blocks)?z:[]].map(e=>(0,p.createElement)(m.Dp,{blok:e,type:V.component,story:W,key:e._uid}))]})})]})},Resource_Details:uO,VIN_Verify_Layout:e=>{var t,n,r,i,l,a,o,s,c,u,d,f,g,v,y,x,b,w,j,S,_,C,N,E,P,T,O,R,L,I,A,M,F,D,H,B,$,z,V,W,U;let{blok:q,story:Q}=e;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(oT(),{children:[(0,h.jsx)("title",{children:(null==q||null==(t=q.Meta_Tags)?void 0:t.title)||(null==q?void 0:q.Title)||(null==q||null==(r=q.Hero)||null==(n=r[0])?void 0:n.Heading)}),(0,h.jsx)("meta",{name:"description",content:(null==q||null==(i=q.Meta_Tags)?void 0:i.description)||(null==q||null==(s=q.Blurb)||null==(o=s.content)||null==(a=o[0])||null==(l=a.content)?void 0:l[0].text)||(null==q||null==(v=q.Hero)||null==(g=v[0])||null==(f=g.Short_Blurb)||null==(d=f.content)||null==(u=d[0])||null==(c=u.content)?void 0:c[0].text)||"Insurance Bureau of Canada is the national industry association representing Canada's private home, car and business insurers. Its member companies represent 90% of the property and casualty (P&C) insurance market in Canada."}),(0,h.jsx)("meta",{property:"og:title",content:(null==q||null==(y=q.Meta_Tags)?void 0:y.og_title)||(null==q?void 0:q.Title)||(null==q||null==(b=q.Hero)||null==(x=b[0])?void 0:x.Heading)}),(0,h.jsx)("meta",{property:"og:description",content:(null==q||null==(w=q.Meta_Tags)?void 0:w.og_description)||(null==q||null==(C=q.Blurb)||null==(_=C.content)||null==(S=_[0])||null==(j=S.content)?void 0:j[0].text)||(null==q||null==(R=q.Hero)||null==(O=R[0])||null==(T=O.Short_Blurb)||null==(P=T.content)||null==(E=P[0])||null==(N=E.content)?void 0:N[0].text)||"Insurance Bureau of Canada is the national industry association representing Canada's private home, car and business insurers. Its member companies represent 90% of the property and casualty (P&C) insurance market in Canada."}),(0,h.jsx)("meta",{property:"og:image",content:(null==q||null==(L=q.Meta_Tags)?void 0:L.og_image)||(null==q||null==(I=q.Image)?void 0:I.filename)||(null==q||null==(F=q.Hero)||null==(M=F[0])||null==(A=M.Full_Width_Image)?void 0:A.filename)?"".concat((null==q||null==(D=q.Meta_Tags)?void 0:D.og_image)||(null==q||null==(H=q.Image)?void 0:H.filename)||(null==q||null==(z=q.Hero)||null==($=z[0])||null==(B=$.Full_Width_Image)?void 0:B.filename),"/m/1200x630"):k(Q)}),(0,h.jsx)("meta",{property:"og:type",content:"website"}),(0,h.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})]}),(0,h.jsxs)("main",{...(0,m.K1)(q),children:[[...null!=(V=q.Hero)?V:[],...null!=(W=q.Intro)?W:[],...null!=(U=q.Content_Blocks)?U:[]].map((e,t)=>(0,p.createElement)(m.Dp,{blok:e,type:q.component,story:Q,index:t,key:e._uid})),(0,h.jsx)(uY,{})]})]})},Accordion:e=>{var t;let{blok:n,index:r,type:i}=e,l=(0,g.useRouter)(),a=()=>(null==n?void 0:n.Accordion_Items)?n.Accordion_Items.filter(e=>"open"===e.Initial_State).map(e=>e._uid):[],[o,s]=(0,p.useState)(a),c={grey:{background:"bg-grey-50",itemTitle:"text-grey-500"},red:{background:"bg-white",itemTitle:"text-red-500"}};(0,p.useEffect)(()=>{s(a())},[l.asPath]);let u=e=>{o.includes(e)?s(o.filter(t=>t!==e)):s([...o,e])};return(0,h.jsx)("div",{id:oW(null==n?void 0:n.Title),className:"w-full ".concat(null==(t=c[null==n?void 0:n.Colour_Scheme])?void 0:t.background),...(0,m.K1)(n),children:(0,h.jsx)(w.A,{className:"".concat("FAQs_Layout"===i||"Intro"===i||"News_Article_Layout"===i?"":"py-12 md:py-24"),mobile:"Intro"!==i&&"News_Article_Layout"!==i,tablet:"Intro"!==i&&"News_Article_Layout"!==i,desktop:"Intro"!==i&&"News_Article_Layout"!==i,children:(0,h.jsxs)("div",{className:"space-y-12 ".concat((null==n?void 0:n.Align_With_Sidebar)?"md:w-2/3 md:pr-8":""),children:[(null==n?void 0:n.Title)?(0,h.jsx)(uT,{index:r,className:"text-red-500 text-6xl md:text-8xl font-normal font-display",children:null==n?void 0:n.Title}):void 0,(0,h.jsx)(cf,{className:"text-grey-500 text-lg md:text-xl",children:n.Blurb}),(0,h.jsx)("ul",{className:"divide-y divide-grey-300 border-y border-grey-300 list-none px-0",children:null==n?void 0:n.Accordion_Items.map(e=>{var t,r;let i=o.includes(e._uid),l="accordion-content-".concat(e._uid),a="accordion-button-".concat(e._uid);return(0,h.jsx)("li",{id:oW(null==e?void 0:e.Title),className:"py-3 md:py-6",...(0,m.K1)(e),children:(0,h.jsxs)("dl",{children:[(0,h.jsx)("dt",{children:(0,h.jsxs)("button",{id:a,onClick:()=>u(e._uid),"aria-expanded":i,"aria-controls":l,className:"w-full text-left flex items-center justify-between cursor-pointer",children:[(0,h.jsx)("span",{className:"space-x-1.5 text-4xl md:text-5xl md:font-medium font-display ".concat(null!=(r=null==(t=c[null==n?void 0:n.Colour_Scheme])?void 0:t.itemTitle)?r:"text-grey-500"),children:null==e?void 0:e.Title}),i?(0,h.jsx)("svg",{className:"flex-shrink-0",width:"22",height:"4",viewBox:"0 0 22 4",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M21.5 3.5H0.5V0.5H21.5V3.5Z",fill:"#882345"})}):(0,h.jsx)("svg",{className:"flex-shrink-0",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M21.5 12.5H12.5V21.5H9.5V12.5H0.5V9.5H9.5V0.5H12.5V9.5H21.5V12.5Z",fill:"#882345"})})]})}),(0,h.jsx)("dd",{id:l,role:"region","aria-labelledby":a,className:"py-3 md:py-6 text-grey-500 min-w-full prose prose-strong:text-grey-500 ".concat(i?"block":"hidden"),children:(0,h.jsx)(cf,{hideBullets:null==e?void 0:e.Hide_Bullets,children:null==e?void 0:e.Content_Body})})]})},e._uid)})})]})})})},Multiple_Iframe_Embed:e=>{let{blok:t}=e;return(0,h.jsx)("div",{className:"bg-grey-50 py-12 md:py-12 md:pb-12",...(0,m.K1)(t),
28children:(0,h.jsx)(w.A,{children:(0,h.jsxs)("div",{children:[(null==t?void 0:t.Title)&&(0,h.jsx)("h3",{className:"text-5xl md:text-6xl font-display font-extrabold text-red-500 pb-12",children:null==t?void 0:t.Title}),(0,h.jsx)("ul",{className:"".concat("4"===t.Maximum_Grid?"grid grid-cols-2 gap-4 gap-x-6 md:grid-cols-4 lg:gap-6":"3"===t.Maximum_Grid?"grid grid-cols-2 gap-4 gap-x-6 md:grid-cols-3 md:gap-4":"2"===t.Maximum_Grid?"grid grid-cols-2 gap-4 gap-x-6":"1"===t.Maximum_Grid?"grid grid-cols-1 gap-4 gap-x-6":"grid grid-cols-2 gap-4 gap-x-6 md:grid-cols-".concat(null==t?void 0:t.Maximum_Grid," md:gap-4")),children:null==t?void 0:t.Iframe_Embeds.map(e=>{var t,n;return(0,h.jsx)("li",{children:(null==e||null==(t=e.Source_URL)?void 0:t.url)?(0,h.jsx)(uX,{contentTitle:null==e?void 0:e.Content_Title,contentSource:null==e||null==(n=e.Source_URL)?void 0:n.url,desktopAspectRatio:null==e?void 0:e.Desktop_Aspect_Ratio,mobileAspectRatio:null==e?void 0:e.Mobile_Aspect_Ratio}):(0,h.jsx)(h.Fragment,{})},e._uid)})})]})})})},Also_In_This_Section:e=>{var t,n;let{blok:r,index:i}=e,l={grey_panels:{backgroud:"bg-white",card:"bg-grey-50",title:"text-grey-500"},white_panels:{backgroud:"bg-grey-50",card:"bg-white",title:"text-red-500"}};return(0,h.jsx)("section",{id:oW(null==r?void 0:r.Title),className:"w-full ".concat((null==(t=l[null==r?void 0:r.Colour_Scheme])?void 0:t.backgroud)||"bg-white"),...(0,m.K1)(r),children:(0,h.jsx)(w.A,{className:"py-12 md:py-24",...(0,m.K1)(r),children:(0,h.jsxs)("div",{className:"space-y-12 ".concat((null==r?void 0:r.Align_With_Sidebar)?"md:w-2/3 md:pr-8":""),children:[(null==r?void 0:r.Title)?(0,h.jsx)("h3",{className:"text-red-500 text-5xl md:text-6xl font-extrabold font-display",children:null==r?void 0:r.Title}):void 0,(0,h.jsx)("ul",{className:"grid md:grid-cols-2 gap-6 md:gap-12 w-full",children:r.Links.map(e=>{var t,n,i,a;return(0,h.jsx)("li",{className:"group transition duration-150 ease-in-out hover:bg-red-500 active:bg-red-700  ".concat((null==(t=l[null==r?void 0:r.Colour_Scheme])?void 0:t.card)||"bg-grey-100"),children:(0,h.jsxs)(n9,{href:G(null==e?void 0:e.Link),target:null==e||null==(n=e.Link)?void 0:n.target,className:"flex p-6 pr-10 md:p-12 lg:pr-16 gap-7 items-center",children:[(0,h.jsxs)("div",{className:"space-y-3",children:[(null==r?void 0:r.Title)?(0,h.jsx)("h4",{className:"text-4xl md:text-5xl md:font-medium font-display transition duration-150 ease-in-out group-hover:text-white ".concat((null==(a=l[null==r?void 0:r.Colour_Scheme])?void 0:a.title)||"text-grey-500"),children:e.Title}):(0,h.jsx)("h3",{className:"text-4xl md:text-5xl md:font-medium font-display transition duration-150 ease-in-out group-hover:text-white ".concat((null==(i=l[null==r?void 0:r.Colour_Scheme])?void 0:i.title)||"text-grey-500"),children:e.Title}),(0,h.jsx)(cf,{className:"group-hover:text-white transition duration-150 ease-in-out text-grey-500 text-base font-body",children:e.Blurb})]}),(0,h.jsx)(u0.c,{className:"w-3.5 h-6 transition duration-150 ease-in-out group-hover:text-white text-red-500"})]})},e._uid)})}),(null==r||null==(n=r.CTA)?void 0:n.length)?(0,h.jsx)("ul",{className:"flex justify-center",children:null==r?void 0:r.CTA.map(e=>{var t,n;return(0,h.jsx)("li",{children:(0,h.jsx)(n9,{className:"py-3 px-6 inline-block bg-red-500 hover:bg-red-700 active:bg-red-900 transition duration-150 ease-in-out text-white",href:G(null==e?void 0:e.Link),target:null==e||null==(t=e.Link)?void 0:t.target,children:null!=(n=null==e?void 0:e.Title)?n:""})},e._uid)})}):void 0]})})})},Carousel:e=>{var t,n,r,i,l,a,o,s;let{blok:c,index:u}=e,d={blue:{panel:"bg-blue-500",panelHeading:"text-white",panelText:"text-white",linkFill:"fill-blue-500",borderTop:"border-blue-500"},red:{panel:"bg-red-500",panelHeading:"text-white",panelText:"text-white",linkFill:"fill-red-500",borderTop:"border-red-500"},green:{panel:"bg-green-500",panelHeading:"text-white",panelText:"text-white",linkFill:"fill-green-500",borderTop:"border-green-500"},grey:{panel:"bg-grey-50",panelHeading:"text-red-500",panelText:"text-grey-500",linkFill:"fill-grey-500",borderTop:"border-grey-500"},teal:{panel:"bg-teal-500",panelHeading:"text-teal-900",panelText:"text-teal-900",linkFill:"fill-teal-500",borderTop:"border-teal-500"},sage:{panel:"bg-sage-500",panelHeading:"text-sage-900",panelText:"text-sage-900",linkFill:"fill-sage-500",borderTop:"border-sage-500"}},[f,g]=(0,p.useState)(!1);return(0,p.useEffect)(()=>{g(!0)},[]),(0,h.jsx)("section",{id:oW(null==c?void 0:c.Heading),className:"".concat((null==(t=d[null==c?void 0:c.Backgroun
28d_Color])?void 0:t.panel)||"bg-grey-50"," ").concat((null==(n=d[null==c?void 0:c.Background_Color])?void 0:n.panelText)||"text-grey-500"," overflow-x-hidden md:overflow-x-initial md:overflow-x-clip py-12 md:py-24 md:pb-14"),...(0,m.K1)(c),children:(0,h.jsxs)(w.A,{as:"div",className:"md:flex-nowrap relative flex flex-wrap",children:[(null==c?void 0:c.Heading)||_(null==c?void 0:c.Blurb)?(0,h.jsxs)("div",{className:"w-full md:w-1/3 md:shrink-0 pr-12 space-y-6 md:space-y-12",children:[(null==c?void 0:c.Heading)?(0,h.jsx)(uT,{index:u,className:"".concat((null==(r=d[null==c?void 0:c.Background_Color])?void 0:r.panelHeading)||"text-red-500"," font-extrabold text-5xl md:text-6xl font-display"),children:null==c?void 0:c.Heading}):void 0,(0,h.jsx)(cf,{className:(null==(i=d[null==c?void 0:c.Background_Color])?void 0:i.panelText)||"text-grey-500",children:null==c?void 0:c.Blurb})]}):void 0,(null==c||null==(l=c.Carousel_Panels)?void 0:l.length)?(0,h.jsx)("div",{className:"w-full gap-12 mt-6",children:(0,h.jsxs)(dU,{className:"layout-grey",modules:[dE,dT],spaceBetween:45,slidesPerView:(null==c||null==(a=c.Carousel_Panels)||a.length,3),loop:(null==c||null==(o=c.Carousel_Panels)?void 0:o.length)>=3,navigation:{prevEl:".swiper-button-prev",nextEl:".swiper-button-next"},pagination:{el:".swiper-pagination",type:"bullets",clickable:!0},children:[null==c?void 0:c.Carousel_Panels.map(e=>{var t,n,r,i,l,a,o,s,c,u,p,f,m,g,v,y,x,b,w,j,S,k,C,N,E,P,T,O,R,L,I,A,M,F,D,H,B,$,z,V,W,U,q,Q,K,G,Y,X,ee,et,en,er,ei;return(null==e||null==(t=e.content)?void 0:t.component)==="Resource_Details"&&((null==e||null==(et=e.content)||null==(ee=et.Link)||null==(X=ee.cached_url)?void 0:X.length)&&(e.full_slug=e.content.Link.cached_url),(null==e||null==(ei=e.content)||null==(er=ei.Link)||null==(en=er.url)?void 0:en.length)&&(e.full_slug=e.content.Link.url)),(null==e||null==(n=e.content)?void 0:n.Title)||(null==e||null==(l=e.content)||null==(i=l.Hero)||null==(r=i[0])?void 0:r.Heading)?(0,h.jsx)(dQ,{className:"relative w-full flex-grow hover:drop-shadow-mobile active:drop-shadow-active-mobile md:hover:drop-shadow-desktop md:active:drop-shadow-active-desktop transition-all duration-150 ease-in-out group",children:(0,h.jsxs)(n9,{className:"after:absolute after:inset-0 w-full flex flex-col h-full",href:null==e?void 0:e.full_slug,target:null==e||null==(o=e.content)||null==(a=o.Link)?void 0:a.target,children:[(0,h.jsx)(J,{loading:"lazy",sizes:"(max-width: 768px) 100vw, (max-width: 1280px) calc(30vw-3rem), 382px",srcSet:Z((null==e||null==(c=e.content)||null==(s=c.Image)?void 0:s.filename)||(null==e||null==(m=e.content)||null==(f=m.Hero)||null==(p=f[0])||null==(u=p.Full_Width_Image)?void 0:u.filename),545,"5:3",(null==e||null==(v=e.content)||null==(g=v.Image)?void 0:g.focus)||(null==e||null==(w=e.content)||null==(b=w.Hero)||null==(x=b[0])||null==(y=x.Full_Width_Image)?void 0:y.focus)),src:"".concat((null==e||null==(S=e.content)||null==(j=S.Image)?void 0:j.filename)||(null==e||null==(E=e.content)||null==(N=E.Hero)||null==(C=N[0])||null==(k=C.Full_Width_Image)?void 0:k.filename),"/m/6x0/"),alt:(null==e||null==(T=e.content)||null==(P=T.Image)?void 0:P.alt)||(null==e||null==(I=e.content)||null==(L=I.Hero)||null==(R=L[0])||null==(O=R.Full_Width_Image)?void 0:O.alt)||"".concat((null==e||null==(A=e.content)?void 0:A.Title)||(null==e||null==(D=e.content)||null==(F=D.Hero)||null==(M=F[0])?void 0:M.Heading)||""," Carousel Panel Image"),className:"object-cover w-full h-auto aspect-[5/3]"}),(0,h.jsxs)("div",{className:"flex flex-col p-6 pb-0 space-y-6 border-t-4 grow ".concat((null==(H=d[null==e||null==(B=e.content)?void 0:B.Colour_Scheme])?void 0:H.borderTop)||"border-red-500"," group-active:border-red-700"),children:[(0,h.jsxs)("div",{className:"space-y-6 flex-grow",children:[(0,h.jsx)("h3",{className:"font-display text-grey-500 group-hover:text-red-500 group-active:text-red-700 text-5xl font-medium",children:(null==e||null==($=e.content)?void 0:$.Title)||(null==e||null==(W=e.content)||null==(V=W.Hero)||null==(z=V[0])?void 0:z.Heading)}),(0,h.jsx)(cf,{className:"text-grey-500 line-clamp-3",children:_(null==e||null==(U=e.content)?void 0:U.Blurb)?null==e||null==(q=e.content)?void 0:q.Blurb:null==e||null==(G=e.content)||null==(K=G.Hero)||null==(Q=K[0])?void 0:Q.Short_Blurb})]}),(0,h.jsx)("div",{className:"h-14 flex items-center justify-end",children:(0,h.jsx)("svg",{width:"22",height:"12",viewBox:"0 0 22 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{className:"".concat((null==(Y=d[null==e?void 0:e.Colour_Scheme])?void 0:Y.linkFill)||"fill-red-500"," group-active:fill-red-700"),d:"M16.0133 4.66663H0V7.33329H16.0133V11.3333L21.3333 5.99996L16.0133 0.666626V4.66663Z",fill:"#882345"})})})]})]})},null==e?void 0:e.uuid):void 0}),(null==c||null==(s=c.Carousel_Panels)?void 0:s.length)>=3?(0,h.jsxs)("div",{className:"flex space-x-8",children:[(0,h.jsx)("div",{className:"swiper-button-prev"}),(0,h.jsx)("div",{className:"swiper-pagination"}),(0,h.jsx)("div",{className:"swiper-button-next"})]}):void 0]})}):void 0]})})},Stats_Carousel:e=>{var t,n,r,i,l;let{blok:a,index:o}=e,s={blue:{panel:"bg-blue-500",panelHeading:"text-white",panelText:"text-white",linkFill:"fill-blue-500",borderTop:"border-blue-500"},red:{panel:"bg-red-500",panelHeading:"text-white",panelText:"text-white",linkFill:"fill-red-500",borderTop:"border-red-500"},green:{panel:"bg-green-500",panelHeading:"text-white",panelText:"text-white",linkFill:"fill-green-500",borderTop:"border-green-500"},grey:{panel:"bg-grey-50",panelHeading:"text-red-500",panelText:"text-grey-500",linkFill:"fill-grey-500",borderTop:"border-grey-500"},teal:{panel:"bg-teal-500",panelHeading:"text-teal-900",panelText:"text-teal-900",linkFill:"fill-teal-500",borderTop:"border-teal-500"},sage:{panel:"bg-sage-500",panelHeading:"text-sage-900",panelText:"text-sage-900",linkFill:"fill-sage-500",borderTop:"border-sage-500"}};return(0,h.jsx)("section",{id:oW(null==a?void 0:a.Heading),className:"".concat((null==(t=s[null==a?void 0:a.Backgroun
28d_Color])?void 0:t.panel)||"bg-red-500"," ").concat((null==(n=s[null==a?void 0:a.Background_Color])?void 0:n.panelText)||"text-white"," overflow-x-hidden md:overflow-x-clip pt-6 md:pt-12 pb-6 md:pb-12"),...(0,m.K1)(a),children:(0,h.jsxs)(w.A,{as:"div",className:"md:flex-nowrap relative flex flex-wrap",children:[(null==a?void 0:a.Heading)||_(null==a?void 0:a.Blurb)?(0,h.jsxs)("div",{className:"w-full md:w-1/3 md:shrink-0 pr-12 space-y-12",children:[(null==a?void 0:a.Heading)?(0,h.jsx)(uT,{index:o,className:"".concat((null==(r=s[null==a?void 0:a.Background_Color])?void 0:r.panelHeading)||"bg-red-500"," font-light text-6xl md:text-8xl font-display"),children:null==a?void 0:a.Heading}):void 0,(0,h.jsx)(cf,{className:(null==(i=s[null==a?void 0:a.Background_Color])?void 0:i.panelText)||"text-white",children:null==a?void 0:a.Blurb})]}):void 0,(null==a||null==(l=a.Panels)?void 0:l.length)?(0,h.jsx)("div",{className:"w-full gap-12 mt-6 md:-mt-24",children:(0,h.jsxs)(dU,{className:"layout-red",modules:[dE,dT],spaceBetween:70,slidesPerView:2,breakpoints:{250:{slidesPerView:2,spaceBetween:24},400:{slidesPerView:2,spaceBetween:24},480:{slidesPerView:2,spaceBetween:24},768:{slidesPerView:1.5,spaceBetween:50},1080:{slidesPerView:2,spaceBetween:70}},loop:!0,navigation:{prevEl:".swiper-button-prev",nextEl:".swiper-button-next"},pagination:{el:".swiper-pagination",type:"bullets",clickable:!0},children:[null==a?void 0:a.Panels.map(e=>(0,h.jsx)(dQ,{className:"relative hover:drop-shadow-mobile active:drop-shadow-active-mobile md:hover:drop-shadow-desktop md:active:drop-shadow-active-desktop transition-all duration-150 ease-in-out group",children:(0,h.jsxs)(S(),{href:G(null==e?void 0:e.Link),className:"block md:p-12 md:space-y-12 h-full p-6 space-y-6 shadow-xl",children:[(0,h.jsx)("h3",{className:"text-9xl md:text-10xl font-display text-red-500",children:null==e?void 0:e.Title}),(0,h.jsx)(cf,{className:"text-grey-500",children:null==e?void 0:e.Blurb})]})},null==e?void 0:e._uid)),(0,h.jsxs)("div",{className:"flex space-x-8",children:[(0,h.jsx)("div",{className:"swiper-button-prev"}),(0,h.jsx)("div",{className:"swiper-pagination"}),(0,h.jsx)("div",{className:"swiper-button-next"})]})]})}):void 0]})})},Contact_Form:e=>{let{blok:t}=e,{t:n}=(0,y.Bd)("common"),r=(0,p.useRef)(null),[i,l]=(0,p.useState)(!1),[a,o]=(0,p.useState)({show:!1}),s=(0,p.useRef)(null),c=(e,t)=>{e!==t.value?(t.parentNode.classList.add("invalid"),t["aria-invalid"]="true",t.nextSibling.innerText=n("components.Contact_Form.error.email_mismatch"),t.nextSibling.classList.remove("hidden")):(t.parentNode.classList.remove("invalid"),t["aria-invalid"]="false",t.nextSibling.innerText="",t.nextSibling.classList.add("hidden"))},u=e=>{e.reset(),s.current.reset()};return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{id:"contact-form",className:"text-grey-500 font-body md:pt-12 md:pb-0",...(0,m.K1)(t),children:(0,h.jsxs)("form",{noValidate:!0,ref:r,method:"POST",action:"https://dev-func-ibc-email.azurewebsites.net/api/sendEmail",onSubmit:e=>{e.preventDefault();let t=e.target.email,i=e.target["email-confirm"];if(c(t.value,i),t.value!==i.value){i.parentNode.classList.add("invalid"),i["aria-invalid"]="true",i.nextSibling.innerText=n("components.Contact_Form.error.email_mismatch"),i.nextSibling.classList.remove("hidden");return}let a=!1;[...r.current.querySelectorAll("*[aria-required]")].map(e=>{if(!new RegExp(e.pattern).test(e.value)||e.value.trim().length<2){e.parentNode.classList.add("invalid"),e["aria-invalid"]="true";let t=n("components.Contact_Form.error.field_not_valid",{field:oq(e.name.replace(/[-]/g," "))});e.nextSibling.innerText=t,e.nextSibling.classList.remove("hidden"),a=!0}else e.parentNode.classList.remove("invalid"),e["aria-invalid"]="false",e.nextSibling.innerText="",e.nextSibling.classList.add("hidden")}),a||(l(!0),s.current.props.grecaptcha.enterprise.ready(async()=>{await s.current.execute(dK.env.NEXT_PUBLIC_RecaptchaSiteID,{action:"LOGIN"}).then(e=>e),fetch("/api/sendEmail",{method:"POST",body:JSON.stringify(Object.fromEntries(new FormData(e.target)))}).then(t=>{l(!1),202===t.status?(o({show:!0,success:!0,title:n("components.Contact_Form.success.title"),message:n("components.Contact_Form.success.message")}),u(e.target)):o({show:!0,success:!1,title:n("components.Contact_Form.error.title"),message:n("components.Contact_Form.error.message")})}).catch(e=>{l(!1),o({show:!0,success:!1,title:n("components.Contact_Form.error.title"),message:n("components.Contact_Form.error.message_with_reason",{reason:e.message})})})}))},className:"w-full space-y-6",children:[(0,h.jsx)(uQ,{ref:s,size:"invisible",sitekey:"6LejT0IlAAAAAEfRO0Rz2fqYcCaKLToLVMcLuyC0",onChange:e=>{}}),(0,h.jsxs)("fieldset",{className:"space-y-1.5 md:w-3/4 lg:w-1/2",children:[(0,h.jsxs)("label",{className:"flex",htmlFor:"fullname",children:[n("components.Contact_Form.label.name"),(0,h.jsx)("span",{className:"text-red-500 ml-0.5","aria-hidden":"true",children:"*"})]}),(0,h.jsx)("input",{className:"focus:ring-0 border-grey-100 hover:border-red-500 focus:border-grey-500 w-full px-5 py-3 transition duration-150 ease-in-out outline-none",type:"text",id:"fullname",name:"fullname",onBlur:e=>e.target.reportValidity(),"aria-required":!0}),(0,h.jsx)("span",{className:"errormessage text-xs py-1.5 text-red-500 hidden",role:"alert","aria-errormessage":!0})]}),(0,h.jsxs)("fieldset",{className:"space-y-1.5 md:w-3/4 lg:w-1/2",children:[(0,h.jsx)("label",{className:"flex flex-col",htmlFor:"phone_number",children:n("components.Contact_Form.label.phone_optional")}),(0,h.jsx)("input",{className:"focus:ring-0 border-grey-100 hover:border-red-500 focus:border-grey-500 w-full px-5 py-3 transition duration-150 ease-in-out outline-none",type:"tel",id:"phone_number",name:"phone_number"}),(0,h.jsx)("span",{className:"errormessage text-xs py-1.5 text-red-500 hidden",role:"alert","aria-errormessage":!0})]}),(0,h.jsxs)("fieldset",{className:"space-y-1.5 md:w-3/4 lg:w-1/2",children:[(0,h.jsxs)("label",{className:"flex",htmlFor:"email",children:[n("components.Contact_Form.label.email"),(0,h.jsx)("span",{className:"text-red-500 ml-0.5","aria-hidden":"true",children:"*"})]}),(0,h.jsx)("input",{className:"focus:ring-0 border-grey-100 hover:border-red-500 focus:border-grey-500 w-full px-5 py-3 transition duration-150 ease-in-out outline-none",type:"email",id:"email",name:"email",pattern:"^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$",title:n("components.Contact_Form.label.email_title"),"aria-required":!0}),(0,h.jsx)("span",{className:"errormessage text-xs py-1.5 text-red-500 hidden",role:"alert","aria-errormessage":!0})]}),(0,h.jsxs)("fieldset",{className:"space-y-1.5 md:w-3/4 lg:w-1/2",children:[(0,h.jsxs)("label",{className:"flex",htmlFor:"email-confirm",children:[n("components.Contact_Form.label.email_confirm"),(0,h.jsx)("span",{className:"text-red-500 ml-0.5","aria-hidden":"true",children:"*"})]}),(0,h.jsx)("input",{className:"focus:ring-0 border-grey-100 hover:border-red-500 focus:border-grey-500 w-full px-5 py-3 transition duration-150 ease-in-out outline-none",type:"email",id:"email-confirm",name:"email-confirm",pattern:"^[a-zA-Z0-9.!#$%&'*+/=?^_{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$",title:n("components.Contact_Form.label.email_confirm_title"),onBlur:e=>c(e.target.form.email.value,e.target),"aria-required":"true"}),(0,h.jsx)("span",{className:"errormessage text-xs py-1.5 text-red-500 hidden",role:"alert","aria-errormessage":!0})]}),(0,h.jsxs)("fieldset",{className:"space-y-1.5 md:w-3/4 lg:w-1/2",children:[(0,h.jsxs)("label",{className:"relative flex",htmlFor:"province",children:[n("components.Contact_Form.label.province"),(0,h.jsx)("span",{className:"text-red-500 ml-0.5","aria-hidden":"true",children:"*"})]}),(0,h.jsxs)("select",{"aria-required":"true",className:"py-3 px-5 bg-white appearance-none w-full transition duration-150 ease-in-out outline-none focus:ring-0 border-grey-100 hover:border-red-500 focus:border-grey-500 ",id:"province",name:"province",children:[(0,h.jsx)("option",{value:"",children:n("components.Contact_Form.options.select_province")}),(0,h.jsx)("option",{value:"DEFAULT",children:n("components.Contact_Form.options.national")}),(0,h.jsx)("option",{value:"ab",children:n("components.Contact_Form.options.ab")}),(0,h.jsx)("option",{value:"bc",children:n("components.Contact_Form.options.bc")}),(0,h.jsx)("option",{value:"mb",children:n("components.Contact_Form.options.mb")}),(0,h.jsx)("option",{value:"nb",children:n("components.Contact_Form.options.nb")}),(0,h.jsx)("option",{value:"nl",children:n("components.Contact_Form.options.nl")}),(0,h.jsx)("option",{value:"ns",children:n("components.Contact_Form.options.ns")}),(0,h.jsx)("option",{value:"nt",children:n("components.Contact_Form.options.nt")}),(0,h.jsx)("option",{value:"nu",children:n("components.Contact_Form.options.nu")}),(0,h.jsx)("option",{value:"on",children:n("components.Contact_Form.options.on")}),(0,h.jsx)("option",{value:"pe",children:n("components.Contact_Form.options.pe")}),(0,h.jsx)("option",{value:"qc",children:n("components.Contact_Form.options.qc")}),(0,h.jsx)("option",{value:"sk",children:n("components.Contact_Form.options.sk")}),(0,h.jsx)("option",{value:"yt",children:n("components.Contact_Form.options.yt")})]}),(0,h.jsx)("span",{className:"errorMessage text-xs py-1.5 text-red-500 hidden",role:"alert","aria-errormessage":!0})]}),(0,h.jsxs)("fieldset",{className:"space-y-1.5 md:w-3/4 lg:w-1/2",children:[(0,h.jsxs)("label",{className:"relative flex",htmlFor:"department",children:[n("components.Contact_Form.label.department"),(0,h.jsx)("span",{className:"text-red-500 ml-0.5","aria-hidden":"true",children:"*"})]}),(0,h.jsxs)("select",{className:"py-3 px-5 bg-white appearance-none w-full transition duration-150 ease-in-out outline-none focus:ring-0 border-grey-100  hover:border-red-500 focus:border-grey-500 ",id:"department",name:"department","aria-required":!0,children:[(0,h.jsx)("option",{value:"",children:n("components.Contact_Form.options.select_section")}),(0,h.jsx)("option",{value:"Insurance Expert – General Consumer Questions",children:n("components.Contact_Form.options.insurance_expert")}),(0,h.jsx)("option",{value:"Media Relations",children:n("components.Contact_Form.options.media_relations")}),(0,h.jsx)("option",{value:"Member Services",children:n("components.Contact_Form.options.member_services")}),(0,h.jsx)("option",{value:"Technical Services",children:n("components.Contact_Form.options.technical_services")}),(0,h.jsx)("option",{value:"Other",children:n("components.Contact_Form.options.other")})]}),(0,h.jsx)("span",{className:"errormessage text-xs py-1.5 text-red-500 hidden",role:"alert","aria-errormessage":!0})]}),(0,h.jsxs)("fieldset",{className:"space-y-1.5",children:[(0,h.jsxs)("label",{className:"relative flex",htmlFor:"message",children:[n("components.Contact_Form.label.message"),(0,h.jsx)("span",{className:"text-red-500 ml-0.5","aria-hidden":"true",children:"*"})]}),(0,h.jsx)("textarea",{rows:"7",className:"focus:ring-0 border-grey-100 hover:border-red-500 focus:border-grey-500 w-full transition duration-150 ease-in-out",name:"message",id:"message",onBlur:e=>e.target.reportValidity(),"aria-required":!0}),(0,h.jsx)("span",{className:"errorMessage text-xs py-1.5 text-red-500 hidden",role:"alert","aria-errormessage":!0})]}),i?(0,h.jsxs)("button",{className:"hover:bg-red-700 active:bg-red-900 relative block px-6 py-3 text-white transition duration-150 ease-in-out bg-red-500",children:[(0,h.jsx)("span",{className:"invisible",children:n("components.Contact_Form.button.show_more_articles")}),(0,h.jsxs)("div",{className:"left-1/2 top-1/2 absolute flex items-center transform -translate-x-1/2 -translate-y-1/2",children:[(0,h.jsxs)("svg",{"aria-hidden":"true",className:"animate-spin w-5 h-5 mr-3 -ml-1 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,h.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,h.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),(0,h.jsx)("span",{children:n("components.Contact_Form.button.sending")})]})]}):(0,h.jsx)("input",{className:"hover:bg-red-700 active:bg-red-900 px-6 py-3 text-center text-white transition duration-150 ease-in-out bg-red-500",type:"submit",value:n("components.Contact_Form.button.send_message")})]})}),(0,h.jsx)(uK,{show:a.show,success:a.success,title:a.title,message:a.message,close:()=>{o({show:!1})}})]})},HCMU_Search_Section:e=>{var t;let{blok:n,locale:r}=e,[i,l]=(0,p.useState)([{id:1}]),a=(0,p.useRef)(2),[o,s]=(0,p.useState)(!1),c=e=>{i.length<=1||l(t=>t.filter(t=>t.id!==e))};return(0,h.jsx)("div",{className:"".concat(y_[null!=(t=null==n?void 0:n.Backgroun
28dColor)?t:"grey"]," pb-4"),children:(0,h.jsx)(w.A,{as:"section",children:(0,h.jsxs)("div",{className:"grid grid-cols-1 lg:[grid-template-columns:max-content_1fr_1fr_1fr] md:gap-4 shadow-[0_8px_30px_rgba(0,0,0,0.15)] p-4 pt-10 rounded-lg mb-4 -mt-12",children:[(0,h.jsx)("div",{className:"hidden lg:block",children:(0,h.jsx)(yw,{blok:n,showResultLabel:o})}),i.map((e,t)=>(0,h.jsx)(yk,{blok:n,locale:r,onRemove:t>0?()=>c(e.id):null,setShowResultLabel:0===t?s:null},e.id)),i.length<3&&(0,h.jsx)("div",{className:"flex justify-center mt-10 lg:mt-[86px]",children:(0,h.jsx)(pu,{variant:"secondary",className:"bg-slate-200 hover:bg-slate-200/60",onClick:()=>{i.length>=3||l(e=>[...e,{id:a.current++}])},children:null==n?void 0:n.AddButtonLabel})})]})})})},Hero:e=>{var t,n,r,i,l,a,o,s,c;let{blok:u,latestNews:d,inFocusNews:p,type:f,story:g,locale:v}=e;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("section",{id:"main",...(0,m.K1)(u),children:[(0,h.jsxs)("div",{className:"text-white bg-grey-900 ".concat(("Homepage_Layout"!==f||(null==u?void 0:u.Display_Breadcrumbs))&&("Section_Overview_Layout"!==f||(null==u?void 0:u.Display_Breadcrumbs))&&("Section_Content_Layout"!==f||(null==u?void 0:u.Display_Breadcrumbs))&&("Event_Detail_Layout"!==f||null==u||!u.Display_Breadcrumbs)?"md:aspect-[1440/400] w-full":"sm:aspect-[1440/600] w-full"," flex flex-wrap justify-center relative bg-no-repeat bg-center bg-cover"),children:[(null==u||null==(t=u.Full_Width_Image)?void 0:t.filename)?(0,h.jsxs)("picture",{className:"w-full h-full sm:absolute aspect-[2/1]",children:[(0,h.jsx)("source",{media:"(max-width: 767px)",srcSet:Z(null==u||null==(n=u.Full_Width_Image)?void 0:n.filename,1440,"107:75",null==u||null==(r=u.Full_Width_Image)?void 0:r.focus),sizes:"100vw"}),(0,h.jsx)("source",{media:"(min-width: 768px)",srcSet:Z(null==u||null==(i=u.Full_Width_Image)?void 0:i.filename,1800,"1440:600",null==u||null==(l=u.Full_Width_Image)?void 0:l.focus),sizes:"100vw"}),(0,h.jsx)(J,{className:"inset-0 w-full h-full object-cover sm:absolute",src:"".concat(null==u||null==(a=u.Full_Width_Image)?void 0:a.filename,"/m/6x0/"),alt:(null==u||null==(o=u.Full_Width_Image)?void 0:o.alt)||"".concat(null==u?void 0:u.Heading.replace(/\u2028/g,"")," Hero image")}),(0,h.jsx)("div",{className:"top-0 absolute w-full h-full bg-hero-gradient-mobile md:bg-hero-gradient hidden sm:block"})]}):void 0,(0,h.jsxs)(w.A,{as:"div",className:"md:flex-row z-0 flex flex-col justify-between",children:[(0,h.jsxs)("div",{className:"font-display md:space-y-8 flex flex-col justify-end flex-1 h-full py-12 ".concat("Homepage_Layout"===f?"md:justify-end lg:pb-28":(null==u?void 0:u.Display_Breadcrumbs)?"md:justify-start":"md:justify-center"),children:[(null==u?void 0:u.Display_Breadcrumbs)?(0,h.jsx)("nav",{className:"pb-12 hidden md:block font-body",children:(0,h.jsx)(oB,{breadcrumbs:g.breadcrumbs})}):void 0,u.Display_Event_Details?(0,h.jsx)(hn,{blok:u,story:g,locale:v}):(0,h.jsxs)("div",{className:"md:pr-12 space-y-6",children:[(null==u?void 0:u.Heading)?(0,h.jsx)("h1",{className:"text-7xl md:text-9xl md:w-[40rem]",children:null==u?void 0:u.Heading.replace(/\u2028/g,"")}):void 0,(0,h.jsx)(cf,{className:"text-white text-3xl md:w-1/2 prose-a:text-white prose-a:font-semibold hover:prose-a:underline ".concat("Homepage_Layout"===f?"md:w-[40rem]":"lg:w-[38%]"),children:null==u?void 0:u.Short_Blurb}),(null==u||null==(s=u.Link)?void 0:s.length)?(0,h.jsx)("ul",{className:"w-full lg:w-1/2 ".concat((null==u||null==(c=u.Link)?void 0:c.length)>1?"flex flex-col sm:flex-row justify-center space-y-4 sm:space-y-0 sm:space-x-12":""),children:null==u?void 0:u.Link.map(e=>{var t,n,r;return(0,h.jsx)("li",{children:(0,h.jsx)(n9,{className:"".concat((null==u||null==(t=u.Link)?void 0:t.length)>1?"w-full":""," py-3 px-6 inline-block bg-red-500 text-white hover:bg-red-700 active:bg-red-900 transition duration-150 ease-in-out"),href:G(null==e?void 0:e.Link),target:null==e||null==(n=e.Link)?void 0:n.target,children:null!=(r=null==e?void 0:e.Title)?r:""})},e._uid)})}):void 0]})]}),u.Display_Latest_News&&(null==d?void 0:d.length)?(0,h.jsx)(d8,{latestNewsHeading:u.Latest_News_Heading,inFocusNewsHeading:u.In_Focus_News_Heading,linkText:u.Latest_News_Link_Text,latestNewsArticles:d,inFocusNewsArticels:p,className:"lg:flex hidden ".concat("Homepage_Layout"===f?"lg:pb-28 lg:justify-end":""),locale:v}):void 0]})]}
28),u.Display_Latest_News&&((null==d?void 0:d.length)||(null==p?void 0:p.length))?(0,h.jsx)(d8,{latestNewsHeading:u.Latest_News_Heading,inFocusNewsHeading:u.In_Focus_News_Heading,latestNewsArticles:d,inFocusNewsArticels:p,linkText:u.Latest_News_Link_Text,className:"lg:hidden flex w-full text-white bg-red-900",locale:v}):void 0]}),u.Display_Search_Bar&&(null==g?void 0:g.slug)!=="search"?(0,h.jsx)(he,{type:f}):void 0]})},Image_CTA_Half_Panels:e=>{var t,n,r,i,l,a,o,s,c,u,d,p,f,g,v,y,x,b,j,S,k,C,N,E,P,T,O,R,L,I,A,M,F,D,H,B,$,z,V,W,U,q,Q,K,Y,X,ee,et,en;let{blok:er}=e,ei={green:{panel:"bg-green-500",panelHeading:"text-white",blurb:"text-white",cta:"bg-white hover:bg-green-100 active:bg-green-300",ctaText:"text-green-900 hover:text-green-700 active:text-green-900"},light_green:{panel:"bg-green-100",panelHeading:"text-green-900",blurb:"text-black",cta:"bg-green-500 hover:bg-green-700 active:bg-green-900",ctaText:"text-white"},grey:{panel:"",panelHeading:"text-green-500",blurb:"text-grey-500",cta:"bg-grey-100 hover:bg-grey-300 active:bg-grey-500",ctaText:"text-grey-500 hover:text-grey-700 active:text-grey-50"},light_blue:{panel:"bg-blue-100",panelHeading:"text-blue-900",blurb:"text-blue-900",cta:"bg-blue-500 hover:bg-blue-700 active:bg-blue-900",ctaText:"text-white"},red:{panel:"bg-transparent",panelHeading:"text-white",blurb:"text-white",cta:"bg-red-500 hover:bg-red-700 active:bg-red-900",ctaText:"text-white"}},el={Button:"button"},ea={Horizontal:"horizontal"},eo=(null==er||null==(t=er.Left_Background_Image)?void 0:t.filename)&&((null==er?void 0:er.Left_Title)||_(null==er?void 0:er.Left_Blurb)||(null==er||null==(n=er.Left_Link)?void 0:n.length)),es=(null==er||null==(r=er.Right_Background_Image)?void 0:r.filename)&&((null==er?void 0:er.Right_Title)||_(null==er?void 0:er.Right_Blurb)||(null==er||null==(i=er.Right_Link)?void 0:i.length));return(0,h.jsxs)("section",{className:"relative z-0",...(0,m.K1)(er),children:[(0,h.jsxs)("div",{className:"".concat(eo?"hidden md:flex":""," flex flex-col-reverse md:flex-row md:absolute w-full h-60 md:h-full inset-0 -z-10"),
28children:[(0,h.jsx)("div",{className:"w-full h-full relative ".concat(null==(l=ei[null==er?void 0:er.Left_Colour_Scheme])?void 0:l.panel),children:(null==er||null==(a=er.Left_Background_Image)?void 0:a.filename)?(0,h.jsxs)("picture",{className:"md:block md:absolute inset-0",children:[(0,h.jsx)(J,{loading:"lazy",sizes:"(max-width: 768px) 100vw, (max-width: 1280px) 50vw, 1280px",srcSet:Z(null==er||null==(o=er.Left_Background_Image)?void 0:o.filename,1280,0,null==er||null==(s=er.Left_Background_Image)?void 0:s.focus),src:"".concat(null==er||null==(c=er.Left_Background_Image)?void 0:c.filename,"/m/6x0/"),alt:(null==er||null==(u=er.Left_Background_Image)?void 0:u.alt)||"".concat((null==er?void 0:er.Left_Title)||""," Left Background Image"),className:"h-full w-full object-cover"}),(null==er?void 0:er.Left_Title)||_(null==er?void 0:er.Left_Blurb)||(null==er||null==(d=er.Left_Link)?void 0:d.length)?(0,h.jsx)("div",{className:"absolute inset-0 w-full h-full bg-black opacity-40"}):void 0]}):void 0}),(0,h.jsx)("div",{className:"w-full h-full relative ".concat(null==(p=ei[null==er?void 0:er.Right_Colour_Scheme])?void 0:p.panel),children:(null==er||null==(f=er.Right_Background_Image)?void 0:f.filename)?(0,h.jsxs)("picture",{className:"md:block md:absolute inset-0",children:[(0,h.jsx)(J,{loading:"lazy",sizes:"(max-width: 768px) 100vw, (max-width: 1280px) 50vw, 1280px",srcSet:Z(null==er||null==(g=er.Right_Background_Image)?void 0:g.filename,1280,0,null==er||null==(v=er.Right_Background_Image)?void 0:v.focus),src:"".concat(null==er||null==(y=er.Right_Background_Image)?void 0:y.filename,"/m/6x0/"),alt:(null==er||null==(x=er.Right_Background_Image)?void 0:x.alt)||"".concat((null==er?void 0:er.Right_Title)||""," Right Background Image"),className:"h-full w-full object-cover"}),(null==er?void 0:er.Right_Title)||_(null==er?void 0:er.Right_Blurb)||(null==er||null==(b=er.Right_Link)?void 0:b.length)?(0,h.jsx)("div",{className:"absolute inset-0 w-full h-full bg-black opacity-40"}):void 0]}):void 0})]}),(0,h.jsxs)(w.A,{as:"div",mobile:!eo&&!es,className:"flex flex-col md:flex-row w-full z-10 ".concat(null!=(en=null==(j=ei[null==er?void 0:er.Left_Colour_Scheme])?void 0:j.panel)?en:null==(S=ei[null==er?void 0:er.Right_Colour_Scheme])?void 0:S.panel," md:bg-transparent"),children:[(0,h.jsxs)("div",{className:"md:flex-1 ".concat(eo?"text-center md:text-left relative":""),children:[(null==er||null==(k=er.Left_Background_Image)?void 0:k.filename)&&eo?(0,h.jsxs)("picture",{className:"md:hidden absolute inset-0",children:[(0,h.jsx)(J,{loading:"lazy",srcSet:Z(null==er||null==(C=er.Left_Background_Image)?void 0:C.filename,1280,0,null==er||null==(N=er.Left_Background_Image)?void 0:N.focus),sizes:"(max-width: 768px) 100vw, (max-width: 1280px) 50vw, 1280px",src:"".concat(null==er||null==(E=er.Left_Background_Image)?void 0:E.filename,"/m/6x0/"),alt:(null==er||null==(P=er.Left_Background_Image)?void 0:P.alt)||"".concat((null==er?void 0:er.Left_Title)||""," Left Background Image"),className:"h-full w-full object-cover"}),(null==er?void 0:er.Left_Title)||_(null==er?void 0:er.Left_Blurb)||(null==er||null==(T=er.Left_Link)?void 0:T.length)?(0,h.jsx)("div",{className:"absolute inset-0 w-full h-full bg-black opacity-40"}):void 0]}):void 0,(null==er?void 0:er.Left_Title)||_(null==er?void 0:er.Left_Blurb)||(null==er||null==(O=er.Left_Link)?void 0:O.length)?(0,h.jsxs)("div",{className:"h-full space-y-12 py-12 md:py-24 ".concat(eo?"z-10 relative px-6 md:px-0 ":"md:pr-6"),children:[(null==er?void 0:er.Left_Title)?(0,h.jsx)("h2",{className:"text-6xl md:text-8xl font-display ".concat(null==(R=ei[null==er?void 0:er.Left_Colour_Scheme])?void 0:R.panelHeading),children:null==er?void 0:er.Left_Title}):void 0,(0,h.jsx)(cf,{className:"text-base md:w-4/5 font-body ".concat(null==(L=ei[null==er?void 0:er.Left_Colour_Scheme])?void 0:L.blurb),children:null==er?void 0:er.Left_Blurb}),(null==er||null==(I=er.Left_Link)?void 0:I.length)?(null==er||null==(A=er.Left_Link)?void 0:A.length)>1&&(null==er?void 0:er.Left_Multi_Link_Display)===el.Button&&(null==er?void 0:er.Left_Button_Stack)===ea.Horizontal?(0,h.jsx)("div",{className:"lg:w-1/2",children:!!(null==er||null==(M=er.Left_Link)?void 0:M.length)&&(null==er?void 0:er.Left_Link.map(e=>{var t,n,r,i;return(0,h.jsx)("span",{className:"group mr-4",children:(0,h.jsx)(n9,{href:G(null==e?void 0:e.Link),target:null==e||null==(t=e.Link)?void 0:t.target,className:"transition duration-150 ease-in-out ".concat("py-3 px-6 inline-block ".concat(null==(n=ei[null==er?void 0:er.Left_Colour_Scheme])?void 0:n.cta," ").concat(null==(r=ei[null==er?void 0:er.Left_Colour_Scheme])?void 0:r.ctaText," mb-4")),children:(0,h.jsx)("span",{className:null==(i=ei[null==er?void 0:er.Left_Colour_Scheme])?void 0:i.ctaText,children:null==e?void 0:e.Title})})},e._uid)}))}):(0,h.jsx)("ul",{className:"lg:w-1/2 ".concat((null==er||null==(F=er.Left_Link)?void 0:F.length)>1&&(null==er?void 0:er.Left_Multi_Link_Display)!==el.Button?"border-t border-b border-grey-100 divide-y divide-grey-100":""),children:!!(null==er||null==(D=er.Left_Link)?void 0:D.length)&&(null==er?void 0:er.Left_Link.map(e=>{var t,n,r,i,l,a,o,s;return(0,h.jsx)("li",{className:"group",children:(0,h.jsxs)(n9,{href:G(null==e?void 0:e.Link),target:null==e||null==(t=e.Link)?void 0:t.target,className:"transition duration-150 ease-in-out ".concat((null==er||null==(n=er.Left_Link)?void 0:n.length)>1&&(null==er?void 0:er.Left_Multi_Link_Display)!==el.Button?"py-3 flex items-center justify-between pr-2 text-base font-body text-green-500 group-hover:text-red-500 group-active:text-red-700":"py-3 px-6 inline-block ".concat(null==(r=ei[null==er?void 0:er.Left_Colour_Scheme])?void 0:r.cta," ").concat(null==(i=ei[null==er?void 0:er.Left_Colour_Scheme])?void 0:i.ctaText," ").concat((null==er||null==(l=er.Left_Link)?void 0:l.length)>1&&(null==er?void 0:er.Left_Multi_Link_Display)===el.Button?"mb-4":"")),children:[(0,h.jsx)("span",{className:(null==er||null==(a=er.Left_Link)?void 0:a.length)>1&&(null==er?void 0:er.Left_Multi_Link_Display)!==el.Button?"":null==(o=ei[null==er?void 0:er.Left_Colour_Scheme])?void 0:o.ctaText,children:null==e?void 0:e.Title}),(0,h.jsx)("svg",{className:"".concat((null==er||null==(s=er.Left_Link)?void 0:s.length)>1&&(null==er?void 0:er.Left_Multi_Link_Display)!==el.Button?"block":"hidden"," flex-shrink-0"),width:"8",he
28ight:"12",viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M1.70492 0L0.294922 1.41L4.87492 6L0.294922 10.59L1.70492 12L7.70492 6L1.70492 0Z",fill:"currentColor"})})]})},e._uid)}))}):void 0]}):void 0]}),(0,h.jsxs)("div",{className:"md:flex-1 ".concat(es?"text-center md:text-left relative":""),children:[(null==er||null==(H=er.Right_Background_Image)?void 0:H.filename)&&es?(0,h.jsxs)("picture",{className:"md:hidden absolute inset-0",children:[(0,h.jsx)(J,{loading:"lazy",srcSet:Z(null==er||null==(B=er.Right_Background_Image)?void 0:B.filename,1280,0,null==er||null==($=er.Right_Background_Image)?void 0:$.focus),sizes:"(max-width: 768px) 100vw, (max-width: 1280px) 50vw, 1280px",src:"".concat(null==er||null==(z=er.Right_Background_Image)?void 0:z.filename,"/m/6x0/"),alt:(null==er||null==(V=er.Right_Background_Image)?void 0:V.alt)||"".concat((null==er?void 0:er.Right_Title)||""," Right Background Image"),className:"h-full w-full object-cover"}),(null==er?void 0:er.Right_Title)||_(null==er?void 0:er.Right_Blurb)||(null==er||null==(W=er.Right_Link)?void 0:W.length)?(0,h.jsx)("div",{className:"absolute inset-0 w-full h-full bg-black opacity-40"}):void 0]}):void 0,(null==er?void 0:er.Right_Title)||_(null==er?void 0:er.Right_Blurb)||(null==er||null==(U=er.Right_Link)?void 0:U.length)?(0,h.jsxs)("div",{className:"h-full space-y-12 py-12 md:py-24 md:pl-6 xl:pl-20 ".concat(es?"z-10 relative px-6 md:px-0":""),children:[(null==er?void 0:er.Right_Title)?(0,h.jsx)("h2",{className:"text-6xl md:text-8xl font-display ".concat(null==(q=ei[null==er?void 0:er.Right_Colour_Scheme])?void 0:q.panelHeading),children:null==er?void 0:er.Right_Title}):void 0,(0,h.jsx)(cf,{className:"text-base md:w-4/5 font-body ".concat(null==(Q=ei[null==er?void 0:er.Right_Colour_Scheme])?void 0:Q.blurb),children:null==er?void 0:er.Right_Blurb}),(null==er||null==(K=er.Right_Link)?void 0:K.length)?(null==er||null==(Y=er.Right_Link)?void 0:Y.length)>1&&(null==er?void 0:er.Right_Multi_Link_Display)===el.Button&&(null==er?void 0:er.Right_Button_Stack)===ea.Horizontal?(0,h.jsx)("div",{className:"lg:w-1/2",children:!!(null==er||null==(X=er.Right_Link)?void 0:X.length)&&(null==er?void 0:er.Right_Link.map(e=>{var t,n,r,i;return(0,h.jsx)("span",{className:"group mr-4",children:(0,h.jsx)(n9,{href:G(null==e?void 0:e.Link),target:null==e||null==(t=e.Link)?void 0:t.target,className:"transition duration-150 ease-in-out ".concat("py-3 px-6 inline-block ".concat(null==(n=ei[null==er?void 0:er.Right_Colour_Scheme])?void 0:n.cta," ").concat(null==(r=ei[null==er?void 0:er.Right_Colour_Scheme])?void 0:r.ctaText," mb-4")),children:(0,h.jsx)("span",{className:null==(i=ei[null==er?void 0:er.Left_Colour_Scheme])?void 0:i.ctaText,children:null==e?void 0:e.Title})})},e._uid)}))}):(0,h.jsx)("ul",{className:"lg:w-1/2 ".concat((null==er||null==(ee=er.Right_Link)?void 0:ee.length)>1&&(null==er?void 0:er.Right_Multi_Link_Display)!==el.Button?"border-t border-b border-grey-100 divide-y divide-grey-100":""),children:!!(null==er||null==(et=er.Right_Link)?void 0:et.length)&&(null==er?void 0:er.Right_Link.map(e=>{var t,n,r,i,l,a,o,s;return(0,h.jsx)("li",{className:"group",children:(0,h.jsxs)(n9,{href:G(null==e?void 0:e.Link),target:null==e||null==(t=e.Link)?void 0:t.target,className:"transition duration-150 ease-in-out ".concat((null==er||null==(n=er.Right_Link)?void 0:n.length)>1&&(null==er?void 0:er.Right_Multi_Link_Display)!==el.Button?"py-3 flex items-center justify-between pr-2 text-base font-body text-green-500 group-hover:text-red-500 group-active:text-red-700":"py-3 px-6 inline-block ".concat(null==(r=ei[null==er?void 0:er.Right_Colour_Scheme])?void 0:r.cta," ").concat(null==(i=ei[null==er?void 0:er.Right_Colour_Scheme])?void 0:i.ctaText).concat((null==er||null==(l=er.Right_Link)?void 0:l.length)>1&&(null==er?void 0:er.Right_Multi_Link_Display)===el.Button?"mb-4":"")),children:[(0,h.jsx)("span",{className:(null==er||null==(a=er.Right_Link)?void 0:a.length)>1&&(null==er?void 0:er.Right_Multi_Link_Display)!==el.Button?"":null==(o=ei[null==er?void 0:er.Right_Colour_Scheme])?void 0:o.ctaText,children:null==e?void 0:e.Title}),(0,h.jsx)("svg",{className:"".concat((null==er||null==(s=er.Right_Link)?void 0:s.length)>1&&(null==er?void 0:er.Right_Multi_Link_Display)!==el.Button?"block":"hidden"," flex-shrink-0"),width:"8",he
28ight:"12",viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M1.70492 0L0.294922 1.41L4.87492 6L0.294922 10.59L1.70492 12L7.70492 6L1.70492 0Z",fill:"currentColor"})})]})},e._uid)}))}):void 0]}):void 0]})]})]})},Intro:e=>{var t,n,r,i,l,a,o,s;let{blok:c,story:u,type:d,index:f,className:g}=e;return(0,h.jsx)("section",{className:"intro ".concat(null!=(s=hr[null==c?void 0:c.Background_Colour])?s:"bg-grey-50"," py-12 ").concat("Careers_Overview_Layout"===d?"md:pt-24 odd:md:py-12":f>1?"pt-0 md:pt-0":"md:py-24"),...(0,m.K1)(c),children:(0,h.jsxs)(w.A,{as:"div",className:"flex flex-col gap-6 md:gap-12",children:[(null==c||null==(t=c.Anchor_Nav)?void 0:t.length)?(0,h.jsx)("ul",{className:"flex overflow-x-hidden flex-wrap list-none text-xs text-red-500 font-semibold",children:null==c||null==(n=c.Anchor_Nav)?void 0:n.map(e=>{var t,n;return(0,h.jsx)("li",{className:"list-none py-1 mr-6 hover:underline active:underline hover:text-red-700 active:text-red-900 transition duration-150 ease-in-out relative after:top-0 after:-ml-3 after:block after:bg-grey-300 after:absolute after:h-full after:w-px",children:(0,h.jsx)(n9,{onClick:e=>Y(e,{offset:100}),href:(null==e||null==(t=e.Link)?void 0:t.url)?G(null==e?void 0:e.Link):"#".concat(oW(e.Title)),target:null==e||null==(n=e.Link)?void 0:n.target,children:e.Title})},e._uid)})}):void 0,(0,h.jsxs)("div",{className:"flex flex-col md:flex-row gap-12",children:[(0,h.jsxs)("div",{className:"w-full ".concat(g," ").concat(c.Half_Width_Sidebar?"md:w-1/2":"md:w-2/3"," space-y-12"),children:[(null==c?void 0:c.Heading)?(0,h.jsx)(uT,{id:(null==c?void 0:c.Anchor_Nav.map(e=>e.Title).includes(null==c?void 0:c.Heading))?oW(null==c?void 0:c.Heading):void 0,index:f,className:(null==u||null==(l=u.content)||null==(i=l.Intro)||null==(r=i[0])?void 0:r._uid)===c._uid?"text-red-500 text-6xl md:text-8xl font-display":"text-red-500 text-5xl md:text-6xl font-extrabold font-display",children:null==c?void 0:c.Heading}):void 0,_(c.Content_Body)?(0,h.jsx)("div",{className:"".concat(c.Half_Width_Sidebar?"text-base":"text-lg md:text-xl"," prose text-grey-500 prose-a:text-red-500 prose-a:no-underline hover:prose-a:underline hover:prose-a:text-red-700 active:prose-a:text-red-900 prose-p:text-base prose-p:font-body prose-p:text-grey-500 prose-blockquote:my-12 prose-blockquote:border-teal-300 prose-blockquote:pl-6 prose-blockquote:lg:pl-12 prose-ul:text-base prose-ul:space-y-6 prose-ul:mt-6 prose-headings:text-red-500 prose-h2:text-6xl prose-h2:md:text-8xl prose-h2:font-medium prose-h2:font-display prose-h5:text-lg prose-h5:md:text-xl prose-h5:pb-7 prose-li:my-0 prose-li:marker:text-red-500 max-w-full"),children:z(c.Content_Body,{markResolvers:{link:X},nodeResolvers:{...er,[A]:(e,t)=>{var n;let{level:r}=t,i="h".concat(r);if(!Array.isArray(e)||null==(n=e[0].props)||!n.children)return(0,h.jsx)(i,{id:oW(null==e?void 0:e.toString()),children:e});{let t=e[0].props.children;return(0,h.jsx)(i,{id:oW(t),children:e})}}},textResolver:e=>/\^(.*?)\^/.test(e)?e.split(/\^(.*?)\^/).map((e,t)=>t%2==0?e:(0,h.jsx)("sup",{children:e},t)):e,defaultBlokResolver:(e,t)=>{let n={...t,component:e};return(0,h.jsx)(m.Dp,{blok:n,type:"Intro"},t._uid)}})}):void 0,null==c||null==(a=c.Content_Blocks)?void 0:a.map(e=>(0,p.createElement)(m.Dp,{blok:e,type:c.component,key:e._uid}))]},c._uid),(0,h.jsx)("div",{className:"w-full ".concat(c.Half_Width_Sidebar?"md:w-1/2":"md:w-1/3"),children:null==c||null==(o=c.Sidebar_Blocks)?void 0:o.map(e=>(0,p.createElement)(m.Dp,{blok:e,type:c.component,key:e._uid}))})]})]})})},Featured_Event:e=>{var t,n,r,i,l,a,o,s,c;let{blok:u,index:d}=e,p={blue:{background:"bg-blue-500",buttonTitle:"text-blue-500 hover:bg-blue-100 hover:text-blue-700 active:bg-blue-300 active:text-blue-900"}};return(0,h.jsx)("div",{id:oW(null==u?void 0:u.Title),className:"bg-grey-50",...(0,m.K1)(u),children:(0,h.jsx)(w.A,{children:(0,h.jsxs)("div",{className:"md:flex text-white py-12 ".concat((null==u?void 0:u.Align_With_Sidebar)?"md:w-2/3 md:pr-8":""),children:[(0,h.jsx)("div",{className:"md:order-last flex-1",children:(0,h.jsxs)("picture",{className:"flex w-full h-full aspect-video md:aspect-auto",children:[(0,h.jsx)("source",{media:"(max-width: 767px)",srcSet:Z(null==u||null==(t=u.Image)?void 0:t.filename,620,"16:9",null==u||null==(n=u.Image)?void 0:n.focus),sizes:"100vw"}),(0,h.jsx)("source",{media:"(min-width: 768px)",srcSet:Z(null==u||null==(r=u.Image)?void 0:r.filename,620,"620:211",null==u||null==(i=u.Image)?void 0:i.focus),sizes:"100vw"}),(0,h.jsx)(J,{loading:"lazy",src:"".concat(null==u||null==(l=u.Image)?void 0:l.filename,"/m/6x0/"),alt:(null==u||null==(a=u.Image)?void 0:a.alt)||"Featured Event Image",className:"w-full h-full object-cover"})]})}),(0,h.jsxs)("div",{className:"flex-1 flex flex-col items-center justify-center text-center ".concat(null==(o=p[null==u?void 0:u.Colour_Scheme])?void 0:o.background," py-8 px-4 md:p-8"),children:[(0,h.jsx)("h2",{className:"mb-6 uppercase",children:null==u?void 0:u.Sub_Title}),(0,h.jsx)("h3",{className:"text-6xl md:text-8xl font-display mb-8",children:null==u?void 0:u.Title}),(0,h.jsx)(cf,{className:"text-lg md:text-xl mb-6 text-white",children:null==u?void 0:u.Blurb}),(0,h.jsx)(n9,{className:"bg-white transition duration-150 ease-in-out ".concat(null==(s=p[null==u?void 0:u.Colour_Scheme])?void 0:s.buttonTitle," font-body py-3 px-6 inline-block"),href:G(null==u?void 0:u.Event_Link),target:null==u||null==(c=u.Event_Link)?void 0:c.target,children:"See event details"})]})]})})})},Grid_Panels:e=>{let{blok:t}=e;return(0,h.jsx)("ul",{className:"flex flex-col space-y-12 md:space-y-0 md:flex-row md:space-x-12 md:pt-12",...(0,m.K1)(t),
28children:null==t?void 0:t.Panels.map(e=>(0,h.jsx)(m.Dp,{blok:e},e._uid))})},Find_It_Quickly:(e,t)=>{let{blok:n}=e;return(0,h.jsx)("section",{id:oW(null==n?void 0:n.Title),className:"".concat(d4[null==n?void 0:n.Background_Colour].layout),...(0,m.K1)(n),children:(0,h.jsx)(w.A,{as:"div",className:"py-6 pb-12 md:py-24 md:pb-48",children:(0,h.jsxs)("div",{className:"space-y-6 md:space-y-12 ".concat((null==n?void 0:n.Align_With_Sidebar)?"md:w-2/3 md:pr-8":""),children:[(0,h.jsx)(uT,{index:t,className:"text-6xl md:text-8xl font-normal font-display ".concat(d4[null==n?void 0:n.Background_Colour].heading),children:n.Title}),(0,h.jsx)("ul",{className:"grid grid-cols-2 gap-6 md:gap-3 justify-items-center justify-between text-white text-center ".concat((null==n?void 0:n.Align_With_Sidebar)?"xl:flex w-full lg:w-4/5 xl:w-full":"lg:gap-0 lg:px-20 md:flex"),children:n.Cards.map(e=>(0,h.jsx)(m.Dp,{blok:e},e._uid))})]})})})},Large_CTA:e=>{var t,n,r,i,l,a,o,s,c,u,d,p;let{blok:f}=e,g={green:{background:"bg-green-500",heading:"text-white",blurb:"text-white prose-a:text-white prose-a:font-semibold hover:prose-a:underline",cta:"bg-white hover:bg-green-100 active:bg-green-300",ctaText:"text-green-900 hover:text-green-700 active:text-green-900"},blue:{background:"bg-blue-500",heading:"text-white",blurb:"text-white prose-a:text-white prose-a:font-semibold hover:prose-a:underline",cta:"bg-white hover:bg-blue-100 active:bg-blue-300",ctaText:"text-blue-500 hover:text-blue-700 active:text-blue-900"},red:{background:"bg-transparent",heading:"text-white",blurb:"text-white",cta:"bg-red-500 hover:bg-red-700 active:bg-red-900",ctaText:"text-white"}};return(0,h.jsxs)("section",{id:oW(null==f?void 0:f.Title),className:"relative ".concat(null==(t=g[null==f?void 0:f.Colour_Scheme])?void 0:t.background),...(0,m.K1)(f),children:[(null==f||null==(n=f.Background_Image)?void 0:n.filename)?(0,h.jsxs)("picture",{className:"aspect-[1440/500] absolute h-full w-full",children:[(0,h.jsx)("source",{media:"(max-width: 767px)",srcSet:Z(null==f||null==(r=f.Background_Image)?void 0:r.filename,1440,"107:75",null==f||null==(i=f.Background_Image)?void 0:i.focus),sizes:"100vw"}),(0,h.jsx)("source",{media:"(min-width: 768px)",srcSet:Z(null==f||null==(l=f.Background_Image)?void 0:l.filename,1440,"1440:500",null==f||null==(a=f.Background_Image)?void 0:a.focus),sizes:"100vw"}),(0,h.jsx)(J,{loading:"lazy",src:"".concat(null==f||null==(o=f.Background_Image)?void 0:o.filename,"/m/6x0/"),alt:(null==f||null==(s=f.Background_Image)?void 0:s.alt)||"".concat((null==f?void 0:f.Title)||""," Large CTA Image"),className:"inset-0 w-full h-full object-cover"}),(0,h.jsx)("div",{className:"absolute inset-0 w-full h-full bg-black opacity-50"})]}):void 0,(0,h.jsxs)(w.A,{as:"div",className:"px-6 py-12 md:py-24 flex flex-col items-center text-center space-y-12 relative z-10",children:[(null==f?void 0:f.Title)?(0,h.jsx)("h2",{className:"text-6xl md:w-1/2 md:text-8xl ".concat(null==(c=g[null==f?void 0:f.Colour_Scheme])?void 0:c.heading),children:null==f?void 0:f.Title}):void 0,(0,h.jsx)(cf,{className:"md:w-4/5 lg:w-2/5 text-base ".concat(null==(u=g[null==f?void 0:f.Colour_Scheme])?void 0:u.blurb),children:null==f?void 0:f.Blurb}),(null==f||null==(d=f.Link)?void 0:d.length)?(0,h.jsx)("ul",{className:"w-full lg:w-1/2 ".concat((null==f||null==(p=f.Link)?void 0:p.length)>1?"flex flex-col sm:flex-row justify-center space-y-4 sm:space-y-0 sm:space-x-12":""),children:null==f?void 0:f.Link.map(e=>{var t,n,r,i,l;return(0,h.jsx)("li",{children:(0,h.jsx)(n9,{className:"".concat((null==f||null==(t=f.Link)?void 0:t.length)>1?"w-full":""," py-3 px-6 transition duration-150 ease-in-out inline-block ").concat(null==(n=g[null==f?void 0:f.Colour_Scheme])?void 0:n.cta," ").concat(null==(r=g[null==f?void 0:f.Colour_Scheme])?void 0:r.ctaText),href:G(null==e?void 0:e.Link),target:null==e||null==(i=e.Link)?void 0:i.target,children:null!=(l=null==e?void 0:e.Title)?l:""})},e._uid)})}):void 0]})]})},News_Article:e=>{let{index:t,blok:n}=e;return(0,h.jsx)(h.Fragment,{})},Person_Cards:e=>{var t;let{blok:n}=e;return(0,h.jsx)("section",{...(0,m.K1)(n),children:(0,h.jsx)(w.A,{className:"py-24",children:(0,h.jsx)("ul",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6 lg:gap-12",children:null==n||null==(t=n.People_Entries)?void 0:t.filter(e=>(null==e?void 0:e.content)&&"object"==typeof e.content&&e.content._uid&&e.content.Name).map(e=>(0,h.jsx)(hi,{blok:e.content},e.content._uid))})})})},Pillar_Section:e=>{var t,n,r,i,l,a,o,s,c,u,d;let{index:f,blok:g,locale:v}=e,[x,b]=(0,p.useState)(v||"en"),{t:j}=(0,y.Bd)("datasources"),S=(null==g?void 0:g.Category)?j("categories.".concat(g.Category),g.Category):"";(0,p.useEffect)(()=>{v||b(C())},[v]);let k={blue:{panel:"bg-blue-500",panelText:"text-white",cta:"bg-blue-100",ctaText:"text-blue-900"},green:{panel:"bg-green-500",panelText:"text-white",cta:"bg-green-100",ctaText:"text-green-900"},teal:{panel:"bg-teal-300",panelText:"text-teal-900",cta:"bg-teal-100",ctaText:"text-teal-900"},sage:{panel:"bg-sage-500",panelText:"text-sage-900",cta:"bg-sage-100",ctaText:"text-sage-900"}},_={left:{panel:"md:justify-end",image:"md:left-0"},right:{panel:"md:justify-start",image:"md:right-0"}};return(0,h.jsx)("section",{id:oW(null==g?void 0:g.Title),className:"".concat(null==(t=k[null==g?void 0:g.Color_Scheme])?void 0:t.panel," md:bg-transparent"),...(0,m.K1)(g),children:(0,h.jsxs)(w.A,{as:"div",mobile:!1,className:"md:my-24 z-0",children:[(0,h.jsxs)("div",{className:"md:relative flex flex-col-reverse md:flex-row flex-wrap -z-10 ".concat(null==(n=_[null==g?void 0:g.Layout])?void 0:n.panel),children:[(0,h.jsxs)("div",{className:"".concat(null==(r=k[null==g?void 0:g.Color_Scheme])?void 0:r.panel," ").concat(null==(i=k[null==g?void 0:g.Color_Scheme])?void 0:i.panelText," w-full md:w-1/2 p-6 md:p-12 md:pb-12 md:mt-9 md:mb-9"),children:[(0,h.jsx)("p",{className:"text-2xl uppercase font-display pb-1",children:S||(null==g?void 0:g.Category)}),(0,h.jsx)(uT,{index:f,className:"text-6xl md:text-8xl font-display",children:null==g?void 0:g.Heading}),(0,h.jsx)(cf,{className:"pt-6 md:py-12 md:pb-14 text-base ".concat(null==(l=k[null==g?void 0:g.Color_Scheme])?void 0:l.panelText),children:null==g?void 0:g.Blurb})]}),(0,h.jsx)("picture",{className:"".concat(null==(a=_[null==g?void 0:g.Layout])?void 0:a.image," py-0 w-full md:absolute md:top-1/2 md:transform md:-translate-y-1/2 md:w-7/12 bg-grey-50 block h-full md:-z-10"),children:(0,h.jsx)(J,{loading:"lazy",sizes:"(max-width: 767px) 100v
28w, (max-width: 1280px) calc(50vw-1.5rem), 767px",srcSet:Z(null==g||null==(o=g.Image)?void 0:o.filename,767,0,null==g||null==(s=g.Image)?void 0:s.focus),src:"".concat(null==g||null==(c=g.Image)?void 0:c.filename,"/m/6x0/"),alt:(null==g||null==(u=g.Image)?void 0:u.alt)||"".concat((null==g?void 0:g.Heading)||""," Pillar Image"),className:"h-full w-full object-cover"})})]}),(null==g||null==(d=g.Links)?void 0:d.length)?(0,h.jsx)("ul",{className:"pb-6 md:pb-0 px-6 mx-auto flex flex-col md:flex-row gap-6 md:gap-12 md:-mt-24 justify-center",children:null==g?void 0:g.Links.map(e=>{var t;return(0,h.jsx)("li",{className:" transition duration-150 ease-in-out hover:bg-red-500 hover:text-white active:bg-red-700 ".concat(k[null==g?void 0:g.Color_Scheme].cta," ").concat(k[null==g?void 0:g.Color_Scheme].ctaText," md:w-64 md:h-36 p-0 text-3xl font-display"),children:(0,h.jsxs)(n9,{href:G(null==e?void 0:e.Link),target:null==e||null==(t=e.Link)?void 0:t.target,className:"px-3 py-4 md:p-6 w-full h-full flex",children:[(0,h.jsx)("span",{className:"text-3xl w-full",children:null==e?void 0:e.Title}),(0,h.jsx)("svg",{className:"place-self-center md:place-self-end w-6 h-3",viewBox:"0 0 22 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M16.3467 4.66669H0.333374V7.33335H16.3467V11.3334L21.6667 6.00002L16.3467 0.666687V4.66669Z",fill:"currentColor"})})]})},e._uid)})}):void 0]})})},Section_Navigator:e=>{var t,n,r,i,l,a,o,s,c,u,d,p,f;let{blok:g,index:v,story:x}=e,{t:b,i18n:j}=(0,y.Bd)("common"),S=null==g||null==(n=g.Parent_Section)||null==(t=n.translated_slugs)?void 0:t.find(e=>e.lang===j.language),k=(null==S?void 0:S.name)||(null==g||null==(r=g.Parent_Section)?void 0:r.name),_=(null==S?void 0:S.path)||(null==g||null==(i=g.Parent_Section)?void 0:i.full_slug),C=null==x||null==(l=x.translated_slugs)?void 0:l.find(e=>e.lang===j.language);(null==C?void 0:C.name)||null==x||x.name;let N=(null==C?void 0:C.path)||(null==x?void 0:x.full_slug);return(0,h.jsxs)("section",{className:null!=(f=hl(g.Background_Colour).background)?f:"bg-white",...(0,m.K1)(g),children:[(null==g||null==(a=g.Feature_Image)?void 0:a.filename)?(0,h.jsxs)("picture",{className:"h-full w-full",children:[(0,h.jsx)("source",{media:"(max-width: 767px)",srcSet:Z(null==g||null==(o=g.Feature_Image)?void 0:o.filename,1440,"16:9",null==g||null==(s=g.Feature_Image)?void 0:s.focus),sizes:"100vw"}),(0,h.jsx)("source",{media:"(min-width: 768px)",srcSet:Z(null==g||null==(c=g.Feature_Image)?void 0:c.filename,1440,"1440:400",null==g||null==(u=g.Feature_Image)?void 0:u.focus),sizes:"100vw"}),(0,h.jsx)(J,{loading:"lazy",src:"".concat(null==g||null==(d=g.Feature_Image)?void 0:d.filename,"/m/6x0/"),alt:(null==g||null==(p=g.Feature_Image)?void 0:p.alt)||b("components.Section_Navigator.image.alt",{title:(null==g?void 0:g.Title)||""}),className:"w-full h-full object-cover"})]}):void 0,(0,h.jsxs)(w.A,{as:"div",className:"py-12 md:pb-24 md:pt-12 space-y-12 md:space-y-24",children:[(0,h.jsxs)("div",{className:"flex flex-col md:flex-row gap-6 md:gap-12 items-start",children:[(null==g?void 0:g.Title)?(0,h.jsx)("div",{className:"md:w-1/2",children:"Section_Content_Layout"===x.content.component?(0,h.jsx)("h2",{index:v,className:"text-6xl md:text-8xl font-display text-red-500",children:g.Title}):(0,h.jsxs)("h3",{index:v,className:"text-5xl md:text-6xl font-extrabold font-display text-red-500",children:[g.Title," "]})}):void 0,(0,h.jsxs)("div",{className:"md:w-1/2 space-y-4 ".concat(_&&x.full_slug!==_?"":"text-lg md:text-xl"),children:[(0,h.jsx)(cf,{className:"text-grey-500 text-base",children:g.Blurb}),_&&k&&N!==_?(0,h.jsxs)(n9,{className:"text-red-500 text-base hover:text-red-700 hover:underline active:underline active:text-red-900 inline-block transition duration-150 ease-in-out",href:null!=_?_:"./",children:[b("components.Section_Navigator.links.view_all_topics",{section:k}),(0,h.jsx)("span",{className:"arrow"})]}):void 0]})]}),(0,h.jsx)("ul",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6 md:gap-12",children:(()=>{var e,t,n;let r=[];return(null==g?void 0:g.Section_Links)&&g.Section_Links.length>0?r=g.Section_Links.map(e=>{var t,n;return{key:e._uid,title:e.Title,href:(null==(t=e.Link)?void 0:t.cached_url)||(null==(n=e.Link)?void 0:n.url)||""}}):(null==x?void 0:x.sectionChildren)&&(null==g||null==(e=g.Parent_Section)?void 0:e.uuid)&&(r=(null==(n=x.sectionChildren[g.Parent_Section.uuid])||null==(t=n.filter(e=>e.real_path!==g.Parent_Section.full_slug))?void 0:t.map(e=>({key:e.id,title:e.name,href:e.real_path||""})))||[]),r.map(e=>{var t;return(0,h.jsx)("li",{className:"h-min",children:(0,h.jsxs)(n9,{href:e.href,className:"group flex w-full justify-between items-center space-x-4 ".concat(null!=(t=hl(g.Backgroun
28d_Colour).list)?t:"bg-grey-100"," transition duration-150 ease-in-out hover:bg-red-500 active:bg-red-700 py-4 pl-3 md:pl-6 pr-6 md:pr-8"),children:[(0,h.jsx)("span",{className:"group-hover:text-white transition duration-150 ease-in-out text-grey-500 font-semibold",children:e.title}),(0,h.jsx)(u0.c,{className:"w-3 h-6 transition duration-150 ease-in-out group-hover:text-white text-red-500"})]})},e.key)})})()})]})]})},Sponsors:e=>{var t,n;let{blok:r,index:i,type:l}=e;return(0,h.jsx)("div",{id:oW(null==r?void 0:r.Title),className:"w-full ".concat(null==(t=({grey:{background:"bg-grey-50",itemTitle:"text-grey-500"}})[null==r?void 0:r.Color_Scheme])?void 0:t.background),...(0,m.K1)(r),children:(0,h.jsx)(w.A,{className:"py-4 md:py-8",mobile:"Intro"!==l&&"News_Article_Layout"!==l,tablet:"Intro"!==l&&"News_Article_Layout"!==l,desktop:"Intro"!==l&&"News_Article_Layout"!==l,children:(0,h.jsxs)("div",{className:"space-y-0.5 ".concat((null==r?void 0:r.Align_With_Sidebar)?"md:w-2/3 md:pr-8":""),children:[(0,h.jsx)(uT,{index:i,className:"invisible",children:"Sponsors"}),(null==r?void 0:r.Title)?(0,h.jsx)(uT,{index:i,className:"text-6xl font-normal text-red-500 md:text-7xl text-center pb-16 font-display",children:null==r?void 0:r.Title}):void 0,[...null!=(n=r.Sponsors_Tier)?n:[]].map(e=>(0,p.createElement)(hm,{blok:e,index:i,type:l,key:e._uid}))]})})})},Spotlight:e=>{var t;let{blok:n,index:r,search:i,locale:l}=e,[a,o]=(0,p.useState)(l||"en"),{t:s}=(0,y.Bd)("datasources");(0,p.useEffect)(()=>{l?o(l):o(C())},[l]);let c=e=>{let{categorySlug:t,currentLocale:n}=e;return s("news-categories.".concat(t),t)},u=e=>{let{categories:t,fallbackName:n,translatedSlugs:r,currentLocale:i}=e;if(!t||!Array.isArray(t)||0===t.length){let e=null==r?void 0:r.find(e=>e.lang===i);return(null==e?void 0:e.name)||n||null}return t.map((e,n)=>(0,h.jsxs)("span",{children:[(0,h.jsx)(c,{categorySlug:e,currentLocale:i}),n<t.length-1?", ":""]},"".concat(e,"-").concat(n)))},d=(e,t)=>{var n,r,i,l,a,o,s,c,u;return(null==e||null==(r=e.content)||null==(n=r.Image)?void 0:n.filename)?null==e||null==(o=e.content)||null==(a=o.Image)?void 0:a.filename:(null==e||null==(l=e.content)||null==(i=l.Hero)?void 0:i[0].Full_Width_Image.filename)?null==e||null==(u=e.content)||null==(c=u.Hero)||null==(s=c[0])?void 0:s.Full_Width_Image.filename:k(e,t)};return(0,h.jsx)("section",{id:oW(null==n?void 0:n.Title),className:"bg-grey-50",...(0,m.K1)(n),children:(0,h.jsxs)(w.A,{as:"div",className:"py-12 ".concat(i?"lg:py-24":void 0),children:[(0,h.jsx)(uT,{index:r,className:"text-red-500 text-6xl md:text-8xl font-medium pb-6 lg:pb-12 font-display",children:null==n?void 0:n.Heading}),(0,h.jsx)("ul",{className:"grid grid-cols-1 md:grid-cols-4 gap-6 lg:gap-12",children:null==n||null==(t=n.News_Articles)?void 0:t.map((e,t)=>{var n,r,i,l,o,s,c,p,f,m,g,v,y,x,b,w,j,S,k;return(0,h.jsx)("li",{className:0===t?"md:col-span-2 md:row-span-2":"",children:(0,h.jsxs)(n9,{href:null!=(j=null==e?void 0:e.full_slug)?j:"",className:"group hover:drop-shadow-mobile active:drop-shadow-active-mobile  md:hover:drop-shadow-desktop md:active:drop-shadow-active-desktop transition-all duration-150 ease-in-out bg-white md:h-full ".concat(0===t?"flex flex-col":"flex flex-row md:flex-col"),children:[(0,h.jsx)("picture",{className:"bg-grey-300 ".concat(0===t?"h-full aspect-video w-full":"w-5/12 aspect-square md:w-full md:aspect-video"),children:d(e,t)?0===t?(0,h.jsxs)("picture",{className:"w-full h-full",children:[(0,h.jsx)("source",{media:"(max-width: 767px)",srcSet:Z(d(e,t),767,"16:9"),sizes:"(max-width: 768px) 100vw, 767px"}),(0,h.jsx)("source",{media:"(min-width: 768px)",srcSet:Z(d(e,t),616,"568:380"),sizes:"(max-width: 1280px) calc(50vw-1.5rem), 616px"}),(0,h.jsx)(J,{loading:"lazy",src:"".concat(d(e,t),"/m/6x0/"),alt:null!=(S=null==e?void 0:e.Heading)?S:"".concat((null==e||null==(n=e.content)?void 0:n.Succinct_Title)||(null==e||null==(r=e.content)?void 0:r.Title)||(null==e?void 0:e.name)," Article Image"),"data-src":d(e,t),className:"w-full h-full object-cover aspect-video"})]}):(0,h.jsxs)("picture",{className:"w-full h-full",children:[(0,h.jsx)("source",{media:"(max-width: 767px)",srcSet:Z(d(e,t),300,"1:1"),sizes:"(max-width: 768px) 33vw, (max-width: 1280px) calc(25vw-3rem), 300px"}),(0,h.jsx)("source",{media:"(min-width: 768px)",srcSet:Z(d(e,t),284,"16:9"),sizes:"(max-width: 1280px) calc(25vw-3rem), 284px"}),(0,h.jsx)(J,{loading:"lazy",src:"".concat(d(e,t),"/m/6x0/"),alt:null!=(k=null==e?void 0:e.Heading)?k:"".concat((null==e||null==(i=e.content)?void 0:i.Succinct_Title)||(null==e||null==(l=e.content)?void 0:l.Title)||(null==e?void 0:e.name)," Article Image"),"data-src":d(e,t),className:"w-full h-full object-cover aspect-square md:aspect-video"})]}):void 0}),(0,h.jsxs)("div",{className:"p-6 h-full flex flex-col justify-between relative ".concat(0===t?"py-8 space-y-6":"py-5 px-3 md:px-6 w-7/12 md:w-full space-y-5"),children:[(0,h.jsxs)("div",{className:"".concat(0===t?"space-y-6":"space-y-3"),children:[(null==e||null==(o=e.content)?void 0:o.Category)||(null==e?void 0:e.name)?(0,h.jsx)("p",{className:"text-xs font-semibold text-grey-500 uppercase border-b-2 border-red-500 pb-2",children:(0,h.jsx)(u,{categories:null==e||null==(s=e.content)?void 0:s.Category,fallbackName:null==e?void 0:e.name,translatedSlugs:null==e?void 0:e.translated_slugs,currentLocale:a},"category-".concat(a,"-").concat(null==e?void 0:e.uuid))}):void 0,(null==e||null==(c=e.content)?void 0:c.Succinct_Title)||(null==e||null==(p=e.content)?void 0:p.Title)||(null==e?void 0:e.name)?(0,h.jsx)("h3",{className:"text-grey-500 group-hover:text-red-500 group-active:text-red-700 font-display ".concat(0===t?"text-4xl md:text-5xl md:font-medium font-display":"text-3xl"),children:(null==e||null==(f=e.content)?void 0:f.Succinct_Title)||(null==e||null==(m
28=e.content)?void 0:m.Title)||(null==e?void 0:e.name)}):void 0,0===t&&(null==e||null==(v=e.content)||null==(g=v.Hero)?void 0:g.length)?(0,h.jsx)(cf,{className:"text-base font-body text-grey-500 line-clamp-3",children:(null==e||null==(y=e.content)?void 0:y.Blurb)||(null==e||null==(w=e.content)||null==(b=w.Hero)||null==(x=b[0])?void 0:x.Short_Blurb)}):null]}),(0,h.jsx)("svg",{className:"self-end ".concat(""),width:"22",height:"12",viewBox:"0 0 22 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{className:"fill-red-500 group-active:fill-red-700",d:"M16.3467 4.66675H0.333374V7.33342H16.3467V11.3334L21.6667 6.00008L16.3467 0.666748V4.66675Z",fill:"#5A8034"})})]})]})},null==e?void 0:e.uuid)})})]})})},Stats_Panels:e=>{let{blok:t}=e;return(0,h.jsxs)("section",{id:oW(null==t?void 0:t.Title),...(0,m.K1)(t),children:[(null==t?void 0:t.Title)?(0,h.jsx)(w.A,{className:"py-12 md:pt-24",children:(0,h.jsx)("h2",{className:"text-6xl md:text-8xl font-display text-green-500",children:null==t?void 0:t.Title})}):void 0,(0,h.jsx)("div",{className:"z-10 bg-green-500 w-full min-h-[10rem]",children:(0,h.jsx)(w.A,{as:"ul",className:"flex flex-col md:flex-row divide-y md:divide-y-0 divide-grey-100",mobile:!1,children:null==t?void 0:t.Panels.map(e=>(0,h.jsx)(m.Dp,{className:"md:px-5 last:pr-0",blok:e},e._uid))})}),_(t.Footnotes)?(0,h.jsx)("div",{className:"z-10 bg-green-500 w-full pb-12",children:(0,h.jsx)(w.A,{children:(0,h.jsx)("div",{className:"prose text-white prose-a:text-white prose-a:underline hover:prose-a:no-underline prose-p:text-base prose-p:font-body max-w-full",children:z(t.Footnotes,{markResolvers:{link:X},nodeResolvers:er})})})}):void 0]})},Step_List:e=>{var t;let{blok:n,index:r}=e;return(0,h.jsx)("div",{className:"prose",...(0,m.K1)(n),children:(0,h.jsx)("ol",{className:"step-list",children:null==n||null==(t=n.List_Items)?void 0:t.map(e=>(0,h.jsx)(m.Dp,{className:"",blok:e},e._uid))})})},Topic_Tabs:e=>{var t;let{blok:n}=e,[r,i]=(0,p.useState)(null==n||null==(t=n.Tabs[0])?void 0:t._uid),l=e=>{i(e)},a={1:"w-full",2:"w-1/2",3:"w-1/3",4:"w-1/4",5:"w-1/5",6:"w-1/6"};return(0,h.jsxs)("section",{className:"min-h-[10rem]",...(0,m.K1)(n),children:[(0,h.jsx)("ul",{className:"text-white flex items-stretch divide-x divide-grey-50",children:n.Tabs.map(e=>{var t;return(0,h.jsx)("li",{onClick:()=>l(e._uid),className:"cursor-pointer transition duration-150 ease-in-out hover:bg-grey-300 hover:text-green-900 active:bg-green-500 active:text-white flex justify-center flex-col px-3 md:px-0 ".concat(a[null==n||null==(t=n.Tabs)?void 0:t.length]," ").concat(r===e._uid?"bg-green-500 text-white":"bg-grey-100 text-green-900"),children:(0,h.jsx)("div",{className:"text-xs md:text-base text-center md:px-6 py-3 cursor-pointer font-semibold ".concat(r===e._uid?"md:font-semibold":""),children:e.Title})},e._uid)})}),n.Tabs.map(e=>(0,h.jsx)("div",{className:"".concat(r===e._uid?"block":"hidden"),children:null==e?void 0:e.Content_Blocks.map(e=>(0,h.jsx)(m.Dp,{className:"md:px-5 last:pr-0",blok:e},e._uid))},e._uid))]})},Trending_News:e=>{let{blok:t,story:n,locale:r}=e;return(0,h.jsx)(ho,{blok:t,story:n,layout:"trending",locale:r})},Upcoming_Events:e=>{let{blok:t,story:n,events:r,dataSrcEntries:i,locale:l}=e,a=null==i?void 0:i.map(e=>{let{id:t,dimension_value:n,...r}=e;return r});return a.sort((e,t)=>e.name.localeCompare(t.name)),a.length>0&&a.push({name:"Other Events",value:"other-events"}),a.unshift({name:"All Events",value:"all-events"}),(0,h.jsx)("div",{className:"bg-grey-50 py-12 md:pb-24 text-grey-500",...(0,m.K1)(t),children:(0,h.jsxs)(w.A,{children:[(0,h.jsx)("h2",{className:"font-display font-medium text-6xl md:text-8xl text-red-500 mb-8",children:null==t?void 0:t.Title}),(0,h.jsx)(cf,{className:"text-lg md:text-xl py-12 md:w-8/12 font-normal text-grey-500",children:null==t?void 0:t.Blurb}),(0,h.jsx)(hc,{ev:r.futureEvents,categories:a,locale:l})]})})},Past_Events:e=>{let{blok:t,story:n,events:r,locale:i}=e;return(0,h.jsx)("div",{id:oW(null==t?void 0:t.Title),className:"py-12 md:py-24 text-grey-500",...(0,m.K1)(t),children:(0,h.jsxs)(w.A,{children:[(0,h.jsx)("h2",{className:"font-display font-medium text-6xl md:text-8xl text-red-500 mb-8",children:null==t?void 0:t.Title}),(0,h.jsx)(cf,{className:"text-grey-500 text-lg md:text-xl py-12 md:w-8/12 font-normal",children:t.Blurb}),(0,h.jsx)(hc,{ev:r.pastEvents,categories:[],past:!0,locale:i})]})})},Modal_Speakers:e=>{let{blok:t,index:n}=e,[r,i]=(0,p.useState)(null);return(0,h.jsx)("div",{className:"bg-white py-12 md:py-24 md:pb-12",...(0,m.K1)(t),
28children:(0,h.jsx)(w.A,{children:(0,h.jsxs)("div",{className:"",children:[(0,h.jsx)("h3",{className:"text-5xl md:text-6xl font-display font-extrabold text-red-500 pb-12",children:"Speakers"}),(0,h.jsx)("ul",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 md:gap-12",children:null==t?void 0:t.Modal_Speakers_Items.map((e,t)=>(0,h.jsx)(hi,{blok:e},e._uid))})]})})})},Gallery:e=>{let{blok:t,index:n}=e,[r,i]=(0,p.useState)(null),l=e=>{r&&e===r?i(null):i(e)};return(0,h.jsx)("div",{className:"bg-grey-50 py-12 md:py-24 md:pb-12",...(0,m.K1)(t),children:(0,h.jsx)(w.A,{children:(0,h.jsxs)("div",{className:"",children:[(0,h.jsx)("h3",{className:"text-5xl md:text-6xl font-display font-extrabold text-red-500 pb-12",children:(null==t?void 0:t.Title)||"Media Gallery"}),(0,h.jsx)("ul",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 gap-x-6 md:gap-12",children:null==t?void 0:t.Gallery_Items.map((e,t)=>{var n,i,a,o,s,c,u,d;return(0,h.jsxs)("li",{className:"group",children:[r===e._uid&&(0,h.jsxs)("div",{className:"modalBg bg-grey-500/75 fixed inset-0 center z-50 flex items-center justify-around",children:[(0,h.jsx)("div",{className:"w-full h-full absolute",onClick:()=>l(e._uid)}),(0,h.jsxs)("div",{className:"modal max-w-4xl bg-white relative max-h-screen overflow-auto",children:[(0,h.jsx)("button",{className:"absolute top-12 right-12",onClick:()=>l(e._uid),children:(0,h.jsx)("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M28 2.82L25.18 0L14 11.18L2.82 0L0 2.82L11.18 14L0 25.18L2.82 28L14 16.82L25.18 28L28 25.18L16.82 14L28 2.82Z",fill:"#54565B"})})}),(0,h.jsxs)("div",{className:"py-24 px-12 max-h-5/6 overflow-y-auto",children:[(0,h.jsx)("div",{children:(0,h.jsx)("picture",{className:"md:w-full mb-6",children:(0,h.jsx)(J,{srcSet:Z(null==e||null==(n=e.Image)?void 0:n.filename,300,"1:1",null==e||null==(i=e.Image)?void 0:i.focus),src:"".concat(null==e||null==(a=e.Image)?void 0:a.filename,"/m/6x0/"),alt:(null==e||null==(o=e.Image)?void 0:o.alt)||(null==e?void 0:e.Caption),className:"h-auto w-full object-cover"})})}),(0,h.jsx)("div",{children:(0,h.jsx)("div",{children:(0,h.jsx)("p",{className:"mt-3",children:e.Caption})})})]})]})]}),(0,h.jsxs)("button",{onClick:()=>l(e._uid),className:"w-full text-left relative",children:[(0,h.jsx)("div",{className:"animate-[fadeIn_303ms_ease-out_1] group-hover:grid absolute hidden group-hover:bg-media-gradient group-active:bg-media-gradient-active w-full h-full place-content-center",children:(0,h.jsx)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M34.0135 30.0135H31.9068L31.1602 29.2935C33.7735 26.2535 35.3468 22.3068 35.3468 18.0135C35.3468 8.44018 27.5868 0.680176 18.0135 0.680176C8.44018 0.680176 0.680176 8.44018 0.680176 18.0135C0.680176 27.5868 8.44018 35.3468 18.0135 35.3468C22.3068 35.3468 26.2535 33.7735 29.2935 31.1602L30.0135 31.9068V34.0135L43.3468 47.3202L47.3202 43.3468L34.0135 30.0135ZM18.0135 30.0135C11.3735 30.0135 6.01351 24.6535 6.01351 18.0135C6.01351 11.3735 11.3735 6.01351 18.0135 6.01351C24.6535 6.01351 30.0135 11.3735 30.0135 18.0135C30.0135 24.6535 24.6535 30.0135 18.0135 30.0135ZM19.3468 11.3468H16.6802V16.6802H11.3468V19.3468H16.6802V24.6802H19.3468V19.3468H24.6802V16.6802H19.3468V11.3468Z",fill:"white"})})}),(0,h.jsx)("picture",{children:(0,h.jsx)(J,{srcSet:Z(null==e||null==(s=e.Image)?void 0:s.filename,300,"1:1",null==e||null==(c=e.Image)?void 0:c.focus),src:"".concat(null==e||null==(u=e.Image)?void 0:u.filename,"/m/6x0/"),alt:(null==e||null==(d=e.Image)?void 0:d.alt)||"".concat((null==e?void 0:e.Caption)||""," Modal Image"),className:"w-full aspect-square"})})]},e._uid)]},e._uid)})})]})})})},Event_Details_Summary:e=>{var t,n,r,i,l,a,o,s,c,u,d,f,v,x;let{story:b,blok:j,index:k,locale:_}=e,N=(0,g.useRouter)(),{t:E}=(0,y.Bd)("common"),[P,T]=(0,p.useState)(""),[O,R]=(0,p.useState)(_||"en");(0,p.useEffect)(()=>{let e=window.location.host;T("https://".concat(e))},[]),(0,p.useEffect)(()=>{_||R(C())},[_]);let L={grey:"bg-grey-50 hover:bg-grey-300 text-black",red:"bg-red-500 hover:bg-red-700 text-white",green:"bg-green-500 hover:bg-green-700 text-white",blue:"bg-blue-500 hover:bg-blue-700 text-white",teal:"bg-teal-500 hover:bg-teal-700 text-white",sage:"bg-lime-500 hover:bg-lime-700 text-white",white:"bg-white hover:bg-slate-400 text-black",amber:"bg-amber-500 hover:bg-amber-700 text-black",insightGrey:"bg-[#5456
285a] hover:bg-[#76777a] text-white",tealBlue:"bg-[#7ca7ad] hover:bg-[#63858a] text-white",rose:"bg-[#9d7692] hover:bg-[#7d5e74] text-white",cisGreen:"bg-[#71984a] hover:bg-[#5a793b] text-white"};return(0,h.jsx)("div",{className:"bg-grey-50",...(0,m.K1)(j),children:(0,h.jsx)("div",{children:(0,h.jsx)("div",{className:"py-12 bg-grey-50 md:py-24",children:(0,h.jsxs)(w.A,{children:[(null==j||null==(t=j.Anchor_Nav)?void 0:t.length)?(0,h.jsx)("ul",{className:"flex flex-wrap py-6 overflow-x-hidden text-xs font-semibold text-red-500 list-none",children:null==j||null==(n=j.Anchor_Nav)?void 0:n.map(e=>{var t,n;return(0,h.jsx)("li",{className:"relative py-1 mr-6 list-none transition duration-150 ease-in-out hover:underline active:underline hover:text-red-700 active:text-red-900 after:top-0 after:-ml-3 after:block after:bg-grey-300 after:absolute after:h-full after:w-px",children:(0,h.jsx)(n9,{onClick:e=>Y(e,{offset:100}),href:(null==e||null==(t=e.Link)?void 0:t.url)?G(null==e?void 0:e.Link):"#".concat(oW(e.Title)),target:null==e||null==(n=e.Link)?void 0:n.target,children:e.Title})},e._uid)})}):void 0,(0,h.jsxs)("div",{className:"gap-4 md:grid md:grid-cols-3 md:gap-12",children:[(0,h.jsxs)("div",{className:"mb-8 text-base md:col-span-2 text-grey-500 md:mb-0",children:[(0,h.jsx)("p",{className:"mb-12 text-xl",children:null==j?void 0:j.Intro}),(0,h.jsx)("h2",{className:"mb-12 text-6xl text-red-500 md:text-8xl font-display",children:null==b?void 0:b.name}),(0,h.jsxs)("div",{children:[(0,h.jsx)(cf,{className:"text-base text-grey-500",children:null==j?void 0:j.Description}),(null==j||null==(i=j.Contact_Info)||null==(r=i.content[0])?void 0:r.content)?(0,h.jsx)("h3",{className:"mt-6 mb-4 text-3xl text-red-500 font-display",children:E("components.Event_Details_Summary.contact_event","Contact Event")}):void 0,(0,h.jsx)(cf,{className:"text-base prose text-grey-500 font-body prose-a:no-underline prose-a:text-red-500 hover:prose-a:underline hover:prose-a:text-red-700 active:prose-a:text-red-900",children:j.Contact_Info})]})]}),(0,h.jsxs)("div",{className:"space-y-4",children:[(0,h.jsxs)("div",{className:"p-6 bg-white text-grey-500",children:[(0,h.jsx)("h3",{className:"font-medium text-red-500 uppercase font-display",children:E("components.Event_Details_Summary.when","When")}),(0,h.jsxs)("div",{className:"mt-6 mb-8",children:[b.content.End_Datetime&&dG(new Date(b.content.End_Datetime),new Date(b.content.Start_Datetime))?(0,h.jsxs)("div",{children:[(0,h.jsxs)("p",{children:[ob(new Date(b.content.Start_Datetime),"EEEE",{locale:d3[O]}),", ",ob(new Date(b.content.Start_Datetime),"MMMM dd, yyyy",{locale:d3[O]})]}),(0,h.jsxs)("p",{children:[ob(new Date(b.content.Start_Datetime),"h:mm aaaaa'.m.'",{locale:d3[O]})," to ",ob(new Date(b.content.End_Datetime),"h:mm aaaaa'.m.'",{locale:d3[O]})," ET"]})]}):"",b.content.End_Datetime?"":(0,h.jsxs)("div",{children:[(0,h.jsxs)("p",{children:[ob(new Date(b.content.Start_Datetime),"EEEE",{locale:d3[O]}),", ",ob(new Date(b.content.Start_Datetime),"MMMM dd, yyyy",{locale:d3[O]})]}),(0,h.jsxs)("p",{children:[ob(new Date(b.content.Start_Datetime),"h:mm aaaaa'.m.'",{locale:d3[O]})," ET"]})]}),b.content.End_Datetime&&!dG(new Date(b.content.End_Datetime),new Date(b.content.Start_Datetime))?(0,h.jsxs)("div",{children:[(0,h.jsxs)("p",{children:[ob(new Date(b.content.Start_Datetime),"EEEE",{locale:d3[O]}),", ",ob(new Date(b.content.Start_Datetime),"MMMM dd, yyyy",{locale:d3[O]})," ",ob(new Date(b.content.Start_Datetime),"h:mm aaaaa'.m.'",{locale:d3[O]})]}),(0,h.jsxs)("p",{children:["to ",ob(new Date(b.content.End_Datetime),"EEEE",{locale:d3[O]}),", ",ob(new Date(b.content.End_Datetime),"MMMM dd, yyyy",{locale:d3[O]})," "]}),(0,h.jsxs)("p",{children:[ob(new Date(b.content.End_Datetime),"h:mm aaaaa'.m.'",{locale:d3[O]})," ET"]})]}):""]}),(0,h.jsx)("h3",{className:"font-medium text-red-500 uppercase font-display",children:E("components.Event_Details_Summary.where","Where")}),(0,h.jsx)("div",{className:"mt-6 mb-5",children:(0,h.jsx)("p",{children:b.content.Address})}),(0,h.jsxs)("div",{className:"flex mb-8",children:[(0,h.jsx)("h3",{className:"mt-3 font-medium text-red-500 uppercase grow font-display",children:E("components.Event_Details_Summary.share_event","Share Event")}),(0,h.jsxs)(S(),{href:"https://www.facebook.com/sharer/sharer.php?u=".concat(P).concat(N.asPath),"aria-label":E("components.Event_Details_Summary.share_facebook"),className:"p-2 transition duration-150 ease-in-out cursor-pointer text-grey-500 hover:text-red-500 active:text-red-700",target:"_blank",children:[(0,h.jsx)("svg",{className:"h-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:(0,h.jsx)("path",{fill:"currentColor",d:"M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z"})}),(0,h.jsx)("span",{className:"sr-only",children:E("components.Event_Details_Summary.share_facebook")})]}),(0,h.jsxs)(S(),{href:"https://twitter.com/share?text=".concat(encodeURIComponent(b.name),"&url=").concat(P).concat(N.asPath),"aria-label":E("components.Event_Details_Summary.share_twitter"),className:"p-2 ml-1 transition duration-150 ease-in-out cursor-pointer text-grey-500 hover:text-red-500 active:text-red-700",target:"_blank",children:[(0,h.jsx)("svg",{className:"h-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:(0,h.jsx)("path",{fill:"currentColor",d:"M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"})}),(0,h.jsx)("span",{className:"sr-only",children:E("components.Event_Details_Summary.share_twitter")})]}),(0,h.jsxs)(S(),{href:"https://www.linkedin.com/shareArticle?mini=true&url=".concat(P).concat(N.asPath),"aria-label":E("components.Event_Details_Summary.share_linkedin"),className:"p-2 ml-1 transition duration-150 ease-in-out cursor-pointer text-grey-500 hover:text-red-500 active:text-red-700",target:"_blank",children:[(0,h.jsx)("svg",{className:"h-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,h.jsx)("path",{fill:"currentColor",d:"M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"})}),(0,h.jsx)("span",{className:"sr-only",children:E("components.Event_Details_Summary.share_linkedin")})]})]}),(null==b||null==(l=b.content)?void 0:l.Event_Id)?(0,h.jsx)(d5,{className:"cursor-pointer bg-red-500 text-white hover:bg-red-700 active:bg-red-900 transition duration-150 ease-in-out font-body py-3 px-6 mb-2 inline-block",eventId:null==b||null==(a=b.content)?void 0:a.Event_Id,widgetType:d2.MODAL,buttonText:E("components.Event_Details_Summary.register","Register")}):(null==b||null==(s=b.content)||null==(o=s.Registration_Link)?void 0:o.url)?(0,h.jsx)("div",{children:(0,h.jsx)(n9,{href:"".concat(G(null==b||null==(c=b.content)?void 0:c.Registration_Link)),target:null==b||null==(d=b.content)||null==(u=d.Registration_Link)?void 0:u.target,className:"inline-block px-6 py-3 mb-2 text-white transition duration-150 ease-in-out bg-red-500 hover:bg-red-700 active:bg-red-900 font-body",children:E("components.Event_Details_Summary.register","Register")})}):null,null==b||null==(v=b.content)||null==(f=v.Registration_Links)?void 0:f.map(e=>{var t,n,r;return(0,h.jsx)("div",{children:(0,h.jsx)(n9,{href:"".concat(null==e||null==(t=e.Url)?void 0:t.url),target:null==e||null==(n=e.Url)?void 0:n.url,className:"inline-block px-6 py-3 mb-2 transition duration-150 ease-in-out font-body ".concat(L[null!=(r=null==e?void 0:e.Color_Scheme)?r:"red"]),children:null==e?void 0:e.Label})},e._uid)})]}),(null==j?void 0:j.Event_Contact)&&(0,h.jsxs)("div",{className:"p-6 bg-white text-grey-500",children:[(0,h.jsxs)("h3",{className:"font-medium text-red-500 uppercase font-display",children:[E("components.Event_Details_Summary.event_contact","Event Contact"),":"]}),(0,h.jsx)("div",{className:"mt-6 mb-8",children:(0,h.jsx)("div",{className:"space-y-0 leading-6 prose text-grey-500 prose-strong:text-grey-500 prose-p:mb-0 prose-a:text-red-500 prose-a:no-underline hover:prose-a:underline hover:prose-a:text-red-700 active:prose-a:text-red-900",children:(0,h.jsx)(ab,{remarkPlugins:[co,cp],children:aj(null==j?void 0:j.Event_Contact)})})})]}),(null==j?void 0:j.More_Info)&&[...null!=(x=j.More_Info)?x:[]].map(e=>(0,p.createElement)(m.Dp,{blok:e,type:j.component,story:b,key:e._uid}))]})]})]})})})})},Related_Events:e=>{let{blok:t,story:n,locale:r}=e,[i,l]=(0,p.useState)(r||"en");(0,p.useEffect)(()=>{r||l(C())},[r]);let a=async(e,t)=>{try{let{stories:e}=await oI({content_type:"Event_Detail_Layout",sort_by:"created_at:desc",is_startpage:0,per_page:4,page:1,filter_query:{Start_Datetime:{gt_date:ob(new Date,"yyyy-MM-dd HH:mm")}}},i),n=(e||[]).filter(e=>e.slug!==t).slice(0,3),r=(0,m._8)(),{data:{datasource_entries:l}}
28=await r.get("cdn/datasource_entries",{datasource:"event-filters",sort_by:"name:asc"});s(n)}catch(e){console.error("Error fetching related events:",e),s([])}};(0,p.useEffect)(()=>{let e=!1;return a(n.content.Filter,n.slug),()=>{}},[]);let[o,s]=(0,p.useState)([]);return(0,h.jsx)("div",{className:"bg-blue-100 py-12 md:py-24 pb-12",...(0,m.K1)(t),children:(0,h.jsxs)(w.A,{children:[(0,h.jsx)("h3",{className:"text-6xl md:text-8xl font-display font-normal text-blue-900 pb-12",children:"Other events you may be interested in"}),(0,h.jsx)("ul",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 md:gap-12 text-grey-500",children:null==o?void 0:o.map((e,t)=>{var r,l;return(0,h.jsx)("li",{className:"bg-white mb-12 md:mb-0 hover:drop-shadow-mobile active:drop-shadow-active-mobile md:hover:drop-shadow-desktop md:active:drop-shadow-active-desktop transition-all duration-150 ease-in-out group",children:(0,h.jsxs)(n9,{href:"/".concat(e.full_slug),children:[null==(r=e.content.Hero)?void 0:r.map((t,n)=>{var r,i,l,a;return(0,h.jsx)("picture",{className:"aspect-[380/280] flex",children:(0,h.jsx)(J,{loading:"lazy",sizes:"(max-width: 768px) 100vw, (max-width: 1280px) calc(33vw-3rem), 395px",srcSet:Z(null==t||null==(r=t.Full_Width_Image)?void 0:r.filename,768,"380:280",null==t||null==(i=t.Full_Width_Image)?void 0:i.focus),src:"".concat(null==t||null==(l=t.Full_Width_Image)?void 0:l.filename,"/m/6x0/"),alt:(null==t||null==(a=t.Full_Width_Image)?void 0:a.alt)||"".concat(e.name||""," Event"),className:"h-full w-full object-cover"})},n)}),(0,h.jsxs)("div",{className:"p-6 space-y-6",children:[(0,h.jsx)("h4",{className:"text-5xl font-display font-extrabold",children:e.name}),null==(l=e.content.Hero)?void 0:l.map((e,t)=>(0,h.jsx)(cf,{className:"text-grey-500 text-base",children:e.Short_Blurb},"blurb_".concat(t))),(0,h.jsxs)("p",{className:"text-xs",children:[ob(new Date(n.content.Start_Datetime),"MMMM dd, yyyy",{locale:hu[i]}),"  |  ",(0,h.jsx)("span",{className:"uppercase",children:e.content.City})]})]})]})},e.uuid)})})]})})},VIN_Verify:uY,You_Might_Be_Interested:(e,t)=>{var n,r;let{blok:i}=e,l=e=>{var t,n,r;let i=null==e?void 0:e.content,l=null==e||null==(n=e.content)||null==(t=n.Hero)?void 0:t[0],a=(null==i||null==(r=i.Image)?void 0:r.filename)?null==i?void 0:i.Image:null==l?void 0:l.Full_Width_Image;return{Image:a,Title:(null==i?void 0:i.Succinct_Title)||(null==i?void 0:i.Title)||(null==l?void 0:l.Heading),Blurb:(null==i?void 0:i.Blurb)||(null==l?void 0:l.Short_Blurb)}};return(0,h.jsx)("div",{id:oW(null==i?void 0:i.Title),className:"w-full bg-blue-100 py-12 md:py-24",...(0,m.K1)(i),children:(0,h.jsxs)(w.A,{as:"section",className:"space-y-6 md:space-y-16",children:[(0,h.jsx)(uT,{index:t,className:"text-6xl md:text-8xl font-normal font-display text-blue-900",children:null!=(r=null==i?void 0:i.Title)?r:"You might be interested"}),(null==i||null==(n=i.Panels)?void 0:n.length)?(0,h.jsx)("ul",{className:"grid grid-cols-1 sm:grid-cols-3 gap-6 lg:gap-12",children:null==i?void 0:i.Panels.map(e=>{var t,n,r,i,a,o,s,c;let u=l(e);return(null==e?void 0:e.uuid)&&(null==u?void 0:u.Title)?(0,h.jsx)("li",{className:"bg-white flex h-full group hover:drop-shadow-mobile active:drop-shadow-active-mobile md:hover:drop-shadow-desktop md:active:drop-shadow-active-desktop transition-all duration-150 ease-in-out",children:(0,h.jsxs)(n9,{className:"flex flex-col",href:"Resource_Details"===e.content.component?null==e||null==(n=e.content)||null==(t=n.Link)?void 0:t.cached_url:"/".concat((null==e?void 0:e.path)||(null==e?void 0:e.full_slug)),target:null==e?void 0:e.name,children:[(0,h.jsxs)("picture",{className:"aspect-[400/280] md:aspect-video flex w-full",children:[(0,h.jsx)("source",{media:"(max-width: 639px)",srcSet:Z(null==u||null==(r=u.Image)?void 0:r.filename,580,"400:280",null==u||null==(i=u.Image)?void 0:i.focus),sizes:"(max-width: 639px) 100vw, (max-width: 1279px) calc(33vw-3rem), 365px"}),(0,h.jsx)("source",{media:"(min-width: 640px)",srcSet:Z(null==u||null==(a=u.Image)?void 0:a.filename,580,"16:9",null==u||null==(o=u.Image)?void 0:o.focus),sizes:"(max-width: 1279px) calc(33vw-3rem), 365px"}),(0,h.jsx)(J,{loading:"lazy",src:"".concat((null==u||null==(s=u.Image)?void 0:s.filename)||"https://placehold.co/400x220","/m/6x0/"),alt:(null==u||null==(c=u.Image)?void 0:c.alt)||"".concat((null==u?void 0:u.Title)||""," Panel Image"),className:"h-full w-full object-cover aspect-[400/280] md:aspect-video"})]}),(0,h.jsxs)("div",{className:"flex flex-col md:h-full p-6 pb-0 border-t-4 border-blue-500 group-hover:border-red-500 group-active:border-red-700",children:[(0,h.jsxs)("div",{className:"space-y-6 md:flex-grow",children:[(0,h.jsx)("h3",{className:"text-5xl font-display font-medium text-blue-500 group-hover:text-red-500 group-active:text-red-700 line-clamp-1 pb-px",children:null==u?void 0:u.Title}),(0,h.jsx)(cf,{className:"text-grey-500 line-clamp-3 text-base",children:null==u?void 0:u.Blurb})]}),(0,h.jsx)("div",{className:"h-14 flex items-center justify-end",children:(0,h.jsx)("svg",{width:"22",height:"12",viewBox:"0 0 22 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{className:"fill-blue-500 group-hover:fill-red-500 group-active:fill-red-700",d:"M16.0133 4.66663H0V7.33329H16.0133V11.3333L21.3333 5.99996L16.0133 0.666626V4.66663Z",fill:"#882345"})})})]})]})},e.uuid):void 0})}):void 0]})})},Feature_Image:e=>{var t,n,r,i,l,a,o;let{blok:s,className:c,type:u}=e;return(0,h.jsx)("div",{className:"".concat("Intro"===u?"h-fit":""," ").concat(c),...(0,m.K1)(s),children:(null==s||null==(t=s.Image)?void 0:t.filename)?(0,h.jsxs)("picture",{className:"relative w-full h-full block ".concat("News_Article_Layout"===u||(null==s?void 0:s.Aspect16_9)||"Intro"===u?"aspect-video":"aspect-[3/4] md:aspect-[1440/640]"),children:[(0,h.jsx)("source",{media:"(max-width: 767px)",srcSet:Z(null==s||null==(n=s.Image)?void 0:n.filename,767,"107:75",null==s||null==(r=s.Image)?void 0:r.focus),sizes:"100vw"}),(0,h.jsx)("source",{media:"(min-width: 768px)",srcSet:Z(null==s||null==(i=s.Image)?void 0:i.filename,1800,"1440:600",null==s||null==(l=s.Image)?void 0:l.focus),sizes:"100vw"}),(0,h.jsx)(J,{src:"".concat(null==s||null==(a=s.Image)?void 0:a.filename,"/m/6x0/"),alt:(null==s||null==(o=s.Image)?void 0:o.alt)||"Feature Image",className:"absolute object-cover w-full h-full p-0 m-0"})]}):void 0},s._uid)},Link_Card:e=>{var t,n,r;let{blok:i}=e,l={green:{card:"bg-green-500",cardText:"text-white"},white:{card:"bg-white hover:bg-red-500 active:bg-red-700",cardText:"text-blue-500 hover:text-white active:text-white"},blue:{card:"bg-blue-500",cardText:"text-white"},teal:{card:"bg-teal-500",cardText:"text-teal-900"},sage:{card:"bg-sage-500",cardText:"text-sage-900"}};return(0,h.jsx)("li",{className:"flex-1 md:flex md:justify-center",...(0,m.K1)(i),children:(0,h.jsxs)(n9,{className:"".concat(null==(t=l[null==i?void 0:i.Backgroun
28d_Colour])?void 0:t.card," ").concat(null==(n=l[null==i?void 0:i.Background_Colour])?void 0:n.cardText," transition-all duration-150 w-full aspect-square md:w-44 max-h-44 min-h-full md:min-h-fit sm:max-h-fit sm:h-44 p-4 md:p-8 rounded-full space-y-3 flex flex-col items-center justify-center"),href:G(i.Link),target:null==i||null==(r=i.Link)?void 0:r.target,children:[(0,h.jsx)(hh,{iconType:null==i?void 0:i.Icon,className:"h-12 w-12"}),(0,h.jsx)("span",{className:"font-medium font-display text-lg leading-5 ",children:i.Title})]})})},Menu_Section:e=>{var t,n,r,i,l,a,o;let{blok:s,reduceNav:c}=e,u=(0,g.useRouter)(),{t:d}=(0,y.Bd)("common");(0,p.useEffect)(()=>{v(null)},[u.asPath]);let[f,v]=(0,p.useState)(void 0),x=()=>{f?v(null):v(s._uid)},b=()=>{v(null)};return(0,h.jsxs)("li",{className:"".concat(f?"group/parent":""),onMouseEnter:x,onMouseLeave:b,children:[(0,h.jsxs)("div",{className:"flex items-center justify-between xl:justify-start pr-9 xl:pr-3 text-red-500 group-hover/parent:xl:bg-red-500 group-hover/parent:xl:text-white ".concat(f===(null==s?void 0:s._uid)?"xl:bg-red-500 xl:text-white":""),children:[(0,h.jsxs)(n9,{href:G(null!=(o=null==s?void 0:s.Link)?o:null==s?void 0:s.link),target:(null==s||null==(t=s.Link)?void 0:t.target)||(null==s||null==(n=s.link)?void 0:n.target),className:"text-xl xl:text-base px-6 xl:px-3 py-3 flex items-center space-x-2.5",children:[null==s?void 0:s.Name," "]}),(0,h.jsx)("button",{className:"hidden xl:flex",onClick:x,"aria-haspopup":"true","aria-expanded":!!f,"aria-label":d("components.Menu_Section.toggle_submenu",{name:null==s?void 0:s.Name}),children:(0,h.jsx)("svg",{width:"13",height:"8",viewBox:"0 0 13 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{className:"group-hover/parent:xl:fill-white ".concat(f===(null==s?void 0:s._uid)?"xl:fill-white":""),d:"M10.6554 0.294922L6.06537 4.87492L1.47537 0.294922L0.0653687 1.70492L6.06537 7.70492L12.0654 1.70492L10.6554 0.294922Z",fill:"#54565B"})})}),(0,h.jsx)("button",{className:"xl:hidden",onClick:x,"aria-haspopup":"true","aria-expanded":!!f,"aria-label":d("components.Menu_Section.toggle_submenu",{name:null==s?void 0:s.Name}),children:(0,h.jsx)("svg",{className:"transition-transform duration-300 ease-in-out ".concat(f===(null==s?void 0:s._uid)?"rotate-90":""),width:"12",height:"18",viewBox:"0 0 12 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M2.55641 0L0.441406 2.115L7.31141 9L0.441406 15.885L2.55641 18L11.5564 9L2.55641 0Z",fill:"#54565B"})})})]}),(0,h.jsxs)("div",{className:"left-0 w-full justify-between xl:shadow-2xl group-hover/parent:xl:grid opacity-100 xl:animate-[fadeIn_303ms_ease-out_1] ".concat(f===(null==s?void 0:s._uid)?"opacity-100 flex xl:grid animate-[fadeIn_303ms_ease-out_1]":"hidden"," grid-cols-3 xl:absolute border-red-500 bg-white ").concat(c?"xl:border-t-4":"xl:border-t-8"),children:[(0,h.jsxs)("div",{className:"hidden xl:inline-block p-12 pb-32 bg-grey-50",children:[" ",(0,h.jsx)("h2",{className:"text-6xl font-extrabold text-gray-500 mb-12",children:null==s?void 0:s.Name}),(0,h.jsx)(cf,{className:"mb-12 text-base font-body text-grey-500",children:null==s?void 0:s.Blurb}),(null==s?void 0:s.CTA)?(0,h.jsx)(n9,{className:"bg-red-500 hover:bg-red-700 active:bg-red-900 transition duration-150 ease-in-out text-base font-body text-white py-3 px-6 inline-block",href:G(s.Link),target:null==s||null==(r=s.Link)?void 0:r.target,children:null==s?void 0:s.CTA}):void 0]}),(0,h.jsx)("div",{className:"xl:bg-white xl:p-12 xl:pr-0 w-full xl:w-auto ".concat(f===s._uid?"block":"hidden xl:block"),children:(0,h.jsx)("ul",{className:"bg-grey-50 xl:bg-white divide-y divide-grey-100",children:null==s?void 0:s.Menu_Child.map((e,t)=>{var n;return(0,h.jsx)(hf,{blok:e,onBlur:t===(null==s||null==(n=s.Menu_Child)?void 0:n.length)-1?b:null},e._uid)})})}),(0,h.jsx)("div",{className:"bg-white p-12 hidden xl:block",children:(null==s||null==(i=s.Quick_Links)?void 0:i.length)?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("h3",{className:"text-3xl text-gray-500 pt-5 mb-11",children:(null==s?void 0:s.Quick_Links_Heading)||"Quick Links"}),(0,h.jsx)("ul",{className:"space-y-12 font-body",children:null==s||null==(l=s.Quick_Links)?void 0:l.map((e,t)=>{var n;return(0,h.jsx)(hp,{className:"text-red-500 hover:underline active:underline hover:text-red-700 active:text-red-900 transition duration-150 ease-in-out text-base",blok:e,onBlur:t===(null==s||null==(n=s.Children)?void 0:n.length)-1?b:null},e._uid)})})]}):void 0})]}),(0,h.jsx)("ul",{className:"flex flex-col xl:flex-row divide-y divide-grey-100 xl:divide-y-0 border-b border-grey-100 xl:border-b-0 font-display",children:(null==s||null==(a=s.content)?void 0:a.Header_Menu)?s.content.Header_Menu.map((e,t)=>{var n;return(0,p.createElement)(m.Dp,{blok:e,quick_links:null==s||null==(n=s.content)?void 0:n.Quick_Links,showBanner,reduceNav:c,key:e._uid})}):null})]})},Nav_Item:hp,Quick_Links:e=>{let{blok:t}=e;return(0,h.jsxs)("aside",{className:"flex flex-col bg-white p-6",...(0,m.K1)(t),
28children:[(0,h.jsx)("h3",{className:"text-red-500 text-2xl uppercase pb-6 font-display",children:t.Title}),t.Menu_Items?(0,h.jsx)("ul",{className:"divide-y divide-grey-50",children:t.Menu_Items.map(e=>{var t;return(null==e?void 0:e.Title)?(0,h.jsx)("li",{className:"flex py-3 pr-2 group/sidelink transition duration-150 ease-in-out",children:(0,h.jsxs)(n9,{href:G(null==e?void 0:e.Link),target:null==e||null==(t=e.Link)?void 0:t.target,className:"text-grey-500 group-hover/sidelink:text-red-500 group-active/sidelink:text-red-700 flex w-full justify-between items-center space-x-4",children:[(0,h.jsx)("span",{children:e.Title}),(0,h.jsx)(u0.c,{className:"w-2 h-3 text-red-500 group-hover/sidelink:text-red-500 group-active/sidelink:text-red-700"})]})},e._uid):void 0})}):void 0]})},Stats_Panel:e=>{let{blok:t}=e;return(0,h.jsxs)("li",{className:"z-10 bg-green-500 flex-1 md:space-y-6 w-full md:w-1/3 md:py-12 text-white md:first:px-0 md:first:pr-10 lg:first:pr-20 last:pr-0 px-6 py-6 md:px-10 lg:px-20",children:[(0,h.jsx)("h3",{className:"text-8xl lg:text-9xl font-extrabold lg:font-extrabold font-display",children:null==t?void 0:t.Title}),(0,h.jsx)(cf,{className:"text-white text-base prose-a:text-white prose-a:no-underline prose-a:font-bold hover:prose-a:underline",children:t.Blurb})]})},Step_Item:e=>{let{blok:t,className:n}=e;return(0,h.jsx)("li",{className:"prose ".concat(n),...(0,m.K1)(t),children:(0,h.jsx)(cf,{className:"prose-a:text-red-500 prose-a:no-underline hover:prose-a:underline hover:prose-a:text-red-700 active:prose-a:text-red-900",children:t.Content})},t._uid)},Table:e=>{let{blok:t}=e;return(null==t?void 0:t.Table)?(0,h.jsxs)("div",{className:"text-grey-500 prose prose-a:text-red-500 prose-headings:text-white prose-headings:font-bold prose-h2:text-6xl prose-h2:md:text-8xl prose-h3:text-5xl prose-h3:md:text-6xl prose-h3:font-extrabold prose-h4:text-4xl prose-h4:md:text-5xl prose-h4:md:font-medium prose-h5:text-3xl prose-h6:text-2xl prose-a:no-underline hover:prose-a:underline hover:prose-a:text-red-700 active:prose-a:text-red-900 prose-ul:space-y-3 prose-ul:mt-5 prose-h1:text-red-500 prose-h6:text-lg prose-h6:md:text-xl prose-h1:font-normal prose-li:not-prose prose-blockquote:pl-6 prose-blockquote:lg:pl-12 prose-blockquote:border-teal-300 max-w-full prose-li:marker:text-red-500",...(0,m.K1)(t),children:[(null==t?void 0:t.Title)?(0,h.jsx)("p",{children:(0,h.jsx)("strong",{children:t.Title})}):void 0,(0,h.jsxs)("table",{children:[(0,h.jsx)("thead",{className:"bg-red-500",children:(0,h.jsx)("tr",{children:t.Table.thead.map(e=>(0,h.jsx)("th",{className:"px-4",children:e.value},e._uid))})}),(0,h.jsx)("tbody",{children:t.Table.tbody.map(e=>(0,h.jsx)("tr",{children:e.body.map(e=>(0,h.jsx)("td",{className:"px-4",children:e.value},e._uid))},e._uid))})]}),_(null==t?void 0:t.Footnotes)?(0,h.jsx)(cf,{children:t.Footnotes}):void 0]},t._uid):void 0},Table_Enhanced:e=>{var t,n,r;let{blok:i}=e;if(!(null==i||null==(t=i.Table)?void 0:t.rows)||0===i.Table.rows.length)return null;let{Table:l}=i,{rows:a,header:o,alternatingRows:s,columns:c}=l,u=e=>e&&e.content?z(e,{nodeResolvers:er}):"",d=e=>{if(!c||!c[e])return{};let{width:t,widthType:n}=c[e];if(!t||!n)return{};switch(n){case"auto":return{width:"auto"};case"percentage":let r=t.toString().replace("%","");return{width:"".concat(r,"%")};case"pixel":let i=t.toString().replace("px","");return{width:"".concat(i,"px")};default:return{}}},p=e=>{if(!e||!e.alignment)return"";switch(e.alignment){case"left":return"text-left";case"center":return"text-center";case"right":return"text-right";default:return""}},f=(null==o?void 0:o.top)===!0,g=(null==o?void 0:o.left)===!0;return(0,h.jsxs)("div",{className:"text-grey-500 prose prose-a:text-red-500 prose-headings:text-red-500 prose-headings:font-display prose-h2:text-6xl prose-h2:md:text-8xl prose-h3:text-5xl prose-h3:md:text-6xl prose-h3:font-extrabold prose-h4:text-4xl prose-h4:md:text-5xl prose-h4:md:font-medium prose-h5:text-3xl prose-h6:text-2xl prose-a:no-underline hover:prose-a:underline hover:prose-a:text-red-700 active:prose-a:text-red-900 prose-ul:my-0 prose-ol:my-0 prose-h1:text-red-500 prose-h6:text-lg prose-h6:md:text-xl prose-h1:font-normal prose-li:not-prose prose-blockquote:pl-6 prose-blockquote:lg:pl-12 prose-blockquote:border-teal-300 max-w-full prose-li:marker:text-red-500 prose-p:my-0",...(0,m.K1)(i),children:[(null==i?void 0:i.Title)?(0,h.jsx)("p",{children:(0,h.jsx)("strong",{children:i.Title})}):void 0,(0,h.jsxs)("table",{className:"table-fixed",children:[f&&(0,h.jsx)("thead",{children:(0,h.jsx)("tr",{className:"bg-red-500 text-white",children:null==(r=a[0])||null==(n=r.cells)?void 0:n.map((e,t)=>(0,h.jsx)("th",{className:"px-4 *:text-white *:font-bold ".concat(p(e)," ").concat(0!==t||u(e)?"":"bg-grey-50"),style:d(t),children:u(e)},t))})}),(0,h.jsx)("tbody",{children:a.slice(+!!f).map((e,t)=>{var n;let r=f?t+1:t;return(0,h.jsx)("tr",{className:s&&r%2==1?"bg-gray-500 *:text-white":"",children:null==(n=e.cells)?void 0:n.map((e,t)=>{let n=g&&0===t;return(0,h.jsx)(n?"th":"td",{className:n?"bg-red-500 *:text-white *:font-bold px-4 ".concat(p(e)):"px-4 ".concat(p(e)),style:d(t),children:u(e)},t)})},t)})})]}),_(null==i?void 0:i.Footnotes)?(0,h.jsx)(cf,{children:i.Footnotes}):void 0]},i._uid)},Text:e=>{let{blok:t,className:n}=e;return(0,h.jsx)("div",{className:"text-grey-500 prose prose-a:text-red-500 prose-headings:text-red-500 prose-headings:font-display prose-h2:text-6xl prose-h2:md:text-8xl prose-h3:text-5xl prose-h3:md:text-6xl prose-h3:font-extrabold prose-h4:text-4xl prose-h4:md:text-5xl prose-h4:md:font-medium prose-h5:text-3xl prose-h6:text-2xl prose-a:no-underline hover:prose-a:underline hover:prose-a:text-red-700 active:prose-a:text-red-900 prose-ul:space-y-3 prose-ul:mt-5 prose-h1:text-red-500 prose-h6:text-lg prose-h6:md:text-xl prose-h1:font-normal prose-li:not-prose prose-blockquote:pl-6 prose-blockquote:lg:pl-12 prose-blockquote:border-teal-300 max-w-full prose-li:marker:text-red-500 ".concat(n),...(0,m.K1)(t),
28children:(0,h.jsx)(ab,{remarkPlugins:[co,cp],children:aj(t.Markdown)})},t._uid)},Panel_Link:e=>{var t,n;let{blok:r}=e;return(0,h.jsxs)("li",{className:"flex-1 space-y-6",...(0,m.K1)(r),children:[(0,h.jsx)("h4",{className:"text-4xl md:text-5xl md:font-medium font-display text-red-500",children:null==r?void 0:r.Title}),(0,h.jsx)(cf,{className:"text-grey-500 text-base",children:null==r?void 0:r.Blurb}),(0,h.jsx)(n9,{className:"text-red-500 md:text-xl inline-block",href:G(null==r?void 0:r.Link),target:null==r||null==(t=r.Link)?void 0:t.target,children:null==r||null==(n=r.Link)?void 0:n.url})]})},Office_Location:e=>{var t,n,r,i,l,a,o,s,c;let{blok:u}=e,{t:d}=(0,y.Bd)("common");return(0,h.jsxs)("div",{className:"space-y-6 md:space-y-0 md:space-x-12 ".concat((null==u||null==(t=u.Image)?void 0:t.filename)?"flex flex-col md:flex-row":"md:inline-flex md:w-1/3 pr-4 last:pr-0"),...(0,m.K1)(u),children:[(null==u||null==(n=u.Image)?void 0:n.filename)?(0,h.jsx)(n9,{className:"md:w-1/2",href:G(null==u?void 0:u.Link),target:null==u||null==(r=u.Link)?void 0:r.target,"aria-label":d("components.Office_Location.visit_office",{name:null==u?void 0:u.Title}),children:(0,h.jsxs)("picture",{className:"flex h-full",children:[(0,h.jsx)("source",{media:"(max-width: 767px)",srcSet:Z(null==u||null==(i=u.Image)?void 0:i.filename,767,"16:9",null==u||null==(l=u.Image)?void 0:l.focus),sizes:"(max-width: 768px) 100vw, 767px"}),(0,h.jsx)("source",{media:"(min-width: 768px)",srcSet:Z(null==u||null==(a=u.Image)?void 0:a.filename,640,"1.7:1",null==u||null==(o=u.Image)?void 0:o.focus),sizes:"(max-width: 1280px) 50vw, 640px"}),(0,h.jsx)(J,{src:"".concat(null==u||null==(s=u.Image)?void 0:s.filename,"/m/6x0/"),alt:(null==u||null==(c=u.Image)?void 0:c.alt)||"Map to our office in ".concat(null==u?void 0:u.Title),className:"h-auto w-full object-cover aspect-video md:aspect-[1.7/1]"})]})}):void 0,(0,h.jsxs)("div",{className:"space-y-6",children:[(0,h.jsx)("h3",{className:"text-5xl md:text-6xl font-extrabold font-display text-red-500",children:null==u?void 0:u.Title}),(0,h.jsx)(cf,{className:"text-grey-500 prose-a:no-underline prose-a:text-red-500 hover:prose-a:underline hover:prose-a:text-red-700 active:prose-a:text-red-900 prose-h4:text-4xl prose-h4:md:text-5xl prose-h4:text-grey-500 prose-h4:md:font-medium prose-h4:font-display",children:null==u?void 0:u.Details})]})]})},Resources_For_You:e=>{var t;let{blok:n}=e;return(0,h.jsxs)("aside",{className:"flex flex-col bg-white p-6",...(0,m.K1)(n),children:[(0,h.jsx)("h3",{className:"text-red-500 text-2xl uppercase pb-6 font-display",children:null==n?void 0:n.Title}),(0,h.jsx)("ul",{className:"space-y-6",children:null==n||null==(t=n.Resource_Panels)?void 0:t.map(e=>{var t,r,i,l,a,o,s,c,u,d,p,f,m,g,v,y,x,b,w,j,S,k,C,N,E,P,T,O,R,L,I,A,M,F,D,H,B,$,z,V,W,U,q,Q,K,G,Y,X,ee,et,en,er,ei,el,ea,eo,es,ec;return(null==e||null==(t=e.content)?void 0:t.component)==="Resource_Details"&&((null==e||null==(ea=e.content)||null==(el=ea.Link)||null==(ei=el.cached_url)?void 0:ei.length)&&(e.full_slug=e.content.Link.cached_url),(null==e||null==(ec=e.content)||null==(es=ec.Link)||null==(eo=es.url)?void 0:eo.length)&&(e.full_slug=e.content.Link.url)),(null==e||null==(r=e.content)?void 0:r.Title)||(null==e||null==(a=e.content)||null==(l=a.Hero)||null==(i=l[0])?void 0:i.Heading)||_(null==e||null==(o=e.content)?void 0:o.Blurb)||_(null==e||null==(u=e.content)||null==(c=u.Hero)||null==(s=c[0])?void 0:s.Short_Blurb)?(0,h.jsx)("li",{className:"bg-white",children:(0,h.jsxs)(n9,{href:"".concat((null==e||null==(d=e.content)?void 0:d.component)==="Resource_Details"?e.full_slug:"/".concat(e.full_slug)),target:null==n||null==(p=n.Link)?void 0:p.target,className:"flex space-x-6 group/sidebar",children:[(null==e||null==(m=e.content)||null==(f=m.Image)?void 0:f.filename)||(null==e||null==(x=e.content)||null==(y=x.Hero)||null==(v=y[0])||null==(g=v.Full_Width_Image)?void 0:g.filename)?(0,h.jsx)("picture",{className:"w-24 h-24 aspect-square overflow-hidden block flex-shrink-0",children:(0,h.jsx)(J,{src:(null==e||null==(w=e.content)||null==(b=w.Image)?void 0:b.filename)||(null==e||null==(C=e.content)||null==(k=C.Hero)||null==(S=k[0])||null==(j=S.Full_Width_Image)?void 0:j.filename),srcSet:Z((null==e||null==(E=e.content)||null==(N=E.Image)?void 0:N.filename)||(null==e||null==(R=e.content)||null==(O=R.Hero)||null==(T=O[0])||null==(P=T.Full_Width_Image)?void 0:P.filename),320,"1:1",(null==e||null==(I=e.content)||null==(L=I.Image)?void 0:L.focus)||(null==e||null==(F=e.Hero)||null==(M=F[0])||null==(A=M.Full_Width_Image)?void 0:A.focus)),alt:(null==e||null==(H=e.content)||null==(D=H.Image)?void 0:D.alt)||(null==e||null==(z=e.Hero)||null==($=z[0])||null==(B=$.Full_Width_Image)?void 0:B.alt)||"".concat((null==e||null==(V=e.content)?void 0:V.Title)||(null==e||null==(q=e.content)||null==(U=q.Hero)||null==(W=U[0])?void 0:W.Heading)||""," Resource Image"),className:"h-auto w-full object-cover"})}):void 0,(0,h.jsxs)("div",{className:"text-grey-500 space-y-3 group-hover/sidebar:text-red-500 group-active/sidebar:text-red-700 transition duration-150 ease-in-out",children:[(0,h.jsx)("span",{className:"text-3xl font-display line-clamp-1 pb-px",children:(null==e||null==(Q=e.content)?void 0:Q.Title)||(null==e||null==(Y=e.content)||null==(G=Y.Hero)||null==(K=G[0])?void 0:K.Heading)}),(0,h.jsx)(cf,{className:"text-base text-grey-500 line-clamp-2",children:_(null==e||null==(X=e.content)?void 0:X.Blurb)?null==e||null==(ee=e.content)?void 0:ee.Blurb:null==e||null==(er=e.content)||null==(en=er.Hero)||null==(et=en[0])?void 0:et.Short_Blurb})]})]})},e.uuid):void 0})})]})},Resource_Panel:e=>{var t,n,r,i,l,a;let{blok:o}=e;return(0,h.jsx)("li",{className:"bg-white",children:(0,h.jsxs)(n9,{href:G(null==o?void 0:o.Link),target:null==o||null==(t=o.Link)?void 0:t.target,className:"flex space-x-6 group/sidebar",children:[(null==o||null==(n=o.Image)?void 0:n.filename)?(0,h.jsx)("picture",{className:"w-24 h-24 aspect-square overflow-hidden block flex-shrink-0",children:(0,h.jsx)(J,{src:null==o||null==(r=o.Image)?void 0:r.filename,srcSet:Z(null==o||null==(i=o.Image)?void 0:i.filename,436,0,null==o||null==(l=o.Image)?void 0:l.focus),alt:(null==o||null==(a=o.Image)?void 0:a.alt)||"Resource Image",className:"h-auto w-full object-cover"})}):void 0,(0,h.jsxs)("div",{className:"text-grey-500 space-y-3 group-hover/sidebar:text-red-500 group-active/sidebar:text-red-700 transition duration-150 ease-in-out",children:[(0,h.jsx)("span",{className:"text-3xl font-display line-clamp-1 pb-px",children:null==o?void 0:o.Title}),(0,h.jsx)(cf,{className:"text-base text-grey-500 line-clamp-2",children:null==o?void 0:o.Blurb})]})]})})},CTA_Panel:e=>{var t,n,r,i,l,a,o,s,c,u,d,p,f,g;let{blok:v}=e,y={blue:{card:"bg-blue-100",text:"text-blue-900",cta:"bg-blue-500 hover:bg-blue-700 active:bg-blue-900",ctaText:"text-white"}};return(0,h.jsxs)("aside",{className:"space-y-6 p-6 ".concat((null==(t=y[null==v?void 0:v.Colour_Scheme])?void 0:t.card)||"bg-blue-100"," ").concat((null==(n=y[null==v?void 0:v.Colour_Scheme])?void 0:n.text)||"text-grey-500"),...(0,m.K1)(v),children:[(null==v?void 0:v.Title)?(0,h.jsx)("span",{className:"text-base font-medium uppercase font-display",children:null==v?void 0:v.Title}):void 0,(0,h.jsx)(cf,{className:"text-xs ".concat((null==(r=y[null==v?void 0:v.Colour_Scheme])?void 0:r.text)||"text-blue-900"),children:null==v?void 0:v.Blurb}),(null==v||null==(l=v.Link)||null==(i=l[0])?void 0:i.Title)?(0,h.jsx)(n9,{href:G(null==v||null==(o=v.Link)||null==(a=o[0])?void 0:a.Link),target:null==v||null==(u=v.Link)||null==(c=u[0])||null==(s=c.Link)?void 0:s.target,className:"inline-block transition duration-150 ease-in-out py-3 px-6 ".concat((null==(d=y[null==v?void 0:v.Colour_Scheme])?void 0:d.cta)||"bg-blue-500 hover:bg-blue-700 active:bg-blue-900"," ").concat((null==(p=y[null==v?void 0:v.Colour_Scheme])?void 0:p.ctaText)||"text-white"),children:null==v||null==(g=v.Link)||null==(f=g[0])?void 0:f.Title}):void 0]})},Grid_Panel:e=>{var t,n,r,i,l,a,o,s,c,u,d,p,f;let{blok:g}=e,v=/^[a-z\/-]+$/i.test(null==g||null==(n=g.Link[0])||null==(t=n.Link)?void 0:t.cached_url),y=null==g||null==(a=g.Link)||null==(l=a[0])||null==(i=l.Link)||null==(r=i.anch
28or)?void 0:r.length;return(0,h.jsxs)("li",{className:"flex flex-col flex-1 space-y-6",...(0,m.K1)(g),children:[(0,h.jsx)("h2",{className:"order-first text-4xl md:text-5xl md:font-medium font-display text-red-500",children:null==g?void 0:g.Title}),(0,h.jsx)(cf,{className:"".concat((null==g?void 0:g.Invert_Layout)?"order-last":""," grid-panel text-grey-500 text-base prose-a:no-underline prose-a:text-grey-500 hover:prose-a:underline hover:prose-a:text-red-700 active:prose-a:text-red-900"),children:null==g?void 0:g.Blurb}),(null==g||null==(o=g.Link[0])?void 0:o.Title)?(0,h.jsx)(n9,{href:G(null==g||null==(c=g.Link)||null==(s=c[0])?void 0:s.Link),target:null==g||null==(p=g.Link)||null==(d=p[0])||null==(u=d.Link)?void 0:u.target,onClick:e=>y?Y(e,{offset:100}):null,className:"inline-block transition duration-150 ease-in-out ".concat(v?"w-fit py-3 px-6 bg-red-500 hover:bg-red-700 active:bg-red-900 text-white":"text-red-500 hover:underline active:underline hover:text-red-700 active:text-red-900 md:text-xl"),children:null==g||null==(f=g.Link[0])?void 0:f.Title}):void 0]})},Action_Panel:e=>{let{blok:t}=e;return(0,h.jsxs)("aside",{id:oW(null==t?void 0:t.Title),className:"not-prose space-y-4 px-12 py-8 bg-red-500 text-white",...(0,m.K1)(t),children:[(null==t?void 0:t.Blurb)?(0,h.jsx)("h3",{className:"text-3xl font-body font-extrabold",children:null==t?void 0:t.Title}):void 0,_(null==t?void 0:t.Blurb)?(0,h.jsx)("div",{className:"text-sm text-white",children:z(null==t?void 0:t.Blurb,{markResolvers:{link:X},nodeResolvers:er})}):void 0]})},Markdown:e=>{let{blok:t,type:n}=e;return(0,h.jsx)("div",{className:"text-grey-500 prose prose-a:text-red-500 prose-headings:text-red-500 prose-headings:font-display prose-h2:text-6xl prose-h2:md:text-8xl prose-h3:text-5xl prose-h3:md:text-6xl prose-h3:font-extrabold prose-h4:text-4xl prose-h4:md:text-5xl prose-h4:md:font-medium prose-h5:text-3xl prose-h6:text-2xl prose-a:no-underline hover:prose-a:underline hover:prose-a:text-red-700 active:prose-a:text-red-900 prose-ul:space-y-3 prose-ul:mt-5 prose-h1:text-red-500 prose-h6:text-lg prose-h6:md:text-xl prose-h1:font-normal prose-li:not-prose prose-blockquote:pl-6 prose-blockquote:lg:pl-12 prose-blockquote:border-teal-300 max-w-full prose-li:marker:text-red-500",children:(0,h.jsx)(ab,{remarkPlugins:[co,cp],children:aj(null==t?void 0:t.Content_Body)})},t._uid)},Rich_Text_Blok:e=>{let{blok:t}=e;return _(null==t?void 0:t.Content_Body)?(0,h.jsx)(cf,{className:"text-grey-500 prose prose-a:text-red-500 prose-headings:text-red-500 prose-headings:font-display prose-h2:text-6xl prose-h2:md:text-8xl prose-h3:text-5xl prose-h3:md:text-6xl prose-h3:font-extrabold prose-h4:text-4xl prose-h4:md:text-5xl prose-h4:md:font-medium prose-h5:text-3xl prose-h6:text-2xl prose-a:no-underline hover:prose-a:underline hover:prose-a:text-red-700 active:prose-a:text-red-900 prose-ul:space-y-3 prose-ul:mt-5 prose-h1:text-red-500 prose-h6:text-lg prose-h6:md:text-xl prose-h1:font-normal prose-li:not-prose prose-blockquote:pl-6 prose-blockquote:lg:pl-12 prose-blockquote:border-teal-300 max-w-full prose-li:marker:text-red-500",children:t.Content_Body}):void 0},Video_Embed:e=>{var t,n,r,i;let l,{blok:a,type:o}=e;(null==a||null==(t=a.Youtube_URL)?void 0:t.url)&&(null==a||null==(n=a.Youtube_URL)?void 0:n.url.match(/^(https?:\/\/)?(www\.)?(youtube\.com|youtu\.?be)\/.+$/gm))&&(l=new URL(null!=(i=null==a||null==(r=a.Youtube_URL)?void 0:r.url)?i:void 0).searchParams.get("v"));let[s,c]=(0,p.useState)(!1),u=(0,p.useRef)(null),d=()=>{c(!s)};return(0,p.useEffect)(()=>{let e=e=>{u.current&&!u.current.contains(e.target)&&d()},t=e=>{"Escape"===e.key&&d()};return s&&(document.addEventListener("click",e,!0),document.addEventListener("keydown",t)),()=>{document.removeEventListener("click",e,!0),document.removeEventListener("keydown",t)}},[s,u]),(0,h.jsx)("div",{className:"my-24",...(0,m.K1)(a),children:(0,h.jsxs)(w.A,{className:"xl:px-0",mobile:"Intro"!==o&&"News_Article_Layout"!==o,tablet:"Intro"!==o&&"News_Article_Layout"!==o,desktop:"Intro"!==o&&"News_Article_Layout"!==o,children:[s?(0,h.jsx)("iframe",{ref:u,title:"Video Embed",className:"aspect-video w-full",src:"https://www.youtube.com/embed/".concat(l,"?feature=oembed&width:100%&autoplay=1"),frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope;
28 picture-in-picture",allowFullScreen:!0,referrerPolicy:"strict-origin-when-cross-origin"}):void 0,s?void 0:(0,h.jsxs)("picture",{onClick:d,onKeyPress:e=>{("Enter"===e.key||" "===e.key)&&d()},tabIndex:"0",role:"button",className:"group/thumbnail relative w-full h-full block aspect-video",children:[(0,h.jsx)("img",{sizes:"100vw",src:"https://img.youtube.com/vi/".concat(l,"/maxresdefault.jpg"),alt:"Youtube Video",className:"h-full w-full object-cover brightness-50 group-hover/thumbnail:brightness-75 transition duration-300 ease-in-out"}),(0,h.jsx)("button",{className:"absolute cursor-pointer top-1/2 left-1/2 -translate-y-1/2 -translate-x-1/2",children:(0,h.jsx)("svg",{className:"h-16 w-16 md:h-20 md:w-20 text-red-500 group-hover/thumbnail:text-red-900 transition duration-300 ease-in-out drop-shadow-lg",viewBox:"0 0 12 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M0.92749 1.81976V12.1798C0.92749 12.9698 1.79749 13.4498 2.46749 13.0198L10.6075 7.83976C11.2275 7.44976 11.2275 6.54976 10.6075 6.14976L2.46749 0.979764C1.79749 0.549764 0.92749 1.02976 0.92749 1.81976Z",fill:"currentColor"})})})]})]})})},Iframe_Content_Embed:e=>{var t,n;let{blok:r,type:i}=e;return(0,h.jsx)("div",{className:"my-24",...(0,m.K1)(r),children:(0,h.jsx)(w.A,{className:"xl:px-0",mobile:"Intro"!==i&&"News_Article_Layout"!==i,tablet:"Intro"!==i&&"News_Article_Layout"!==i,desktop:"Intro"!==i&&"News_Article_Layout"!==i,children:(null==r||null==(t=r.Source_URL)?void 0:t.url)?(0,h.jsx)(uX,{contentTitle:null==r?void 0:r.Content_Title,contentSource:null==r||null==(n=r.Source_URL)?void 0:n.url,desktopAspectRatio:null==r?void 0:r.Desktop_Aspect_Ratio,mobileAspectRatio:null==r?void 0:r.Mobile_Aspect_Ratio}):void 0})})},Eventbrite_Embed:e=>{let{blok:t,type:n}=e;return(0,h.jsx)("div",{className:"my-24",...(0,m.K1)(t),children:(0,h.jsx)(w.A,{className:"xl:px-0",mobile:"Intro"!==n&&"News_Article_Layout"!==n,tablet:"Intro"!==n&&"News_Article_Layout"!==n,desktop:"Intro"!==n&&"News_Article_Layout"!==n,children:(0,h.jsx)(d5,{className:"cursor-pointer bg-red-500 text-white hover:bg-red-700 active:bg-red-900 transition duration-150 ease-in-out font-body py-3 px-6 mb-2 inline-block",eventId:null==t?void 0:t.Event_Id,widgetType:null==t?void 0:t.Widget_Type,buttonText:null==t?void 0:t.Button_Text,iframeHeight:null==t?void 0:t.Iframe_Height})})})}}});let yC=(0,y.Zh)(e=>{let{Component:t,pageProps:n}=e;(0,g.useRouter)();let[r,i]=(0,p.useState)(null);return v(),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(b(),{id:"gtag-base",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:"\n            (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n            new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n            j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n            'https://www.googletagmanager.com/gtm.js?id='
28+i+dl;f.parentNode.insertBefore(j,f);\n            })(window,document,'script','dataLayer', '".concat("GTM-PVLXSD3","');\n          ")}}),(0,h.jsx)(az,{fallback:(0,h.jsx)(aV.default,{}),children:(0,h.jsx)(a$,{...n,children:(0,h.jsx)(t,{...n})})})]})})},3717:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},3724:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},3833:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(8945)),i=n(4181);function l(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}l.default=l,e.exports=l},4005:(e,t,n)=>{"use strict";var r=n(7535),i=n(9958),l=n(5125),a=n(6957),o=n(8643),s=n(885),c=n(8097),u=n(7823),d=l.escapeFacetValue,h=l.unescapeFacetValue,p=n(5329);function f(e){var t={};return e.forEach(function(e,n){t[e]=n}),t}function m(e,t,n){t&&t[n]&&(e.stats=t[n])}function g(e,t,n){var l=t[0]||{};this._rawResults=t;var s=this;Object.keys(l).forEach(function(e){s[e]=l[e]});var u=i(n,{persistHierarchicalRootCount:!1});Object.keys(u).forEach(function(e){s[e]=u[e]}),this.processingTimeMS=t.reduce(function(e,t){return void 0===t.processingTimeMS?e:e+t.processingTimeMS},0),this.disjunctiveFacets=[],this.hierarchicalFacets=e.hierarchicalFacets.map(function(){return[]}),this.facets=[];var d=e.getRefinedDisjunctiveFacets(),g=f(e.facets),v=f(e.disjunctiveFacets),y=1,x=l.facets||{};Object.keys(x).forEach(function(t){var n=x[t],r=(u=e.hierarchicalFacets,a(u,function(e){return(e.attributes||[]).indexOf(t)>-1}));if(r){var i=r.attributes.indexOf(t),c=o(e.hierarchicalFacets,function(e){return e.name===r.name});s.hierarchicalFacets[c][i]={attribute:t,data:n,exhaustive:l.exhaustiveFacetsCount}}else{var u,d,h=-1!==e.disjunctiveFacets.indexOf(t),p=-1!==e.facets.indexOf(t);h&&(d=v[t],s.disjunctiveFacets[d]={name:t,data:n,exhaustive:l.exhaustiveFacetsCount},m(s.disjunctiveFacets[d],l.facets_stats,t)),p&&(d=g[t],s.facets[d]={name:t,data:n,exhaustive:l.exhaustiveFacetsCount},m(s.facets[d],l.facets_stats,t))}}),this.hierarchicalFacets=r(this.hierarchicalFacets),d.forEach(function(n){var r=t[y],a=r&&r.facets?r.facets:{},u=e.getHierarchicalFacetByName(n);Object.keys(a).forEach(function(t){var n,d=a[t];if(u){n=o(e.hierarchicalFacets,function(e){return e.name===u.name});var p=o(s.hierarchicalFacets[n],function(e){return e.attribute===t});if(-1===p)return;s.hierarchicalFacets[n][p].data=s.persistHierarchicalRootCount?c(s.hierarchicalFacets[n][p].data,d):i(d,s.hierarchicalFacets[n][p].data)}else{n=v[t];var f=l.facets&&l.facets[t]||{};s.disjunctiveFacets[n]={name:t,data:c(f,d),exhaustive:r.exhaustiveFacetsCount},m(s.disjunctiveFacets[n],r.facets_stats,t),e.disjunctiveFacetsRefinements[t]&&e.disjunctiveFacetsRefinements[t].forEach(function(r){!s.disjunctiveFacets[n].data[r]&&e.disjunctiveFacetsRefinements[t].indexOf(h(r))>-1&&(s.disjunctiveFacets[n].data[r]=0)})}}),y++}),e.getRefinedHierarchicalFacets().forEach(function(n){var r=e.getHierarchicalFacetByName(n),l=e._getHierarchicalFacetSeparator(r),a=e.getHierarchicalRefinement(n);0===a.length||a[0].split(l).length<2||t.slice(y).forEach(function(t){var n=t&&t.facets?t.facets:{};Object.keys(n).forEach(function(t){var c=n[t],u=o(e.hierarchicalFacets,function(e){return e.name===r.name}),d=o(s.hierarchicalFacets[u],function(e){return e.attribute===t});if(-1!==d){var h={};if(a.length>0&&!s.persistHierarchicalRootCount){var p=a[0].split(l)[0];h[p]=s.hierarchicalFacets[u][d].data[p]}s.hierarchicalFacets[u][d].data=i(h,c,s.hierarchicalFacets[u][d].data)}}),y++})}),Object.keys(e.facetsExcludes).forEach(function(t){var n=e.facetsExcludes[t],r=g[t];s.facets[r]={name:t,data:x[t],exhaustive:l.exhaustiveFacetsCount},n.forEach(function(e){s.facets[r]=s.facets[r]||{name:t},s.facets[r].data=s.facets[r].data||{},s.facets[r].data[e]=0})}),this.hierarchicalFacets=this.hierarchicalFacets.map(p(e)),this.facets=r(this.facets),this.disjunctiveFacets=r(this.disjunctiveFacets),this._state=e}function v(e,t){var n=a(e,function(e){return e.name===t});return n&&n.stats}function y(e,t,n,r,i){var l=a(i,function(e){return e.name===n}),o=l&&l.data&&l.data[r]?l.data[r]:0;return{type:t,attributeName:n,name:r,count:o,exhaustive:l&&l.exhaustive||!1}}g.prototype.getFacetByName=function(e){function t(t){return t.name===e}return a(this.facets,t)||a(this.disjunctiveFacets,t)||a(this.hierarchicalFacets,t)}
28,g.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"],g.prototype.getFacetValues=function(e,t){var n,r=function(e,t){function n(e){return e.name===t}if(e._state.isConjunctiveFacet(t)){var r=a(e.facets,n);return r?Object.keys(r.data).map(function(n){var i=d(n);return{name:n,escapedValue:i,count:r.data[n],isRefined:e._state.isFacetRefined(t,i),isExcluded:e._state.isExcludeRefined(t,n)}}):[]}if(e._state.isDisjunctiveFacet(t)){var i=a(e.disjunctiveFacets,n);return i?Object.keys(i.data).map(function(n){var r=d(n);return{name:n,escapedValue:r,count:i.data[n],isRefined:e._state.isDisjunctiveFacetRefined(t,r)}}):[]}if(e._state.isHierarchicalFacet(t)){var l=a(e.hierarchicalFacets,n);if(!l)return l;var o=e._state.getHierarchicalFacetByName(t),s=e._state._getHierarchicalFacetSeparator(o),c=h(e._state.getHierarchicalRefinement(t)[0]||"");0===c.indexOf(o.rootPath)&&(c=c.replace(o.rootPath+s,""));var u=c.split(s);return u.unshift(t),function e(t,n,r){t.isRefined=t.name===(n[r]&&n[r].trim()),t.data&&t.data.forEach(function(t){e(t,n,r+1)})}(l,u,0),l}}(this,e);if(r){var l=i(t,{sortBy:g.DEFAULT_SORT,facetOrdering:!(t&&t.sortBy)}),o=this;return n=Array.isArray(r)?[e]:o._state.getHierarchicalFacetByName(r.name).attributes,function e(t,n,r,l){if(l=l||0,Array.isArray(n))return t(n,r[l]);if(!n.data||0===n.data.length)return n;var a=n.data.map(function(n){return e(t,n,r,l+1)});return i({data:t(a,r[l])},n)}(function(e,t){if(l.facetOrdering){var n,r,i,a,c,d,h,p=o.renderingContent&&o.renderingContent.facetOrdering&&o.renderingContent.facetOrdering.values&&o.renderingContent.facetOrdering.values[t];if(p)return i=[],a=[],c=p.hide||[],d=(p.order||[]).reduce(function(e,t,n){return e[t]=n,e},{}),e.forEach(function(e){var t=e.path||e.name,n=c.indexOf(t)>-1;n||void 0===d[t]?n||a.push(e):i[d[t]]=e}),i=i.filter(function(e){return e}),"hidden"===(h=p.sortRemainingBy)?i:(r="alpha"===h?[["path","name"],["asc","asc"]]:[["count"],["desc"]],i.concat(u(a,r[0],r[1])))}if(Array.isArray(l.sortBy)){var f=s(l.sortBy,g.DEFAULT_SORT);return u(e,f[0],f[1])}if("function"==typeof l.sortBy)return n=l.sortBy,e.sort(n);throw Error("options.sortBy is optional but if defined it must be either an array of string (predicates) or a sorting function")},r,n)}},g.prototype.getFacetStats=function(e){return this._state.isConjunctiveFacet(e)?v(this.facets,e):this._state.isDisjunctiveFacet(e)?v(this.disjunctiveFacets,e):void 0},g.prototype.getRefinements=function(){var e=this._state,t=this,n=[];return Object.keys(e.facetsRefinements).forEach(function(r){e.facetsRefinements[r].forEach(function(i){n.push(y(e,"facet",r,i,t.facets))})}),Object.keys(e.facetsExcludes).forEach(function(r){e.facetsExcludes[r].forEach(function(i){n.push(y(e,"exclude",r,i,t.facets))})}),Object.keys(e.disjunctiveFacetsRefinements).forEach(function(r){e.disjunctiveFacetsRefinements[r].forEach(function(i){n.push(y(e,"disjunctive",r,i,t.disjunctiveFacets))})}),Object.keys(e.hierarchicalFacetsRefinements).forEach(function(r){e.hierarchicalFacetsRefinements[r].forEach(function(i){var l,o,s,c,u,d,h,p,f,m,g;n.push((l=e,o=r,s=i,c=t.hierarchicalFacets,u=l.getHierarchicalFacetByName(o),d=l._getHierarchicalFacetSeparator(u),h=s.split(d),p=a(c,function(e){return e.name===o}),m=(f=h.reduce(function(e,t){var n=e&&a(e.data,function(e){return e.name===t});return void 0!==n?n:e},p))&&f.count||0,g=f&&f.exhaustive||!1,{type:"hierarchical",attributeName:o,name:f&&f.path||"",count:m,exhaustive:g}))})}),Object.keys(e.numericRefinements).forEach(function(t){var r=e.numericRefinements[t];Object.keys(r).forEach(function(e){r[e].forEach(function(r){n.push({type:"numeric",attributeName:t,name:r,numericValue:r,operator:e})})})}),e.tagRefinements.forEach(function(e){n.push({type:"tag",attributeName:"_tags",name:e})}),n},e.exports=g},4181:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,l=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e,t){return t.toUpperCase()},s=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var c;return(void 0===t&&(t={}),!(c=e)||i.test(c)||n.test(c))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,s):e.replace(l,s)).replace(r,o))}},4247:(e,t,n)=>{"use strict";var r=n(2591),i=n(3250),l=n(5125).escapeFacetValue,a=n(1010),o=n(9974),s=n(9679),c=n(415),u=n(8561),d=n(8539),h=n(9048),p=n(5983),f=n(4005),m=n(8595),g=n(1800);function v(e,t,n,r){"function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+g+")"),this.setClient(e);var i=n||{};i.index=t,this.state=p.make(i),this.recommendState=new u({params:i.recommendState}),this.lastResults=null,this.lastRecommendResults=null,this._queryId=0,this._recommendQueryId=0,this._lastQueryIdReceived=-1,this._lastRecommendQueryId
28Received=-1,this.derivedHelpers=[],this._currentNbQueries=0,this._currentNbRecommendQueries=0,this._searchResultsOptions=r,this._recommendCache={}}function y(e){if(e<0)throw Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}function x(){return this.state.page}a(v,r),v.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},v.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},v.prototype.searchWithComposition=function(){return this._runComposition({onlyWithDerivedHelpers:!0}),this},v.prototype.recommend=function(){return this._recommend(),this},v.prototype.getQuery=function(){var e=this.state;return h._getHitsSearchParams(e)},v.prototype.searchOnce=function(e,t){var n=e?this.state.setQueryParameters(e):this.state,r=h._getQueries(n.index,n),i=this;return(this._currentNbQueries++,this.emit("searchOnce",{state:n}),t)?void this.client.search(r).then(function(e){i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),t(null,new f(n,e.results),n)}).catch(function(e){i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),t(e,null,n)}):this.client.search(r).then(function(e){return i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),{content:new f(n,e.results),state:n,_originalResponse:e}},function(e){throw i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),e})},v.prototype.findAnswers=function(e){console.warn("[algoliasearch-helper] answers is no longer supported");var t=this.state,n=this.derivedHelpers[0];if(!n)return Promise.resolve([]);var r=n.getModifiedState(t),i=o({attributesForPrediction:e.attributesForPrediction,nbHits:e.nbHits},{params:c(h._getHitsSearchParams(r),["attributesToSnippet","hitsPerPage","restrictSearchableAttributes","snippetEllipsisText"])}),l="search for answers was called, but this client does not have a function client.initIndex(index).findAnswers";if("function"!=typeof this.client.initIndex)throw Error(l);var a=this.client.initIndex(r.index);if("function"!=typeof a.findAnswers)throw Error(l);return a.findAnswers(r.query,e.queryLanguages,i)},v.prototype.searchForFacetValues=function(e,t,n,r){var i,a="function"==typeof this.client.searchForFacetValues&&"function"!=typeof this.client.searchForFacets,o="function"==typeof this.client.initIndex;if(!a&&!o&&"function"!=typeof this.client.search)throw Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues or client.initIndex(index).searchForFacetValues");var s=this.state.setQueryParameters(r||{}),c=s.isDisjunctiveFacet(e),u=h.getSearchForFacetQuery(e,t,n,s);this._currentNbQueries++;var d=this;return a?i=this.client.searchForFacetValues([{indexName:s.index,params:u}]):o?i=this.client.initIndex(s.index).searchForFacetValues(u):(delete u.facetName,i=this.client.search([{type:"facet",facet:e,indexName:s.index,params:u}]).then(function(e){return e.results[0]})),this.emit("searchForFacetValues",{state:s,facet:e,query:t}),i.then(function(t){return d._currentNbQueries--,0===d._currentNbQueries&&d.emit("searchQueueEmpty"),(t=Array.isArray(t)?t[0]:t).facetHits.forEach(function(t){t.escapedValue=l(t.value),t.isRefined=c?s.isDisjunctiveFacetRefined(e,t.escapedValue):s.isFacetRefined(e,t.escapedValue)}),t},function(e){throw d._currentNbQueries--,0===d._currentNbQueries&&d.emit("searchQueueEmpty"),e})},v.prototype.searchForCompositionFacetValues=function(e,t,n,r){if("function"!=typeof this.client.searchForFacetValues)throw Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues");var i,a=this.state.setQueryParameters(r||{}),o=a.isDisjunctiveFacet(e);this._currentNbQueries++;var s=this;return i=this.client.searchForFacetValues({compositionID:a.index,facetName:e,searchForFacetValuesRequest:{params:{query:t,maxFacetHits:n,searchQuery:h._getCompositionHitsSearchParams(a)}}}),this.emit("searchForFacetValues",{state:a,facet:e,query:t}),i.then(function(t){return s._currentNbQueries--,0===s._currentNbQueries&&s.emit("searchQueueEmpty"),(t=t.results[0]).facetHits.forEac
vendor: 8,395 bytes, line 28
28h(function(t){t.escapedValue=l(t.value),t.isRefined=o?a.isDisjunctiveFacetRefined(e,t.escapedValue):a.isFacetRefined(e,t.escapedValue)}),t},function(e){throw s._currentNbQueries--,0===s._currentNbQueries&&s.emit("searchQueueEmpty"),e})},v.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this},v.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this},v.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},v.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},v.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.addNumericRefinement=function(e,t,n){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,n),isPageReset:!0}),this},v.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},v.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this},v.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},v.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this},v.prototype.addFrequentlyBoughtTogether=function(e){return this._recommendChange({state:this.recommendState.addFrequentlyBoughtTogether(e)}),this},v.prototype.addRelatedProducts=function(e){return this._recommendChange({state:this.recommendState.addRelatedProducts(e)}),this},v.prototype.addTrendingItems=function(e){return this._recommendChange({state:this.recommendState.addTrendingItems(e)}),this},v.prototype.addTrendingFacets=function(e){return this._recommendChange({state:this.recommendState.addTrendingFacets(e)}),this},v.prototype.addLookingSimilar=function(e){return this._recommendChange({state:this.recommendState.addLookingSimilar(e)}),this},v.prototype.removeNumericRefinement=function(e,t,n){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,n),isPageReset:!0}),this},v.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},v.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this},v.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},v.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this},v.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},v.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this},v.prototype.removeFrequentlyBoughtTogether=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},v.prototype.removeRelatedProducts=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},v.prototype.removeTrendingItems=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},v.prototype.removeTrendingFacets=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},v.prototype.removeLookingSimilar=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},v.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},v.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},v.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},v.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),isPageReset:!0}),this},v.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)},v.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)},v.prototype.setCurrentPage=y,v.prototype.setPage=y,v.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this},v.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this},v.prototype.setState=function(e){return this._change({state:p.make(e),isPageReset:!1}),this},v.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new p(e),this},v.prototype.hasRefinements=function(e){return!!s(this.state.getNumericRefinements(e))||(this.state.isConjunctiveFacet(e)?this.state.isFacetRefined(e):this.state.isDisjunctiveFacet(e)?this.state.isDisjunctiveFacetRefined(e):!!this.state.isHierarchicalFacet(e)&&this.state.isHierarchicalFacetRefined(e))},v.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},v.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},v.prototype.hasTag=function(e){return this.state.isTagRefined(e)},v.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},v.prototype.getIndex=function(){return this.state.index},v.prototype.getCurrentPage=x,v.prototype.getPage=x,v.prototype.getTags=function(){return this.state.tagRefinements},v.prototype.getRefinements=function(e){var t=[];this.state.isConjunctiveFacet(e)?(this.state.getConjunctiveRefinements(e).forEach(function(e){t.push({value:e,type:"conjunctive"})}),this.state.getExcludeRefinements(e).forEach(function(e){t.push({value:e,type:"exclude"})})):this.state.isDisjunctiveFacet(e)&&this.state.getDisjunctiveRefinements(e).forEach(function(e){t.push({value:e,type:"disjunctive"})});var n=this.state.getNumericRefinements(e);return Object.keys(n).forEach(function(e){var r=n[e];t.push({value:r,operator:e,type:"numeric"})}),t},v.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},v.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},v.prototype._search=function(e){var t=this.state,n=[],r=[];e.onlyWithDerivedHelpers||(r=h._getQueries(t.index,t),n.push({state:t,queriesCount:r.length,helper:this}),this.emit("search",{state:t,results:this.lastResults}));var i=this.derivedHelpers.map(function(e){var r=e.getModifiedState(t),i=r.index?h._getQueries(r.index,r):[];return n.push({state:r,queriesCount:i.length,helper:e}),e.emit("search",{state:r,results:e.lastResults}),i}),l=Array.prototype.concat.apply(r,i),a=this._queryId++;if(this._currentNbQueries++,!l.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,n,a));try{this.client.search(l).then(this._dispatchAlgoliaResponse.bind(this,n,a)).catch(this._dispatchAlgoliaError.bind(this,a))}catch(e){this.emit("error",{error:e})}},v.prototype._runComposition=function(){var e=this.state,t=[],n=this.derivedHelpers.map(function(n){var r=n.getModifiedState(e),i=h._getCompositionQueries(r);return t.push({state:r,queriesCount:i.length,helper:n}),n.emit("search",{state:r,results:n.lastResults}),i}),r=Array.prototype.concat.apply([],n),i=this._queryId++;if(this._currentNbQueries++,!r.length)return Promise.resolve({results:[]}
28).then(this._dispatchAlgoliaResponse.bind(this,t,i));if(r.length>1)throw Error("Only one query is allowed when using a composition.");var l=r[0];try{this.client.search(l).then(this._dispatchAlgoliaResponse.bind(this,t,i)).catch(this._dispatchAlgoliaError.bind(this,i))}catch(e){this.emit("error",{error:e})}},v.prototype._recommend=function(){var e=this.state,t=this.recommendState,n=this.getIndex(),r=[{state:t,index:n,helper:this}],i=t.params.map(function(e){return e.$$id});this.emit("fetch",{recommend:{state:t,results:this.lastRecommendResults}});var l=this._recommendCache,a=this.derivedHelpers.map(function(t){var n=t.getModifiedState(e).index;if(!n)return[];var a=t.getModifiedRecommendState(new u);return r.push({state:a,index:n,helper:t}),i=Array.prototype.concat.apply(i,a.params.map(function(e){return e.$$id})),t.emit("fetch",{recommend:{state:a,results:t.lastRecommendResults}}),a._buildQueries(n,l)}),o=Array.prototype.concat.apply(this.recommendState._buildQueries(n,l),a);if(0!==o.length){if(o.length>0&&void 0===this.client.getRecommendations)return void console.warn("Please update algoliasearch/lite to the latest version in order to use recommend widgets.");var s=this._recommendQueryId++;this._currentNbRecommendQueries++;try{this.client.getRecommendations(o).then(this._dispatchRecommendResponse.bind(this,s,r,i)).catch(this._dispatchRecommendError.bind(this,s))}catch(e){this.emit("error",{error:e})}}},v.prototype._dispatchAlgoliaResponse=function(e,t,n){var r=this;if(!(t<this._lastQueryIdReceived)){this._currentNbQueries-=t-this._lastQueryIdReceived,this._lastQueryIdReceived=t,0===this._currentNbQueries&&this.emit("searchQueueEmpty");var i=n.results.slice(),l=Object.keys(n).reduce(function(e,t){return"results"!==t&&(e[t]=n[t]),e},{});Object.keys(l).length<=0&&(l=void 0),e.forEach(function(e){var t=e.state,n=e.queriesCount,a=e.helper,o=i.splice(0,n);if(!t.index)return void a.emit("result",{results:null,state:t});a.lastResults=new f(t,o,r._searchResultsOptions),void 0!==l&&(a.lastResults._rawContent=l),a.emit("result",{results:a.lastResults,state:t})})}},v.prototype._dispatchRecommendResponse=function(e,t,n,r){if(!(e<this._lastRecommendQueryIdReceived)){this._currentNbRecommendQueries-=e-this._lastRecommendQueryIdReceived,this._lastRecommendQueryIdReceived=e,0===this._currentNbRecommendQueries&&this.emit("recommendQueueEmpty");var i=this._recommendCache,l={};n.filter(function(e){return void 0===i[e]}).forEach(function(e,t){l[e]||(l[e]=[]),l[e].push(t)}),Object.keys(l).forEach(function(e){var t=l[e],a=r.results[t[0]];if(1===t.length){i[e]=a;return}i[e]=Object.assign({},a,{hits:m(n,t.map(function(e){return r.results[e].hits}))})});var a={};n.forEach(function(e){a[e]=i[e]}),t.forEach(function(e){var t=e.state,n=e.helper;if(!e.index)return void n.emit("recommend:result",{results:null,state:t});n.lastRecommendResults=new d(t,a),n.emit("recommend:result",{recommend:{results:n.lastRecommendResults,state:t}})})}},v.prototype._dispatchAlgoliaError=function(e,t){e<this._lastQueryIdReceived||(this._currentNbQueries-=e-this._lastQueryIdReceived,this._lastQueryIdReceived=e,this.emit("error",{error:t}),0===this._currentNbQueries&&this.emit("searchQueueEmpty"))},v.prototype._dispatchRecommendError=function(e,t){e<this._lastRecommendQueryIdReceived||(this._currentNbRecommendQueries-=e-this._lastRecommendQueryIdReceived,this._lastRecommendQueryIdReceived=e,this.emit("error",{error:t}),0===this._currentNbRecommendQueries&&this.emit("recommendQueueEmpty"))},v.prototype.containsRefinement=function(e,t,n,r){return e||0!==t.length||0!==n.length||0!==r.length},v.prototype._hasDisjunctiveRefinements=function(e){return this.state.disjunctiveRefinements[e]&&this.state.disjunctiveRefinements[e].length>0},v.prototype._change=function(e){var t=e.state,n=e.isPageReset;t!==this.state&&(this.state=t,this.emit("change",{state:this.state,results:this.lastResults,isPageReset:n}))},v.prototype._recommendChange=function(e){var t=e.state;t!==this.recommendState&&(this.recommendState=t,this.emit("recommend:change",{search:{results:this.lastResults,state:this.state},recommend:{results:this.lastRecommendResults,state:this.recommendState}}))},v.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},v.prototype.setClient=function(e){return this.client===e||("function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+g+")"),this.client=e),this},v.prototype.getClient=function(){return this.client},v.prototype.derive=function(e,t){var n=new i(this,e,t);return this.derivedHelpers.push(n),n},v.prototype.detachDerivedHelper=function(e){var t=this.derivedHelpers.indexOf(e);if(-1===t)throw Error("Derived helper already detached");this.derivedHelpers.splice(t,1)},v.prototype.hasPendingRequests=function(){return this._currentNbQueries>0},e.exports=v},4290:(e,t,n)=>{"use strict";var r=n(7278),i=n(1151),l=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},o=Array.isArray,s=String.prototype.split,c=Array.prototype.push,u=function(e,t){c.apply(e,o(t)?t:[t])},d=Date.prototype.toISOString,h=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:h,formatter:i.formatters[h],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,n,i,l,a,c,d,h,f,m,g,v,y,x){var b,w,j=t;if("function"==typeof d?j=d(n,j):j instanceof Date?j=m(j):"comma"===i&&o(j)&&(j=r.maybeMap(j,function(e){return e instanceof Date?m(e):e})),null===j){if(l)return c&&!y?c(n,p.encoder,x,"key",g):n;j=""}if("string"==typeof(b=j)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||r.isBuffer(j)){if(c){var S=y?n:c(n,p.encoder,x,"key",g);if("comma"===i&&y){for(var k=s.call(String(j),","),_="",C=0;C<k.length;++C)_+=(0===C?"":",")+v(c(k[C],p.encoder,x,"value",g));return[v(S)+"="+_]}return[v(S)+"="+v(c(j,p.encoder,x,"value",g))]}return[v(n)+"="+v(String(j))]}var N=[];if(void 0===j)return N;if("comma"===i&&o(j))w=[{value:j.length>0?j.join(",")||null:void 0}];else if(o(d))w=d;else{var E=Object.keys(j);w=h?E.sort(h):E}for(var P=0;P<w.length;++P){var T=w[P],O="object"==typeof T&&void 0!==T.value?T.value:j[T];a&&null===O||u(N,e(O,o(j)?"function"==typeof i?i(n,T):n:n+(f?"."+T:"["+T+"]"),i,l,a,c,d,h,f,m,g,v,y,x))}return N},m=function(e){if(!e)return p;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==e.format){if(!l.call(i.formatters,e.format))throw TypeError("Unknown format option provided.");n=e.format}var r=i.formatters[n],a=p.filter;
28return("function"==typeof e.filter||o(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:void 0===e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:a,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}};e.exports=function(e,t){var n,r,i,l=e,s=m(t);"function"==typeof s.filter?l=(0,s.filter)("",l):o(s.filter)&&(n=s.filter);var c=[];if("object"!=typeof l||null===l)return"";i=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var d=a[i];n||(n=Object.keys(l)),s.sort&&n.sort(s.sort);for(var h=0;h<n.length;++h){var p=n[h];s.skipNulls&&null===l[p]||u(c,f(l[p],p,d,s.strictNullHandling,s.skipNulls,s.encode?s.encoder:null,s.filter,s.sort,s.allowDots,s.serializeDate,s.format,s.formatter,s.encodeValuesOnly,s.charset))}var g=c.join(s.delimiter),v=!0===s.addQueryPrefix?"?":"";return s.charsetSentinel&&("iso-8859-1"===s.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),g.length>0?v+g:""}},4501:(e,t,n)=>{"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}n.d(t,{A:()=>r})},4512:(e,t,n)=>{"use strict";var r=n(7278),i=Object.prototype.hasOwnProperty,l=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},o=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},s=function(e,t){var n={},s=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,c=t.parameterLimit===1/0?void 0:t.parameterLimit,u=s.split(t.delimiter,c),d=-1,h=t.charset;if(t.charsetSentinel)for(p=0;p<u.length;++p)0===u[p].indexOf("utf8=")&&("utf8=%E2%9C%93"===u[p]?h="utf-8":"utf8=%26%2310003%3B"===u[p]&&(h="iso-8859-1"),d=p,p=u.length);for(p=0;p<u.length;++p)if(p!==d){var p,f,m,g=u[p],v=g.indexOf("]="),y=-1===v?g.indexOf("="):v+1;-1===y?(f=t.decoder(g,a.decoder,h,"key"),m=t.strictNullHandling?null:""):(f=t.decoder(g.slice(0,y),a.decoder,h,"key"),m=r.maybeMap(o(g.slice(y+1),t),function(e){return t.decoder(e,a.decoder,h,"value")})),m&&t.interpretNumericEntities&&"iso-8859-1"===h&&(m=m.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),g.indexOf("[]=")>-1&&(m=l(m)?[m]:m),i.call(n,f)?n[f]=r.combine(n[f],m):n[f]=m}return n},c=function(e,t,n,r){for(var i=r?t:o(t,n),l=e.length-1;l>=0;--l){var a,s=e[l];if("[]"===s&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(c,10);n.parseArrays||""!==c?!isNaN(u)&&s!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[])[u]=i:"__proto__"!==c&&(a[c]=i):a={0:i}}i=a}return i},u=function(e,t,n,r){if(e){var l=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,o=n.depth>0&&/(\[[^[\]]*])/.exec(l),s=o?l.slice(0,o.index):l,u=[];if(s){if(!n.plainObjects&&i.call(Object.prototype,s)&&!n.allowPrototypes)return;u.push(s)}for(var d=0;n.depth>0&&null!==(o=a.exec(l))&&d<n.depth;){if(d+=1,!n.plainObjects&&i.call(Object.prototype,o[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(o[1])}return o&&u.push("["+l.slice(o.index)+"]"),c(u,t,n,r)}},d=function(e){if(!e)return a;
28if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}};e.exports=function(e,t){var n=d(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var i="string"==typeof e?s(e,n):e,l=n.plainObjects?Object.create(null):{},a=Object.keys(i),o=0;o<a.length;++o){var c=a[o],h=u(c,i[c],n,"string"==typeof e);l=r.merge(l,h,n)}return r.compact(l)}},5062:(e,t,n)=>{e.exports=n(9706)()},5105:(e,t,n)=>{e.exports=n(7195)},5125:e=>{"use strict";e.exports={escapeFacetValue:function(e){return"string"!=typeof e?e:String(e).replace(/^-/,"\\-")},unescapeFacetValue:function(e){return"string"!=typeof e?e:e.replace(/^\\-/,"-")}}},5329:(e,t,n)=>{"use strict";e.exports=function(e){return function(t,n){var r,c,u,d,h,p=e.hierarchicalFacets[n],f=e.hierarchicalFacetsRefinements[p.name]&&e.hierarchicalFacetsRefinements[p.name][0]||"",m=e._getHierarchicalFacetSeparator(p),g=e._getHierarchicalRootPath(p),v=e._getHierarchicalShowParentLevel(p),y=l(e._getHierarchicalFacetSortBy(p)),x=t.every(function(e){return e.exhaustive}),b=(r=y,c=m,u=g,d=v,h=f,function(e,t,n){var l=e;if(n>0){var p=0;for(l=e;p<n;)l=i(l&&Array.isArray(l.data)?l.data:[],function(e){return e.isRefined}),p++}if(l){var f=Object.keys(t.data).map(function(e){return[e,t.data[e]]}).filter(function(e){var t,n,r,i,a,o;return t=e[0],n=l.path||u,r=h,i=c,a=u,o=d,(!a||0===t.indexOf(a)&&a!==t)&&(!a&&-1===t.indexOf(i)||a&&t.split(i).length-a.split(i).length==1||-1===t.indexOf(i)&&-1===r.indexOf(i)||0===r.indexOf(t)||0===t.indexOf(n+i)&&(o||0===t.indexOf(r)))});l.data=a(f.map(function(e){var n,r,i,l,a,u,d=e[0];return n=e[1],r=d,i=c,l=s(h),a=t.exhaustive,{name:(u=r.split(i))[u.length-1].trim(),path:r,escapedValue:o(r),count:n,isRefined:l===r||0===l.indexOf(r+i),exhaustive:a,data:null}}),r[0],r[1])}return e}),w=t;return g&&(w=t.slice(g.split(m).length)),w.reduce(b,{name:e.hierarchicalFacets[n].name,count:null,isRefined:!0,path:null,escapedValue:null,exhaustive:x,data:null})}};var r=n(5125),i=n(6957),l=n(885),a=n(7823),o=r.escapeFacetValue,s=r.unescapeFacetValue},5983:(e,t,n)=>{"use strict";var r=n(9958),i=n(6957),l=n(9655),a=n(9974),o=n(9679),s=n(415),c=n(249),u=n(2228),d=n(6788);function h(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every(function(e,n){return h(t[n],e)}):e===t}function p(e){var t=e?p._parseNumbers(e):{};void 0===t.userToken||u(t.userToken)||console.warn("[algoliasearch-helper] The `userToken` parameter is invalid. This can lead to wrong analytics.\n  - Format: [a-zA-Z0-9_-]{1,64}"),this.facets=t.facets||[],this.disjunctiveFacets=t.disjunctiveFacets||[],this.hierarchicalFacets=t.hierarchicalFacets||[],this.facetsRefinements=t.facetsRefinements||{},this.facetsExcludes=t.facetsExcludes||{},this.disjunctiveFacetsRefinements=t.disjunctiveFacetsRefinements||{},this.numericRefinements=t.numericRefinements||{},this.tagRefinements=t.tagRefinements||[],this.hierarchicalFacetsRefinements=t.hierarchicalFacetsRefinements||{};var n=this;Object.keys(t).forEach(function(e){var r=-1!==p.PARAMETERS.indexOf(e),i=void 0!==t[e];!r&&i&&(n[e]=t[e])})}p.PARAMETERS=Object.keys(new p),p._parseNumbers=function(e){if(e instanceof p)return e;var t={};if(["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroun
28dRadius","hitsPerPage","minProximity"].forEach(function(n){var r=e[n];if("string"==typeof r){var i=parseFloat(r);t[n]=isNaN(i)?r:i}}),Array.isArray(e.insideBoundingBox)&&(t.insideBoundingBox=e.insideBoundingBox.map(function(e){return Array.isArray(e)?e.map(function(e){return parseFloat(e)}):e})),e.numericRefinements){var n={};Object.keys(e.numericRefinements).forEach(function(t){var r=e.numericRefinements[t]||{};n[t]={},Object.keys(r).forEach(function(e){var i=r[e].map(function(e){return Array.isArray(e)?e.map(function(e){return"string"==typeof e?parseFloat(e):e}):"string"==typeof e?parseFloat(e):e});n[t][e]=i})}),t.numericRefinements=n}return a(e,t)},p.make=function(e){var t=new p(e);return(e.hierarchicalFacets||[]).forEach(function(e){if(e.rootPath){var n=t.getHierarchicalRefinement(e.name);n.length>0&&0!==n[0].indexOf(e.rootPath)&&(t=t.clearRefinements(e.name)),0===(n=t.getHierarchicalRefinement(e.name)).length&&(t=t.toggleHierarchicalFacetRefinement(e.name,e.rootPath))}}),t},p.validate=function(e,t){var n=t||{};return e.tagFilters&&n.tagRefinements&&n.tagRefinements.length>0?Error("[Tags] Cannot switch from the managed tag API to the advanced API. It is probably an error, if it is really what you want, you should first clear the tags with clearTags method."):e.tagRefinements.length>0&&n.tagFilters?Error("[Tags] Cannot switch from the advanced tag API to the managed API. It is probably an error, if it is not, you should first clear the tags with clearTags method."):e.numericFilters&&n.numericRefinements&&o(n.numericRefinements)?Error("[Numeric filters] Can't switch from the advanced to the managed API. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):o(e.numericRefinements)&&n.numericFilters?Error("[Numeric filters] Can't switch from the managed API to the advanced. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):null},p.prototype={constructor:p,clearRefinements:function(e){var t={numericRefinements:this._clearNumericRefinements(e),facetsRefinements:d.clearRefinement(this.facetsRefinements,e,"conjunctiveFacet"),facetsExcludes:d.clearRefinement(this.facetsExcludes,e,"exclude"),disjunctiveFacetsRefinements:d.clearRefinement(this.disjunctiveFacetsRefinements,e,"disjunctiveFacet"),hierarchicalFacetsRefinements:d.clearRefinement(this.hierarchicalFacetsRefinements,e,"hierarchicalFacet")};return t.numericRefinements===this.numericRefinements&&t.facetsRefinements===this.facetsRefinements&&t.facetsExcludes===this.facetsExcludes&&t.disjunctiveFacetsRefinements===this.disjunctiveFacetsRefinements&&t.hierarchicalFacetsRefinements===this.hierarchicalFacetsRefinements?this:this.setQueryParameters(t)},clearTags:function(){return void 0===this.tagFilters&&0===this.tagRefinements.length?this:this.setQueryParameters({tagFilters:void 0,tagRefinements:[]})},setIndex:function(e){return e===this.index?this:this.setQueryParameters({index:e})},setQuery:function(e){return e===this.query?this:this.setQueryParameters({query:e})},setPage:function(e){return e===this.page?this:this.setQueryParameters({page:e})},setFacets:function(e){return this.setQueryParameters({facets:e})},setDisjunctiveFacets:function(e){return this.setQueryParameters({disjunctiveFacets:e})},setHitsPerPage:function(e){return this.hitsPerPage===e?this:this.setQueryParameters({hitsPerPage:e})},setTypoTolerance:function(e){return this.typoTolerance===e?this:this.setQueryParameters({typoTolerance:e})},addNumericRefinement:function(e,t,n){var r=c(n);if(this.isNumericRefined(e,t,r))return this;var i=a({},this.numericRefinements);return i[e]=a({},i[e]),i[e][t]?(i[e][t]=i[e][t].slice(),i[e][t].push(r)):i[e][t]=[r],this.setQueryParameters({numericRefinements:i})},getConjunctiveRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsRefinements[e]||[]},getDisjunctiveRefinements:function(e){return this.isDisjunctiveFacet(e)&&this.disjunctiveFacetsRefinements[e]||[]},getHierarchicalRefinement:function(e){return this.hierarchicalFacetsRefinements[e]||[]},getExcludeRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsExcludes[e]||[]},removeNumericRefinement:function(e,t,n){return void 0!==n?this.isNumericRefined(e,t,n)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(r,i){return i===e&&r.op===t&&h(r.val,c(n))})}):this:void 0!==t?this.isNumericRefined(e,t)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(n,r){return r===e&&n.op===t})}):this:this.isNumericRefined(e)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(t,n){return n===e})}):this},getNumericRefinements:function(e){return this.numericRefinements[e]||{}},getNumericRefinement:function(e,t){return this.numericRefinements[e]&&this.numericRefinements[e][t]},_clearNumericRefinements:function(e){if(void 0===e)return o(this.numericRefinements)?{}:this.numericRefinements;if("string"==typeof e)return s(this.numericRefinements,[e]);if("function"==typeof e){var t=!1,n=this.numericRefinements,r=Object.keys(n).reduce(function(r,i){var l=n[i],a={};return Object.keys(l=l||{}
vendor: 8,277 bytes, line 28
28).forEach(function(n){var r=l[n]||[],o=[];r.forEach(function(t){e({val:t,op:n},i,"numeric")||o.push(t)}),o.length!==r.length&&(t=!0),a[n]=o}),r[i]=a,r},{});return t?r:this.numericRefinements}},addFacet:function(e){return this.isConjunctiveFacet(e)?this:this.setQueryParameters({facets:this.facets.concat([e])})},addDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this:this.setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.concat([e])})},addHierarchicalFacet:function(e){if(this.isHierarchicalFacet(e.name))throw Error("Cannot declare two hierarchical facets with the same name: `"+e.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([e])})},addFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return d.isRefined(this.facetsRefinements,e,t)?this:this.setQueryParameters({facetsRefinements:d.addRefinement(this.facetsRefinements,e,t)})},addExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return d.isRefined(this.facetsExcludes,e,t)?this:this.setQueryParameters({facetsExcludes:d.addRefinement(this.facetsExcludes,e,t)})},addDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return d.isRefined(this.disjunctiveFacetsRefinements,e,t)?this:this.setQueryParameters({disjunctiveFacetsRefinements:d.addRefinement(this.disjunctiveFacetsRefinements,e,t)})},addTagRefinement:function(e){if(this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.concat(e)};return this.setQueryParameters(t)},removeFacet:function(e){return this.isConjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({facets:this.facets.filter(function(t){return t!==e})}):this},removeDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.filter(function(t){return t!==e})}):this},removeHierarchicalFacet:function(e){return this.isHierarchicalFacet(e)?this.clearRefinements(e).setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.filter(function(t){return t.name!==e})}):this},removeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return d.isRefined(this.facetsRefinements,e,t)?this.setQueryParameters({facetsRefinements:d.removeRefinement(this.facetsRefinements,e,t)}):this},removeExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return d.isRefined(this.facetsExcludes,e,t)?this.setQueryParameters({facetsExcludes:d.removeRefinement(this.facetsExcludes,e,t)}):this},removeDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return d.isRefined(this.disjunctiveFacetsRefinements,e,t)?this.setQueryParameters({disjunctiveFacetsRefinements:d.removeRefinement(this.disjunctiveFacetsRefinements,e,t)}):this},removeTagRefinement:function(e){if(!this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.filter(function(t){return t!==e})};return this.setQueryParameters(t)},toggleRefinement:function(e,t){return this.toggleFacetRefinement(e,t)},toggleFacetRefinement:function(e,t){if(this.isHierarchicalFacet(e))return this.toggleHierarchicalFacetRefinement(e,t);if(this.isConjunctiveFacet(e))return this.toggleConjunctiveFacetRefinement(e,t);if(this.isDisjunctiveFacet(e))return this.toggleDisjunctiveFacetRefinement(e,t);throw Error("Cannot refine the undeclared facet "+e+"; it should be added to the helper options facets, disjunctiveFacets or hierarchicalFacets")},toggleConjunctiveFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsRefinements:d.toggleRefinement(this.facetsRefinements,e,t)})},toggleExcludeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsExcludes:d.toggleRefinement(this.facetsExcludes,e,t)})},toggleDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.setQueryParameters({disjunctiveFacetsRefinements:d.toggleRefinement(this.disjunctiveFacetsRefinements,e,t)})},toggleHierarchicalFacetRefinement:function(e,t){if(!this.isHierarchicalFacet(e))throw Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration");var n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),i={};return void 0!==this.hierarchicalFacetsRefinements[e]&&this.hierarchicalFacetsRefinements[e].length>0&&(this.hierarchicalFacetsRefinements[e][0]===t||0===this.hierarchicalFacetsRefinements[e][0].indexOf(t+n))?-1===t.indexOf(n)?i[e]=[]:i[e]=[t.slice(0,t.lastIndexOf(n))]:i[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:r(i,this.hierarchicalFacetsRefinements)})},addHierarchicalFacetRefinement:function(e,t){if(this.isHierarchicalFacetRefined(e))throw Error(e+" is already refined.");if(!this.isHierarchicalFacet(e))throw Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration.");var n={};return n[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:r(n,this.hierarchicalFacetsRefinements)})},removeHierarchicalFacetRefinement:function(e){if(!this.isHierarchicalFacetRefined(e))return this;var t={};return t[e]=[],this.setQueryParameters({hierarchicalFacetsRefinements:r(t,this.hierarchicalFacetsRefinements)})},toggleTagRefinement:function(e){return this.isTagRefined(e)?this.removeTagRefinement(e):this.addTagRefinement(e)},isDisjunctiveFacet:function(e){return this.disjunctiveFacets.indexOf(e)>-1},isHierarchicalFacet:function(e){return void 0!==this.getHierarchicalFacetByName(e)},isConjunctiveFacet:function(e){return this.facets.indexOf(e)>-1},isFacetRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&d.isRefined(this.facetsRefinements,e,t)},isExcludeRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&d.isRefined(this.facetsExcludes,e,t)},isDisjunctiveFacetRefined:function(e,t){return!!this.isDisjunctiveFacet(e)&&d.isRefined(this.disjunctiveFacetsRefinements,e,t)},isHierarchicalFacetRefined:function(e,t){if(!this.isHierarchicalFacet(e))return!1;var n=this.getHierarchicalRefinement(e);return t?-1!==n.indexOf(t):n.length>0},isNumericRefined:function(e,t,n){if(void 0===n&&void 0===t)return!!this.numericRefinements[e];var r,l=this.numericRefinements[e]&&void 0!==this.numericRefinements[e][t];if(void 0===n||!l)return l;var a=c(n),o=void 0!==(r=this.numericRefinements[e][t],i(r,function(e){return h(e,a)}));return l&&o},isTagRefined:function(e){return -1!==this.tagRefinements.indexOf(e)},getRefinedDisjunctiveFacets:function(){var e=this,t=l(Object.keys(this.numericRefinements).filter(function(t){return Object.keys(e.numericRefinements[t]).length>0}),this.disjunctiveFacets);return Object.keys(this.disjunctiveFacetsRefinements).filter(function(t){return e.disjunctiveFacetsRefinements[t].length>0}).concat(t).concat(this.getRefinedHierarchicalFacets()).sort()},getRefinedHierarchicalFacets:function(){var e=this;return l(this.hierarchicalFacets.map(function(e){return e.name}),Object.keys(this.hierarchicalFacetsRefinements).filter(function(t){return e.hierarchicalFacetsRefinements[t].length>0})).sort()},getUnrefinedDisjunctiveFacets:function(){var e=this.getRefinedDisjunctiveFacets();return this.disjunctiveFacets.filter(function(t){return -1===e.indexOf(t)})},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","hierarchicalFacets","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacetsRefinements"],getQueryParams:function(){var e=this.managedParameters,t={},n=this;
28return Object.keys(this).forEach(function(r){var i=n[r];-1===e.indexOf(r)&&void 0!==i&&(t[r]=i)}),t},setQueryParameter:function(e,t){if(this[e]===t)return this;var n={};return n[e]=t,this.setQueryParameters(n)},setQueryParameters:function(e){if(!e)return this;var t=p.validate(this,e);if(t)throw t;var n=this,r=p._parseNumbers(e),i=Object.keys(this).reduce(function(e,t){return e[t]=n[t],e},{}),l=Object.keys(r).reduce(function(e,t){var n=void 0!==e[t],i=void 0!==r[t];return n&&!i?s(e,[t]):(i&&(e[t]=r[t]),e)},i);return new this.constructor(l)},resetPage:function(){return void 0===this.page?this:this.setPage(0)},_getHierarchicalFacetSortBy:function(e){return e.sortBy||["isRefined:desc","name:asc"]},_getHierarchicalFacetSeparator:function(e){return e.separator||" > "},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return"boolean"!=typeof e.showParentLevel||e.showParentLevel},getHierarchicalFacetByName:function(e){return i(this.hierarchicalFacets,function(t){return t.name===e})},getHierarchicalFacetBreadcrumb:function(e){if(!this.isHierarchicalFacet(e))return[];var t=this.getHierarchicalRefinement(e)[0];if(!t)return[];var n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e));return t.split(n).map(function(e){return e.trim()})},toString:function(){return JSON.stringify(this,null,2)}},e.exports=p},6048:()=>{},6314:(e,t,n)=>{"use strict";let r;n.d(t,{x6:()=>$,Zh:()=>tt,Bd:()=>U});var i=n(4232),l=n(2443),a=n.n(l),o=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function s(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(a()[n[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var r=e.indexOf("--\x3e");return{type:"comment",comment:-1!==r?e.slice(4,r):""}}for(var i=new RegExp(o),l=null;null!==(l=i.exec(e));)if(l[0].trim())if(l[1]){var s=l[1].trim(),c=[s,""];s.indexOf("=")>-1&&(c=s.split("=")),t.attrs[c[0]]=c[1],i.lastIndex--}else l[2]&&(t.attrs[l[2]]=l[3].trim().substring(1,l[3].length-1));return t}var c=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,u=/^\s*$/,d=Object.create(null);let h={parse:function(e,t){t||(t={}),t.components||(t.components=d);var n,r=[],i=[],l=-1,a=!1;if(0!==e.indexOf("<")){var o=e.indexOf("<");r.push({type:"text",content:-1===o?e:e.substring(0,o)})}return e.replace(c,function(o,c){if(a){if(o!=="</"+n.name+">")return;a=!1}var d,h="/"!==o.charAt(1),p=o.startsWith("\x3c!--"),f=c+o.length,m=e.charAt(f);if(p){var g=s(o);return l<0?r.push(g):(d=i[l]).children.push(g),r}if(h&&(l++,"tag"===(n=s(o)).type&&t.components[n.name]&&(n.type="component",a=!0),n.voidElement||a||!m||"<"===m||n.children.push({type:"text",content:e.slice(f,e.indexOf("<",f))}),0===l&&r.push(n),(d=i[l-1])&&d.children.push(n),i[l]=n),(!h||n.voidElement)&&(l>-1&&(n.voidElement||n.name===o.slice(2,-1))&&(n=-1==--l?r:i[l]),!a&&"<"!==m&&m)){d=-1===l?r:i[l].children;var v=e.indexOf("<",f),y=e.slice(f,-1===v?void 0:v);u.test(y)&&(y=" "),(v>-1&&l+d.length>=0||" "!==y)&&d.push({type:"text",content:y})}}),r}},p=(e,t,n,r)=>{let i=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,"warn","react-i18next::",!0);b(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)},f={},m=(e,t,n,r)=>{b(n)&&f[n]||(b(n)&&(f[n]=new Date),p(e,t,n,r))},g=(e,t)=>()=>{if(e.isInitialized)t();else{let n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},v=(e,t,n)=>{e.loadNamespaces(t,g(e,n))},y=(e,t,n,r)=>{if(b(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return v(e,n,r);n.forEach(t=>{0>e.options.ns.indexOf(t)&&e.options.ns.push(t)}),e.loadLanguages(t,g(e,r))},x=(e,t,n={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n?.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):(m(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0),b=e=>"string"==typeof e,w=e=>"object"==typeof e&&null!==e,j=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,S={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"\xa9","&#169;":"\xa9","&reg;":"\xae","&#174;":"\xae","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},k=e=>S[e],_={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(j,k)},C=()=>_,N=()=>r,E=(e,t)=>{if(!e)return!1;let n=e.props?.children??e.children;return t?n.length>0:!!n},P=e=>{if(!e)return[];let t=e.props?.children??e.children;return e.props?.i18nIsDynamicList?O(t):t},T=e=>Array.isArray(e)&&e.every(i.isValidElement),O=e=>Array.isArray(e)?e:[e],R=(e,t)=>{let n={...t};return n.props=Object.assign(e.props,t.props),n},L=(e,t,n,r)=>{if(!e)return"";let l="",a=O(e),o=t?.transSupportBasicHtmlNodes?t.transKeepBasicHtmlNodesFor??[]:[];return a.forEach((e,a)=>{if(b(e)){l+=`${e}`;return}if((0,i.isValidElement)(e)){let{props:i,type:s}=e,c=Object.keys(i).length,u=o.indexOf(s)>-1,d=i.children;if(!d&&u&&!c){l+=`<${s}/>`;return}if(!d&&(!u||c)||i.i18nIsDynamicList){l+=`<${a}></${a}>`;return}if(u&&1===c&&b(d)){l+=`<${s}>${d}</${s}>`;return}let h=L(d,t,n,r);l+=`<${a}>${h}</${a}>`;return}if(null===e)return void p(n,"TRANS_NULL_VALUE","Passed in a null value as child",{i18nKey:r});if(w(e)){let{format:t,...i}=e,a=Object.keys(i);if(1===a.length){let e=t?`${a[0]}, ${t}
28`:a[0];l+=`{{${e}}}`;return}p(n,"TRANS_INVALID_OBJ","Invalid child - Object should only have keys {{ value, format }} (format is optional).",{i18nKey:r,child:e});return}p(n,"TRANS_INVALID_VAR","Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.",{i18nKey:r,child:e})}),l},I=(e,t,n,r,l,a)=>{if(""===t)return[];let o=r.transKeepBasicHtmlNodesFor||[],s=t&&new RegExp(o.map(e=>`<${e}`).join("|")).test(t);if(!e&&!s&&!a)return[t];let c={},u=e=>{O(e).forEach(e=>{b(e)||(E(e)?u(P(e)):w(e)&&!(0,i.isValidElement)(e)&&Object.assign(c,e))})};u(e);let d=h.parse(`<0>${t}</0>`),p={...c,...l},f=(e,t,n)=>{let r=P(e),i=g(r,t.children,n);return T(r)&&0===i.length||e.props?.i18nIsDynamicList?r:i},m=(e,t,n,r,l)=>{e.dummy?(e.children=t,n.push((0,i.cloneElement)(e,{key:r},l?void 0:t))):n.push(...i.Children.map([e],e=>{let n={...e.props};return delete n.i18nIsDynamicList,(0,i.createElement)(e.type,{...n,key:r,ref:e.props.ref??e.ref},l?null:t)}))},g=(t,l,c)=>{let u=O(t);return O(l).reduce((t,l,d)=>{let h=l.children?.[0]?.content&&n.services.interpolator.interpolate(l.children[0].content,p,n.language);if("tag"===l.type){let a=u[parseInt(l.name,10)];1!==c.length||a||(a=c[0][l.name]),a||(a={});let v=0!==Object.keys(l.attrs).length?R({props:l.attrs},a):a,y=(0,i.isValidElement)(v),x=y&&E(l,!0)&&!l.voidElement,j=s&&w(v)&&v.dummy&&!y,S=w(e)&&Object.hasOwnProperty.call(e,l.name);if(b(v)){let e=n.services.interpolator.interpolate(v,p,n.language);t.push(e)}else if(E(v)||x){let e=f(v,l,c);m(v,e,t,d)}else if(j)m(v,g(u,l.children,c),t,d);else if(Number.isNaN(parseFloat(l.name)))if(S){let e=f(v,l,c);m(v,e,t,d,l.voidElement)}else if(r.transSupportBasicHtmlNodes&&o.indexOf(l.name)>-1)if(l.voidElement)t.push((0,i.createElement)(l.name,{key:`${l.name}-${d}`}));else{let e=g(u,l.children,c);t.push((0,i.createElement)(l.name,{key:`${l.name}-${d}`},e))}else if(l.voidElement)t.push(`<${l.name} />`);else{let e=g(u,l.children,c);t.push(`<${l.name}>${e}</${l.name}>`)}else if(w(v)&&!y){let e=l.children[0]?h:null;e&&t.push(e)}else m(v,h,t,d,1!==l.children.length||!h)}else if("text"===l.type){let e=r.transWrapTextNodes,o=a?r.unescape(n.services.interpolator.interpolate(l.content,p,n.language)):n.services.interpolator.interpolate(l.content,p,n.language);e?t.push((0,i.createElement)(e,{key:`${l.name}-${d}`},o)):t.push(o)}return t},[])};return P(g([{dummy:!0,children:e||[]}],d,O(e||[]))[0])},A=(e,t,n)=>{let r=e.key||t,l=(0,i.cloneElement)(e,{key:r});return!l.props||!l.props.children||0>n.indexOf(`${t}/>`)&&0>n.indexOf(`${t} />`)?l:(0,i.createElement)(function(){return(0,i.createElement)(i.Fragment,null,l)},{key:r})},M=(e,t)=>e.map((e,n)=>A(e,n,t)),F=(e,t)=>{let n={};return Object.keys(e).forEach(r=>{Object.assign(n,{[r]:A(e[r],r,t)})}),n},D=(e,t,n,r)=>e?Array.isArray(e)?M(e,t):w(e)?F(e,t):(m(n,"TRANS_INVALID_COMPONENTS",'<Trans /> "components" prop expects an object or array',{i18nKey:r}),null):null,H=(0,i.createContext)();class B{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function $({children:e,count:t,parent:n,i18nKey:r,context:l,tOptions:a={},values:o,defaults:s,components:c,ns:u,i18n:d,t:h,shouldUnescape:p,...f}){let{i18n:g,defaultNS:v}=(0,i.useContext)(H)||{},y=d||g||N(),x=h||y?.t.bind(y);return function({children:e,count:t,parent:n,i18nKey:r,context:l,tOptions:a={},values:o,defaults:s,components:c,ns:u,i18n:d,t:h,shouldUnescape:p,...f}){let g=d||N();if(!g)return m(g,"NO_I18NEXT_INSTANCE","Trans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey:r}),e;let v=h||g.t.bind(g)||(e=>e),y={...C(),...g.options?.react},x=u||v.ns||g.options?.defaultNS;x=b(x)?[x]:x||["translation"];let w=L(e,y,g,r),j=s||w||y.transEmptyNodeValue||r,{hashTransKey:S}=y,k=r||(S?S(w||j):w||j);g.options?.interpolation?.defaultVariables&&(o=o&&Object.keys(o).length>0?{...o,...g.options.interpolation.defaultVariables}:{...g.options.interpolation.defaultVariables});let _=!o&&(void 0===t||g.options?.interpolation?.alwaysFormat)&&e?{interpolation:{...a.interpolation,prefix:"#$?",suffix:"?$#"}}:a.interpolation,E={...a,context:l||a.context,count:t,...o,..._,defaultValue:j,ns:x},P=k?v(k,E):j,T=I(D(c,P,g,r)||e,P,g,y,E,p),O=n??y.defaultTransParent;return O?(0,i.createElement)(O,f,T):T}({children:e,count:t,parent:n,i18nKey:r,context:l,tOptions:a,values:o,defaults:s,components:c,ns:u||x?.ns||v||y?.options?.defaultNS,i18n:y,t:h,shouldUne
28scape:p,...f})}let z=(e,t)=>{let n=(0,i.useRef)();return(0,i.useEffect)(()=>{n.current=t?n.current:e},[e,t]),n.current},V=(e,t,n,r)=>e.getFixedT(t,n,r),W=(e,t,n,r)=>(0,i.useCallback)(V(e,t,n,r),[e,t,n,r]),U=(e,t={})=>{let{i18n:n}=t,{i18n:r,defaultNS:l}=(0,i.useContext)(H)||{},a=n||r||N();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new B),!a){m(a,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");let e=(e,t)=>b(t)?t:w(t)&&b(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}a.options.react?.wait&&m(a,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");let o={...C(),...a.options.react,...t},{useSuspense:s,keyPrefix:c}=o,u=e||l||a.options?.defaultNS;u=b(u)?[u]:u||["translation"],a.reportNamespaces.addUsedNamespaces?.(u);let d=(a.isInitialized||a.initializedStoreOnce)&&u.every(e=>x(e,a,o)),h=W(a,t.lng||null,"fallback"===o.nsMode?u:u[0],c),p=()=>h,f=()=>V(a,t.lng||null,"fallback"===o.nsMode?u:u[0],c),[g,j]=(0,i.useState)(p),S=u.join();t.lng&&(S=`${t.lng}${S}`);let k=z(S),_=(0,i.useRef)(!0);(0,i.useEffect)(()=>{let{bindI18n:e,bindI18nStore:n}=o;_.current=!0,d||s||(t.lng?y(a,t.lng,u,()=>{_.current&&j(f)}):v(a,u,()=>{_.current&&j(f)})),d&&k&&k!==S&&_.current&&j(f);let r=()=>{_.current&&j(f)};return e&&a?.on(e,r),n&&a?.store.on(n,r),()=>{_.current=!1,a&&e?.split(" ").forEach(e=>a.off(e,r)),n&&a&&n.split(" ").forEach(e=>a.store.off(e,r))}},[a,S]),(0,i.useEffect)(()=>{_.current&&d&&j(p)},[a,c,d]);let E=[g,a,d];if(E.t=g,E.i18n=a,E.ready=d,d||!d&&!s)return E;throw new Promise(e=>{t.lng?y(a,t.lng,u,()=>e()):v(a,u,()=>e())})};function q({i18n:e,defaultNS:t,children:n}){let r=(0,i.useMemo)(()=>({i18n:e,defaultNS:t}),[e,t]);return(0,i.createElement)(H.Provider,{value:r},n)}var Q=n(4501);function K(e){return(K="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 G(e,t,n){var r;return(r=function(e,t){if("object"!=K(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=K(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==K(r)?r:r+"")in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Y=n(3520),Z=n.n(Y);function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function X(e,t){if(e){if("string"==typeof e)return J(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?J(e,t):void 0}}function ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,l,a,o=[],s=!0,c=!1;try{if(l=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=l.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return o}}(e,t)||X(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var et=n(8683),en={defaultNS:"common",errorStackTraceLimit:0,i18n:{defaultLocale:"en",locales:["en"]},get initImmediate(){return"undefined"!=typeof window},get initAsync(){return"undefined"!=typeof window},interpolation:{escapeValue:!1},load:"currentOnly",localeExtension:"json",localePath:"./public/locales",localeStructure:"{{lng}}/{{ns}}",react:{useSuspense:!1},reloadOnPrerender:!1,serializeConfig:!0,use:[]},er="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,ei=["i18n"],el=["i18n"];function ea(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
28t%2?ea(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ea(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var es=["backend","detection"],ec=function(e){if("string"!=typeof(null==e?void 0:e.lng))throw Error("config.lng was not passed into createConfig");var t,n,r,i=e.i18n,l=(0,et.A)(e,ei),a=en.i18n,o=eo(eo(eo(eo({},(0,et.A)(en,el)),l),a),i),s=o.defaultNS,c=o.lng,u=o.localeExtension,d=o.localePath,h=o.nonExplicitSupportedLngs,p=o.locales.filter(function(e){return"default"!==e});if("cimode"===c)return o;void 0===o.fallbackLng&&(o.fallbackLng=o.defaultLocale,"default"===o.fallbackLng&&(o.fallbackLng=ee(p,1)[0]));var f=null==e||null==(t=e.interpolation)?void 0:t.prefix,m=null==e||null==(n=e.interpolation)?void 0:n.suffix,g=null!=f?f:"{{",v=null!=m?m:"}}";"string"!=typeof(null==e?void 0:e.localeStructure)&&(f||m)&&(o.localeStructure="".concat(g,"lng").concat(v,"/").concat(g,"ns").concat(v));var y=o.fallbackLng,x=o.localeStructure;if(h){var b=function(e,t){var n=ee(t.split("-"),1)[0];return e[t]=[n],e};if("string"==typeof y)o.fallbackLng=o.locales.filter(function(e){return e.includes("-")}).reduce(b,{default:[y]});else if(Array.isArray(y))o.fallbackLng=o.locales.filter(function(e){return e.includes("-")}).reduce(b,{default:y});else if("object"===K(y))o.fallbackLng=Object.entries(o.fallbackLng).reduce(function(e,t){var n=ee(t,2),r=n[0],i=n[1];return e[r]=r.includes("-")?Array.from(new Set([r.split("-")[0]].concat(function(e){if(Array.isArray(e))return J(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||X(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):i,e},y);else if("function"==typeof y)throw Error("If nonExplicitSupportedLngs is true, no functions are allowed for fallbackLng")}return(null==e||null==(r=e.use)?void 0:r.some(function(e){return"backend"===e.type}))||("string"==typeof d?o.backend={addPath:"".concat(d,"/").concat(x,".missing.").concat(u),loadPath:"".concat(d,"/").concat(x,".").concat(u)}:"function"==typeof d&&(o.backend={addPath:function(e,t){return d(e,t,!0)},loadPath:function(e,t){return d(e,t,!1)}})),"string"==typeof o.ns||Array.isArray(o.ns)||(o.ns=[s]),es.forEac
28h(function(t){e[t]&&(o[t]=eo(eo({},o[t]),e[t]))}),o};let eu=e=>"string"==typeof e,ed=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},eh=e=>null==e?"":""+e,ep=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},ef=/###/g,em=e=>e&&e.indexOf("###")>-1?e.replace(ef,"."):e,eg=e=>!e||eu(e),ev=(e,t,n)=>{let r=eu(t)?t.split("."):t,i=0;for(;i<r.length-1;){if(eg(e))return{};let t=em(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return eg(e)?{}:{obj:e,k:em(r[i])}},ey=(e,t,n)=>{let{obj:r,k:i}=ev(e,t,Object);if(void 0!==r||1===t.length){r[i]=n;return}let l=t[t.length-1],a=t.slice(0,t.length-1),o=ev(e,a,Object);for(;void 0===o.obj&&a.length;)l=`${a[a.length-1]}.${l}`,o=ev(e,a=a.slice(0,a.length-1),Object),o?.obj&&void 0!==o.obj[`${o.k}.${l}`]&&(o.obj=void 0);o.obj[`${o.k}.${l}`]=n},ex=(e,t,n,r)=>{let{obj:i,k:l}=ev(e,t,Object);i[l]=i[l]||[],i[l].push(n)},eb=(e,t)=>{let{obj:n,k:r}=ev(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},ew=(e,t,n)=>{let r=eb(e,n);return void 0!==r?r:eb(t,n)},ej=(e,t,n)=>{for(let r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?eu(e[r])||e[r]instanceof String||eu(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):ej(e[r],t[r],n):e[r]=t[r]);return e},eS=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var ek={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};let e_=e=>eu(e)?e.replace(/[&<>"'\/]/g,e=>ek[e]):e;class eC{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(void 0!==t)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}let eN=[" ",",","?","!",";"],eE=new eC(20),eP=(e,t,n)=>{t=t||"",n=n||"";let r=eN.filter(e=>0>t.indexOf(e)&&0>n.indexOf(e));if(0===r.length)return!0;let i=eE.getRegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`),l=!i.test(e);if(!l){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(l=!0)}return l},eT=(e,t,n=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}let r=t.split(n),i=e;for(let e=0;e<r.length;){let t;if(!i||"object"!=typeof i)return;let l="";for(let a=e;a<r.length;++a)if(a!==e&&(l+=n),l+=r[a],void 0!==(t=i[l])){if(["string","number","boolean"].indexOf(typeof t)>-1&&a<r.length-1)continue;e+=a-e+1;break}i=t}return i},eO=e=>e?.replace("_","-"),eR={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class eL{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||eR,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:(eu(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new eL(this.logger,{...{prefix:`${this.prefix}:${e}:`},...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new eL(this.logger,e)}}var eI=new eL;class eA{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e].delete(t)}}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n.apply(n,[e,...t])})}}class eM extends eA{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i,l=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,a=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;e.indexOf(".")>-1?i=e.split("."):(i=[e,t],n&&(Array.isArray(n)?i.push(...n):eu(n)&&l?i.push(...n.split(l)):i.push(n)));let o=eb(this.data,i);return(!o&&!t&&!n&&e.indexOf(".")>-1&&(e=i[0],t=i[1],n=i.slice(2).join(".")),!o&&a&&eu(n))?eT(this.data?.[e]?.[t],n,l):o}addResource(e,t,n,r,i={silent:!1}){let l=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,a=[e,t];n&&(a=a.concat(l?n.split(l):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),ey(this.data,a,r),i.silent||this.emit
28("added",e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(eu(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,i,l={silent:!1,skipCopy:!1}){let a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);let o=eb(this.data,a)||{};l.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?ej(o,n,i):o={...o,...n},ey(this.data,a,o),l.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var eF={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}};let eD={},eH=e=>!eu(e)&&"boolean"!=typeof e&&"number"!=typeof e;class eB extends eA{constructor(e,t={}){super(),ep(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
28i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=eI.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(null==e)return!1;let r=this.resolve(e,n);return r?.res!==void 0}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");let r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS||[],l=n&&e.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!eP(e,n,r);if(l&&!a){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:eu(i)?[i]:i};let l=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(l[0])>-1)&&(i=l.shift()),e=l.join(r)}return{key:e,namespaces:eu(i)?[i]:i}}translate(e,t,n){let r="object"==typeof t?{...t}:t;if("object"!=typeof r&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof options&&(r={...r}),r||(r={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);let i=void 0!==r.returnDetails?r.returnDetails:this.options.returnDetails,l=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,{key:a,namespaces:o}=this.extractFromKey(e[e.length-1],r),s=o[o.length-1],c=void 0!==r.nsSeparator?r.nsSeparator:this.options.nsSeparator;void 0===c&&(c=":");let u=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u?.toLowerCase()==="cimode")return d?i?{res:`${s}${c}${a}`,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(r)}:`${s}${c}${a}`:i?{res:a,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(r)}:a;let h=this.resolve(e,r),p=h?.res,f=h?.usedKey||a,m=h?.exactUsedKey||a,g=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,y=void 0!==r.count&&!eu(r.count),x=eB.hasDefaultValue(r),b=y?this.pluralResolver.getSuffix(u,r.count,r):"",w=r.ordinal&&y?this.pluralResolver.getSuffix(u,r.count,{ordinal:!1}):"",j=y&&!r.ordinal&&0===r.count,S=j&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${b}`]||r[`defaultValue${w}`]||r.defaultValue,k=p;v&&!p&&x&&(k=S);let _=eH(k),C=Object.prototype.toString.apply(k);if(v&&k&&_&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(C)&&!(eu(g)&&Array.isArray(k))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,k,{...r,ns:o}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(h.res=e,h.usedParams=this.getUsedParamsDetails(r),h):e}if(l){let e=Array.isArray(k),t=e?[]:{},n=e?m:f;for(let e in k)if(Object.prototype.hasOwnProperty.call(k,e)){let i=`${n}${l}${e}`;x&&!p?t[e]=this.translate(i,{...r,defaultValue:eH(S)?S[e]:void 0,...{joinArrays:!1,ns:o}}):t[e]=this.translate(i,{...r,joinArrays:!1,ns:o}),t[e]===i&&(t[e]=k[e])}p=t}}else if(v&&eu(g)&&Array.isArray(p))(p=p.join(g))&&(p=this.extendTranslation(p,e,r,n));else{let t=!1,i=!1;!this.isValidLookup(p)&&x&&(t=!0,p=S),this.isValidLookup(p)||(i=!0,p=a);let o=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&i?void 0:p,d=x&&S!==p&&this.options.updateMissing;if(i||t||d){if(this.logger.log(d?"updateKey":"missingKey",u,s,a,d?S:p),l){let e=this.resolve(a,{...r,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(r.lng||this.language):e.push(r.lng||this.language);let n=(e,t,n)=>{let i=x&&n!==p?n:o;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,t,i,d,r):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,s,t,i,d,r),this.emit
28("missingKey",e,s,t,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&y?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,r);j&&r[`defaultValue${this.options.pluralSeparator}zero`]&&0>t.indexOf(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],a+t,r[`defaultValue${t}`]||S)})}):n(e,a,S))}p=this.extendTranslation(p,e,r,h,n),i&&p===a&&this.options.appendNamespaceToMissingKey&&(p=`${s}${c}${a}`),(i||t)&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}${c}${a}`:a,t?p:void 0,r))}return i?(h.res=p,h.usedParams=this.getUsedParamsDetails(r),h):p}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){let l;n.interpolation&&this.interpolator.init({...n,...{interpolation:{...this.options.interpolation,...n.interpolation}}});let a=eu(e)&&(n?.interpolation?.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(a){let t=e.match(this.interpolator.nestingRegexp);l=t&&t.length}let o=n.replace&&!eu(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),e=this.interpolator.interpolate(e,o,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp);l<(t&&t.length)&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(...e)=>i?.[0]!==e[0]||n.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),n)),n.interpolation&&this.interpolator.reset()}let l=n.postProcess||this.options.postProcess,a=eu(l)?[l]:l;return null!=e&&a?.length&&!1!==n.applyPostProcessor&&(e=eF.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,l,a;return eu(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(n))return;let o=this.extractFromKey(e,t),s=o.key;r=s;let c=o.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));let u=void 0!==t.count&&!eu(t.count),d=u&&!t.ordinal&&0===t.count,h=void 0!==t.context&&(eu(t.context)||"number"==typeof t.context)&&""!==t.context,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);
28c.forEach(e=>{this.isValidLookup(n)||(a=e,!eD[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(a)&&(eD[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(r=>{let a;if(this.isValidLookup(n))return;l=r;let o=[s];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,s,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(o.push(s+e),t.ordinal&&0===e.indexOf(i)&&o.push(s+e.replace(i,this.options.pluralSeparator)),d&&o.push(s+n)),h){let r=`${s}${this.options.contextSeparator}${t.context}`;o.push(r),u&&(o.push(r+e),t.ordinal&&0===e.indexOf(i)&&o.push(r+e.replace(i,this.options.pluralSeparator)),d&&o.push(r+n))}}for(;a=o.pop();)this.isValidLookup(n)||(i=a,n=this.getResource(r,e,a,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:l,usedNS:a}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=e.replace&&!eu(e.replace),n=t?e.replace:e;if(t&&void 0!==e.count&&(n.count=e.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!t)for(let e of(n={...n},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete n[e];return n}static hasDefaultValue(e){let t="defaultValue";for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}class e${constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=eI.create("languageUtils")}getScriptPartFromCode(e){if(!(e=eO(e))||0>e.indexOf("-"))return null;let t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=eO(e))||0>e.indexOf("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(eu(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)?t:this.options.lowerCaseLng?e.toLowerCase():e}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>{if(e===r||!(0>e.indexOf("-")&&0>r.indexOf("-"))&&(e.indexOf("-")>0&&0>r.indexOf("-")&&e.substring(0,e.indexOf("-"))===r||0===e.indexOf(r)&&r.length>1))return e})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),eu(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return eu(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):eu(e)&&i(this.formatLanguageCode(e)),n.forEac
28h(e=>{0>r.indexOf(e)&&i(this.formatLanguageCode(e))}),r}}let ez={zero:0,one:1,two:2,few:3,many:4,other:5},eV={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class eW{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=eI.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n,r=eO("dev"===e?"en":e),i=t.ordinal?"ordinal":"cardinal",l=JSON.stringify({cleanedCode:r,type:i});if(l in this.pluralRulesCache)return this.pluralRulesCache[l];try{n=new Intl.PluralRules(r,{type:i})}catch(i){if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),eV;if(!e.match(/-|_/))return eV;let r=this.languageUtils.getLanguagePartFromCode(e);n=this.getRule(r,t)}return this.pluralRulesCache[l]=n,n}needsPlural(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return(n||(n=this.getRule("dev",t)),n)?n.resolvedOptions().pluralCategories.sort((e,t)=>ez[e]-ez[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}let eU=(e,t,n,r=".",i=!0)=>{let l=ew(e,t,n);return!l&&i&&eu(n)&&void 0===(l=eT(e,n,r))&&(l=eT(t,n,r)),l},eq=e=>e.replace(/\$/g,"$$$$");class eQ{constructor(e={}){this.logger=eI.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:l,suffix:a,suffixEscaped:o,formatSeparator:s,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:h,nestingSuffix:p,nestingSuffixEscaped:f,nestingOptionsSeparator:m,maxReplaces:g,alwaysFormat:v}=e.interpolation;this.escape=void 0!==t?t:e_,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=i?eS(i):l||"{{",this.suffix=a?eS(a):o||"}}",this.formatSeparator=s||",",this.unescapePrefix=c?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=d?eS(d):h||eS("$t("),this.nestingSuffix=p?eS(p):f||eS(")"),this.nestingOptionsSeparator=m||",",this.maxReplaces=g||1e3,this.alwaysFormat=void 0!==v&&v,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,l,a,o=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},s=e=>{if(0>e.indexOf(this.formatSeparator)){let i=eU(t,o,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),l=i.shift().trim(),a=i.join(this.formatSeparator).trim();return this.format(eU(t,o,l,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...r,...t,interpolationkey:l})};this.resetRegExp();let c=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>eq(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?eq(this.escape(e)):eq(e)}].forEach(t=>{for(a=0;i=t.regex.exec(e);){let n=i[1].trim();if(void 0===(l=s(n)))if("function"==typeof c){let t=c(e,i,r);l=eu(t)?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))l="";else if(u){l=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),l="";else eu(l)||this.useRawValueToEscape||(l=eh(l));let o=t.safeValue(l);if(e=e.replace(i[0],o),u?(t.regex.lastIndex+=l.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++a>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,l,a=(e,t)=>{let n=this.nestingOptionsSeparator;if(0>e.indexOf(n))return e;let r=e.split(RegExp(`${n}[ ]*{`)),i=`{${r[1]}`;e=r[0];let a=(i=this.interpolate(i,l)).match(/'/g),o=i.match(/"/g);((a?.length??0)%2!=0||o)&&o.length%2==0||(i=i.replace(/'/g,'"'));try{l=JSON.parse(i),t&&(l={...t,...l})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return l.defaultValue&&l.defaultValue.indexOf(this.prefix)>-1&&delete l.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let o=[];(l=(l={...n}).replace&&!eu(l.replace)?l.replace:l).applyPostProcessor=!1,delete l.defaultValue;let s=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){let e=r[1].split(this.formatSeparator).map(e=>e.trim());r[1]=e.shift(),o=e,s=!0}if((i=t(a.call(this,r[1].trim(),l),l))&&r[0]===e&&!eu(i))return i;eu(i)||(i=eh(i)),i||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),i=""),s&&(i=o.reduce((e,t)=>
28this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}}let eK=e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let r=e.split("(");t=r[0].toLowerCase().trim();let i=r[1].substring(0,r[1].length-1);"currency"===t&&0>i.indexOf(":")?n.currency||(n.currency=i.trim()):"relativetime"===t&&0>i.indexOf(":")?n.range||(n.range=i.trim()):i.split(";").forEach(e=>{if(e){let[t,...r]=e.split(":"),i=r.join(":").trim().replace(/^'+|'+$/g,""),l=t.trim();n[l]||(n[l]=i),"false"===i&&(n[l]=!1),"true"===i&&(n[l]=!0),isNaN(i)||(n[l]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},eG=e=>{let t={};return(n,r,i)=>{let l=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(l={...l,[i.interpolationkey]:void 0});let a=r+JSON.stringify(l),o=t[a];return o||(o=e(eO(r),i),t[a]=o),o(n)}},eY=e=>(t,n,r)=>e(eO(n),r)(t);class eZ{constructor(e={}){this.logger=eI.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";let n=t.cacheInBuiltFormats?eG:eY;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=eG(t)}format(e,t,n,r={}){let i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&0>i[0].indexOf(")")&&i.find(e=>e.indexOf(")")>-1)){let e=i.findIndex(e=>e.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:l}=eK(t);if(this.formats[i]){let t=e;try{let a=r?.formatParams?.[r.interpolationkey]||{},o=a.locale||a.lng||r.locale||r.lng||n;t=this.formats[i](e,o,{...l,...r,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e)}}let eJ=(e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)};class eX extends eA{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=eI.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},l={},a={},o={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===l[a]&&(l[a]=!0):(this.state[a]=1,r=!1,void 0===l[a]&&(l[a]=!0),void 0===i[a]&&(i[a]=!0),void 0===o[t]&&(o[t]=!0)))}),r||(a[e]=!0)}),(Object.keys(i).length||Object.keys(l).length)&&this.queue.push({pending:l,pendingCount:Object.keys(l).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(l),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(o)}}loaded(e,t,n){let r=e.split("|"),i=r[0],l=r[1];t&&this.emit("failedLoading",i,l,t),!t&&n&&this.store.addResourceBundle(i,l,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let a={};this.queue.forEach(n=>{ex(n.loaded,[i],l),eJ(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{a[e]||(a[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,l){if(!e.length)return l(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:l});this.readingCalls++;let a=(a,o)=>
28{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(a&&o&&r<this.maxRetries)return void setTimeout(()=>{this.read.call(this,e,t,n,r+1,2*i,l)},i);l(a,o)},o=this.backend[n].bind(this.backend);if(2===o.length){try{let n=o(e,t);n&&"function"==typeof n.then?n.then(e=>a(null,e)).catch(a):a(null,n)}catch(e){a(e)}return}return o(e,t,a)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();eu(e)&&(e=this.languageUtils.toResolveHierarchy(e)),eu(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=""){let n=e.split("|"),r=n[0],i=n[1];this.read(r,i,"read",void 0,void 0,(n,l)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&l&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,l),this.loaded(e,n,l)})}saveMissing(e,t,n,r,i,l={},a=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t))return void this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");if(null!=n&&""!==n){if(this.backend?.create){let o={...l,isUpdate:i},s=this.backend.create.bind(this.backend);if(s.length<6)try{let i;(i=5===s.length?s(e,t,n,r,o):s(e,t,n,r))&&"function"==typeof i.then?i.then(e=>a(null,e)).catch(a):a(null,i)}catch(e){a(e)}else s(e,t,n,r,a,o)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}let e0=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),eu(e[1])&&(t.defaultValue=e[1]),eu(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),e1=e=>(eu(e.ns)&&(e.ns=[e.ns]),eu(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),eu(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),"boolean"==typeof e.initImmediate&&(e.initAsync=e.initImmediate),e),e2=()=>{},e5=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})};class e3 extends eA{constructor(e={},t){if(super(),this.options=e1(e),this.services={},this.logger=eI,this.modules={external:[]},e5(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(eu(e.ns)?e.defaultNS=e.ns:0>e.ns.indexOf("translation")&&(e.defaultNS=e.ns[0]));let n=e0();this.options={...n,...this.options,...e1(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation}
28,void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator);let r=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?eI.init(r(this.modules.logger),this.options):eI.init(null,this.options),e=this.modules.formatter?this.modules.formatter:eZ;let t=new e$(this.options);this.store=new eM(this.options.resources,this.options);let i=this.services;i.logger=eI,i.resourceStore=this.store,i.languageUtils=t,i.pluralResolver=new eW(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),e&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(i.formatter=r(e),i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new eQ(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new eX(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new eB(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=e2),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let i=ed(),l=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),i.resolve(n),t(e,n)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),i}loadResources(e,t=e2){let n=t,r=eu(e)?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()==="cimode"&&(!this.options.preload||0===this.options.preload.length))return n();let e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&0>e.indexOf(t)&&e.push(t)})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=ed();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=e2),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&eF.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&0>this.languages.indexOf(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=ed();
28this.emit("languageChanging",e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,l)=>{l?this.isLanguageChangingTo===e&&(r(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},l=t=>{e||t||!this.services.languageDetector||(t=[]);let n=eu(t)?t:t&&t[0],l=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(eu(t)?[t]:t);l&&(this.language||r(l),this.translator.language||this.translator.changeLanguage(l),this.services.languageDetector?.cacheUserLanguage?.(l)),this.loadResources(l,e=>{i(e,l)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(e):l(this.services.languageDetector.detect()),n}getFixedT(e,t,n){let r=(e,t,...i)=>{let l,a;(l="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(i)):{...t}).lng=l.lng||r.lng,l.lngs=l.lngs||r.lngs,l.ns=l.ns||r.ns,""!==l.keyPrefix&&(l.keyPrefix=l.keyPrefix||n||r.keyPrefix);let o=this.options.keySeparator||".";return a=l.keyPrefix&&Array.isArray(e)?e.map(e=>`${l.keyPrefix}${o}${e}`):l.keyPrefix?`${l.keyPrefix}${o}${e}`:e,this.t(a,l)};return eu(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
28if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;let l=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return -1===n||0===n||2===n};if(t.precheck){let e=t.precheck(this,l);if(void 0!==e)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||l(n,e)&&(!r||l(i,e)))}loadNamespaces(e,t){let n=ed();return this.options.ns?(eu(e)&&(e=[e]),e.forEach(e=>{0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=ed();eu(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>0>r.indexOf(e)&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){return(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf((this.services?.languageUtils||new e$(e0())).getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}static createInstance(e={},t){return new e3(e,t)}cloneInstance(e={},t=e2){let n=e.forkResourceStore;n&&delete e.forkResourceStore;let r={...this.options,...e,isClone:!0},i=new e3(r);return(void 0!==e.debug||void 0!==e.prefix)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n&&(i.store=new eM(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{}),r),i.services.resourceStore=i.store),i.translator=new eB(i.services,r),i.translator.on("*",(e,...t)=>{i.emit(e,...t)}),i.init(r,t),i.translator.options=r,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let e4=e3.createInstance();e4.createInstance=e3.createInstance,e4.createInstance,e4.dir,e4.init,e4.loadResources,e4.reloadResources,e4.use,e4.changeLanguage,e4.getFixedT,e4.t,e4.exists,e4.setDefaultNamespace,e4.hasLoadedNamespace,e4.loadNamespaces,e4.loadLanguages;let e6=function(e){void 0===e.ns&&(e.ns=[]);var t,n,r=e4.createInstance(e);return r.isInitialized?t=Promise.resolve(e4.t):(null==e||null==(n=e.use)||n.forEach(function(e){return r.use(e)}),"function"==typeof e.onPreInitI18next&&e.onPreInitI18next(r),t=r.init(e)),{i18n:r,initPromise:t}};var e8=i.createElement;function e9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function e7(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?e9(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e9(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var te=function(e,t){if(t&&e.isInitialized)for(var n=0,r=Object.keys(t);n<r.length;n++)for(var i=r[n],l=0,a=Object.keys(t[i]);l<a.length;l++){var o,s=a[l];null!=e&&null!=(o=e.store)&&o.data&&e.store.data[i]&&e.store.data[i][s]||e.addResourceBundle(i,s,t[i][s],!0,!0)}},tt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Z()(function(n){var r,l,a=(n.pageProps||{})._nextI18Next,o=null!=(r=null==a?void 0:a.initialLocale)?r:null==n||null==(l=n.router)?void 0:l.locale,s=null==a?void 0:a.ns,c=(0,i.useRef)(null),u=(0,i.useMemo)(function(){if(!a&&!t)return null;var e,n=null!=t?t:null==a?void 0:a.userConfig;if(!n)throw Error("appWithTranslation was called without a next-i18next config");if(!(null!=n&&n.i18n))throw Error("appWithTranslation was called without config.i18n");if(!(null!=n&&null!=(e=n.i18n)&&e.defaultLocale))throw Error("config.i18n does not include a defaultLocale property");var r=(a||{}).initialI18nStore,i=null!=t&&t.resources?t.resources:r;o||(o=n.i18n.defaultLocale);var l=c.current;return l?te(l,i):(te(l=e6(e7(e7(e7({},ec(e7(e7({},n),{},{lng:o}))),{},{lng:o},s&&{ns:s}),{},{resources:i})).i18n,i),c.current=l),l},[a,o,s]);return er(function(){u&&o&&u.changeLanguage(o)},[u,o]),null!==u?e8(q,{i18n:u},e8(e,n)):e8(e,(0,Q.A)({key:o},n))},e)}},6556:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(3541)}])},6720:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;
28\s]*/,s=/^\s+|\s+$/g;function c(e){return e?e.replace(s,""):""}e.exports=function(e,s){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];s=s||{};var u=1,d=1;function h(e){var t=e.match(n);t&&(u+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function p(){var e={line:u,column:d};return function(t){return t.position=new f(e),v(r),t}}function f(e){this.start=e,this.end={line:u,column:d},this.source=s.source}f.prototype.content=e;var m=[];function g(t){var n=Error(s.source+":"+u+":"+d+": "+t);if(n.reason=t,n.filename=s.source,n.line=u,n.column=d,n.source=e,s.silent)m.push(n);else throw n}function v(t){var n=t.exec(e);if(n){var r=n[0];return h(r),e=e.slice(r.length),n}}function y(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=p();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return g("End of comment missing");var r=e.slice(2,n-2);return d+=2,h(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}v(r);var b,w=[];for(y(w);b=function(){var e=p(),n=v(i);if(n){if(x(),!v(l))return g("property missing ':'");var r=v(a),s=e({type:"declaration",property:c(n[0].replace(t,"")),value:r?c(r[0].replace(t,"")):""});return v(o),s}}();)!1!==b&&(w.push(b),y(w));return w}},6788:(e,t,n)=>{"use strict";var r=n(9958),i=n(9679),l=n(415),a={addRefinement:function(e,t,n){if(a.isRefined(e,t,n))return e;var i=""+n,l=e[t]?e[t].concat(i):[i],o={};return o[t]=l,r(o,e)},removeRefinement:function(e,t,n){if(void 0===n)return a.clearRefinement(e,function(e,n){return t===n});var r=""+n;return a.clearRefinement(e,function(e,n){return t===n&&r===e})},toggleRefinement:function(e,t,n){if(void 0===n)throw Error("toggleRefinement should be used with a value");return a.isRefined(e,t,n)?a.removeRefinement(e,t,n):a.addRefinement(e,t,n)},clearRefinement:function(e,t,n){if(void 0===t)return i(e)?{}:e;if("string"==typeof t)return l(e,[t]);if("function"==typeof t){var r=!1,a=Object.keys(e).reduce(function(i,l){var a=e[l]||[],o=a.filter(function(e){return!t(e,l,n)});return o.length!==a.length&&(r=!0),i[l]=o,i},{});return r?a:e}},isRefined:function(e,t,n){var r=!!e[t]&&e[t].length>0;return void 0!==n&&r?-1!==e[t].indexOf(""+n):r}};e.exports=a},6957:e=>{"use strict";e.exports=function(e,t){if(Array.isArray(e)){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}}},7225:(e,t,n)=>{"use strict";e.exports=n(789)},7278:(e,t,n)=>{"use strict";var r=n(1151),i=Object.prototype.hasOwnProperty,l=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),o=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(l(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);t.obj[t.prop]=r}}},s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],l=i.obj[i.prop],a=Object.keys(l),s=0;s<a.length;++s){var c=a[s],u=l[c];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:l,prop:c}),n.push(u))}return o(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,i,l){if(0===e.length)return e;var o=e;if("symbol"==typeof e?o=Symbol.prototype.toString.call(e):"string"!=typeof e&&(o=String(e)),"iso-8859-1"===n)return escape(o).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var s="",c=0;c<o.length;++c){var u=o.charCodeAt(c);if(45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||l===r.RFC1738&&(40===u||41===u)){s+=o.charAt(c);continue}if(u<128){s+=a[u];continue}if(u<2048){s+=a[192|u>>6]+a[128|63&u];continue}if(u<55296||u>=57344){s+=a[224|u>>12]+a[128|u>>6&63]+a[128|63&u];continue}
28c+=1,s+=a[240|(u=65536+((1023&u)<<10|1023&o.charCodeAt(c)))>>18]+a[128|u>>12&63]+a[128|u>>6&63]+a[128|63&u]}return s},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(l(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(l(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return(l(t)&&!l(n)&&(a=s(t,r)),l(t)&&l(n))?(n.forEach(function(n,l){if(i.call(t,l)){var a=t[l];a&&"object"==typeof a&&n&&"object"==typeof n?t[l]=e(a,n,r):t.push(n)}else t[l]=n}),t):Object.keys(n).reduce(function(t,l){var a=n[l];return i.call(t,l)?t[l]=e(t[l],a,r):t[l]=a,t},a)}}},7328:(e,t,n)=>{e.exports=n(9836)},7535:e=>{"use strict";e.exports=function(e){return Array.isArray(e)?e.filter(Boolean):[]}},7823:e=>{"use strict";e.exports=function(e,t,n){if(!Array.isArray(e))return[];Array.isArray(n)||(n=[]);var r=e.map(function(e,n){return{criteria:t.map(function(t){return e[t]}),index:n,value:e}});return r.sort(function(e,t){for(var r=-1;++r<e.criteria.length;){var i=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=void 0!==t,l=null===t;if(!l&&e>t||r&&i||!n)return 1;if(!r&&e<t||l&&n||!i)return -1}return 0}(e.criteria[r],t.criteria[r]);if(i){if(r>=n.length)return i;if("desc"===n[r])return-i;return i}}return e.index-t.index}),r.map(function(e){return e.value})}},8097:e=>{"use strict";e.exports=function(){var e=Array.prototype.slice.call(arguments);return e.reduceRight(function(e,t){return Object.keys(Object(t)).forEach(function(n){var r="number"==typeof e[n]?e[n]:0,i=t[n];void 0!==i&&i>=r&&(void 0!==e[n]&&delete e[n],e[n]=i)}),e},{})}},8230:(e,t,n)=>{e.exports=n(1639)},8539:e=>{"use strict";function t(e,t){this._state=e,this._rawResults={};var n=this;e.params.forEach(function(e){var r=e.$$id;n[r]=t[r],n._rawResults[r]=t[r]})}t.prototype={constructor:t},e.exports=t},8561:e=>{"use strict";function t(e){e=e||{},this.params=e.params||[]}t.prototype={constructor:t,addParams:function(e){var n=this.params.slice();return n.push(e),new t({params:n})},removeParams:function(e){return new t({params:this.params.filter(function(t){return t.$$id!==e})})},addFrequentlyBoughtTogether:function(e){return this.addParams(Object.assign({},e,{model:"bought-together"}))},addRelatedProducts:function(e){return this.addParams(Object.assign({},e,{model:"related-products"}))},addTrendingItems:function(e){return this.addParams(Object.assign({},e,{model:"trending-items"}))},addTrendingFacets:function(e){return this.addParams(Object.assign({},e,{model:"trending-facets"}))},addLookingSimilar:function(e){return this.addParams(Object.assign({},e,{model:"looking-similar"}))},_buildQueries:function(e,t){return this.params.filter(function(e){return void 0===t[e.$$id]}).map(function(t){var n=Object.assign({},t,{indexName:e,threshold:t.threshold||0});return delete n.$$id,n})}},e.exports=t},8595:(e,t,n)=>{"use strict";var r=n(6957),i=n(3025);e.exports=function(e,t){var n,l,a={};return t.forEach(function(t){t.forEach(function(t,n){e.includes(t.objectID)||(a[t.objectID]?a[t.objectID]={indexSum:a[t.objectID].indexSum+n,count:a[t.objectID].count+1}:a[t.objectID]={indexSum:n,count:1})})}),(n=t.length,l=[],Object.keys(a).forEach(function(e){a[e].count<2&&(a[e].indexSum+=100),l.push({objectID:e,avgOfIndices:a[e].indexSum/n})}),l.sort(function(e,t){return e.avgOfIndices>t.avgOfIndices?1:-1})).reduce(function(e,n){var l=r(i(t),function(e){return e.objectID===n.objectID});return l?e.concat(l):e},[])}},8643:e=>{"use strict";e.exports=function(e,t){if(!Array.isArray(e))return -1;for(var n=0;n<e.length;n++)if(t(e[n]))return n;return -1}},8683:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,{A:()=>r})},8806:(e,t,n)=>{"use strict";e.exports=n(9429)},8940:(e,t,n)=>{"use strict";function r(e,t,n,r){return!1}
28Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(7810),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8945:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,i.default)(e),l="function"==typeof t;return r.forEach(function(e){if("declaration"===e.type){var r=e.property,i=e.value;l?t(r,i,e):i&&((n=n||{})[r]=i)}}),n};var i=r(n(6720))},9048:(e,t,n)=>{"use strict";var r=n(9974);function i(e){return Object.keys(e).sort().reduce(function(t,n){return t[n]=e[n],t},{})}var l={_getQueries:function(e,t){var n=[];return n.push({indexName:e,params:l._getHitsSearchParams(t)}),t.getRefinedDisjunctiveFacets().forEach(function(r){n.push({indexName:e,params:l._getDisjunctiveFacetSearchParams(t,r)}
vendor: 2,613 bytes, line 28
28)}),t.getRefinedHierarchicalFacets().forEach(function(r){var i=t.getHierarchicalFacetByName(r),a=t.getHierarchicalRefinement(r),o=t._getHierarchicalFacetSeparator(i);if(a.length>0&&a[0].split(o).length>1){var s=a[0].split(o).slice(0,-1).reduce(function(e,t,n){return e.concat({attribute:i.attributes[n],value:0===n?t:[e[e.length-1].value,t].join(o)})},[]);s.forEach(function(r,a){var o=l._getDisjunctiveFacetSearchParams(t,r.attribute,0===a);function c(e){return i.attributes.some(function(t){return t===e.split(":")[0]})}var u=(o.facetFilters||[]).reduce(function(e,t){if(Array.isArray(t)){var n=t.filter(function(e){return!c(e)});n.length>0&&e.push(n)}return"string"!=typeof t||c(t)||e.push(t),e},[]),d=s[a-1];a>0?o.facetFilters=u.concat(d.attribute+":"+d.value):u.length>0?o.facetFilters=u:delete o.facetFilters,n.push({indexName:e,params:o})})}}),n},_getCompositionQueries:function(e){return[{compositionID:e.index,requestBody:{params:l._getCompositionHitsSearchParams(e)}}]},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(l._getHitsHierarchicalFacetsAttributes(e)).sort(),n=l._getFacetFilters(e),a=l._getNumericFilters(e),o=l._getTagFilters(e),s={};return t.length>0&&(s.facets=t.indexOf("*")>-1?["*"]:t),o.length>0&&(s.tagFilters=o),n.length>0&&(s.facetFilters=n),a.length>0&&(s.numericFilters=a),i(r({},e.getQueryParams(),s))},_getCompositionHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets.map(function(t){return e.disjunctiveFacetsRefinements&&e.disjunctiveFacetsRefinements[t]&&e.disjunctiveFacetsRefinements[t].length>0?"disjunctive("+t+")":t})).concat(l._getHitsHierarchicalFacetsAttributes(e)).sort(),n=l._getFacetFilters(e),a=l._getNumericFilters(e),o=l._getTagFilters(e),s={};t.length>0&&(s.facets=t.indexOf("*")>-1?["*"]:t),o.length>0&&(s.tagFilters=o),n.length>0&&(s.facetFilters=n),a.length>0&&(s.numericFilters=a);var c=e.getQueryParams();return delete c.highlightPreTag,delete c.highlightPostTag,delete c.index,i(r({},c,s))},_getDisjunctiveFacetSearchParams:function(e,t,n){var a=l._getFacetFilters(e,t,n),o=l._getNumericFilters(e,t),s=l._getTagFilters(e),c={hitsPerPage:0,page:0,analytics:!1,clickAnalytics:!1};s.length>0&&(c.tagFilters=s);var u=e.getHierarchicalFacetByName(t);return u?c.facets=l._getDisjunctiveHierarchicalFacetAttribute(e,u,n):c.facets=t,o.length>0&&(c.numericFilters=o),a.length>0&&(c.facetFilters=a),i(r({},e.getQueryParams(),c))},_getNumericFilters:function(e,t){if(e.numericFilters)return e.numericFilters;var n=[];return Object.keys(e.numericRefinements).forEach(function(r){var i=e.numericRefinements[r]||{};
28Object.keys(i).forEach(function(e){var l=i[e]||[];t!==r&&l.forEach(function(t){if(Array.isArray(t)){var i=t.map(function(t){return r+e+t});n.push(i)}else n.push(r+e+t)})})}),n},_getTagFilters:function(e){return e.tagFilters?e.tagFilters:e.tagRefinements.join(",")},_getFacetFilters:function(e,t,n){var r=[],i=e.facetsRefinements||{};Object.keys(i).sort().forEach(function(e){(i[e]||[]).slice().sort().forEach(function(t){r.push(e+":"+t)})});var l=e.facetsExcludes||{};Object.keys(l).sort().forEach(function(e){(l[e]||[]).sort().forEach(function(t){r.push(e+":-"+t)})});var a=e.disjunctiveFacetsRefinements||{};Object.keys(a).sort().forEach(function(e){var n=a[e]||[];if(e!==t&&n&&0!==n.length){var i=[];n.slice().sort().forEach(function(t){i.push(e+":"+t)}),r.push(i)}});var o=e.hierarchicalFacetsRefinements||{};return Object.keys(o).sort().forEach(function(i){var l,a,s=(o[i]||[])[0];if(void 0!==s){var c=e.getHierarchicalFacetByName(i),u=e._getHierarchicalFacetSeparator(c),d=e._getHierarchicalRootPath(c);if(t===i){if(-1===s.indexOf(u)||!d&&!0===n||d&&d.split(u).length===s.split(u).length)return;d?(a=d.split(u).length-1,s=d):(a=s.split(u).length-2,s=s.slice(0,s.lastIndexOf(u))),l=c.attributes[a]}else a=s.split(u).length-1,l=c.attributes[a];l&&r.push([l+":"+s])}}),r},_getHitsHierarchicalFacetsAttributes:function(e){return e.hierarchicalFacets.reduce(function(t,n){var r=e.getHierarchicalRefinement(n.name)[0];if(!r)return t.push(n.attributes[0]),t;var i=e._getHierarchicalFacetSeparator(n),l=r.split(i).length,a=n.attributes.slice(0,l+1);return t.concat(a)},[])},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,n){var r=e._getHierarchicalFacetSeparator(t);if(!0===n){var i=e._getHierarchicalRootPath(t),l=0;return i&&(l=i.split(r).length),[t.attributes[l]]}var a=(e.getHierarchicalRefinement(t.name)[0]||"").split(r).length-1;return t.attributes.slice(0,a+1)},getSearchForFacetQuery:function(e,t,n,a){var o=a.isDisjunctiveFacet(e)?a.clearRefinements(e):a,s={facetQuery:t,facetName:e};return"number"==typeof n&&(s.maxFacetHits=n),i(r({},l._getHitsSearchParams(o),s))}};e.exports=l},9099:(e,t,n)=>{e.exports=n(8253)},9429:(e,t,n)=>{"use strict";var r=n(4232),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},l=r.useState,a=r.useEffect,o=r.useLayoutEffect,s=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=l({inst:{value:n,getSnapshot:t}}),i=r[0].inst,u=r[1];return o(function(){i.value=n,i.getSnapshot=t,c(i)&&u({inst:i})},[e,n,t]),a(function(){return c(i)&&u({inst:i}),e(function(){c(i)&&u({inst:i})})},[e]),s(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},9655:e=>{"use strict";e.exports=function(e,t){return e.filter(function(n,r){return t.indexOf(n)>-1&&e.indexOf(n)===r})}},9679:e=>{"use strict";e.exports=function(e){return e&&Object.keys(e).length>0}},9706:(e,t,n)=>{"use strict";var r=n(3717);function i(){}function l(){}l.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,l,a){if(a!==r){var o=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 o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var n={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:l,resetWarningCache:i}
28;return n.PropTypes=n,n}},9735:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),l=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!l)return!1;for(r in e);return void 0===r||t.call(e,r)},o=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;else if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,d=arguments[0],h=1,p=arguments.length,f=!1;for("boolean"==typeof d&&(f=d,d=arguments[1]||{},h=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});h<p;++h)if(t=arguments[h],null!=t)for(n in t)r=s(d,n),d!==(i=s(t,n))&&(f&&i&&(a(i)||(c=l(i)))?(c?(c=!1,u=r&&l(r)?r:[]):u=r&&a(r)?r:{},o(d,{name:n,newValue:e(f,u,i)})):void 0!==i&&o(d,{name:n,newValue:i}));return d}},9958:e=>{"use strict";e.exports=function(){var e=Array.prototype.slice.call(arguments);return e.reduceRight(function(e,t){return Object.keys(Object(t)).forEach(function(n){void 0!==t[n]&&(void 0!==e[n]&&delete e[n],e[n]=t[n])}),e},{})}},9974:e=>{"use strict";function t(e){return"function"==typeof e||Array.isArray(e)||"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){t(e)||(e={});for(var n=1,r=arguments.length;n<r;n++){var i=arguments[n];t(i)&&function e(n,r){if(n===r)return n;for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i)&&"__proto__"!==i&&"constructor"!==i){var l=r[i],a=n[i];(void 0===a||void 0!==l)&&(t(a)&&t(l)?n[i]=e(a,l):n[i]="object"==typeof l&&null!==l?e(Array.isArray(l)?[]:{},l):l)}return n}(e,i)}return e}}},e=>{var t=t=>e(e.s=t);e.O(0,[593,792],()=>(t(6556),t(8253))),_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.