(()=>{"use strict";var e={6042:e=>{e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var i,o,r;if(Array.isArray(t)){if((i=t.length)!=n.length)return!1;for(o=i;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((i=(r=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=i;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,r[o]))return!1;for(o=i;0!=o--;){var s=r[o];if(!e(t[s],n[s]))return!1}return!0}return t!=t&&n!=n}}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var r=t[i]={exports:{}};return e[i](r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n0?1:0)-(e<0?1:0)||+e}function g(e){var t=e.getBoundingClientRect();return{height:s(t.height,e.offsetHeight),width:s(t.width,e.offsetWidth)}}function f(e,t,n,i){var o=e&&e[t];return null==o?n:i&&"function"==typeof o?o():o}function _(e){return Math.round(1e6*e)/1e6}function y(e){var t,n,i,r,s,c,l,d,u,m,g,y,v,b,k=1/0,C=[],w=null,E=0;function x(e){P(E+e)}function M(e){var t=A(E+e).abs;return I(t)?t:null}function A(e){var t=Math.floor(Math.abs(_(e/n))),i=_((e%n+n)%n);i===n&&(i=0);var r=h(e),s=l.indexOf(o([],l,!0).reduce((function(e,t){return Math.abs(t-i)0?1:-1),{abs:a+t*c*r,origin:s,rel:a}}function L(e,t,n){var i;if(t||!O())return S(e,n);if(!I(e))return null;var o=A(null!=n?n:E),r=o.abs,s=e-o.rel,a=r+s;i=S(a);var l=S(a-c*h(s));return(null!==l&&Math.abs(l)6&&(C=C.slice(-6)),E=_(t);var i=$().abs;if(i!==w){var o=null!==w;w=i,o&&e.emit("slideChanged")}}function $(o){var a=o?null:function(){if(c){var e=O(),t=e?(E%n+n)%n:E,o=(e?E%n:E)-s[0][2],a=0-(o<0&&e?n-Math.abs(o):o),l=0,d=A(E),p=d.abs,f=d.rel,_=s[f][2],k=s.map((function(t,i){var o=a+l;(o<0-t[0]||o>1)&&(o+=(Math.abs(o)>n-1&&e?n:0)*h(-o));var s=i-f,d=h(s),u=s+p;e&&(-1===d&&o>_&&(u+=c),1===d&&o<_&&(u-=c),null!==g&&uy&&(o-=n));var m=o+t[0]+t[1],v=Math.max(o>=0&&m<=1?1:m<0||o>1?0:o<0?Math.min(1,(t[0]+o)/t[0]):(1-o)/t[0],0);return l+=t[0]+t[1],{abs:u,distance:r.rtl?-1*o+1-t[0]:o,portion:v,size:t[0]}}));return p=N(p),f=T(p),{abs:N(p),length:i,max:b,maxIdx:m,min:v,minIdx:u,position:E,progress:e?t/n:E/i,rel:f,slides:k,slidesLength:n}}}();return t.details=a,e.emit("detailsChanged"),a}return t={absToRel:T,add:x,details:null,distToIdx:M,idxToDist:L,init:function(t){if(function(){if(r=e.options,s=(r.trackConfig||[]).map((function(e){return[f(e,"size",1),f(e,"spacing",0),f(e,"origin",0)]})),c=s.length){n=_(s.reduce((function(e,t){return e+t[0]+t[1]}),0));var t,o=c-1;i=_(n+s[0][2]-s[o][0]-s[o][2]-s[o][1]),l=s.reduce((function(e,n){if(!e)return[0];var i=s[e.length-1],o=e[e.length-1]+(i[0]+i[2])+i[1];return o-=n[2],e[e.length-1]>o&&(o=e[e.length-1]),o=_(o),e.push(o),(!t||t200||(h(i)!==h(t.distance)&&t.distance&&(t={distance:0,lastTimestamp:0,time:0}),t.time&&(t.distance+=i),t.lastTimestamp&&(t.time+=o-t.lastTimestamp),t.lastTimestamp=o),t}),{distance:0,lastTimestamp:0,time:0});return t.distance/t.time||0}}}function v(e){var t,n,i,o,r,s,a,c;function l(e){return 2*e}function d(e){return p(e,a,c)}function u(e){return 1-Math.pow(1-e,3)}function m(){return i?e.track.velocity():0}function g(e,t){void 0===t&&(t=1e3);var n=147e-9+(e=Math.abs(e))/t;return{dist:Math.pow(e,2)/n,dur:e/n}}function f(){var t=e.track.details;t&&(r=t.min,s=t.max,a=t.minIdx,c=t.maxIdx)}function _(){e.animator.stop()}e.on("updated",f),e.on("optionsChanged",f),e.on("created",f),e.on("dragStarted",(function(){i=!1,_(),t=n=e.track.details.abs})),e.on("dragChecked",(function(){i=!0})),e.on("dragEnded",(function(){var i=e.options.mode;"snap"===i&&function(){var i=e.track,o=e.track.details,a=o.position,c=h(m());(a>s||as){var C=k=w)return t;if(a0||a>E&&n<0)return t;var l=(aw&&v0||v===E&&n<0)&&u(t),_+=m,!y&&Math.abs(_*o)>5&&(y=!0),e.track.add(m),f=l,e.emit("dragged")}}function A(t){!s&&e.track.details&&e.track.details.length&&(_=0,s=!0,y=!1,g=!0,c=t.id,S(t),f=I(t),e.emit("dragStarted"))}function L(t){s&&c===t.idChanged&&(s=!1,e.emit("dragEnded"))}function S(e){var t=N(),n=t?e.y:e.x,i=t?e.x:e.y,o=void 0!==v&&void 0!==b&&Math.abs(b-i)<=Math.abs(v-n);return v=n,b=i,o}function I(e){return N()?e.y:e.x}function N(){return e.options.vertical}function O(){o=e.size,r=N()?window.innerHeight:window.innerWidth;var t=e.track.details;t&&(w=t.min,E=t.max)}function T(e){y&&(u(e),d(e))}function P(){if(x.purge(),e.options.drag&&!e.options.disabled){var n;n=e.options.dragSpeed||1,a="function"==typeof n?n:function(e){return e*n},i=e.options.rtl?-1:1,O(),t=e.container,function(){var e="data-keen-slider-clickable";l("[".concat(e,"]:not([").concat(e,"=false])"),t).map((function(e){x.add(e,"dragstart",u),x.add(e,"mousedown",u),x.add(e,"touchstart",u)}))}(),x.add(t,"dragstart",(function(e){d(e)})),x.add(t,"click",T,{capture:!0}),x.input(t,"ksDragStart",A),x.input(t,"ksDrag",M),x.input(t,"ksDragEnd",L),x.input(t,"mousedown",A),x.input(t,"mousemove",M),x.input(t,"mouseleave",L),x.input(t,"mouseup",L),x.input(t,"touchstart",A,{passive:!0}),x.input(t,"touchmove",M,{passive:!1}),x.input(t,"touchend",L),x.input(t,"touchcancel",L),x.add(window,"wheel",(function(e){s&&d(e)}));var o="data-keen-slider-scrollable";l("[".concat(o,"]:not([").concat(o,"=false])"),e.container).map((function(e){return function(e){var t;x.input(e,"touchstart",(function(e){t=I(e),C=!0,k=!0}),{passive:!0}),x.input(e,"touchmove",(function(n){var i=N(),o=i?e.scrollHeight-e.clientHeight:e.scrollWidth-e.clientWidth,r=t-I(n),s=i?e.scrollTop:e.scrollLeft,a=i&&"scroll"===e.style.overflowY||!i&&"scroll"===e.style.overflowX;if(t=I(n),(r<0&&s>0||r>0&&s=1||(e.origin=1-t-(d>1?0:1-d)),e}))}n.options.trackConfig=r}function x(){A();var e=n.size;n.options.disabled||e===r||(r=e,w())}function M(){x(),setTimeout(x,500),setTimeout(x,2e3)}function A(){var e=g(n.container);n.size=(n.options.vertical?e.height:e.width)||1}function L(){n.slides=l(n.options.selector,n.container)}n.container=(d=l(e,document)).length?d[0]:null,n.destroy=function(){u.purge(),n.emit("destroyed"),p(!0)},n.prev=function(){n.moveToIdx(n.track.details.abs-1,!0)},n.next=function(){n.moveToIdx(n.track.details.abs+1,!0)},n.update=w,b(n.options)}}var w=function(e,t,n){try{return function(e,t){var n,i={};return n={emit:function(e){i[e]&&i[e].forEach((function(e){e(n)}));var t=n.options&&n.options[e];t&&t(n)},moveToIdx:function(e,t,i){var o=n.track.idxToDist(e,t);if(o){var r=n.options.defaultAnimation;n.animator.start([{distance:o,duration:f(i||r,"duration",500),easing:f(i||r,"easing",(function(e){return 1+--e*e*e*e*e}))}])}},on:function(e,t,n){void 0===n&&(n=!1),i[e]||(i[e]=[]);var o=i[e].indexOf(t);o>-1?n&&delete i[e][o]:n||i[e].push(t)},options:e},function(){if(n.track=y(n),n.animator=function(e){var t,n,i,o,r,s;function a(t){s||(s=t),c(!0);var r=t-s;r>i&&(r=i);var u=o[n];if(u[3]=this.retries+1}createUrl(){let e=this.url;return e+="?callback=__googleMapsCallback&loading=async",this.apiKey&&(e+=`&key=${this.apiKey}`),this.channel&&(e+=`&channel=${this.channel}`),this.client&&(e+=`&client=${this.client}`),this.libraries.length>0&&(e+=`&libraries=${this.libraries.join(",")}`),this.language&&(e+=`&language=${this.language}`),this.region&&(e+=`®ion=${this.region}`),this.version&&(e+=`&v=${this.version}`),this.mapIds&&(e+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(e+=`&auth_referrer_policy=${this.authReferrerPolicy}`),e}deleteScript(){const e=document.getElementById(this.id);e&&e.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise(((e,t)=>{this.loadCallback((n=>{n?t(n.error):e(window.google)}))}))}importLibrary(e){return this.execute(),google.maps.importLibrary(e)}loadCallback(e){this.callbacks.push(e),this.execute()}setScript(){var e,t;if(document.getElementById(this.id))return void this.callback();const n={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(n).forEach((e=>!n[e]&&delete n[e])),(null===(t=null===(e=null===window||void 0===window?void 0:window.google)||void 0===e?void 0:e.maps)||void 0===t?void 0:t.importLibrary)||(e=>{let t,n,i,o="The Google Maps JavaScript API",r="google",s="importLibrary",a="__ib__",c=document,l=window;l=l[r]||(l[r]={});const d=l.maps||(l.maps={}),u=new Set,m=new URLSearchParams,p=()=>t||(t=new Promise(((s,l)=>{return p=this,h=void 0,f=function*(){var p;for(i in yield n=c.createElement("script"),n.id=this.id,m.set("libraries",[...u]+""),e)m.set(i.replace(/[A-Z]/g,(e=>"_"+e[0].toLowerCase())),e[i]);m.set("callback",r+".maps."+a),n.src=this.url+"?"+m,d[a]=s,n.onerror=()=>t=l(Error(o+" could not load.")),n.nonce=this.nonce||(null===(p=c.querySelector("script[nonce]"))||void 0===p?void 0:p.nonce)||"",c.head.append(n)},new((g=void 0)||(g=Promise))((function(e,t){function n(e){try{o(f.next(e))}catch(e){t(e)}}function i(e){try{o(f.throw(e))}catch(e){t(e)}}function o(t){var o;t.done?e(t.value):(o=t.value,o instanceof g?o:new g((function(e){e(o)}))).then(n,i)}o((f=f.apply(p,h||[])).next())}));var p,h,g,f})));d[s]?console.warn(o+" only loads once. Ignoring:",e):d[s]=(e,...t)=>u.add(e)&&p().then((()=>d[s](e,...t)))})(n);const i=this.libraries.map((e=>this.importLibrary(e)));i.length||i.push(this.importLibrary("core")),Promise.all(i).then((()=>this.callback()),(e=>{const t=new ErrorEvent("error",{error:e});this.loadErrorCallback(t)}))}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(e){if(this.errors.push(e),this.errors.length<=this.retries){const e=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${e} ms.`),setTimeout((()=>{this.deleteScript(),this.setScript()}),e)}else this.onerrorEvent=e,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach((e=>{e(this.onerrorEvent)})),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),!this.loading)if(this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version)return console.warn("Google Maps already loaded outside @googlemaps/js-api-loader. This may result in undesirable behavior as options and script parameters may not match."),void this.callback();this.loading=!0,this.setScript()}}}var I=n(6042),N=n.n(I);const O=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class T{static from(e){if(!(e instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[t,n]=new Uint8Array(e,0,2);if(219!==t)throw new Error("Data does not appear to be in a KDBush format.");const i=n>>4;if(1!==i)throw new Error(`Got v${i} data when expected v1.`);const o=O[15&n];if(!o)throw new Error("Unrecognized array type.");const[r]=new Uint16Array(e,2,1),[s]=new Uint32Array(e,4,1);return new T(s,r,o,e)}constructor(e,t=64,n=Float64Array,i){if(isNaN(e)||e<0)throw new Error(`Unpexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+t,2),65535),this.ArrayType=n,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;const o=O.indexOf(this.ArrayType),r=2*e*this.ArrayType.BYTES_PER_ELEMENT,s=e*this.IndexArrayType.BYTES_PER_ELEMENT,a=(8-s%8)%8;if(o<0)throw new Error(`Unexpected typed array class: ${n}.`);i&&i instanceof ArrayBuffer?(this.data=i,this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+s+a,2*e),this._pos=2*e,this._finished=!0):(this.data=new ArrayBuffer(8+r+s+a),this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+s+a,2*e),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+o]),new Uint16Array(this.data,2,1)[0]=t,new Uint32Array(this.data,4,1)[0]=e)}add(e,t){const n=this._pos>>1;return this.ids[n]=n,this.coords[this._pos++]=e,this.coords[this._pos++]=t,n}finish(){const e=this._pos>>1;if(e!==this.numItems)throw new Error(`Added ${e} items when expected ${this.numItems}.`);return P(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,t,n,i){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:o,coords:r,nodeSize:s}=this,a=[0,o.length-1,0],c=[];for(;a.length;){const l=a.pop()||0,d=a.pop()||0,u=a.pop()||0;if(d-u<=s){for(let s=u;s<=d;s++){const a=r[2*s],l=r[2*s+1];a>=e&&a<=n&&l>=t&&l<=i&&c.push(o[s])}continue}const m=u+d>>1,p=r[2*m],h=r[2*m+1];p>=e&&p<=n&&h>=t&&h<=i&&c.push(o[m]),(0===l?e<=p:t<=h)&&(a.push(u),a.push(m-1),a.push(1-l)),(0===l?n>=p:i>=h)&&(a.push(m+1),a.push(d),a.push(1-l))}return c}within(e,t,n){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:i,coords:o,nodeSize:r}=this,s=[0,i.length-1,0],a=[],c=n*n;for(;s.length;){const l=s.pop()||0,d=s.pop()||0,u=s.pop()||0;if(d-u<=r){for(let n=u;n<=d;n++)D(o[2*n],o[2*n+1],e,t)<=c&&a.push(i[n]);continue}const m=u+d>>1,p=o[2*m],h=o[2*m+1];D(p,h,e,t)<=c&&a.push(i[m]),(0===l?e-n<=p:t-n<=h)&&(s.push(u),s.push(m-1),s.push(1-l)),(0===l?e+n>=p:t+n>=h)&&(s.push(m+1),s.push(d),s.push(1-l))}return a}}function P(e,t,n,i,o,r){if(o-i<=n)return;const s=i+o>>1;$(e,t,s,i,o,r),P(e,t,n,i,s-1,1-r),P(e,t,n,s+1,o,1-r)}function $(e,t,n,i,o,r){for(;o>i;){if(o-i>600){const s=o-i+1,a=n-i+1,c=Math.log(s),l=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*l*(s-l)/s)*(a-s/2<0?-1:1);$(e,t,n,Math.max(i,Math.floor(n-a*l/s+d)),Math.min(o,Math.floor(n+(s-a)*l/s+d)),r)}const s=t[2*n+r];let a=i,c=o;for(j(e,t,i,n),t[2*o+r]>s&&j(e,t,i,o);as;)c--}t[2*i+r]===s?j(e,t,i,c):(c++,j(e,t,c,o)),c<=n&&(i=c+1),n<=c&&(o=c-1)}}function j(e,t,n,i){z(e,n,i),z(t,2*n,2*i),z(t,2*n+1,2*i+1)}function z(e,t,n){const i=e[t];e[t]=e[n],e[n]=i}function D(e,t,n,i){const o=e-n,r=t-i;return o*o+r*r}const Z={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},U=Math.fround||(q=new Float32Array(1),e=>(q[0]=+e,q[0]));var q;class F{constructor(e){this.options=Object.assign(Object.create(Z),e),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(e){const{log:t,minZoom:n,maxZoom:i}=this.options;t&&console.time("total time");const o=`prepare ${e.length} points`;t&&console.time(o),this.points=e;const r=[];for(let t=0;t=n;e--){const n=+Date.now();s=this.trees[e]=this._createTree(this._cluster(s,e)),t&&console.log("z%d: %d clusters in %dms",e,s.numItems,+Date.now()-n)}return t&&console.timeEnd("total time"),this}getClusters(e,t){let n=((e[0]+180)%360+360)%360-180;const i=Math.max(-90,Math.min(90,e[1]));let o=180===e[2]?180:((e[2]+180)%360+360)%360-180;const r=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)n=-180,o=180;else if(n>o){const e=this.getClusters([n,i,180,r],t),s=this.getClusters([-180,i,o,r],t);return e.concat(s)}const s=this.trees[this._limitZoom(t)],a=s.range(B(n),K(r),B(o),K(i)),c=s.data,l=[];for(const e of a){const t=this.stride*e;l.push(c[t+5]>1?G(c,t,this.clusterProps):this.points[c[t+3]])}return l}getChildren(e){const t=this._getOriginId(e),n=this._getOriginZoom(e),i="No cluster with the specified id.",o=this.trees[n];if(!o)throw new Error(i);const r=o.data;if(t*this.stride>=r.length)throw new Error(i);const s=this.options.radius/(this.options.extent*Math.pow(2,n-1)),a=r[t*this.stride],c=r[t*this.stride+1],l=o.within(a,c,s),d=[];for(const t of l){const n=t*this.stride;r[n+4]===e&&d.push(r[n+5]>1?G(r,n,this.clusterProps):this.points[r[n+3]])}if(0===d.length)throw new Error(i);return d}getLeaves(e,t,n){t=t||10,n=n||0;const i=[];return this._appendLeaves(i,e,t,n,0),i}getTile(e,t,n){const i=this.trees[this._limitZoom(e)],o=Math.pow(2,e),{extent:r,radius:s}=this.options,a=s/r,c=(n-a)/o,l=(n+1+a)/o,d={features:[]};return this._addTileFeatures(i.range((t-a)/o,c,(t+1+a)/o,l),i.data,t,n,o,d),0===t&&this._addTileFeatures(i.range(1-a/o,c,1,l),i.data,o,n,o,d),t===o-1&&this._addTileFeatures(i.range(0,c,a/o,l),i.data,-1,n,o,d),d.features.length?d:null}getClusterExpansionZoom(e){let t=this._getOriginZoom(e)-1;for(;t<=this.options.maxZoom;){const n=this.getChildren(e);if(t++,1!==n.length)break;e=n[0].properties.cluster_id}return t}_appendLeaves(e,t,n,i,o){const r=this.getChildren(t);for(const t of r){const r=t.properties;if(r&&r.cluster?o+r.point_count<=i?o+=r.point_count:o=this._appendLeaves(e,r.cluster_id,n,i,o):o1;let c,l,d;if(a)c=R(t,e,this.clusterProps),l=t[e],d=t[e+1];else{const n=this.points[t[e+3]];c=n.properties;const[i,o]=n.geometry.coordinates;l=B(i),d=K(o)}const u={type:1,geometry:[[Math.round(this.options.extent*(l*o-n)),Math.round(this.options.extent*(d*o-i))]],tags:c};let m;m=a||this.options.generateId?t[e+3]:this.points[t[e+3]].id,void 0!==m&&(u.id=m),r.features.push(u)}}_limitZoom(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))}_cluster(e,t){const{radius:n,extent:i,reduce:o,minPoints:r}=this.options,s=n/(i*Math.pow(2,t)),a=e.data,c=[],l=this.stride;for(let n=0;nt&&(p+=a[n+5])}if(p>m&&p>=r){let e,r=i*m,s=d*m,h=-1;const g=(n/l<<5)+(t+1)+this.points.length;for(const i of u){const c=i*l;if(a[c+2]<=t)continue;a[c+2]=t;const d=a[c+5];r+=a[c]*d,s+=a[c+1]*d,a[c+4]=g,o&&(e||(e=this._map(a,n,!0),h=this.clusterProps.length,this.clusterProps.push(e)),o(e,this._map(a,c)))}a[n+4]=g,c.push(r/p,s/p,1/0,g,-1,p),o&&c.push(h)}else{for(let e=0;e1)for(const e of u){const n=e*l;if(!(a[n+2]<=t)){a[n+2]=t;for(let e=0;e>5}_getOriginZoom(e){return(e-this.points.length)%32}_map(e,t,n){if(e[t+5]>1){const i=this.clusterProps[e[t+6]];return n?Object.assign({},i):i}const i=this.points[e[t+3]].properties,o=this.options.map(i);return n&&o===i?Object.assign({},o):o}}function G(e,t,n){return{type:"Feature",id:e[t+3],properties:R(e,t,n),geometry:{type:"Point",coordinates:[V(e[t]),W(e[t+1])]}}}function R(e,t,n){const i=e[t+5],o=i>=1e4?`${Math.round(i/1e3)}k`:i>=1e3?Math.round(i/100)/10+"k":i,r=e[t+6],s=-1===r?{}:Object.assign({},n[r]);return Object.assign(s,{cluster:!0,cluster_id:e[t+3],point_count:i,point_count_abbreviated:o})}function B(e){return e/360+.5}function K(e){const t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function V(e){return 360*(e-.5)}function W(e){const t=(180-360*e)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}class H{static isAdvancedMarkerAvailable(e){return google.maps.marker&&!0===e.getMapCapabilities().isAdvancedMarkersAvailable}static isAdvancedMarker(e){return google.maps.marker&&e instanceof google.maps.marker.AdvancedMarkerElement}static setMap(e,t){this.isAdvancedMarker(e)?e.map=t:e.setMap(t)}static getPosition(e){if(this.isAdvancedMarker(e)){if(e.position){if(e.position instanceof google.maps.LatLng)return e.position;if(e.position.lat&&e.position.lng)return new google.maps.LatLng(e.position.lat,e.position.lng)}return new google.maps.LatLng(null)}return e.getPosition()}static getVisible(e){return!!this.isAdvancedMarker(e)||e.getVisible()}}class X{constructor({markers:e,position:t}){this.markers=e,t&&(t instanceof google.maps.LatLng?this._position=t:this._position=new google.maps.LatLng(t))}get bounds(){if(0===this.markers.length&&!this._position)return;const e=new google.maps.LatLngBounds(this._position,this._position);for(const t of this.markers)e.extend(H.getPosition(t));return e}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter((e=>H.getVisible(e))).length}push(e){this.markers.push(e)}delete(){this.marker&&(H.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}}class Y{constructor({maxZoom:e=16}){this.maxZoom=e}noop({markers:e}){return J(e)}}const J=e=>e.map((e=>new X({position:H.getPosition(e),markers:[e]})));class Q extends Y{constructor(e){var{maxZoom:t,radius:n=60}=e,i=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o{const t=H.getPosition(e);return{type:"Feature",geometry:{type:"Point",coordinates:[t.lng(),t.lat()]},properties:{marker:e}}}));this.superCluster.load(n)}return t||(this.state.zoom<=this.maxZoom||n.zoom<=this.maxZoom)&&(t=!N()(this.state,n)),this.state=n,t&&(this.clusters=this.cluster(e)),{clusters:this.clusters,changed:t}}cluster({map:e}){return this.superCluster.getClusters([-180,-90,180,90],Math.round(e.getZoom())).map((e=>this.transformCluster(e)))}transformCluster({geometry:{coordinates:[e,t]},properties:n}){if(n.cluster)return new X({markers:this.superCluster.getLeaves(n.cluster_id,1/0).map((e=>e.properties.marker)),position:{lat:t,lng:e}});const i=n.marker;return new X({markers:[i],position:H.getPosition(i)})}}class ee{constructor(e,t){this.markers={sum:e.length};const n=t.map((e=>e.count)),i=n.reduce(((e,t)=>e+t),0);this.clusters={count:t.length,markers:{mean:i/t.length,sum:i,min:Math.min(...n),max:Math.max(...n)}}}}class te{render({count:e,position:t},n,i){const o=`\n\n\n\n${e}\n`,r=`Cluster of ${e} markers`,s=Number(google.maps.Marker.MAX_ZINDEX)+e;if(H.isAdvancedMarkerAvailable(i)){const e=(new DOMParser).parseFromString(o,"image/svg+xml").documentElement;e.setAttribute("transform","translate(0 25)");const n={map:i,position:t,zIndex:s,title:r,content:e};return new google.maps.marker.AdvancedMarkerElement(n)}const a={position:t,zIndex:s,title:r,icon:{url:`data:image/svg+xml;base64,${btoa(o)}`,anchor:new google.maps.Point(25,25)}};return new google.maps.Marker(a)}}class ne{constructor(){!function(e,t){for(let n in t.prototype)e.prototype[n]=t.prototype[n]}(ne,google.maps.OverlayView)}}var ie;!function(e){e.CLUSTERING_BEGIN="clusteringbegin",e.CLUSTERING_END="clusteringend",e.CLUSTER_CLICK="click"}(ie||(ie={}));const oe=(e,t,n)=>{n.fitBounds(t.bounds)};class re extends ne{constructor({map:e,markers:t=[],algorithmOptions:n={},algorithm:i=new Q(n),renderer:o=new te,onClusterClick:r=oe}){super(),this.markers=[...t],this.clusters=[],this.algorithm=i,this.renderer=o,this.onClusterClick=r,e&&this.setMap(e)}addMarker(e,t){this.markers.includes(e)||(this.markers.push(e),t||this.render())}addMarkers(e,t){e.forEach((e=>{this.addMarker(e,!0)})),t||this.render()}removeMarker(e,t){const n=this.markers.indexOf(e);return-1!==n&&(H.setMap(e,null),this.markers.splice(n,1),t||this.render(),!0)}removeMarkers(e,t){let n=!1;return e.forEach((e=>{n=this.removeMarker(e,!0)||n})),n&&!t&&this.render(),n}clearMarkers(e){this.markers.length=0,e||this.render()}render(){const e=this.getMap();if(e instanceof google.maps.Map&&e.getProjection()){google.maps.event.trigger(this,ie.CLUSTERING_BEGIN,this);const{clusters:t,changed:n}=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()});if(n||null==n){const e=new Set;for(const n of t)1==n.markers.length&&e.add(n.markers[0]);const n=[];for(const t of this.clusters)null!=t.marker&&(1==t.markers.length?e.has(t.marker)||H.setMap(t.marker,null):n.push(t.marker));this.clusters=t,this.renderClusters(),requestAnimationFrame((()=>n.forEach((e=>H.setMap(e,null)))))}google.maps.event.trigger(this,ie.CLUSTERING_END,this)}}onAdd(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()}onRemove(){google.maps.event.removeListener(this.idleListener),this.reset()}reset(){this.markers.forEach((e=>H.setMap(e,null))),this.clusters.forEach((e=>e.delete())),this.clusters=[]}renderClusters(){const e=new ee(this.markers,this.clusters),t=this.getMap();this.clusters.forEach((n=>{1===n.markers.length?n.marker=n.markers[0]:(n.marker=this.renderer.render(n,e,t),n.markers.forEach((e=>H.setMap(e,null))),this.onClusterClick&&n.marker.addListener("click",(e=>{google.maps.event.trigger(this,ie.CLUSTER_CLICK,n),this.onClusterClick(e,n,t)}))),H.setMap(n.marker,t)}))}}const se=window.wp.i18n;document.addEventListener("DOMContentLoaded",(function(){const e=document.querySelector(".wp-block-gg-blocks-closest-gym-map-amenities .gym-details__information"),t=document.querySelector(".gym-details__map");let n=null;function i(){const e=document.querySelector(".wp-block-gg-blocks-closest-gym-map-amenities .nearby-gyms__list");window.innerWidth<1600?n||(n=new w(e,{loop:!1,slides:{perView:1.55,spacing:32},breakpoints:{"(min-width: 576px)":{slides:{perView:2.4,spacing:24}},"(min-width: 1280px)":{slides:{perView:3.1,spacing:24}},"(min-width: 1440px)":{slides:{perView:3.5,spacing:24}}}})):n&&(n.destroy(),n=null)}const o=document.getElementById("item1");function r(n,o){fetch(`/wp-json/gg-gym-data/gyms/nearby/?latitude=${n}&longitude=${o}&extra_properties=is_open,opening_hours,amenities,photos,kids_club_hours,kids_is_open,today_opening_hours&per_page=5`).then((e=>e.json())).then((n=>{if(n.length>0){const[o,...r]=n,{gym_name:a,address:c,address2:l,city:d,state:u,zip:m,gym_slug:p,latitude:h,longitude:g,photos:f,amenities:_,opening_hours:y,today_opening_hours:v,online_enrollment_url:b,online_enrollment_enabled:k,internal_checkout_enabled:C,leads_enabled:w,kids_club_enabled:E,kids_club_hours:x}=o,M=u?.toLowerCase()||"",A=`/locations/${M}/${p}`,L=`${[c,l,d,M,m].filter(Boolean).join("+").replace(/ /g,"+")}`,I=`/locations/?address=${encodeURIComponent([c,l,d,M,m].filter(Boolean).join(" "))}`,N=`https://www.google.com/maps/place/${L}`,O=f?.length>0&&f[0]?.sizes?.medium?.url?f[0].sizes.medium.url:"",T="Open"===v?.status,P=v?.opening_time||"",$=v?.closing_time||"",j=O?`${a}`:"";!function(){const e=document.querySelector(".wp-block-gg-blocks-closest-gym-map-amenities .gym-details");if(!e)return;const t=e.querySelector(".gym-details__placeholder"),n=document.querySelector(".wp-block-gg-blocks-closest-gym-map-amenities.pre-location");t&&t.remove(),n&&n.classList.remove("pre-location")}(),function(e){const t=document.querySelector(".gym-heading");if(!t)return;for(;t.firstChild;)t.removeChild(t.firstChild);const n=document.createElement("div");n.className="gym-heading__subtitle",n.textContent=(0,se.__)("Gold's Gym near you","gg-blocks");const i=document.createElement("div");i.className="gym-heading__edit";const o=document.createElement("a");o.href=e||"#",o.className="gym-heading__link",o.textContent=(0,se.__)("Edit Location","gg-blocks"),i.appendChild(o),t.appendChild(n),t.appendChild(i)}(I),function(e,n,i,o,r,s,a,c,l,d,u,m){if(!t)return;for(;t.firstChild;)t.removeChild(t.firstChild);const p=document.createElement("div");p.className="gym-details__map__information";const h=document.createElement("div");h.innerHTML=e,p.appendChild(h);const g=document.createElement("div");g.className="gym-details__map__information--address";const f=[n,i,o,r,s].filter(Boolean).join(", "),_=document.createElement("p");if(_.textContent=f,g.appendChild(_),c){const e=document.createElement("p");e.textContent=l===d?(0,se.__)("We're open 24 hours!","gg-blocks"):`Open ${l} – ${d}`,g.appendChild(e)}p.appendChild(g);const y=document.createElement("div");y.className="gym-details__map__information--button";const v=document.createElement("a");v.setAttribute("href",a),v.setAttribute("target","_blank"),v.setAttribute("rel","noopener"),v.className="gym-details__map__information--button",v.textContent=(0,se.__)("Open map","gg-blocks"),y.appendChild(v),p.appendChild(y);const b=document.createElement("div");b.className="gym-details__map__container",t.appendChild(p),t.appendChild(b),function(e,t){const n=document.querySelector(".wp-block-gg-blocks-closest-gym-map-amenities .gym-details__map__container");n&&new S({apiKey:GG_BlOCK_CONFIGS.googleMapApiKey,version:"weekly",libraries:["marker"]}).load().then((()=>{const i={center:{lat:e,lng:t},zoom:15,minZoom:10,maxZoom:19,mapId:"10a51afd6ad2dc46"},o=new google.maps.Map(n,i),r=document.createElement("div");r.classList.add("map-marker"),r.style.width="60px",r.style.height="60px";const s=new google.maps.marker.AdvancedMarkerElement({map:o,position:{lat:e,lng:t},content:r,title:"Gold's Gym"});new re({map:o,markers:[s]})}))}(u,m)}(j,c,l,d,M,m,N,T,P,$,h,g),function(t,n,i,o,r,s,a,c,l){if(!e)return;for(;e.firstChild;)e.removeChild(e.firstChild);const d=document.createElement("div");d.className="gym-details__information__content";const u=document.createElement("div");u.className="gym-details__information__top";const m=document.createElement("div");m.className="gym-details__information__wrapper";const p=document.createElement("h2");p.textContent=t;const h=document.createElement("div");h.className="gym-details__information__header-wrapper";const g=document.createElement("div");g.className="gym-details__information__header-link";const f=document.createElement("a");f.href=o||"#",f.className="gym-details__information__header-link__detail",f.textContent=(0,se.__)("Visit Gym page","gg-blocks"),g.appendChild(f),m.appendChild(p);const _=document.createElement("p");_.textContent=(0,se.__)("This gym gives you access to everything you need to reach your fitness goals.","gg-blocks"),h.appendChild(_),h.appendChild(g),u.appendChild(m),u.appendChild(h),d.appendChild(u);const y=document.createElement("div");y.className="gym-details__information__accordion";const v=document.createElement("div");v.className="gym-details__information__accordion__item";const b=document.createElement("input");b.type="checkbox",b.name="accordion",b.id="item1",b.checked=!0;const k=document.createElement("label");k.setAttribute("for","item1"),k.setAttribute("role","button"),k.tabIndex=0,k.textContent=(0,se.__)("Amenities","gg-blocks");const C=document.createElement("div");C.className="expand-icon",k.appendChild(C);const w=document.createElement("div");w.className="gym-details__information__accordion__item__content";const E=document.createElement("ul");E.className="gym-details__information__accordion__item__amenities";const x=document.createElement("li");x.className="gym-details__information__accordion__item__content--see-more";const M=document.createElement("a");M.href="#",M.className="see-more",M.textContent=(0,se.__)("See more","gg-blocks"),x.appendChild(M),E.appendChild(x),w.appendChild(E),v.appendChild(b),v.appendChild(k),v.appendChild(w),y.appendChild(v);const A=document.createElement("div");A.className="gym-details__information__accordion__item";const L=document.createElement("input");L.type="checkbox",L.name="accordion",L.id="item2";const S=document.createElement("label");S.setAttribute("for","item2"),S.setAttribute("role","button"),S.tabIndex=0,S.textContent=(0,se.__)("Opening hours","gg-blocks");const I=document.createElement("div");I.className="expand-icon",S.appendChild(I);const N=document.createElement("div");N.className=l?"gym-details__information__accordion__item__content gym-hours kids-hours":"gym-details__information__accordion__item__content gym-hours";const O=document.createElement("div");O.className="gym-hours__content",N.appendChild(O);const T=document.createElement("div");if(T.className="gym-details__information__accordion__item__content--opening-hours",O.appendChild(T),l){const e=document.createElement("div");e.className="kids-hours__content",N.appendChild(e);const t=document.createElement("div");t.className="gym-details__information__accordion__item__content--opening-hours",e.appendChild(t);const n=document.createElement("div");n.className="gym-hours__switch";const i=document.createElement("span");i.className="toggled",i.textContent="gym area";const o=document.createElement("span");o.textContent="kids club",n.appendChild(i),n.appendChild(o),N.insertBefore(n,N.firstChild)}A.appendChild(L),A.appendChild(S),A.appendChild(N),y.appendChild(A),d.appendChild(y);const P=document.createElement("div");P.className="gym-details__information__footer-button";let $=null;if(a?$=`/locations/${i.toLowerCase()}/${n}/join/`:s&&r&&($=r),$){const e=document.createElement("a");e.href=$,e.textContent=(0,se.__)("Join Now","gg-blocks"),a||(e.target="_blank",e.rel="noopener"),P.appendChild(e)}if(c){const e=document.createElement("a");e.href=`/locations/${i}/${n}/free-pass/`,e.textContent=(0,se.__)("Try Gold's Gym for Free","gg-blocks"),P.appendChild(e)}e.appendChild(d),e.appendChild(P)}(a,p,M,A,b,k,C,w,E),function(e,t){const n=document.querySelector(".wp-block-gg-blocks-closest-gym-map-amenities .gym-details__information__accordion"),i=n?.querySelector(".gym-details__information__accordion__item:nth-child(1)"),o=document.querySelector(".wp-block-gg-blocks-closest-gym-map-amenities .pop-up");if(t?.length>0){const n=8,r=document.createDocumentFragment();if(t.forEach(((e,t)=>{const i=document.createElement("li");t>=n&&(i.style.display="none"),i.textContent=e.name,r.appendChild(i)})),t.length>n){const e=document.createElement("li");e.className="gym-details__information__accordion__item__content--see-more";const t=document.createElement("a");t.href="#",t.className="see-more",t.textContent=(0,se.__)("See more","gg-blocks"),e.appendChild(t),r.appendChild(e)}const s=i.querySelector(".gym-details__information__accordion__item__content ul");for(;s.firstChild;)s.removeChild(s.firstChild);if(s.appendChild(r),o){const n=o.querySelector(".pop-up__wrapper");for(;n.firstChild;)n.removeChild(n.firstChild);const i=document.createElement("h3");i.className="pop-up__title",i.textContent=`${(0,se.__)("Gold's Gym","gg-blocks")} ${e} ${(0,se.__)("amenities:","gg-blocks")}`;const r=document.createElement("div");r.className="pop-up__close",r.textContent="×";const s=document.createElement("ul");t.forEach((e=>{const t=document.createElement("li");t.textContent=e.name,s.appendChild(t)})),n.appendChild(i),n.appendChild(r),n.appendChild(s)}!function(){const e=document.querySelector(".wp-block-gg-blocks-closest-gym-map-amenities .pop-up"),t=document.querySelector(".wp-block-gg-blocks-closest-gym-map-amenities .pop-up__close"),n=document.querySelector(".wp-block-gg-blocks-closest-gym-map-amenities .see-more"),i=document.querySelectorAll(".gym-details__information__accordion__item__amenities li:not(.gym-details__information__accordion__item__content--see-more)");let o=!1;function r(t){t.preventDefault(),window.innerWidth<=768||!e||(n?.textContent.toLowerCase().trim().includes("see more")&&!e.classList.contains("pop-up--visible")?e.classList.add("pop-up--visible"):(o&&s(),e.classList.remove("pop-up--visible")))}document.addEventListener("keydown",(t=>{"Escape"===t.key&&e?.classList.contains("pop-up--visible")&&e?.classList.remove("pop-up--visible")})),t&&t.addEventListener("click",r);const s=()=>{o=!o,i.forEach(((e,t)=>{e.style.display=o||t<8?"block":"none"})),n&&(n.textContent=o?"See less":"See more")};n&&n.addEventListener("click",s);const a=()=>{n&&(window.innerWidth<=768?(n.addEventListener("click",s),e?.classList.remove("pop-up--visible")):(n.removeEventListener("click",s),n.addEventListener("click",r)))};window.addEventListener("resize",a),a()}()}else if(i&&i.remove(),o)for(;o.firstChild;)o.removeChild(o.firstChild)}(a,_),s(y),!0===E&&(s(x,E),function(){const e=document.querySelector(".gym-hours"),t=e.querySelector(".gym-hours__switch");t&&t.querySelectorAll("span").forEach((n=>{n.addEventListener("click",(function(){this.classList.contains("toggled")||(t.querySelector(".toggled").classList.remove("toggled"),this.classList.add("toggled"),"kids club"===this.textContent.trim().toLowerCase()?e.classList.add("kids-club"):e.classList.remove("kids-club"))}))}))}()),r.length>0&&function(e){const t=document.querySelector(".wp-block-gg-blocks-closest-gym-map-amenities .gym-details");if(!t)return;const n=document.createElement("section");n.className="nearby-gyms";const o=document.createElement("h3");o.textContent=(0,se.__)("Other Gold’s Gym locations:","gg-blocks"),n.appendChild(o);const r=document.createElement("div");r.className="nearby-gyms__list",n.appendChild(r),e.forEach((e=>{const t=e.distance?`${l=e.distance,(l/1609.344).toFixed(2)} miles`:"",n=e.is_open,i=n?(0,se.__)("Open","gg-blocks"):(0,se.__)("Closed","gg-blocks"),o=n?"open":"close",s=e.photos?.[0]?.sizes?.medium?.url||"https://res.cloudinary.com/ggus-dev/image/private/s--LNF5cSSE--/c_auto,g_auto,w_301,h_300/v1/2405e908/placeholder-medium.png.webp?_a=BAAAV6Bs",a=`/locations/${e.state.toLowerCase()}/${e.gym_slug}`,c=document.createElement("div");var l;c.className="nearby-gyms__list__item keen-slider__slide";const d=document.createElement("div");d.className="nearby-card";const u=document.createElement("img");u.setAttribute("decoding","async"),u.setAttribute("src",s),u.setAttribute("alt",e.gym_name),d.appendChild(u);const m=document.createElement("div");m.className="nearby-card__information";const p=document.createElement("span");p.className="nearby-card__information__name",p.textContent=e.gym_name,m.appendChild(p);const h=document.createElement("div");h.className="nearby-card__information__wrapper";const g=document.createElement("span");g.className="nearby-card__information__distance",g.textContent=t,h.appendChild(g);const f=document.createElement("div");f.className="nearby-card__information__status";const _=document.createElement("span");_.className=o,_.textContent=i,f.appendChild(_),h.appendChild(f),m.appendChild(h),d.appendChild(m);const y=document.createElement("a");y.setAttribute("href",a),y.className="nearby-gyms__list__item__button",c.appendChild(d),c.appendChild(y),r.appendChild(c)})),t.insertAdjacentElement("afterend",n),i()}(r)}})).catch((()=>{console.error("Error fetching nearby gyms")}))}function s(e,t=!1){const n=document.querySelector(t?".wp-block-gg-blocks-closest-gym-map-amenities .kids-hours__content .gym-details__information__accordion__item__content--opening-hours":".wp-block-gg-blocks-closest-gym-map-amenities .gym-hours__content .gym-details__information__accordion__item__content--opening-hours");if(!n)return;for(;n.firstChild;)n.removeChild(n.firstChild);if(!e||0===e.length){const e=document.createElement("p");return e.className="error",e.textContent=(0,se.__)("No opening hours available","gg-blocks"),void n.appendChild(e)}if(e.every((e=>"Open"===e.status&&e.opening_time===e.closing_time&&"1"!==e.break_enabled))){const e=document.createElement("p"),t=document.createElement("span"),i=document.createElement("b");return t.textContent=(0,se.__)("We're open ","gg-blocks"),i.textContent=(0,se.__)("24 hours, 7 days a week!","gg-blocks"),t.classList.add("strong"),e.appendChild(t),t.appendChild(i),void n.appendChild(e)}const i=["Monday","Tuesday","Wednesday","Thursday","Friday"],o=i.every((t=>{const n=e.find((e=>e.day_of_week===t)),i=e.find((e=>"Monday"===e.day_of_week));return n&&i&&n.status===i.status&&n.opening_time===i.opening_time&&n.closing_time===i.closing_time&&n.break_enabled===i.break_enabled&&n.break_start_time===i.break_start_time&&n.break_end_time===i.break_end_time})),r=e=>"1"===e.break_enabled&&e.break_start_time&&e.break_end_time?`${a(e.opening_time)} – ${a(e.break_start_time)}, ${a(e.break_end_time)} – ${a(e.closing_time)}`:e.opening_time===e.closing_time&&"1"!==e.break_enabled?(0,se.__)("We're open 24 hours!","gg-blocks"):`${a(e.opening_time)} – ${a(e.closing_time)}`;if(o){const t=document.createElement("p"),i=document.createElement("span");i.className="gym-details__information__accordion__item__content--opening-hours--day",i.textContent="Monday - Friday:",t.appendChild(i);const o=e.find((e=>"Monday"===e.day_of_week));if("Open"===o.status){const e=document.createElement("span");e.className="gym-details__information__accordion__item__content--opening-hours--hours",e.textContent=r(o),o.opening_time===o.closing_time&&"1"!==o.break_enabled&&e.classList.add("strong"),t.appendChild(e)}else{const e=document.createElement("span");e.className="gym-details__information__accordion__item__content--opening-hours--hours closed-hours",e.textContent=(0,se.__)("Closed","gg-blocks"),t.appendChild(e)}n.appendChild(t)}else i.forEach((t=>{const i=e.find((e=>e.day_of_week===t));if(i){const e=document.createElement("p"),o=document.createElement("span");if(o.className="gym-details__information__accordion__item__content--opening-hours--day",o.textContent=`${t}:`,e.appendChild(o),"Open"===i.status){const t=document.createElement("span");t.className="gym-details__information__accordion__item__content--opening-hours--hours",t.textContent=r(i),e.appendChild(t),i.opening_time===i.closing_time&&"1"!==i.break_enabled&&t.classList.add("strong")}else{const t=document.createElement("span");t.className="gym-details__information__accordion__item__content--opening-hours--hours closed-hours",t.textContent=(0,se.__)("Closed","gg-blocks"),e.appendChild(t)}n.appendChild(e)}}));["Saturday","Sunday"].forEach((t=>{const i=e.find((e=>e.day_of_week===t));if(i){const e=document.createElement("p"),o=document.createElement("span");if(o.className="gym-details__information__accordion__item__content--opening-hours--day",o.textContent=`${t}:`,e.appendChild(o),"Open"===i.status){const t=document.createElement("span");t.className="gym-details__information__accordion__item__content--opening-hours--hours",t.textContent=r(i),e.appendChild(t)}else{const t=document.createElement("span");t.className="gym-details__information__accordion__item__content--opening-hours--hours closed-hours",t.textContent=(0,se.__)("Closed","gg-blocks"),e.appendChild(t)}n.appendChild(e)}}))}function a(e){if(!e)return"";const[t,n,i]=e.match(/^(\d{1,2}):(\d{2})(AM|PM)$/i).slice(1),o=new Date;return o.setHours("PM"===i&&"12"!==t?parseInt(t)+12:parseInt(t),parseInt(n)),new Intl.DateTimeFormat("en-US",{hour:"numeric",minute:"numeric",hour12:!0}).format(o).replace(":00","")}function c(){"geolocation"in navigator?navigator.geolocation.getCurrentPosition((e=>{const{latitude:t,longitude:n}=e.coords;r(t,n)}),(e=>{console.error("Browser Location API Error:",e)})):console.warn("Geolocation is not available in this browser.")}o&&(o.checked=!0),document.querySelectorAll('.gym-details__information__accordion__item input[type="checkbox"]').forEach((e=>e.addEventListener("click",(()=>{e.closest(".gym-details__information__accordion").querySelectorAll('input[type="checkbox"]').forEach((t=>{t!==e&&(t.checked=!e.checked)}))})))),"undefined"!=typeof geoip2?geoip2.city((e=>{const t=e.location.latitude,n=e.location.longitude;"US"===e.country.iso_code&&r(t,n)}),(e=>{console.error("GeoIP2 Error:",e),c()})):(console.warn("GeoIP2 is not available."),c()),window.addEventListener("resize",i)}))})();