PageSourceSearch

https://www.nib-bahamas.com/assets/index-DNanuPVF.js

js nib-bahamas.com collected 2026-10-02 11:26:11 UTC 313,343 bytes, 64 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Home-DOyM_tjJ.js","assets/animation-DMef301g.js","assets/react-vendor-iGF98SQ3.js","assets/usePageTitle-DFuectcb.js","assets/Reveal-Di4x7Rzi.js","assets/swiper-BYV_jtzB.js","assets/VideoSpotlight-Cb8yrK9p.js","assets/Public-Notice2-MjSDHemE.js","assets/Public-Notice4-VfryA8wR.js","assets/Public-Notice5-Usskizox.js","assets/ArrowRightIcon-CHAF11m2.js","assets/ArrowLeftIcon-BRmx3BxV.js","assets/PlayCircleIcon-DImu6G_K.js","assets/ui-vendor-D3J3lGbY.js","assets/calendar-QmLTJ9XO.js","assets/Home-vHIubPVI.css","assets/Forms-qj8BeVFJ.js","assets/PageHeader-CZyBDIP3.js","assets/EyeIcon-B4GB_12A.js","assets/Faq-Dh6wpnZG.js","assets/About-CzI42x8a.js","assets/UserGroupIcon-BTI0EtDJ.js","assets/HeartIcon-Y_wl1nYw.js","assets/Contact-BCJ-asUS.js","assets/Portals-BTDG4UtX.js","assets/BenefitsOverview-BIQnKziM.js","assets/benefitsApi-CPDeB-vr.js","assets/DocumentTextIcon-C6_a8D1K.js","assets/ArrowDownTrayIcon-B4KzGU67.js","assets/BenefitsCalculator-CvXbq_IT.js","assets/Publications-BXaKA1IB.js","assets/RegistrationIndividual-RihhodHs.js","assets/LinkIcon-BtfT5ZnT.js","assets/RegistrationBusiness-8Rtx8dYC.js","assets/Contributions-Di6FOnBv.js","assets/PortalsEss-Bw8fuxwy.js","assets/PortalsRss-CwO-b9xc.js","assets/Gallery-jupb2uIF.js","assets/SeniorLuncheon5-Bg3hPozu.js","assets/GalleryDetail-BnTmyara.js","assets/PortalsC10-CxDWh7HD.js","assets/PortalsEz-CDpj41eC.js","assets/PortalsEzClaim-B3kebJOq.js","assets/Events-Dn7i36W5.js","assets/eventsApi-ChqqXtKq.js","assets/Events-DxzzN9QP.css","assets/News-COcmySJY.js","assets/NewsArticle-DzTU6oBf.js","assets/LongTerm-DQlwDCId.js","assets/benefitDownloadMatcher-DAcy0u95.js","assets/ShortTerm-BBH5p8L6.js","assets/Industrial-B6kghIXs.js","assets/AssistancePayments-BJ9NkUln.js","assets/Archive-rBC7ctV_.js","assets/Careers-D9ij8oF6.js","assets/PublicTenders-BYWZdYgI.js","assets/RequestForProposals-CIyYNM-B.js","assets/Pensioners-DJXG8uZd.js","assets/markdown-B58sxpk4.js","assets/ChevronRightIcon-Cs_2jrNK.js","assets/Sitemap-B2zz-FVN.js","assets/Disclaimer-DvHYgB_c.js","assets/PrivacyPolicy-Lf6shgJF.js","assets/Appeals-DbRsxFEz.js","assets/Offences-Cj3Erea6.js","assets/LoadingScreenTest-CIeLjUj7.js","assets/VideoSpotlight-CzDhwzQ7.js"])))=>i.map(i=>d[i]);
2import{j as a,m as ee,A as vn}from"./animation-DMef301g.js";import{a as Me,r as g,g as Ft,c as Bs,R as T,b as Nt,u as _s,L as Z,N as j,d as Fs,f as Ds,O as Ms,h as $s,i as zs}from"./react-vendor-iGF98SQ3.js";import{q as $e,_ as Te}from"./ui-vendor-D3J3lGbY.js";import{P as N}from"./calendar-QmLTJ9XO.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();const Ws="modulepreload",Vs=function(e){return"/"+e},Ln={},_=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),l=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.allSettled(n.map(c=>{if(c=Vs(c),c in Ln)return;Ln[c]=!0;const u=c.endsWith(".css"),p=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${p}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":Ws,u||(d.as="script"),d.crossOrigin="",d.href=c,l&&d.setAttribute("nonce",l),document.head.appendChild(d),u)return new Promise((f,m)=>{d.addEventListener("load",f),d.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${c}`)))})}))}function s(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return i.then(o=>{for(const l of o||[])l.status==="rejected"&&s(l.reason);return t().catch(s)})};var Xt={},In=Me;Xt.createRoot=In.createRoot,Xt.hydrateRoot=In.hydrateRoot;function Us({title:e,titleId:t,...n},r){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))}const Hs=g.forwardRef(Us);function qs({title:e,titleId:t,...n},r){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const Gs=g.forwardRef(qs);function Ks({title:e,titleId:t,...n},r){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"}))}const je=g.forwardRef(Ks);function Ys({title:e,titleId:t,...n},r){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 6.75v10.5a2.25 2.25 0 0 1-2.25 2.25h-15a2.25 2.25 0 0 1-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25m19.5 0v.243a2.25 2.25 0 0 1-1.07 1.916l-7.5 4.615a2.25 2.25 0 0 1-2.36 0L3.32 8.91a2.25 2.25 0 0 1-1.07-1.916V6.75"}))}const Js=g.forwardRef(Ys);function Qs({title:e,titleId:t,...n},r){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m9-.75
2a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"}))}const Zs=g.forwardRef(Qs);function Xs({title:e,titleId:t,...n},r){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"}))}const Wr=g.forwardRef(Xs);function eo({title:e,titleId:t,...n},r){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"}))}const to=g.forwardRef(eo);function no({title:e,titleId:t,...n},r){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))}const ro=g.forwardRef(no);function io({title:e,titleId:t,...n},r){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const en=g.forwardRef(io);function so({title:e,titleId:t,...n},r){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 6.75c0 8.284 6.716 15 15 15h2.25a2.25 2.25 0 0 0 2.25-2.25v-1.372c0-.516-.351-.966-.852-1.091l-4.423-1.106c-.44-.11-.902.055-1.173.417l-.97 1.293c-.282.376-.769.542-1.21.38a12.035 12.035 0 0 1-7.143-7.143c-.162-.441.004-.928.38-1.21l1.293-.97c.363-.271.527-.734.417-1.173L6.963 3.102a1.125 1.125 0 0 0-1.091-.852H4.5A2.25 2.25 0 0 0 2.25 4.5v2.25Z"}))}const oo=g.forwardRef(so);function ao({title:e,titleId:t,...n},r){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"}))}const Bn=g.forwardRef(ao);function lo({title:e,titleId:t,...n},r){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m0-10.036A11.959 11.959 0 0 1 3.598 6 11.99 11.99 0 0 0 3 9.75c0 5.592 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.57-.598-3.75h-.152c-3.196 0-6.1-1.25-8.25-3.286Zm0 13.036h.008v.008H12v-.008Z"}))}const co=g.forwardRef(lo);function uo({title:e,titleId:t,...n},r){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09
2L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z"}))}const Vr=g.forwardRef(uo);function fo({title:e,titleId:t,...n},r){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))}const ft=g.forwardRef(fo),I=e=>typeof e=="string",Ze=()=>{let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n},_n=e=>e==null?"":""+e,po=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},ho=/###/g,Fn=e=>e&&e.indexOf("###")>-1?e.replace(ho,"."):e,Dn=e=>
vendor: 4,815 bytes, line 2
2!e||I(e),st=(e,t,n)=>{const r=I(t)?t.split("."):t;let i=0;for(;i<r.length-1;){if(Dn(e))return{};const s=Fn(r[i]);!e[s]&&n&&(e[s]=new n),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={},++i}return Dn(e)?{}:{obj:e,k:Fn(r[i])}},Mn=(e,t,n)=>{const{obj:r,k:i}=st(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let s=t[t.length-1],o=t.slice(0,t.length-1),l=st(e,o,Object);for(;l.obj===void 0&&o.length;)s=`${o[o.length-1]}.${s}`,o=o.slice(0,o.length-1),l=st(e,o,Object),l!=null&&l.obj&&typeof l.obj[`${l.k}.${s}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${s}`]=n},mo=(e,t,n,r)=>{const{obj:i,k:s}=st(e,t,Object);i[s]=i[s]||[],i[s].push(n)},Et=(e,t)=>{const{obj:n,k:r}=st(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},go=(e,t,n)=>{const r=Et(e,n);return r!==void 0?r:Et(t,n)},Ur=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?I(e[r])||e[r]instanceof String||I(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Ur(e[r],t[r],n):e[r]=t[r]);return e},Fe=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var bo={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const yo=e=>I(e)?e.replace(/[&<>"'\/]/g,t=>bo[t]):e;class vo{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const xo=[" ",",","?","!",";"],wo=new vo(20),So=(e,t,n)=>{t=t||"",n=n||"";const r=xo.filter(o=>t.indexOf(o)<0&&n.indexOf(o)<0);if(r.length===0)return!0;const i=wo.getRegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let s=!i.test(e);if(!s){const o=e.indexOf(n);o>0&&!i.test(e.substring(0,o))&&(s=!0)}return s},tn=(e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const r=t.split(n);let i=e;for(let s=0;s<r.length;){if(!i||typeof i!="object")return;let o,l="";for(let c=s;c<r.length;++c)if(c!==s&&(l+=n),l+=r[c],o=i[l],o!==void 0){if(["string","number","boolean"].indexOf(typeof o)>-1&&c<r.length-1)continue;s+=c-s+1;break}i=o}return i},at=e=>e==null?void 0:e.replace("_","-"),No={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,r;(r=(n=console==null?void 0:console[e])==null?void 0:n.apply)==null||r.call(n,console,t)}};class kt{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||No,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,i){return i&&!this.debug?null:(I(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new kt(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new kt(this.logger,t)}}var be=new kt;class Dt{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([i,s])=>{for(let o=0;o<s;o++)i(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([i,s])=>{for(let o=0;o<s;o++)i.apply(i,[t,...n])})}}class $n extends Dt{constructor(t,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r,i={}){var u,p;const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,o=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],r&&(Array.isArray(r)?l.push(...r):I(r)&&s?l.push(...r.split(s)):l.push(r)));const c=Et(this.data,l);return!c&&!n&&!r&&t.indexOf(".")>-1&&(t=l[0],n=l[1],r=l.slice(2).join(".")),c||!o||!I(r)?c:tn((p=(u=this.data)==null?void 0:u[t])==null?void 0:p[n],r,s)}addResource(t,n,r,i,s={silent:!1}){const o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let l=[t,n];r&&(l=l.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(l=t.split("."),i=n,n=l[1]),this.addNamespaces(n),Mn(this.data,l,i),s.silent||this.emit
vendor: 1,685 bytes, line 2
2("added",t,n,r,i)}addResources(t,n,r,i={silent:!1}){for(const s in r)(I(r[s])||Array.isArray(r[s]))&&this.addResource(t,n,s,r[s],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,s,o={silent:!1,skipCopy:!1}){let l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),i=r,r=n,n=l[1]),this.addNamespaces(n);let c=Et(this.data,l)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?Ur(c,r,s):c={...c,...r},Mn(this.data,l,c),o.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var Hr={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(s=>{var o;t=((o=this.processors[s])==null?void 0:o.process(t,n,r,i))??t}),t}};const qr=Symbol("i18next/PATH_KEY");function jo(){const e=[],t=Object.create(null);let n;return t.get=(r,i)=>{var s;return(s=n==null?void 0:n.revoke)==null||s.call(n),i===qr?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)},Proxy.revocable(Object.create(null),t).proxy}function nn(e,t){const{[qr]:n}=e(jo());return n.join((t==null?void 0:t.keySeparator)??".")}const zn={},Wt=e=>!I(e)&&typeof e!="boolean"&&typeof e!="number";class Ct extends Dt{constructor(t,n={}){super(),po(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
2i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=be.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){const r={...n};if(t==null)return!1;const i=this.resolve(t,r);if((i==null?void 0:i.res)===void 0)return!1;const s=Wt(i.res);return!(r.returnObjects===!1&&s)}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let s=n.ns||this.options.defaultNS||[];const o=r&&t.indexOf(r)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!So(t,r,i);if(o&&!l){const c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:I(s)?[s]:s};const u=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(u[0])>-1)&&(s=u.shift()),t=u.join(i)}return{key:t,namespaces:I(s)?[s]:s}}translate(t,n,r){let i=typeof n=="object"?{...n}:n;if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i=="object"&&(i={...i}),i||(i={}),t==null)return"";typeof t=="function"&&(t=nn(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]);const s=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:l,namespaces:c}=this.extractFromKey(t[t.length-1],i),u=c[c.length-1];let p=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;p===void 0&&(p=":");const d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((d==null?void 0:d.toLowerCase())==="cimode")return f?s?{res:`${u}${p}${l}`,usedKey:l,exactUsedKey:l,usedLng:d,usedNS:u,usedParams:this.getUsedParamsDetails(i)}:`${u}${p}${l}`:s?{res:l,usedKey:l,exactUsedKey:l,usedLng:d,usedNS:u,usedParams:this.getUsedParamsDetails(i)}:l;const m=this.resolve(t,i);let h=m==null?void 0:m.res;const b=(m==null?void 0:m.usedKey)||l,v=(m==null?void 0:m.exactUsedKey)||l,S=["[object Number]","[object Function]","[object RegExp]"],x=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,C=i.count!==void 0&&!I(i.count),F=Ct.hasDefaultValue(i),A=C?this.pluralResolver.getSuffix(d,i.count,i):"",D=i.ordinal&&C?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):"",q=C&&!i.ordinal&&i.count===0,w=q&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${A}`]||i[`defaultValue${D}`]||i.defaultValue;let $=h;E&&!h&&F&&($=w);const pe=Wt($),z=Object.prototype.toString.apply($);if(E&&$&&pe&&S.indexOf(z)<0&&!(I(x)&&Array.isArray($))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const V=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,$,{...i,ns:c}):`key '${l} (${this.language})' returned an object instead of string.`;return s?(m.res=V,m.usedParams=this.getUsedParamsDetails(i),m):V}if(o){const V=Array.isArray($),L=V?[]:{},G=V?v:b;for(const Q in $)if(Object.prototype.hasOwnProperty.call($,Q)){const M=`${G}${o}${Q}`;F&&!h?L[Q]=this.translate(M,{...i,defaultValue:Wt(w)?w[Q]:void 0,joinArrays:!1,ns:c}):L[Q]=this.translate(M,{...i,joinArrays:!1,ns:c}),L[Q]===M&&(L[Q]=$[Q])}h=L}}else if(E&&I(x)&&Array.isArray(h))h=h.join(x),h&&(h=this.extendTranslation(h,t,i,r));else{let V=!1,L=!1;!this.isValidLookup(h)&&F&&(V=!0,h=w),this.isValidLookup(h)||(L=!0,h=l);const Q=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&L?void 0:h,M=F&&w!==h&&this.options.updateMissing;if(L||V||M){if(this.logger.log(M?"updateKey":"missingKey",d,u,l,M?w:h),o){const re=this.resolve(l,{...i,keySeparator:!1});re&&re.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 K=[];const se=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&se&&se[0])for(let re=0;re<se.length;re++)K.push(se[re]);else this.options.saveMissingTo==="all"?K=this.languageUtils.toResolveHierarchy(i.lng||this.language):K.push(i.lng||this.language);const he=(re,Pe,Qe)=>{var Rn;const An=F&&Qe!==h?Qe:Q;this.options.missingKeyHandler?this.options.missingKeyHandler(re,u,Pe,An,M,i):(Rn=this.backendConnector)!=null&&Rn.saveMissing&&this.backendConnector.saveMissing(re,u,Pe,An,M,i),this.emit
vendor: 20,173 bytes, line 2
2("missingKey",re,u,Pe,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&C?K.forEach(re=>{const Pe=this.pluralResolver.getSuffixes(re,i);q&&i[`defaultValue${this.options.pluralSeparator}zero`]&&Pe.indexOf(`${this.options.pluralSeparator}zero`)<0&&Pe.push(`${this.options.pluralSeparator}zero`),Pe.forEach(Qe=>{he([re],l+Qe,i[`defaultValue${Qe}`]||w)})}):he(K,l,w))}h=this.extendTranslation(h,t,i,m,r),L&&h===l&&this.options.appendNamespaceToMissingKey&&(h=`${u}${p}${l}`),(L||V)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${p}${l}`:l,V?h:void 0,i))}return s?(m.res=h,m.usedParams=this.getUsedParamsDetails(i),m):h}extendTranslation(t,n,r,i,s){var c,u;if((c=this.i18nFormat)!=null&&c.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const p=I(t)&&(((u=r==null?void 0:r.interpolation)==null?void 0:u.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(p){const m=t.match(this.interpolator.nestingRegexp);d=m&&m.length}let f=r.replace&&!I(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,r.lng||this.language||i.usedLng,r),p){const m=t.match(this.interpolator.nestingRegexp),h=m&&m.length;d<h&&(r.nest=!1)}!r.lng&&i&&i.res&&(r.lng=this.language||i.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,(...m)=>(s==null?void 0:s[0])===m[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${m[0]} in key: ${n[0]}`),null):this.translate(...m,n),r)),r.interpolation&&this.interpolator.reset()}const o=r.postProcess||this.options.postProcess,l=I(o)?[o]:o;return t!=null&&(l!=null&&l.length)&&r.applyPostProcessor!==!1&&(t=Hr.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t,n={}){let r,i,s,o,l;return I(t)&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(c,n),p=u.key;i=p;let d=u.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const f=n.count!==void 0&&!I(n.count),m=f&&!n.ordinal&&n.count===0,h=n.context!==void 0&&(I(n.context)||typeof n.context=="number")&&n.context!=="",b=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(v=>{var S,x;this.isValidLookup(r)||(l=v,!zn[`${b[0]}-${v}`]&&((S=this.utils)!=null&&S.hasLoadedNamespace)&&!((x=this.utils)!=null&&x.hasLoadedNamespace(l))&&(zn[`${b[0]}-${v}`]=!0,this.logger.warn(`key "${i}" for languages "${b.join(", ")}" won't get resolved as namespace "${l}" 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!!!")),b.forEach(E=>{var A;if(this.isValidLookup(r))return;o=E;const C=[p];if((A=this.i18nFormat)!=null&&A.addLookupKeys)this.i18nFormat.addLookupKeys(C,p,E,v,n);else{let D;f&&(D=this.pluralResolver.getSuffix(E,n.count,n));const q=`${this.options.pluralSeparator}zero`,w=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(n.ordinal&&D.indexOf(w)===0&&C.push(p+D.replace(w,this.options.pluralSeparator)),C.push(p+D),m&&C.push(p+q)),h){const $=`${p}${this.options.contextSeparator||"_"}${n.context}`;C.push($),f&&(n.ordinal&&D.indexOf(w)===0&&C.push($+D.replace(w,this.options.pluralSeparator)),C.push($+D),m&&C.push($+q))}}let F;for(;F=C.pop();)this.isValidLookup(r)||(s=F,r=this.getResource(E,v,F,n))}))})}),{res:r,usedKey:i,exactUsedKey:s,usedLng:o,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r,i={}){var s;return(s=this.i18nFormat)!=null&&s.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(t={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!I(t.replace);let i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const s of n)delete i[s]}return i}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}class Wn{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=be.create("languageUtils")}getScriptPartFromCode(t){if(t=at(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=at(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(I(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getScriptPartFromCode(r);if(this.isSupportedCode(i))return n=i;const s=this.getLanguagePartFromCode(r);if(this.isSupportedCode(s))return n=s;n=this.options.supportedLngs.find(o=>{if(o===s)return o;if(!(o.indexOf("-")<0&&s.indexOf("-")<0)&&(o.indexOf("-")>0&&s.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===s||o.indexOf(s)===0&&s.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),I(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),i=[],s=o=>{o&&(this.isSupportedCode(o)?i.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return I(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):I(t)&&s(this.formatLanguageCode(t)),r.forEach(o=>{i.indexOf(o)<0&&s(this.formatLanguageCode(o))}),i}}const Vn={zero:0,one:1,two:2,few:3,many:4,other:5},Un={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Eo{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=be.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const r=at(t==="dev"?"en":t),i=n.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:r,type:i});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let o;try{o=new Intl.PluralRules(r,{type:i})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),Un;if(!t.match(/-|_/))return Un;const c=this.languageUtils.getLanguagePartFromCode(t);o=this.getRule(c,n)}return this.pluralRulesCache[s]=o,o}needsPlural(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,n,r={}){return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((i,s)=>Vn[i]-Vn[s]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):[]}getSuffix(t,n,r={}){const i=this.getRule(t,r);return i?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const Hn=(e,t,n,r=".",i=!0)=>{let s=go(e,t,n);return!s&&i&&I(n)&&(s=tn(e,n,r),s===void 0&&(s=tn(t,n,r))),s},Vt=e=>e.replace(/\$/g,"$$$$");class qn{constructor(t={}){var n;this.logger=be.create("interpolator"),this.options=t,this.format=((n=t==null?void 0:t.interpolation)==null?void 0:n.format)||(r=>r),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:s,prefixEscaped:o,suffix:l,suffixEscaped:c,formatSeparator:u,unescapeSuffix:p,unescapePrefix:d,nestingPrefix:f,nestingPrefixEscaped:m,nestingSuffix:h,nestingSuffixEscaped:b,nestingOptionsSeparator:v,maxReplaces:S,alwaysFormat:x}=t.interpolation;this.escape=n!==void 0?n:yo,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=s?Fe(s):o||"{{",this.suffix=l?Fe(l):c||"}}",this.formatSeparator=u||",",this.unescapePrefix=p?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":p||"",this.nestingPrefix=f?Fe(f):m||Fe("$t("),this.nestingSuffix=h?Fe(h):b||Fe(")"),this.nestingOptionsSeparator=v||",",this.maxReplaces=S||1e3,this.alwaysFormat=x!==void 0?x:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>(n==null?void 0:n.source)===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,n,r,i){var m;let s,o,l;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=h=>{if(h.indexOf(this.formatSeparator)<0){const x=Hn(n,c,h,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(x,void 0,r,{...i,...n,interpolationkey:h}):x}const b=h.split(this.formatSeparator),v=b.shift().trim(),S=b.join(this.formatSeparator).trim();return this.format(Hn(n,c,v,this.options.keySeparator,this.options.ignoreJSONStructure),S,r,{...i,...n,interpolationkey:v})};this.resetRegExp();const p=(i==null?void 0:i.missingInterpolationHandler)||this.options.missingInterpolationHandler,d=((m=i==null?void 0:i.interpolation)==null?void 0:m.skipOnVariables)!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:h=>Vt(h)},{regex:this.regexp,safeValue:h=>this.escapeValue?Vt(this.escape(h)):Vt(h)}].forEach(h=>{for(l=0;s=h.regex.exec(t);){const b=s[1].trim();if(o=u(b),o===void 0)if(typeof p=="function"){const S=p(t,s,i);o=I(S)?S:""}else if(i&&Object.prototype.hasOwnProperty.call(i,b))o="";else if(d){o=s[0];continue}else this.logger.warn(`missed to pass in variable ${b} for interpolating ${t}`),o="";else!I(o)&&!this.useRawValueToEscape&&(o=_n(o));const v=h.safeValue(o);if(t=t.replace(s[0],v),d?(h.regex.lastIndex+=o.length,h.regex.lastIndex-=s[0].length):h.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n,r={}){let i,s,o;const l=(c,u)=>{const p=this.nestingOptionsSeparator;if(c.indexOf(p)<0)return c;const d=c.split(new RegExp(`${p}[ ]*{`));let f=`{${d[1]}`;c=d[0],f=this.interpolate(f,o);const m=f.match(/'/g),h=f.match(/"/g);(((m==null?void 0:m.length)??0)%2===0&&!h||h.length%2!==0)&&(f=f.replace(/'/g,'"'));try{o=JSON.parse(f),u&&(o={...u,...o})}catch(b){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,b),`${c}${p}${f}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,c};for(;i=this.nestingRegexp.exec(t);){let c=[];o={...r},o=o.replace&&!I(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;const u=/{.*}/.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(u!==-1&&(c=i[1].slice(u).split(this.formatSeparator).map(p=>p.trim()).filter(Boolean),i[1]=i[1].slice(0,u)),s=n(l.call(this,i[1].trim(),o),o),s&&i[0]===t&&!I(s))return s;I(s)||(s=_n(s)),s||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),s=""),c.length&&(s=c.reduce((p,d)=>this.format(p,d,r.lng,{...r,interpolationkey:i[1].trim()}),s.trim())),t=t.replace(i[0],s),this.regexp.lastIndex=0}return t}}const ko=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(o=>{if(o){const[l,...c]=o.split(":"),u=c.join(":").trim().replace(/^'+|'+$/g,""),p=l.trim();n[p]||(n[p]=u),u==="false"&&(n[p]=!1),u==="true"&&(n[p]=!0),isNaN(u)||(n[p]=parseInt(u,10))}})}return{formatName:t,formatOptions:n}},Gn=e=>{const t={};return(n,r,i)=>{let s=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(s={...s,[i.interpolationkey]:void 0});const o=r+JSON.stringify(s);let l=t[o];return l||(l=e(at(r),i),t[o]=l),l(n)}},Co=e=>(t,n,r)=>e(at(n),r)(t);class Oo{constructor(t={}){this.logger=be.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?Gn:Co;this.formats={number:r((i,s)=>{const o=new Intl.NumberFormat(i,{...s});return l=>o.format(l)}),currency:r((i,s)=>{const o=new Intl.NumberFormat(i,{...s,style:"currency"});return l=>o.format(l)}),datetime:r((i,s)=>{const o=new Intl.DateTimeFormat(i,{...s});return l=>o.format(l)}),relativetime:r((i,s)=>{const o=new Intl.RelativeTimeFormat(i,{...s});return l=>o.format(l,s.range||"day")}),list:r((i,s)=>{const o=new Intl.ListFormat(i,{...s});return l=>o.format(l)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Gn(n)}format(t,n,r,i={}){const s=n.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(l=>l.indexOf(")")>-1)){const l=s.findIndex(c=>c.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,l)].join(this.formatSeparator)}return s.reduce((l,c)=>{var d;const{formatName:u,formatOptions:p}=ko(c);if(this.formats[u]){let f=l;try{const m=((d=i==null?void 0:i.formatParams)==null?void 0:d[i.interpolationkey])||{},h=m.locale||m.lng||i.locale||i.lng||r;f=this.formats[u](l,h,{...p,...i,...m})}catch(m){this.logger.warn(m)}return f}else this.logger.warn(`there was no format function for ${u}`);return l},t)}}const Po=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class To extends Dt{constructor(t,n,r,i={}){var s,o;super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=be.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],(o=(s=this.backend)==null?void 0:s.init)==null||o.call(s,r,i.backend,i)}queueLoad(t,n,r,i){const s={},o={},l={},c={};return t.forEach(u=>{let p=!0;n.forEach(d=>{const f=`${u}|${d}`;!r.reload&&this.store.hasResourceBundle(u,d)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?o[f]===void 0&&(o[f]=!0):(this.state[f]=1,p=!1,o[f]===void 0&&(o[f]=!0),s[f]===void 0&&(s[f]=!0),c[d]===void 0&&(c[d]=!0)))}),p||(l[u]=!0)}),(Object.keys(s).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(s),pending:Object.keys(o),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(c)}}loaded(t,n,r){const i=t.split("|"),s=i[0],o=i[1];n&&this.emit("failedLoading",s,o,n),!n&&r&&this.store.addResourceBundle(s,o,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const l={};this.queue.forEach(c=>{mo(c.loaded,[s],o),Po(c,t),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(u=>{l[u]||(l[u]={});const p=c.loaded[u];p.length&&p.forEach(d=>{l[u][d]===void 0&&(l[u][d]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(c=>!c.done)}read(t,n,r,i=0,s=this.retryTimeout,o){if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:s,callback:o});return}this.readingCalls++;const l=(u,p)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(u&&p&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,i+1,s*2,o)},s);return}o(u,p)},c=this.backend[r].bind(this.backend);if(c.length===2){try{const u=c(t,n);u&&typeof u.then=="function"?u.then(p=>l(null,p)).catch(l):l(null,u)}catch(u){l(u)}return}return c(t,n,l)}prepareLoading(t,n,r={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();I(t)&&(t=this.languageUtils.toResolveHierarchy(t)),I(n)&&(n=[n]);const s=this.queueLoad(t,n,r,i);if(!s.toLoad.length)return s.pending.length||i(),null;s.toLoad.forEach(o=>{this.loadOne(o)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t,n=""){const r=t.split("|"),i=r[0],s=r[1];this.read(i,s,"read",void 0,void 0,(o,l)=>{o&&this.logger.warn(`${n}loading namespace ${s} for language ${i} failed`,o),!o&&l&&this.logger.log(`${n}loaded namespace ${s} for language ${i}`,l),this.loaded(t,o,l)})}saveMissing(t,n,r,i,s,o={},l=()=>{}){var c,u,p,d,f;if((u=(c=this.services)==null?void 0:c.utils)!=null&&u.hasLoadedNamespace&&!((d=(p=this.services)==null?void 0:p.utils)!=null&&d.hasLoadedNamespace(n))){this.logger.warn(`did not save key "${r}" as the namespace "${n}" 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!!!");return}if(!(r==null||r==="")){if((f=this.backend)!=null&&f.create){const m={...o,isUpdate:s},h=this.backend.create.bind(this.backend);if(h.length<6)try{let b;h.length===5?b=h(t,n,r,i,m):b=h(t,n,r,i),b&&typeof b.then=="function"?b.then(v=>l(null,v)).catch(l):l(null,b)}catch(b){l(b)}else h(t,n,r,i,l,m)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}const Ut=()=>({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(typeof e[1]=="object"&&(t=e[1]),I(e[1])&&(t.defaultValue=e[1]),I(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];
2Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Kn=e=>{var t,n;return I(e.ns)&&(e.ns=[e.ns]),I(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),I(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((n=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:n.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},xt=()=>{},Ao=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};let Yn=!1;const Ro=e=>{var t,n,r,i,s,o,l,c,u;return!!(((r=(n=(t=e==null?void 0:e.modules)==null?void 0:t.backend)==null?void 0:n.name)==null?void 0:r.indexOf("Locize"))>0||((l=(o=(s=(i=e==null?void 0:e.modules)==null?void 0:i.backend)==null?void 0:s.constructor)==null?void 0:o.name)==null?void 0:l.indexOf("Locize"))>0||(u=(c=e==null?void 0:e.options)==null?void 0:c.backend)!=null&&u.backends&&e.options.backend.backends.some(p=>{var d,f,m;return((d=p==null?void 0:p.name)==null?void 0:d.indexOf("Locize"))>0||((m=(f=p==null?void 0:p.constructor)==null?void 0:f.name)==null?void 0:m.indexOf("Locize"))>0}))};class ot extends Dt{constructor(t={},n){if(super(),this.options=Kn(t),this.services={},this.logger=be,this.modules={external:[]},Ao(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(I(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=Ut();this.options={...r,...this.options,...Kn(t)},this.options.interpolation={...r.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!Ro(this)&&!Yn&&(typeof console<"u"&&typeof console.info<"u"&&console.info("🌐 i18next is maintained with support from Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),Yn=!0);const i=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?be.init(i(this.modules.logger),this.options):be.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:u=Oo;const p=new Wn(this.options);this.store=new $n(this.options.resources,this.options);const d=this.services;d.logger=be,d.resourceStore=this.store,d.languageUtils=p,d.pluralResolver=new Eo(p,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),u&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(d.formatter=i(u),d.formatter.init&&d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new qn(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new To(i(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",(m,...h)=>{this.emit(m,...h)}),this.modules.languageDetector&&(d.languageDetector=i(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=i(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new Ct(this.services,this.options),this.translator.on("*",(m,...h)=>
vendor: 4,108 bytes, line 2
2{this.emit(m,...h)}),this.modules.external.forEach(m=>{m.init&&m.init(this)})}if(this.format=this.options.interpolation.format,n||(n=xt),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[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(u=>{this[u]=(...p)=>this.store[u](...p)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=(...p)=>(this.store[u](...p),this)});const l=Ze(),c=()=>{const u=(p,d)=>{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),l.resolve(d),n(p,d)};if(this.languages&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initAsync?c():setTimeout(c,0),l}loadResources(t,n=xt){var s,o;let r=n;const i=I(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if((i==null?void 0:i.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const l=[],c=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(d=>{d!=="cimode"&&l.indexOf(d)<0&&l.push(d)})};i?c(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(p=>c(p)),(o=(s=this.options.preload)==null?void 0:s.forEach)==null||o.call(s,u=>c(u)),this.services.backendConnector.load(l,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(u)})}else r(null)}reloadResources(t,n,r){const i=Ze();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=xt),this.services.backendConnector.reload(t,n,s=>{i.resolve(),r(s)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&Hr.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;const r=Ze();this.emit("languageChanging",t);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},s=(l,c)=>{c?this.isLanguageChangingTo===t&&(i(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,r.resolve((...u)=>this.t(...u)),n&&n(l,(...u)=>this.t(...u))},o=l=>{var p,d;!t&&!l&&this.services.languageDetector&&(l=[]);const c=I(l)?l:l&&l[0],u=this.store.hasLanguageSomeTranslations(c)?c:this.services.languageUtils.getBestMatchFromCodes(I(l)?[l]:l);u&&(this.language||i(u),this.translator.language||this.translator.changeLanguage(u),
vendor: 1,396 bytes, line 2
2(d=(p=this.services.languageDetector)==null?void 0:p.cacheUserLanguage)==null||d.call(p,u)),this.loadResources(u,f=>{s(f,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(t),r}getFixedT(t,n,r){const i=(s,o,...l)=>{let c;typeof o!="object"?c=this.options.overloadTranslationOptionHandler([s,o].concat(l)):c={...o},c.lng=c.lng||i.lng,c.lngs=c.lngs||i.lngs,c.ns=c.ns||i.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||r||i.keyPrefix);const u=this.options.keySeparator||".";let p;return c.keyPrefix&&Array.isArray(s)?p=s.map(d=>(typeof d=="function"&&(d=nn(d,{...this.options,...o})),`${c.keyPrefix}${u}${d}`)):(typeof s=="function"&&(s=nn(s,{...this.options,...o})),p=c.keyPrefix?`${c.keyPrefix}${u}${s}`:s),this.t(p,c)};return I(t)?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,i}t(...t){var n;return(n=this.translator)==null?void 0:n.translate(...t)}exists(...t){var n;return(n=this.translator)==null?void 0:n.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
2if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(l,c)=>{const u=this.services.backendConnector.state[`${l}|${c}`];return u===-1||u===0||u===2};if(n.precheck){const l=n.precheck(this,o);if(l!==void 0)return l}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,t)&&(!i||o(s,t)))}loadNamespaces(t,n){const r=Ze();return this.options.ns?(I(t)&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Ze();I(t)&&(t=[t]);const i=this.options.preload||[],s=t.filter(o=>i.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return s.length?(this.options.preload=i.concat(s),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}dir(t){var i,s;if(t||(t=this.resolvedLanguage||(((i=this.languages)==null?void 0:i.length)>0?this.languages[0]:this.language)),!t)return"rtl";try{const o=new Intl.Locale(t);if(o&&o.getTextInfo){const l=o.getTextInfo();if(l&&l.direction)return l.direction}}catch{}const n=["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"],r=((s=this.services)==null?void 0:s.languageUtils)||new Wn(Ut());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){const r=new ot(t,n);return r.createInstance=ot.createInstance,r}cloneInstance(t={},n=xt){const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},s=new ot(i);if((t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(l=>{s[l]=this[l]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r){const l=Object.keys(this.store.data).reduce((c,u)=>(c[u]={...this.store.data[u]},c[u]=Object.keys(c[u]).reduce((p,d)=>(p[d]={...c[u][d]},p),c[u]),c),{});s.store=new $n(l,i),s.services.resourceStore=s.store}if(t.interpolation){const c={...Ut().interpolation,...this.options.interpolation,...t.interpolation},u={...i,interpolation:c};s.services.interpolator=new qn(u)}return s.translator=new Ct(s.services,i),s.translator.on("*",(l,...c)=>{s.emit(l,...c)}),s.init(i,n),s.translator.options=i,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const X=ot.createInstance();X.createInstance;X.dir;X.init;X.loadResources;X.reloadResources;X.use;X.changeLanguage;X.getFixedT;X.t;X.exists;X.setDefaultNamespace;X.hasLoadedNamespace;X.loadNamespaces;X.loadLanguages;const Lo=(e,t,n,r)=>{var s,o,l,c;const i=[n,{code:t,...r||{}}];if((o=(s=e==null?void 0:e.services)==null?void 0:s.logger)!=null&&o.forward)return e.services.logger.forward(i,"warn","react-i18next::",!0);Ie(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),(c=(l=e==null?void 0:e.services)==null?void 0:l.logger)!=null&&c.warn?e.services.logger.warn(...i):console!=null&&console.warn&&console.warn(...i)},Jn={},Gr=(e,t,n,r)=>{Ie(n)&&Jn[n]||(Ie(n)&&(Jn[n]=new Date),Lo(e,t,n,r))},Kr=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},rn=(e,t,n)=>{e.loadNamespaces(t,Kr(e,n))},Qn=(e,t,n,r)=>{if(Ie(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return rn(e,n,r);
2n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,Kr(e,r))},Io=(e,t,n={})=>!t.languages||!t.languages.length?(Gr(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,i)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!i(r.isLanguageChangingTo,e))return!1}}),Ie=e=>typeof e=="string",Bo=e=>typeof e=="object"&&e!==null,_o=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Fo={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},Do=e=>Fo[e],Mo=e=>e.replace(_o,Do);let sn={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Mo,transDefaultProps:void 0};const $o=(e={})=>{sn={...sn,...e}},zo=()=>sn;let Yr;const Wo=e=>{Yr=e},Vo=()=>Yr,Uo={type:"3rdParty",init(e){$o(e.options.react),Wo(e)}},Ho=g.createContext();class qo{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var Jr={exports:{}},Qr={};/**
3 * @license React
4 * use-sync-external-store-shim.production.js
5 *
6 * Copyright (c) Meta Platforms, Inc. and affiliates.
7 *
8 * This source code is licensed under the MIT license found in the
9 * LICENSE file in the root directory of this source tree.
10 */var ze=g;function Go(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ko=typeof Object.is=="function"?Object.is:Go,Yo=ze.useState,Jo=ze.useEffect,Qo=ze.useLayoutEffect,Zo=ze.useDebugValue;function Xo(e,t){var n=t(),r=Yo({inst:{value:n,getSnapshot:t}}),i=r[0].inst,s=r[1];return Qo(function(){i.value=n,i.getSnapshot=t,Ht(i)&&s({inst:i})},[e,n,t]),Jo(function(){return Ht(i)&&s({inst:i}),e(function(){Ht(i)&&s({inst:i})})},[e]),Zo(n),n}function Ht(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ko(e,n)}catch{return!0}}function ea(e,t){return t()}var ta=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?ea:Xo;Qr.useSyncExternalStore=ze.useSyncExternalStore!==void 0?ze.useSyncExternalStore:ta;Jr.exports=Qr;var na=Jr.exports;const ra=(e,t)=>Ie(t)?t:Bo(t)&&Ie(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,ia={t:ra,ready:!1},sa=()=>()=>{},Zr=(e,t={})=>{var w,$,pe;const{i18n:n}=t,{i18n:r,defaultNS:i}=g.useContext(Ho)||{},s=n||r||Vo();s&&!s.reportNamespaces&&(s.reportNamespaces=new qo),s||Gr(s,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const o=g.useMemo(()=>{var z;return{...zo(),...(z=s==null?void 0:s.options)==null?void 0:z.react,...t}},[s,t]),{useSuspense:l,keyPrefix:c}=o,u=i||((w=s==null?void 0:s.options)==null?void 0:w.defaultNS),p=Ie(u)?[u]:u||["translation"],d=g.useMemo(()=>p,p);(pe=($=s==null?void 0:s.reportNamespaces)==null?void 0:$.addUsedNamespaces)==null||pe.call($,d);const f=g.useRef(0),m=g.useCallback(z=>{if(!s)return sa;const{bindI18n:V,bindI18nStore:L}=o,G=()=>{f.current+=1,z()};return V&&s.on(V,G),L&&s.store.on(L,G),()=>{V&&V.split(" ").forEach(Q=>s.off(Q,G)),L&&L.split(" ").forEach(Q=>s.store.off(Q,G))}},[s,o]),h=g.useRef(),b=g.useCallback(()=>{if(!s)return ia;const z=!!(s.isInitialized||s.initializedStoreOnce)&&d.every(K=>Io(K,s,o)),V=t.lng||s.language,L=f.current,G=h.current;if(G&&G.ready===z&&G.lng===V&&G.keyPrefix===c&&G.revision===L)return G;const M={t:s.getFixedT(V,o.nsMode==="fallback"?d:d[0],c),ready:z,lng:V,keyPrefix:c,revision:L};return h.current=M,M},[s,d,c,o,t.lng]),[v,S]=g.useState(0),{t:x,ready:E}=na.useSyncExternalStore(m,b,b);g.useEffect(()=>{if(s&&!E&&!l){const z=()=>S(V=>V+1);t.lng?Qn(s,t.lng,d,z):rn(s,d,z)}},[s,t.lng,d,E,l,v]);const C=s||{},F=g.useRef(null),A=g.useRef(),D=z=>{const V=Object.getOwnPropertyDescriptors(z);V.__original&&delete V.__original;const L=Object.create(Object.getPrototypeOf(z),V);if(!Object.prototype.hasOwnProperty.call(L,"__original"))try{Object.defineProperty(L,"__original",{value:z,writable:!1,enumerable:!1,
10configurable:!1})}catch{}return L},q=g.useMemo(()=>{const z=C,V=z==null?void 0:z.language;let L=z;z&&(F.current&&F.current.__original===z?A.current!==V?(L=D(z),F.current=L,A.current=V):L=F.current:(L=D(z),F.current=L,A.current=V));const G=[x,L,E];return G.t=x,G.i18n=L,G.ready=E,G},[x,C,E,C.resolvedLanguage,C.language,C.languages]);if(s&&l&&!E)throw new Promise(z=>{const V=()=>z();t.lng?Qn(s,t.lng,d,V):rn(s,d,V)});return q},oa=[{id:"home",label:"Home",path:"/",type:"page",keywords:["homepage","national insurance board","nib","bahamas","social security"],description:"National Insurance Board of The Bahamas - Your social security partner"},{id:"about",label:"About Us",path:"/about",type:"page",keywords:["about","history","mission","vision","values","board members","executives","leadership"],description:"Learn about NIB's history, mission, vision, and leadership team"},{id:"contact",label:"Contact Us",path:"/contact",type:"page",keywords:["contact","phone","email","address","location","office hours","branches"],description:"Contact information for NIB offices in New Providence and Family Islands"},{id:"faq",label:"Frequently Asked Questions",path:"/faq",type:"page",keywords:["faq","questions","answers","help","support","common questions"],description:"Find answers to commonly asked questions about NIB services"},{id:"forms",label:"Forms",path:"/forms",type:"page",keywords:["forms","documents","download","pdf","applications","claim forms"],description:"Download NIB forms for registration, claims, and other services"},{id:"sitemap",label:"Sitemap",path:"/sitemap",type:"page",keywords:["sitemap","navigation","site map","site structure"],description:"Complete sitemap of the NIB website"},{id:"disclaimer",label:"Disclaimer",path:"/disclaimer",type:"page",keywords:["disclaimer","legal","terms","liability"],description:"Legal disclaimer and terms of use"},{id:"privacy",label:"Privacy Policy",path:"/privacy-policy",type:"page",keywords:["privacy","policy","data protection","personal information","gdpr"],description:"NIB's privacy policy and data protection practices"},{id:"benefits-overview",label:"Benefits Overview",path:"/benefits/overview",type:"benefits",keywords:["benefits","overview","all benef
10its","entitlements","what benefits"],description:"Overview of all NIB benefits and entitlements"},{id:"benefits-calculator",label:"Benefits Calculator",path:"/benefits/calculator",type:"calculator",keywords:["calculator","estimate","calculate benefits","how much","benefit amount"],description:"Calculate your potential NIB benefit amounts"},{id:"long-term-benefits",label:"Long Term Benefits",path:"/benefits/long-term",type:"benefits",keywords:["long-term","retirement","pension","invalidity","survivors","death benefit","old age"],description:"Information on retirement pension, invalidity, and survivors benefits"},{id:"short-term-benefits",label:"Short Term Benefits",path:"/benefits/short-term",type:"benefits",keywords:["short-term","sickness","maternity","unemployment","temporary"],description:"Information on sickness, maternity, and unemployment benefits"},{id:"industrial-benefits",label:"Industrial Benefits",path:"/benefits/industrial",type:"benefits",keywords:["industrial","work injury","workplace accident","occupational injury","workers compensation"],description:"Benefits for work-related injuries and industrial accidents"},{id:"assistance-payments",label:"Assistance Payments",path:"/benefits/assistance-payments",type:"benefits",keywords:["assistance","funeral grant","grant","financial assistance"],description:"Information on funeral grants and other assistance payments"},{id:"registration-individual",label:"Individual Registration",path:"/registration/individual",type:"registration",keywords:["register","registration","individual","employee","sign up","NIB card","new member"],description:"How to register as an individual or employee with NIB"},{id:"registration-business",label:"Business Registration",path:"/registration/business",type:"registration",keywords:["register","registration","business","employer","company","self-employed","voluntary"],description:"How to register your business or as a self-employed person"},{id:"contributions",label:"Contributions",path:"/contributions",type:"contributions",keywords:["contributions","payment","rates","how much","pay","contribution rates","weekly","insurable earnings"],description:"Information on NIB contribution rates and payment methods"},{id:"portals",label:"Portals and Services",path:"/portals",type:"portals",keywords:["portals","services","online services","digital","ess","rss","c10","ez renew"],description:"Access NIB's online portals and digital services"},{id:"ess-portal",label:"Employer Self Service (ESS)",path:"/portals/ess",type:"portal",keywords:["ess","employer","self service","online portal","employer portal","contributions online"],description:"Employer Self Service (ESS) portal for managing contributions and employee records"},{id:"rss-portal",label:"Registrant Self Service (RSS)",path:"/portals/rss",type:"portal",keywords:["rss","registrant","self service","online portal","registrant portal","self-employed"],description:"Registrant Self Service (RSS) portal for self-employed and voluntary contributors"},{id:"c10-portal",label:"C10 Mobile App",path:"/portals/c10",type:"portal",keywords:["c10","mobile","app","mobile app","android","ios","smartphone"],description:"C10 mobile application for managing your NIB account on the go"},{id:"ez-renew",label:"EZ Renew",path:"/portals/ez",type:"portal",keywords:["ez renew","renew","easy renew","online renewal","quick renewal"],description:"Quick and easy online renewal service"},{id:"drug-plan",label:"NIB Drug Plan",path:"https://www.drugplan.com",type:"external",keywords:["drug plan","prescription","medication","pharmacy","drugs","medicines"],description:"NIB Drug Plan for prescription medication coverage"},{id:"news",label:"News",path:"/news",type:"page",keywords:["news","articles","updates","announcements","press releases"],description:"Latest news and updates from NIB"},{id:"events",label:"Events",path:"/events",type:"page",keywords:["events","calendar","upcoming","activities","workshops"],description:"Upcoming NIB events and activities"},{id:"publications",label:"Publications",path:"/publications",type:"page",keywords:["publications","reports","documents","annual report","statistics"],description:"NIB publications, reports, and documents"}
10,{id:"archive",label:"Archive",path:"/archive",type:"page",keywords:["archive","old news","past articles","historical"],description:"Archive of past news articles and updates"},{id:"gallery",label:"Gallery",path:"/gallery",type:"page",keywords:["gallery","photos","images","pictures","events photos"],description:"Photo gallery of NIB events and activities"},{id:"careers",label:"Careers",path:"/careers",type:"page",keywords:["careers","jobs","employment","vacancies","work at nib","job openings"],description:"Career opportunities at NIB"},{id:"public-tenders",label:"Public Tenders",path:"/public-tenders",type:"page",keywords:["tenders","procurement","bids","contracts","rfp","request for proposal"],description:"NIB public tenders and procurement opportunities"},{id:"pensioners",label:"Pensioners",path:"/pensioners",type:"page",keywords:["pensioners","retirees","pension","retirement","seniors","life certificate"],description:"Information and services for NIB pensioners"},{id:"appeals",label:"Appeals",path:"/appeals",type:"page",keywords:["appeals","dispute","challenge","decision","appeal process"],description:"Information on the NIB appeals process"},{id:"offences",label:"Offences and Penalties",path:"/offences",type:"page",keywords:["offences","penalties","violations","fines","legal","compliance"],description:"Information on NIB offences and penalties"},{id:"search-nib-card",label:"NIB Card",path:"/registration/individual",type:"redirect",keywords:["nib card","nib number","card replacement","lost card","get nib card"],description:"Information on obtaining or replacing your NIB card"},{id:"search-contribution-rates",label:"Contribution Rates",path:"/contributions",type:"redirect",keywords:["rates","how much","contribution amount","payment amount","weekly contribution"],description:"NIB contribution rates and payment schedules"},{id:"search-retirement",label:"Retirement Information",path:"/benefits/long-term",type:"redirect",keywords:["retire","retirement age","when can i retire","pension age","retire early"],description:"Information on retirement age and pension eligibility"},{id:"search-maternity",label:"Maternity Benefits",path:"/benefits/short-term",type:"redirect",keywords:["maternity","pregnancy","maternity leave","maternity pay","pregnant"],description:"Information on maternity benefits and eligibility"},{id:"search-unemployment",label:"Unemployment Benefits",path:"/benefits/short-term",type:"redirect",keywords:["unemployment","job loss","laid off","redundancy","out of work"],description:"Information on unemployment benefits"},{id:"search-sickness",label:"Sickness Benefits",path:"/benefits/short-term",type:"redirect",keywords:["sick","illness","medical leave","sick leave","sickness benefit"],description:"Information on sickness benefits"},{id:"search-injury",label:"Work Injury",path:"/benefits/industrial",type:"redirect",keywords:["work injury","injured at work","workplace accident","hurt on job"],description:"Information on benefits for work-related injuries"},{id:"search-death",label:"Death Benefits",path:"/benefits/long-term",type:"redirect",keywords:["death","deceased","bereavement","funeral","survivor benefits"],description:"Information on death and survivor benefits"},{id:"search-office-hours",label:"Office Hours",path:"/contact",type:"redirect",keywords:["hours","opening hours","office hours","when open","business hours"],description:"NIB office hours and locations"},{id:"search-payment",label:"Make a Payment",path:"/portals",type:"redirect",keywords:["pay","payment","pay contribution","pay online","make payment"],description:"How to make NIB contributions payments"}];function Ne(e){return Array.isArray?Array.isArray(e):ti(e)==="[object Array]"}function aa(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function la(e){return e==null?"":aa(e)}function ye(e){return typeof e=="string"}function Xr(e){return typeof e=="number"}function ca(e){return e===!0||e===!1||ua(e)&&ti(e)=="[object Boolean]"}function ei(e){return typeof e=="object"}function ua(e){return ei(e)&&e!==null}function oe(e){return e!=null}function qt(e){return!e.trim().length}
vendor: 14,473 bytes, line 10
10function ti(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const da="Incorrect 'index' type",fa=e=>`Invalid value for key ${e}`,pa=e=>`Pattern length exceeds max of ${e}.`,ha=e=>`Missing ${e} property in key`,ma=e=>`Property 'weight' in key '${e}' must be a positive integer`,Zn=Object.prototype.hasOwnProperty;class ga{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(r=>{let i=ni(r);this._keys.push(i),this._keyMap[i.id]=i,n+=i.weight}),this._keys.forEach(r=>{r.weight/=n})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function ni(e){let t=null,n=null,r=null,i=1,s=null;if(ye(e)||Ne(e))r=e,t=Xn(e),n=on(e);else{if(!Zn.call(e,"name"))throw new Error(ha("name"));const o=e.name;if(r=o,Zn.call(e,"weight")&&(i=e.weight,i<=0))throw new Error(ma(o));t=Xn(o),n=on(o),s=e.getFn}return{path:t,id:n,weight:i,src:r,getFn:s}}function Xn(e){return Ne(e)?e:e.split(".")}function on(e){return Ne(e)?e.join("."):e}function ba(e,t){let n=[],r=!1;const i=(s,o,l)=>{if(oe(s))if(!o[l])n.push(s);else{let c=o[l];const u=s[c];if(!oe(u))return;if(l===o.length-1&&(ye(u)||Xr(u)||ca(u)))n.push(la(u));else if(Ne(u)){r=!0;for(let p=0,d=u.length;p<d;p+=1)i(u[p],o,l+1)}else o.length&&i(u,o,l+1)}};return i(e,ye(t)?t.split("."):t,0),r?n:n[0]}const ya={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},va={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},xa={location:0,threshold:.6,distance:100},wa={useExtendedSearch:!1,getFn:ba,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var R={...va,...ya,...xa,...wa};const Sa=/[^ ]+/g;function Na(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(i){const s=i.match(Sa).length;if(n.has(s))return n.get(s);const o=1/Math.pow(s,.5*e),l=parseFloat(Math.round(o*r)/r);return n.set(s,l),l},clear(){n.clear()}}}class xn{constructor({getFn:t=R.getFn,fieldNormWeight:n=R.fieldNormWeight}={}){this.norm=Na(n,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((n,r)=>{this._keysMap[n.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,ye(this.docs[0])?this.docs.forEach((t,n)=>{this._addString(t,n)}):this.docs.forEach((t,n)=>{this._addObject(t,n)}),this.norm.clear())}add(t){const n=this.size();ye(t)?this._addString(t,n):this._addObject(t,n)}removeAt(t){this.records.splice(t,1);for(let n=t,r=this.size();n<r;n+=1)this.records[n].i-=1}getValueForItemAtKeyId(t,n){return t[this._keysMap[n]]}size(){return this.records.length}_addString(t,n){if(!oe(t)||qt(t))return;let r={v:t,i:n,n:this.norm.get(t)};this.records.push(r)}_addObject(t,n){let r={i:n,$:{}};this.keys.forEach((i,s)=>{let o=i.getFn?i.getFn(t):this.getFn(t,i.path);if(oe(o)){if(Ne(o)){let l=[];const c=[{nestedArrIndex:-1,value:o}];for(;c.length;){const{nestedArrIndex:u,value:p}=c.pop();if(oe(p))if(ye(p)&&!qt(p)){let d={v:p,i:u,n:this.norm.get(p)};l.push(d)}else Ne(p)&&p.forEach((d,f)=>{c.push({nestedArrIndex:f,value:d})})}r.$[s]=l}else if(ye(o)&&!qt(o)){let l={v:o,n:this.norm.get(o)};r.$[s]=l}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function ri(e,t,{getFn:n=R.getFn,fieldNormWeight:r=R.fieldNormWeight}={}){const i=new xn({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(ni)),i.setSources(t),i.create(),i}function ja(e,{getFn:t=R.getFn,fieldNormWeight:n=R.fieldNormWeight}={}){const{keys:r,records:i}=e,s=new xn({getFn:t,fieldNormWeight:n});return s.setKeys(r),s.setIndexRecords(i),s}function wt(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:i=R.distance,ignoreLocation:s=R.ignoreLocation}={}){const o=t/e.length;if(s)return o;const l=Math.abs(r-n);return i?o+l/i:l?1:o}function Ea(e=[],t=R.minMatchCharLength){let n=[],r=-1,i=-1,s=0;for(let o=e.length;s<o;s+=1){let l=e[s];l&&r===-1?r=s:!l&&r!==-1&&(i=s-1,i-r+1>=t&&n.push([r,i]),r=-1)}return e[s-1]&&s-r>=t&&n.push([r,s-1]),n}const Ae=32;function ka(e,t,n,{location:r=R.location,distance:i=R.distance,threshold:s=R.threshold,findAllMatches:o=R.findAllMatches,minMatchCharLength:l=R.minMatchCharLength,includeMatches:c=R.includeMatches,ignoreLocation:u=R.ignoreLocation}={}){if(t.length>Ae)throw new Error(pa(Ae));const p=t.length,d=e.length,f=Math.max(0,Math.min(r,d));let m=s,h=f;const b=l>1||c,v=b?Array(d):[];let S;for(;(S=e.indexOf(t,h))>-1;){let D=wt(t,{currentLocation:S,expectedLocation:f,distance:i,ignoreLocation:u});if(m=Math.min(D,m),h=S+p,b){let q=0;for(;q<p;)v[S+q]=1,q+=1}}h=-1;let x=[],E=1,C=p+d;const F=1<<p-1;for(let D=0;D<p;D+=1){let q=0,w=C;for(;q<w;)wt(t,{errors:D,currentLocation:f+w,expectedLocation:f,distance:i,ignoreLocation:u})<=m?q=w:C=w,w=Math.floor((C-q)/2+q);C=w;let $=Math.max(1,f-w+1),pe=o?d:Math.min(f+w,d)+p,z=Array(pe+2);z[pe+1]=(1<<D)-1;for(let L=pe;L>=$;L-=1){let G=L-1,Q=n[e.charAt(G)];if(b&&(v[G]=+!!Q),z[L]=(z[L+1]<<1|1)&Q,D&&(z[L]|=(x[L+1]|x[L])<<1|1|x[L+1]),z[L]&F&&(E=wt(t,{errors:D,currentLocation:G,expectedLocation:f,distance:i,ignoreLocation:u}),E<=m)){if(m=E,h=G,h<=f)break;$=Math.max(1,2*f-h)}}if(wt(t,{errors:D+1,currentLocation:f,expectedLocation:f,distance:i,ignoreLocation:u})>m)break;x=z}const A={isMatch:h>=0,score:Math.max(.001,E)};if(b){const D=Ea(v,l);D.length?c&&(A.indices=D):A.isMatch=!1}return A}function Ca(e){let t={};for(let n=0,r=e.length;n<r;n+=1){const i=e.charAt(n);t[i]=(t[i]||0)|1<<r-n-1}return t}const Ot=String.prototype.normalize?e=>e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,""):e=>e;class ii{constructor(t,{location:n=R.location,threshold:r=R.threshold,distance:i=R.distance,includeMatches:s=R.includeMatches,findAllMatches:o=R.findAllMatches,minMatchCharLength:l=R.minMatchCharLength,isCaseSensitive:c=R.isCaseSensitive,ignoreDiacritics:u=R.ignoreDiacritics,ignoreLocation:p=R.ignoreLocation}={}){if(this.options={location:n,threshold:r,distance:i,includeMatches:s,findAllMatches:o,minMatchCharLength:l,isCaseSensitive:c,ignoreDiacritics:u,ignoreLocation:p},t=c?t:t.toLowerCase(),t=u?Ot(t):t,this.pattern=t,this.chunks=[],!this.pattern.length)return;const d=(m,h)=>{this.chunks.push({pattern:m,alphabet:Ca(m),startIndex:h})},f=this.pattern.length;if(f>Ae){let m=0;const h=f%Ae,b=f-h;for(;m<b;)d(this.pattern.substr(m,Ae),m),m+=Ae;if(h){const v=f-Ae;d(this.pattern.substr(v),v)}}else d(this.pattern,0)}searchIn(t){const{isCaseSensitive:n,ignoreDiacritics:r,includeMatches:i}=this.options;if(t=n?t:t.toLowerCase(),t=r?Ot(t):t,this.pattern===t){let b={isMatch:!0,score:0};return i&&(b.indices=[[0,t.length-1]]),b}const{location:s,distance:o,threshold:l,findAllMatches:c,minMatchCharLength:u,ignoreLocation:p}=this.options;let d=[],f=0,m=!1;this.chunks.forEach(({pattern:b,alphabet:v,startIndex:S})=>{const{isMatch:x,score:E,indices:C}=ka(t,b,v,{location:s+S,distance:o,threshold:l,findAllMatches:c,minMatchCharLength:u,includeMatches:i,ignoreLocation:p});x&&(m=!0),f+=E,x&&C&&(d=[...d,...C])});let h={isMatch:m,score:m?f/this.chunks.length:1};return m&&i&&(h.indices=d),h}}class Ce{constructor(t){this.pattern=t}static isMultiMatch(t){return er(t,this.multiRegex)}static isSingleMatch(t){return er(t,this.singleRegex)}search(){}}function er(e,t){const n=e.match(t);return n?n[1]:null}class Oa extends Ce{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const n=t===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class Pa extends Ce{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const r=t.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}}class Ta extends Ce{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const n=t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class Aa extends Ce{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const n=!t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class Ra extends Ce{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const n=t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class La extends Ce{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const n=!t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class si extends Ce{constructor(t,{location:n=R.location,threshold:r=R.threshold,distance:i=R.distance,includeMatches:s=R.includeMatches,findAllMatches:o=R.findAllMatches,minMatchCharLength:l=R.minMatchCharLength,isCaseSensitive:c=R.isCaseSensitive,ignoreDiacritics:u=R.ignoreDiacritics,ignoreLocation:p=R.ignoreLocation}={}){super(t),this._bitapSearch=new ii(t,{location:n,threshold:r,distance:i,includeMatches:s,findAllMatches:o,minMatchCharLength:l,isCaseSensitive:c,ignoreDiacritics:u,ignoreLocation:p})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class oi extends Ce{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,r;const i=[],s=this.pattern.length;for(;(r=t.indexOf(this.pattern,n))>-1;)n=r+s,i.push([r,n-1]);const o=!!i.length;return{isMatch:o,score:o?0:1,indices:i}}}const an=[Oa,oi,Ta,Aa,La,Ra,Pa,si],tr=an.length,Ia=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Ba="|";function _a(e,t={}){return e.split(Ba).map(n=>{let r=n.trim().split(Ia).filter(s=>s&&!!s.trim()),i=[];for(let s=0,o=r.length;s<o;s+=1){const l=r[s];let c=!1,u=-1;for(;!c&&++u<tr;){const p=an[u];let d=p.isMultiMatch(l);d&&(i.push(new p(d,t)),c=!0)}if(!c)for(u=-1;++u<tr;){const p=an[u];let d=p.isSingleMatch(l);if(d){i.push(new p(d,t));break}}}return i})}const Fa=new Set([si.type,oi.type]);class Da{constructor(t,{isCaseSensitive:n=R.isCaseSensitive,ignoreDiacritics:r=R.ignoreDiacritics,includeMatches:i=R.includeMatches,minMatchCharLength:s=R.minMatchCharLength,ignoreLocation:o=R.ignoreLocation,findAllMatches:l=R.findAllMatches,location:c=R.location,threshold:u=R.threshold,distance:p=R.distance}={}){this.query=null,this.options={isCaseSensitive:n,ignoreDiacritics:r,includeMatches:i,minMatchCharLength:s,findAllMatches:l,ignoreLocation:o,location:c,threshold:u,distance:p},t=n?t:t.toLowerCase(),t=r?Ot(t):t,this.pattern=t,this.query=_a(this.pattern,this.options)}static condition(t,n){return n.useExtendedSearch}searchIn(t){const n=this.query;if(!n)return{isMatch:!1,score:1};const{includeMatches:r,isCaseSensitive:i,ignoreDiacritics:s}=this.options;t=i?t:t.toLowerCase(),t=s?Ot(t):t;let o=0,l=[],c=0;for(let u=0,p=n.length;u<p;u+=1){const d=n[u];l.length=0,o=0;for(let f=0,m=d.length;f<m;f+=1){const h=d[f],{isMatch:b,indices:v,score:S}=h.search(t);if(b){if(o+=1,c+=S,r){const x=h.constructor.type;Fa.has(x)?l=[...l,...v]:l.push(v)}}else{c=0,o=0,l.length=0;break}}if(o){let f={isMatch:!0,score:c/o};return r&&(f.indices=l),f}}return{isMatch:!1,score:1}}}const ln=[];function Ma(...e){ln.push(...e)}function cn(e,t){for(let n=0,r=ln.length;n<r;n+=1){let i=ln[n];if(i.condition(e,t))return new i(e,t)}return new ii(e,t)}const Pt={AND:"$and",OR:"$or"},un={PATH:"$path",PATTERN:"$val"},dn=e=>!!(e[Pt.AND]||e[Pt.OR]),$a=e=>!!e[un.PATH],za=e=>!Ne(e)&&ei(e)&&!dn(e),nr=e=>({[Pt.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function ai(e,t,{auto:n=!0}={}){const r=i=>{let s=Object.keys(i);const o=$a(i);if(!o&&s.length>1&&!dn(i))return r(nr(i));if(za(i)){const c=o?i[un.PATH]:s[0],u=o?i[un.PATTERN]:i[c];if(!ye(u))throw new Error(fa(c));const p={keyId:on(c),pattern:u};return n&&(p.searcher=cn(u,t)),p}let l={children:[],operator:s[0]};return s.forEach(c=>{const u=i[c];Ne(u)&&u.forEach(p=>
10{l.children.push(r(p))})}),l};return dn(e)||(e=nr(e)),r(e)}function Wa(e,{ignoreFieldNorm:t=R.ignoreFieldNorm}){e.forEach(n=>{let r=1;n.matches.forEach(({key:i,norm:s,score:o})=>{const l=i?i.weight:null;r*=Math.pow(o===0&&l?Number.EPSILON:o,(l||1)*(t?1:s))}),n.score=r})}function Va(e,t){const n=e.matches;t.matches=[],oe(n)&&n.forEach(r=>{if(!oe(r.indices)||!r.indices.length)return;const{indices:i,value:s}=r;let o={indices:i,value:s};r.key&&(o.key=r.key.src),r.idx>-1&&(o.refIndex=r.idx),t.matches.push(o)})}function Ua(e,t){t.score=e.score}function Ha(e,t,{includeMatches:n=R.includeMatches,includeScore:r=R.includeScore}={}){const i=[];return n&&i.push(Va),r&&i.push(Ua),e.map(s=>{const{idx:o}=s,l={item:t[o],refIndex:o};return i.length&&i.forEach(c=>{c(s,l)}),l})}class Ge{constructor(t,n={},r){this.options={...R,...n},this.options.useExtendedSearch,this._keyStore=new ga(this.options.keys),this.setCollection(t,r)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof xn))throw new Error(da);this._myIndex=n||ri(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){oe(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let r=0,i=this._docs.length;r<i;r+=1){const s=this._docs[r];t(s,r)&&(this.removeAt(r),r-=1,i-=1,n.push(s))}return n}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:n=-1}={}){const{includeMatches:r,includeScore:i,shouldSort:s,sortFn:o,ignoreFieldNorm:l}=this.options;let c=ye(t)?ye(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return Wa(c,{ignoreFieldNorm:l}),s&&c.sort(o),Xr(n)&&n>-1&&(c=c.slice(0,n)),Ha(c,this._docs,{includeMatches:r,includeScore:i})}_searchStringList(t){const n=cn(t,this.options),{records:r}=this._myIndex,i=[];return r.forEach(({v:s,i:o,n:l})=>{if(!oe(s))return;const{isMatch:c,score:u,indices:p}=n.searchIn(s);c&&i.push({item:s,idx:o,matches:[{score:u,value:s,norm:l,indices:p}]})}),i}_searchLogical(t){const n=ai(t,this.options),r=(l,c,u)=>{if(!l.children){const{keyId:d,searcher:f}=l,m=this._findMatches({key:this._keyStore.get(d),value:this._myIndex.getValueForItemAtKeyId(c,d),searcher:f});return m&&m.length?[{idx:u,item:c,matches:m}]:[]}const p=[];for(let d=0,f=l.children.length;d<f;d+=1){const m=l.children[d],h=r(m,c,u);if(h.length)p.push(...h);else if(l.operator===Pt.AND)return[]}return p},i=this._myIndex.records,s={},o=[];return i.forEach(({$:l,i:c})=>{if(oe(l)){let u=r(n,l,c);u.length&&(s[c]||(s[c]={idx:c,item:l,matches:[]},o.push(s[c])),u.forEach(({matches:p})=>{s[c].matches.push(...p)}))}}),o}_searchObjectList(t){const n=cn(t,this.options),{keys:r,records:i}=this._myIndex,s=[];return i.forEach(({$:o,i:l})=>{if(!oe(o))return;let c=[];r.forEach((u,p)=>{c.push(...this._findMatches({key:u,value:o[p],searcher:n}))}),c.length&&s.push({idx:l,item:o,matches:c})}),s}_findMatches({key:t,value:n,searcher:r}){if(!oe(n))return[];let i=[];if(Ne(n))n.forEach(({v:s,i:o,n:l})=>{if(!oe(s))return;const{isMatch:c,score:u,indices:p}=r.searchIn(s);c&&i.push({score:u,key:t,value:s,idx:o,norm:l,indices:p})});else{const{v:s,n:o}=n,{isMatch:l,score:c,indices:u}=r.searchIn(s);l&&i.push({score:c,key:t,value:s,norm:o,indices:u})}return i}}Ge.version="7.1.0";Ge.createIndex=ri;Ge.parseIndex=ja;Ge.config=R;Ge.parseQuery=ai;Ma(Da);const qa="/cms-api",Ga="717194f8f1f7468b818f28f6929dc3e33166aa14b787991270f96f3d2b02674ba561bcbc32419c019cb2369b0f6414bdf87d3550e4d09383380dfd754a186725316365d264ca9d465277c198d49bd24de0d646eb902469b13d0fb9d4aece516ad743885ef216c5cf4bded0ee4ec7c823be2269b15eab9f7d6c1b6b3173845628",Ka="/search-api",Ya="bdd9b5d0305f178c7fff5846f79ba3230fd63b406578b4d9b4cbfc3f8dc9336f",Gt=[{indexName:"nib_static_pages",displayName:"pages",pathGenerator:e=>e.path||"/"},{indexName:"news",displayName:"news",pathGenerator:e=>{if(e.slug&&e.date){const t=new Date(e.date),n=t.getFullYear(),r=String(t.getMonth()+1).padStart(2,"0"),i=String(t.getDate()).padStart(2,"0");return`/${n}/${r}/${i}/${e.slug}`}return"/news"}},{indexName:"events",displayName:"events",pathGenerator:()=>"/events"},{indexName:"publications",displayName:"publications",pathGenerator:()=>"/publications"},{indexName:"forms",displayName:"forms",pathGenerator:()=>"/forms"}];async function Ja(e,t="en",n={}){const{limit:r=10}=n;if(!(e!=null&&e.trim()))return[];try{console.log(`[Search] Searching for "${e}" in locale "${t}"`);const i=Gt.map(l=>Qa(l,e,t,r)),s=await Promise.allSettled(i);
10console.log("[Search] Raw results from all indexes:",s);const o=[];return s.forEach((l,c)=>{if(l.status==="fulfilled"&&l.value){const u=Gt[c];console.log(`[Search] Results from ${u.displayName}:`,l.value.length,"items"),l.value.forEach(p=>{const d=u.pathGenerator(p);console.log(`[Search] Generated path for ${p.title||p.label}:`,d),o.push({...p,_index:u.displayName,type:u.displayName,path:d})})}else l.status==="rejected"&&console.error(`[Search] Failed to search ${Gt[c].displayName}:`,l.reason)}),o.sort((l,c)=>{const u=l._rankingScore||0;return(c._rankingScore||0)-u}),console.log(`[Search] Found ${o.length} total results:`,o),o.slice(0,r)}catch(i){throw console.error("[Search] Error searching:",i),i}}async function Qa(e,t,n,r){var i;try{console.log(`[Meilisearch] Searching ${e.indexName} for "${t}"`);const s=`${Ka}/indexes/${encodeURIComponent(e.indexName)}/search`,o={q:t,limit:Math.min(r,5),filter:`locale = ${n}`,attributesToHighlight:["title","content","summary","description","question","answer","name","number","location"],highlightPreTag:"<mark>",highlightPostTag:"</mark>",showRankingScore:!0};console.log(`[Meilisearch] Request to ${s}`,o);const l=await fetch(s,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${Ya}`},body:JSON.stringify(o)});if(console.log(`[Meilisearch] Response status for ${e.indexName}:`,l.status),!l.ok){const u=await l.json().catch(()=>({}));return l.status===404||u.code==="index_not_found"?(console.warn(`[Meilisearch] Index ${e.indexName} not found, falling back to Strapi API`),rr(e,t,n,r)):(console.warn(`[Meilisearch] Failed to search ${e.displayName}:`,l.status,u),[])}const c=await l.json();return console.log(`[Meilisearch] Hits from ${e.indexName}:`,((i=c.hits)==null?void 0:i.length)||0),!c.hits||!Array.isArray(c.hits)?[]:c.hits.map(u=>{const p=u._formatted||{};return{id:u.id||u.documentId,label:u.label||u.title||u.question||u.name||"Untitled",title:u.title||u.label||u.question||u.name,summary:li(u),slug:u.slug,path:u.path,type:u.type,_rankingScore:u._rankingScore,_formatted:p}})}catch(s){return console.error(`[Meilisearch] Error searching ${e.displayName}:`,s),console.log(`[Meilisearch] Falling back to Strapi API for ${e.displayName}`),rr(e,t,n,r)}}async function rr(e,t,n,r){try{console.log(`[Strapi] Searching ${e.displayName} for "${t}"`);const s={news:"news",events:"events",publications:"publications",forms:"forms",pages:null}[e.displayName];if(!s)return console.warn(`[Strapi] No endpoint mapping for ${e.displayName}`),[];const o=Za(e.displayName);console.log("[Strapi] Searching fields:",o);let l=`${qa}/api/${s}?pagination[limit]=${Math.min(r,5)}&populate=*`;o.forEach((f,m)=>{l+=`&filters[$or][${m}][${f}][$containsi]=${encodeURIComponent(t)}`}),console.log("[Strapi] Request URL:",l);const c=await fetch(l,{headers:{Authorization:`Bearer ${Ga}`}});if(console.log("[Strapi] Response status:",c.status),!c.ok){const f=await c.text();return console.warn(`[Strapi] Failed to search ${e.displayName}:`,c.status,f),[]}const u=await c.json();console.log("[Strapi] Response data:",u);const{data:p}=u;if(!p||!Array.isArray(p))return console.warn(`[Strapi] No data array in response for ${e.displayName}`),[];console.log(`[Strapi] Found ${p.length} results for ${e.displayName}`);const d=p.map(f=>{const m=f.attributes||f,h=m.title||m.question||m.name||"Untitled";return{id:f.id||f.documentId,label:h,title:h,summary:li(m),slug:m.slug,date:m.date||m.publishedAt,_rankingScore:.5}});return console.log("[Strapi] Transformed results:",d),d}catch(i){return console.error(`[Strapi] Error searching ${e.displayName}:`,i),[]}}function Za(e){return{pages:["label","description","keywords"],news:["title","summary"],events:["title","description","location"],publications:["title","summary"],forms:["name","number"]}[e]||["title"]}function li(e){const t=e.summary||e.description||e.answer||e.content;if(typeof t=="string")return t.length>200?t.substring(0,200)+"...":t;if(Array.isArray(t)){const n=t.map(r=>r.children&&Array.isArray(r.children)?r.children.map(i=>i.text||"").join(""):"").join(" ").trim();return n.length>200?n.substring(0,200)+"...":n}return""}const ci=g.createContext(),Xe=[{code:"en",label:"English",flag:"🇺🇸",nativeName:"English"},{code:"es",label:"Spanish",flag:"🇪🇸",nativeName:"Español"},{code:"fil",label:"Filipino",flag:"🇵🇭",nativeName:"Filipino"},{code:"fr",label:"French",flag:"🇫🇷",nativeName:"Français"}],Xa="en",ir="nib-locale";function el({children:e}){const[t,n]=g.useState(()=>{try{const o=localStorage.getItem(ir);if(o&&Xe.some(l=>
10l.code===o))return o}catch(o){console.error("Failed to read locale from localStorage:",o)}return Xa});g.useEffect(()=>{try{localStorage.setItem(ir,t),document.documentElement.lang=t}catch(o){console.error("Failed to save locale to localStorage:",o)}},[t]),g.useEffect(()=>{(async()=>{try{const{loadLanguage:l}=await _(async()=>{const{loadLanguage:c}=await Promise.resolve().then(()=>Od);return{loadLanguage:c}},void 0);await l(t)}catch(l){console.error("Failed to sync i18n language:",l)}})()},[t]);const s={locale:t,changeLocale:o=>{Xe.some(l=>l.code===o)?n(o):console.warn(`Unsupported locale: ${o}`)},supportedLanguages:Xe,getCurrentLanguageInfo:()=>Xe.find(o=>o.code===t)||Xe[0]};return a.jsx(ci.Provider,{value:s,children:e})}function wn(){const e=g.useContext(ci);if(!e)throw new Error("useLocale must be used within a LocaleProvider");return e}function tl({data:e=[],onClose:t,onSelect:n,useMeilisearch:r=!0,apiEndpoint:i="/api/search"}){const{locale:s}=wn(),[o,l]=g.useState(""),[c,u]=g.useState([]),[p,d]=g.useState(!1),f=g.useRef(null),m=g.useMemo(()=>new Ge(e,{keys:["label"],threshold:.4}),[e]);async function h(b){if(!(b!=null&&b.trim()))return[];if(r)try{return d(!0),await Ja(b,s,{limit:10})}catch(v){console.warn("Strapi search failed, falling back to Fuse.js:",v)}finally{d(!1)}return m.search(b).slice(0,10).map(v=>v.item)}return g.useEffect(()=>{var v;(v=f.current)==null||v.focus();const b=S=>{S.key==="Escape"&&t()};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[t]),g.useEffect(()=>{let b=!0;const v=setTimeout(async()=>{const S=await h(o);b&&u(S)},300);return()=>{b=!1,clearTimeout(v)}},[o,s,r,i,m]),a.jsx($e,{appear:!0,show:!0,as:g.Fragment,children:a.jsxs(Te,{as:"div",className:"relative z-[120]",onClose:t,children:[a.jsx($e.Child,{as:g.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:a.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm"})}),a.jsx("div",{className:"fixed inset-0 overflow-y-auto",children:a.jsx("div",{className:"flex min-h-full items-start justify-center p-4 text-center",children:a.jsx($e.Child,{as:g.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:a.jsxs(Te.Panel,{className:"relative z-[121] w-full max-w-2xl transform overflow-hidden rounded-2xl bg-white p-0 text-left shadow-xl ring-1 ring-nibBlue/10 transition-all focus:outline-none focus-visible:outline-none",children:[a.jsx("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-x-0 top-0 h-1 bg-gradient-to-r from-nibGold to-nibBlue"}),a.jsx("div",{className:"pointer-events-none absolute inset-0 z-0 opacity-90","aria-hidden":"true",children:a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1200 300",preserveAspectRatio:"none",className:"h-full w-full",children:[a.jsx("defs",{children:a.jsxs("linearGradient",{id:"search-ribbon-grad",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[a.jsx("stop",{offset:"0%",stopColor:"#fcb762"}),a.jsx("stop",{offset:"100%",stopColor:"#0A2F5C"})]})}),a.jsx("path",{d:"M-60 160 C 160 40, 360 260, 560 140 S 960 80, 1260 160",fill:"none",stroke:"url(#search-ribbon-grad)",strokeWidth:"14",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.14"})]})}),a.jsx("div",{className:"pointer-events-none absolute right-[-20px] top-[-20px] h-32 w-32 opacity-20","aria-hidden":"true",children:a.jsxs("svg",{viewBox:"0 0 120 120",className:"h-full w-full",children:[a.jsx("defs",{children:a.jsx("pattern",{id:"search-dots",width:"10",height:"10",patternUnits:"userSpaceOnUse",children:a.jsx("circle",{cx:"1.5",cy:"1.5",r:"1.5",fill:"#0A2F5C",opacity:"0.18"})})}),a.jsx("rect",{width:"120",height:"120",fill:"url(#search-dots)"})]})}),a.jsxs("div",{className:"relative z-10 p-4 md:p-5",children:[a.jsxs("div",{className:"mb-3 flex items-center gap-2 rounded-lg bg-white/80 px-3 py-2 shadow ring-1 ring-nibBlue/10",children:[a.jsx(en,{className:"h-5 w-5 text-nibBlue"}),a.jsx("input",{type:"text",ref:f,value:o,onChange:b=>l(b.target.value),placeholder:"Search…",className:"flex-1 border-0 bg-transparent text-lg placeholder-slate-400 focus:ring-0 focus:outline-none focus-visible:outline-none"}),a.jsx("button",{onClick:t,className:"rounded-md p-1 text-slate-500 hover:bg-nibLight hover:text-nibBlue focus:outline-none focus-visible:outline-none","aria-label":"Close search",children:a.jsx(ft,{className:"h-5 w-5"})})]}),o&&a.jsx("div",{className:"max-h-96 overflow-y-auto rounded-lg bg-white/80 ring-1 ring-nibBlue/10",children:p?a.jsxs("div",{className:"py-8 text-center text-slate-500",children:[a.jsx("div",{className:"inline-block animate-spin rounded-full h-8 w-8 border-b-2 border-nibBlue"}),a.jsx("p",{className:"mt-2",children:"Searching..."})]}):c.length>0?a.jsx("ul",{className:"divide-y divide-slate-200",children:c.map((b,v)=>{var S,x,E,C;return a.jsxs("li",{className:"group relative cursor-pointer px-4 py-3 hover:bg-nibLight focus:bg-nibLight focus:outline-none transition-colors",onClick:()=>n(b.path),tabIndex:0,onKeyDown:F=>{F.key==="Enter"&&n(b.path)},children:[a.jsx("span",{"aria-hidden":"true",className:"pointer-events-none absolute inset-y-0 left-0 w-[3px] bg-gradient-to-b from-nibGold to-nibBlue opacity-0 transition-opacity duration-200 group-hover:opacity-70 group-focus:opacity-70"}),a.jsx("div",{className:"relative z-10",children:a.jsxs("div",{className:"flex items-start justify-between gap-2",children:[a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("p",{className:"font-medium text-nibBlue truncate",children:(S=b._formatted)!=null&&S.title?a.jsx("span",{dangerouslySetInnerHTML:{__html:b._formatted.title}}):b.label||b.title}),b.summary&&a.jsx("p",{className:"mt-1 text-sm text-slate-600 line-clamp-2",children:(x=b._formatted)!=null&&x.summary||(E=b._formatted)!=null&&E.description||(C=b._formatted)!=null&&C.answer?a.jsx("span",{dangerouslySetInnerHTML:{__html:b._formatted.summary||b._formatted.description||b._formatted.answer}}):b.summary})]}),b.type&&a.jsx("span",{className:"flex-shrink-0 inline-flex items-center px-2 py-1 rounded text-xs font-medium bg-nibBlue/10 text-nibBlue capitalize",children:b.type})]})})]},b.id||b.path||v)})}):a.jsxs("div",{className:"py-8 text-center text-slate-500",children:[a.jsxs("p",{children:['No results found for "',o,'"']}),a.jsx("p",{className:"mt-1 text-sm",children:"Try different keywords or check your spelling"})]})})]})]})})})})]})})}function ui(e){return t=>typeof t===e}var nl=ui("function"),rl=e=>e===null,sr=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",or=e=>!il(e)&&!rl(e)&&(nl(e)||typeof e=="object"),il=ui("undefined");function sl(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!ne(e[r],t[r]))return!1;return!0}function ol(e,t){if(e.byteLength!==t.byteLength)return!1;const n=new DataView(e.buffer),r=new DataView(t.buffer);let i=e.byteLength;for(;i--;)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}function al(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;for(const n of e.entries())if(!ne(n[1],t.get(n[0])))return!1;return!0}function ll(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;return!0}function ne(e,t){if(e===t)return!0;
10if(e&&or(e)&&t&&or(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return sl(e,t);if(e instanceof Map&&t instanceof Map)return al(e,t);if(e instanceof Set&&t instanceof Set)return ll(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return ol(e,t);if(sr(e)&&sr(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(let i=n.length;i--!==0;){const s=n[i];if(!(s==="_owner"&&e.$$typeof)&&!ne(e[s],t[s]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var cl=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],ul=["bigint","boolean","null","number","string","symbol","undefined"];function Mt(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(dl(t))return t}function de(e){return t=>Mt(t)===e}function dl(e){return cl.includes(e)}function Ke(e){return t=>typeof t===e}function fl(e){return ul.includes(e)}var pl=["innerHTML","ownerDocument","style","attributes","nodeValue"];function k(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(k.array(e))return"Array";if(k.plainFunction(e))return"Function";const t=Mt(e);return t||"Object"}k.array=Array.isArray;k.arrayOf=(e,t)=>!k.array(e)&&!k.function(t)?!1:e.every(n=>t(n));k.asyncGeneratorFunction=e=>Mt(e)==="AsyncGeneratorFunction";k.asyncFunction=de("AsyncFunction");k.bigint=Ke("bigint");k.boolean=e=>e===!0||e===!1;k.date=de("Date");k.defined=e=>!k.undefined(e);k.domElement=e=>k.object(e)&&!k.plainObject(e)&&e.nodeType===1&&k.string(e.nodeName)&&pl.every(t=>t in e);k.empty=e=>k.string(e)&&e.length===0||k.array(e)&&e.length===0||k.object(e)&&!k.map(e)&&!k.set(e)&&Object.keys(e).length===0||k.set(e)&&e.size===0||k.map(e)&&e.size===0;k.error=de("Error");k.function=Ke("function");k.generator=e=>k.iterable(e)&&k.function(e.next)&&k.function(e.throw);k.generatorFunction=de("GeneratorFunction");k.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;k.iterable=e=>!k.nullOrUndefined(e)&&k.function(e[Symbol.iterator]);k.map=de("Map");k.nan=e=>Number.isNaN(e);k.null=e=>e===null;k.nullOrUndefined=e=>k.null(e)||k.undefined(e);k.number=e=>Ke("number")(e)&&!k.nan(e);k.numericString=e=>k.string(e)&&e.length>0&&!Number.isNaN(Number(e));k.object=e=>!k.nullOrUndefined(e)&&(k.function(e)||typeof e=="object");k.oneOf=(e,t)=>k.array(e)?e.indexOf(t)>-1:!1;k.plainFunction=de("Function");k.plainObject=e=>{if(Mt(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};k.primitive=e=>k.null(e)||fl(typeof e);k.promise=de("Promise");k.propertyOf=(e,t,n)=>{if(!k.object(e)||!t)return!1;const r=e[t];return k.function(n)?n(r):k.defined(r)};k.regexp=de("RegExp");k.set=de("Set");k.string=Ke("string");k.symbol=Ke("symbol");k.undefined=Ke("undefined");k.weakMap=de("WeakMap");k.weakSet=de("WeakSet");var O=k;function hl(...e){return e.every(t=>O.string(t)||O.array(t)||O.plainObject(t))}function ml(e,t,n){return di(e,t)?[e,t].every(O.array)?!e.some(dr(n))&&t.some(dr(n)):[e,t].every(O.plainObject)?!Object.entries(e).some(ur(n))&&Object.entries(t).some(ur(n)):t===n:!1}function ar(e,t,n){const{actual:r,key:i,previous:s,type:o}=n,l=ve(e,i),c=ve(t,i);let u=[l,c].every(O.number)&&(o==="increased"?l<c:l>c);return O.undefined(r)||(u=u&&c===r),O.undefined(s)||(u=u&&l===s),u}function lr(e,t,n){const{key:r,type:i,value:s}=n,o=ve(e,r),l=ve(t,r),c=i==="added"?o:l,u=i==="added"?l:o;
10if(!O.nullOrUndefined(s)){if(O.defined(c)){if(O.array(c)||O.plainObject(c))return ml(c,u,s)}else return ne(u,s);return!1}return[o,l].every(O.array)?!u.every(Sn(c)):[o,l].every(O.plainObject)?gl(Object.keys(c),Object.keys(u)):![o,l].every(p=>O.primitive(p)&&O.defined(p))&&(i==="added"?!O.defined(o)&&O.defined(l):O.defined(o)&&!O.defined(l))}function cr(e,t,{key:n}={}){let r=ve(e,n),i=ve(t,n);if(!di(r,i))throw new TypeError("Inputs have different types");if(!hl(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(O.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function ur(e){return([t,n])=>O.array(e)?ne(e,n)||e.some(r=>ne(r,n)||O.array(n)&&Sn(n)(r)):O.plainObject(e)&&e[t]?!!e[t]&&ne(e[t],n):ne(e,n)}function gl(e,t){return t.some(n=>!e.includes(n))}function dr(e){return t=>O.array(e)?e.some(n=>ne(n,t)||O.array(t)&&Sn(t)(n)):ne(e,t)}function et(e,t){return O.array(e)?e.some(n=>ne(n,t)):ne(e,t)}function Sn(e){return t=>e.some(n=>ne(n,t))}function di(...e){return e.every(O.array)||e.every(O.number)||e.every(O.plainObject)||e.every(O.string)}function ve(e,t){return O.plainObject(e)||O.array(e)?O.string(t)?t.split(".").reduce((r,i)=>r&&r[i],e):O.number(t)?e[t]:e:e}function Tt(e,t){if([e,t].some(O.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(p=>O.plainObject(p)||O.array(p)))throw new Error("Expected plain objects or array");return{added:(p,d)=>{try{return lr(e,t,{key:p,type:"added",value:d})}catch{return!1}},changed:(p,d,f)=>{try{const m=ve(e,p),h=ve(t,p),b=O.defined(d),v=O.defined(f);if(b||v){const S=v?et(f,m):!et(d,m),x=et(d,h);return S&&x}return[m,h].every(O.array)||[m,h].every(O.plainObject)?!ne(m,h):m!==h}catch{return!1}},changedFrom:(p,d,f)=>{if(!O.defined(p))return!1;try{const m=ve(e,p),h=ve(t,p),b=O.defined(f);return et(d,m)&&(b?et(f,h):!b)}catch{return!1}},decreased:(p,d,f)=>{if(!O.defined(p))return!1;try{return ar(e,t,{key:p,actual:d,previous:f,type:"decreased"})}catch{return!1}},emptied:p=>{try{const[d,f]=cr(e,t,{key:p});return!!d.length&&!f.length}catch{return!1}},filled:p=>{try{const[d,f]=cr(e,t,{key:p});return!d.length&&!!f.length}catch{return!1}},increased:(p,d,f)=>{if(!O.defined(p))return!1;try{return ar(e,t,{key:p,actual:d,previous:f,type:"increased"})}catch{return!1}},removed:(p,d)=>{try{return lr(e,t,{key:p,type:"removed",value:d})}catch{return!1}}}}var bl=new Error("Element already at target scroll position"),yl=new Error("Scroll cancelled"),vl=Math.min,fr=Date.now,xl={left:pr("scrollLeft"),top:pr("scrollTop")};function pr(e){return function(n,r,i,s){i=i||{},typeof i=="function"&&(s=i,i={}),typeof s!="function"&&(s=Sl);var o=fr(),l=n[e],c=i.ease||wl,u=isNaN(i.duration)?350:+i.duration,p=!1;return l===r?s(bl,n[e]):requestAnimationFrame(f),d;function d(){p=!0}function f(m){if(p)return s(yl,n[e]);var h=fr(),b=vl(1,(h-o)/u),v=c(b);n[e]=v*(r-l)+l,b<1?requestAnimationFrame(f):requestAnimationFrame(function(){s(null,n[e])})}}}function wl(e){return .5*(1-Math.cos(Math.PI*e))}function Sl(){}const Nl=Ft(xl);var fi={exports:{}};(function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(Bs,function(){function t(r){var i=getComputedStyle(r,null).getPropertyValue("overflow");return i.indexOf("scroll")>-1||i.indexOf("auto")>-1}function n(r){if(r instanceof HTMLElement||r instanceof SVGElement){for(var i=r.parentNode;i.parentNode;){if(t(i))return i;i=i.parentNode}return document.scrollingElement||document.documentElement}}return n})})(fi);var jl=fi.exports;const pi=Ft(jl);var El=function(e){return Object.prototype.hasOwnProperty.call(e,"props")},kl=function(e,t){return e+lt(t)},lt=function(e){return e===null||typeof e=="boolean"||typeof e>"u"?"":typeof e=="number"?e.toString():typeof e=="string"?e:Array.isArray(e)?e.reduce(kl,""):El(e)&&Object.prototype.hasOwnProperty.call(e.props,"children")?lt(e.props.children):""};lt.default=lt;var Cl=lt;const hr=Ft(Cl);var Ol=function(t){return Pl(t)&&!Tl(t)};function Pl(e){return!!e&&typeof e=="object"}function Tl(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Ll(e)}var Al=typeof Symbol=="function"&&Symbol.for,Rl=Al?Symbol.for("react.element"):60103;function Ll(e){return e.$$typeof===Rl}function Il(e){return Array.isArray(e)?[]:{}}function ct(e,t){return t.clone!==!1&&t.isMergeableObject(e)?We(Il(e),e,t):e}function Bl(e,t,n){return e.concat(t).map(function(r){return ct(r,n)})}function _l(e,t){if(!t.customMerge)return We;var n=t.customMerge(e);return typeof n=="function"?n:We}function Fl(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function mr(e){return Object.keys(e).concat(Fl(e))}function hi(e,t){try{return t in e}catch{return!1}}function Dl(e,t){return hi(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Ml(e,t,n){var r={};return n.isMergeableObject(e)&&mr(e).forEach(function(i){r[i]=ct(e[i],n)}),mr(t).forEach(function(i){Dl(e,i)||(hi(e,i)&&n.isMergeableObject(t[i])?r[i]=_l(i,n)(e[i],t[i],n):r[i]=ct(t[i],n))}),r}function We(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Bl,n.isMergeableObject=n.isMergeableObject||Ol,n.cloneUnlessOtherwiseSpecified=ct;var r=Array.isArray(t),i=Array.isArray(e),s=r===i;return s?r?n.arrayMerge(e,t,n):Ml(e,t,n):ct(t,n)}We.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return We(r,i,n)},{})};var $l=We,zl=$l;const ue=Ft(zl);/**!
11 * @fileOverview Kickass library to create and place poppers near their reference elements.
12 * @version 1.16.1
13 * @license
14 * Copyright (c) 2016 Federico Zivolo and contributors
15 *
16 * Permission is hereby granted, free of charge, to any person obtaining a copy
17 * of this software and associated documentation files (the "Software"), to deal
18 * in the Software without restriction, including without limitation the rights
19 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
20 * copies of the Software, and to permit persons to whom the Software is
21 * furnished to do so, subject to the following conditions:
22 *
23 * The above copyright notice and this permission notice shall be included in all
24 * copies or substantial portions of the Software.
25 *
26 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
27 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
28 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
29 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
30 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
31 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
32 * SOFTWARE.
33 */var pt=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",Wl=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(pt&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function Vl(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function Ul(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},Wl))}}var Hl=pt&&window.Promise,ql=Hl?Vl:Ul;function mi(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function _e(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}
vendor: 4,462 bytes, line 33
33function Nn(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function ht(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=_e(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:ht(Nn(e))}function gi(e){return e&&e.referenceNode?e.referenceNode:e}var gr=pt&&!!(window.MSInputMethodContext&&document.documentMode),br=pt&&/MSIE 10/.test(navigator.userAgent);function Ye(e){return e===11?gr:e===10?br:gr||br}function Ve(e){if(!e)return document.documentElement;for(var t=Ye(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return!r||r==="BODY"||r==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(n.nodeName)!==-1&&_e(n,"position")==="static"?Ve(n):n}function Gl(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||Ve(e.firstElementChild)===e}function fn(e){return e.parentNode!==null?fn(e.parentNode):e}function At(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,s=document.createRange();s.setStart(r,0),s.setEnd(i,0);var o=s.commonAncestorContainer;if(e!==o&&t!==o||r.contains(i))return Gl(o)?o:Ve(o);var l=fn(e);return l.host?At(l.host,t):At(e,fn(t).host)}function Ue(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",n=t==="top"?"scrollTop":"scrollLeft",r=e.nodeName;if(r==="BODY"||r==="HTML"){var i=e.ownerDocument.documentElement,s=e.ownerDocument.scrollingElement||i;return s[n]}return e[n]}function Kl(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=Ue(t,"top"),i=Ue(t,"left"),s=n?-1:1;return e.top+=r*s,e.bottom+=r*s,e.left+=i*s,e.right+=i*s,e}function yr(e,t){var n=t==="x"?"Left":"Top",r=n==="Left"?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function vr(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Ye(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function bi(e){var t=e.body,n=e.documentElement,r=Ye(10)&&getComputedStyle(n);return{height:vr("Height",t,n,r),width:vr("Width",t,n,r)}}var Yl=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Jl=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),He=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},le=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};function ke(e){return le({},e,{right:e.left+e.width,bottom:e.top+e.height})}function pn(e){var t={};try{if(Ye(10)){t=e.getBoundingClientRect();var n=Ue(e,"top"),r=Ue(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch{}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},s=e.nodeName==="HTML"?bi(e.ownerDocument):{},o=s.width||e.clientWidth||i.width,l=s.height||e.clientHeight||i.height,c=e.offsetWidth-o,u=e.offsetHeight-l;if(c||u){var p=_e(e);c-=yr(p,"x"),u-=yr(p,"y"),i.width-=c,i.height-=u}return ke(i)}function jn(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=Ye(10),i=t.nodeName==="HTML",s=pn(e),o=pn(t),l=ht(e),c=_e(t),u=parseFloat(c.borderTopWidth),p=parseFloat(c.borderLeftWidth);n&&i&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var d=ke({top:s.top-o.top-u,left:s.left-o.left-p,width:s.width,height:s.height});if(d.marginTop=0,d.marginLeft=0,!r&&i){var f=parseFloat(c.marginTop),m=parseFloat(c.marginLeft);d.top-=u-f,d.bottom-=u-f,d.left-=p-m,d.right-=p-m,d.marginTop=f,d.marginLeft=m}return(r&&!n?t.contains(l):t===l&&l.nodeName!=="BODY")&&(d=Kl(d,t)),d}function Ql(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=jn(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),s=Math.max(n.clientHeight,window.innerHeight||0),o=t?0:Ue(n),l=t?0:Ue(n,"left"),c={top:o-r.top+r.marginTop,left
vendor: 9,606 bytes, line 33
33:l-r.left+r.marginLeft,width:i,height:s};return ke(c)}function yi(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(_e(e,"position")==="fixed")return!0;var n=Nn(e);return n?yi(n):!1}function vi(e){if(!e||!e.parentElement||Ye())return document.documentElement;for(var t=e.parentElement;t&&_e(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function En(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,s={top:0,left:0},o=i?vi(e):At(e,gi(t));if(r==="viewport")s=Ql(o,i);else{var l=void 0;r==="scrollParent"?(l=ht(Nn(t)),l.nodeName==="BODY"&&(l=e.ownerDocument.documentElement)):r==="window"?l=e.ownerDocument.documentElement:l=r;var c=jn(l,o,i);if(l.nodeName==="HTML"&&!yi(o)){var u=bi(e.ownerDocument),p=u.height,d=u.width;s.top+=c.top-c.marginTop,s.bottom=p+c.top,s.left+=c.left-c.marginLeft,s.right=d+c.left}else s=c}n=n||0;var f=typeof n=="number";return s.left+=f?n:n.left||0,s.top+=f?n:n.top||0,s.right-=f?n:n.right||0,s.bottom-=f?n:n.bottom||0,s}function Zl(e){var t=e.width,n=e.height;return t*n}function xi(e,t,n,r,i){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var o=En(n,r,s,i),l={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},c=Object.keys(l).map(function(f){return le({key:f},l[f],{area:Zl(l[f])})}).sort(function(f,m){return m.area-f.area}),u=c.filter(function(f){var m=f.width,h=f.height;return m>=n.clientWidth&&h>=n.clientHeight}),p=u.length>0?u[0].key:c[0].key,d=e.split("-")[1];return p+(d?"-"+d:"")}function wi(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=r?vi(t):At(t,gi(n));return jn(n,i,r)}function Si(e){var t=e.ownerDocument.defaultView,n=t.getComputedStyle(e),r=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0),i=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0),s={width:e.offsetWidth+i,height:e.offsetHeight+r};return s}function Rt(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(n){return t[n]})}function Ni(e,t,n){n=n.split("-")[0];var r=Si(e),i={width:r.width,height:r.height},s=["right","left"].indexOf(n)!==-1,o=s?"top":"left",l=s?"left":"top",c=s?"height":"width",u=s?"width":"height";return i[o]=t[o]+t[c]/2-r[c]/2,n===l?i[l]=t[l]-r[u]:i[l]=t[Rt(l)],i}function mt(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Xl(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===n});var r=mt(e,function(i){return i[t]===n});return e.indexOf(r)}function ji(e,t,n){var r=n===void 0?e:e.slice(0,Xl(e,"name",n));return r.forEach(function(i){i.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var s=i.function||i.fn;i.enabled&&mi(s)&&(t.offsets.popper=ke(t.offsets.popper),t.offsets.reference=ke(t.offsets.reference),t=s(t,i))}),t}function ec(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=wi(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=xi(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=Ni(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=ji(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function Ei(e,t){return e.some(function(n){var r=n.name,i=n.enabled;return i&&r===t})}function kn(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],s=i?""+i+n:e;if(typeof document.body.style[s]<"u")return s}return null}function tc(){return this.state.isDestroyed=!0,Ei(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[kn("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function ki(e){var t=e.ownerDocument;return t?t.defaultView:window}function Ci(e,t,n,r){var i=e.nodeName==="BODY",s=i?e.ownerDocument.defaultView:e;s.addEventListener(t,n,{passive:!0}),i||Ci(ht(s.parentNode),t,n,r),r.push(s)}function nc(e,t,n,r){n.updateBound=r,ki(e).addEventListener("resize",n.updateBound,{passive:!0});var i=ht(e);return Ci(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function rc(){this.state.eventsEnabled||(this.state=nc(this.reference,this.options,this.state,this.scheduleUpdate))}function ic(e,t){return ki(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(n){n.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function sc(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=ic(this.reference,this.state))}function Cn(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function hn(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&Cn(t[n])&&(r="px"),e.style[n]=t[n]+r})}function oc(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function ac(e){return hn(e.instance.popper,e.styles),oc(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&hn(e.arrowElement,e.arrowStyles),e}function lc(e,t,n,r,i){var s=wi(i,t,e,n.positionFixed),o=xi(n.placement,s,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",o),hn(t,{position:n.positionFixed?"fixed":"absolute"}),n}function cc(e,t){var n=e.offsets,r=n.popper,i=n.reference,s=Math.round,o=Math.floor,l=function(S){return S},c=s(i.width),u=s(r.width),p=["left","right"].indexOf(e.placement)!==-1,d=e.placement.indexOf("-")!==-1,f=c%2===u%2,m=c%2===1&&u%2===1,h=t?p||d||f?s:o:l,b=t?s:l;return{left:h(m&&!d&&t?r.left-1:r.left),top:b(r.top),bottom:b(r.bottom),right:h(r.right)}}var uc=pt&&/Firefox/i.test(navigator.userAgent);function dc(e,t){var n=t.x,r=t.y,i=e.offsets.popper,s=mt(e.instance.modifiers,function(E){return E.name==="applyStyle"}).gpuAcceleration;s!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var o=s!==void 0?s:t.gpuAcceleration,l=Ve(e.instance.popper),c=pn(l),u={position:i.position},p=cc(e,window.devicePixelRatio<2||!uc),d=n==="bottom"?"top":"bottom",f=r==="right"?"left":"right",m=kn("transform"),h=void 0,b=void 0;if(d==="bottom"?l.nodeName==="HTML"?b=-l.clientHeight+p.bottom:b=-c.height+p.bottom:b=p.top,f==="right"?l.nodeName==="HTML"?h=-l.clientWidth+p.right:h=-c.width+p.right:h=p.left,o&&m)u[m]="translate3d("+h+"px, "+b+"px, 0)",u[d]=0,u[f]=0,u.willChange="transform";else{var v=d==="bottom"?-1:1,S=f==="right"?-1:1;u[d]=b*v,u[f]=h*S,u.willChange=d+", "+f}var x={"x-placement":e.placement};return e.attributes=le({},x,e.attributes),e.styles=le({},u,e.styles),e.arrowStyles=le({},e.offsets.arrow,e.arrowStyles),e}function Oi(e,t,n){var r=mt(e,function(l){var c=l.name;return c===t}),i=!!r&&e.some(function(l){return l.name===n&&l.enabled&&l.order<r.order});if(!i){var s="`"+t+"`",o="`"+n+"`";console.warn(o+" modifier is required by "+s+" modifier in order to work, be sure to include it before "+s+"!")}return i}function fc(e,t){var n;if(!Oi(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if(typeof r=="string"){if(r=e.instance.popper.querySelector(r),!r)return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],s=e.offsets,o=s.popper,l=s.reference,c=["left","right"].indexOf(i)!==-1,u=c?"height":"width",p=c?"Top":"Left",d=p.toLowerCase(),f=c?"left":"top",m=c?"bottom":"right",h=Si(r)[u];l[m]-h<o[d]&&(e.offsets.popper[d]-=o[d]-(l[m]-h)),l[d]+h>o[m]&&(e.offsets.popper[d]+=l[d]+h-o[m]),e.offsets.popper=ke(e.offsets.popper);var b=l[d]+l[u]/2-h/2,v=_e(e.instance.popper),S=parseFloat(v["margin"+p]),x=parseFloat(v["border"+p+"Width"]),E=b-e.offsets.popper[d]-S-x;return E=Math.max(Math.min(o[u]-h,E),0),e.arrowElement=r,e.offsets.arrow=(n={},He(n,d,Math.round(E)),He(n,f,""),n),e}function pc(e){return e==="end"?"start":e==="start"?"end":e}var Pi=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Kt=Pi.slice(3);function xr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Kt.indexOf(e),r=Kt.slice(n+1).concat(Kt.slice(0,n));return t?r.reverse():r}var Yt={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function hc(e,t){if(Ei(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=En(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=Rt(r),s=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case Yt.FLIP:o=[r,i];break;case Yt.CLOCKWISE:o=xr(r);break;case Yt.COUNTERCLOCKWISE:o=xr(r,!0);break;default:o=t.behavior}
vendor: 5,687 bytes, line 33
33return o.forEach(function(l,c){if(r!==l||o.length===c+1)return e;r=e.placement.split("-")[0],i=Rt(r);var u=e.offsets.popper,p=e.offsets.reference,d=Math.floor,f=r==="left"&&d(u.right)>d(p.left)||r==="right"&&d(u.left)<d(p.right)||r==="top"&&d(u.bottom)>d(p.top)||r==="bottom"&&d(u.top)<d(p.bottom),m=d(u.left)<d(n.left),h=d(u.right)>d(n.right),b=d(u.top)<d(n.top),v=d(u.bottom)>d(n.bottom),S=r==="left"&&m||r==="right"&&h||r==="top"&&b||r==="bottom"&&v,x=["top","bottom"].indexOf(r)!==-1,E=!!t.flipVariations&&(x&&s==="start"&&m||x&&s==="end"&&h||!x&&s==="start"&&b||!x&&s==="end"&&v),C=!!t.flipVariationsByContent&&(x&&s==="start"&&h||x&&s==="end"&&m||!x&&s==="start"&&v||!x&&s==="end"&&b),F=E||C;(f||S||F)&&(e.flipped=!0,(f||S)&&(r=o[c+1]),F&&(s=pc(s)),e.placement=r+(s?"-"+s:""),e.offsets.popper=le({},e.offsets.popper,Ni(e.instance.popper,e.offsets.reference,e.placement)),e=ji(e.instance.modifiers,e,"flip"))}),e}function mc(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],s=Math.floor,o=["top","bottom"].indexOf(i)!==-1,l=o?"right":"bottom",c=o?"left":"top",u=o?"width":"height";return n[l]<s(r[c])&&(e.offsets.popper[c]=s(r[c])-n[u]),n[c]>s(r[l])&&(e.offsets.popper[c]=s(r[l])),e}function gc(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),s=+i[1],o=i[2];if(!s)return e;if(o.indexOf("%")===0){var l=void 0;switch(o){case"%p":l=n;break;case"%":case"%r":default:l=r}var c=ke(l);return c[t]/100*s}else if(o==="vh"||o==="vw"){var u=void 0;return o==="vh"?u=Math.max(document.documentElement.clientHeight,window.innerHeight||0):u=Math.max(document.documentElement.clientWidth,window.innerWidth||0),u/100*s}else return s}function bc(e,t,n,r){var i=[0,0],s=["right","left"].indexOf(r)!==-1,o=e.split(/(\+|\-)/).map(function(p){return p.trim()}),l=o.indexOf(mt(o,function(p){return p.search(/,|\s/)!==-1}));o[l]&&o[l].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,u=l!==-1?[o.slice(0,l).concat([o[l].split(c)[0]]),[o[l].split(c)[1]].concat(o.slice(l+1))]:[o];return u=u.map(function(p,d){var f=(d===1?!s:s)?"height":"width",m=!1;return p.reduce(function(h,b){return h[h.length-1]===""&&["+","-"].indexOf(b)!==-1?(h[h.length-1]=b,m=!0,h):m?(h[h.length-1]+=b,m=!1,h):h.concat(b)},[]).map(function(h){return gc(h,f,t,n)})}),u.forEach(function(p,d){p.forEach(function(f,m){Cn(f)&&(i[d]+=f*(p[m-1]==="-"?-1:1))})}),i}function yc(e,t){var n=t.offset,r=e.placement,i=e.offsets,s=i.popper,o=i.reference,l=r.split("-")[0],c=void 0;return Cn(+n)?c=[+n,0]:c=bc(n,s,o,l),l==="left"?(s.top+=c[0],s.left-=c[1]):l==="right"?(s.top+=c[0],s.left+=c[1]):l==="top"?(s.left+=c[0],s.top-=c[1]):l==="bottom"&&(s.left+=c[0],s.top+=c[1]),e.popper=s,e}function vc(e,t){var n=t.boundariesElement||Ve(e.instance.popper);e.instance.reference===n&&(n=Ve(n));var r=kn("transform"),i=e.instance.popper.style,s=i.top,o=i.left,l=i[r];i.top="",i.left="",i[r]="";var c=En(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=s,i.left=o,i[r]=l,t.boundaries=c;var u=t.priority,p=e.offsets.popper,d={primary:function(m){var h=p[m];return p[m]<c[m]&&!t.escapeWithReference&&(h=Math.max(p[m],c[m])),He({},m,h)},secondary:function(m){var h=m==="right"?"left":"top",b=p[h];return p[m]>c[m]&&!t.escapeWithReference&&(b=Math.min(p[h],c[m]-(m==="right"?p.width:p.height))),He({},h,b)}};return u.forEach(function(f){var m=["left","top"].indexOf(f)!==-1?"primary":"secondary";p=le({},p,d[m](f))}),e.offsets.popper=p,e}function xc(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,s=i.reference,o=i.popper,l=["bottom","top"].indexOf(n)!==-1,c=l?"left":"top",u=l?"width":"height",p={start:He({},c,s[c]),end:He({},c,s[c]+s[u]-o[u])};e.offsets.popper=le({},o,p[r])}return e}function wc(e){if(!Oi(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=mt(e.instance.modifiers,function(r){return r.name==="preventOverflow"}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function Sc(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,s=r.reference,o=["left","right"].indexOf(n)!==-1,l=["top","left"].indexOf(n)===-1;return i[o?"left":"top"]=s[n]-(l?i[o?"width":"height"]:0),e.placement=Rt(t),e.offsets.popper=ke(i),e}var Nc={shift:{order:100,enabled:!0,fn:xc},offset:{order:200,enabled:!0,fn:yc,offset:0},preventOverflow:{order:300,enabled:!0,fn:vc,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:mc},arrow:{order:500,enabled:!0,fn:fc,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:hc,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:Sc},hide:{order:800,enabled:!0,fn:wc},computeStyle:{order:850,enabled:!0,fn:dc,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:ac,onLoad:lc,gpuAcceleration:void 0}},jc={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Nc},ut=function(){function e(t,n){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Yl(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=ql(this.update.bind(this)),this.options=le({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(le({}
33,e.Defaults.modifiers,i.modifiers)).forEach(function(o){r.options.modifiers[o]=le({},e.Defaults.modifiers[o]||{},i.modifiers?i.modifiers[o]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(o){return le({name:o},r.options.modifiers[o])}).sort(function(o,l){return o.order-l.order}),this.modifiers.forEach(function(o){o.enabled&&mi(o.onLoad)&&o.onLoad(r.reference,r.popper,r.options,o,r.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return Jl(e,[{key:"update",value:function(){return ec.call(this)}},{key:"destroy",value:function(){return tc.call(this)}},{key:"enableEventListeners",value:function(){return rc.call(this)}},{key:"disableEventListeners",value:function(){return sc.call(this)}}]),e}();ut.Utils=(typeof window<"u"?window:global).PopperUtils;ut.placements=Pi;ut.Defaults=jc;var Ec=["innerHTML","ownerDocument","style","attributes","nodeValue"],kc=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],Cc=["bigint","boolean","null","number","string","symbol","undefined"];function $t(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(Oc(t))return t}function fe(e){return function(t){return $t(t)===e}}function Oc(e){return kc.includes(e)}function Je(e){return function(t){return typeof t===e}}function Pc(e){return Cc.includes(e)}function y(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(y.array(e))return"Array";if(y.plainFunction(e))return"Function";var t=$t(e);return t||"Object"}y.array=Array.isArray;y.arrayOf=function(e,t){return!y.array(e)&&!y.function(t)?!1:e.every(function(n){return t(n)})};y.asyncGeneratorFunction=function(e){return $t(e)==="AsyncGeneratorFunction"};y.asyncFunction=fe("AsyncFunction");y.bigint=Je("bigint");y.boolean=function(e){return e===!0||e===!1};y.date=fe("Date");y.defined=function(e){return!y.undefined(e)};y.domElement=function(e){return y.object(e)&&!y.plainObject(e)&&e.nodeType===1&&y.string(e.nodeName)&&Ec.every(function(t){return t in e})};y.empty=function(e){return y.string(e)&&e.length===0||y.array(e)&&e.length===0||y.object(e)&&!y.map(e)&&!y.set(e)&&Object.keys(e).length===0||y.set(e)&&e.size===0||y.map(e)&&e.size===0};y.error=fe("Error");y.function=Je("function");y.generator=function(e){return y.iterable(e)&&y.function(e.next)&&y.function(e.throw)};y.generatorFunction=fe("GeneratorFunction");y.instanceOf=function(e,t){return!e||!t?!1:Object.getPrototypeOf(e)===t.prototype};y.iterable=function(e){return!y.nullOrUndefined(e)&&y.function(e[Symbol.iterator])};y.map=fe("Map");y.nan=function(e){return Number.isNaN(e)};y.null=function(e){return e===null};y.nullOrUndefined=function(e){return y.null(e)||y.undefined(e)};y.number=function(e){return Je("number")(e)&&!y.nan(e)};y.numericString=function(e){return y.string(e)&&e.length>0&&!Number.isNaN(Number(e))};y.object=function(e){return!y.nullOrUndefined(e)&&(y.function(e)||typeof e=="object")};y.oneOf=function(e,t){return y.array(e)?e.indexOf(t)>-1:!1};y.plainFunction=fe("Function");y.plainObject=function(e){if($t(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};y.primitive=function(e){return y.null(e)||Pc(typeof e)};y.promise=fe("Promise");y.propertyOf=function(e,t,n){if(!y.object(e)||!t)return!1;var r=e[t];return y.function(n)?n(r):y.defined(r)};y.regexp=fe("RegExp");y.set=fe("Set");y.string=Je("string");y.symbol=Je("symbol");y.undefined=Je("undefined");y.weakMap=fe("WeakMap");y.weakSet=fe("WeakSet");function Ti(e){return function(t){return typeof t===e}}var Tc=Ti("function"),Ac=function(e){return e===null},wr=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},Sr=function(e){return!Rc(e)&&!Ac(e)&&(Tc(e)||typeof e=="object")}
vendor: 2,837 bytes, line 33
33,Rc=Ti("undefined"),mn=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function Lc(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;r--!==0;)if(!ie(e[r],t[r]))return!1;return!0}function Ic(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=new DataView(e.buffer),r=new DataView(t.buffer),i=e.byteLength;i--;)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}function Bc(e,t){var n,r,i,s;if(e.size!==t.size)return!1;try{for(var o=mn(e.entries()),l=o.next();!l.done;l=o.next()){var c=l.value;if(!t.has(c[0]))return!1}}catch(d){n={error:d}}finally{try{l&&!l.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}try{for(var u=mn(e.entries()),p=u.next();!p.done;p=u.next()){var c=p.value;if(!ie(c[1],t.get(c[0])))return!1}}catch(d){i={error:d}}finally{try{p&&!p.done&&(s=u.return)&&s.call(u)}finally{if(i)throw i.error}}return!0}function _c(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var i=mn(e.entries()),s=i.next();!s.done;s=i.next()){var o=s.value;if(!t.has(o[0]))return!1}}catch(l){n={error:l}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0}function ie(e,t){if(e===t)return!0;if(e&&Sr(e)&&t&&Sr(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return Lc(e,t);if(e instanceof Map&&t instanceof Map)return Bc(e,t);if(e instanceof Set&&t instanceof Set)return _c(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return Ic(e,t);if(wr(e)&&wr(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(var i=n.length;i--!==0;){var s=n[i];if(!(s==="_owner"&&e.$$typeof)&&!ie(e[s],t[s]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}function Fc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(function(n){return y.string(n)||y.array(n)||y.plainObject(n)})}function Dc(e,t,n){return Ai(e,t)?[e,t].every(y.array)?!e.some(Cr(n))&&t.some(Cr(n)):[e,t].every(y.plainObject)?!Object.entries(e).some(kr(n))&&Object.entries(t).some(kr(n)):t===n:!1}function Nr(e,t,n){var r=n.actual,i=n.key,s=n.previous,o=n.type,l=xe(e,i),c=xe(t,i),u=[l,c].every(y.number)&&(o==="increased"?l<c:l>c);return y.undefined(r)||(u=u&&c===r),y.undefined(s)||(u=u&&l===s),u}function jr(e,t,n){var r=n.key,i=n.type,s=n.value,o=xe(e,r),l=xe(t,r),c=i==="added"?o:l,u=i==="added"?l:o;
33if(!y.nullOrUndefined(s)){if(y.defined(c)){if(y.array(c)||y.plainObject(c))return Dc(c,u,s)}else return ie(u,s);return!1}return[o,l].every(y.array)?!u.every(On(c)):[o,l].every(y.plainObject)?Mc(Object.keys(c),Object.keys(u)):![o,l].every(function(p){return y.primitive(p)&&y.defined(p)})&&(i==="added"?!y.defined(o)&&y.defined(l):y.defined(o)&&!y.defined(l))}function Er(e,t,n){var r=n===void 0?{}:n,i=r.key,s=xe(e,i),o=xe(t,i);if(!Ai(s,o))throw new TypeError("Inputs have different types");if(!Fc(s,o))throw new TypeError("Inputs don't have length");return[s,o].every(y.plainObject)&&(s=Object.keys(s),o=Object.keys(o)),[s,o]}function kr(e){return function(t){var n=t[0],r=t[1];return y.array(e)?ie(e,r)||e.some(function(i){return ie(i,r)||y.array(r)&&On(r)(i)}):y.plainObject(e)&&e[n]?!!e[n]&&ie(e[n],r):ie(e,r)}}function Mc(e,t){return t.some(function(n){return!e.includes(n)})}function Cr(e){return function(t){return y.array(e)?e.some(function(n){return ie(n,t)||y.array(t)&&On(t)(n)}):ie(e,t)}}function tt(e,t){return y.array(e)?e.some(function(n){return ie(n,t)}):ie(e,t)}function On(e){return function(t){return e.some(function(n){return ie(n,t)})}}function Ai(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(y.array)||e.every(y.number)||e.every(y.plainObject)||e.every(y.string)}function xe(e,t){if(y.plainObject(e)||y.array(e)){if(y.string(t)){var n=t.split(".");return n.reduce(function(r,i){return r&&r[i]},e)}return y.number(t)?e[t]:e}return e}function $c(e,t){if([e,t].some(y.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(function(d){return y.plainObject(d)||y.array(d)}))throw new Error("Expected plain objects or array");var n=function(d,f){try{return jr(e,t,{key:d,type:"added",value:f})}catch{return!1}},r=function(d,f,m){try{var h=xe(e,d),b=xe(t,d),v=y.defined(f),S=y.defined(m);if(v||S){var x=S?tt(m,h):!tt(f,h),E=tt(f,b);return x&&E}return[h,b].every(y.array)||[h,b].every(y.plainObject)?!ie(h,b):h!==b}catch{return!1}},i=function(d,f,m){if(!y.defined(d))return!1;try{var h=xe(e,d),b=xe(t,d),v=y.defined(m);return tt(f,h)&&(v?tt(m,b):!v)}catch{return!1}},s=function(d,f){return y.defined(d)?r(d,f):!1},o=function(d,f,m){if(!y.defined(d))return!1;try{return Nr(e,t,{key:d,actual:f,previous:m,type:"decreased"})}catch{return!1}},l=function(d){try{var f=Er(e,t,{key:d}),m=f[0],h=f[1];return!!m.length&&!h.length}catch{return!1}},c=function(d){try{var f=Er(e,t,{key:d}),m=f[0],h=f[1];return!m.length&&!!h.length}catch{return!1}},u=function(d,f,m){if(!y.defined(d))return!1;try{return Nr(e,t,{key:d,actual:f,previous:m,type:"increased"})}catch{return!1}},p=function(d,f){try{return jr(e,t,{key:d,type:"removed",value:f})}catch{return!1}};return{added:n,changed:r,changedFrom:i,changedTo:s,decreased:o,emptied:l,filled:c,increased:u,removed:p}}function Or(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Or(Object(n),!0).forEach(function(r){te(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Or(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zc(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,Li(r.key),r)}}function bt(e,t,n){return t&&zc(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function te(e,t,n){return t=Li(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gn(e,t)}function Lt(e){return Lt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Lt(e)}
vendor: 4,727 bytes, line 33
33function gn(e,t){return gn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},gn(e,t)}function Wc(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Vc(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Ri(e,t){if(e==null)return{};var n=Vc(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function we(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Uc(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return we(e)}function vt(e){var t=Wc();return function(){var r=Lt(e),i;if(t){var s=Lt(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return Uc(this,i)}}function Hc(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Li(e){var t=Hc(e,"string");return typeof t=="symbol"?t:String(t)}var qc={flip:{padding:20},preventOverflow:{padding:10}},Gc="The typeValidator argument must be a function with the signature function(props, propName, componentName).",Kc="The error message is optional, but must be a string if provided.";function Yc(e,t,n,r){return typeof e=="boolean"?e:typeof e=="function"?e(t,n,r):e?!!e:!1}function Jc(e,t){return Object.hasOwnProperty.call(e,t)}function Qc(e,t,n,r){return new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(n,"`."))}function Zc(e,t){if(typeof e!="function")throw new TypeError(Gc);if(t&&typeof t!="string")throw new TypeError(Kc)}function Pr(e,t,n){return Zc(e,n),function(r,i,s){for(var o=arguments.length,l=new Array(o>3?o-3:0),c=3;c<o;c++)l[c-3]=arguments[c];return Yc(t,r,i,s)?Jc(r,i)?e.apply(void 0,[r,i,s].concat(l)):Qc(r,i,s):e.apply(void 0,[r,i,s].concat(l))}}var U={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing"},nt=Nt.createPortal!==void 0;function me(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Jt(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function St(e){var t=e.title,n=e.data,r=e.warn,i=r===void 0?!1:r,s=e.debug,o=s===void 0?!1:s,l=i?console.warn||console.error:console.log;o&&t&&n&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach(function(c){y.plainObject(c)&&c.key?l.apply(console,[c.key,c.value]):l.apply(console,[c])}):l.apply(console,[n]),console.groupEnd())}function Xc(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,n,r)}function eu(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,n,r)}function tu(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i;i=function(o){n(o),eu(e,t,i)},Xc(e,t,i,r)}function Tr(){}var Ii=function(e){yt(n,e);var t=vt(n);function n(){return gt(this,n),t.apply(this,arguments)}return bt(n,[{key:"componentDidMount",value:function(){me()&&(this.node||this.appendNode(),nt||this.renderPortal())}},{key:"componentDidUpdate",value:function(){me()&&(nt||this.renderPortal())}},{key:"componentWillUnmount",value:function(){!me()||!this.node||(nt||Nt.unmountComponentAtNode(this.node),this.node&&this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0))}},{key:"appendNode",value:function(){var i=this.props,s=i.id,o=i.zIndex;this.node||(this.node=document.createElement("div"),s&&(this.node.id=s),o&&(this.node.style.zIndex=o),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!me())return null;var i=this.props,s=i.children,o=i.setRef;if(this.node||this.appendNode(),nt)return Nt.createPortal(s,this.node);var l=Nt.unstable_renderSubtreeIntoContainer(this,s.length>1?T.createElement("div",null,s):s[0],this.node);return o(l),null}},{key:"renderReact16",value:function(){var i=this.props,s=i.hasChildren,o=i.placement,l=i.target;return s?this.renderPortal():l||o==="center"?this.renderPortal():null}},{key:"render",value:function(){return nt?this.renderReact16():null}}]),n}(T.Component);
33te(Ii,"propTypes",{children:N.oneOfType([N.element,N.array]),hasChildren:N.bool,id:N.oneOfType([N.string,N.number]),placement:N.string,setRef:N.func.isRequired,target:N.oneOfType([N.object,N.string]),zIndex:N.number});var Bi=function(e){yt(n,e);var t=vt(n);function n(){return gt(this,n),t.apply(this,arguments)}return bt(n,[{key:"parentStyle",get:function(){var i=this.props,s=i.placement,o=i.styles,l=o.arrow.length,c={pointerEvents:"none",position:"absolute",width:"100%"};return s.startsWith("top")?(c.bottom=0,c.left=0,c.right=0,c.height=l):s.startsWith("bottom")?(c.left=0,c.right=0,c.top=0,c.height=l):s.startsWith("left")?(c.right=0,c.top=0,c.bottom=0):s.startsWith("right")&&(c.left=0,c.top=0),c}},{key:"render",value:function(){var i=this.props,s=i.placement,o=i.setArrowRef,l=i.styles,c=l.arrow,u=c.color,p=c.display,d=c.length,f=c.margin,m=c.position,h=c.spread,b={display:p,position:m},v,S=h,x=d;return s.startsWith("top")?(v="0,0 ".concat(S/2,",").concat(x," ").concat(S,",0"),b.bottom=0,b.marginLeft=f,b.marginRight=f):s.startsWith("bottom")?(v="".concat(S,",").concat(x," ").concat(S/2,",0 0,").concat(x),b.top=0,b.marginLeft=f,b.marginRight=f):s.startsWith("left")?(x=h,S=d,v="0,0 ".concat(S,",").concat(x/2," 0,").concat(x),b.right=0,b.marginTop=f,b.marginBottom=f):s.startsWith("right")&&(x=h,S=d,v="".concat(S,",").concat(x," ").concat(S,",0 0,").concat(x/2),b.left=0,b.marginTop=f,b.marginBottom=f),T.createElement("div",{className:"__floater__arrow",style:this.parentStyle},T.createElement("span",{ref:o,style:b},T.createElement("svg",{width:S,height:x,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},T.createElement("polygon",{points:v,fill:u}))))}}]),n}(T.Component);te(Bi,"propTypes",{placement:N.string.isRequired,setArrowRef:N.func.isRequired,styles:N.object.isRequired});var nu=["color","height","width"];function _i(e){var t=e.handleClick,n=e.styles,r=n.color,i=n.height,s=n.width,o=Ri(n,nu);return T.createElement("button",{"aria-label":"close",onClick:t,style:o,type:"button"},T.createElement("svg",{width:"".concat(s,"px"),height:"".concat(i,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},T.createElement("g",null,T.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:r}))))}_i.propTypes={handleClick:N.func.isRequired,styles:N.object.isRequired};function Fi(e){var t=e.content,n=e.footer,r=e.handleClick,i=e.open,s=e.positionWrapper,o=e.showCloseButton,l=e.title,c=e.styles,u={content:T.isValidElement(t)?t:T.createElement("div",{className:"__floater__content",style:c.content},t)};return l&&(u.title=T.isValidElement(l)?l:T.createElement("div",{className:"__floater__title",style:c.title},l)),n&&(u.footer=T.isValidElement(n)?n:T.createElement("div",{className:"__floater__footer",style:c.footer},n)),(o||s)&&!y.boolean(i)&&(u.close=T.createElement(_i,{styles:c.close,handleClick:r})),T.createElement("div",{className:"__floater__container",style:c.container},u.close,u.title,u.content,u.footer)}Fi.propTypes={content:N.node.isRequired,footer:N.node,handleClick:N.func.isRequired,open:N.bool,positionWrapper:N.bool.isRequired,showCloseButton:N.bool.isRequired,styles:N.object.isRequired,title:N.node};var Di=function(e){yt(n,e);var t=vt(n);function n(){return gt(this,n),t.apply(this,arguments)}return bt(n,[{key:"style",get:function(){var i=this.props,s=i.disableAnimation,o=i.component,l=i.placement,c=i.hideArrow,u=i.status,p=i.styles,d=p.arrow.length,f=p.floater,m=p.floaterCentered,h=p.floaterClosing,b
33=p.floaterOpening,v=p.floaterWithAnimation,S=p.floaterWithComponent,x={};return c||(l.startsWith("top")?x.padding="0 0 ".concat(d,"px"):l.startsWith("bottom")?x.padding="".concat(d,"px 0 0"):l.startsWith("left")?x.padding="0 ".concat(d,"px 0 0"):l.startsWith("right")&&(x.padding="0 0 0 ".concat(d,"px"))),[U.OPENING,U.OPEN].indexOf(u)!==-1&&(x=J(J({},x),b)),u===U.CLOSING&&(x=J(J({},x),h)),u===U.OPEN&&!s&&(x=J(J({},x),v)),l==="center"&&(x=J(J({},x),m)),o&&(x=J(J({},x),S)),J(J({},f),x)}},{key:"render",value:function(){var i=this.props,s=i.component,o=i.handleClick,l=i.hideArrow,c=i.setFloaterRef,u=i.status,p={},d=["__floater"];return s?T.isValidElement(s)?p.content=T.cloneElement(s,{closeFn:o}):p.content=s({closeFn:o}):p.content=T.createElement(Fi,this.props),u===U.OPEN&&d.push("__floater__open"),l||(p.arrow=T.createElement(Bi,this.props)),T.createElement("div",{ref:c,className:d.join(" "),style:this.style},T.createElement("div",{className:"__floater__body"},p.content,p.arrow))}}]),n}(T.Component);te(Di,"propTypes",{component:N.oneOfType([N.func,N.element]),content:N.node,disableAnimation:N.bool.isRequired,footer:N.node,handleClick:N.func.isRequired,hideArrow:N.bool.isRequired,open:N.bool,placement:N.string.isRequired,positionWrapper:N.bool.isRequired,setArrowRef:N.func.isRequired,setFloaterRef:N.func.isRequired,showCloseButton:N.bool,status:N.string.isRequired,styles:N.object.isRequired,title:N.node});var Mi=function(e){yt(n,e);var t=vt(n);function n(){return gt(this,n),t.apply(this,arguments)}return bt(n,[{key:"render",value:function(){var i=this.props,s=i.children,o=i.handleClick,l=i.handleMouseEnter,c=i.handleMouseLeave,u=i.setChildRef,p=i.setWrapperRef,d=i.style,f=i.styles,m;if(s)if(T.Children.count(s)===1)if(!T.isValidElement(s))m=T.createElement("span",null,s);else{var h=y.function(s.type)?"innerRef":"ref";m=T.cloneElement(T.Children.only(s),te({},h,u))}else m=s;return m?T.createElement("span",{ref:p,style:J(J({},f),d),onClick:o,onMouseEnter:l,onMouseLeave:c},m):null}}]),n}(T.Component);te(Mi,"propTypes",{children:N.node,handleClick:N.func.isRequired,handleMouseEnter:N.func.isRequired,handleMouseLeave:N.func.isRequired,setChildRef:N.func.isRequired,setWrapperRef:N.func.isRequired,style:N.object,styles:N.object.isRequired});var ru={zIndex:100};function iu(e){var t=ue(ru,e.options||{});return{wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:t.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:t.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:t}}var su=["arrow","flip","offset"],ou=["position","top","right","bottom","left"],Pn=function(e){yt(n,e);var t=vt(n);function n(r){var i;return gt(this,n),i=t.call(this,r),te(we(i),"setArrowRef",function(s){i.arrowRef=s}),te(we(i),"setChildRef",function(s){i.childRef=s}),te(we(i),"setFloaterRef",function(s){i.floaterRef=s}),te(we(i),"setWrapperRef",function(s){i.wrapperRef=s}),te(we(i),"handleTransitionEnd",function(){var s=i.state.status,o=i.props.callback;
vendor: 4,149 bytes, line 33
33i.wrapperPopper&&i.wrapperPopper.instance.update(),i.setState({status:s===U.OPENING?U.OPEN:U.IDLE},function(){var l=i.state.status;o(l===U.OPEN?"open":"close",i.props)})}),te(we(i),"handleClick",function(){var s=i.props,o=s.event,l=s.open;if(!y.boolean(l)){var c=i.state,u=c.positionWrapper,p=c.status;(i.event==="click"||i.event==="hover"&&u)&&(St({title:"click",data:[{event:o,status:p===U.OPEN?"closing":"opening"}],debug:i.debug}),i.toggle())}}),te(we(i),"handleMouseEnter",function(){var s=i.props,o=s.event,l=s.open;if(!(y.boolean(l)||Jt())){var c=i.state.status;i.event==="hover"&&c===U.IDLE&&(St({title:"mouseEnter",data:[{key:"originalEvent",value:o}],debug:i.debug}),clearTimeout(i.eventDelayTimeout),i.toggle())}}),te(we(i),"handleMouseLeave",function(){var s=i.props,o=s.event,l=s.eventDelay,c=s.open;if(!(y.boolean(c)||Jt())){var u=i.state,p=u.status,d=u.positionWrapper;i.event==="hover"&&(St({title:"mouseLeave",data:[{key:"originalEvent",value:o}],debug:i.debug}),l?[U.OPENING,U.OPEN].indexOf(p)!==-1&&!d&&!i.eventDelayTimeout&&(i.eventDelayTimeout=setTimeout(function(){delete i.eventDelayTimeout,i.toggle()},l*1e3)):i.toggle(U.IDLE))}}),i.state={currentPlacement:r.placement,needsUpdate:!1,positionWrapper:r.wrapperOptions.position&&!!r.target,status:U.INIT,statusWrapper:U.INIT},i._isMounted=!1,i.hasMounted=!1,me()&&window.addEventListener("load",function(){i.popper&&i.popper.instance.update(),i.wrapperPopper&&i.wrapperPopper.instance.update()}),i}return bt(n,[{key:"componentDidMount",value:function(){if(me()){var i=this.state.positionWrapper,s=this.props,o=s.children,l=s.open,c=s.target;this._isMounted=!0,St({title:"init",data:{hasChildren:!!o,hasTarget:!!c,isControlled:y.boolean(l),positionWrapper:i,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!o&&c&&y.boolean(l)}}},{key:"componentDidUpdate",value:function(i,s){if(me()){var o=this.props,l=o.autoOpen,c=o.open,u=o.target,p=o.wrapperOptions,d=$c(s,this.state),f=d.changedFrom,m=d.changed;if(i.open!==c){var h;y.boolean(c)&&(h=c?U.OPENING:U.CLOSING),this.toggle(h)}(i.wrapperOptions.position!==p.position||i.target!==u)&&this.changeWrapperPosition(this.props),m("status",U.IDLE)&&c?this.toggle(U.OPEN):f("status",U.INIT,U.IDLE)&&l&&this.toggle(U.OPEN),this.popper&&m("status",U.OPENING)&&this.popper.instance.update(),this.floaterRef&&(m("status",U.OPENING)||m("status",U.CLOSING))&&tu(this.floaterRef,"transitionend",this.handleTransitionEnd),m("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){me()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var i=this,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.target,o=this.state.positionWrapper,l=this.props,c=l.disableFlip,u=l.getPopper,p=l.hideArrow,d=l.offset,f=l.placement,m=l.wrapperOptions,h=f==="top"||f==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(f==="center")this.setState({status:U.IDLE});else if(s&&this.floaterRef){var b=this.options,v=b.arrow,S=b.flip,x=b.offset,E=Ri(b,su);new ut(s,this.floaterRef,{placement:f,modifiers:J({arrow:J({enabled:!p,element:this.arrowRef},v),flip:J({enabled:!c,behavior:h},S),offset:J({offset:"0, ".concat(d,"px")},x)},E),onCreate:function(A){var D;if(i.popper=A,!((D=i.floaterRef)!==null&&D!==void 0&&D.isConnected)){i.setState({needsUpdate:!0});return}u(A,"floater"),i._isMounted&&i.setState({currentPlacement:A.placement,status:U.IDLE}),f!==A.placement&&setTimeout(function(){A.instance.update()},1)},onUpdate:function(A){i.popper=A;var D=i.state.currentPlacement;i._isMounted&&A.placement!==D&&i.setState({currentPlacement:A.placement})}})}if(o){var C=y.undefined(m.offset)?0:m.offset;new ut(this.target,this.wrapperRef,{placement:m.placement||f,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(C,"px")},flip:{enabled:!1}},onCreate:function(A){i.wrapperPopper=A,i._isMounted&&i.setState({statusWrapper:U.IDLE}),u(A,"wrapper"),f!==A.placement&&setTimeout(function(){A.instance.update(
33)},1)}})}}},{key:"rebuildPopper",value:function(){var i=this;this.floaterRefInterval=setInterval(function(){var s;(s=i.floaterRef)!==null&&s!==void 0&&s.isConnected&&(clearInterval(i.floaterRefInterval),i.setState({needsUpdate:!1}),i.initPopper())},50)}},{key:"changeWrapperPosition",value:function(i){var s=i.target,o=i.wrapperOptions;this.setState({positionWrapper:o.position&&!!s})}},{key:"toggle",value:function(i){var s=this.state.status,o=s===U.OPEN?U.CLOSING:U.OPENING;y.undefined(i)||(o=i),this.setState({status:o})}},{key:"debug",get:function(){var i=this.props.debug;return i||me()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var i=this.props,s=i.disableHoverToClick,o=i.event;return o==="hover"&&Jt()&&!s?"click":o}},{key:"options",get:function(){var i=this.props.options;return ue(qc,i||{})}},{key:"styles",get:function(){var i=this,s=this.state,o=s.status,l=s.positionWrapper,c=s.statusWrapper,u=this.props.styles,p=ue(iu(u),u);if(l){var d;[U.IDLE].indexOf(o)===-1||[U.IDLE].indexOf(c)===-1?d=p.wrapperPosition:d=this.wrapperPopper.styles,p.wrapper=J(J({},p.wrapper),d)}if(this.target){var f=window.getComputedStyle(this.target);this.wrapperStyles?p.wrapper=J(J({},p.wrapper),this.wrapperStyles):["relative","static"].indexOf(f.position)===-1&&(this.wrapperStyles={},l||(ou.forEach(function(m){i.wrapperStyles[m]=f[m]}),p.wrapper=J(J({},p.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return p}},{key:"target",get:function(){if(!me())return null;var i=this.props.target;return i?y.domElement(i)?i:document.querySelector(i):this.childRef||this.wrapperRef}},{key:"render",value:function(){var i=this.state,s=i.currentPlacement,o=i.positionWrapper,l=i.status,c=this.props,u=c.children,p=c.component,d=c.content,f=c.disableAnimation,m=c.footer,h=c.hideArrow,b=c.id,v=c.open,S=c.showCloseButton,x=c.style,E=c.target,C=c.title,F=T.createElement(Mi,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:x,styles:this.styles.wrapper},u),A={};return o?A.wrapperInPortal=F:A.wrapperAsChildren=F,T.createElement("span",null,T.createElement(Ii,{hasChildren:!!u,id:b,placement:s,setRef:this.setFloaterRef,target:E,zIndex:this.styles.options.zIndex},T.createElement(Di,{component:p,content:d,disableAnimation:f,footer:m,handleClick:this.handleClick,hideArrow:h||s==="center",open:v,placement:s,positionWrapper:o,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:S,status:l,styles:this.styles,title:C}),A.wrapperInPortal),A.wrapperAsChildren)}}]),n}(T.Component);te(Pn,"propTypes",{autoOpen:N.bool,callback:N.func,children:N.node,component:Pr(N.oneOfType([N.func,N.element]),function(e){return!e.content}),content:Pr(N.node,function(e){return!e.component}),debug:N.bool,disableAnimation:N.bool,disableFlip:N.bool,disableHoverToClick:N.bool,event:N.oneOf(["hover","click"]),eventDelay:N.number,footer:N.node,getPopper:N.func,hideArrow:N.bool,id:N.oneOfType([N.string,N.number]),offset:N.number,open:N.bool,options:N.object,placement:N.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:N.bool,style:N.object,styles:N.object,target:N.oneOfType([N.object,N.string]),title:N.node,wrapperOptions:N.shape({offset:N.number,placement:N.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:N.bool})});te(Pn,"defaultProps",{autoOpen:!1,callback:Tr,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:Tr,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var au=Object.defineProperty,lu=(e,t,n)=>t in e?au(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,P=(e,t,n)=>lu(e,typeof t!="symbol"?t+"":t,n),H={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},ae={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found"},B={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},W={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished"};function Ee(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}function $i(e){return e?e.getBoundingClientRect():null}function cu(e=!1){const{body:t,documentElement:n}=document;if(!t||!n)return 0;if(e){const r=[t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight].sort((s,o)=>s-o),i=Math.floor(r.length/2);return r.length%2===0?(r[i-1]+r[i])/2:r[i]}return Math.max(t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}function Se(e){if(typeof e=="string")try{return document.querySelector(e)}catch{return null}return e}function uu(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}function dt(e,t,n){if(!e)return Le();const r=pi(e);if(r){if(r.isSameNode(Le()))return n?document:Le();if(!(r.scrollHeight>r.offsetHeight)&&!t)return r.style.overflow="initial",Le()}return r}function zt(e,t){if(!e)return!1;const n=dt(e,t);return n?!n.isSameNode(Le()):!1}function du(e){return e.offsetParent!==document.body}function qe(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:n}=e,r=uu(e);return n==="BODY"||n==="HTML"?!1:r&&r.position===t?!0:e.parentNode?qe(e.parentNode,t):!1}function fu(e){var t;if(!e)return!1;let n=e;for(;n&&n!==document.body;){if(n instanceof HTMLElement){const{display:r,visibility:i}=getComputedStyle(n);if(r==="none"||i==="hidden")return!1}n=(t=n.parentElement)!=null?t:null}return!0}function pu(e,t,n){var r,i,s;const o=$i(e),l=dt(e,n),c=zt(e,n),u=qe(e);let p=0,d=(r=o==null?void 0:o.top)!=null?r:0;if(c&&u){const f=(i=e==null?void 0:e.offsetTop)!=null?i:0,m=(s=l==null?void 0:l.scrollTop)!=null?s:0;d=f-m}
33else l instanceof HTMLElement&&(p=l.scrollTop,!c&&!qe(e)&&(d+=p),l.isSameNode(Le())||(d+=Le().scrollTop));return Math.floor(d-t)}function hu(e,t,n){var r;if(!e)return 0;const{offsetTop:i=0,scrollTop:s=0}=(r=pi(e))!=null?r:{};let o=e.getBoundingClientRect().top+s;i&&(zt(e,n)||du(e))&&(o-=i);const l=Math.floor(o-t);return l<0?0:l}function Le(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}function mu(e,t){const{duration:n,element:r}=t;return new Promise((i,s)=>{const{scrollTop:o}=r,l=e>o?e-o:o-e;Nl.top(r,e,{duration:l<100?50:n},c=>c&&c.message!=="Element already at target scroll position"?s(c):i())})}var rt=Me.createPortal!==void 0;function zi(e=navigator.userAgent){let t=e;return typeof window>"u"?t="node":document.documentMode?t="ie":/Edge/.test(e)?t="edge":window.opera||e.includes(" OPR/")?t="opera":typeof window.InstallTrigger<"u"?t="firefox":window.chrome?t="chrome":/(Version\/([\d._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(t="safari"),t}function jt(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function ge(e,t={}){const{defaultValue:n,step:r,steps:i}=t;let s=hr(e);if(s)(s.includes("{step}")||s.includes("{steps}"))&&r&&i&&(s=s.replace("{step}",r.toString()).replace("{steps}",i.toString()));else if(g.isValidElement(e)&&!Object.values(e.props).length&&jt(e.type)==="function"){const o=e.type({});s=ge(o,t)}else s=hr(n);return s}function gu(e,t){return!O.plainObject(e)||!O.array(t)?!1:Object.keys(e).every(n=>t.includes(n))}function bu(e){const t=/^#?([\da-f])([\da-f])([\da-f])$/i,n=e.replace(t,(i,s,o,l)=>s+s+o+o+l+l),r=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(n);return r?[parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16)]:[]}function Ar(e){return e.disableBeacon||e.placement==="center"}function Rr(){return!["chrome","safari","firefox","opera"].includes(zi())}function Be({data:e,debug:t=!1,title:n,warn:r=!1}){const i=r?console.warn||console.error:console.log;t&&(n&&e?(console.groupCollapsed(`%creact-joyride: ${n}`,"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(e)?e.forEach(s=>{O.plainObject(s)&&s.key?i.apply(console,[s.key,s.value]):i.apply(console,[s])}):i.apply(console,[e]),console.groupEnd()):console.error("Missing title or data props"))}function yu(e){return Object.keys(e)}function Wi(e,...t){if(!O.plainObject(e))throw new TypeError("Expected an object");const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&(t.includes(r)||(n[r]=e[r]));return n}function vu(e,...t){if(!O.plainObject(e))throw new TypeError("Expected an object");if(!t.length)return e;const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&t.includes(r)&&(n[r]=e[r]);return n}function bn(e,t,n){const r=s=>s.replace("{step}",String(t)).replace("{steps}",String(n));if(jt(e)==="string")return r(e);if(!g.isValidElement(e))return e;const{children:i}=e.props;if(jt(i)==="string"&&i.includes("{step}"))return g.cloneElement(e,{children:r(i)});if(Array.isArray(i))return g.cloneElement(e,{children:i.map(s=>typeof s=="string"?r(s):bn(s,t,n))});if(jt(e.type)==="function"&&!Object.values(e.props).length){const s=e.type({});return bn(s,t,n)}return e}function xu(e){const{isFirstStep:t,lifecycle:n,previousLifecycle:r,scrollToFirstStep:i,step:s,target:o}=e;return!s.disableScrolling&&(!t||i||n===B.TOOLTIP)&&s.placement!=="center"&&(!s.isFixed||!qe(o))&&r!==n&&[B.BEACON,B.TOOLTIP].includes(n)}var wu={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},Vi={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},Su={event:"click",placement:"bottom",offset:10,disableBeacon:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrollParentFix:!1,disableScrolling:!1,hideBackButton:!1,hideCloseButton:!1,hideFooter:!1,isFixed:!1,locale:Vi,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},Nu={continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:void 0,hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]},ju={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",width:380,zIndex:100},it={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},Lr={borderRadius:4,position:"absolute"};function Eu(e,t){var n,r,i,s,o;const{floaterProps:l,styles:c}=e,u=ue((n=t.floaterProps)!=null?n:{},l??{}),p=ue(c??{},(r=t.styles)!=null?r:{}),d=ue(ju,p.options||{}),f=t.placement==="center"||t.disableBeacon;let{width:m}=d;window.innerWidth>480&&(m=380),"width"in d&&(m=typeof d.width=="number"&&window.innerWidth<d.width?window.innerWidth-30:d.width);const h={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:d.zIndex}
33,b={beacon:{...it,display:f?"none":"inline-block",height:d.beaconSize,position:"relative",width:d.beaconSize,zIndex:d.zIndex},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:d.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:`rgba(${bu(d.primaryColor).join(",")}, 0.2)`,border:`2px solid ${d.primaryColor}`,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:d.backgroundColor,borderRadius:5,boxSizing:"border-box",color:d.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:m},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:{...it,backgroundColor:d.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...it,color:d.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...it,color:d.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...it,color:d.textColor,fontSize:14},overlay:{...h,backgroundColor:d.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...h},overlayLegacyCenter:{...h,backgroundColor:d.overlayColor},spotlight:{...Lr,backgroundColor:"gray"},spotlightLegacy:{...Lr,boxShadow:`0 0 0 9999px ${d.overlayColor}, ${d.spotlightShadow}`},floaterStyles:{arrow:{color:(o=(s=(i=u==null?void 0:u.styles)==null?void 0:i.arrow)==null?void 0:s.color)!=null?o:d.arrowColor},options:{zIndex:d.zIndex+100}},options:d};return ue(b,p)}function ku(e){return vu(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function De(e,t){var n,r,i,s,o,l;const c=t??{},u=ue.all([Su,ku(e),c],{isMergeableObject:O.plainObject}),p=Eu(e,u),d=zt(Se(u.target),u.disableScrollParentFix),f=ue.all([wu,(n=e.floaterProps)!=null?n:{},(r=u.floaterProps)!=null?r:{}]);return f.offset=u.offset,f.styles=ue((i=f.styles)!=null?i:{},p.floaterStyles),f.offset+=(o=(s=e.spotlightPadding)!=null?s:u.spotlightPadding)!=null?o:0,u.placementBeacon&&f.wrapperOptions&&(f.wrapperOptions.placement=u.placementBeacon),d&&f.options.preventOverflow&&(f.options.preventOverflow.boundariesElement="window"),{...u,locale:ue.all([Vi,(l=e.locale)!=null?l:{},u.locale||{}]),floaterProps:f,styles:Wi(p,"floaterStyles")}}function Ui(e,t=!1){return O.plainObject(e)?e.target?!0:(Be({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(Be({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function Ir(e,t=!1){return O.array(e)?e.every(n=>Ui(n,t)):(Be({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var Hi={action:"init",controlled:!1,index:0,lifecycle:B.INIT,origin:null,size:0,status:W.IDLE},Br=yu(Wi(Hi,"controlled","size")),Cu=class{constructor(e){P(this,"beaconPopper"),P(this,"tooltipPopper"),P(this,"data",new Map),P(this,"listener"),P(this,"store",new Map),P(this,"addListener",i=>{this.listener=i}),P(this,"setSteps",i=>{const{size:s,status:o}=this.getState(),l={size:i.length,status:o};this.data.set("steps",i),o===W.WAITING&&!s&&i.length&&(l.status=W.RUNNING),this.setState(l)}),P(this,"getPopper",i=>i==="beacon"?this.beaconPopper:this.tooltipPopper),P(this,"setPopper",(i,s)=>{i==="beacon"?this.beaconPopper=s:this.tooltipPopper=s}),P(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null}),P(this,"close",(i=null)=>{const{index:s,status:o}=this.getState();o===W.RUNNING&&this.setState({...this.getNextState({action:H.CLOSE,index:s+1,origin:i})})}),P(this,"go",i=>{const{controlled:s,status:o}=this.getState();if(s||o!==W.RUNNING)return;const l=this.getSteps()[i];this.setState({...this.getNextState({action:H.GO,index:i}),status:l?o:W.FINISHED})}),P(this,"info",()=>this.getState()),P(this,"next",()=>{const{index:i,status:s}=this.getState();s===W.RUNNING&&this.setState(this.getNextState({action:H.NEXT,index:i+1}))}),P(this,"open",()=>{const{status:i}=this.getState();i===W.RUNNING&&this.setState({...this.getNextState({action:H.UPDATE,lifecycle:B.TOOLTIP})})}),P(this,"prev",()=>{const{index:i,status:s}=this.getState();s===W.RUNNING&&this.setState({...this.getNextState({action:H.PREV,index:i-1})})}),P(this,"reset",(i=!1)=>{const{controlled:s}=this.getState();s||this.setState({...this.getNextState({action:H.RESET,index:0}),status:i?W.RUNNING:W.READY})}),P(this,"skip",()=>{const{status:i}=this.getState();i===W.RUNNING&&this.setState({action:H.SKIP,lifecycle:B.INIT,status:W.SKIPPED})}),P(this,"start",i=>{const{index:s,size:o}=this.getState();this.setState({...this.getNextState({action:H.START,index:O.number(i)?i:s},!0),status:o?W.RUNNING:W.WAITING})}),P(this,"stop",(i=!1)=>{const{index:s,status:o}=this.getState();[W.FINISHED,W.SKIPPED].includes(o)||this.setState({...this.getNextState({action:H.STOP,index:s+(i?1:0)}),status:W.PAUSED})}),P(this,"update",i=>{var s,o;
33if(!gu(i,Br))throw new Error(`State is not valid. Valid keys: ${Br.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...i,action:(s=i.action)!=null?s:H.UPDATE,origin:(o=i.origin)!=null?o:null},!0)})});const{continuous:t=!1,stepIndex:n,steps:r=[]}=e??{};this.setState({action:H.INIT,controlled:O.number(n),continuous:t,index:O.number(n)?n:0,lifecycle:B.INIT,origin:null,status:r.length?W.READY:W.IDLE},!0),this.beaconPopper=null,this.tooltipPopper=null,this.listener=null,this.setSteps(r)}getState(){return this.store.size?{action:this.store.get("action")||"",controlled:this.store.get("controlled")||!1,index:parseInt(this.store.get("index"),10),lifecycle:this.store.get("lifecycle")||"",origin:this.store.get("origin")||null,size:this.store.get("size")||0,status:this.store.get("status")||""}:{...Hi}}getNextState(e,t=!1){var n,r,i,s,o;const{action:l,controlled:c,index:u,size:p,status:d}=this.getState(),f=O.number(e.index)?e.index:u,m=c&&!t?u:Math.min(Math.max(f,0),p);return{action:(n=e.action)!=null?n:l,controlled:c,index:m,lifecycle:(r=e.lifecycle)!=null?r:B.INIT,origin:(i=e.origin)!=null?i:null,size:(s=e.size)!=null?s:p,status:m===p?W.FINISHED:(o=e.status)!=null?o:d}}getSteps(){const e=this.data.get("steps");return Array.isArray(e)?e:[]}hasUpdatedState(e){const t=JSON.stringify(e),n=JSON.stringify(this.getState());return t!==n}setState(e,t=!1){const n=this.getState(),{action:r,index:i,lifecycle:s,origin:o=null,size:l,status:c}={...n,...e};this.store.set("action",r),this.store.set("index",i),this.store.set("lifecycle",s),this.store.set("origin",o),this.store.set("size",l),this.store.set("status",c),t&&(this.store.set("controlled",e.controlled),this.store.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(n)&&this.listener(this.getState())}getHelpers(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}};function Ou(e){return new Cu(e)}function Pu({styles:e}){return g.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}var Tu=Pu,Au=class extends g.Component{constructor(){super(...arguments),P(this,"isActive",!1),P(this,"resizeTimeout"),P(this,"scrollTimeout"),P(this,"scrollParent"),P(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),P(this,"hideSpotlight",()=>{const{continuous:e,disableOverlay:t,lifecycle:n}=this.props,r=[B.INIT,B.BEACON,B.COMPLETE,B.ERROR];return t||(e?r.includes(n):n!==B.TOOLTIP)}),P(this,"handleMouseMove",e=>{const{mouseOverSpotlight:t}=this.state,{height:n,left:r,position:i,top:s,width:o}=this.spotlightStyles,l=i==="fixed"?e.clientY:e.pageY,c=i==="fixed"?e.clientX:e.pageX,u=l>=s&&l<=s+n,d=c>=r&&c<=r+o&&u;d!==t&&this.updateState({mouseOverSpotlight:d})}),P(this,"handleScroll",()=>{const{target:e}=this.props,t=Se(e);if(this.scrollParent!==document){const{isScrolling:n}=this.state;n||this.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout(()=>{this.updateState({isScrolling:!1,showSpotlight:!0})},50)}else qe(t,"sticky")&&this.updateState({})}),P(this,"handleResize",()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(()=>{this.isActive&&this.forceUpdate()},100)})}componentDidMount(){const{debug:e,disableScrolling:t,disableScrollParentFix:n=!1,target:r}=this.props,i=Se(r);this.scrollParent=dt(i??document.body,n,!0),this.isActive=!0,window.addEventListener("resize",this.handleResize)}componentDidUpdate(e){var t;const{disableScrollParentFix:n,lifecycle:r,spotlightClicks:i,target:s}=this.props,{changed:o}=Tt(e,this.props);if(o("target")||o("disableScrollParentFix")){const l=Se(s);this.scrollParent=dt(l??document.body,n,!0)}o("lifecycle",B.TOOLTIP)&&((t=this.scrollParent)==null||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{const{isScrolling:l}=this.state;l||this.updateState({showSpotlight:!0})},100)),(o("spotlightClicks")||o("disableOverlay")||o("lifecycle"))&&(i&&r===B.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==B.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}componentWillUnmount(){var e;this.isActive=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),(e=this.scrollParent)==null||e.removeEventListener("scroll",this.handleScroll)}
33get overlayStyles(){const{mouseOverSpotlight:e}=this.state,{disableOverlayClose:t,placement:n,styles:r}=this.props;let i=r.overlay;return Rr()&&(i=n==="center"?r.overlayLegacyCenter:r.overlayLegacy),{cursor:t?"default":"pointer",height:cu(),pointerEvents:e?"none":"auto",...i}}get spotlightStyles(){var e,t,n;const{showSpotlight:r}=this.state,{disableScrollParentFix:i=!1,spotlightClicks:s,spotlightPadding:o=0,styles:l,target:c}=this.props,u=Se(c),p=$i(u),d=qe(u),f=pu(u,o,i);return{...Rr()?l.spotlightLegacy:l.spotlight,height:Math.round(((e=p==null?void 0:p.height)!=null?e:0)+o*2),left:Math.round(((t=p==null?void 0:p.left)!=null?t:0)-o),opacity:r?1:0,pointerEvents:s?"none":"auto",position:d?"fixed":"absolute",top:f,transition:"opacity 0.2s",width:Math.round(((n=p==null?void 0:p.width)!=null?n:0)+o*2)}}updateState(e){this.isActive&&this.setState(t=>({...t,...e}))}render(){const{showSpotlight:e}=this.state,{onClickOverlay:t,placement:n}=this.props,{hideSpotlight:r,overlayStyles:i,spotlightStyles:s}=this;if(r())return null;let o=n!=="center"&&e&&g.createElement(Tu,{styles:s});if(zi()==="safari"){const{mixBlendMode:l,zIndex:c,...u}=i;o=g.createElement("div",{style:{...u}},o),delete i.backgroundColor}return g.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:i},o)}},Ru=class extends g.Component{constructor(){super(...arguments),P(this,"node",null)}componentDidMount(){const{id:e}=this.props;Ee()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),rt||this.renderReact15())}componentDidUpdate(){Ee()&&(rt||this.renderReact15())}componentWillUnmount(){!Ee()||!this.node||(rt||Me.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!Ee())return;const{children:e}=this.props;this.node&&Me.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!Ee()||!rt)return null;const{children:e}=this.props;return this.node?Me.createPortal(e,this.node):null}render(){return rt?this.renderReact16():null}},Lu=class{constructor(e,t){if(P(this,"element"),P(this,"options"),P(this,"canBeTabbed",n=>{const{tabIndex:r}=n;return r===null||r<0?!1:this.canHaveFocus(n)}),P(this,"canHaveFocus",n=>{const r=/input|select|textarea|button|object/,i=n.nodeName.toLowerCase();return(r.test(i)&&!n.getAttribute("disabled")||i==="a"&&!!n.getAttribute("href"))&&this.isVisible(n)}),P(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),P(this,"handleKeyDown",n=>{const{code:r="Tab"}=this.options;n.code===r&&this.interceptTab(n)}),P(this,"interceptTab",n=>{n.preventDefault();const r=this.findValidTabElements(),{shiftKey:i}=n;if(!r.length)return;let s=document.activeElement?r.indexOf(document.activeElement):0;s===-1||!i&&s+1===r.length?s=0:i&&s===0?s=r.length-1:s+=i?-1:1,r[s].focus()}),P(this,"isHidden",n=>{const r=n.offsetWidth<=0&&n.offsetHeight<=0,i=window.getComputedStyle(n);return r&&!n.innerHTML?!0:r&&i.getPropertyValue("overflow")!=="visible"||i.getPropertyValue("display")==="none"}),P(this,"isVisible",n=>{let r=n;for(;r;)if(r instanceof HTMLElement){if(r===document.body)break;if(this.isHidden(r))return!1;r=r.parentNode}return!0}),P(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown)}),P(this,"checkFocus",n=>{document.activeElement!==n&&(n.focus(),window.requestAnimationFrame(()=>this.checkFocus(n)))}),P(this,"setFocus",()=>{const{selector:n}=this.options;if(!n)return;const r=this.element.querySelector(n);r&&window.requestAnimationFrame(()=>this.checkFocus(r))}),!(e instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=e,this.options=t,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()}},Iu=class extends g.Component{constructor(e){if(super(e),P(this,"beacon",null),P(this,"setBeaconRef",i=>{this.beacon=i}),e.beaconComponent)return;const t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="joyride-beacon-animation",e.nonce&&n.setAttribute("nonce",e.nonce),n.appendChild(document.createTextNode(`
34        @keyframes joyride-beacon-inner {
35          20% {
36            opacity: 0.9;
37          }
38        
39          90% {
40            opacity: 0.7;
41          }
42        }
43        
44        @keyframes joyride-beacon-outer {
45          0% {
46            transform: scale(1);
47          }
48        
49          45% {
50            opacity: 0.7;
51            transform: scale(0.75);
52          }
53        
54          100% {
55            opacity: 0.9;
56            transform: scale(1);
57          }
58        }
59      `)),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;setTimeout(()=>{O.domElement(this.beacon)&&e&&this.beacon.focus()},0)}componentWillUnmount(){const e=document.getElementById("joyride-beacon-animation");e!=null&&e.parentNode&&e.parentNode.removeChild(e)}render(){const{beaconComponent:e,continuous:t,index:n,isLastStep:r,locale:i,onClickOrHover:s,size:o,step:l,styles:c}=this.props,u=ge(i.open),p={"aria-label":u,onClick:s,onMouseEnter:s,ref:this.setBeaconRef,title:u};let d;if(e){const f=e;d=g.createElement(f,{continuous:t,index:n,isLastStep:r,size:o,step:l,...p})}else d=g.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:c.beacon,type:"button",...p},g.createElement("span",{style:c.beaconInner}),g.createElement("span",{style:c.beaconOuter}));return d}};function Bu({styles:e,...t}){const{color:n,height:r,width:i,...s}=e;return T.createElement("button",{style:s,type:"button",...t},T.createElement("svg",{height:typeof r=="number"?`${r}px`:r,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:typeof i=="number"?`${i}px`:i,xmlns:"http://www.w3.org/2000/svg"},T.createElement("g",null,T.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:n}))))}var _u=Bu;function Fu(e){const{backProps:t,closeProps:n,index:r,isLastStep:i,primaryProps:s,skipProps:o,step:l,tooltipProps:c}=e,{content:u,hideBackButton:p,hideCloseButton:d,hideFooter:f,showSkipButton:m,styles:h,title:b}=l,v={};return v.primary=g.createElement("button",{"data-test-id":"button-primary",style:h.buttonNext,type:"button",...s}),m&&!i&&(v.skip=g.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:h.buttonSkip,type:"button",...o})),!p&&r>0&&(v.back=g.createElement("button",{"data-test-id":"button-back",style:h.buttonBack,type:"button",...t})),v.close=!d&&g.createElement(_u,{"data-test-id":"button-close",styles:h.buttonClose,...n}),g.createElement("div",{key:"JoyrideTooltip","aria-label":ge(b??u),className:"react-joyride__tooltip",style:h.tooltip,...c},g.createElement("div",{style:h.tooltipContainer},b&&g.createElement("h1",{"aria-label":ge(b),style:h.tooltipTitle},b),g.createElement("div",{style:h.tooltipContent},u)),!f&&g.createElement("div",{style:h.tooltipFooter},g.createElement("div",{style:h.tooltipFooterSpacer},v.skip),v.back,v.primary),v.close)}var Du=Fu,Mu=class extends g.Component{constructor(){super(...arguments),P(this,"handleClickBack",e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()}),P(this,"handleClickClose",e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")}),P(this,"handleClickPrimary",e=>{e.preventDefault();const{continuous:t,helpers:n}=this.props;if(!t){n.close("button_primary");return}n.next()}),P(this,"handleClickSkip",e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()}),P(this,"getElementsProps",()=>{const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:s}=this.props,{back:o,close:l,last:c,next:u,nextLabelWithProgress:p,skip:d}=s.locale,f=ge(o),m=ge(l),h=ge(c),b=ge(u),v=ge(d);let S=l,x=m;if(e){if(S=u,x=b,s.showProgress&&!n){const E=ge(p,{step:t+1,steps:i});S=bn(p,t+1,i),x=E}n&&(S=c,x=h)}return{backProps:{"aria-label":f,children:o,"data-action":"back",onClick:this.handleClickBack,role:"button",title:f},closeProps:{"aria-label":m,children:l,"data-action":"close",onClick:this.handleClickClose,role:"button",title:m},primaryProps:{"aria-label":x,children:S,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:x},skipProps:{"aria-label":v,children:d,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:v},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}})}render(){const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:s}=this.props,{beaconComponent:o,tooltipComponent:l,...c}=s;let u;if(l){const p={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:c,setTooltipRef:r},d=l;u=g.createElement(d,{...p})}else u=g.createElement(Du,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:s});return u}},$u=class extends g.Component{constructor(){super(...arguments),P(this,"scope",null),P(this,"tooltip",null),P(this,"handleClickHoverBeacon",e=>
59{const{step:t,store:n}=this.props;e.type==="mouseenter"&&t.event!=="hover"||n.update({lifecycle:B.TOOLTIP})}),P(this,"setTooltipRef",e=>{this.tooltip=e}),P(this,"setPopper",(e,t)=>{var n;const{action:r,lifecycle:i,step:s,store:o}=this.props;t==="wrapper"?o.setPopper("beacon",e):o.setPopper("tooltip",e),o.getPopper("beacon")&&(o.getPopper("tooltip")||s.placement==="center")&&i===B.INIT&&o.update({action:r,lifecycle:B.READY}),(n=s.floaterProps)!=null&&n.getPopper&&s.floaterProps.getPopper(e,t)}),P(this,"renderTooltip",e=>{const{continuous:t,helpers:n,index:r,size:i,step:s}=this.props;return g.createElement(Mu,{continuous:t,helpers:n,index:r,isLastStep:r+1===i,setTooltipRef:this.setTooltipRef,size:i,step:s,...e})})}componentDidMount(){const{debug:e,index:t}=this.props;Be({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;const{action:n,callback:r,continuous:i,controlled:s,debug:o,helpers:l,index:c,lifecycle:u,shouldScroll:p,status:d,step:f,store:m}=this.props,{changed:h,changedFrom:b}=Tt(e,this.props),v=l.info(),S=i&&n!==H.CLOSE&&(c>0||n===H.PREV),x=h("action")||h("index")||h("lifecycle")||h("status"),E=b("lifecycle",[B.TOOLTIP,B.INIT],B.INIT),C=h("action",[H.NEXT,H.PREV,H.SKIP,H.CLOSE]),F=s&&c===e.index;if(C&&(E||F)&&r({...v,index:e.index,lifecycle:B.COMPLETE,step:e.step,type:ae.STEP_AFTER}),f.placement==="center"&&d===W.RUNNING&&h("index")&&n!==H.START&&u===B.INIT&&m.update({lifecycle:B.READY}),x){const A=Se(f.target),D=!!A;D&&fu(A)?(b("status",W.READY,W.RUNNING)||b("lifecycle",B.INIT,B.READY))&&r({...v,step:f,type:ae.STEP_BEFORE}):(console.warn(D?"Target not visible":"Target not mounted",f),r({...v,type:ae.TARGET_NOT_FOUND,step:f}),s||m.update({index:c+(n===H.PREV?-1:1)}))}b("lifecycle",B.INIT,B.READY)&&m.update({lifecycle:Ar(f)||S?B.TOOLTIP:B.BEACON}),h("index")&&Be({title:`step:${u}`,data:[{key:"props",value:this.props}],debug:o}),h("lifecycle",B.BEACON)&&r({...v,step:f,type:ae.BEACON}),h("lifecycle",B.TOOLTIP)&&(r({...v,step:f,type:ae.TOOLTIP}),p&&this.tooltip&&(this.scope=new Lu(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),b("lifecycle",[B.TOOLTIP,B.INIT],B.INIT)&&((t=this.scope)==null||t.removeScope(),m.cleanupPoppers())}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return Ar(t)||e===B.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:i,size:s,step:o}=this.props,l=Se(o.target);return!Ui(o)||!O.domElement(l)?null:g.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},g.createElement(Pn,{...o.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:o.placement,target:o.target},g.createElement(Iu,{beaconComponent:o.beaconComponent,continuous:e,index:n,isLastStep:n+1===s,locale:o.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:i,size:s,step:o,styles:o.styles})))}},qi=class extends g.Component{constructor(e){super(e),P(this,"helpers"),P(this,"store"),P(this,"callback",o=>{const{callback:l}=this.props;O.function(l)&&l(o)}),P(this,"handleKeyboard",o=>{const{index:l,lifecycle:c}=this.state,{steps:u}=this.props,p=u[l];c===B.TOOLTIP&&o.code==="Escape"&&p&&!p.disableCloseOnEsc&&this.store.close("keyboard")}),P(this,"handleClickOverlay",()=>{const{index:o}=this.state,{steps:l}=this.props;De(this.props,l[o]).disableOverlayClose||this.helpers.close("overlay")}),P(this,"syncState",o=>{this.setState(o)});const{debug:t,getHelpers:n,run:r=!0,stepIndex:i}=e;this.store=Ou({...e,controlled:r&&O.number(i)}),this.helpers=this.store.getHelpers();const{addListener:s}=this.store;Be({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),s(this.syncState),n&&n(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!Ee())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:i}=this.store;Ir(r,e)&&n&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!Ee())return;const{action:n,controlled:r,index:i,status:s}=this.state,{debug:o,run:l,stepIndex:c,steps:u}=this.props,{stepIndex:p,steps:d}=e,{reset:f,setSteps:m,start:h,stop:b,update:v}=this.store,{changed:S}=Tt(e,this.props),{changed:x,changedFrom:E}=Tt(t,this.state),C=De(this.props,u[i]),F=!ne(d,u),A=O.number(c)&&S("stepIndex"),D=Se(C.target);if(F&&(Ir(u,o)?m(u):console.warn("Steps are not valid",u)),S("run")&&(l?h(c):b()),A){let $=O.number(p)&&p<c?H.NEXT:H.PREV;n===H.STOP&&($=H.START),[W.FINISHED,W.SKIPPED].includes(s)||v({action:n===H.CLOSE?H.CLOSE:$,index:c,lifecycle:B.INIT})}!r&&s===W.RUNNING&&i===0&&!D&&(this.store.update({index:i+1}),this.callback({...this.state,type:ae.TARGET_NOT_FOUND,step:C}));const q={...this.state,index:i,step:C};if(x("action",[H.NEXT,H.PREV,H.SKIP,H.CLOSE])&&x("status",W.PAUSED)){const $=De(this.props,u[t.index]);this.callback({...q,index:t.index,lifecycle:B.COMPLETE,step:$,type:ae.STEP_AFTER})}if(x("status",[W.FINISHED,W.SKIPPED])){const $=De(this.props,u[t.index]);r||this.callback({...q,index:t.index,lifecycle:B.COMPLETE,step:$,type:ae.STEP_AFTER}),this.callback({...q,type:ae.TOUR_END,step:$,index:t.index}),f()}else E("status",[W.IDLE,W.READY],W.RUNNING)?this.callback({...q,type:ae.TOUR_START}):(x("status")||x("action",H.RESET))&&this.callback({...q,type:ae.TOUR_STATUS});this.scrollToStep(t)}componentWillUnmount(){const{disableCloseOnEsc:e}=this.props;e||document.body.removeEventListener("keydown",this.handleKeyboard)}scrollToStep(e){const{index:t,lifecycle:n,status:r}=this.state,{debug:i,disableScrollParentFix:s=!1,scrollDuration:o,scrollOffset:l=20,scrollToFirstStep:c=!1,steps:u}=this.props,p=De(this.props,u[t]),d=Se(p.target),f=xu({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:c,step:p,target:d});
59if(r===W.RUNNING&&f){const m=zt(d,s),h=dt(d,s);let b=Math.floor(hu(d,l,s))||0;Be({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const v=this.store.getPopper("beacon"),S=this.store.getPopper("tooltip");if(n===B.BEACON&&v){const{offsets:x,placement:E}=v;!["bottom"].includes(E)&&!m&&(b=Math.floor(x.popper.top-l))}else if(n===B.TOOLTIP&&S){const{flipped:x,offsets:E,placement:C}=S;["top","right","left"].includes(C)&&!x&&!m?b=Math.floor(E.popper.top-l):b-=p.spotlightPadding}b=b>=0?b:0,r===W.RUNNING&&mu(b,{element:h,duration:o}).then(()=>{setTimeout(()=>{var x;(x=this.store.getPopper("tooltip"))==null||x.instance.update()},10)})}}render(){if(!Ee())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:i=!1,nonce:s,scrollToFirstStep:o=!1,steps:l}=this.props,c=n===W.RUNNING,u={};if(c&&l[e]){const p=De(this.props,l[e]);u.step=g.createElement($u,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:s,shouldScroll:!p.disableScrolling&&(e!==0||o),step:p,store:this.store}),u.overlay=g.createElement(Ru,{id:"react-joyride-portal"},g.createElement(Au,{...p,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return g.createElement("div",{className:"react-joyride"},u.step,u.overlay)}};P(qi,"defaultProps",Nu);var zu=qi;const Wu={home:[{target:"body",content:"Welcome to the new NIB website! Let us show you around and help you find what you need.",placement:"center",disableBeacon:!0},{target:'[data-tour="main-nav"]',content:"This top navigation has three main sections: About Us (learn about NIB), Portals and Services (access your account), and Quick Links (online payments, publications, and more).",placement:"bottom"},{target:'[data-tour="secondary-nav"]',content:"This navigation bar gives you quick access to important topics: Registration, Benefits, Pensioners, Contributions, Forms, FAQs, and Contact.",placement:"bottom"},{target:'[data-tour="search-button"]',content:"Click here anytime to search for forms, services, or information.",placement:"bottom"},{target:'[data-tour="hero-carousel"]',content:"Check out the latest updates and important announcements here. The slides change automatically.",placement:"bottom"},{target:'[data-tour="video-spotlight"]',content:"Watch helpful videos about NIB services, how to apply for benefits, and more.",placement:"top"},{target:'[data-tour="whats-new"]',content:"See the latest news and announcements from NIB. Click any article to read more.",placement:"top"},{target:'[data-tour="upcoming-events"]',content:"Find out about upcoming events and services at NIB.",placement:"top"},{target:'[data-tour="footer"]',content:"The footer has quick links to News, Events, Gallery, Careers, Public Tenders, Publications, and more. You can also find our location, contact information, and social media links here.",placement:"top"}],benefits:[{target:"body",content:"This is where you can learn about all the benefits NIB offers to help you and your family.",placement:"center",disableBeacon:!0},{target:'[data-tour="benefits-categories"]',content:"Choose a category to see which benefits you might qualify for. Each card shows what's available in that group.",placement:"bottom"}],benefitsDetail:[{target:"body",content:"Here you can learn about specific benefits and how to apply for them.",placement:"center",disableBeacon:!0},{target:'[data-tour="benefits-list"]',content:"Click on any benefit to see who can apply and what you need.",placement:"right"},{target:'[data-tour="benefit-details"]',content:"This section shows you who can get this benefit and what documents you need to apply.",placement:"left"},{target:'[data-tour="downloads"]',content:"Download application forms and guides here.",placement:"top"},{target:'[data-tour="faqs"]',content:"Have questions? Check here for answers to common questions about these benefits.",placement:"top"}],news:[{target:"body",content:"Stay up to date with the latest news and announcements from NIB.",placement:"center",disableBeacon:!0},{target:'[data-tour="news-filters"]',content:"Use these options to search or filter news by category and date.",placement:"bottom"},{target:'[data-tour="news-grid"]',content:"Click any article to read the full story.",placement:"top"}],archive:[{target:"body",content:"Looking for older news? This is where you can find articles from previous years.",placement:"center",disableBeacon:!0},{target:'[data-tour="view-toggle"]',content:"Switch between grid view and timeline view to browse articles the way you prefer.",placement:"bottom"},{target:'[data-tour="archive-filters"]',content:"Filter by year or search for specific topics.",placement:"bottom"}],gallery:[{target:"body",content:"See photos from NIB events and activities in the community.",placement:"center",disableBeacon:!0},{target:'[data-tour="gallery-filters"]',content:"Search for specific events or filter by category.",placement:"bottom"},{target:'[data-tour="gallery-grid"]',content:"Click any gallery to view all photos from that event.",placement:"top"}],portals:[{target:"body",content:"These online portals let you manage your NIB account and submit information from home.",placement:"center",disableBeacon:!0},{target:'[data-tour="portal-cards"]',content:"Choose the portal that matches your needs - individuals, employers, or those needing to renew their card.",placement:"bottom"},{target:'[data-tour="ess-portal"]',content:"Employers use this portal to register employees, file contribution statements, and make payments.",placement:"top"},{target:'[data-tour="rss-portal"]',content:"Individuals can view their contribution history, apply for benef
59its, and manage their personal details here.",placement:"top"},{target:'[data-tour="c10-portal"]',content:"Our mobile app gives you convenient access to your NIB account, benefit notifications, and contribution reminders.",placement:"top"},{target:'[data-tour="ez-portal"]',content:"Use this portal to renew your NIB smart card easily.",placement:"top"}],contact:[{target:"body",content:"Need to get in touch? Here's how you can reach us.",placement:"center",disableBeacon:!0},{target:'[data-tour="contact-info"]',content:"Find our phone numbers, email, and office locations here.",placement:"bottom"},{target:'[data-tour="contact-form"]',content:"Or send us a message directly using this form.",placement:"top"}],faq:[{target:"body",content:"Have questions? You might find the answer here!",placement:"center",disableBeacon:!0},{target:'[data-tour="faq-categories"]',content:"Browse questions by topic to find what you need. Click any question to see the answer.",placement:"bottom"}],forms:[{target:"body",content:"All NIB forms are available here for download.",placement:"center",disableBeacon:!0},{target:'[data-tour="forms-categories"]',content:"Forms are organized by category to help you find what you need quickly.",placement:"bottom"},{target:'[data-tour="forms-search"]',content:"Know the form name? Search for it here.",placement:"bottom"}],publications:[{target:"body",content:"Read NIB's reports, policy documents, and other publications.",placement:"center",disableBeacon:!0},{target:'[data-tour="pub-categories"]',content:"Publications are grouped by type - annual reports, policies, newsletters, and more.",placement:"bottom"},{target:'[data-tour="pub-search"]',content:"Search for specific publications by name or topic.",placement:"bottom"},{target:'[data-tour="pub-grid"]',content:"Click any publication to read it online or download a copy.",placement:"top"}],careers:[{target:"body",content:"Interested in working at NIB? See current job openings here.",placement:"center",disableBeacon:!0},{target:'[data-tour="how-to-apply"]',content:"Learn how to download job descriptions and submit your application by the deadline.",placement:"bottom"},{target:'[data-tour="job-listings"]',content:'Browse available positions. Click "Download" to view the full job description and requirements.',placement:"bottom"}],tenders:[{target:"body",content:"Businesses can find NIB's requests for proposals and tender opportunities here.",placement:"center",disableBeacon:!0},{target:'[data-tour="tender-requirements"]',content:"Learn how to submit your proposal via email and review the submission requirements.",placement:"bottom"},{target:'[data-tour="active-tenders"]',content:"These are the currently open tenders. Download the documents and check the closing dates carefully.",placement:"bottom"}],about:[{target:"body",content:"Learn about NIB's history, mission, and the people who lead the organization. Use the navigation menu on the left to explore different sections: Vision & Mission, History, Minister's Bio, Board Members, Executive Management, and Finance.",placement:"center",disableBeacon:!0}],contributions:[{target:"body",content:"Understand how NIB contributions work and what rates apply to you.",placement:"center",disableBeacon:!0},{target:'[data-tour="contribution-rates"]',content:"See the current contribution rates for employees, employers, and self-employed persons.",placement:"bottom"},{target:'[data-tour="how-it-works"]',content:"Learn how your contributions build toward your future benefits.",placement:"bottom"},{target:'[data-tour="payment-methods"]',content:"Find out how to make contributions and payment options available.",placement:"top"}],registration:[{target:"body",content:"Register with NIB to start building your benefits. It's required for all workers in The Bahamas.",placement:"center",disableBeacon:!0},{target:'[data-tour="registration-tabs"]',content:"Use this sidebar to navigate between different registration topics and resources.",placement:"right"},{target:'[data-tour="requirements"]',content:"This shows what documents you need to bring for registration.",placement:"top"},{target:'[data-tour="process-steps"]',content:"Follow these steps to submit your documents and complete your registration.",placement:"top"}],pensioners:[{target:"body",content:"If you're receiving a pension from NIB, here's important information for you. Use the navigation menu on the left to learn about the annual verification process and find out which officials can verify your form.",placement:"center",disableBeacon:!0}],calculator:[{target:"body",content:"Use this tool to estimate how much you might receive from different NIB benefits.",placement:"center",disableBeacon:!0},{target:'[data-tour="calculator-select"]',content:"First, choose which benefit you want to calculate.",placement:"bottom"},{target:'[data-tour="calculator-inputs"]',content:"Enter your information here. The calculator will show you an estimate.",placement:"left"},{target:'[data-tour="calculator-results"]',content:"Your estimated benefit amount will appear here. Remember, this is just an estimate!",placement:"left"}],events:[{target:"body",content:"See all NIB events, services, and important dates in one place.",placement:"center",disableBeacon:!0},{target:'[data-tour="calendar-view"]',content:"Browse events by month, week, or day. Click any event on the calendar to see more details.",placement:"bottom"}]},Vu=[{target:"body",content:"Welcome to the NIB website! Use the menu at the top to explore different sections.",placement:"center",disableBeacon:!0},{target:'[data-tour="main-nav"]',content:"The navigation menu helps you find benefits, news, portals, and more.",placement:"bottom"},{target:'[data-tour="search-button"]',content:"Use the search feature to quickly find what you're looking for.",placement:"bottom"}],Gi=g.createContext();function Uu(){const e=g.useContext(Gi);if(!e)throw new Error("useTour must be used within TourProvider");return e}function Hu({children:e}){const[t,n]=g.useState(!1),[r,i]=g.useState([]),[s,o]=g.useState(0),l=()=>{try{return localStorage.getItem("nib-tour-completed")==="true"}catch{return!1}},c=()=>{try{localStorage.setItem("nib-tour-completed","true")}catch(h){console.error("Failed to save tour completion status:",h)}},u=()=>{try{localStorage.removeItem("nib-tour-completed")}catch(h){console.error("Failed to reset tour:",h)}},p=g.useCallback((h="default")=>{const b=Wu[h]||Vu;i(b),o(0),n(!0)},[]),d=g.useCallback(()=>{n(!1)},[]),f=g.useCallback(h=>{const{action:b,index:v,status:S,type:x}=h;[ae.STEP_AFTER,ae.TARGET_NOT_FOUND].includes(x)?o(v+(b===H.PREV?-1:1)):[W.FINISHED,W.SKIPPED].includes(S)&&(n(!1),c())},[]);g.useEffect(()=>{},[p]);const m={startTour:p,stopTour:d,resetTour:u,hasCompletedTour:l,isRunning:t};return a.jsxs(Gi.Provider,{value:m,children:[e,a.jsx(zu,{steps:r,run:t,stepIndex:s,continuous:!0,showProgress:!0,showSkipButton:!0,scrollToFirstStep:!0,scrollOffset:100,disableScrolling:!1,callback:f,styles:{options:{primaryColor:"#0A2F
595C",textColor:"#334155",backgroundColor:"#ffffff",arrowColor:"#ffffff",overlayColor:"rgba(0, 0, 0, 0.5)",zIndex:1e4},tooltip:{borderRadius:"16px",fontSize:"15px",padding:"24px",boxShadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)",border:"1px solid rgba(10, 47, 92, 0.1)"},tooltipTitle:{fontSize:"18px",fontWeight:"700",color:"#0A2F5C",marginBottom:"8px"},tooltipContent:{fontSize:"14px",lineHeight:"1.6"},buttonNext:{backgroundColor:"#0A2F5C",borderRadius:"9999px",fontSize:"14px",fontWeight:"600",padding:"10px 24px",boxShadow:"0 4px 6px -1px rgba(10, 47, 92, 0.2)",transition:"all 0.2s"},buttonBack:{color:"#0A2F5C",marginRight:"12px",fontWeight:"500"},buttonSkip:{color:"#64748b",fontSize:"13px"},spotlight:{borderRadius:"12px"},beacon:{inner:"#fcb762",outer:"rgba(252, 183, 98, 0.3)"}},locale:{back:"Back",close:"Close",last:"Finish",next:"Next",skip:"Skip Tour"}})]})}const Ki="/assets/logo-BS53ePO-.png";function Y(...e){return e.filter(Boolean).join(" ")}function qu(){const[e,t]=g.useState(!1),[n,r]=g.useState(null),[i,s]=g.useState(null),[o,l]=g.useState(!1),{locale:c,changeLocale:u,supportedLanguages:p}=wn(),{startTour:d}=Uu(),{t:f}=Zr(),m=g.useRef(null),h=_s(),b=window.location,v=p.map(w=>({...w,short:w.code.toUpperCase()}));(v.find(w=>w.code===c)||v[0]).short,g.useEffect(()=>{function w($){m.current&&!m.current.contains($.target)&&s(null)}return document.addEventListener("click",w),()=>document.removeEventListener("click",w)},[]);const x=g.useCallback(w=>{s($=>$===w?null:w)},[]),E=g.useCallback(()=>t(!1),[]),C=g.useCallback(()=>s(null),[]),F=g.useCallback(()=>l(!0),[]),A=g.useCallback(()=>l(!1),[]),D=g.useCallback(w=>{l(!1),h(w)},[h]),q=g.useCallback(()=>{const w=b.pathname;w==="/"||w==="/home"?d("home"):w==="/benefits/overview"||w==="/benefits"?d("benefits"):w.startsWith("/benefits/long-term")||w.startsWith("/benefits/short-term")||w.startsWith("/benefits/industrial")||w.startsWith("/benefits/assistance")?d("benefitsDetail"):w==="/benefits/calculator"?d("calculator"):w==="/news"?d("news"):w==="/archive"?d("archive"):w==="/gallery"?d("gallery"):w==="/portals"?d("portals"):w==="/contact"?d("contact"):w==="/faq"?d("faq"):w==="/forms"?d("forms"):w==="/publications"?d("publications"):w==="/careers"?d("careers"):w==="/public-tenders"?d("tenders"):w==="/about"?d("about"):w==="/contributions"?d("contributions"):w.startsWith("/registration")?d("registration"):d(w==="/pensioners"?"pensioners":w==="/events"?"events":"home")},[b.pathname,d]);return a.jsxs("header",{ref:m,className:"bg-[#0A2F5C] text-white relative z-50 overflow-visible",children:[a.jsx("div",{className:"px-4 sm:px-6 py-1 relative z-[80]","data-tour":"main-nav",children:a.jsxs("div",{className:"flex items-center justify-between h-16 max-w-[1200px] mx-auto w-full",children:[a.jsx(Z,{to:"/","aria-label":"NIB Bahamas home",className:"flex items-center gap-2",children:a.jsx("img",{src:Ki,alt:"NIB logo",className:"h-12 w-auto object-contain"})}),a.jsxs("nav",{className:"hidden md:flex absolute left-1/2 -translate-x-1/2 space-x-8 text-lg font-semibold h-full",children:[a.jsx(j,{to:"/about",onClick:C,className:({isActive:w})=>Y("px-3 flex items-center hover:bg-[#2a4d7d] rounded-md transition",w&&"bg-[#2a4d7d]"),children:f("nav.about")}),a.jsx(j,{to:"/portals",onClick:C,className:({isActive:w})=>Y("px-3 flex items-center hover:bg-[#2a4d7d] rounded-md transition",w&&"bg-[#2a4d7d]"),children:f("nav.portals")}),a.jsxs("div",{className:"relative flex items-center",children:[a.jsxs("button",{onClick:()=>x("quicklinks"),className:Y("px-3 flex items-center gap-1 hover:bg-[#2a4d7d] rounded-md transition h-full",i==="quicklinks"&&"bg-[#2a4d7d]"),children:[f("nav.quickLinks"),a.jsx(je,{className:Y("h-4 w-4 transition-transform",i==="quicklinks"&&"rotate-180")})]}),i==="quicklinks"&&a.jsxs("div",{className:"absolute top-full left-0 bg-white shadow border mt-1 w-48 z-[70] text-[#0A2F5C]",children:[a.jsx("a",{href:"/uploads/RBC_Online_2012_cbcb028300.pdf",target:"_blank",rel:"noopener noreferrer",onClick:C,className:"block px-4 py-2 hover:bg-[#ffebbb]",children:f("quickLinks.onlinePayments")}),a.jsx(j,{to:{pathname:"/publications",search:`?category=${encodeURIComponent("Acts & Regulations")}`},onClick:C,className:({isActive:w})=>Y("block px-4 py-2 hover:bg-[#ffebbb]",w&&"font-semibold"),children:f("quickLinks.actsAndRegulations")}),a.jsx(j,{to:{pathname:"/publications",search:`?category=${encodeURIComponent("Actuarial Reviews")}`},onClick:C,className:({isActive:w})=>Y("block px-4 py-2 hover:bg-[#ffebbb]",w&&"font-semibold"),children:f("quickLinks.actuarialReviews")}),a.jsx(j,{to:"/public-tenders",onClick:C,className:({isActive:w})=>Y("block px-4 py-2 hover:bg-[#ffebbb]",w&&"font-semibold"),children:f("quickLinks.publicTenders")}),a.jsx(j,{to:"/public-proposals",onClick:C,className:({isActive:w})=>Y("block px-4 py-2 hover:bg-[#ffebbb]",w&&"font-semibold"),children:f("quickLinks.requestForProposals")}),a.jsx("a",{href:"https://www.nibrateincrease.com/",target:"_blank",rel:"noopener noreferrer",onClick:C,className:"block px-4 py-2 hover:bg-[#ffebbb]",children:f("quickLinks.nibRateIncrease")}),a.jsx(j,{to:"/sitemap",onClick:C,className:({isActive:w})=>Y("block px-4 py-2 hover:bg-[#ffebbb]",w&&"font-semibold"),children:f("quickLinks.siteMap")})]})]})]}),a.jsx("button",{className:"md:hidden p-1 rounded hover:bg-white/10","aria-label":"Toggle menu",onClick:()=>t(w=>!w),children:e?a.jsx(ft,{className:"h-6 w-6 text-white"}):a.jsx(Hs,{className:"h-6 w-6 text-white"})}),a.jsxs("div",{className:"hidden md:flex items-center gap-4 relative",children:[!1,a.jsx("div",{className:"h-6 w-px bg-white opacity-50"}),a.jsx("button",{onClick:F,className:"hover:bg-[#2a4d7d] rounded-md p-1","aria-label":"Open site search","data-tour":"search-button",children:a.jsx(en,{className:"h-6 w-6 text-white"})}),a.jsx("button",{onClick:q,className:"hover:bg-[#2a4d7d] rounded-md p-1","aria-label":"Start website tour",title:"Need help? Take a quick tour",children:a.jsx(Bn,{className:"h-6 w-6 text-white"})})]})]})}
59),e&&a.jsxs("div",{className:"md:hidden bg-[#0A2F5C] px-4 py-4 space-y-4",children:[a.jsxs("ul",{className:"space-y-2",children:[a.jsx("li",{children:a.jsx(j,{to:"/about",onClick:E,className:"block py-2 px-3 rounded hover:bg-white/20 transition",children:f("nav.about")})}),a.jsx("li",{children:a.jsx(j,{to:"/portals",onClick:E,className:"block py-2 px-3 rounded hover:bg-white/20 transition",children:f("nav.portals")})}),a.jsxs("li",{children:[a.jsxs("button",{onClick:()=>r(w=>w==="quicklinks"?null:"quicklinks"),className:"w-full flex items-center justify-between py-2 px-3 rounded hover:bg-white/20 transition text-left","aria-expanded":n==="quicklinks","aria-controls":"mobile-quicklinks-sub",children:[a.jsx("span",{children:f("nav.quickLinks")}),a.jsx(je,{className:`w-5 h-5 transition-transform ${n==="quicklinks"?"rotate-180":""}`})]}),a.jsx("div",{id:"mobile-quicklinks-sub",className:`overflow-hidden transition-[max-height,opacity] duration-200 ${n==="quicklinks"?"max-h-96 opacity-100":"max-h-0 opacity-0"}`,children:a.jsxs("ul",{className:"mt-1 ml-3 space-y-1 rounded",children:[a.jsx("li",{children:a.jsx("a",{href:"/uploads/RBC_Online_2012_cbcb028300.pdf",target:"_blank",rel:"noopener noreferrer",onClick:E,className:"block py-2 px-3 rounded hover:bg-white/20 transition",children:f("quickLinks.onlinePayments")})}),a.jsx("li",{children:a.jsx(j,{to:{pathname:"/publications",search:`?category=${encodeURIComponent("Acts & Regulations")}`},onClick:E,className:"block py-2 px-3 rounded hover:bg-white/20 transition",children:f("quickLinks.actsAndRegulations")})}),a.jsx("li",{children:a.jsx(j,{to:{pathname:"/publications",search:`?category=${encodeURIComponent("Actuarial Reviews")}`},onClick:E,className:"block py-2 px-3 rounded hover:bg-white/20 transition",children:f("quickLinks.actuarialReviews")})}),a.jsx("li",{children:a.jsx(j,{to:"/public-tenders",onClick:E,className:"block py-2 px-3 rounded hover:bg-white/20 transition",children:f("quickLinks.publicTenders")})}),a.jsx("li",{children:a.jsx(j,{to:"/public-proposals",onClick:E,className:"block py-2 px-3 rounded hover:bg-white/20 transition",children:f("quickLinks.requestForProposals")})}),a.jsx("li",{children:a.jsx("a",{href:"https://www.nibrateincrease.com/",target:"_blank",rel:"noopener noreferrer",onClick:E,className:"block py-2 px-3 rounded hover:bg-white/20 transition",children:f("quickLinks.nibRateIncrease")})}),a.jsx("li",{children:a.jsx(j,{to:"/sitemap",onClick:E,className:"block py-2 px-3 rounded hover:bg-white/20 transition",children:f("quickLinks.siteMap")})})]})})]})]}),a.jsx("div",{className:"border-t border-white/30"}),a.jsxs("ul",{className:"space-y-2",children:[a.jsxs("li",{children:[a.jsxs("button",{onClick:()=>r(w=>w==="registration"?null:"registration"),className:"w-full flex items-center justify-between py-2 px-3 rounded hover:bg-white/20 transition text-left","aria-expanded":n==="registration","aria-controls":"mobile-registration-sub",children:[a.jsx("span",{children:f("nav.registration")}),a.jsx(je,{className:`w-5 h-5 transition-transform ${n==="registration"?"rotate-180":""}`})]}),a.jsx("div",{id:"mobile-registration-sub",className:`overflow-hidden transition-[max-height,opacity] duration-200 ${n==="registration"?"max-h-40 opacity-100":"max-h-0 opacity-0"}`,children:a.jsxs("ul",{className:"mt-1 ml-3 space-y-1 bg-white/05 rounded",children:[a.jsx("li",{children:a.jsx(j,{to:"/registration/individual",onClick:E,className:"block py-2 px-3 rounded hover:bg-white/20 transition",children:f("registration.individual")})}),a.jsx("li",{children:a.jsx(j,{to:"/registration/business",onClick:E,className:"block py-2 px-3 rounded hover:bg-white/20 transition",children:f("registration.business")})})]})})]}),a.jsxs("li",{children:[a.jsxs("button",{onClick:()=>r(w=>w==="benefits"?null:"benefits"),className:"w-full flex items-center justify-between py-2 px-3 rounded hover:bg:white/20 transition text-left","aria-expanded":n==="benefits","aria-controls":"mobile-benefits-sub",children:[a.jsx("span",{children:f("nav.benefits")}),a.jsx(je,{className:`w-5 h-5 transition-transform ${n==="benefits"?"rotate-180":""}`})]}),a.jsx("div",{id:"mobile-benefits-sub",className:`transition-[max-height,opacity] duration-200 ${n==="benefits"?"max-h-[70vh] opacity-100 overflow-auto":"max-h-0 opacity-0 overflow-hidden"}`,children:a.jsxs("div",{className:"mt-1 ml-3 grid grid-cols-1 gap-1 bg-white/05 rounded",children:[a.jsx(j,{to:"/benefits/overview",onClick:()=>t(!1),className:"block py-2 px-3 rounded hover:bg-white/20 transition",children:f("benefits.learnMore")}),a.jsx(j,{to:"/benefits/calculator",onClick:()=>t(!1),className:"block py-2 px-3 rounded hover:bg-white/20 transition",children:f("benefits.calculator")}),a.jsx(j,{to:"/faq#benefits",onClick:()=>t(!1),className:"block py-2 px-3 rounded hover:bg-white/20 transition",children:f("benefits.faqs")}),a.jsx("div",{className:"border-t border-white/20 mx-3 my-1"}),a.jsx("span",{className:"px-3 pt-1 text-xs opacity-80",children:f("benefits.longTermTitle")}),a.jsx(j,{to:"/benefits/long-term#retirement-benefit",onClick:()=>t(!1),className:"block py-2 px-3 rounded hover:bg-white/20 transition",children:f("benefits.retirementBenefit")}),a.jsx(j,{to:"/benefits/long-term#retirement-grant",onClick:()=>t(!1),className:"block py-2 px-3 rounded hover:bg-white/20 transition",children:f("benefits.retirementGrant")}
59),a.jsx(j,{to:"/benefits/long-term#invalidity-benefit",onClick:()=>t(!1),className:"block py-2 px-3 rounded hover:bg:white/20 transition",children:f("benefits.invalidityBenefit")}),a.jsx(j,{to:"/benefits/long-term#survivors-benefit",onClick:()=>t(!1),className:"block py-2 px-3 rounded hover:bg:white/20 transition",children:f("benefits.survivorsBenefit")}),a.jsx(j,{to:"/benefits/long-term#survivors-grant",onClick:()=>t(!1),className:"block py-2 px-3 rounded hover:bg:white/20 transition",children:f("benefits.survivorsGrant")}),a.jsx("div",{className:"border-t border-white/20 mx-3 my-1"}),a.jsx("span",{className:"px-3 pt-1 text-xs opacity-80",children:f("benefits.shortTermTitle")}),a.jsx(j,{to:"/benefits/short-term#unemployment-benefit",onClick:()=>t(!1),className:"block py-2 px-3 rounded hover:bg-white/20 transition",children:f("benefits.unemploymentBenefit")}),a.jsx(j,{to:"/benefits/short-term#funeral-benefit",onClick:()=>t(!1),className:"block py-2 px-3 rounded hover:bg-white/20 transition",children:f("benefits.funeralBenefit")}),a.jsx(j,{to:"/benefits/short-term#maternity-benefit",onClick:()=>t(!1),className:"block py-2 px-3 rounded hover:bg-white/20 transition",children:f("benefits.maternityBenefit")}),a.jsx(j,{to:"/benefits/short-term#maternity-grant",onClick:()=>t(!1),className:"block py-2 px-3 rounded hover:bg-white/20 transition",children:f("benefits.maternityGrant")}),a.jsx(j,{to:"/benefits/short-term#sickness-benefit",onClick:()=>t(!1),className:"block py-2 px-3 rounded hover:bg-white/20 transition",children:f("benefits.sicknessBenefit")}),a.jsx("div",{className:"border-t border-white/20 mx-3 my-1"}),a.jsx("span",{className:"px-3 pt-1 text-xs opacity-80",children:f("benefits.industrialTitle")}),a.jsx(j,{to:"/benefits/industrial#injury-benefit",onClick:()=>t(!1),className:"block py-2 px-3 rounded hover:bg-white/20 transition",children:f("benefits.injuryBenefit")}),a.jsx(j,{to:"/benefits/industrial#disablement-benefit",onClick:()=>t(!1),className:"block py-2 px-3 rounded hover:bg-white/20 transition",children:f("benefits.disablementBenefit")}),a.jsx(j,{to:"/benefits/industrial#death-benefit",onClick:()=>t(!1),className:"block py-2 px-3 rounded hover:bg-white/20 transition",children:f("benefits.deathBenefit")}),a.jsx(j,{to:"/benefits/industrial#industrial-funeral-benefit",onClick:()=>t(!1),className:"block py-2 px-3 rounded hover:bg-white/20 transition",children:f("benefits.industrialFuneralBenefit")}),a.jsx("div",{className:"border-t border-white/20 mx-3 my-1"}),a.jsx("span",{className:"px-3 pt-1 text-xs opacity-80",children:f("benefits.assistancePayments")}),a.jsx(j,{to:"/benefits/assistance-payments#old-age-pension",onClick:()=>t(!1),className:"block py-2 px-3 rounded hover:bg-white/20 transition",children:f("benefits.oldAgePension")}),a.jsx(j,{to:"/benefits/assistance-payments#survivors-assistance",onClick:()=>t(!1),className:"block py-2 px-3 rounded hover:bg-white/20 transition",children:f("benefits.survivorsAssistance")}),a.jsx(j,{to:"/benefits/assistance-payments#sickness-assistance",onClick:()=>t(!1),className:"block py-2 px-3 rounded hover:bg-white/20 transition",children:f("benefits.sicknessAssistance")}),a.jsx(j,{to:"/benefits/assistance-payments#invalidity-assistance",onClick:()=>t(!1),className:"block py-2 px-3 rounded hover:bg-white/20 transition",children:f("benefits.invalidityAssistance")})]})})]}),a.jsxs("li",{children:[a.jsxs("button",{onClick:()=>r(w=>w==="pensioners"?null:"pensioners"),className:"w-full flex items-center justify-between py-2 px-3 rounded hover:bg:white/20 transition text-left","aria-expanded":n==="pensioners","aria-controls":"mobile-pensioners-sub",children:[a.jsx("span",{children:f("nav.pensioners")}),a.jsx(je,{className:`w-5 h-5 transition-transform ${n==="pensioners"?"rotate-180":""}`})]}),a.jsx("div",{id:"mobile-pensioners-sub",className:`overflow-hidden transition-[max-height,opacity] duration-200 ${n==="pensioners"?"max-h-60 opacity-100":"max-h-0 opacity-0"}`,children:a.jsxs("ul",{className:"mt-1 ml-3 space-y-1 bg-white/05 rounded",children:[a.jsx("li",{children:a.jsx(j,{to:"/pensioners#how",onClick:E,className:"block py-2 px-3 rounded hover:bg:white/20 transition",children:f("pensioners.howToVerify")})}),a.jsx("li",{children:a.jsx(j,{to:"/pensioners#who",onClick:E,className:"block py-2 px-3 rounded hover:bg:white/20 transition",children:f("pensioners.whoCanVerify")})}),a.jsx("li",{children:a.jsx(j,{to:"/pensioners#payment-dates",onClick:E,className:"block py-2 px-3 rounded hover:bg:white/20 transition",children:f("pensioners.paymentDates")})})]})})]}),a.jsx("li",{children:a.jsx(j,{to:"/contributions",onClick:()=>t(!1),className:"block py-2 px-3 rounded hover:bg:white/20 transition",children:f("nav.contributions","Contributions")})}),a.jsx("li",{children:a.jsx(j,{to:"/forms",onClick:()=>t(!1),className:"block py-2 px-3 rounded hover:bg:white/20 transition",children:f("nav.forms")})}),a.jsx("li",{children:a.jsx(j,{to:"/faq",onClick:()=>t(!1),className:"block py-2 px-3 rounded hover:bg:white/20 transition",children:f("nav.faq")})}),a.jsx("li",{children:a.jsx(j,{to:"/contact",onClick:()=>t(!1),className:"block py-2 px-3 rounded hover:bg:white/20 transition",children:f("nav.contact")})})]}),a.jsx("div",{className:"border-t border-white/30 pt-4"}),a.jsxs("ul",{className:"space-y-2",children:[a.jsx("li",{children:a.jsxs("button",{onClick:()=>{t(!1),F()},className:"w-full flex items-center gap-3 py-2 px-3 rounded hover:bg-white/20 transition text-left",children:[a.jsx(en,{className:"h-5 w-5"}),a.jsx("span",{children:f("common.search")})]})}),!1,a.jsx("li",{children:a.jsxs("button",{onClick:()=>{t(!1),q()},className:"w-full flex items-center gap-3 py-2 px-3 rounded hover:bg-white/20 transition text-left",children:[a.jsx(Bn,{className:"h-5 w-5"}),a.jsx("span",{children:f("header.helpTour")})]})})]})]}),a.jsx("div",{className:"h-2 sm:h-3 bg-[#fcb762] relative z-0"}),a.jsx("div",{className:"bg-white text-[#0A2F5C] relative z-10 hidden md:block overflow-visible border-b border-[#51427
59514]","data-tour":"secondary-nav",children:a.jsxs("div",{className:"max-w-[1200px] mx-auto w-full px-4 sm:px-6",children:[a.jsx("nav",{className:"relative z-20 overflow-visible",children:a.jsxs("ul",{className:"flex items-stretch justify-center h-14 gap-0 text-lg font-semibold",children:[a.jsxs("li",{className:"relative",children:[a.jsxs("button",{onClick:()=>s(i==="registration"?null:"registration"),className:Y("px-4 h-full flex items-center transition-colors ",i==="registration"?"bg-[#FFBE1E]/30":"hover:bg-[#FFBE1E]/20"),children:[f("nav.registration"),a.jsx(je,{className:Y("ml-2 w-4 h-4 transition-transform",i==="registration"&&"rotate-180")})]}),i==="registration"&&a.jsxs("div",{className:"absolute top-full left-0 bg-white shadow border  mt-1 w-48 z-[70] text-[#0A2F5C]",children:[a.jsx(j,{to:"/registration/individual",onClick:C,className:({isActive:w})=>Y("block px-4 py-2 hover:bg-[#ffebbb]",w&&"font-semibold"),children:f("registration.individual")}),a.jsx(j,{to:"/registration/business",onClick:C,className:({isActive:w})=>Y("block px-4 py-2 hover:bg-[#ffebbb]",w&&"font-semibold"),children:f("registration.business")})]})]}),a.jsx("li",{className:"relative",children:a.jsxs("button",{onClick:()=>s(i==="benefits"?null:"benefits"),className:Y("px-4 h-full flex items-center transition-colors ",i==="benefits"?"bg-[#FFBE1E]/30":"hover:bg-[#FFBE1E]/20"),children:[f("nav.benefits"),a.jsx(je,{className:Y("ml-2 w-4 h-4 transition-transform",i==="benefits"&&"rotate-180")})]})}),a.jsxs("li",{className:"relative",children:[a.jsxs("button",{onClick:()=>s(i==="pensioners"?null:"pensioners"),className:Y("px-4 h-full flex items-center transition-colors ",i==="pensioners"?"bg-[#FFBE1E]/30":"hover:bg-[#FFBE1E]/20"),children:[f("nav.pensioners"),a.jsx(je,{className:Y("ml-2 w-4 h-4 transition-transform",i==="pensioners"&&"rotate-180")})]}),i==="pensioners"&&a.jsxs("div",{className:"absolute top-full left-0 bg-white shadow border  mt-1 w-56 z-[70] text-[#0A2F5C]",children:[a.jsx(j,{to:"/pensioners#how",onClick:()=>s(null),className:({isActive:w})=>Y("block px-4 py-2 hover:bg-[#ffebbb]",w&&"font-semibold"),children:f("pensioners.howToVerify")}),a.jsx(j,{to:"/pensioners#who",onClick:()=>s(null),className:({isActive:w})=>Y("block px-4 py-2 hover:bg-[#ffebbb]",w&&"font-semibold"),children:f("pensioners.whoCanVerify")}),a.jsx(j,{to:"/pensioners#payment-dates",onClick:()=>s(null),className:({isActive:w})=>Y("block px-4 py-2 hover:bg-[#ffebbb]",w&&"font-semibold"),children:f("pensioners.paymentDates")})]})]}),a.jsx("li",{children:a.jsx(j,{to:"/contributions",onClick:()=>s(null),className:({isActive:w})=>Y("px-4 h-full flex items-center transition-colors hover:bg-[#FFBE1E]/20 ",w&&"bg-[#FFBE1E]/30"),children:f("nav.contributions","Contributions")})}),a.jsx("li",{children:a.jsx(j,{to:"/forms",onClick:()=>s(null),className:({isActive:w})=>Y("px-4 h-full flex items-center transition-colors hover:bg-[#FFBE1E]/20 ",w&&"bg-[#FFBE1E]/30"),children:f("nav.forms")})}),a.jsx("li",{children:a.jsx(j,{to:"/faq",onClick:()=>s(null),className:({isActive:w})=>Y("px-4 h-full flex items-center transition-colors hover:bg-[#FFBE1E]/20 ",w&&"bg-[#FFBE1E]/30"),children:f("nav.faq")})}),a.jsx("li",{children:a.jsx(j,{to:"/contact",onClick:()=>s(null),className:({isActive:w})=>Y("px-4 h-full flex items-center transition-colors hover:bg-[#FFBE1E]/20 ",w&&"bg-[#FFBE1E]/30"),children:f("nav.contact")})})]})}),i==="benefits"&&a.jsxs("div",{className:"absolute left-0 right-0 top-full z-[80] overflow-hidden",style:{background:"linear-gradient(180deg, #FFF3CC 0%, #FFFFFF 60%)"},children:[a.jsx("div",{className:"pointer-events-none absolute inset-0 opacity-[0.12]",style:{backgroundImage:"radial-gradient(#FFBE1E 0.5px, transparent 0.5px)",backgroundSize:"14px 14px",backgroundPosition:"0 0"}}),a.jsx("div",{className:"relative mx-auto max-w-[1200px] px-6 py-8",children:a.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-5 gap-6 text-[#0A2F5C] text-sm",children:[a.jsxs("div",{children:[a.jsx("h4",{className:"font-bold mb-2",children:f("nav.benefits")}),a.jsxs("ul",{className:"space-y-1",children:[a.jsx("li",{children:a.jsx(j,{to:"/benefits/overview",onClick:()=>s(null),className:"hover:underline block",children:f("benefits.learnMore")})}),a.jsx("li",{children:a.jsx(j,{to:"/benefits/calculator",onClick:()=>s(null),className:"hover:underline block",children:f("benefits.calculator")})}),a.jsx("li",{children:a.jsx(j,{to:"/faq#benefits",onClick:()=>s(null),className:"hover:underline block",children:f("benefits.faqs")})})]})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-bold mb-2",children:a.jsx(j,{to:"/benefits/long-term",onClick:()=>s(null),className:"hover:text-nibGold transition-colors",children:f("benefits.longTermTitle")})}),a.jsxs("ul",{className:"space-y-1",children:[a.jsx("li",{children:a.jsx(j,{to:"/benefits/long-term#retirement-benefit",onClick:()=>s(null),className:"hover:underline block",children:f("benefits.retirementBenefit")})}),a.jsx("li",{children:a.jsx(j,{to:"/benefits/long-term#retirement-grant",onClick:()=>s(null),className:"hover:underline block",children:f("benefits.retirementGrant")})}
59),a.jsx("li",{children:a.jsx(j,{to:"/benefits/long-term#invalidity-benefit",onClick:()=>s(null),className:"hover:underline block",children:f("benefits.invalidityBenefit")})}),a.jsx("li",{children:a.jsx(j,{to:"/benefits/long-term#survivors-benefit",onClick:()=>s(null),className:"hover:underline block",children:f("benefits.survivorsBenefit")})}),a.jsx("li",{children:a.jsx(j,{to:"/benefits/long-term#survivors-grant",onClick:()=>s(null),className:"hover:underline block",children:f("benefits.survivorsGrant")})})]})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-bold mb-2",children:a.jsx(j,{to:"/benefits/short-term",onClick:()=>s(null),className:"hover:text-nibGold transition-colors",children:f("benefits.shortTermTitle")})}),a.jsxs("ul",{className:"space-y-1",children:[a.jsx("li",{children:a.jsx(j,{to:"/benefits/short-term#unemployment-benefit",onClick:()=>s(null),className:"hover:underline block",children:f("benefits.unemploymentBenefit")})}),a.jsx("li",{children:a.jsx(j,{to:"/benefits/short-term#funeral-benefit",onClick:()=>s(null),className:"hover:underline block",children:f("benefits.funeralBenefit")})}),a.jsx("li",{children:a.jsx(j,{to:"/benefits/short-term#maternity-benefit",onClick:()=>s(null),className:"hover:underline block",children:f("benefits.maternityBenefit")})}),a.jsx("li",{children:a.jsx(j,{to:"/benefits/short-term#maternity-grant",onClick:()=>s(null),className:"hover:underline block",children:f("benefits.maternityGrant")})}),a.jsx("li",{children:a.jsx(j,{to:"/benefits/short-term#sickness-benefit",onClick:()=>s(null),className:"hover:underline block",children:f("benefits.sicknessBenefit")})})]})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-bold mb-2",children:a.jsx(j,{to:"/benefits/industrial",onClick:()=>s(null),className:"hover:text-nibGold transition-colors",children:f("benefits.industrialTitle")})}),a.jsxs("ul",{className:"space-y-1",children:[a.jsx("li",{children:a.jsx(j,{to:"/benefits/industrial#injury-benefit",onClick:()=>s(null),className:"hover:underline block",children:f("benefits.injuryBenefit")})}),a.jsx("li",{children:a.jsx(j,{to:"/benefits/industrial#disablement-benefit",onClick:()=>s(null),className:"hover:underline block",children:f("benefits.disablementBenefit")})}),a.jsx("li",{children:a.jsx(j,{to:"/benefits/industrial#death-benefit",onClick:()=>s(null),className:"hover:underline block",children:f("benefits.deathBenefit")})}),a.jsx("li",{children:a.jsx(j,{to:"/benefits/industrial#industrial-funeral-benefit",onClick:()=>s(null),className:"hover:underline block",children:f("benefits.industrialFuneralBenefit")})})]})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-bold mb-2",children:a.jsx(j,{to:"/benefits/assistance-payments",onClick:()=>s(null),className:"hover:text-nibGold transition-colors",children:f("benefits.assistancePayments")})}),a.jsxs("ul",{className:"space-y-1",children:[a.jsx("li",{children:a.jsx(j,{to:"/benefits/assistance-payments#old-age-pension",onClick:()=>s(null),className:"hover:underline block",children:f("benefits.oldAgePension")})}),a.jsx("li",{children:a.jsx(j,{to:"/benefits/assistance-payments#survivors-assistance",onClick:()=>s(null),className:"hover:underline block",children:f("benefits.survivorsAssistance")})}),a.jsx("li",{children:a.jsx(j,{to:"/benefits/assistance-payments#sickness-assistance",onClick:()=>s(null),className:"hover:underline block",children:f("benefits.sicknessAssistance")})}),a.jsx("li",{children:a.jsx(j,{to:"/benefits/assistance-payments#invalidity-assistance",onClick:()=>s(null),className:"hover:underline block",children:f("benefits.invalidityAssistance")})})]})]})]})})]})]})}),o&&a.jsx(tl,{data:oa,onClose:A,onSelect:D})]})}var Yi={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},_r=T.createContext&&T.createContext(Yi),Gu=["attr","size","title"];function Ku(e,t){if(e==null)return{};var n=Yu(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Yu(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function It(){return It=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},It.apply(this,arguments)}function Fr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Bt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
59t%2?Fr(Object(n),!0).forEach(function(r){Ju(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fr(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ju(e,t,n){return t=Qu(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qu(e){var t=Zu(e,"string");return typeof t=="symbol"?t:t+""}function Zu(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ji(e){return e&&e.map((t,n)=>T.createElement(t.tag,Bt({key:n},t.attr),Ji(t.child)))}function Oe(e){return t=>T.createElement(Xu,It({attr:Bt({},e.attr)},t),Ji(e.child))}function Xu(e){var t=n=>{var{attr:r,size:i,title:s}=e,o=Ku(e,Gu),l=i||n.size||"1em",c;return n.className&&(c=n.className),e.className&&(c=(c?c+" ":"")+e.className),T.createElement("svg",It({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,o,{className:c,style:Bt(Bt({color:e.color||n.color},n.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),s&&T.createElement("title",null,s),e.children)};return _r!==void 0?T.createElement(_r.Consumer,null,n=>t(n)):t(Yi)}function ed(e){return Oe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{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"},child:[]}]})(e)}function td(e){return Oe({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"},child:[]}]})(e)}function nd(e){return Oe({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{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"},child:[]}]})(e)}function rd(e){return Oe({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M448,209.91a210.06,210.06,0,0,1-122.77-39.25V349.38A162.55,162.55,0,1,1,185,188.31V278.2a74.62,74.62,0,1,0,52.23,71.18V0l88,0a121.18,121.18,0,0,0,1.86,22.17h0A122.18,122.18,0,0,0,381,102.39a121.43,121.43,0,0,0,67,20.14Z"},child:[]}]})(e)}function id(e){return Oe({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"},child:[]}]})(e)}function vf(e){return Oe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"},child:[]}]})(e)}function xf(e){return Oe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M476 3.2L12.5 270.6c-18.1 10.4-15.8 35.6 2.2 43.2L121 358.4l287.3-253.2c5.5-4.9 13.3 2.6 8.6 8.3L176 407v80.5c0 23.6 28.5 32.9 42.5 15.8L282 426l124.6 52.2c14.2 6 30.4-2.9 33-18.2l72-432C515 7.8 493.3-6.8 476 3.2z"},child:[]}]})(e)}function sd(e){return Oe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{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"},child:[]}]})(e)}function od(){const{t:e}=Zr();return a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"h-3 bg-nibGold"}),"  ",a.jsxs("footer",{className:"bg-nibBlue text-nibGold pt-10 pb-6","data-tour":"footer",children:[a.jsxs("div",{className:"container-max px-4 grid grid-cols-1 md:grid-cols-4 gap-8 text-lg",children:[a.jsx("div",{children:a.jsxs("ul",{className:"space-y-2 font-semibold",children:[a.jsx("li",{children:a.jsx(Z,{to:"/news",className:"hover:underline",children:e("footer.news")})}),a.jsx("li",{children:a.jsx(Z,{to:"/events",className:"hover:underline",children:e("footer.events")})}),a.jsx("li",{children:a.jsx(Z,{to:"/gallery",className:"hover:underline",children:e("footer.gallery")})}),a.jsx("li",{children:a.jsx(Z,{to:"/careers",className:"hover:underline",children:e("footer.careers")})}),a.jsx("li",{children:a.jsx(Z,{to:"/public-tenders",className:"hover:underline",children:e("footer.publicTenders")})}),a.jsx("li",{children:a.jsx(Z,{to:"/public-proposals",className:"hover:underline",children:e("footer.requestForProposals")})}),a.jsx("li",{children:a.jsx(Z,{to:"https://www.nibrateincrease.com/",className:"hover:underline",children:e("footer.nibRateIncrease")})})]})}),a.jsx("div",{children:a.jsxs("ul",{className:"space-y-2 font-semibold",children:[a.jsx("li",{children:a.jsx(Z,{to:"/archive",className:"hover:underline",children:e("footer.archive")})}),a.jsx("li",{children:a.jsx(Z,{to:"/sitemap",className:"hover:underline",children:e("footer.sitemap")})}),a.jsx("li",{children:a.jsx(Z,{to:"/disclaimer",className:"hover:underline",children:e("footer.disclaimer")})}),a.jsx("li",{children:a.jsx(Z,{to:"/offences",className:"hover:underline",children:e("footer.offences")})}),a.jsx("li",{children:a.jsx(Z,{to:"/privacy-policy",className:"hover:underline",children:e("footer.privacyPolicy")})}),a.jsx("li",{children:a.jsx(Z,{to:"/appeals",className:"hover:underline",children:e("footer.appeals")})}),a.jsx("li",{children:a.jsx("a",{href:"https://www.nibdrugplan.com/",target:"_blank",rel:"noopener noreferrer",className:"hover:underline",children:e("footer.nibDrugPlan")})})]})}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-lg font-semibold mb-3 hover:underline",children:a.jsx(Z,{to:"/publications",children:e("footer.publications")})}),a.jsxs("ul",{className:"space-y-2 text-white",children:[a.jsx("li",{children:a.jsx(Z,{to:{pathname:"/publications",search:`?category=${encodeURIComponent("Annual Reports")}`},className:"hover:underline",children:e("footer.annualReports")})}),a.jsx("li",{children:a.jsx(Z,{to:{pathname:"/publications",search:`?category=${encodeURIComponent("Actuarial Reviews")}`},className:"hover:underline",children:e("footer.actuarialReviews")})}),a.jsx("li",{children:a.jsx(Z,{to:{pathname:"/publications",search:`?category=${encodeURIComponent("Acts & Regulations")}`},className:"hover:underline",children:e("footer.actsAndRegulations")})}),a.jsx("li",{children:a.jsx(Z,{to:{pathname:"/publications",search:`?category=${encodeURIComponent("Acts & Regulations")}&q=${encodeURIComponent("Drug Plan")}`},className:"hover:underline",children:e("footer.drugPlanRegulations")})}),a.jsx("li",{children:a.jsx(Z,{to:{pathname:"/publications",search:`?category=${encodeURIComponent("Brochures")}`},className:"hover:underline",children:e("footer.brochures")})})]})]}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-lg font-semibold mb-3",children:e("footer.location")}),a.jsxs("address",{className:"not-italic text-sm leading-relaxed text-white",children:[a.jsx("strong",{children:"National Insurance Board Office"}),a.jsx("br",{}),"Clifford Darling Complex,",a.jsx("br",{}),"Jumbey Village,",a.jsx("br",{}),"Nassau, Bahamas"]}),a.jsxs("div",{className:"mt-4",children:[a.jsx("span",{className:"block mb-2 font-semibold",children:e("footer.contact")}),a.jsxs("ul",{className:"flex gap-4 mt-2",children:[a.jsx("li",{children:a.jsx("a",{href:"https://www.facebook.com/thenationalinsuranceboardba/",target:"_blank",rel:"noopener noreferrer","aria-label":"Facebook",children:a.jsx(ed,{className:"w-5 h-5 hover:text-white"})})}),a.jsx("li",{children:a.jsx("a",{href:"https://www.instagram.com/nibbahamas/",target:"_blank",rel:"noopener noreferrer","aria-label":"Instagram",children:a.jsx(td,{className:"w-5 h-5 hover:text-white"})})}),a.jsx("li",{children:a.jsx("a",{href:"https://www.youtube.com/@thenationalinsuranceboard8797/videos",target:"_blank",rel:"noopener noreferrer","aria-label":"YouTube",children:a.jsx(id,{className:"w-5 h-5 hover:text-white"})})}),a.jsx("li",{children:a.jsx("a",{href:"https://www.linkedin.com/in/the-national-insurance-board-578a403b3/",target:"_blank",rel:"noopener noreferrer","aria-label":"LinkedIn",children:a.jsx(nd,{className:"w-5 h-5 hover:text-white"})})}),a.jsx("li",{children:a.jsx("a",{href:"https://x.com/nibbahamas",target:"_blank",rel:"noopener noreferrer","aria-label":"X",children:a.jsx(sd,{className:"w-5 h-5 hover:text-white"})})}),a.jsx("li",{children:a.jsx("a",{href:"https://www.tiktok.com/@nib.bahamas",target:"_blank",rel:"noopener noreferrer","aria-label":"TikTok",children:a.jsx(rd,{className:"w-5 h-5 hover:text-white"})})})]}),a.jsxs("div",{className:"flex flex-col gap-1 text-sm text-white mt-2",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(oo,{className:"h-4 w-4"}),a.jsx("a",{href:"tel:+12425021500",className:"underline hover:text-nibGold",children:"1-242-502-1500"})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Js,{className:"h-4 w-4"}),a.jsx("a",{href:"mailto:[email protected]",className:"underline hover:text-nibGold",children:"[email protected]"})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(to,{className:"h-4 w-4"}),a.jsx("a",{href:"https://www.nib-bahamas.com",className:"underline hover:text-nibGold",children:"www.nib-bahamas.com"})]})]})]})]})]}),a.jsx("div",{className:"mt-8 pt-4 px-4 text-center text-md text-white",children:a.jsx("p",{children:e("footer.copyright",{year:new Date().getFullYear()})})})]})]})}function ad(){const[e,t]=g.useState(!1),[n,r]=g.useState(!1);return g.useEffect(()=>{const i=()=>t(window.scrollY>400);window.addEventListener("scroll",i,{passive:!0});const s=document.querySelector("footer");let o;return s&&(o=new IntersectionObserver(([l])=>r(l.isIntersecting),{threshold:.1}),o.observe(s)),()=>{window.removeEventListener("scroll",i),o&&s&&o.unobserve(s)}},[]),e?a.jsx("button",{onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),className:`fixed bottom-24 right-6 z-[70] rounded-full text-white
60                 shadow-lg hover:opacity-90 transition w-12 h-12 flex items-center justify-center text-xl`,"aria-label":"Back to top",title:"Back to top",style:{background:n?"linear-gradient(135deg, #0A2F
605C 0%, #fcb762 100%)":"#0A2F5C"},children:"↑"}):null}const ld={initial:{opacity:0,y:16},enter:{opacity:1,y:0,transition:{duration:.45,ease:"easeOut"}}};function cd({children:e,className:t=""}){return a.jsx(ee.main,{className:t,initial:"initial",animate:"enter",exit:"exit",variants:ld,children:e})}const Qt="nib_feedback_prompt_v1",ud=[{value:"",label:"Select a category (optional)"},{value:"navigation",label:"Website Navigation"},{value:"content",label:"Content & Information"},{value:"services",label:"Services & Benefits"},{value:"portals",label:"Online Portals"},{value:"other",label:"Other"}];function dd({delayMs:e=45e3,minScrollPct:t=40,cooldownDays:n=90,excludedPaths:r=[],apiEndpoint:i=null}){const[s,o]=g.useState(!1),[l,c]=g.useState(!1),[u,p]=g.useState(null),[d,f]=g.useState(null),[m,h]=g.useState(""),[b,v]=g.useState(""),[S,x]=g.useState(""),[E,C]=g.useState(!1),[F,A]=g.useState(null),D=g.useRef(null),q=g.useRef(!1),w="/cms-api",$="717194f8f1f7468b818f28f6929dc3e33166aa14b787991270f96f3d2b02674ba561bcbc32419c019cb2369b0f6414bdf87d3550e4d09383380dfd754a186725316365d264ca9d465277c198d49bd24de0d646eb902469b13d0fb9d4aece516ad743885ef216c5cf4bded0ee4ec7c823be2269b15eab9f7d6c1b6b3173845628",pe=i||`${w}/api/feedbacks`,z=typeof window<"u"?window.location.pathname:"/",V=g.useMemo(()=>r.some(M=>z.startsWith(M)),[r,z]);g.useEffect(()=>{if(!V){try{const M=localStorage.getItem(Qt);if(M){const K=JSON.parse(M);if(K!=null&&K.submitted)return;if(K!=null&&K.lastShown){const se=new Date(K.lastShown),he=n*24*60*60*1e3;if(Date.now()-se.getTime()<he)return}}}catch{}return D.current=setTimeout(()=>{const M=()=>{const K=document.documentElement,se=K.scrollTop||document.body.scrollTop,he=K.scrollHeight-K.clientHeight;(he>0?se/he*100:0)>=t&&!q.current&&(c(!0),window.removeEventListener("scroll",M))};window.addEventListener("scroll",M,{passive:!0}),M()},e),()=>{clearTimeout(D.current),D.current=null}}},[e,t,n,V]),g.useEffect(()=>{l&&!q.current&&(q.current=!0,o(!0),L({lastShown:new Date().toISOString(),submitted:!1}))},[l]);function L(M){try{const K=JSON.parse(localStorage.getItem(Qt)||"{}");localStorage.setItem(Qt,JSON.stringify({...K,...M}))}catch{}}async function G(M){M.preventDefault(),C(!0),A(null);const K={rating:u,category:m||null,comment:(b==null?void 0:b.trim())||"",contact:(S==null?void 0:S.trim())||"",page:z,userAgent:navigator.userAgent,submittedAt:new Date().toISOString()};try{const se={"Content-Type":"application/json"};$&&(se.Authorization=`Bearer ${$}`);const he=await fetch(pe,{method:"POST",headers:se,body:JSON.stringify({data:K})});if(!he.ok)throw new Error(`HTTP ${he.status}`);A("success"),L({submitted:!0}),setTimeout(()=>{o(!1)},2500)}catch(se){console.error("[FeedbackPrompt] Failed to submit:",se),A("error")}finally{C(!1)}}function Q(){o(!1)}return V?null:a.jsx($e,{appear:!0,show:s,as:g.Fragment,children:a.jsxs(Te,{as:"div",className:"relative z-50",onClose:Q,children:[a.jsx($e.Child,{as:g.Fragment,enter:"ease-out duration-200",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-150",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:a.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm"})}),a.jsx("div",{className:"fixed inset-0 overflow-y-auto",children:a.jsx("div",{className:"flex min-h-full items-end justify-center p-4 text-center sm:items-center",children:a.jsx($e.Child,{as:g.Fragment,enter:"ease-out duration-200",enterFrom:"opacity-0 translate-y-3 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-150",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-3 sm:translate-y-0 sm:scale-95",children:a.jsxs(Te.Panel,{className:"relative w-full max-w-lg overflow-hidden rounded-2xl bg-white text-left shadow-xl ring-1 ring-nibBlue/10",children:[a.jsx("div",{className:"absolute inset-x-0 top-0 h-1 bg-gradient-to-r from-nibGold to-nibBlue"}),a.jsx("div",{className:"pointer-events-none absolute inset-0 z-0",children:a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1200 280",preserveAspectRatio:"none",className:"h-full w-full",children:[a.jsx("defs",{children:a.jsxs("linearGradient",{id:"fb-ribbon",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[a.jsx("stop",{offset:"0%",stopColor:"#fcb762"}
60),a.jsx("stop",{offset:"100%",stopColor:"#0A2F5C"})]})}),a.jsx("path",{d:"M-60 180 C 160 60, 360 240, 560 140 S 960 100, 1260 180",fill:"none",stroke:"url(#fb-ribbon)",strokeWidth:"12",opacity:"0.12",strokeLinecap:"round",strokeLinejoin:"round"})]})}),a.jsx("div",{className:"pointer-events-none absolute right-[-18px] top-[-18px] h-24 w-24 opacity-20",children:a.jsxs("svg",{viewBox:"0 0 120 120",className:"h-full w-full",children:[a.jsx("defs",{children:a.jsx("pattern",{id:"fb-dots",width:"10",height:"10",patternUnits:"userSpaceOnUse",children:a.jsx("circle",{cx:"1.5",cy:"1.5",r:"1.5",fill:"#0A2F5C",opacity:"0.18"})})}),a.jsx("rect",{width:"120",height:"120",fill:"url(#fb-dots)"})]})}),a.jsx("div",{className:"relative z-10 p-5 md:p-6",children:F==="success"?a.jsxs("div",{className:"text-center py-6",children:[a.jsx("div",{className:"mx-auto w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mb-4",children:a.jsx(Gs,{className:"h-10 w-10 text-green-600"})}),a.jsx(Te.Title,{className:"text-xl font-semibold text-nibBlue",children:"Thank you!"}),a.jsx("p",{className:"mt-2 text-slate-600",children:"Your feedback helps us serve you better."})]}):F==="error"?a.jsxs("div",{className:"text-center py-4",children:[a.jsx("div",{className:"mx-auto w-14 h-14 bg-red-100 rounded-full flex items-center justify-center mb-4",children:a.jsx(Zs,{className:"h-8 w-8 text-red-600"})}),a.jsx(Te.Title,{className:"text-lg font-semibold text-nibBlue",children:"Something went wrong"}),a.jsx("p",{className:"mt-2 text-sm text-slate-600",children:"We couldn't submit your feedback. Please try again."}),a.jsx("button",{type:"button",onClick:()=>A(null),className:"mt-4 rounded-full bg-nibBlue px-5 py-2 text-sm font-semibold text-white hover:bg-nibBlueDark transition-all",children:"Try again"})]}):a.jsxs("form",{onSubmit:G,children:[a.jsx(Te.Title,{className:"text-lg font-semibold text-nibBlue",children:"How was your experience?"}),a.jsx("p",{className:"mt-1 text-sm text-slate-600",children:"Your feedback helps us improve NIB's website and services."}),a.jsxs("div",{className:"mt-4 flex items-center gap-1",children:[[1,2,3,4,5].map(M=>{const K=(d||u)>=M;return a.jsx("button",{type:"button",onClick:()=>p(M),onMouseEnter:()=>f(M),onMouseLeave:()=>f(null),className:`rounded p-2 transition-all duration-150 ${K?"text-nibGold scale-110":"text-slate-300"} hover:scale-125 focus:outline-none focus:ring-2 focus:ring-nibGold/50 focus:ring-offset-1`,"aria-label":`Rate ${M} star${M>1?"s":""}`,children:a.jsx("svg",{viewBox:"0 0 20 20",fill:"currentColor",className:"h-7 w-7",children:a.jsx("path",{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.803 2.037a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.803-2.037a1 1 0 00-1.175 0l-2.803 2.037c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.88 8.72c-.783-.57-.38-1.81.588-1.81H6.93a1 1 0 00.95-.69l1.17-3.292z"})})},M)}),u&&a.jsx("span",{className:"ml-2 text-sm text-slate-500",children:["","Poor","Fair","Good","Very Good","Excellent"][u]})]}),a.jsxs("div",{className:"mt-4",children:[a.jsx("label",{htmlFor:"fb-category",className:"text-sm font-medium text-nibBlue",children:"What's this about?"}),a.jsx("select",{id:"fb-category",value:m,onChange:M=>h(M.target.value),className:`mt-1 w-full rounded-lg border border-nibBlue/20 bg-white px-3 py-2.5 text-sm shadow
61                                     focus:border-nibBlue/40 focus:outline-none focus:ring-0 appearance-none cursor-pointer`,children:ud.map(M=>a.jsx("option",{value:M.value,children:M.label},M.value))})]}),a.jsxs("div",{className:"mt-3",children:[a.jsx("label",{htmlFor:"fb-comment",className:"text-sm font-medium text-nibBlue",children:"Comments (optional)"}),a.jsx("textarea",{id:"fb-comment",rows:3,value:b,onChange:M=>v(M.target.value),placeholder:"What worked well? What can we improve?",className:`mt-1 w-full rounded-lg border border-nibBlue/20 bg-white px-3 py-2 text-sm shadow
62                                     focus:border-nibBlue/40 focus:outline-none focus:ring-0 resize-none`})]}),a.jsxs("div",{className:"mt-3",children:[a.jsx("label",{htmlFor:"fb-contact",className:"text-sm font-medium text-nibBlue",children:"Contact (optional)"}),a.jsx("input",{id:"fb-contact",type:"text",value:S,onChange:M=>x(M.target.value),placeholder:"Email or phone (only if you want us to follow up)",className:`mt-1 w-full rounded-lg border border-nibBlue/20 bg-white px-3 py-2 text-sm shadow
63                                     focus:border-nibBlue/40 focus:outline-none focus:ring-0`})]}),a.jsxs("div",{className:"mt-5 flex items-center justify-end gap-3",children:[a.jsx("button",{type:"button",onClick:Q,disabled:E,className:"rounded-full px-4 py-2 text-sm font-semibold text-nibBlue hover:bg-nibLight focus:outline-none transition-all duration-200 disabled:opacity-50",children:"Not now"}),a.jsx("button",{type:"submit",disabled:!u||E,className:`rounded-full px-5 py-2.5 text-sm font-semibold text-white shadow-sm transition-all duration-200 flex items-center gap-2
64                            ${u&&!E?"bg-nibBlue hover:bg-nibBlueDark hover:shadow hover:scale-105":"bg-slate-300 cursor-not-allowed"}`,children:E?a.jsxs(a.Fragment,{children:[a.jsxs("svg",{className:"animate-spin h-4 w-4",viewBox:"0 0 24 24",children:[a.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),a.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"})]}),"Sending..."]}):"Send feedback"})]})]})})]})})})})]})})}function Dr({message:e="Please wait while we prepare your experience...",opaque:t=!0}){return a.jsx("div",{"aria-busy":"true","aria-live":"polite",className:["fixed inset-0 z-[9999] flex items-center justify-center",t?"bg-white/90 backdrop-blur-[1px]":"pointer-events-none"].join(" "),role:"status",children:a.jsxs("div",{className:"flex flex-col items-center gap-6 px-6 py-6",children:[a.jsx(fd,{}),a.jsxs("div",{className:"text-center",children:[a.jsx("p",{className:"text-nibBlue text-xl font-bold tracking-wide mb-1",children:e}),a.jsx("p",{className:"text-nibBlue/60 text-sm",children:"Thank y
64ou for your patience"})]})]})})}function fd(){return a.jsxs("svg",{viewBox:"0 0 300 280",className:"w-48 h-auto sm:w-64",style:{overflow:"hidden"},children:[a.jsxs("g",{transform:"translate(150, 100)",children:[a.jsx("g",{className:"animate-sun-spin",children:Array.from({length:12}).map((e,t)=>a.jsx("rect",{x:"-5",y:"-90",width:"10",height:"50",rx:"5",fill:"#FFC54D",transform:`rotate(${360/12*t})`},t))}),a.jsx("circle",{r:"55",fill:"#FDBB2D"}),a.jsx("circle",{r:"45",fill:"url(#sunGrad)",opacity:"0.9"})]}),a.jsxs("g",{transform:"translate(-100, 200)",children:[a.jsx("path",{d:"M-100 20 Q-60 10,-20 20 T60 20 T140 20 T220 20 T300 20 T380 20 T460 20",fill:"none",stroke:"#0E7ACB",strokeWidth:"6",strokeLinecap:"round",className:"animate-wave-1",opacity:"0.6"}),a.jsx("path",{d:"M-100 35 Q-60 25,-20 35 T60 35 T140 35 T220 35 T300 35 T380 35 T460 35",fill:"none",stroke:"#1BA0E2",strokeWidth:"5",strokeLinecap:"round",className:"animate-wave-2",opacity:"0.5"}),a.jsx("path",{d:"M-100 50 Q-60 40,-20 50 T60 50 T140 50 T220 50 T300 50 T380 50 T460 50",fill:"none",stroke:"#47B6F0",strokeWidth:"4",strokeLinecap:"round",className:"animate-wave-3",opacity:"0.4"})]}),a.jsx("defs",{children:a.jsxs("radialGradient",{id:"sunGrad",children:[a.jsx("stop",{offset:"0%",stopColor:"#FFE089"}),a.jsx("stop",{offset:"100%",stopColor:"#FDBB2D"})]})})]})}const Zt=[{id:"welcome",title:"Welcome to NIB's new website — we're glad you're here",summary:"We've redesigned nib-bahamas.com to make it easier to learn about benefits, access our portals, and find the services you need. Take a look around — and thank you for visiting.",date:new Date().toISOString(),severity:"welcome"},{id:"welcome-explore",title:"Discover benefits, forms, and online services — all in one place",summary:"Browse the new Benefits section, download official forms, or jump straight into our online portals (ESS, RSS, EzRenew, and the C10 mobile app).",date:new Date().toISOString(),severity:"welcome"},{id:"welcome-search",title:"Looking for something? Try the search bar at the top of the page",summary:"The new site-wide search makes it easy to find forms, services, FAQs, and policy information in seconds.",date:new Date().toISOString(),severity:"welcome"}];function pd({fetchFromStrapi:e=!0,className:t="",maxItems:n=4,debugIgnoreDismiss:r=!1}){const[i,s]=g.useState([]),[o,l]=g.useState(null),[c,u]=g.useState(!1);g.useEffect(()=>{if(r)return;const h=localStorage.getItem("nib_alerts_hidden_until");h&&new Date(h)>new Date&&u(!0)},[r]);const p=(()=>{try{return new URLSearchParams(window.location.search).get("showalerts")==="1"}catch{return!1}})();g.useEffect(()=>{let h=!0;async function b(){if(!e){h&&s(Zt);return}try{const x=await fetch("/cms-api/api/alerts?filters[active][$eq]=true&sort=date:desc&pagination[limit]=12",{headers:{Authorization:"Bearer 717194f8f1f7468b818f28f6929dc3e33166aa14b787991270f96f3d2b02674ba561bcbc32419c019cb2369b0f6414bdf87d3550e4d09383380dfd754a186725316365d264ca9d465277c198d49bd24de0d646eb902469b13d0fb9d4aece516ad743885ef216c5cf4bded0ee4ec7c823be2269b15eab9f7d6c1b6b3173845628"}}),{data:E}=await x.json(),C=(E??[]).map(F=>{const A=F.attributes||F;return{id:F.id??crypto.randomUUID(),title:A.title,summary:A.summary,date:A.date,severity:A.severity??"info"}});h&&s(C.length?C:Zt)}catch(v){console.error("Failed to fetch alerts:",v),h&&s(Zt)}}return b(),()=>h=!1},[e]),g.useEffect(()=>{const h=b=>{b.altKey&&b.shiftKey&&b.key.toLowerCase()==="a"&&(localStorage.removeItem("nib_alerts_hidden_until"),u(!1))};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[]);const d=g.useMemo(()=>i.slice(0,n),[i,n]);if(c&&!p||d.length===0)return null;const f={high:"bg-red-500 text-white",medium:"bg-orange-500 text-white",info:"bg-nibBlue text-white",welcome:"bg-gradient-to-r from-nibGold to-nibBlue text-white"},m=d.every(h=>h.severity==="welcome");return a.jsxs("div",{className:["relative z-[60]","before:absolute before:inset-x-0 before:top-0 before:h-[3px] before:bg-gradient-to-r before:from-nibGold before:to-nibBlue",t].join(" "),role:"region","aria-label":"News alerts",children:[a.jsxs("div",{className:"relative overflow-hidden bg-white/90 backdrop-blur ring-1 ring-nibBlue/10",children:[a.jsx(Qi,{}),a.jsxs("div",{className:"relative z-10 flex items-center gap-2 px-3 py-2",children:[a.jsx("span",{className:"inline-flex select-none items-center gap-1 rounded-full bg-gradient-to-r from-nibBlue to-nibGold px-2 py-1 text-[11px] font-bold uppercase tracking-wide text-white shadow",children:m?a.jsxs(a.Fragment,{children:[a.jsx(Vr,{className:"h-4 w-4"}),"Welcome"]}):a.jsxs(a.Fragment,{children:[a.jsx(Wr,{className:"h-4 w-4"}),"Notice"]})}),a.jsxs("div",{className:"relative flex-1 overflow-hidden group","aria-live":"polite",children:[a.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-20 z-10 pointer-events-none bg-gradient-to-r from-white via-white/95 to-transparent","aria-hidden":"true"}),a.jsx("div",{className:"absolute right-0 top-0 bottom-0 w-24 z-10 pointer-events-none bg-gradient-to-l from-white via-white/98 via-white/90 to-transparent","aria-hidden":"true"}),a.jsx("div",{className:"flex animate-marquee-scroll group-hover:[animation-play-state:paused] ga
64p-0 will-change-transform",children:[...d,...d].map((h,b)=>a.jsxs("button",{type:"button",onClick:()=>l(h),className:"inline-flex items-center gap-2 pl-6 pr-6 text-sm text-nibBlue hover:underline whitespace-nowrap shrink-0","aria-hidden":b>=d.length,children:[a.jsx("span",{className:["rounded px-2 py-[2px] text-[10px] font-bold",f[h.severity]??f.info].join(" "),children:h.severity==="high"?"Important":h.severity==="medium"?"Notice":h.severity==="welcome"?"Welcome":"Info"}),a.jsx("span",{className:"font-medium",children:h.title}),h.severity!=="welcome"&&a.jsxs("span",{className:"text-slate-500",children:["• ",new Date(h.date).toLocaleDateString()]})]},`${h.id}-${b}`))})]}),a.jsxs("button",{type:"button",onClick:()=>{const h=new Date;h.setHours(h.getHours()+24),localStorage.setItem("nib_alerts_hidden_until",h.toISOString()),u(!0)},className:"ml-2 inline-flex items-center gap-1 rounded-full bg-white/80 px-2 py-1 text-[11px] text-slate-600 ring-1 ring-slate-200 hover:bg-white","aria-label":"Dismiss alerts for today",title:"Dismiss alerts for today",children:[a.jsx(ft,{className:"h-4 w-4"}),"Hide"]})]})]}),o&&a.jsx(hd,{alert:o,onClose:()=>l(null)})]})}function Qi(){return a.jsx("div",{className:"pointer-events-none absolute inset-0",children:a.jsxs("svg",{viewBox:"0 0 1200 140",preserveAspectRatio:"none",className:"absolute inset-0 h-full w-full",children:[a.jsx("defs",{children:a.jsxs("linearGradient",{id:"ticker-grad",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[a.jsx("stop",{offset:"0%",stopColor:"#fcb762"}),a.jsx("stop",{offset:"100%",stopColor:"#0A2F5C"})]})}),a.jsx("path",{d:"M-60 100 C 140 30, 360 120, 560 70 S 960 50, 1260 100",fill:"none",stroke:"url(#ticker-grad)",strokeWidth:"10",strokeLinecap:"round",opacity:"0.10"})]})})}function hd({alert:e,onClose:t}){return g.useEffect(()=>{const n=r=>r.key==="Escape"&&t();return window.addEventListener("keydown",n),()=>window.removeEventListener("keydown",n)},[t]),a.jsx("div",{className:"fixed inset-0 z-[9999] bg-black/50 backdrop-blur-sm",onClick:n=>{n.target===n.currentTarget&&t()},role:"dialog","aria-modal":"true",children:a.jsxs("div",{className:"mx-auto mt-24 w-[min(680px,92vw)] overflow-hidden rounded-2xl bg-white shadow-2xl ring-1 ring-nibBlue/10",children:[a.jsx("div",{className:"h-1 bg-gradient-to-r from-nibGold to-nibBlue"}),a.jsxs("div",{className:"relative",children:[a.jsx("div",{className:"absolute inset-0 opacity-10",children:a.jsx(Qi,{})}),a.jsxs("div",{className:"relative p-5 md:p-6",children:[a.jsxs("div",{className:"flex items-start justify-between gap-3",children:[a.jsxs("div",{children:[e.severity==="welcome"?a.jsxs("p",{className:"inline-flex items-center gap-1 text-[11px] font-semibold uppercase tracking-wide text-nibGold",children:[a.jsx(Vr,{className:"h-3.5 w-3.5"}),"Welcome"]}):a.jsx("p",{className:"text-[11px] font-medium text-nibGold",children:new Date(e.date).toLocaleDateString()}),a.jsx("h2",{className:"mt-1 text-2xl font-bold text-nibBlue",children:e.title})]}),a.jsx("button",{onClick:t,className:"rounded-full bg-white p-2 text-nibBlue shadow ring-1 ring-nibBlue/10 hover:bg-slate-50","aria-label":"Close notice",children:a.jsx(ft,{className:"h-6 w-6"})})]}),a.jsx("div",{className:"prose prose-slate mt-4 max-w-none text-slate-700 prose-a:text-nibBlue",children:a.jsx("p",{children:e.summary})}),a.jsxs("div",{className:"mt-6 flex flex-wrap items-center justify-end gap-3",children:[e.severity!=="welcome"&&a.jsx("span",{className:"rounded-full bg-nibLight px-3 py-1 text-xs font-semibold text-nibBlue ring-1 ring-nibBlue/10",children:(e.severity??"INFO").toString().toUpperCase()}),a.jsx("button",{onClick:t,className:"rounded-full bg-nibBlue px-5 py-2 text-white shadow-sm hover:bg-nibBlueDark hover:shadow transition-all duration-200",children:"Close"})]})]})]})]})})}function md({content:e,className:t=""}){return e?typeof e=="string"?a.jsx("div",{className:t,children:e}):Array.isArray(e)?a.jsx("div",{className:`prose prose-slate max-w-none ${t}`,children:e.map((n,r)=>yn(n,r))}):null:null}function yn(e,t){var r,i,s;if(!e||!e.type)return null;const n=`block-${t}`;switch(e.type){case"paragraph":return a.jsx("p",{className:"my-3 text-slate-700",children:ce(e.children)},n);case"heading":const o=e.level||1,l=`h${o}`,c={1:"text-3xl font-bold text-nibBlue my-4",2:"text-2xl font-bold text-nibBlue my-3",3:"text-xl font-semibold text-nibBlue my-3",4:"text-lg font-semibold text-nibBlue my-2",5:"text-base font-semibold text-nibBlue my-2",6:"text-sm font-semibold text-nibBlue my-2"};return a.jsx(l,{className:c[o],children:ce(e.children)},n);case"list":const u=e.format==="ordered"?"ol":"ul",p=e.format==="ordered"?"list-decimal list-inside my-3 space-y-1":"list-disc list-inside my-3 space-y-1";return a.jsx(u,{className:p,children:(r=e.children)==null?void 0:r.map((d,f)=>gd(d,f))},n);case"list-item":return a.jsx("li",{className:"text-slate-700",children:ce(e.children)},n);case"quote":return a.jsx("blockquote",{className:"border-l-4 border-nibGold pl-4 italic my-4 text-slate-600",children:ce(e.children)},n);case"code":return a.jsx("pre",{className:"bg-slate-100 p-4 rounded my-3 overflow-x-auto",children:a.jsx("code",{className:"text-sm text-slate-800",children:ce(e.children)})},n);case"link":return a.jsx("a",{href:e.url,className:"text-nibBlue hover:underline",target:(i=e.url)!=null&&i.startsWith("http")?"_blank":void 0,rel:(s=e.url)!=null&&s.startsWith("http")?"noopener noreferrer":void 0,children:ce(e.children)},n);default:return e.children?a.jsx("div",{children:ce(e.children)},n):null}}function gd(e,t){var r;if(!e)return null;const n=`list-item-${t}`;return e.type==="list"?yn(e,t):e.type==="list-item"?a.jsx("li",{className:"text-slate-700",children:(r=e.children)==null?void 0:r.map((i,s)=>i.type==="list"?yn(i,s):ce([i]))},n):a.jsx("li",{className:"text-slate-700",children:ce(e.children)},n)}function ce(e){return!e||!Array.isArray(e)?null:e.map((t,n)=>{var i,s;if(!t)return null;const r=`child-${n}`;if(t.type==="text"){let o=t.text||"";return t.bold&&(o=a.jsx("strong",{children:o},r)),t.italic&&(o=a.jsx("em",{children:o}
64,r)),t.underline&&(o=a.jsx("u",{children:o},r)),t.strikethrough&&(o=a.jsx("s",{children:o},r)),t.code&&(o=a.jsx("code",{className:"bg-slate-100 px-1 py-0.5 rounded text-sm",children:o},r)),o}return t.type==="link"?a.jsx("a",{href:t.url,className:"text-nibBlue hover:underline",target:(i=t.url)!=null&&i.startsWith("http")?"_blank":void 0,rel:(s=t.url)!=null&&s.startsWith("http")?"noopener noreferrer":void 0,children:ce(t.children)},r):t.children?a.jsx("span",{children:ce(t.children)},r):null})}const Mr="nib_popup_dismissed",$r=24*60*60*1e3,zr={critical:{bar:"from-red-500 to-red-700",badge:"bg-red-50 text-red-700 ring-1 ring-red-200",icon:co,iconBg:"bg-red-50",iconColor:"text-red-500"},warning:{bar:"from-nibGold to-amber-500",badge:"bg-amber-50 text-amber-700 ring-1 ring-amber-200",icon:Wr,iconBg:"bg-amber-50",iconColor:"text-amber-500"},info:{bar:"from-nibGold to-amber-400",badge:"bg-nibLight text-nibBlue ring-1 ring-nibBlue/20",icon:ro,iconBg:"bg-nibLight",iconColor:"text-nibBlue"}};function bd(e){var n,r;return e&&(e.url||((r=(n=e==null?void 0:e.data)==null?void 0:n.attributes)==null?void 0:r.url)||null)||null}function yd(){var u;const{locale:e}=wn(),[t,n]=g.useState(null),[r,i]=g.useState(!1);g.useEffect(()=>{let p=!0;const d="/cms-api",f="717194f8f1f7468b818f28f6929dc3e33166aa14b787991270f96f3d2b02674ba561bcbc32419c019cb2369b0f6414bdf87d3550e4d09383380dfd754a186725316365d264ca9d465277c198d49bd24de0d646eb902469b13d0fb9d4aece516ad743885ef216c5cf4bded0ee4ec7c823be2269b15eab9f7d6c1b6b3173845628";async function m(){var h;try{const b=await fetch(`${d}/api/emergency-popup?locale=${e}&populate=image`,{headers:{Authorization:`Bearer ${f}`}});if(!b.ok)return;const v=await b.json(),S=((h=v==null?void 0:v.data)==null?void 0:h.attributes)??(v==null?void 0:v.data);if(!p||!(S!=null&&S.active))return;try{const x=JSON.parse(localStorage.getItem(Mr)||"null");if((x==null?void 0:x.id)===String(v.data.id||S.documentId)){const E=Date.now()-(x.dismissedAt||0);if($r===0||E<$r)return}}catch{}n({...S,_id:String(v.data.id||S.documentId)}),setTimeout(()=>{p&&i(!0)},800)}catch{}}return m(),()=>{p=!1}},[e]);function s(){if(i(!1),t!=null&&t._id)try{localStorage.setItem(Mr,JSON.stringify({id:t._id,dismissedAt:Date.now()}))}catch{}}const o=zr[t==null?void 0:t.severity]??zr.info,l=o.icon,c=bd(t==null?void 0:t.image);return a.jsx(vn,{children:r&&t&&a.jsxs(a.Fragment,{children:[a.jsx(ee.div,{initial:{opacity:0}
64,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"fixed inset-0 z-[9998] bg-black/50 backdrop-blur-sm",onClick:t.dismissible!==!1?s:void 0},"popup-backdrop"),a.jsx(ee.div,{initial:{opacity:0,scale:.94,y:24},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.94,y:24},transition:{duration:.25,ease:[.16,1,.3,1]},className:"fixed inset-x-4 top-[5vh] z-[9999] mx-auto max-w-2xl max-h-[92vh] overflow-y-auto",role:"dialog","aria-modal":"true","aria-labelledby":"popup-title",children:a.jsxs("div",{className:"relative overflow-hidden rounded-2xl bg-[#FFFCF5] shadow-2xl ring-1 ring-black/10",children:[a.jsx("div",{className:`absolute inset-x-0 top-0 h-1.5 bg-gradient-to-r ${o.bar}`}),a.jsx("div",{"aria-hidden":"true",className:"pointer-events-none absolute -right-8 -top-8 h-36 w-36 rounded-full bg-nibBlue/5"}),a.jsx("div",{"aria-hidden":"true",className:"pointer-events-none absolute -left-6 -bottom-10 h-44 w-44 rounded-full bg-nibGold/10"}),a.jsxs("div",{className:"relative p-6 pt-8 sm:p-8 sm:pt-9",children:[a.jsxs("div",{className:"flex items-start gap-4",children:[a.jsx("div",{className:`flex-shrink-0 h-11 w-11 rounded-xl ${o.iconBg} flex items-center justify-center ring-1 ring-black/5`,children:a.jsx(l,{className:`h-5 w-5 ${o.iconColor}`})}),a.jsxs("div",{className:"flex-1 min-w-0 pr-8",children:[t.severity&&a.jsx("span",{className:`inline-block text-[10px] font-bold uppercase tracking-[0.18em] px-2 py-0.5 rounded-full mb-2 ${o.badge}`,children:t.severity==="info"?"Announcement":t.severity}),a.jsx("h2",{id:"popup-title",className:"text-xl font-bold text-nibBlue leading-snug",children:t.title})]}),t.dismissible!==!1&&a.jsx("button",{onClick:s,"aria-label":"Close",className:"absolute right-4 top-5 rounded-lg p-1.5 text-slate-400 hover:bg-nibLight hover:text-nibBlue transition-colors",children:a.jsx(ft,{className:"h-5 w-5"})})]}),c&&a.jsx("div",{className:"mt-5",children:a.jsx("img",{src:c,alt:((u=t.image)==null?void 0:u.alternativeText)||t.title||"Announcement",className:"w-full max-h-[52vh] md:max-h-[59vh] object-contain rounded-xl ring-1 ring-nibBlue/10 shadow-md bg-white"})}),t.message&&a.jsx("div",{className:"mt-5 text-slate-700 text-[15px] leading-relaxed",children:typeof t.message=="string"?a.jsx("p",{children:t.message}):a.jsx(md,{content:t.message})}),a.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-3",children:[t.ctaLabel&&t.ctaUrl&&a.jsx("a",{href:t.ctaUrl,target:t.ctaUrl.startsWith("http")?"_blank":void 0,rel:t.ctaUrl.startsWith("http")?"noopener noreferrer":void 0,className:"inline-flex items-center gap-1.5 rounded-lg bg-nibBlue px-5 py-2.5 text-sm font-semibold text-white shadow hover:bg-nibBlueDark transition-colors",children:t.ctaLabel}),t.dismissible!==!1&&a.jsx("button",{onClick:s,className:"text-sm font-medium text-slate-500 hover:text-nibBlue transition-colors",children:"Dismiss"})]})]})]})},"popup-modal")]})})}let Re=null;typeof document<"u"&&(Re=document.getElementById("chatbot-root"),Re||(Re=document.createElement("div"),Re.id="chatbot-root",document.body.appendChild(Re)));function vd(){const e="1982712751",t=g.useRef(!1);return g.useEffect(()=>{if(t.current||window.chtlConfig||document.getElementById("chtl-script"))return;t.current=!0,window.chtlConfig={chatbotId:e};const n=document.createElement("script");n.id="chtl-script",n.src="https://chatling.ai/js/embed.js",n.async=!0,n.setAttribute("data-id",e),document.body.appendChild(n)},[e]),null}function xd(){return Re?Me.createPortal(a.jsx(vd,{}),Re):null}function wd(){const[e,t]=g.useState(()=>!sessionStorage.getItem("nib-splash-shown"));return g.useEffect(()=>{if(e){const n=setTimeout(()=>{t(!1),sessionStorage.setItem("nib-splash-shown","1")},4200);return()=>clearTimeout(n)}},[e]),a.jsx(vn,{children:e&&a.jsxs(ee.div,{className:"fixed inset-0 z-[10000] flex items-center justify-center overflow-hidden",initial:{opacity:1},exit:{opacity:0,scale:1.05},transition:{duration:.8,ease:[.22,1,.36,1]},children:[a.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-[#061e3d] via-[#0A2F5C] to-[#0d3a6e]"}),a.jsx(ee.div,{className:"absolute w-[600px] h-[600px] rounded-full",style:{background:"radial-gradient(circle, rgba(252,183,98,0.12) 0%, transparent 70%)"},initial:{scale:0,opacity:0}
64,animate:{scale:[0,1.8,1.4],opacity:[0,.8,.5]},transition:{duration:2.5,ease:"easeOut"}}),[...Array(6)].map((n,r)=>a.jsx(ee.div,{className:"absolute w-1 h-1 rounded-full bg-[#fcb762]/30",style:{left:`${20+r*12}%`,top:`${30+r%3*15}%`},initial:{opacity:0,y:20},animate:{opacity:[0,.6,0],y:[20,-30,-60]},transition:{duration:3,delay:.5+r*.3,ease:"easeOut"}},r)),a.jsx(ee.div,{className:"absolute inset-x-0 h-px bg-gradient-to-r from-transparent via-[#fcb762]/20 to-transparent",style:{top:"35%"},initial:{scaleX:0,opacity:0},animate:{scaleX:1,opacity:[0,1,.3]},transition:{duration:2,delay:.3,ease:"easeOut"}}),a.jsx(ee.div,{className:"absolute inset-x-0 h-px bg-gradient-to-r from-transparent via-[#fcb762]/15 to-transparent",style:{top:"65%"},initial:{scaleX:0,opacity:0},animate:{scaleX:1,opacity:[0,.8,.2]},transition:{duration:2,delay:.6,ease:"easeOut"}}),a.jsxs("div",{className:"relative flex flex-col items-center",children:[a.jsx(ee.div,{initial:{opacity:0,scale:.5,filter:"blur(10px)"},animate:{opacity:1,scale:1,filter:"blur(0px)"},transition:{duration:1.2,delay:.3,ease:[.22,1,.36,1]},children:a.jsx(ee.img,{src:Ki,alt:"NIB Bahamas",className:"w-36 h-auto sm:w-48 drop-shadow-[0_0_40px_rgba(252,183,98,0.3)]",animate:{y:[0,-4,0]},transition:{duration:3,repeat:1/0,ease:"easeInOut",delay:1.5}})}),a.jsx(ee.div,{className:"mt-6 h-0.5 rounded-full overflow-hidden",initial:{width:0},animate:{width:180},transition:{duration:.8,delay:1.2,ease:[.22,1,.36,1]},children:a.jsx(ee.div,{className:"h-full w-full bg-gradient-to-r from-transparent via-[#fcb762] to-transparent",animate:{opacity:[.5,1,.5]},transition:{duration:2,repeat:1/0,ease:"easeInOut"}})}),a.jsx(ee.h1,{className:"mt-5 text-white/90 text-lg sm:text-xl font-semibold tracking-[0.25em] uppercase",initial:{opacity:0,y:15,letterSpacing:"0.5em"},animate:{opacity:1,y:0,letterSpacing:"0.25em"},transition:{duration:.8,delay:1.5,ease:"easeOut"},children:"The National Insurance Board"}),a.jsx(ee.p,{className:"mt-2 text-[#fcb762]/70 text-xs sm:text-sm tracking-widest",initial:{opacity:0}
64,animate:{opacity:1},transition:{duration:.6,delay:2},children:"of The Commonwealth of The Bahamas"}),a.jsx(ee.div,{className:"mt-8 h-[2px] rounded-full bg-white/10 overflow-hidden",initial:{width:0,opacity:0},animate:{width:160,opacity:1},transition:{duration:.4,delay:2.4},children:a.jsx(ee.div,{className:"h-full bg-gradient-to-r from-[#fcb762] to-[#fcb762]/50 rounded-full",initial:{x:"-100%"},animate:{x:"200%"},transition:{duration:1.2,repeat:1/0,ease:"easeInOut",delay:2.5}})})]})]},"splash")})}function Sd(){const e=Fs(),t=Ds(),n=t.state==="loading"||t.state==="submitting";return a.jsxs(a.Fragment,{children:[a.jsx(wd,{}),a.jsx(xd,{}),a.jsx(el,{children:a.jsx(Hu,{children:a.jsxs("div",{className:"min-h-screen flex flex-col",children:[a.jsx(pd,{fetchFromStrapi:!0}),a.jsx(yd,{}),a.jsx(qu,{}),n&&a.jsx(Dr,{variant:"flamingo",message:"Loading content…",opaque:!0}),a.jsx(vn,{mode:"wait",children:a.jsx(cd,{className:"flex-1",children:a.jsx(g.Suspense,{fallback:a.jsx(Dr,{variant:"logo",message:"Preparing your experience…"}),children:a.jsx(Ms,{})})},e.pathname)}),a.jsx(dd,{delayMs:18e4,minScrollPct:60,cooldownDays:90,excludedPaths:["/login","/admin"]}),a.jsx(od,{}),a.jsx(ad,{})]})})})]})}const Nd=(e,t,n)=>{const r=e[t];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((i,s)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(s.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==n?". Note that variables only represent file names one level deep.":""))))})},Zi={home:"Home",about:"About Us",benefits:"Benefits",registration:"Registration",pensioners:"Pensioners",employers:"Employers",portals:"Online Services",contact:"Contact",faq:"FAQ",news:"News",events:"Events",gallery:"Gallery",forms:"Forms",contributions:"Contributions",calculator:"Benefits Calculator",quickLinks:"Quick Links"},Xi={overview:"Benefits Overview",shortTerm:"Short Term Benefits",longTerm:"Long Term Benefits",industrial:"Industrial Benefits",assistancePayments:"Assistance Payments",calculator:"Benefits Calculator",learnMore:"Learn More",faqs:"FAQs",longTermTitle:"Long Term",shortTermTitle:"Short Term",industrialTitle:"Industrial",retirementBenefit:"Retirement Benefit",retirementGrant:"Retirement Grant",invalidityBenefit:"Invalidity Benefit",survivorsBenefit:"Survivors Benefit",survivorsGrant:"Survivors Grant",unemploymentBenefit:"Unemployment Benefit",funeralBenefit:"Funeral Benefit",maternityBenefit:"Maternity Benefit",maternityGrant:"Maternity Grant",sicknessBenefit:"Sickness Benefit",injuryBenefit:"Injury Benefit",disablementBenefit:"Disablement Benefit",deathBenefit:"Industrial Death Benefit",industrialFuneralBenefit:"Industrial Funeral Benefit",oldAgePension:"Old Age Pension",survivorsAssistance:"Survivors Assistance",sicknessAssistance:"Sickness Assistance",invalidityAssistance:"Invalidity Assistance"},es={individual:"Individual",business:"Business",employer:"Employer Registration",selfEmployed:"Self-Employed Registration"},ts={ess:"Employee Self Service",rss:"Registrant Self Service",c10:"C10 Portal",ez:"EZ Renew"},ns={learnMore:"Learn More",readMore:"Read More",viewAll:"View All",submit:"Submit",cancel:"Cancel",close:"Close",search:"Search",searchPlaceholder:"Search NIB...",loading:"Loading...",error:"An error occurred",tryAgain:"Try Again",back:"Back",next:"Next",previous:"Previous",apply:"Apply",download:"Download",print:"Print",share:"Share",email:"Email",phone:"Phone",address:"Address",hours:"Hours",location:"Location"},rs={heroTitle1:"Secure Your Future Today",heroDesc1:"Learn about the wide range of benefits available through NIB Bahamas.",heroTitle2:"We're Here to Help",heroDesc2:"From retirement to maternity, find support when you need it most.",heroTitle3:"EZ Renew Made Easy",heroDesc3:"Renew your contributions quickly online with our EZ Renew portal.",ezRenewTitle:"EZ Renew",ezRenewDesc:"Renew your contributions quickly and securely online. Watch our tutorial video and learn how easy it is to use the EZ Renew portal.",videoSpotlight:"Video Spotlight",videoSpotlightDesc:"Watch our latest educational videos and stay informed about NIB services",featuredVideos:"Featured Videos",whatsNew:"What's New",whatsNewDesc:"Stay up to date with the latest news and announcements from NIB",latestUpdates:"Latest Updates",upcomingEvents:"Upcoming Events",upcomingEventsDesc:"Join us at our upcoming events and community activities",markYourCalendar:"Mark Your Calendar",viewAllEvents:"View All Events",viewAllNews:"View all news",viewAllVideos:"View all videos",quickAndEasy:"Featured App",goToPortal:"Go to EZ Renew Portal",videoTip:"Tip: Video auto-plays (muted) while visible. Pause to stop auto-play."},is={news:"News",events:"Events",gallery:"Gallery",careers:"Careers",publicTenders:"Public Tenders",nibRateIncrease:"NIB Rate Increase",nibDrugPlan:"NIB Drug Plan",archive:"Archive",sitemap:"Sitemap",disclaimer:"Disclaimer",offences:"Offences",privacyPolicy:"Privacy Policy",appeals:"The Appeals Process",publications:"Publications",annualReports:"Annual Reports",actuarialReviews:"Actuarial Reviews",actsAndRegulations:"Acts and Regulations",drugPlanRegulations:"Drug Plan Regulations",brochures:"Brochures",location:"Location",contact:"Contact",copyright:"© {{year}} NIB Bahamas. All rights reserved.",requestForProposals:"Request for Proposals (RFPs)"},ss={title:"How was your experience?",description:"Your feedback helps us improve NIB's website and services.",category:"What's this about?",categoryPlaceholder:"Select a category (optional)",categoryNavigation:"Website Navigation",categoryContent:"Content & Information",categoryServices:"Services & Benefits",categoryPortals:"Online Services",categoryOther:"Other",comments:"Comments (optional)",commentsPlaceholder:"What worked well? What can we improve?",contact:"Contact (optional)",contactPlaceholder:"Email or phone (only if you want us to follow up)",notNow:"Not now",
64sendFeedback:"Send feedback",sending:"Sending...",thankYou:"Thank you!",thankYouDesc:"Your feedback helps us serve you better.",errorTitle:"Something went wrong",errorDesc:"We couldn't submit your feedback. Please try again.",ratingPoor:"Poor",ratingFair:"Fair",ratingGood:"Good",ratingVeryGood:"Very Good",ratingExcellent:"Excellent"},os={title:"Search",placeholder:"What are you looking for?",noResults:"No results found",resultsFor:'Results for "{{query}}"',suggestions:"Try searching for:",recentSearches:"Recent searches"},as={pageNotFound:"Page Not Found",pageNotFoundDesc:"Sorry, the page you're looking for doesn't exist.",serverError:"Server Error",serverErrorDesc:"Something went wrong on our end. Please try again later.",goHome:"Go to Homepage"},ls={title:"About Us",description:"Learn more about the vision, leadership, and programmes of the National Insurance Board.",sections:"Sections",visionMission:"Vision & Mission",history:"History",ministerBio:"Minister Bio",boardMembers:"Board Members",executiveManagement:"Executive Management",finance:"Finance",nibStatistics:"NIB Statistics",statisticsComingSoon:"Statistical data updated quarterly will be available here. Check back soon.",vision:"Vision",mission:"Mission",ourHistory:"Our History",historyIntro:"Explore key milestones across each era of NIB's history. Select an era to browse its highlights.",chapter:"Chapter",readMore:"Read more",readLess:"Read less",moreSections:"+{{count}} more section",moreSectionsPlural:"+{{count}} more sections",whoWeAre:"Who We Are",visionMissionHeading:"Our Vision & Mission",coreValues:"Core Values",valueExcellence:"Service Excellence",valueInclusion:"Inclusion & Equity",valueInnovation:"Innovation",valueIntegrity:"Integrity"},cs={title:"NIB Calendar of Events",description:"Keep up with upcoming seminars, outreach, and special sessions.",filterByCategory:"Filter by Category:",officialEvent:"Official event",outreachCommunity:"Outreach / Community",today:"Today",day:"Day",week:"Week",month:"Month",location:"Location",start:"Start",end:"End",mobileTip:"Tip: On mobile, swipe horizontally if the week/day grid is wider than your screen."},us={title:"Community Gallery",description:"Snapshots from across NIB—events, initiatives, and life around the Board.",searchPlaceholder:"Search events, captions…",sortBy:"Sort by",dateNewest:"Date (newest)",dateOldest:"Date (oldest)",category:"Category",showing:"Showing {{start}}-{{end}} of {{total}} {{type}}",galleries:"galleries",gallery:"gallery",viewGallery:"View gallery",photos:"photos",photo:"photo",noResults:"No galleries match your search."},ds={title:"Pensioners",howToVerify:"How to Verify",whoCanVerify:"Who can verify you?",paymentDates:"Pension Payment Dates"},fs={language:"Language",helpTour:"Help & Tour",drugPlan:"NIB Drug Plan"},ps={onlinePayments:"Online Payments",actsAndRegulations:"Acts and Regulations",actuarialReviews:"Actuarial Reviews",publicTenders:"Public Tenders",nibRateIncrease:"NIB Rate Increase",siteMap:"Site Map",requestForProposals:"Request for Proposals (RFPs)"},hs={selectBenefit:"Select Benefit",eligibility:"Eligibility",howToApply:"How to Apply",downloads:"Downloads",download:"Download",faqs:"Frequently Asked Questions",noDownloads:"No downloads available for this benefit.",noFaqs:"No FAQs available for this benefit.",loadingBenefits:"Loading benefits...",eligibilityComingSoon:"Eligibility information will be available soon.",stepsComingSoon:"Application steps will be available soon."},ms={title:"Video Spotlight",description:"Watch and explore our video library. Filter by category or year, search, and sort.",searchPlaceholder:"Search videos (press / to focus)",category:"Category",year:"Year",sort:"Sort",resetYear:"Reset year",showing:"Showing",of:"of",videos:"videos",perPage:"Per page",noVideos:"No videos found.",play:"Play",prev:"Prev",next:"Next",newestOldest:"Newest → Oldest",oldestNewest:"Oldest → Newest",aToZ:"A → Z",zToA:"Z → A"},gs={title:"Frequently Asked Questions",description:"Find answers to common questions about benefits, registration, and contributions.",filterByTopic:"Filter by topic:",all:"All",general:"General",benefits:"Benefits",nibCard:"NIB Card",business:"Business",pensionersFilter:"Pensioners",intro:"Browse by category. Click a question to reveal the answer. We're continuously updating this page — if you don't see what you need, please contact us.",loading:"Loading FAQs...",noFaqs:"No FAQs foun
64d."},bs={individualTitle:"Individual Registration",businessTitle:"Business Registration",selectTopic:"Select Topic",downloadForm:"Download Form",onlineRegistration:"Online Registration",openPortal:"Open Portal",tableOffice:"Office",tablePhone:"Phone",tableContact:"Contact Person",getInTouch:"Get in Touch",faqSection:"Frequently Asked Questions",breadcrumbRegistration:"Registration",breadcrumbIndividual:"Individual",breadcrumbBusiness:"Business"},ys={title:"Contact Us",description:"Contact the National Insurance Board (NIB) for enquiries about benefits, registration, and other services.",searchOffices:"Search offices",searchPlaceholder:"Search by office, island, address, phone or contact person…",businessOperations:"Business Operations",newProvidenceOffices:"New Providence Offices",familyIslandOffices:"Family Island Offices",tableOffice:"Office",tablePhone:"Phone",tableContact:"Contact Person",noEntriesFound:"No entries match your search.",formTitle:"Get in Touch",formDescription:"Send us a message and our team will respond shortly.",fullName:"Full Name",emailAddress:"Email",phoneNumber:"Phone",topic:"Topic",message:"Message",topicGeneral:"General",topicBenefits:"Benefits",topicRegistration:"Registration",topicContributions:"Contributions",topicPortals:"Online Services / Technical",sendMessage:"Send Message",sending:"Sending…",successMessage:"Message sent successfully!",errorMessage:"An error occurred. Please try again."},vs={title:"Contributions",description:"Learn about NIB contribution rates and requirements for all insured persons.",selectTopic:"Select Topic",overview:"Overview",employedPersons:"Employed Persons",wages:"What counts as 'Wages'",contributionRates:"Current Contribution Rates",selfEmployed:"Self-Employed Persons",dualEmployment:"Persons with Dual Employment",retirementRecipients:"Persons in Receipt of Retirement Benefit",voluntarilyInsured:"Voluntarily Insured Persons",quickFaqs:"Quick FAQs",faqSection:"Frequently Asked Questions",loading:"Loading contributions content…",tableEmployee:"Employee",tableEmployer:"Employer",tableTotal:"Total",asOfJuly2024:"As of July 1, 2024",contributionRateCol:"Contribution Rate"},xs={title:"Site Map",description:"A complete listing of all pages available on the NIB website.",searchPlaceholder:"Filter links by name or path…",noLinks:"No links in this section.",noMatches:"No matching links.",pageCount_one:"{{count}} page",pageCount_other:"{{count}} pages",sectionHome:"Home",sectionAbout:"About Us",sectionBenefits:"Benefits",sectionRegistration:"Registration",sectionPensioners:"Pensioners",sectionPortals:"Online Services",sectionResources:"Resources",sectionCommunity:"Community",sectionCareersTenders:"Careers & Tenders",sectionContactSupport:"Contact & Support",sectionLegal:"Legal",links:{homepage:"Homepage",aboutOverview:"About Overview",visionMission:"Vision & Mission",history:"History",ministersMessage:"Minister's Message",boardOfDirectors:"Board of Directors",executiveLeadership:"Executive Leadership",financePrograms:"Finance & Programmes",benefitsOverview:"Benefits Overview",benefitsCalculator:"Benefits Calculator",sicknessBenefit:"Sickness Benefit",maternityBenefit:"Maternity Benefit",invalidityBenefit:"Invalidity Benefit",retirementBenefit:"Retirement Benefit",funeralBenefit:"Funeral Benefit",longTermBenefits:"Long Term Benefits",registrationOverview:"Registration Overview",employerRegistration:"Employer Registration",individualRegistration:"Individual Registration",contributionsInfo:"Contributions Information",pensionersInfo:"Pensioners Information",howToVerify:"How to Verify?",whoCanVerify:"Who can verify?",pensionPaymentDates:"Pension Payment Dates",allPortals:"All Portals",essPortal:"Employee Self Service (ESS)",rssPortal:"Retiree Self Service (RSS)",c10Portal:"C10 Mobile App",ezPortal:"EZ Renew",formsDownloads:"Forms & Downloads",publications:"Publications",archive:"Archive",newsUpdates:"News & Updates",faqs:"FAQs",eventsCalendar:"Events Calendar",communityGallery:"Community Gallery",careersAtNib:"Careers at NIB",publicTenders:"Public Tenders",contactUs:"Contact Us",disclaimer:"Disclaimer",privacyPolicy:"Privacy Policy",appealsProcess:"Appeals Process",offences:"Offences",siteMap:"Site Map",shortTermBenefits:"Short Term Benefits",unemploymentBenefit:"Unemployment Benefit",maternityGrant:"Maternity Grant",retirementGrant:"Retirement Grant",survivorsBenefit:"Survivors Benefit",survivorsGrant:"Survivors Grant",industrialBenefits:"Industrial Benefits",injuryBenefit:"Injury Benefit",disablementBenefit:"Disablement Benefit",industrialDeathBenefit:"Industrial Death Benefit",industrialFuneralBenefit:"Industrial Funeral Benefit",assistancePayments:"Assistance Payments",oldAgePension:"Old Age Pension",survivorsAssistance:"Survivors Assistance",sicknessAssistance:"Sickness Assistance",invalidityAssistance:"Invalidity Assistance",contributions:"Contributions",videoSpotlight:"Video Spotlight"}},ws={title:"Benefits Calculator",description:"Estimate your NIB benefit entitlements based on your contributions and wage history.",selectBenefitType:"Select the benefit you want to calculate",weeklyWage:"Weekly Insurable Wage",weeklyWagePlaceholder:"Enter your weekly wage",contributionWeeks:"Contribution Weeks",contributionWeeksPlaceholder:"Enter total contribution weeks",age:"Age",agePlaceholder:"Enter your age",calculate:"Calculate",calculating:"Calculating…",yourEstimate:"Your Estimate",weeklyBenefit:"Weekly Benefit",totalBenefit:"Estimated Total Benefit",disclaimer:"This is an estimate only. Actual benefit amounts are determined by NIB upon application review.",startOver:"Start Over",viewDetails:"View Benefit Details",notEligible:"Based on the information provided, you may 
64not meet the eligibility criteria for this benefit.",contactNIB:"Please contact NIB for a detailed assessment.",livePreview:"Live Preview",estimateLabel:"Estimate",estimatedWeeklyBenefit:"Estimated weekly benefit",wageCeilingApplied:"Wage Ceiling Applied:",wageCeilingNote:"Your weekly wages of ${{wages}} are at or above the wage ceiling of ${{ceiling}}. Special calculation rules have been applied to determine your benefit amount.",biweeklyAmount:"Biweekly Amount:",totalBenefitAmount:"Total Benefit Amount:",maximumDuration:"Maximum Duration:",benefitTypeLabel:"Benefit Type:",weeklyWagesLabel:"Weekly Wages:",employmentTypeLabel:"Employment Type:"},Ss={heading:"Key Facts",paymentType:"Payment Type",contributionReq:"Contribution Req.",eligibilityAge:"Eligibility Age",eligibility:"Eligibility",requirement:"Requirement",rate:"Rate",duration:"Duration"},Ns={yourGuide:"Your Guide to NIB Benefits",quickReference:"Quick Reference",quickReferenceDesc:"Download our comprehensive guide for a quick overview of all benefits and assistance programs.",downloadGuide:"Benefits at a Glance"},js={frequentlyAskedQuestions:"Frequently Asked Questions",downloads:"Downloads",howToApply:"How to Apply",eligibilityHeading:"Eligibility",keyFactsHeading:"Key Facts"},Es={title:"Forms & Documents",description:"Download official NIB forms and documents for applications and registrations.",searchPlaceholder:"Search forms…",allCategories:"All Categories",noForms:"No forms found matching your search.",formNumber:"Form No.",download:"Download",view:"View",loading:"Loading forms…"},ks={title:"Publications",description:"Browse NIB's official publications, annual reports, and actuarial reviews.",searchPlaceholder:"Search publications…",allTypes:"All Types",annualReports:"Annual Reports",actuarialReviews:"Actuarial Reviews",actsRegulations:"Acts & Regulations",brochures:"Brochures",download:"Download",view:"View",viewOnline:"View Online",noPublications:"No publications found.",year:"Year"},Cs={title:"News & Announcements",description:"Stay up to date with the latest news, press releases, and announcements from NIB.",searchPlaceholder:"Search news…",allCategories:"All",pressRelease:"Press Release",announcement:"Announcement",readMore:"Read more",noNews:"No articles found.",publishedOn:"Published",backToNews:"Back to News",loading:"Loading news…",tryAdjusting:"Try adjusting your filters or search term."},Os={title:"Careers at NIB",description:"Explore career opportunities and join the NIB team.",applyNow:"Apply Now",deadline:"Deadline",department:"Department",noVacancies:"No current vacancies. Check back soon.",howToApply:"How to Apply",requirements:"Requirements",loading:"Loading vacancies…"},Ps={title:"Public Tenders",description:"Browse and respond to current NIB procurement opportunities.",viewTender:"View Tender",deadline:"Deadline",referenceNo:"Reference No.",noTenders:"No current tenders.",download:"Download Tender Document",loading:"Loading tenders…"},Ts={title:"Online Services",description:"Access NIB's online portals for employers, registrants, and pensioners.",choosePortal:"Choose Your Portal",choosePortalSubtitle:"Select a portal below to access our online services.",learnMore:"Learn more",goToPortal:"Go to Portal",helpText:"For assistance with portal access, please contact Customer Care or visit an office.",onlinePortal:"Online Portal",onlineRenewal:"Online Renewal",atAGlance:"At a glance",keyBenefits:"Key benefits",frequentlyAskedQuestions:"Frequently Asked Questions"},As={disclaimerTitle:"Disclaimer",disclaimerDescription:"Important disclaimer information about the NIB website and its content.",privacyTitle:"Privacy Policy",privacyDescription:"How the National Insurance Board collects, uses, and protects your personal information.",appealsTitle:"The Appeals Process",appealsDescription:"Learn about the process for appealing NIB benefit decisions.",offencesTitle:"Offences & Penalties",offencesDescription:"Information about offences under the National Insurance Act.",lastUpdated:"Last updated",printPage:"Print this page"},Rs={title:"Pensioners",description:"Information and resources for NIB pensioners, including verification and payment dates.",verificationLocations:"Verification Locations",upcomingPayments:"Upcoming Payment Dates",month:"Month",paymentDate:"Payment Date",loading:"Loading content…",noContent:"Content coming soon.",selectTopic:"Select Topic",sectionHow:"How to Verify?",sectionWho:"Who can verify?",sectionPaymentDates:"Pension Payment Dates",noUpcomingDates:"No upcoming payment dates available."},Ls={title:"Archive",description:"Browse archived news and announcements from NIB.",searchPlaceholder:"Search archive…",year:"Year",noResults:"No archived items found.",loading:"Loading archive…"},Is={backToGallery:"Back to Gallery",photos:"photos",photo:"photo",loading:"Loading gallery…",noPhotos:"No photos foun
64d in this gallery."},Tn={nav:Zi,benefits:Xi,registration:es,portals:ts,common:ns,home:rs,footer:is,feedback:ss,search:os,errors:as,about:ls,events:cs,gallery:us,pensioners:ds,header:fs,quickLinks:ps,benefitPages:hs,videoSpotlight:ms,faqPage:gs,registrationPage:bs,contactPage:ys,contributionsPage:vs,sitemapPage:xs,calculatorPage:ws,keyFacts:Ss,benefitsOverviewPage:Ns,benefitDetailPage:js,formsPage:Es,publicationsPage:ks,newsPage:Cs,careersPage:Os,tendersPage:Ps,portalsPage:Ts,legalPages:As,pensionersPage:Rs,archivePage:Ls,galleryDetail:Is},jd=Object.freeze(Object.defineProperty({__proto__:null,about:ls,archivePage:Ls,benefitDetailPage:js,benefitPages:hs,benefits:Xi,benefitsOverviewPage:Ns,calculatorPage:ws,careersPage:Os,common:ns,contactPage:ys,contributionsPage:vs,default:Tn,errors:as,events:cs,faqPage:gs,feedback:ss,footer:is,formsPage:Es,gallery:us,galleryDetail:Is,header:fs,home:rs,keyFacts:Ss,legalPages:As,nav:Zi,newsPage:Cs,pensioners:ds,pensionersPage:Rs,portals:ts,portalsPage:Ts,publicationsPage:ks,quickLinks:ps,registration:es,registrationPage:bs,search:os,sitemapPage:xs,tendersPage:Ps,videoSpotlight:ms},Symbol.toStringTag,{value:"Module"})),Ed=async e=>{try{return(await Nd(Object.assign({
64"./locales/en/common.json":()=>_(()=>Promise.resolve().then(()=>jd),void 0),
64"./locales/es/common.json":()=>_(()=>import("./common-D2Kz-AjX.js"),[]),
64"./locales/fil/common.json":()=>_(()=>import("./common-j3XYzBYk.js"),[]),
64"./locales/fr/common.json":()=>_(()=>import("./common-DbYhKGBc.js"),[])
64}),`./locales/${e}/common.json`,4)).default}catch{return console.warn(`Translations for ${e} not found, falling back to English`),Tn}},_t={en:"en",es:"es",fil:"fil",fr:"fr"},kd=()=>{try{const e=localStorage.getItem("nib-locale");if(e&&_t[e])return _t[e]}catch{}return"en"};X.use(Uo).init({resources:{en:{common:Tn}},lng:kd(),fallbackLng:"en",defaultNS:"common",ns:["common"],interpolation:{escapeValue:!1},partialBundledLanguages:!0,react:{useSuspense:!1}});async function Cd(e){const t=_t[e]||e;if(t==="en"||X.hasResourceBundle(t,"common")){X.changeLanguage(t);return}try{const n=await Ed(t);X.addResourceBundle(t,"common",n,!0,!0),X.changeLanguage(t)}catch(n){console.error(`Failed to load language ${e}:`,n),X.changeLanguage("en")}}const Od=Object.freeze(Object.defineProperty({__proto__:null,LOCALE_TO_I18N:_t,loadLanguage:Cd},Symbol.toStringTag,{value:"Module"})),Pd=g.lazy(()=>_(()=>import("./Home-DOyM_tjJ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]))),Td=g.lazy(()=>_(()=>import("./Forms-qj8BeVFJ.js"),__vite__mapDeps([16,1,2,17,3,4,18,13,14]))),Ad=g.lazy(()=>_(()=>import("./Faq-Dh6wpnZG.js"),__vite__mapDeps([19,1,2,17,3,4,13,14]))),Rd=g.lazy(()=>_(()=>import("./About-CzI42x8a.js"),__vite__mapDeps([20,1,2,17,3,4,18,21,22,13,14]))),Ld=g.lazy(()=>_(()=>import("./Contact-BCJ-asUS.js"),__vite__mapDeps([23,1,2,17,3,4,10,13,14]))),Id=g.lazy(()=>_(()=>import("./Portals-BTDG4UtX.js"),__vite__mapDeps([24,1,2,17,3,4,21,10,13,14]))),Bd=g.lazy(()=>_(()=>import("./BenefitsOverview-BIQnKziM.js"),__vite__mapDeps([25,1,2,17,26,3,4,27,28,22,10,13,14]))),_d=g.lazy(()=>_(()=>import("./BenefitsCalculator-CvXbq_IT.js"),__vite__mapDeps([29,1,2,17,3,13,14]))),Fd=g.lazy(()=>_(()=>import("./Publications-BXaKA1IB.js"),__vite__mapDeps([30,1,2,17,3,4,18,13,14]))),Dd=g.lazy(()=>_(()=>import("./RegistrationIndividual-RihhodHs.js"),__vite__mapDeps([31,1,2,17,3,4,28,32,13,14]))),Md=g.lazy(()=>_(()=>import("./RegistrationBusiness-8Rtx8dYC.js"),__vite__mapDeps([33,1,2,17,3,4,28,32,13,14]))),$d=g.lazy(()=>_(()=>import("./Contributions-Di6FOnBv.js"),__vite__mapDeps([34,1,2,17,3,4,28,32,13,14]))),zd=g.lazy(()=>_(()=>import("./PortalsEss-Bw8fuxwy.js"),__vite__mapDeps([35,1,2,17,3,4,32,10,12,13,14]))),Wd=g.lazy(()=>_(()=>import("./PortalsRss-CwO-b9xc.js"),__vite__mapDeps([36,1,2,17,3,4,32,10,12,13,14]))),Vd=g.lazy(()=>_(()=>import("./Gallery-jupb2uIF.js"),__vite__mapDeps([37,1,2,17,3,38,7,10,13,14]))),Ud=g.lazy(()=>_(()=>import("./GalleryDetail-BnTmyara.js"),__vite__mapDeps([39,1,2,17,3,38,7,11,28,13,14]))),Hd=g.lazy(()=>_(()=>import("./PortalsC10-CxDWh7HD.js"),__vite__mapDeps([40,1,2,17,3,4,32,10,12,11,13,14]))),qd=g.lazy(()=>_(()=>import("./PortalsEz-CDpj41eC.js"),__vite__mapDeps([41,1,2,17,3,4,32,10,12,13,14]))),Gd=g.lazy(()=>_(()=>import("./PortalsEzClaim-B3kebJOq.js"),__vite__mapDeps([42,1,2,17,3,4,32,10,13,14]))),Kd=g.lazy(()=>_(()=>import("./Events-Dn7i36W5.js"),__vite__mapDeps([43,1,2,17,14,44,3,11,10,13,45]))),Yd=g.lazy(()=>_(()=>import("./News-COcmySJY.js"),__vite__mapDeps([46,1,2,17,3,4,7,8,9,10,13,14]))),Jd=g.lazy(()=>_(()=>import("./NewsArticle-DzTU6oBf.js"),__vite__mapDeps([47,1,2,17,3,7,9,13,14]))),Qd=g.lazy(()=>_(()=>import("./LongTerm-DQlwDCId.js"),__vite__mapDeps([48,1,2,17,3,26,49,4,28,13,14]))),Zd=g.lazy(()=>_(()=>import("./ShortTerm-BBH5p8L6.js"),__vite__mapDeps([50,1,2,17,3,26,49,4,28,13,14]))),Xd=g.lazy(()=>_(()=>import("./Industrial-B6kghIXs.js"),__vite__mapDeps([51,1,2,17,3,26,49,4,28,13,14]))),ef=g.lazy(()=>_(()=>import("./AssistancePayments-BJ9NkUln.js"),__vite__mapDeps([52,1,2,17,3,26,49,4,28,13,14]))),tf=g.lazy(()=>_(()=>import("./Archive-rBC7ctV_.js"),__vite__mapDeps([53,1,2,17,3,7,10,13,14]))),nf=g.lazy(()=>_(()=>import("./Careers-D9ij8oF6.js"),__vite__mapDeps([54,1,2,17,3,4,28,13,14]))),rf=g.lazy(()=>_(()=>import("./PublicTenders-BYWZdYgI.js"),__vite__mapDeps([55,1,2,17,3,13,14]))),sf=g.lazy(()=>_(()=>import("./RequestForProposals-CIyYNM-B.js"),__vite__mapDeps([56,1,2,17,3,13,14]))),of=g.lazy(()=>_(()=>import("./Pensioners-DJXG8uZd.js"),__vite__mapDeps([57,1,2,17,58,44,3,4,14,59,13]))),af=g.lazy(()=>_(()=>import("./Sitemap-B2zz-FVN.js"),__vite__mapDeps([60,1,2,17,3,27,21,59,10,13,14]))),lf=g.lazy(()=>_(()=>import("./Disclaimer-DvHYgB_c.js"),__vite__mapDeps([61,1,2,17,3,58,13,14]))),cf=g.lazy(()=>_(()=>import("./PrivacyPolicy-Lf6shgJF.js"),__vite__mapDeps([62,1,2,17,3,58,13,14]))),uf=g.lazy(()=>_(()=>import("./Appeals-DbRsxFEz.js"),__vite__mapDeps([63,1,2,17,3,58,13,14]))),df=g.lazy(()=>_(()=>import("./Offences-Cj3Erea6.js"),__vite__mapDeps([64,1,2,17,3,58,13,14]))),ff=g.lazy(()=>_(()=>import("./LoadingScreenTest-CIeLjUj7.js"),__vite__mapDeps([65,1,2,3,13,14]))),pf=g.lazy(()=>_(()=>import("./VideoSpotlight-CzDhwzQ7.js"),__vite__mapDeps([66,1,2,17,6,3,13,14]))),hf=$s([{path:"/",element:a.jsx(Sd,{}),children:[{index:!0,element:a.jsx(Pd,{})},{path:"forms",element:a.jsx(Td,{})},{path:"faq",element:a.jsx(Ad,{})},{path:"about",element:a.jsx(Rd,{})},{path:"contact",element:a.jsx(Ld,{})},{path:"portals",element:a.jsx(Id,{})},{path:"benefits/overview",element:a.jsx(Bd,{})},{path:"benefits/calculator",element:a.jsx(_d,{})},{path:"publications",element:a.jsx(Fd,{})},{path:"registration/individual",element:a.jsx(Dd,{})},{path:"registration/business",element:a.jsx(Md,{})},{path:"contributions",element:a.jsx($d,{})},{path:"portals/ess",element:a.jsx(zd,{})},{path:"portals/rss",element:a.jsx(Wd,{})},{path:"portals/c10",element:a.jsx(Hd,{})},{path:"events",element:a.jsx(Kd,{})},{path:"news",element:a.jsx(Yd,{})},{path:":year/:month/:day/:slug",element:a.jsx(Jd,{})},{path:"benefits/long-term",element:a.jsx(Qd,{})},{path:"benefits/short-term",element:a.jsx(Zd,{})},{path:"benefits/industrial",element:a.jsx(Xd,{})},{path:"benefits/assistance-payments",element:a.jsx(ef,{})},{path:"archive",element:a.jsx(tf,{})},{path:"careers",element:a.jsx(nf,{})},{path:"public-tenders",element:a.jsx(rf,{})},{path:"public-proposals",element:a.jsx(sf,{})},{path:"pensioners",element:a.jsx(of,{})},{path:"sitemap",element:a.jsx(af,{})},{path:"disclaimer",element:a.jsx(lf,{})},{path:"privacy-policy",element:a.jsx(cf,{})},{path:"gallery",element:a.jsx(Vd,{})},{path:"gallery/:year/:month/:day/:slug",element:a.jsx(Ud,{})},{path:"offences",element:a.jsx(df,{})},{path:"appeals",element:a.jsx(uf,{})},{path:"videospotlight",element:a.jsx(pf,{})},{path:"portals/ez",element:a.jsx(qd,{})},{path:"portals/ezclaim",element:a.jsx(Gd,{})},{path:"loading-test",element:a.jsx(ff,{})}]}]);Xt.createRoot(document.getElementById("root")).render(a.jsx(T.StrictMode,{children:a.jsx(zs,{router:hf})}));export{Vr as F,Dr as L,md as S,wn as a,ft as b,Bn as c,en as d,xf as e,Gs as f,Js as g,ro as h,ed as i,sd as j,nd as k,vf as l,oo as m,Zr as u};

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.