1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,62407,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function({html:e,height:t=null,width:r=null,children:s,dataNtpc:o=""}){return(0,i.useEffect)(()=>{o&&performance.mark("mark_feature_usage",{detail:{feature:`next-third-parties-${o}`}})},[o]),(0,n.jsxs)(n.Fragment,{children:[s,e?(0,n.jsx)("div",{style:{height:null!=t?`${t}px`:"auto",width:null!=r?`${r}px`:"auto"},"data-ntpc":o,dangerouslySetInnerHTML:{__html:e}}):null]})};let n=e.r(91398),i=e.r(91788)},36194,(e,t,r)=>{"use strict";var n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){let{apiKey:t,...r}=e,n={...r,key:t},{html:a}=(0,s.GoogleMapsEmbed)(n);return(0,i.jsx)(o.default,{height:n.height||null,width:n.width||null,html:a,dataNtpc:"GoogleMapsEmbed"})};let i=e.r(91398),s=e.r(83602),o=n(e.r(62407))},66162,(e,t,r)=>{"use strict";var n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){let{html:t,scripts:r,stylesheets:n}=(0,o.YouTubeEmbed)(e);return(0,i.jsx)(a.default,{height:e.height||null,width:e.width||null,html:t,dataNtpc:"YouTubeEmbed",children:null==r?void 0:r.map(e=>(0,i.jsx)(s.default,{src:e.url,strategy:l[e.strategy],stylesheets:n},e.url))})};let i=e.r(91398),s=n(e.r(94182)),o=e.r(83602),a=n(e.r(62407)),l={server:"beforeInteractive",client:"afterInteractive",idle:"lazyOnload",worker:"worker"}},84356,(e,t,r)=>{"use strict";var n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.sendGTMEvent=void 0,r.GoogleTagManager=function(e){let{gtmId:t,gtmScriptUrl:r,dataLayerName:n="dataLayer",auth:l,preview:u,dataLayer:c,nonce:d}=e;a=n;let p=new URL(r||"https://www.googletagmanager.com/gtm.js");return t&&p.searchParams.set("id",t),"dataLayer"!==n&&p.searchParams.set("l",n),l&&p.searchParams.set("gtm_auth",l),u&&(p.searchParams.set("gtm_preview",u),p.searchParams.set("gtm_cookies_win","x")),(0,s.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:` 2 (function(w,l){ 3 w[l]=w[l]||[]; 4 w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'}); 5 ${c?`w[l].push(${JSON.stringify(c)})`:""} 6 })(window,'${n}');`},nonce:d}),(0,i.jsx)(o.default,{id:"_next-gtm","data-ntpc":"GTM",src:p.href,nonce:d})]})};let i=e.r(91398),s=e.r(91788),o=n(e.r(94182)),a="dataLayer";r.sendGTMEvent=(e,t)=>{let r=t||a;window[r]=window[r]||[],window[r].push(e)}},43429,(e,t,r)=>{"use strict";let n;var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.GoogleAnalytics=function(e){let{gaId:t,debugMode:r,dataLayerName:i="dataLayer",nonce:l}=e;return void 0===n&&(n=i),(0,o.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:` 7 window['${i}'] = window['${i}'] || []; 8 function gtag(){window['${i}'].push(arguments);} 9 gtag('js', new Date()); 10 11 gtag('config', '${t}' ${r?",{ 'debug_mode': true }":""});`},nonce:l}),(0,s.jsx)(a.default,{id:"_next-ga",src:`https://www.googletagmanager.com/gtag/js?id=${t}`,nonce:l})]})},r.sendGAEvent=function(){void 0===n?console.warn("@next/third-parties: GA has not been initialized"):window[n]?window[n].push(arguments):console.warn(`@next/third-parties: GA dataLayer ${n} does not exist`)};let s=e.r(91398),o=e.r(91788),a=i(e.r(94182))},35447,(e,t,r)=>{"use strict";var n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.sendGAEvent=r.GoogleAnalytics=r.sendGTMEvent=r.GoogleTagManager=r.YouTubeEmbed=r.GoogleMapsEmbed=void 0;var i=e.r(36194);Object.defineProperty(r,"GoogleMapsEmbed",{enumerable:!0,get:function(){return n(i).default}});var s=e.r(66162);Object.defineProperty(r,"YouTubeEmbed",{enumerable:!0,get:function(){return n(s).default}});var o=e.r(84356);Object.defineProperty(r,"GoogleTagManager",{enumerable:!0,get:function(){return o.GoogleTagManager}}),Object.defineProperty(r,"sendGTMEvent",{enumerable:!0,get:function(){return o.sendGTMEvent}});var a=e.r(43429);Object.defineProperty(r,"GoogleAnalytics",{enumerable:!0,get:function(){return a.GoogleAnalytics}}),Object.defineProperty(r,"sendGAEvent",{enumerable:!0,get:function(){return a.sendGAEvent}})},79971,e=>{"use strict";var t=e.i(95564),r=e.i(56298),n=new class extends t.Subscribable{#e;#t;#r;constructor(){super(),this.#r=e=>{if(!r.isServer&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();
11this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:globalThis.document?.visibilityState!=="hidden"}};e.s(["focusManager",0,n])},65235,e=>{"use strict";let t,r,n,i,s,o;var a=e.i(74233).systemSetTimeoutZero,l=(t=[],r=0,n=e=>{e()},i=e=>{e()},s=a,{batch:e=>{let o;r++;try{o=e()}finally{let e;--r||(e=t,t=[],e.length&&s(()=>{i(()=>{e.forEach(e=>{n(e)})})}))}return o},batchCalls:e=>(...t)=>{o(()=>{e(...t)})},schedule:o=e=>{r?t.push(e):s(()=>{n(e)})},setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{i=e},setScheduler:e=>{s=e}});e.s(["notifyManager",0,l])},84813,90140,92363,51415,71585,85700,e=>{"use strict";var t=e.i(56298),r=e.i(65235),n=e.i(79971),i=e.i(95564),s=new class extends i.Subscribable{#n=!0;#t;#r;constructor(){super(),this.#r=e=>{if(!t.isServer&&window.addEventListener){let t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#n!==e&&(this.#n=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#n}};function o(){let e,t,r=new Promise((r,n)=>{e=r,t=n});function n(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{n({status:"fulfilled",value:t}),e(t)},r.reject=e=>{n({status:"rejected",reason:e}),t(e)},r}function a(e){return Math.min(1e3*2**e,3e4)}function l(e){return(e??"online")!=="online"||s.isOnline()}e.s(["onlineManager",0,s],90140),e.s(["pendingThenable",0,o],92363);var u=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function c(e){let r,i=!1,c=0,d=o(),p=()=>n.focusManager.isFocused()&&("always"===e.networkMode||s.isOnline())&&e.canRun(),h=()=>l(e.networkMode)&&e.canRun(),f=e=>{"pending"===d.status&&(r?.(),d.resolve(e))},g=e=>{"pending"===d.status&&(r?.(),d.reject(e))},m=()=>new Promise(t=>{r=e=>{("pending"!==d.status||p())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,"pending"===d.status&&e.onContinue?.()}),y=()=>{let r;if("pending"!==d.status)return;let n=0===c?e.initialPromise:void 0;try{r=n??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(f).catch(r=>{if("pending"!==d.status)return;let n=e.retry??3*!t.isServer,s=e.retryDelay??a,o="function"==typeof s?s(c,r):s,l=!0===n||"number"==typeof n&&c<n||"function"==typeof n&&n(c,r);i||!l?g(r):(c++,e.onFail?.(c,r),(0,t.sleep)(o).then(()=>p()?void 0:m()).then(()=>{i?g(r):y()}))})};return{promise:d,status:()=>d.status,cancel:t=>{if("pending"===d.status){let r=new u(t);g(r),e.onCancel?.(r)}},continue:()=>(r?.(),d),cancelRetry:()=>{i=!0},continueRetry:()=>{i=!1},canStart:h,start:()=>(h()?y():m().then(y),d)}}e.s(["CancelledError",0,u,"canFetch",0,l,"createRetryer",0,c],51415);var d=e.i(74233),p=class{#i;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,t.isValidTimeout)(this.gcTime)&&(this.#i=d.timeoutManager.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(t.isServer?1/0:3e5))}clearGcTimeout(){this.#i&&(d.timeoutManager.clearTimeout(this.#i),this.#i=void 0)}};e.s(["Removable",0,p],71585);var h=class extends p{#s;#o;#a;#l;#u;#c;#d;constructor(e){super(),this.#d=!1,this.#c=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#l=e.client,this.#a=this.#l.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#s=m(this.options),this.state=e.state??this.#s,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#u?.promise}setOptions(e){if(this.options={...this.#c,...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let e=m(this.options);void 0!==e.data&&(this.setState(g(e.data,e.dataUpdatedAt)),this.#s=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#a.remove(this)}setData(e,r){let n=(0,t.replaceData)(this.state.data,e,this.options);return this.#p({data:n,type:"success",dataUpdatedAt:r?.updatedAt,manual:r?.manual}),n}setState(e,t){this.#p({type:"setState",state:e,setStateOptions:t})}cancel(e){let r=this.#u?.promise;return this.#u?.cancel(e),r?r.then(t.noop).catch(t.noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#s)}isActive(){return this.observers.some(e=>!1!==(0,t.resolveEnabled)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===t.skipToken||this.state.dataUpdateCount+this.state.errorUpdate
11Count===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,t.resolveStaleTime)(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!(0,t.timeUntilStale)(this.state.dataUpdatedAt,e))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#u?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#u?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#u&&(this.#d?this.#u.cancel({revert:!0}):this.#u.cancelRetry()),this.scheduleGc()),this.#a.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#p({type:"invalidate"})}async fetch(e,r){let n;if("idle"!==this.state.fetchStatus&&this.#u?.status()!=="rejected"){if(void 0!==this.state.data&&r?.cancelRefetch)this.cancel({silent:!0});else if(this.#u)return this.#u.continueRetry(),this.#u.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let i=new AbortController,s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#d=!0,i.signal)})},o=()=>{let e,n=(0,t.ensureQueryFn)(this.options,r),i=(s(e={client:this.#l,queryKey:this.queryKey,meta:this.meta}),e);return(this.#d=!1,this.options.persister)?this.options.persister(n,i,this):n(i)},a=(s(n={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:this.#l,state:this.state,fetchFn:o}),n);this.options.behavior?.onFetch(a,this),this.#o=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#p({type:"fetch",meta:a.fetchOptions?.meta}),this.#u=c({initialPromise:r?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof u&&e.revert&&this.setState({...this.#o,fetchStatus:"idle"}),i.abort()},onFail:(e,t)=>{this.#p({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#p({type:"pause"})},onContinue:()=>{this.#p({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#u.start();if(void 0===e)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#a.config.onSuccess?.(e,this),this.#a.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof u){if(e.silent)return this.#u.promise;else if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#p({type:"error",error:e}),this.#a.config.onError?.(e,this),this.#a.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#p(e){let t=t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...f(t.data,this.options),fetchMeta:e.meta??null};case"success":let r={...t,...g(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#o=e.manual?r:void 0,r;case"error":let n=e.error;return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}};this.state=t(this.state),r.notifyManager.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#a.notify({query:this,type:"updated",action:e})})}};function f(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:l(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function g(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function m(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdate
11Count:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}e.s(["Query",0,h,"fetchState",0,f],84813);var y=e.i(91788),b=e.i(91398),v=y.createContext(void 0);e.s(["QueryClientProvider",0,({client:e,children:t})=>(y.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,b.jsx)(v.Provider,{value:e,children:t})),"useQueryClient",0,e=>{let t=y.useContext(v);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t}],85700)},95564,e=>{"use strict";e.s(["Subscribable",0,class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}])},56298,74233,e=>{"use strict";var t={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},r=new class{#h=t;#f=!1;setTimeoutProvider(e){this.#h=e}setTimeout(e,t){return this.#h.setTimeout(e,t)}clearTimeout(e){this.#h.clearTimeout(e)}setInterval(e,t){return this.#h.setInterval(e,t)}clearInterval(e){this.#h.clearInterval(e)}};e.s(["systemSetTimeoutZero",0,function(e){setTimeout(e,0)},"timeoutManager",0,r],74233);var n="u"<typeof window||"Deno"in globalThis;function i(e,t){return(t?.queryKeyHashFn||s)(e)}function s(e){return JSON.stringify(e,(e,t)=>u(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function o(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).every(r=>o(e[r],t[r]))}var a=Object.prototype.hasOwnProperty;function l(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function u(e){if(!c(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!c(r)&&!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function c(e){return"[object Object]"===Object.prototype.toString.call(e)}var d=Symbol();e.s(["addToEnd",0,function(e,t,r=0){let n=[...e,t];return r&&n.length>r?n.slice(1):n},"addToStart",0,function(e,t,r=0){let n=[t,...e];return r&&n.length>r?n.slice(0,-1):n},"ensureQueryFn",0,function(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==d?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))},"functionalUpdate",0,function(e,t){return"function"==typeof e?e(t):e},"hashKey",0,s,"hashQueryKeyByOptions",0,i,"isServer",0,n,"isValidTimeout",0,function(e){return"number"==typeof e&&e>=0&&e!==1/0},"matchMutation",0,function(e,t){let{exact:r,status:n,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(r){if(s(t.options.mutationKey)!==s(a))return!1}else if(!o(t.options.mutationKey,a))return!1}return(!n||t.state.status===n)&&(!i||!!i(t))},"matchQuery",0,function(e,t){let{type:r="all",exact:n,fetchStatus:s,predicate:a,queryKey:l,stale:u}=e;if(l){if(n){if(t.queryHash!==i(l,t.options))return!1}else if(!o(t.queryKey,l))return!1}if("all"!==r){let e=t.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return("boolean"!=typeof u||t.isStale()===u)&&(!s||s===t.state.fetchStatus)&&(!a||!!a(t))},"noop",0,function(){},"partialMatchKey",0,o,"replaceData",0,function(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?function e(t,r){if(t===r)return t;let n=l(t)&&l(r);if(!n&&!(u(t)&&u(r)))return r;let i=(n?t:Object.keys(t)).length,s=n?r:Object.keys(r),o=s.length,c=n?Array(o):{},d=0;for(let l=0;l<o;l++){let o=n?l:s[l],u=t[o],p=r[o];if(u===p){c[o]=u,(n?l<i:a.call(t,o))&&d++;continue}if(null===u||null===p||"object"!=typeof u||"object"!=typeof p){c[o]=p;continue}let h=e(u,p);c[o]=h,h===u&&d++}return i===o&&d===i?t:c}(e,t):t},"resolveEnabled",0,function(e,t){return"function"==typeof e?e(t):e},"resolveStaleTime",0,function(e,t){return"function"==typeof e?e(t):e},"shallowEqualObjects",0,function(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0},"shouldThrowError",0,function(e,t){return"function"==typeof e?e(...t):!!e},"skipToken",0,d,"sleep",0,function(e){return new Promise(t=>{r.setTimeout(t,e)})},"timeUntilStale",0,function(e,t){return Math.max(e+(t||0)-Date.now(),0)}],56298)},40563,(e,t,r)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,i=n?Symbol.for("react.element"):60103,s=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,d=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,g=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,y=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,O=n?Symbol.for("react.responder"):60118,E=n?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case d:case p:case o:case l:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case h:case y:case m:case u:return e;default:return t}}case s:return t}}}function w(e){return S(e)===p}r.AsyncMode=d,r.ConcurrentMode=p,r.ContextConsumer=c,r.ContextProvider=u,r.Element=i,r.ForwardRef=h,r.Fragment=o,r.Lazy=y,r.Memo=m,r.Portal=s,r.Profiler=l,r.StrictMode=a,r.Suspense=f,r.isAsyncMode=function(e){return w(e)||S(e)===d},r.isConcurrentMode=w,r.isContextConsumer=function(e){return S(e)===c},r.isContextProvider=function(e){return S(e)===u},r.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},r.isForwardRef=function(e){return S(e)===h},r.isFragment=function(e){return S(e)===o},r.isLazy=function(e){return S(e)===y},r.isMemo=function(e){return S(e)===m},r.isPortal=function(e){return S(e)===s},r.isProfiler=function(e){return S(e)===l},r.isStrictMode=function(e){return S(e)===a},r.isSuspense=function(e){return S(e)===f},r.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===p||e===l||e===a||e===f||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===m||e.$$typeof===u||e.$$typeof===c||e.$$typeof===h||e.$$typeof===v||e.$$typeof===O||e.$$typeof===E||e.$$typeof===b)},r.typeOf=S},49957,(e,t,r)=>{"use strict";e.i(50461),t.exports=e.r(40563)},34980,(e,t,r)=>{"use strict";var n=e.r(49957),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return n.isMemo(e)?o:a[e.$$typeof]||i}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=o;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;
11t.exports=function e(t,r,n){if("string"!=typeof r){if(f){var i=h(r);i&&i!==f&&e(t,i,n)}var o=c(r);d&&(o=o.concat(d(r)));for(var a=l(t),g=l(r),m=0;m<o.length;++m){var y=o[m];if(!s[y]&&!(n&&n[y])&&!(g&&g[y])&&!(a&&a[y])){var b=p(r,y);try{u(t,y,b)}catch(e){}}}}return t}},64157,91214,e=>{"use strict";function t(){return(t=Object.assign.bind()).apply(null,arguments)}function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e,t,n){var i;return(i=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==r(i)?i:i+"")in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e.i(47620);var i=e.i(91788),s=e.i(34980),o=e.i(47977);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function l(e,t){if(e){if("string"==typeof e)return a(e,t);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,s,o,a=[],l=!0,u=!1;try{if(s=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=s.call(r)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return a}}(e,t)||l(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++)r=s[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var d={defaultNS:"common",errorStackTraceLimit:0,i18n:{defaultLocale:"en",locales:["en"]},get initImmediate(){return"u">typeof window},get initAsync(){return"u">typeof window},interpolation:{escapeValue:!1},load:"currentOnly",localeExtension:"json",localePath:"./public/locales",localeStructure:"{{lng}}/{{ns}}",react:{useSuspense:!1},reloadOnPrerender:!1,serializeConfig:!0,use:[]},p="u">typeof window?i.useLayoutEffect:i.useEffect,h=["i18n"],f=["i18n"];function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var y=["backend","detection"],b=function(e){if("string"!=typeof(null==e?void 0:e.lng))throw Error("config.lng was not passed into createConfig");var t,n,i,s=e.i18n,o=c(e,h),p=d.i18n,g=m(m(m(m({},c(d,f)),o),p),s),b=g.defaultNS,v=g.lng,O=g.localeExtension,E=g.localePath,S=g.nonExplicitSupportedLngs,w=g.locales.filter(function(e){return"default"!==e});if("cimode"===v)return g;void 0===g.fallbackLng&&(g.fallbackLng=g.defaultLocale,"default"===g.fallbackLng&&(g.fallbackLng=u(w,1)[0]));var x=null==e||null==(t=e.interpolation)?void 0:t.prefix,j=null==e||null==(n=e.interpolation)?void 0:n.suffix,L=null!=x?x:"{{",_=null!=j?j:"}}";"string"!=typeof(null==e?void 0:e.localeStructure)&&(x||j)&&(g.localeStructure="".concat(L,"lng").concat(_,"/").concat(L,"ns").concat(_));var T=g.fallbackLng,C=g.localeStructure;
11if(S){var k=function(e,t){var r=u(t.split("-"),1)[0];return e[t]=[r],e};if("string"==typeof T)g.fallbackLng=g.locales.filter(function(e){return e.includes("-")}).reduce(k,{default:[T]});else if(Array.isArray(T))g.fallbackLng=g.locales.filter(function(e){return e.includes("-")}).reduce(k,{default:T});else if("object"===r(T))g.fallbackLng=Object.entries(g.fallbackLng).reduce(function(e,t){var r=u(t,2),n=r[0],i=r[1];return e[n]=n.includes("-")?Array.from(new Set([n.split("-")[0]].concat(function(e){if(Array.isArray(e))return a(e)}(i)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||l(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):i,e},T);else if("function"==typeof T)throw Error("If nonExplicitSupportedLngs is true, no functions are allowed for fallbackLng")}return(null==e||null==(i=e.use)?void 0:i.some(function(e){return"backend"===e.type}))||("string"==typeof E?g.backend={addPath:"".concat(E,"/").concat(C,".missing.").concat(O),loadPath:"".concat(E,"/").concat(C,".").concat(O)}:"function"==typeof E&&(g.backend={addPath:function(e,t){return E(e,t,!0)},loadPath:function(e,t){return E(e,t,!1)}})),"string"==typeof g.ns||Array.isArray(g.ns)||(g.ns=[b]),y.forEach(function(t){e[t]&&(g[t]=m(m({},g[t]),e[t]))}),g},v=e.i(73279);let O=function(e){void 0===e.ns&&(e.ns=[]);var t,r,n=v.default.createInstance(e);return n.isInitialized?t=Promise.resolve(v.default.t):(null==e||null==(r=e.use)||r.forEach(function(e){return n.use(e)}),"function"==typeof e.onPreInitI18next&&e.onPreInitI18next(n),t=n.init(e)),{i18n:n,initPromise:t}};var E=i.default.createElement;function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?S(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var x=function(e,t){if(t&&e.isInitialized)for(var r=0,n=Object.keys(t);r<n.length;r++)for(var i=n[r],s=0,o=Object.keys(t[i]);s<o.length;s++){var a,l=o[s];null!=e&&null!=(a=e.store)&&a.data&&e.store.data[i]&&e.store.data[i][l]||e.addResourceBundle(i,l,t[i][l],!0,!0)}};e.s(["appWithTranslation",0,function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,s.default)(function(n){var s,a,l=(n.pageProps||{})._nextI18Next,u=null!=(s=null==l?void 0:l.initialLocale)?s:null==n||null==(a=n.router)?void 0:a.locale,c=null==l?void 0:l.ns,d=(0,i.useRef)(null),h=(0,i.useMemo)(function(){if(!l&&!r)return null;var e,t,n=null!=r?r:null==l?void 0:l.userConfig;if(!n)throw Error("appWithTranslation was called without a next-i18next config");if(!(null!=n&&n.i18n))throw Error("appWithTranslation was called without config.i18n");if(!(null!=n&&null!=(e=n.i18n)&&e.defaultLocale))throw Error("config.i18n does not include a defaultLocale property");var i=(l||{}).initialI18nStore,s=null!=(t=null==r?void 0:r.resources)?t:i;u||(u=n.i18n.defaultLocale);var o=d.current;return o?x(o,s):(x(o=O(w(w(w({},b(w(w({},n),{},{lng:u}))),{},{lng:u},c&&{ns:c}),{},{resources:s})).i18n,s),d.current=o),o},[l,u,c]);return p(function(){h&&u&&h.changeLanguage(u)},[h,u]),null!==h?E(o.I18nextProvider,{i18n:h},E(e,n)):E(e,t({key:u},n))},e)}],91214),e.s([],64157)},94182,(e,t,r)=>{t.exports=e.r(61457)},47620,73279,24340,9007,71179,47977,e=>{"use strict";let t;var r=e.i(91788);let n=e=>"string"==typeof e,i=()=>{let e,t,r=new Promise((r,n)=>{e=r,t=n});return r.resolve=e,r.reject=t,r},s=e=>null==e?"":""+e,o=/###/g,a=e=>e&&e.indexOf("###")>-1?e.replace(o,"."):e,l=e=>!e||n(e),u=(e,t,r)=>{let i=n(t)?t.split("."):t,s=0;for(;s<i.length-1;){if(l(e))return{};let t=a(i[s]);!e[t]&&r&&(e[t]=new r),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++s}return l(e)?{}:{obj:e,k:a(i[s])}},c=(e,t,r)=>{let{obj:n,k:i}=u(e,t,Object);if(void 0!==n||1===t.length){n[i]=r;return}let s=t[t.length-1],o=t.slice(0,t.length-1),a=u(e,o,Object);for(;void 0===a.obj&&o.length;)s=`${o[o.length-1]}.${s}`,a=u(e,o=o.slice(0,o.length-1),Object),a?.obj&&void 0!==a.obj[`${a.k}.${s}`]&&(a.obj=void 0);a.obj[`${a.k}.${s}`]=r},d=(e,t)=>{let{obj:r,k:n}=u(e,t);if(r&&Object.prototype.hasOwnProperty.call(r,n))return r[n]},p=(e,t,r)=>{for(let i in t)"__proto__"!==i&&"constructor"!==i&&(i in e?n(e[i])||e[i]instanceof String||n(t[i])||t[i]instanceof String?r&&(e[i]=t[i]):p(e[i],t[i],r):e[i]=t[i]);return e};var h={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};let f=e=>n(e)?e.replace(/[&<>
11"'\/]/g,e=>h[e]):e,g=[" ",",","?","!",";"],m=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(void 0!==t)return t;let r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}(20),y=(e,t,r=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}let n=t.split(r),i=e;for(let e=0;e<n.length;){let t;if(!i||"object"!=typeof i)return;let s="";for(let o=e;o<n.length;++o)if(o!==e&&(s+=r),s+=n[o],void 0!==(t=i[s])){if(["string","number","boolean"].indexOf(typeof t)>-1&&o<n.length-1)continue;e+=o-e+1;break}i=t}return i},b=e=>e?.replace("_","-"),v={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};var O=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||v,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,r,i){return i&&!this.debug?null:(n(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{...{prefix:`${this.prefix}:${t}:`},...this.options})}clone(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}};class E{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let r=this.observers[e].get(t)||0;this.observers[e].set(t,r+1)}),this}off(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e].delete(t)}}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,r])=>{for(let n=0;n<r;n++)e(...t)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([r,n])=>{for(let i=0;i<n;i++)r.apply(r,[e,...t])})}}class S extends E{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,r,i={}){let s,o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,a=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure;e.indexOf(".")>-1?s=e.split("."):(s=[e,t],r&&(Array.isArray(r)?s.push(...r):n(r)&&o?s.push(...r.split(o)):s.push(r)));let l=d(this.data,s);return(!l&&!t&&!r&&e.indexOf(".")>-1&&(e=s[0],t=s[1],r=s.slice(2).join(".")),!l&&a&&n(r))?y(this.data?.[e]?.[t],r,o):l}addResource(e,t,r,n,i={silent:!1}){let s=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,o=[e,t];r&&(o=o.concat(s?r.split(s):r)),e.indexOf(".")>-1&&(o=e.split("."),n=t,t=o[1]),this.addNamespaces(t),c(this.data,o,n),i.silent||this.emit("added",e,t,r,n)}addResources(e,t,r,i={silent:!1}){for(let i in r)(n(r[i])||Array.isArray(r[i]))&&this.addResource(e,t,i,r[i],{silent:!0});i.silent||this.emit("added",e,t,r)}addResourceBundle(e,t,r,n,i,s={silent:!1,skipCopy:!1}){let o=[e,t];e.indexOf(".")>-1&&(o=e.split("."),n=r,r=t,t=o[1]),this.addNamespaces(t);let a=d(this.data,o)||{};s.skipCopy||(r=JSON.parse(JSON.stringify(r))),n?p(a,r,i):a={...a,...r},c(this.data,o,a),s.silent||this.emit("added",e,t,r)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var w={processors:{},addPostProcessor(e){this.processors[e.name]=e}
11,handle(e,t,r,n,i){return e.forEach(e=>{t=this.processors[e]?.process(t,r,n,i)??t}),t}};let x=Symbol("i18next/PATH_KEY");function j(e,t){let r,n,i,{[x]:s}=e((n=[],(i=Object.create(null)).get=(e,t)=>(r?.revoke?.(),t===x)?n:(n.push(t),(r=Proxy.revocable(e,i)).proxy),Proxy.revocable(Object.create(null),i).proxy));return s.join(t?.keySeparator??".")}let L={},_=e=>!n(e)&&"boolean"!=typeof e&&"number"!=typeof e;class T extends E{constructor(e,t={}){super(),((e,t,r)=>{e.forEach(e=>{t[e]&&(r[e]=t[e])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=O.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let r={...t};if(null==e)return!1;let n=this.resolve(e,r);if(n?.res===void 0)return!1;let i=_(n.res);return!1!==r.returnObjects||!i}extractFromKey(e,t){let r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");let i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,s=t.ns||this.options.defaultNS||[],o=r&&e.indexOf(r)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!((e,t,r)=>{t=t||"",r=r||"";let n=g.filter(e=>0>t.indexOf(e)&&0>r.indexOf(e));if(0===n.length)return!0;let i=m.getRegExp(`(${n.map(e=>"?"===e?"\\?":e).join("|")})`),s=!i.test(e);if(!s){let t=e.indexOf(r);t>0&&!i.test(e.substring(0,t))&&(s=!0)}return s})(e,r,i);if(o&&!a){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:n(s)?[s]:s};let o=e.split(r);(r!==i||r===i&&this.options.ns.indexOf(o[0])>-1)&&(s=o.shift()),e=o.join(i)}return{key:e,namespaces:n(s)?[s]:s}}translate(e,t,r){let i="object"==typeof t?{...t}:t;if("object"!=typeof i&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof i&&(i={...i}),i||(i={}),null==e)return"";"function"==typeof e&&(e=j(e,{...this.options,...i})),Array.isArray(e)||(e=[String(e)]);let s=void 0!==i.returnDetails?i.returnDetails:this.options.returnDetails,o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,{key:a,namespaces:l}=this.extractFromKey(e[e.length-1],i),u=l[l.length-1],c=void 0!==i.nsSeparator?i.nsSeparator:this.options.nsSeparator;void 0===c&&(c=":");let d=i.lng||this.language,p=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()==="cimode")return p?s?{res:`${u}${c}${a}`,usedKey:a,exactUsedKey:a,usedLng:d,usedNS:u,usedParams:this.getUsedParamsDetails(i)}:`${u}${c}${a}`:s?{res:a,usedKey:a,exactUsedKey:a,usedLng:d,usedNS:u,usedParams:this.getUsedParamsDetails(i)}:a;let h=this.resolve(e,i),f=h?.res,g=h?.usedKey||a,m=h?.exactUsedKey||a,y=void 0!==i.joinArrays?i.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,v=void 0!==i.count&&!n(i.count),O=T.hasDefaultValue(i),E=v?this.pluralResolver.getSuffix(d,i.count,i):"",S=i.ordinal&&v?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):"",w=v&&!i.ordinal&&0===i.count,x=w&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${E}`]||i[`defaultValue${S}`]||i.defaultValue,L=f;b&&!f&&O&&(L=x);let C=_(L),k=Object.prototype.toString.apply(L);if(b&&L&&C&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(k)&&!(n(y)&&Array.isArray(L))
11){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,L,{...i,ns:l}):`key '${a} (${this.language})' returned an object instead of string.`;return s?(h.res=e,h.usedParams=this.getUsedParamsDetails(i),h):e}if(o){let e=Array.isArray(L),t=e?[]:{},r=e?m:g;for(let e in L)if(Object.prototype.hasOwnProperty.call(L,e)){let n=`${r}${o}${e}`;O&&!f?t[e]=this.translate(n,{...i,defaultValue:_(x)?x[e]:void 0,...{joinArrays:!1,ns:l}}):t[e]=this.translate(n,{...i,joinArrays:!1,ns:l}),t[e]===n&&(t[e]=L[e])}f=t}}else if(b&&n(y)&&Array.isArray(f))(f=f.join(y))&&(f=this.extendTranslation(f,e,i,r));else{let t=!1,n=!1;!this.isValidLookup(f)&&O&&(t=!0,f=x),this.isValidLookup(f)||(n=!0,f=a);let s=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:f,l=O&&x!==f&&this.options.updateMissing;if(n||t||l){if(this.logger.log(l?"updateKey":"missingKey",d,u,a,l?x:f),o){let e=this.resolve(a,{...i,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let r=0;r<t.length;r++)e.push(t[r]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let r=(e,t,r)=>{let n=O&&r!==f?r:s;this.options.missingKeyHandler?this.options.missingKeyHandler(e,u,t,n,l,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,u,t,n,l,i),this.emit("missingKey",e,u,t,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&v?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);w&&i[`defaultValue${this.options.pluralSeparator}zero`]&&0>t.indexOf(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{r([e],a+t,i[`defaultValue${t}`]||x)})}):r(e,a,x))}f=this.extendTranslation(f,e,i,h,r),n&&f===a&&this.options.appendNamespaceToMissingKey&&(f=`${u}${c}${a}`),(n||t)&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${c}${a}`:a,t?f:void 0,i))}return s?(h.res=f,h.usedParams=this.getUsedParamsDetails(i),h):f}extendTranslation(e,t,r,i,s){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){let o;r.interpolation&&this.interpolator.init({...r,...{interpolation:{...this.options.interpolation,...r.interpolation}}});let a=n(e)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let l=r.replace&&!n(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,r.lng||this.language||i.usedLng,r),a){let t=e.match(this.interpolator.nestingRegexp);o<(t&&t.length)&&(r.nest=!1)}!r.lng&&i&&i.res&&(r.lng=this.language||i.usedLng),!1!==r.nest&&(e=this.interpolator.nest(e,(...e)=>s?.[0]!==e[0]||r.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),r)),r.interpolation&&this.interpolator.reset()}let o=r.postProcess||this.options.postProcess,a=n(o)?[o]:o;return null!=e&&a?.length&&!1!==r.applyPostProcessor&&(e=w.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e,t={}){let r,i,s,o,a;return n(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(r))return;let l=this.extractFromKey(e,t),u=l.key;i=u;let c=l.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));let d=void 0!==t.count&&!n(t.count),p=d&&!t.ordinal&&0===t.count,h=void 0!==t.context&&(n(t.context)||"number"==typeof t.context)&&""!==t.context,f
11=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);c.forEach(e=>{this.isValidLookup(r)||(a=e,!L[`${f[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(a)&&(L[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${i}" for languages "${f.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach(n=>{let i;if(this.isValidLookup(r))return;o=n;let a=[u];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(a,u,n,e,t);else{let e;d&&(e=this.pluralResolver.getSuffix(n,t.count,t));let r=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(t.ordinal&&0===e.indexOf(i)&&a.push(u+e.replace(i,this.options.pluralSeparator)),a.push(u+e),p&&a.push(u+r)),h){let n=`${u}${this.options.contextSeparator||"_"}${t.context}`;a.push(n),d&&(t.ordinal&&0===e.indexOf(i)&&a.push(n+e.replace(i,this.options.pluralSeparator)),a.push(n+e),p&&a.push(n+r))}}for(;i=a.pop();)this.isValidLookup(r)||(s=i,r=this.getResource(n,e,i,t))}))})}),{res:r,usedKey:i,exactUsedKey:s,usedLng:o,usedNS:a}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,r,n={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}getUsedParamsDetails(e={}){let t=e.replace&&!n(e.replace),r=t?e.replace:e;if(t&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!t)for(let e of(r={...r},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete r[e];return r}static hasDefaultValue(e){let t="defaultValue";for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t===r.substring(0,t.length)&&void 0!==e[r])return!0;return!1}}class C{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=O.create("languageUtils")}getScriptPartFromCode(e){if(!(e=b(e))||0>e.indexOf("-"))return null;let t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=b(e))||0>e.indexOf("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(n(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)?t:this.options.lowerCaseLng?e.toLowerCase():e}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let r=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(r))&&(t=r)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let r=this.getScriptPartFromCode(e);if(this.isSupportedCode(r))return t=r;let n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>{if(e===n||!(0>e.indexOf("-")&&0>n.indexOf("-"))&&(e.indexOf("-")>0&&0>n.indexOf("-")&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1))return e})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),n(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}toResolveHierarchy(e,t){let r=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),i=[],s=e=>{e&&(this.isSupportedCode(e)?i.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return n(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&s(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&s(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&s(this.getLanguagePartFromCode(e))):n(e)&&s(this.formatLanguageCode(e)),r.forEach(e
11=>{0>i.indexOf(e)&&s(this.formatLanguageCode(e))}),i}}let k={zero:0,one:1,two:2,few:3,many:4,other:5},P={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class ${constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=O.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let r,n=b("dev"===e?"en":e),i=t.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:n,type:i});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];try{r=new Intl.PluralRules(n,{type:i})}catch(i){if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),P;if(!e.match(/-|_/))return P;let n=this.languageUtils.getLanguagePartFromCode(e);r=this.getRule(n,t)}return this.pluralRulesCache[s]=r,r}needsPlural(e,t={}){let r=this.getRule(e,t);return r||(r=this.getRule("dev",t)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,r={}){return this.getSuffixes(e,r).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let r=this.getRule(e,t);return(r||(r=this.getRule("dev",t)),r)?r.resolvedOptions().pluralCategories.sort((e,t)=>k[e]-k[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,r={}){let n=this.getRule(e,r);return n?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,r))}}let I=(e,t,r,i=".",s=!0)=>{let o,a=void 0!==(o=d(e,r))?o:d(t,r);return!a&&s&&n(r)&&void 0===(a=y(e,r,i))&&(a=y(t,r,i)),a};class A{constructor(e={}){this.logger=O.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:r,useRawValueToEscape:n,prefix:i,prefixEscaped:s,suffix:o,suffixEscaped:a,formatSeparator:l,unescapeSuffix:u,unescapePrefix:c,nestingPrefix:d,nestingPrefixEscaped:p,nestingSuffix:h,nestingSuffixEscaped:g,nestingOptionsSeparator:m,maxReplaces:y,alwaysFormat:b}=e.interpolation;this.escape=void 0!==t?t:f,this.escapeValue=void 0===r||r,this.useRawValueToEscape=void 0!==n&&n,this.prefix=i?i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):s||"{{",this.suffix=o?o.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):a||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=d?d.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):p||"$t(".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingSuffix=h?h.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):g||")".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingOptionsSeparator=m||",",this.maxReplaces=y||1e3,this.alwaysFormat=void 0!==b&&b,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,r,i){let o,a,l,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(0>e.indexOf(this.formatSeparator)){let n=I(t,u,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(n,void 0,r,{...i,...t,interpolationkey:e}):n}let n=e.split(this.formatSeparator),s=n.shift().trim(),o=n.join(this.formatSeparator).trim();return this.format(I(t,u,s,this.options.keySeparator,this.options.ignoreJSONStructure),o,r,{...i,...t,interpolationkey:s})};this.resetRegExp();let d=i?.missingInterpolationHandler||this.options.missingInterpolationHandler,p=i?.interpolation?.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>e.replace(/\$/g,"$$$$")},{regex:this.regexp,safeValue:e=>this.escapeValue?this.escape(e).replace(/\$/g,"$$$$"):e.replace(/\$/g,"$$$$")}
11].forEach(t=>{for(l=0;o=t.regex.exec(e);){let r=o[1].trim();if(void 0===(a=c(r)))if("function"==typeof d){let t=d(e,o,i);a=n(t)?t:""}else if(i&&Object.prototype.hasOwnProperty.call(i,r))a="";else if(p){a=o[0];continue}else this.logger.warn(`missed to pass in variable ${r} for interpolating ${e}`),a="";else n(a)||this.useRawValueToEscape||(a=s(a));let u=t.safeValue(a);if(e=e.replace(o[0],u),p?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++l>=this.maxReplaces)break}}),e}nest(e,t,r={}){let i,o,a,l=(e,t)=>{let r=this.nestingOptionsSeparator;if(0>e.indexOf(r))return e;let n=e.split(RegExp(`${r}[ ]*{`)),i=`{${n[1]}`;e=n[0];let s=(i=this.interpolate(i,a)).match(/'/g),o=i.match(/"/g);((s?.length??0)%2!=0||o)&&o.length%2==0||(i=i.replace(/'/g,'"'));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${r}${i}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;i=this.nestingRegexp.exec(e);){let u=[];(a=(a={...r}).replace&&!n(a.replace)?a.replace:a).applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(-1!==c&&(u=i[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),i[1]=i[1].slice(0,c)),(o=t(l.call(this,i[1].trim(),a),a))&&i[0]===e&&!n(o))return o;n(o)||(o=s(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),o=""),u.length&&(o=u.reduce((e,t)=>this.format(e,t,r.lng,{...r,interpolationkey:i[1].trim()}),o.trim())),e=e.replace(i[0],o),this.regexp.lastIndex=0}return e}}let N=e=>{let t={};return(r,n,i)=>{let s=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(s={...s,[i.interpolationkey]:void 0});let o=n+JSON.stringify(s),a=t[o];return a||(a=e(b(n),i),t[o]=a),a(r)}},R=e=>(t,r,n)=>e(b(r),n)(t);class M{constructor(e={}){this.logger=O.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";let r=t.cacheInBuiltFormats?N:R;this.formats={number:r((e,t)=>{let r=new Intl.NumberFormat(e,{...t});return e=>r.format(e)}),currency:r((e,t)=>{let r=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>r.format(e)}),datetime:r((e,t)=>{let r=new Intl.DateTimeFormat(e,{...t});return e=>r.format(e)}),relativetime:r((e,t)=>{let r=new Intl.RelativeTimeFormat(e,{...t});return e=>r.format(e,t.range||"day")}),list:r((e,t)=>{let r=new Intl.ListFormat(e,{...t});return e=>r.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=N(t)}format(e,t,r,n={}){let i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&0>i[0].indexOf(")")&&i.find(e=>e.indexOf(")")>-1)){let e=i.findIndex(e=>e.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:s}=(e=>{let t=e.toLowerCase().trim(),r={};if(e.indexOf("(")>-1){let n=e.split("(");t=n[0].toLowerCase().trim();let i=n[1].substring(0,n[1].length-1);"currency"===t&&0>i.indexOf(":")?r.currency||(r.currency=i.trim()):"relativetime"===t&&0>i.indexOf(":")?r.range||(r.range=i.trim()):i.split(";").forEach(e=>{if(e){let[t,...n]=e.split(":"),i=n.join(":").trim().replace(/^'+|'+$/g,""),s=t.trim();r[s]||(r[s]=i),"false"===i&&(r[s]=!1),"true"===i&&(r[s]=!0),isNaN(i)||(r[s]=parseInt(i,10))}})}return{formatName:t,formatOptions:r}})(t);if(this.formats[i]){let t=e;try{let o=n?.formatParams?.[n.interpolationkey]||{},a=o.locale||o.lng||n.locale||n.lng||r;t=this.formats[i](e,a,{...s,...n,...o})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e)}}class D extends E{constructor(e,t,r,n={}){super(),this.backend=e,this.store=t,this.services=r,this.languageUtils=r.languageUtils,this.options=n,this.logger=O.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,n.backend,n)}queueLoad(e,t,r,n){let i={},s={},o={},a={};
11return e.forEach(e=>{let n=!0;t.forEach(t=>{let o=`${e}|${t}`;!r.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(1===this.state[o]?void 0===s[o]&&(s[o]=!0):(this.state[o]=1,n=!1,void 0===s[o]&&(s[o]=!0),void 0===i[o]&&(i[o]=!0),void 0===a[t]&&(a[t]=!0)))}),n||(o[e]=!0)}),(Object.keys(i).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(i),pending:Object.keys(s),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(a)}}loaded(e,t,r){let n=e.split("|"),i=n[0],s=n[1];t&&this.emit("failedLoading",i,s,t),!t&&r&&this.store.addResourceBundle(i,s,r,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&r&&(this.state[e]=0);let o={};this.queue.forEach(r=>{((e,t,r)=>{let{obj:n,k:i}=u(e,t,Object);n[i]=n[i]||[],n[i].push(r)})(r.loaded,[i],s),void 0!==r.pending[e]&&(delete r.pending[e],r.pendingCount--),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach(e=>{o[e]||(o[e]={});let t=r.loaded[e];t.length&&t.forEach(t=>{void 0===o[e][t]&&(o[e][t]=!0)})}),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,r,n=0,i=this.retryTimeout,s){if(!e.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:r,tried:n,wait:i,callback:s});this.readingCalls++;let o=(o,a)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}o&&a&&n<this.maxRetries?setTimeout(()=>{this.read.call(this,e,t,r,n+1,2*i,s)},i):s(o,a)},a=this.backend[r].bind(this.backend);if(2===a.length){try{let r=a(e,t);r&&"function"==typeof r.then?r.then(e=>o(null,e)).catch(o):o(null,r)}catch(e){o(e)}return}return a(e,t,o)}prepareLoading(e,t,r={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();n(e)&&(e=this.languageUtils.toResolveHierarchy(e)),n(t)&&(t=[t]);let s=this.queueLoad(e,t,r,i);if(!s.toLoad.length)return s.pending.length||i(),null;s.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,r){this.prepareLoading(e,t,{},r)}reload(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}loadOne(e,t=""){let r=e.split("|"),n=r[0],i=r[1];this.read(n,i,"read",void 0,void 0,(r,s)=>{r&&this.logger.warn(`${t}loading namespace ${i} for language ${n} failed`,r),!r&&s&&this.logger.log(`${t}loaded namespace ${i} for language ${n}`,s),this.loaded(e,r,s)})}saveMissing(e,t,r,n,i,s={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t))return void this.logger.warn(`did not save key "${r}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");if(null!=r&&""!==r){if(this.backend?.create){let a={...s,isUpdate:i},l=this.backend.create.bind(this.backend);if(l.length<6)try{let i;(i=5===l.length?l(e,t,r,n,a):l(e,t,r,n))&&"function"==typeof i.then?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else l(e,t,r,n,o,a)}e&&e[0]&&this.store.addResource(e[0],t,r,n)}}}let F=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),n(e[1])&&(t.defaultValue=e[1]),n(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let r=e[3]||e[2];
11Object.keys(r).forEach(e=>{t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),U=e=>(n(e.ns)&&(e.ns=[e.ns]),n(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),n(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),"boolean"==typeof e.initImmediate&&(e.initAsync=e.initImmediate),e),V=()=>{};class z extends E{constructor(e={},t){if(super(),this.options=U(e),this.services={},this.logger=O,this.modules={external:[]},(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})})(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(n(e.ns)?e.defaultNS=e.ns:0>e.ns.indexOf("translation")&&(e.defaultNS=e.ns[0]));let r=F();this.options={...r,...this.options,...U(e)},this.options.interpolation={...r.interpolation,...this.options.interpolation}
11,void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator);let s=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?O.init(s(this.modules.logger),this.options):O.init(null,this.options),e=this.modules.formatter?this.modules.formatter:M;let t=new C(this.options);this.store=new S(this.options.resources,this.options);let n=this.services;n.logger=O,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new $(t,{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"),e&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(n.formatter=s(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new A(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new D(s(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=s(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=s(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new T(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=V),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let o=i(),a=()=>{let e=(e,r)=>{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),o.resolve(r),t(e,r)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),o}loadResources(e,t=V){let r=t,i=n(e)?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(i?.toLowerCase()==="cimode"&&(!this.options.preload||0===this.options.preload.length))return r();let e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&0>e.indexOf(t)&&e.push(t)})};i?t(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),r(e)})}else r(null)}reloadResources(e,t,r){let n=i();return"function"==typeof e&&(r=e,e=void 0),"function"==typeof t&&(r=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),r||(r=V),this.services.backendConnector.reload(e,t,e=>{n.resolve(),r(e)}),n}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&w.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&0>this.languages.indexOf(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let r=i();
11this.emit("languageChanging",e);let s=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(n,i)=>{i?this.isLanguageChangingTo===e&&(s(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,r.resolve((...e)=>this.t(...e)),t&&t(n,(...e)=>this.t(...e))},a=t=>{e||t||!this.services.languageDetector||(t=[]);let r=n(t)?t:t&&t[0],i=this.store.hasLanguageSomeTranslations(r)?r:this.services.languageUtils.getBestMatchFromCodes(n(t)?[t]:t);i&&(this.language||s(i),this.translator.language||this.translator.changeLanguage(i),this.services.languageDetector?.cacheUserLanguage?.(i)),this.loadResources(i,e=>{o(e,i)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}getFixedT(e,t,r){let i=(e,t,...n)=>{let s,o;(s="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(n)):{...t}).lng=s.lng||i.lng,s.lngs=s.lngs||i.lngs,s.ns=s.ns||i.ns,""!==s.keyPrefix&&(s.keyPrefix=s.keyPrefix||r||i.keyPrefix);let a=this.options.keySeparator||".";return s.keyPrefix&&Array.isArray(e)?o=e.map(e=>("function"==typeof e&&(e=j(e,{...this.options,...t})),`${s.keyPrefix}${a}${e}`)):("function"==typeof e&&(e=j(e,{...this.options,...t})),o=s.keyPrefix?`${s.keyPrefix}${a}${e}`:e),this.t(o,s)};return n(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=r,i}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
11if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let r=t.lng||this.resolvedLanguage||this.languages[0],n=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;let s=(e,t)=>{let r=this.services.backendConnector.state[`${e}|${t}`];return -1===r||0===r||2===r};if(t.precheck){let e=t.precheck(this,s);if(void 0!==e)return e}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(r,e)&&(!n||s(i,e)))}loadNamespaces(e,t){let r=i();return this.options.ns?(n(e)&&(e=[e]),e.forEach(e=>{0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){let r=i();n(e)&&(e=[e]);let s=this.options.preload||[],o=e.filter(e=>0>s.indexOf(e)&&this.services.languageUtils.isSupportedCode(e));return o.length?(this.options.preload=s.concat(o),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}let t=this.services?.languageUtils||new C(F());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){let r=new z(e,t);return r.createInstance=z.createInstance,r}cloneInstance(e={},t=V){let r=e.forkResourceStore;r&&delete e.forkResourceStore;let n={...this.options,...e,isClone:!0},i=new z(n);return(void 0!==e.debug||void 0!==e.prefix)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new S(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((r,n)=>(r[n]={...e[t][n]},r),e[t]),e),{}),n),i.services.resourceStore=i.store),e.interpolation&&(i.services.interpolator=new A(n)),i.translator=new T(i.services,n),i.translator.on("*",(e,...t)=>{i.emit(e,...t)}),i.init(n,t),i.translator.options=n,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let G=z.createInstance(),B=G.createInstance;G.dir,G.init,G.loadResources,G.reloadResources,G.use,G.changeLanguage,G.getFixedT,G.t,G.exists,G.setDefaultNamespace,G.hasLoadedNamespace,G.loadNamespaces,G.loadLanguages,e.s(["createInstance",0,B,"default",0,G,"keyFromSelector",0,j],73279);var K=e.i(71599),q=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function H(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},r=e.match(/<\/?([^\s]+?)[/\s>]/);if(r&&(t.name=r[1],(K.default[r[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var n=e.indexOf("-->");return{type:"comment",comment:-1!==n?e.slice(4,n):""}}for(var i=new RegExp(q),s=null;null!==(s=i.exec(e));)if(s[0].trim())if(s[1]){var o=s[1].trim(),a=[o,""];o.indexOf("=")>-1&&(a=o.split("=")),t.attrs[a[0]]=a[1],i.lastIndex--}else s[2]&&(t.attrs[s[2]]=s[3].trim().substring(1,s[3].length-1));return t}var Y=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,J=/^\s*$/,W=Object.create(null);let Q=function(e,t){t||(t={}),t.components||(t.components=W);var r,n=[],i=[],s=-1,o=!1;if(0!==e.indexOf("<")){var a=e.indexOf("<");n.push({type:"text",content:-1===a?e:e.substring(0,a)})}return e.replace(Y,function(a,l){if(o){if(a!=="</"+r.name+">")return;o=!1}var u,c="/"!==a.charAt(1),d=a.startsWith("<!--"),p=l+a.length,h=e.charAt(p);if(d){var f=H(a);return s<0?n.push(f):(u=i[s]).children.push(f),n}if(c&&(s++,"tag"===(r=H(a)).type&&t.components[r.name]&&(r.type="component",o=!0),r.voidElement||o||!h||"<"===h||r.children.push({type:"text",content:e.slice(p,e.indexOf("<",p))}),0===s&&n.push(r),(u=i[s-1])&&u.children.push(r),i[s]=r),(!c||r.voidElement)&&(s>-1&&(r.voidElement||r.name===a.slice(2,-1))&&(r=-1==--s?n:i[s]),!o&&"<"!==h&&h)){u=-1===s?n:i[s].children;var g=e.indexOf("<",p),m=e.slice(p,-1===g?void 0:g);J.test(m)&&(m=" "),(g>-1&&s+u.length>=0||" "!==m)&&u.push({type:"text",content:m})}}),n},Z=(e,t,r,n)=>{let i=[r,{code:t,...n||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,"warn","react-i18next::",!0);ei(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)},X={},ee=(e,t,r,n)=>{ei(r)&&X[r]||(ei(r)&&(X[r]=new Date),Z(e,t,r,n))},et=(e,t)=>()=>{if(e.isInitialized)t();else{let r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}},er=(e,t,r)=>{e.loadNamespaces(t,et(e,r))},en=(e,t,r,n)=>{if(ei(r)&&(r=[r]),e.options.preload&&e.options.preload.indexOf(t)>-1)return er(e,r,n);r.forEach(t=>{0>e.options.ns.indexOf(t)&&e.options.ns.push(t)}),e.loadLanguages(t,et(e,n))},ei=e=>"string"==typeof e,es=e=>"object"==typeof e&&null!==e,eo=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,ea={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"â¦","…":"â¦","/":"/","/":"/"},el=e=>ea[e],eu={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(eo,el)},ec=(e,t)=>{if(!e)return!1;let r=e.props?.children??e.children;return t?r.length>0:!!r},ed=e=>{if(!e)return[];let t=e.props?.children??e.children;return e.props?.i18nIsDynamicList?ep(t):t},ep=e=>Array.isArray(e)?e:[e],eh=(e,t,n,i)=>{if(!e)return"";let s="",o=ep(e),a=t?.transSupportBasicHtmlNodes?t.transKeepBasicHtmlNodesFor??[]:[];return o.forEach((e,o)=>{if(ei(e)){s+=`${e}`;return}if((0,r.isValidElement)(e)){let{props:r,type:l}=e,u=Object.keys(r).length,c=a.indexOf(l)>-1,d=r.children;if(!d&&c&&!u){s+=`<${l}/>`;return}if(!d&&(!c||u)||r.i18nIsDynamicList){s+=`<${o}></${o}>`;return}if(c&&1===u&&ei(d)){s+=`<${l}>${d}</${l}>`;return}let p=eh(d,t,n,i);s+=`<${o}>${p}</${o}>`;return}if(null===e)return void Z(n,"TRANS_NULL_VALUE","Passed in a null value as child",{i18nKey:i});if(es(e)){let{format:t,...r}=e,o=Object.keys(r);if(1===o.length){let e=t?`${o[0]}, ${t}`:o[0];s+=`{{${e}}}`;return}Z(n,"TRANS_INVALID_OBJ","Invalid child - Object should only have keys {{ value, format }} (format is optional).",{i18nKey:i,child:e});return}Z(n,"TRANS_INVALID_VAR","Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.",{i18nKey:i,child:e})}),s},ef=(e,t,n)=>{let i=e.key||t,s=(0,r.cloneElement)(e,{key:i});return!s.props||!s.props.children||0>n.indexOf(`${t}/>`)&&0>n.indexOf(`${t} />`)?s:(0,r.createElement)(function(){return(0,r.createElement)(r.Fragment,null,s)},{key:i})};e.s(["initReactI18next",0,{type:"3rdParty",init(e){((e={})=>{eu={...eu,...e}})(e.options.react),t=e}}],24340);let eg=(0,r.createContext)();class em{constructor(){this.usedNamespaces={}}
11addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}e.s(["Trans",0,function({children:e,count:n,parent:i,i18nKey:s,context:o,tOptions:a={},values:l,defaults:u,components:c,ns:d,i18n:p,t:h,shouldUnescape:f,...g}){let{i18n:m,defaultNS:y}=(0,r.useContext)(eg)||{},b=p||m||t,v=h||b?.t.bind(b);return function({children:e,count:n,parent:i,i18nKey:s,context:o,tOptions:a={},values:l,defaults:u,components:c,ns:d,i18n:p,t:h,shouldUnescape:f,...g}){let m=p||t;if(!m)return ee(m,"NO_I18NEXT_INSTANCE","Trans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey:s}),e;let y=h||m.t.bind(m)||(e=>e),b={...eu,...m.options?.react},v=d||y.ns||m.options?.defaultNS;v=ei(v)?[v]:v||["translation"];let O=eh(e,b,m,s),E=u||a?.defaultValue||O||b.transEmptyNodeValue||("function"==typeof s?j(s):s),{hashTransKey:S}=b,w=s||(S?S(O||E):O||E);m.options?.interpolation?.defaultVariables&&(l=l&&Object.keys(l).length>0?{...l,...m.options.interpolation.defaultVariables}:{...m.options.interpolation.defaultVariables});let x=!l&&(void 0===n||m.options?.interpolation?.alwaysFormat)&&e?{interpolation:{...a.interpolation,prefix:"#$?",suffix:"?$#"}}:a.interpolation,L={...a,context:o||a.context,count:n,...l,...x,defaultValue:E,ns:v},_=w?y(w,L):E;_===w&&E&&(_=E);let T=((e,t,r,n)=>{if(!e)return null;if(Array.isArray(e))return e.map((e,r)=>ef(e,r,t));if(es(e)){let r;return r={},Object.keys(e).forEach(n=>{Object.assign(r,{[n]:ef(e[n],n,t)})}),r}return ee(r,"TRANS_INVALID_COMPONENTS",'<Trans /> "components" prop expects an object or array',{i18nKey:n}),null})(c,_,m,s),C=T||e,k=null;!(!es(T)||Array.isArray(T))&&Object.keys(T).reduce((e,t)=>e&&Number.isNaN(Number.parseFloat(t)),!0)&&(k=T,C=e);let P=((e,t,n,i,s,o,a)=>{if(""===n)return[];let l=s.transKeepBasicHtmlNodesFor||[],u=n&&new RegExp(l.map(e=>`<${e}`).join("|")).test(n);if(!e&&!t&&!u&&!a)return[n];let c=t??{},d=e=>{ep(e).forEach(e=>{ei(e)||(ec(e)?d(ed(e)):es(e)&&!(0,r.isValidElement)(e)&&Object.assign(c,e))})};d(e);let p=((e,t=[],r={})=>{if(!e)return e;let n=[...t,...Object.keys(r)],i="",s=0;for(;s<e.length;)if("<"===e[s]){let t=!1,r=e.slice(s).match(/^<\/(\d+|[a-zA-Z][a-zA-Z0-9-]*)>/);if(r){let e=r[1];(/^\d+$/.test(e)||n.includes(e))&&(t=!0,i+=r[0],s+=r[0].length)}if(!t){let r=e.slice(s).match(/^<(\d+|[a-zA-Z][a-zA-Z0-9-]*)(\s+[\w-]+(?:=(?:"[^"]*"|'[^']*'|[^\s>]+))?)*\s*(\/)?>/);if(r){let e=r[1];(/^\d+$/.test(e)||n.includes(e))&&(t=!0,i+=r[0],s+=r[0].length)}}t||(i+="<",s+=1)}else i+=e[s],s+=1;return i})(n,l,c),h=Q(`<0>${p}</0>`),f={...c,...o},g=(e,t,n)=>{let i=ed(e),s=y(i,t.children,n);return Array.isArray(i)&&i.every(r.isValidElement)&&0===s.length||e.props?.i18nIsDynamicList?i:s},m=(e,t,n,i,s)=>{e.dummy?(e.children=t,n.push((0,r.cloneElement)(e,{key:i},s?void 0:t))):n.push(...r.Children.map([e],e=>{let n="data-i18n-is-dynamic-list",o={key:i,[n]:void 0};return e&&e.props&&Object.keys(e.props).forEach(t=>{"ref"!==t&&"children"!==t&&"i18nIsDynamicList"!==t&&t!==n&&(o[t]=e.props[t])}),(0,r.cloneElement)(e,o,s?null:t)}))},y=(e,n,o)=>{let c=ep(e);return ep(n).reduce((e,n,d)=>{let p=n.children?.[0]?.content&&i.services.interpolator.interpolate(n.children[0].content,f,i.language);if("tag"===n.type){var h,b;let a,v=c[parseInt(n.name,10)];!v&&t&&(v=t[n.name]),1!==o.length||v||(v=o[0][n.name]),v||(v={});let O=0!==Object.keys(n.attrs).length?(h={props:n.attrs},(a={...b=v}).props=Object.assign(h.props,b.props),a):v,E=(0,r.isValidElement)(O),S=E&&ec(n,!0)&&!n.voidElement,w=u&&es(O)&&O.dummy&&!E,x=es(t)&&Object.hasOwnProperty.call(t,n.name);if(ei(O)){let t=i.services.interpolator.interpolate(O,f,i.language);e.push(t)}else if(ec(O)||S){let t=g(O,n,o);m(O,t,e,d)}else if(w)m(O,y(c,n.children,o),e,d);else if(Number.isNaN(parseFloat(n.name)))if(x){let t=g(O,n,o);m(O,t,e,d,n.voidElement)}else if(s.transSupportBasicHtmlNodes&&l.indexOf(n.name)>-1)if(n.voidElement)e.push((0,r.createElement)(n.name,{key:`${n.name}-${d}`}));else{let t=y(c,n.children,o);e.push((0,r.createElement)(n.name,{key:`${n.name}-${d}`},t))}else if(n.voidElement)e.push(`<${n.name} />`);else{let t=y(c,n.children,o);e.push(`<${n.name}>${t}</${n.name}>`)}else if(es(O)&&!E){let t=n.children[0]?p:null;t&&e.push(t)}else m(O,p,e,d,1!==n.children.length||!p)}else if("text"===n.type){let t=s.transWrapTextNodes,o=a?s.unescape(i.services.interpolator.interpolate(n.content,f,i.language)):i.services.interpolator.interpolate(n.content,f,i.language);t?e.push((0,r.createElement)(t,{key:`${n.name}-${d}`},o)):e.push(o)}return e},[])};return ed(y([{dummy:!0,children:e||[]}],h,ep(e||[]))[0])})(C,k,_,m,b,L,f),$=i??b.defaultTransParent;return $?(0,r.createElement)($,g,P):P}({children:e,count:n,parent:i,i18nKey:s,context:o,tOptions:a,values:l,defaults:u,components:c,ns:d||v?.ns||y||b?.options?.defaultNS,i18n:b,t:h,shouldUne
11scape:f,...g})}],9007);let ey={" ":" ","&":"&","<":"<",">":">",""":'"',"'":"'","©":"©","®":"®","™":"â¢","…":"â¦","–":"â","—":"â","‘":"â","’":"â","‚":"â","“":"â","”":"â","„":"â","†":"â ","‡":"â¡","•":"â¢","′":"â²","″":"â³","‹":"â¹","›":"âº","§":"§","¶":"¶","·":"·"," ":"â"," ":"â"," ":"â","€":"â¬","£":"£","¥":"Â¥","¢":"¢","¤":"¤","×":"Ã","÷":"÷","−":"â","±":"±","≠":"â ","≤":"â¤","≥":"â¥","≈":"â","≡":"â¡","∞":"â","∫":"â«","∑":"â","∏":"â","√":"â","∂":"â","‰":"â°","°":"°","µ":"µ","←":"â","↑":"â","→":"â","↓":"â","↔":"â","↵":"âµ","⇐":"â","⇑":"â","⇒":"â","⇓":"â","⇔":"â","α":"α","β":"β","γ":"γ","δ":"δ","ε":"ε","ζ":"ζ","η":"η","θ":"θ","ι":"ι","κ":"κ","λ":"λ","μ":"μ","ν":"ν","ξ":"ξ","ο":"ο","π":"Ï","ρ":"Ï","σ":"Ï","τ":"Ï","υ":"Ï
","φ":"Ï","χ":"Ï","ψ":"Ï","ω":"Ï","Α":"Î","Β":"Î","Γ":"Î","Δ":"Î","Ε":"Î","Ζ
11":"Î","Η":"Î","Θ":"Î","Ι":"Î","Κ":"Î","Λ":"Î","Μ":"Î","Ν":"Î","Ξ":"Î","Ο":"Î","Π":"Î ","Ρ":"Ρ","Σ":"Σ","Τ":"Τ","Υ":"Î¥","Φ":"Φ","Χ":"Χ","Ψ":"Ψ","Ω":"Ω","À":"Ã","Á":"Ã","Â":"Ã","Ã":"Ã","Ä":"Ã","Å":"Ã
","Æ":"Ã","Ç":"Ã","È":"Ã","É":"Ã","Ê":"Ã","Ë":"Ã","Ì":"Ã","Í":"Ã","Î":"Ã","Ï":"Ã","Ð":"Ã","Ñ":"Ã","Ò":"Ã","Ó":"Ã","Ô":"Ã","Õ":"Ã","Ö":"Ã","Ø":"Ã","Ù":"Ã","Ú":"Ã","Û":"Ã","Ü":"Ã","Ý":"Ã","Þ":"Ã","ß":"Ã","à":"à ","á":"á","â":"â","ã":"ã","ä":"ä","å":"Ã¥","æ":"æ","ç":"ç","è":"è","é":"é","ê":"ê","ë":"ë","ì":"ì","í":"Ã","î":"î","ï":"ï","ð":"ð","ñ":"ñ","ò":"ò","ó":"ó","ô":"ô","õ":"õ","ö":"ö","ø":"ø","ù":"ù","ú":"ú","û":"û","ü":"ü","ý":"ý","þ":"þ","ÿ":"ÿ","¡":"¡","¿":"¿","ƒ":"Æ","ˆ":"Ë","˜":"Ë","Œ":"Å","œ":"Å","Š":"Å ","š":"Å¡","Ÿ":"Ÿ","ª":"ª","º":"º","¯":"¯","´":"´","¸":"¸","¹":"¹","²":"²","³":"³","¼":"¼","½":"½","¾":"¾","♠":"â ","♣":"â£","♥":"â¥","♦":"â¦","◊":"â","‾":"â¾","⁄":"â","℘":"â","ℑ":"â","ℜ":"â","ℵ":"âµ"},eb=RegExp(Object.keys(ey).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),"g");var ev=e.i(90979);let eO={t:(e,t)=>ei(t)?t:es(t)&&ei(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,ready:!1},eE=()=>()=>{};e.s(["useTranslation",0,(e,n={})=>{let{i18n:i}=n,{i18n:s,defaultNS:o}=(0,r.useContext)(eg)||{},a=i||s||t;a&&!a.reportNamespaces&&(a.reportNamespaces=new em),a||ee(a,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");let l=(0,r.useMemo)(()=>({...eu,...a?.options?.react,...n}),[a,n]),{useSuspense:u,keyPrefix:c}=l,d=e||o||a?.options?.defaultNS,p=ei(d)?[d]:d||["translation"],h=(0,r.useMemo)(()=>p,p);a?.reportNamespaces?.addUsedNamespaces?.(h);let f=(0,r.useRef)(0),g=(0,r.useCallback)(e=>{if(!a)return eE;let{bindI18n:t,bindI18nStore:r}=l,n=()=>{f.current+=1,e()};return t&&a.on(t,n),r&&a.store.on(r,n),()=>{t&&t.split(" ").forEach(e=>a.off(e,n)),r&&r.split(" ").forEach(e=>a.store.off(e,n))}},[a,l]),m=(0,r.useRef)(),y=(0,r.useCallback)(()=>{if(!a)return eO;let e=!!(a.isInitialized||a.initializedStoreOnce)&&h.every(e=>((e,t,r={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(t,n)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.
11isLanguageChangingTo,e))return!1}}):(ee(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0))(e,a,l)),t=n.lng||a.language,r=f.current,i=m.current;if(i&&i.ready===e&&i.lng===t&&i.keyPrefix===c&&i.revision===r)return i;let s={t:a.getFixedT(t,"fallback"===l.nsMode?h:h[0],c),ready:e,lng:t,keyPrefix:c,revision:r};return m.current=s,s},[a,h,c,l,n.lng]),[b,v]=(0,r.useState)(0),{t:O,ready:E}=(0,ev.useSyncExternalStore)(g,y,y);(0,r.useEffect)(()=>{if(a&&!E&&!u){let e=()=>v(e=>e+1);n.lng?en(a,n.lng,h,e):er(a,h,e)}},[a,n.lng,h,E,u,b]);let S=a||{},w=(0,r.useRef)(null),x=(0,r.useRef)(),j=e=>{let t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;let r=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(r,"__original"))try{Object.defineProperty(r,"__original",{value:e,writable:!1,enumerable:!1,configurable:!1})}catch(e){}return r},L=(0,r.useMemo)(()=>{let e=S?.language,t=S;w.current&&w.current.__original===S?x.current!==e?(w.current=t=j(S),x.current=e):t=w.current:(w.current=t=j(S),x.current=e);let r=[O,t,E];return r.t=O,r.i18n=t,r.ready=E,r},[O,S,E,S.resolvedLanguage,S.language,S.languages]);if(a&&u&&!E)throw new Promise(e=>{let t=()=>e();n.lng?en(a,n.lng,h,t):er(a,h,t)});return L}],71179),e.s(["I18nextProvider",0,function({i18n:e,defaultNS:t,children:n}){let i=(0,r.useMemo)(()=>({i18n:e,defaultNS:t}),[e,t]);return(0,r.createElement)(eg.Provider,{value:i},n)}],47977),e.s([],47620)},81115,(e,t,r)=>{t.exports={id:"google-analytics",description:"Install a Google Analytics tag on your website",website:"https://analytics.google.com/analytics/web/",scripts:[{url:"https://www.googletagmanager.com/gtag/js",params:["id"],strategy:"worker",location:"head",action:"append"},{code:"window.dataLayer=window.dataLayer||[];window.gtag=function gtag(){window.dataLayer.push(arguments);};gtag('js',new Date());gtag('config','${args.id}')",strategy:"worker",location:"head",action:"append"}]}},49886,(e,t,r)=>{"use strict";function n(e,t,r=!1){return t?Object.keys(e).filter(e=>r?!t.includes(e):t.includes(e)).reduce((t,r)=>(t[r]=e[r],t),{}):{}}function i(e,t,r,n){let i=n&&Object.keys(n).length>0?new URL(Object.values(n)[0],e):new URL(e);return t&&r&&t.forEach(e=>{r[e]&&i.searchParams.set(e,r[e])}),i.toString()}function s(e,t,r,n,s){var o;if(!t)return`<${e}></${e}>`;let a=(null==(o=t.src)?void 0:o.url)?Object.assign(Object.assign({},t),{src:i(t.src.url,t.src.params,n,s)}):t,l=Object.keys(Object.assign(Object.assign({},a),r)).reduce((e,t)=>{let n=null==r?void 0:r[t],i=a[t],s=null!=n?n:i,o=!0===s?t:`${t}="${s}"`;return s?e+` ${o}`:e},"");return`<${e}${l}></${e}>`}Object.defineProperty(r,"__esModule",{value:!0}),r.formatData=r.createHtml=r.formatUrl=void 0,r.formatUrl=i,r.createHtml=s,r.formatData=function(e,t){var r,o,a,l,u;let c=n(t,null==(r=e.scripts)?void 0:r.reduce((e,t)=>[...e,...Array.isArray(t.params)?t.params:[]],[])),d=n(t,null==(a=null==(o=e.html)?void 0:o.attributes.src)?void 0:a.params),p=n(t,[null==(u=null==(l=e.html)?void 0:l.attributes.src)?void 0:u.slugParam]),h=n(t,[...Object.keys(c),...Object.keys(d),...Object.keys(p)],!0);return Object.assign(Object.assign({},e),{html:e.html?s(e.html.element,e.html.attributes,h,d,p):null,scripts:e.scripts?e.scripts.map(e=>Object.assign(Object.assign({},e),{url:i(e.url,e.params,c)})):null})}},2369,(e,t,r)=>{"use strict";var n=e.e&&e.e.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.GoogleAnalytics=void 0;let s=i(e.r(81115)),o=e.r(49886);r.GoogleAnalytics=e=>{var t=n(e,[]);return(0,o.formatData)(s.default,t)}},85989,(e,t,r)=>{t.exports={id:"google-maps-embed",description:"Embed a Google Maps embed on your webpage",website:"https://developers.google.com/maps/documentation/embed/get-started",html:{element:"iframe",attributes:{loading:"lazy",src:{url:"https://www.google.com/maps/embed/v1/place",slugParam
11:"mode",params:["key","q","center","zoom","maptype","language","region"]},referrerpolicy:"no-referrer-when-downgrade",frameborder:"0",style:"border:0",allowfullscreen:!0,width:null,height:null}}}},19267,(e,t,r)=>{"use strict";var n=e.e&&e.e.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.GoogleMapsEmbed=void 0;let s=i(e.r(85989)),o=e.r(49886);r.GoogleMapsEmbed=e=>{var t=n(e,[]);return(0,o.formatData)(s.default,t)}},83390,(e,t,r)=>{t.exports={id:"youtube-embed",description:"Embed a YouTube embed on your webpage.",website:"https://github.com/paulirish/lite-youtube-embed",html:{element:"lite-youtube",attributes:{videoid:null,playlabel:null}},stylesheets:["https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.css"],scripts:[{url:"https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.js",strategy:"idle",location:"head",action:"append"}]}},52170,(e,t,r)=>{"use strict";var n=e.e&&e.e.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.YouTubeEmbed=void 0;let s=i(e.r(83390)),o=e.r(49886);r.YouTubeEmbed=e=>{var t=n(e,[]);return(0,o.formatData)(s.default,t)}},83602,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.YouTubeEmbed=r.GoogleMapsEmbed=r.GoogleAnalytics=void 0;var n=e.r(2369);Object.defineProperty(r,"GoogleAnalytics",{enumerable:!0,get:function(){return n.GoogleAnalytics}});var i=e.r(19267);Object.defineProperty(r,"GoogleMapsEmbed",{enumerable:!0,get:function(){return i.GoogleMapsEmbed}});var s=e.r(52170);Object.defineProperty(r,"YouTubeEmbed",{enumerable:!0,get:function(){return s.YouTubeEmbed}})},60121,(e,t,r)=>{"use strict";var n=e.r(91788),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=n.useState,o=n.useEffect,a=n.useLayoutEffect,l=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=s({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return a(function(){i.value=r,i.getSnapshot=t,u(i)&&c({inst:i})},[e,r,t]),o(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(r),r};r.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},90979,(e,t,r)=>{"use strict";e.i(50461),t.exports=e.r(60121)},71599,(e,t,r)=>{t.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},47499,71364,62721,e=>{"use strict";let t,r,n;var i,s,o,a,l,u,c=e.i(91398),d=e.i(91788),p={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},h={0:8203,1:8204,2:8205,3:65279},f=[,,,,].fill(String.fromCodePoint(h[0])).join(""),g=Object.fromEntries(Object.entries(h).map(e=>e.reverse())),m=Object.fromEntries(Object.entries(p).map(e=>e.reverse())),y=`${Object.values(p).map(e=>`\\u{${e.toString(16)}}`).join("")}`,b=RegExp(`[${y}]{4,}`,"gu");function v(e,t){return function(e,t,r="auto"){let n;return!0===r||"auto"===r&&(!(!Number.isNaN(Number(e))||/[a-z]/i.test(e)&&!/\d+(?:[-:\/]\d+){2}(?:T\d+(?:[-:\/]\d+){1,2}(\.\d+)?Z?)?/.test(e))&&Date.parse(e)||function(e){try{new URL(e,e.startsWith("/")?"https://acme.com":void 0)}catch{return!1}return!0}(e))?e:`${e}${n=JSON.stringify(t),`${f}${Array.from(n).map(e=>{let t=e.charCodeAt(0);if(t>255)throw Error(`Only ASCII edit info can be encoded. Error attempting to encode ${n} on character ${e} (${t})`);return Array.from(t.toString(4).padStart(4,"0")).map(e=>String.fromCodePoint(h[e])).join("")}).join("")}`}`}(e,t)}var O=function(){if(l)return a;l=1;var e=function(){if(o)return s;o=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString;return s=function(r,n,i){if("[object Function]"!==t.call(n))throw TypeError("iterator must be a function");var s=r.length;if(s===+s)for(var o=0;o<s;o++)n.call(i,r[o],o,r);else for(var a in r)e.call(r,a)&&n.call(i,r[a],a,r)}}();function t(e,r,n){if(3==arguments.length)return t.set(e,r,n);if(2==arguments.length)return t.get(e,r);var i=t.bind(t,e);for(var s in t)t.hasOwnProperty(s)&&(i[s]=t[s].bind(i,e));return i}return a=t,t.get=function(e,r){for(var n=Array.isArray(r)?r:t.parse(r),i=0;i<n.length;++i){var s=n[i];if(!("object"==typeof e&&s in e))throw Error("Invalid reference token: "+s);e=e[s]}return e},t.set=function(e,r,n){var i=Array.isArray(r)?r:t.parse(r),s=i[0];if(0===i.length)throw Error("Can not set the root object");for(var o=0;o<i.length-1;++o){var a=i[o];"string"!=typeof a&&"number"!=typeof a&&(a=String(a)),"__proto__"!==a&&"constructor"!==a&&"prototype"!==a&&("-"===a&&Array.isArray(e)&&(a=e.length),s=i[o+1],a in e||(s.match(/^(\d+|-)$/)?e[a]=[]:e[a]={}),e=e[a])}return"-"===s&&Array.isArray(e)&&(s=e.length),e[s]=n,this},t.remove=function(e,r){var n=Array.isArray(r)?r:t.parse(r),i=n[n.length-1];if(void 0===i)throw Error('Invalid JSON pointer for remove: "'+r+'"');var s=t.get(e,n.slice(0,-1));if(Array.isArray(s)){var o=+i;
11if(""===i&&isNaN(o))throw Error('Invalid array index: "'+i+'"');Array.prototype.splice.call(s,o,1)}else delete s[i]},t.dict=function(e,r){var n={};return t.walk(e,function(e,t){n[t]=e},r),n},t.walk=function(r,n,i){var s=[];i=i||function(e){var t=Object.prototype.toString.call(e);return"[object Object]"===t||"[object Array]"===t},function r(o){e(o,function(e,o){s.push(String(o)),i(e)?r(e):n(e,t.compile(s)),s.pop()})}(r)},t.has=function(e,r){try{t.get(e,r)}catch{return!1}return!0},t.escape=function(e){return e.toString().replace(/~/g,"~0").replace(/\//g,"~1")},t.unescape=function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")},t.parse=function(e){if(""===e)return[];if("/"!==e.charAt(0))throw Error("Invalid JSON pointer: "+e);return e.substring(1).split(/\//).map(t.unescape)},t.compile=function(e){return 0===e.length?"":"/"+e.map(t.escape).join("/")},a}();let E=(e,t="")=>{let r=[],n=O.get(e,t);if("content"in n&&n.content)for(let i=0;i<n.content.length;i++)"text"===n.content[i].nodeType?r.push(`${t}/content/${i}/value`):r.push(...E(e,`${t}/content/${i}`));return r},S=({entityId:e,entityType:t,space:r,environment:n,field:i,locale:s,editorInterface:o,fieldType:a,targetOrigin:l,platform:u})=>{let c={origin:"contentful.com",href:`${l||"https://app.contentful.com"}/spaces/${r}/environments/${n}/${"Entry"===t?"entries":"assets"}/${e}/?focusedField=${i}&focusedLocale=${s}&source=vercel-content-link`,contentful:{editorInterface:o,fieldType:a}};return"vercel"===u&&delete c.contentful,c},w=e=>["builtin","sidebar-builtin","editor-builtin"].includes(e),x=e=>L.includes(e);function j(e){if("function"==typeof structuredClone)return structuredClone(e);try{return JSON.parse(JSON.stringify(e))}catch(t){return console.warn("Failed to clone data:",e,t),e}}let L=["singleLine","tagEditor","listInput","checkbox","richTextEditor","multipleLine"];function _(e,t,r,n,i,s,o){let a=o?t[o]:t;switch(e){case"Symbol":{let e=v(a,r);O.set(n,i,e);break}case"Text":{let e=v(a,r);O.set(n,i,e);break}case"RichText":(({pointer:e,mappings:t,data:r,hiddenStrings:n})=>{let i=t[e];if(i)for(let s of(delete t[e],E(r,e))){t[s]=i;let e=v(O.get(r,s),n);O.set(r,s,e)}else for(let t of E(r,e)){let e=v(O.get(r,t),n);O.set(r,t,e)}})({pointer:"",mappings:s,data:a,hiddenStrings:r});break;case"Array":{let e=a.map(e=>"string"==typeof e?v(e,r):e);O.set(n,i,e)}}}let T=(e,t,r,n,i)=>{if(!e.fields)return;let{contentSourceMaps:s}=e.sys;if(!s)return;let{mappings:o}=s;for(let s in o){let{source:a}=o[s],l=e.sys.space.sys.id,u=e.sys.environment.sys.id,c=e.sys.id,d=e.sys.type,p=t[a.fieldType],h=r[a.editorInterface];if(w(h.widgetNamespace)&&!x(h.widgetId))continue;let f=s.startsWith("/")?s:`/${s}`;if(O.has(e,f)){let t=O.get(e,f);if(null===t)return;let r=f.split("/").pop();if(!r)return void console.error("Field name could not be extracted from the pointer",f);let s=e.sys.locale;if(s){let a=S({entityId:c,entityType:d,space:l,environment:u,field:r,locale:s,editorInterface:h,fieldType:p,targetOrigin:n,platform:i});_(p,t,a,e,f,o)}else Object.keys(t).forEach(s=>{let a=S({entityId:c,entityType:d,space:l,environment:u,field:r,locale:s,editorInterface:h,fieldType:p,targetOrigin:n,platform:i});_(p,t,a,e,`${f}/${s}`,o,s)})}}},C="4.7.0",k=!1,P=e=>(...t)=>{k&&console[e](...t)},$={error:P("error"),warn:P("warn"),log:P("log")},I="live-preview-editor",A="live-preview-sdk",N=new Set(["AREA","BASE","BR","COL","EMBED","HR","IMG","INPUT","LINK","META","PARAM","SOURCE","TRACK","WBR"]);function R(e,t,r){let n={...t,method:e,source:A,location:window.location.href,version:C};$.log("Send message",n),r.forEach(e=>{window.top?.postMessage(n,e)})}function M(e,t=100){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>{e.apply(this,n)},t)}}var D="u">typeof globalThis?globalThis:"u">typeof window?window:e.g,F={exports:{}};F.exports;let U=(u||(u=1,function(e,t){var r,n,i,s="__lodash_hash_undefined__",o="[object Arguments]",a="[object Array]",l="[object Boolean]",u="[object Date]",c="[object Error]",d="[object Function]",p="[object Map]",h="[object Number]",f="[object Object]",g="[object Promise]",m="[object RegExp]",y="[object Set]",b="[object String]",v="[object WeakMap]",O="[object ArrayBuffer]",E="[object DataView]",S=/^\[object .+?Constructor\]$/,w=/^(?:0|[1-9]\d*)$/,x={};
11x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x[o]=x[a]=x[O]=x[l]=x[E]=x[u]=x[c]=x[d]=x[p]=x[h]=x[f]=x[m]=x[y]=x[b]=x[v]=!1;var j="object"==typeof D&&D&&D.Object===Object&&D,L="object"==typeof self&&self&&self.Object===Object&&self,_=j||L||Function("return this")(),T=t&&!t.nodeType&&t,C=T&&e&&!e.nodeType&&e,k=C&&C.exports===T,P=k&&j.process,$=function(){try{return P&&P.binding&&P.binding("util")}catch{}}(),I=$&&$.isTypedArray;function A(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function N(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var R=Array.prototype,M=Function.prototype,F=Object.prototype,U=_["__core-js_shared__"],V=M.toString,z=F.hasOwnProperty,G=(r=/[^.]+$/.exec(U&&U.keys&&U.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",B=F.toString,K=RegExp("^"+V.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),q=k?_.Buffer:void 0,H=_.Symbol,Y=_.Uint8Array,J=F.propertyIsEnumerable,W=R.splice,Q=H?H.toStringTag:void 0,Z=Object.getOwnPropertySymbols,X=q?q.isBuffer:void 0,ee=(n=Object.keys,i=Object,function(e){return n(i(e))}),et=ej(_,"DataView"),er=ej(_,"Map"),en=ej(_,"Promise"),ei=ej(_,"Set"),es=ej(_,"WeakMap"),eo=ej(Object,"create"),ea=eT(et),el=eT(er),eu=eT(en),ec=eT(ei),ed=eT(es),ep=H?H.prototype:void 0,eh=ep?ep.valueOf:void 0;function ef(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function eg(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function em(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ey(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new em;++t<r;)this.add(e[t])}function eb(e){var t=this.__data__=new eg(e);this.size=t.size}function ev(e,t){for(var r=e.length;r--;)if(eC(e[r][0],t))return r;return -1}function eO(e){var t;return null==e?void 0===e?"[object Undefined]":"[object Null]":Q&&Q in Object(e)?function(e){var t=z.call(e,Q),r=e[Q];try{e[Q]=void 0;var n=!0}catch{}var i=B.call(e);return n&&(t?e[Q]=r:delete e[Q]),i}(e):(t=e,B.call(t))}function eE(e){return eR(e)&&eO(e)==o}function eS(e,t,r,n,i,s){var o=1&r,a=e.length,l=t.length;if(a!=l&&!(o&&l>a))return!1;var u=s.get(e);if(u&&s.get(t))return u==t;var c=-1,d=!0,p=2&r?new ey:void 0;for(s.set(e,t),s.set(t,e);++c<a;){var h=e[c],f=t[c];if(n)var g=o?n(f,h,c,t,e,s):n(h,f,c,e,t,s);if(void 0!==g){if(g)continue;d=!1;break}if(p){if(!function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}(t,function(e,t){if(!p.has(t)&&(h===e||i(h,e,r,n,s)))return p.push(t)})){d=!1;break}}else if(!(h===f||i(h,f,r,n,s))){d=!1;break}}return s.delete(e),s.delete(t),d}function ew(e){var t;return t=eD(e),eP(e)?t:function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}(t,eL(e))}function ex(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function ej(e,t){var r,n=e?.[t];return!(!eN(n)||(r=n,G&&G in r))&&(eI(n)?K:S).test(eT(n))?n:void 0}ef.prototype.clear=function(){this.__data__=eo?eo(null):{},this.size=0},ef.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t},ef.prototype.get=function(e){var t=this.__data__;if(eo){var r=t[e];return r===s?void 0:r}return z.call(t,e)?t[e]:void 0},ef.prototype.has=function(e){var t=this.__data__;return eo?void 0!==t[e]:z.call(t,e)},ef.prototype.set=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=eo&&void 0===t?s:t,this},eg.prototype.clear=function(){this.__data__=[],this.size=0},eg.prototype.delete=function(e){var t=this.__data__,r=ev(t,e);return!(r<0)&&(r==t.length-1?t.pop():W.call(t,r,1),--this.size,!0)},eg.prototype.get=function(e){var t=this.__data__,r=ev(t,e);return r<0?void 0:t[r][1]},eg.prototype.has=function(e){return ev(this.__data__,e)>-1},eg.prototype.set=function(e,t){var r=this.__data__,n=ev(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},em.prototype.clear=function(){this.size=0,this.__data__={hash:new ef,map:new(er||eg),string:new ef}},em.prototype.delete=function(e){var t=ex(this,e).delete(e);return this.size-=!!t,t},em.prototype.get=function(e){return ex(this,e).get(e)},em.prototype.has=function(e){return ex(this,e).has(e)},em.prototype.set=function(e,t){var r=ex(this,e),n=r.size;return r.set(e,t),this.size+=+(r.size!=n),this},ey.prototype.add=ey.prototype.push=function(e){return this.__data__.set(e,s),this},ey.prototype.has=function(e){return this.__data__.has(e)},eb.prototype.clear=function(){this.__data__=new eg,this.size=0},eb.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},eb.prototype.get=function(e){return this.__data__.get(e)},eb.prototype.has=function(e){return this.__data__.has(e)},eb.prototype.set=function(e,t){var r=this.__data__;if(r instanceof eg){var n=r.__data__;if(!er||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new em(n)}return r.set(e,t),this.size=r.size,this};var eL=Z?function(e){return null==e?[]:function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,s=[];++r<n;){var o=e[r];t(o,r,e)&&(s[i++]=o)}return s}(Z(e=Object(e)),function(t){return J.call(e,t)})}:function(){return[]},e_=eO;function eT(e){if(null!=e){try{return V.call(e)}catch{}try{return e+""}catch{}}return""}function eC(e,t){return e===t||e!=e&&t!=t}(et&&e_(new et(new ArrayBuffer(1)))!=E||er&&e_(new er)!=p||en&&e_(en.resolve())!=g||ei&&e_(new ei)!=y||es&&e_(new es)!=v)&&(e_=function(e){var t=eO(e),r=t==f?e.constructor:void 0,n=r?eT(r):"";if(n)switch(n){case ea:return E;case el:return p;case eu:return g;case ec:return y;case ed:return v}return t});var ek=eE(function(){return arguments}())?eE:function(e){return eR(e)&&z.call(e,"callee")&&!J.call(e,"callee")},eP=Array.isArray,e$=X||function(){return!1};function eI(e){if(!eN(e))return!1;var t=eO(e);return t==d||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function eA(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}function eN(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eR(e){return null!=e&&"object"==typeof e}var eM=I?function(e){return I(e)}:function(e){return eR(e)&&eA(e.length)&&!!x[eO(e)]};function eD(e){return null!=e&&eA(e.length)&&!eI(e)?function(e){var t,r,n=eP(e),i=!n&&ek(e),s=!n&&!i&&e$(e),o=!n&&!i&&!s&&eM(e),a=n||i||s||o,l=a?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],u=l.length;for(var c in e){z.call(e,c)&&!(a&&("length"==c||s&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||(t=c,(r=(r=u)??0x1fffffffffffff)&&("number"==typeof t||w.test(t))&&t>-1&&t%1==0&&t<r)))&&l.push(c)}return l}(e):function(e){if(r=(t=e)&&t.constructor,t!==("function"==typeof r&&r.prototype||F))return ee(e);var t,r,n=[];for(var i in Object(e))z.call(e,i)&&"constructor"!=i&&n.push(i);return n}(e)}e.exports=function(e,t){return function e(t,r,n,i,s){return t===r||(null!=t&&null!=r&&(eR(t)||eR(r))?function(e,t,r,n,i,s){var d=eP(e),g=eP(t),v=d?a:e_(e),S=g?a:e_(t);v=v==o?f:v,S=S==o?f:S;var w=v==f,x=S==f,j=v==S;if(j&&e$(e)){if(!e$(t))return!1;d=!0,w=!1}if(j&&!w)return s||(s=new eb),d||eM(e)?eS(e,t,r,n,i,s):function(e,t,r,n,i,s,o){switch(r){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case O:return!(e.byteLength!=t.byteLength||!s(new Y(e),new Y(t)));case l:case u:case h:return eC(+e,+t);case c:return e.name==t.name&&e.message==t.message;case m:case b:return e==t+"";case p:var a=A;case y:var d=1&n;if(a||(a=N),e.size!=t.size&&!d)break;var f=o.get(e);if(f)return f==t;n|=2,o.set(e,t);var g=eS(a(e),a(t),n,i,s,o);return o.delete(e),g;case"[object Symbol]":if(eh)return eh.call(e)==eh.call(t)}return!1}(e,t,v,r,n,i,s);if(!(1&r)){var L=w&&z.call(e,"__wrapped__"),_=x&&z.call(t,"__wrapped__");
11if(L||_){var T=L?e.value():e,C=_?t.value():t;return s||(s=new eb),i(T,C,r,n,s)}}return!!j&&(s||(s=new eb),function(e,t,r,n,i,s){var o=1&r,a=ew(e),l=a.length;if(l!=ew(t).length&&!o)return!1;for(var u=l;u--;){var c=a[u];if(!(o?c in t:z.call(t,c)))return!1}var d=s.get(e);if(d&&s.get(t))return d==t;var p=!0;s.set(e,t),s.set(t,e);for(var h=o;++u<l;){var f=e[c=a[u]],g=t[c];if(n)var m=o?n(g,f,c,t,e,s):n(f,g,c,e,t,s);if(!(void 0===m?f===g||i(f,g,r,n,s):m)){p=!1;break}h||(h="constructor"==c)}if(p&&!h){var y=e.constructor,b=t.constructor;y!=b&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b)&&(p=!1)}return s.delete(e),s.delete(t),p}(e,t,r,n,i,s))}(t,r,n,i,e,s):t!=t&&r!=r)}(e,t)}}(F,F.exports)),(i=F.exports)&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default"))?i.default:i;var V=((t=V||{}).FIELD_ID="data-contentful-field-id",t.ENTRY_ID="data-contentful-entry-id",t.ASSET_ID="data-contentful-asset-id",t.LOCALE="data-contentful-locale",t.SPACE="data-contentful-space",t.ENVIRONMENT="data-contentful-environment",t),z=((r=z||{}).MOUSE_MOVE="MOUSE_MOVE",r.SCROLL_START="SCROLL_START",r.SCROLL_END="SCROLL_END",r.RESIZE_START="RESIZE_START",r.RESIZE_END="RESIZE_END",r.TAGGED_ELEMENTS="TAGGED_ELEMENTS",r.INSPECTOR_MODE_CHANGED="INSPECTOR_MODE_CHANGED",r),G={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},B={0:8203,1:8204,2:8205,3:65279};[,,,,].fill(String.fromCodePoint(B[0])).join(""),Object.fromEntries(Object.entries(B).map(e=>e.reverse())),Object.fromEntries(Object.entries(G).map(e=>e.reverse()));var K=`${Object.values(G).map(e=>`\\u{${e.toString(16)}}`).join("")}`,q=RegExp(`[${K}]{4,}`,"gu");function H(e,t){return e.href===t.href}function Y({root:e=window.document,options:t}){var r,n;let i,s=[...t.ignoreManuallyTaggedElements?[]:e.querySelectorAll(`[${V.ASSET_ID}][${V.FIELD_ID}], [${V.ENTRY_ID}][${V.FIELD_ID}]`)].map(e=>({element:e,attributes:function(e,t){if(!(e&&e.nodeType===Node.ELEMENT_NODE&&!(!e.hasAttribute(V.FIELD_ID)||!e.hasAttribute(V.ENTRY_ID)&&!e.hasAttribute(V.ASSET_ID))))return null;let r={fieldId:e.getAttribute(V.FIELD_ID),locale:e.getAttribute(V.LOCALE)??t.locale,environment:e.getAttribute(V.ENVIRONMENT)??t.environment,space:e.getAttribute(V.SPACE)??t.space,manuallyTagged:!0};if(!r.fieldId)return $.warn("Element is missing field ID attribute and cannot be tagged",{id:e.getAttribute(V.ENTRY_ID)??e.getAttribute(V.ASSET_ID),sharedProps:r}),null;let n=e.getAttribute(V.ENTRY_ID);if(n)return{...r,entryId:n};let i=e.getAttribute(V.ASSET_ID);return i?{...r,assetId:i}:null}(e,t)})).filter(({attributes:e})=>null!==e),o=[];for(let{node:t,text:n}of(r="body"in e?e.body:e,i=[],"function"==typeof r.matches&&r.matches("*")&&(i=[r]),[...i,...Array.from(r.querySelectorAll("*:not(script,style,meta,title)"))].map(e=>{var t;return{node:e,text:(t=e).matches("input[type=submit], input[type=button], input[type=reset]")?t.value:t.matches("img, video")?t.alt:Array.from(t.childNodes).filter(e=>e.nodeType===Node.TEXT_NODE&&!!e.textContent).map(e=>e.textContent).join("")}}).filter(({text:e})=>!!(e&&e.match(q))))){let e=function(e){let t=e.match(b);return t?function(e,t=!1){let r=Array.from(e);if(r.length%2==0){if(r.length%4||!e.startsWith(f))return function(e,t){var r;let n=[];for(let t=.5*e.length;t--;){let r=`${m[e[2*t].codePointAt(0)]}${m[e[2*t+1].codePointAt(0)]}`;n.unshift(String.fromCharCode(parseInt(r,16)))}let i=[],s=[n.join("")],o=10;for(;s.length;){let e=s.shift();try{if(i.push(JSON.parse(e)),t)break}catch(n){if(!o--)throw n;let t=+(null==(r=n.message.match(/\sposition\s(\d+)$/))?void 0:r[1]);if(!t)throw n;s.unshift(e.substring(0,t),e.substring(t))}}return i}(r,t)}else throw Error("Encoded data has invalid length");let n=[];for(let e=.25*r.length;e--;){let t=r.slice(4*e,4*e+4).map(e=>g[e.codePointAt(0)]).join("");n.unshift(String.fromCharCode(parseInt(t,4)))}if(t){n.shift();let e=n.indexOf("\0");return -1===e&&(e=n.length),[JSON.parse(n.slice(0,e).join(""))]}
11return n.join("").split("\0").filter(Boolean).map(e=>JSON.parse(e))}(t[0],!0)[0]:void 0}(n);if(!e||!e.origin.includes("contentful.com")){$.warn("Element has missing or invalid ContentSourceMap, please check if you have correctly enabled ContentSourceMaps and that the element's data originates from Contentful",{node:t,sourceMap:e});continue}if(!(function(e,t){for(let r of t)if(r.element===e||r.element.contains(e))return!0;return!1}(t,s)||o.some(r=>r.element.contains(t)&&H(r.sourceMap,e)))){if(t.matches("img")){let r=t.closest("figure")||t.closest("picture")||t;o.push({element:r,sourceMap:e});continue}o.push({element:t,sourceMap:e})}}let a=o.filter((e,t)=>o.findIndex(t=>!(!H(e.sourceMap,t.sourceMap)||e.element!==t.element))===t);for(let{element:e,sourceMap:t}of a){let r=null;if(t.href){let n=W(t.href);if(!n)continue;if("Asset"===n.entityType)r={fieldId:n.fieldId,locale:n.locale,space:n.space,environment:n.environment,assetId:n.entityId};else if("Entry"===n.entityType)r={fieldId:n.fieldId,locale:n.locale,space:n.space,environment:n.environment,entryId:n.entityId};else{$.warn("Unknown entityType",{element:e,sourceMap:t});continue}}else{if(t.contentful&&(n=t.contentful)&&"string"==typeof n.entity&&"string"==typeof n.field&&"string"==typeof n.locale&&"string"==typeof n.space&&"string"==typeof n.environment&&("Asset"===n.entityType||"Entry"===n.entityType)){let n=t.contentful;if(!n.entity||!n.field||!n.locale||!n.space||!n.environment){$.warn("Element has missing information in their ContentSourceMap, please check if you have restricted the platform for the encoding. (Missing parameters in `contentful`)",{element:e,sourceMap:t});continue}let i={fieldId:n.field,locale:n.locale,space:n.space,environment:n.environment};if("Asset"===n.entityType)i.assetId=n.entity,r=i;else if("Entry"===n.entityType)i.entryId=n.entity,r=i;else{$.warn("Unknown entityType in contentful data",{element:e,sourceMap:t});continue}}else{$.warn("Element has neither href nor contentful data in their ContentSourceMap, unable to extract attributes.",{element:e,sourceMap:t});continue}}s.push({element:e,attributes:r})}let l=s.filter(({attributes:e})=>e?.manuallyTagged===!1||!e?.manuallyTagged).length;return{taggedElements:s,manuallyTaggedCount:s.length-l,automaticallyTaggedCount:l,autoTaggedElements:a}}function J({options:e}){return[...new Set(Y({options:e}).taggedElements.map(e=>e.attributes&&"entryId"in e.attributes?e.attributes.entryId:null).filter(Boolean))]}function W(e){try{let t,r,n=new URL(e),i=n.searchParams.get("focusedField"),s=n.searchParams.get("focusedLocale"),o=n.pathname.split("/").filter(Boolean),a=o.indexOf("spaces"),l=o.indexOf("environments"),u=-1!==a?o[a+1]:void 0,c=-1!==l?o[l+1]:void 0,d=o.indexOf("entries"),p=o.indexOf("assets");return -1!==d?(t="Entry",r=o[d+1]):-1!==p&&(t="Asset",r=o[p+1]),t&&r?i?s?u&&c?{entityId:r,entityType:t,fieldId:i,locale:s,space:u,environment:c}:(console.warn("Missing space or environment in href path",{href:e}),null):(console.warn("Missing focusedLocale query parameter in href",{href:e}),null):(console.warn("Missing focusedField query parameter in href",{href:e}),null):(console.warn("Unable to determine entityType or entityId from href",{href:e}),null)}catch(t){return console.warn("Invalid href URL",{href:e,error:t}),null}}class Q{constructor(e){this.options=e,this.intersectionObserver=new IntersectionObserver(e=>{let t=this.taggedElements;for(let r of e)if(r.isIntersecting)for(let e of t)e.element===r.target&&(e.coordinates=r.intersectionRect,e.isVisible=r.target.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0}));this.taggedElements=t,this.sendTaggedElements()},{threshold:.15})}delay=300;isScrolling=!1;scrollTimeout;isResizing=!1;resizeTimeout;hoveredElement;taggedElements=[];manuallyTaggedCount=0;automaticallyTaggedCount=0;intersectionObserver;observersCB=[];cleanupCB=[];init=()=>{this.cleanupCB=[this.addScrollListener(),this.addMutationListener(document.body),this.addResizeListener(),this.addHoverListener()],this.updateElements()};cleanup=()=>{this.observersCB.forEach(e=>
11e()),this.cleanupCB.forEach(e=>e())};receiveMessage=e=>{if(e.method===z.INSPECTOR_MODE_CHANGED){let{isInspectorActive:t}=e;t?this.init():this.cleanup()}};observe=e=>{this.intersectionObserver.observe(e);let t=this.addMutationListener(e);this.observersCB.push(t,()=>this.intersectionObserver.unobserve(e))};addScrollListener=()=>{let{targetOrigin:e}=this.options,t=()=>{this.isScrolling||(this.isScrolling=!0,R(z.SCROLL_START,{},e)),this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(()=>{this.isScrolling=!1,R(z.SCROLL_END,{},e),this.updateElements()},this.delay)},r={capture:!0,passive:!0};return window.addEventListener("scroll",t,r),()=>window.removeEventListener("scroll",t,r)};addMutationListener=e=>{let t=new MutationObserver(()=>{this.updateElements()});return t.observe(e,{characterData:!0,attributes:!0,attributeFilter:[V.ENTRY_ID,V.FIELD_ID,V.LOCALE,V.SPACE,V.ENVIRONMENT,"class","style"],childList:!0,subtree:!0}),()=>t.disconnect()};addResizeListener=()=>{let{targetOrigin:e}=this.options,t=new ResizeObserver(()=>{this.isResizing||(this.isResizing=!0,R(z.RESIZE_START,{},e)),this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{this.isResizing=!1,R(z.RESIZE_END,{},e),this.updateElements()},this.delay)});return t.observe(document.body),()=>t.disconnect()};addHoverListener=()=>{let e=M(e=>{let t;for(let r of e){let e=r;if("BODY"===e.nodeName)break;let n=this.taggedElements.find(t=>t.element===e);if(n){t=n;break}}this.hoveredElement=t?.element,this.updateElements()},this.delay),t=t=>{e(t.composedPath())};return window.addEventListener("mouseover",t,{passive:!0}),()=>window.removeEventListener("mouseover",t)};sendTaggedElements=()=>{R(z.TAGGED_ELEMENTS,{elements:this.taggedElements.map(e=>({coordinates:e.coordinates,isVisible:!!e.isVisible,attributes:e.attributes,isHovered:this.hoveredElement===e.element,isCoveredByOtherElement:!!e.isCoveredByOtherElement,snapshot:N.has(e.element.tagName.toUpperCase())?{[e.element.tagName.toLowerCase()]:Array.from(e.element.attributes).map(e=>`${e.name}="${e.value}"`).join(" ")}:{[e.element.tagName.toLowerCase()]:e.element.innerHTML}})),automaticallyTaggedCount:this.automaticallyTaggedCount,manuallyTaggedCount:this.manuallyTaggedCount},this.options.targetOrigin)};updateElements=()=>{let{taggedElements:e,manuallyTaggedCount:t,automaticallyTaggedCount:r}=Y({options:this.options}),n=((e,t=window.document)=>((e,t=window.document)=>e.map(e=>({...e,isVisible:e.element.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0}),isCoveredByOtherElement:((e,t,r=window.document)=>{let{top:n,right:i,bottom:s,left:o}=t,a=r.elementFromPoint(o+1,n+1),l=r.elementFromPoint(i-1,n+1),u=r.elementFromPoint(o+1,s-1),c=r.elementFromPoint(i-1,s-1);return a!==e||l!==e||u!==e||c!==e})(e.element,e.coordinates,t)})))(e.map(({element:e,attributes:t})=>({element:e,coordinates:e.getBoundingClientRect(),attributes:t})),t))(e);U(n,this.taggedElements)||(this.observersCB.forEach(e=>e()),this.observersCB=[],this.taggedElements=n,e.forEach(({element:e})=>this.observe(e)),this.manuallyTaggedCount=t,this.automaticallyTaggedCount=r)}}let{stringify:Z}=JSON,X=String,ee=(e,t)=>t,et=(e,t,r)=>{let n=X(t.push(r)-1);return e.set(r,n),n};var er=((n=er||{}).CONNECTED="CONNECTED",n.DISCONNECTED="DISCONNECTED",n.ERROR="ERROR",n.TAGGED_FIELD_CLICKED="TAGGED_FIELD_CLICKED",n.URL_CHANGED="URL_CHANGED",n.SUBSCRIBED="SUBSCRIBED",n.UNSUBSCRIBED="UNSUBSCRIBED",n.ENTRY_UPDATED="ENTRY_UPDATED",n.ENTRY_SAVED="ENTRY_SAVED",n.DEBUG_MODE_ENABLED="DEBUG_MODE_ENABLED",n);function en(e,t){R("TAGGED_FIELD_CLICKED",{action:"TAGGED_FIELD_CLICKED",...e},t)}function ei(e,t){R("TAGGED_FIELD_CLICKED",{action:"TAGGED_FIELD_CLICKED",...e},t)}class es{subscriptions=new Map;defaultLocale;sendMessage;constructor({locale:e,targetOrigin:t}){this.defaultLocale=e,this.sendMessage=(e,r)=>R(e,r,t)}async receiveMessage(e){if(e.method===er.ENTRY_UPDATED){let{data:t,subscriptionId:r}=e,n=this.subscriptions.get(r);n?(n.callback(t),n.data=t,this.subscriptions.set(r,n)):$.error("Received an update for an unknown subscription",{subscriptionId:r,data:t,subscriptions:this.subscriptions})}}subscribe(e){let t=`${performance.now()}-${Math.random().toString(36).slice(2)}`,r=e.locale??this.defaultLocale;this.subscriptions.set(t,{...e});let n={locale:r,event:"edit",id:t,config:(e=>{let t=new Map,r=[],n=[],i=+et(t,r,ee.call({"":e},"",e)),s=!i;for(;i<r.length;)s=!0,n[i]=Z(r[i++],o,void 0);return"["+n.join(",")+"]";function o(e,n){if(s)return s=!s,n;let i=ee.call(this,e,n);switch(typeof i){case"object":if(null===i)break;case"string":return t.get(i)||et(t,r,i)}return i}})(e)};return this.sendMessage(er.SUBSCRIBED,n),()=>{this.sendMessage(er.UNSUBSCRIBED,n),this.subscriptions.delete(t)}}}class eo{locale;options;inspectorModeEnabled;subscription;constructor({locale:e,options:t,inspectorModeEnabled:r}){this.locale=e,this.options=t,this.inspectorModeEnabled=r}subscribe(e){return this.subscription&&$.log("There is already a subscription for the save event, the existing one will be replaced."),this.subscription=e,()=>{this.subscription=void 0}}receiveMessage(e){if(e.method===er.ENTRY_SAVED&&this.subscription){let{entity:t}=e;this.inspectorModeEnabled?J({options:this.options}).includes(t.sys.id)&&this.subscription(t):this.subscription(t)}}}let ea=["https://app.contentful.com","https://app.eu.contentful.com","http://localhost:3001"];class el{static initialized=!1;static inspectorMode=null;static liveUpdates=null;static saveEvent=null;static inspectorModeEnabled=!0;static liveUpdatesEnabled=!0;static locale;static space;static environment;static sendMessage;static targetOrigin;static init(e){if("object"!=typeof e||!e?.locale)throw Error("Init function has to be called with a locale configuration (for example: `ContentfulLivePreview.init({ locale: 'en-US'})`)");let{debugMode:t,enableInspectorMode:r,enableLiveUpdates:n,locale:i,environment:s,space:o,targetOrigin:a}=e;if("u">typeof window){if(!function(){try{return window.top?.location.href!==window.location.href}catch{return!0}}())return this.liveUpdatesEnabled=!1,Promise.resolve(null);if(t&&(k=t),"boolean"==typeof r&&(this.inspectorModeEnabled=r),"boolean"==typeof n&&(this.liveUpdatesEnabled=n),this.locale=i,this.space=o,this.environment=s,this.initTargetOrigin(a),this.initialized)return $.log("You have already initialized the Live Preview SDK."),Promise.resolve(el.inspectorMode);this.inspectorModeEnabled&&(this.inspectorMode=new Q({locale:i,space:o,environment:s,targetOrigin:this.targetOrigin,ignoreManuallyTaggedElements:e.experimental?.ignoreManuallyTaggedElements})),this.liveUpdatesEnabled&&(this.liveUpdates=new es({locale:i,targetOrigin:this.targetOrigin}
11),this.saveEvent=new eo({locale:i,options:{locale:this.locale,space:this.space,environment:this.environment,targetOrigin:this.targetOrigin},inspectorModeEnabled:this.inspectorModeEnabled})),window.addEventListener("message",e=>{if("object"==typeof e.data&&e.data&&"source"in e.data&&e.data.source===I){if($.log("Received message",e.data),e.data.method===er.DEBUG_MODE_ENABLED)return void(k=!0);this.inspectorModeEnabled&&this.inspectorMode?.receiveMessage(e.data),this.liveUpdatesEnabled&&(this.liveUpdates?.receiveMessage(e.data),this.saveEvent?.receiveMessage(e.data))}}),function(e,t=500){let r=window.location.href,n=setInterval(()=>{let t=window.location.href;t!==r&&(r=t,e(t))},t)}(()=>{R(er.URL_CHANGED,{action:er.URL_CHANGED,taggedElementCount:document.querySelectorAll(`[${V.ENTRY_ID}]`).length},this.targetOrigin)});let{taggedElements:l,manuallyTaggedCount:u,automaticallyTaggedCount:c}=this.inspectorModeEnabled?Y({options:{locale:this.locale,space:this.space,environment:this.environment}}):{taggedElements:[],manuallyTaggedCount:0,automaticallyTaggedCount:0},d=l.length;return R(er.CONNECTED,{action:er.CONNECTED,connected:!0,tags:d,taggedElementCount:d,locale:this.locale,isInspectorEnabled:this.inspectorModeEnabled,isLiveUpdatesEnabled:this.liveUpdatesEnabled,manuallyTaggedElementCount:u,automaticallyTaggedElementCount:c},this.targetOrigin),this.initialized=!0,Promise.resolve(el.inspectorMode)}}static initTargetOrigin(e){if(e)this.targetOrigin=Array.isArray(e)?e:[e];else{let e=window.location.ancestorOrigins,t=e?ea.find(t=>e.contains(t)):ea.find(e=>document.referrer.includes(e));if(!t)throw Error("The current origin is not supported. Please provide a targetOrigin in the live preview configuration.");this.targetOrigin=[t]}}static subscribe(e,t){if(!this.liveUpdatesEnabled)return()=>{};let r="string"==typeof e?e:"edit",n="object"==typeof e?e:t;if("save"===r){if(!this.saveEvent)throw Error("Save event is not initialized, please call `ContentfulLivePreview.init()` first.");return this.saveEvent.subscribe(n.callback)}if(!this.liveUpdates)throw Error("Live updates are not initialized, please call `ContentfulLivePreview.init()` first.");return this.liveUpdates.subscribe(n)}static getProps(e){let{fieldId:t,locale:r,environment:n,space:i}=e;if(!this.inspectorModeEnabled)return null;if(t){let s={...r?{[V.LOCALE]:r}:{},...n?{[V.ENVIRONMENT]:n}:{},...i?{[V.SPACE]:i}:{},[V.FIELD_ID]:t};if(r&&(s[V.LOCALE]=r),void 0!==e.assetId)return{...s,[V.ASSET_ID]:e.assetId};if(void 0!==e.entryId)return{...s,[V.ENTRY_ID]:e.entryId}}return $.warn("Missing property for inspector mode",{...e}),null}static toggleInspectorMode(){return this.inspectorModeEnabled=!this.inspectorModeEnabled,this.inspectorModeEnabled}static toggleLiveUpdatesMode(){return this.liveUpdatesEnabled=!this.liveUpdatesEnabled,this.liveUpdatesEnabled}static openEntryInEditor(e){let t={locale:this.locale,environment:this.environment,space:this.space};void 0!==e.assetId&&e.fieldId?ei({...t,...e},this.targetOrigin):void 0!==e.entryId&&e.fieldId?en({...t,...e},this.targetOrigin):$.error("Please provide field id and entry/asset id to openEntryInEditor.",{...e})}static getEntryList(){return J({options:{locale:this.locale,space:this.space,environment:this.environment}})}}e.s(["C",0,el,"I",0,z,"L",0,I,"V",0,C,"a",0,A,"b",0,er,"c",0,ei,"d",0,M,"f",0,(e,t,r)=>{if(!e||!e.extensions||!e.extensions.contentSourceMaps)return console.error("GraphQL response does not contain Content Source Maps information.",e),e;let n=j(e),{spaces:i,environments:s,editorInterfaces:o,fields:a,locales:l,entries:u,assets:c,mappings:d,fieldTypes:p}=n.extensions.contentSourceMaps;for(let e in d){let{source:h}=d[e],f="entry"in h?u[h.entry]:c[h.asset],g="entry"in h?"Entry":"Asset";if(!f)break;let m=i[f.space],y=s[f.environment],b=f.id,v=a[h.field],E=l[h.locale],j=o[h.editorInterface],L=p[h.fieldType];if(!(w(j.widgetNamespace)&&!x(j.widgetId))&&O.has(n,e)){let i=O.get(n,e);if(null!==i){let s=S({entityId:b,entityType:g,space:m,environment:y,field:v,locale:E,editorInterface:j,fieldType:L,targetOrigin:t,platform:r});_(L,i,s,n,e,d)}}}return n},"i",0,U,"l",0,(e,t,r)=>{var n;let i=j(e);if(i.sys&&"items"in i){if(!(null!=(n=i.sys)&&n.contentSourceMapsLookup))return i;let{contentSourceMapsLookup:{fieldTypes:e,editorInterfaces:s}}=i.sys,{items:o,includes:a}=i;o.forEach(n=>
11T(n,e,s,t,r)),a&&a.Entry&&a.Entry.forEach(n=>T(n,e,s,t,r)),a&&a.Asset&&a.Asset.forEach(n=>T(n,e,s,t,r))}else{if(!i.sys.contentSourceMapsLookup)return console.error("Content source maps lookup data is missing"),i;T(i,i.sys.contentSourceMapsLookup.fieldTypes,i.sys.contentSourceMapsLookup.editorInterfaces,t,r)}return i},"o",0,en,"p",0,W,"u",0,function(e){var t;return{cleaned:e.replace(b,""),encoded:(null==(t=e.match(b))?void 0:t[0])||""}}],71364);let eu=(0,d.createContext)(null);function ec({children:e,locale:t,space:r,environment:n,debugMode:i=!1,enableInspectorMode:s=!0,enableLiveUpdates:o=!0,targetOrigin:a,experimental:l}){if(!t)throw Error('ContentfulLivePreviewProvider has to be called with a locale property (for example: `<ContentfulLivePreviewProvider locale="en-US">{children}</ContentfulLivePreviewProvider>`');el.init({locale:t,space:r,environment:n,debugMode:i,enableInspectorMode:s,enableLiveUpdates:o,targetOrigin:a,experimental:l});let u=(0,d.useMemo)(()=>({locale:t,space:r,environment:n,debugMode:i,enableInspectorMode:s,enableLiveUpdates:o,targetOrigin:a}),[t,r,n,i,s,o,a]);return(0,c.jsx)(eu.Provider,{value:u,children:e})}e.s(["ContentfulLivePreviewProvider",0,ec,"useContentfulLiveUpdates",0,function(e,t,r=!1){var n,i;let s,o,[a,l]=(0,d.useState)({data:e,version:1}),u=(0,d.useRef)(e),c=(0,d.useRef)(M(l)),p=(0,d.useContext)(eu),h="object"==typeof t?t:{locale:t,skip:r},f=(0,d.useMemo)(()=>(!p||!!p.enableLiveUpdates)&&!h.skip&&!!(Array.isArray(e)&&e.length||e&&"object"==typeof e&&Object.keys(e).length),[p,h.skip,e]);return n=()=>{if(u.current!==e&&(l({data:e,version:1}),u.current=e),f)return el.subscribe("edit",{data:e,locale:h.locale,query:h.query,callback:e=>{c.current(t=>({data:e,version:t.version+1}))}})},i=[e,f,h.locale,h.query],(0,d.useEffect)(n,(s=(0,d.useRef)(i),o=(0,d.useRef)(0),U(i,s.current)||(s.current=i,o.current+=1),(0,d.useMemo)(()=>s.current,[o.current]))),a.data}],62721);let ed=(0,d.createContext)(void 0);e.s(["PreviewProvider",0,function({children:e,isEnabled:t,languageCode:r}){return(0,c.jsx)(ed.Provider,{value:{isEnabled:t,languageCode:r},children:(0,c.jsx)(ec,{locale:r,enableInspectorMode:t,enableLiveUpdates:t,debugMode:t,targetOrigin:["https://app.contentful.com","https://app.eu.contentful.com"],children:e})})},"usePreview",0,function(){let e=(0,d.useContext)(ed);if(!e)throw Error("usePreview must be used within a PreviewProvider");return e}],47499)}]);
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.