File: /var/www/html/wpmuhibbah_err/wp-content/plugins/meow-gallery/app/galleries.js
(()=>{"use strict";var t,e,n,r,o={},i={};function a(t){var e=i[t];if(void 0!==e)return e.exports;var n=i[t]={exports:{}};return o[t].call(n.exports,n,n.exports,a),n.exports}a.m=o,e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,a.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var o=Object.create(null);a.r(o);var i={};t=t||[null,e({}),e([]),e(e)];for(var l=2&r&&n;"object"==typeof l&&!~t.indexOf(l);l=e(l))Object.getOwnPropertyNames(l).forEach((t=>i[t]=()=>n[t]));return i.default=()=>n,a.d(o,i),o},a.d=(t,e)=>{for(var n in e)a.o(e,n)&&!a.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},a.f={},a.e=t=>Promise.all(Object.keys(a.f).reduce(((e,n)=>(a.f[n](t,e),e)),[])),a.u=t=>"leaflet.js",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n={},r="meow-gallery:",a.l=(t,e,o,i)=>{if(n[t])n[t].push(e);else{var l,c;if(void 0!==o)for(var u=document.getElementsByTagName("script"),s=0;s<u.length;s++){var f=u[s];if(f.getAttribute("src")==t||f.getAttribute("data-webpack")==r+o){l=f;break}}l||(c=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,a.nc&&l.setAttribute("nonce",a.nc),l.setAttribute("data-webpack",r+o),l.src=t),n[t]=[e];var d=(e,r)=>{l.onerror=l.onload=null,clearTimeout(p);var o=n[t];if(delete n[t],l.parentNode&&l.parentNode.removeChild(l),o&&o.forEach((t=>t(r))),e)return e(r)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=d.bind(null,l.onerror),l.onload=d.bind(null,l.onload),c&&document.head.appendChild(l)}},a.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;a.g.importScripts&&(t=a.g.location+"");var e=a.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!t||!/^http(s?):/.test(t));)t=n[r--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=t})(),(()=>{var t={619:0};a.f.j=(e,n)=>{var r=a.o(t,e)?t[e]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=t[e]=[n,o]));n.push(r[2]=o);var i=a.p+a.u(e),l=new Error;a.l(i,(n=>{if(a.o(t,e)&&(0!==(r=t[e])&&(t[e]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;l.message="Loading chunk "+e+" failed.\n("+o+": "+i+")",l.name="ChunkLoadError",l.type=o,l.request=i,r[1](l)}}),"chunk-"+e,e)}};var e=(e,n)=>{var r,o,[i,l,c]=n,u=0;if(i.some((e=>0!==t[e]))){for(r in l)a.o(l,r)&&(a.m[r]=l[r]);if(c)c(a)}for(e&&e(n);u<i.length;u++)o=i[u],a.o(t,o)&&t[o]&&t[o][0](),t[o]=0},n=self.wpJsonMglGalleries=self.wpJsonMglGalleries||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})();var l,c,u,s,f,d,p,m,h,y,g,v={},b=[],_=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,w=Array.isArray;function S(t,e){for(var n in e)t[n]=e[n];return t}function O(t){var e=t.parentNode;e&&e.removeChild(t)}function x(t,e,n){var r,o,i,a={};for(i in e)"key"==i?r=e[i]:"ref"==i?o=e[i]:a[i]=e[i];if(arguments.length>2&&(a.children=arguments.length>3?l.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===a[i]&&(a[i]=t.defaultProps[i]);return j(t,a,r,o,null)}function j(t,e,n,r,o){var i={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++u:o,__i:-1,__u:0};return null==o&&null!=c.vnode&&c.vnode(i),i}function E(t){return t.children}function I(t,e){this.props=t,this.context=e}function k(t,e){if(null==e)return t.__?k(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?k(t):null}function P(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return P(t)}}function N(t){(!t.__d&&(t.__d=!0)&&s.push(t)&&!T.__r++||f!==c.debounceRendering)&&((f=c.debounceRendering)||d)(T)}function T(){var t,e,n,r,o,i,a,l;for(s.sort(p);t=s.shift();)t.__d&&(e=s.length,r=void 0,i=(o=(n=t).__v).__e,a=[],l=[],n.__P&&((r=S({},o)).__v=o.__v+1,c.vnode&&c.vnode(r),H(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[i]:null,a,null==i?k(o):i,!!(32&o.__u),l),r.__v=o.__v,r.__.__k[r.__i]=r,U(a,r,l),r.__e!=i&&P(r)),s.length>e&&s.sort(p));T.__r=0}function A(t,e,n,r,o,i,a,l,c,u,s){var f,d,p,m,h,y=r&&r.__k||b,g=e.length;for(n.__d=c,M(n,e,y),c=n.__d,f=0;f<g;f++)null!=(p=n.__k[f])&&"boolean"!=typeof p&&"function"!=typeof p&&(d=-1===p.__i?v:y[p.__i]||v,p.__i=f,H(t,p,d,o,i,a,l,c,u,s),m=p.__e,p.ref&&d.ref!=p.ref&&(d.ref&&F(d.ref,null,p),s.push(p.ref,p.__c||m,p)),null==h&&null!=m&&(h=m),65536&p.__u||d.__k===p.__k?(c&&!c.isConnected&&(c=k(d)),c=C(p,c,t)):"function"==typeof p.type&&void 0!==p.__d?c=p.__d:m&&(c=m.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=c,n.__e=h}function M(t,e,n){var r,o,i,a,l,c=e.length,u=n.length,s=u,f=0;for(t.__k=[],r=0;r<c;r++)a=r+f,null!=(o=t.__k[r]=null==(o=e[r])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?j(null,o,null,null,null):w(o)?j(E,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?j(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=t,o.__b=t.__b+1,l=D(o,n,a,s),o.__i=l,i=null,-1!==l&&(s--,(i=n[l])&&(i.__u|=131072)),null==i||null===i.__v?(-1==l&&f--,"function"!=typeof o.type&&(o.__u|=65536)):l!==a&&(l===a+1?f++:l>a?s>c-a?f+=l-a:f--:l<a?l==a-1&&(f=l-a):f=0,l!==r+f&&(o.__u|=65536))):(i=n[a])&&null==i.key&&i.__e&&!(131072&i.__u)&&(i.__e==t.__d&&(t.__d=k(i)),B(i,i,!1),n[a]=null,s--);if(s)for(r=0;r<u;r++)null!=(i=n[r])&&!(131072&i.__u)&&(i.__e==t.__d&&(t.__d=k(i)),B(i,i))}function C(t,e,n){var r,o;if("function"==typeof t.type){for(r=t.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=t,e=C(r[o],e,n));return e}t.__e!=e&&(n.insertBefore(t.__e,e||null),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8===e.nodeType);return e}function D(t,e,n,r){var o=t.key,i=t.type,a=n-1,l=n+1,c=e[n];if(null===c||c&&o==c.key&&i===c.type&&!(131072&c.__u))return n;if(r>(null==c||131072&c.__u?0:1))for(;a>=0||l<e.length;){if(a>=0){if((c=e[a])&&!(131072&c.__u)&&o==c.key&&i===c.type)return a;a--}if(l<e.length){if((c=e[l])&&!(131072&c.__u)&&o==c.key&&i===c.type)return l;l++}}return-1}function G(t,e,n){"-"===e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||_.test(e)?n:n+"px"}function z(t,e,n,r,o){var i;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||G(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||G(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])i=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in t||"onFocusOut"===e||"onFocusIn"===e?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r?n.u=r.u:(n.u=m,t.addEventListener(e,i?y:h,i)):t.removeEventListener(e,i?y:h,i);else{if("http://www.w3.org/2000/svg"==o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&"-"!==e[4]?t.removeAttribute(e):t.setAttribute(e,n))}}function R(t){return function(e){if(this.l){var n=this.l[e.type+t];if(null==e.t)e.t=m++;else if(e.t<n.u)return;return n(c.event?c.event(e):e)}}}function H(t,e,n,r,o,i,a,l,u,s){var f,d,p,m,h,y,g,v,b,_,O,x,j,k,L,P=e.type;if(void 0!==e.constructor)return null;128&n.__u&&(u=!!(32&n.__u),i=[l=e.__e=n.__e]),(f=c.__b)&&f(e);t:if("function"==typeof P)try{if(v=e.props,b=(f=P.contextType)&&r[f.__c],_=f?b?b.props.value:f.__:r,n.__c?g=(d=e.__c=n.__c).__=d.__E:("prototype"in P&&P.prototype.render?e.__c=d=new P(v,_):(e.__c=d=new I(v,_),d.constructor=P,d.render=W),b&&b.sub(d),d.props=v,d.state||(d.state={}),d.context=_,d.__n=r,p=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=P.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=S({},d.__s)),S(d.__s,P.getDerivedStateFromProps(v,d.__s))),m=d.props,h=d.state,d.__v=e,p)null==P.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==P.getDerivedStateFromProps&&v!==m&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(v,_),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(v,d.__s,_)||e.__v===n.__v)){for(e.__v!==n.__v&&(d.props=v,d.state=d.__s,d.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),O=0;O<d._sb.length;O++)d.__h.push(d._sb[O]);d._sb=[],d.__h.length&&a.push(d);break t}null!=d.componentWillUpdate&&d.componentWillUpdate(v,d.__s,_),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(m,h,y)}))}if(d.context=_,d.props=v,d.__P=t,d.__e=!1,x=c.__r,j=0,"prototype"in P&&P.prototype.render){for(d.state=d.__s,d.__d=!1,x&&x(e),f=d.render(d.props,d.state,d.context),k=0;k<d._sb.length;k++)d.__h.push(d._sb[k]);d._sb=[]}else do{d.__d=!1,x&&x(e),f=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++j<25);d.state=d.__s,null!=d.getChildContext&&(r=S(S({},r),d.getChildContext())),p||null==d.getSnapshotBeforeUpdate||(y=d.getSnapshotBeforeUpdate(m,h)),A(t,w(L=null!=f&&f.type===E&&null==f.key?f.props.children:f)?L:[L],e,n,r,o,i,a,l,u,s),d.base=e.__e,e.__u&=-161,d.__h.length&&a.push(d),g&&(d.__E=d.__=null)}catch(t){e.__v=null,u||null!=i?(e.__e=l,e.__u|=u?160:32,i[i.indexOf(l)]=null):(e.__e=n.__e,e.__k=n.__k),c.__e(t,e,n)}else null==i&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=q(n.__e,e,n,r,o,i,a,u,s);(f=c.diffed)&&f(e)}function U(t,e,n){e.__d=void 0;for(var r=0;r<n.length;r++)F(n[r],n[++r],n[++r]);c.__c&&c.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){c.__e(t,e.__v)}}))}function q(t,e,n,r,o,i,a,c,u){var s,f,d,p,m,h,y,g=n.props,b=e.props,_=e.type;if("svg"===_?o="http://www.w3.org/2000/svg":"math"===_?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=i)for(s=0;s<i.length;s++)if((m=i[s])&&"setAttribute"in m==!!_&&(_?m.localName===_:3===m.nodeType)){t=m,i[s]=null;break}if(null==t){if(null===_)return document.createTextNode(b);t=document.createElementNS(o,_,b.is&&b),i=null,c=!1}if(null===_)g===b||c&&t.data===b||(t.data=b);else{if(i=i&&l.call(t.childNodes),g=n.props||v,!c&&null!=i)for(g={},s=0;s<t.attributes.length;s++)g[(m=t.attributes[s]).name]=m.value;for(s in g)if(m=g[s],"children"==s);else if("dangerouslySetInnerHTML"==s)d=m;else if("key"!==s&&!(s in b)){if("value"==s&&"defaultValue"in b||"checked"==s&&"defaultChecked"in b)continue;z(t,s,null,m,o)}for(s in b)m=b[s],"children"==s?p=m:"dangerouslySetInnerHTML"==s?f=m:"value"==s?h=m:"checked"==s?y=m:"key"===s||c&&"function"!=typeof m||g[s]===m||z(t,s,m,g[s],o);if(f)c||d&&(f.__html===d.__html||f.__html===t.innerHTML)||(t.innerHTML=f.__html),e.__k=[];else if(d&&(t.innerHTML=""),A(t,w(p)?p:[p],e,n,r,"foreignObject"===_?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:n.__k&&k(n,0),c,u),null!=i)for(s=i.length;s--;)null!=i[s]&&O(i[s]);c||(s="value",void 0!==h&&(h!==t[s]||"progress"===_&&!h||"option"===_&&h!==g[s])&&z(t,s,h,g[s],o),s="checked",void 0!==y&&y!==t[s]&&z(t,s,y,g[s],o))}return t}function F(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){c.__e(t,n)}}function B(t,e,n){var r,o;if(c.unmount&&c.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||F(r,null,e)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){c.__e(t,e)}r.base=r.__P=null}if(r=t.__k)for(o=0;o<r.length;o++)r[o]&&B(r[o],e,n||"function"!=typeof t.type);n||null==t.__e||O(t.__e),t.__c=t.__=t.__e=t.__d=void 0}function W(t,e,n){return this.constructor(t,n)}function $(t,e,n){var r,o,i,a;c.__&&c.__(t,e),o=(r="function"==typeof n)?null:n&&n.__k||e.__k,i=[],a=[],H(e,t=(!r&&n||e).__k=x(E,null,[t]),o||v,v,e.namespaceURI,!r&&n?[n]:o?null:e.firstChild?l.call(e.childNodes):null,i,!r&&n?n:o?o.__e:e.firstChild,r,a),U(i,t,a)}l=b.slice,c={__e:function(t,e,n,r){for(var o,i,a;e=e.__;)if((o=e.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(t)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,r||{}),a=o.__d),a)return o.__E=o}catch(e){t=e}throw t}},u=0,I.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=S({},this.state),"function"==typeof t&&(t=t(S({},n),this.props)),t&&S(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),N(this))},I.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),N(this))},I.prototype.render=E,s=[],d="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,p=function(t,e){return t.__v.__b-e.__v.__b},T.__r=0,m=0,h=R(!1),y=R(!0),g=0;let K={data:""},J=t=>"object"==typeof window?((t?t.querySelector("#_goober"):window._goober)||Object.assign((t||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:t||K,Y=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,V=/\/\*[^]*?\*\/| +/g,X=/\n+/g,Z=(t,e)=>{let n="",r="",o="";for(let i in t){let a=t[i];"@"==i[0]?"i"==i[1]?n=i+" "+a+";":r+="f"==i[1]?Z(a,i):i+"{"+Z(a,"k"==i[1]?"":e)+"}":"object"==typeof a?r+=Z(a,e?e.replace(/([^,])+/g,(t=>i.replace(/(^:.*)|([^,])+/g,(e=>/&/.test(e)?e.replace(/&/g,t):t?t+" "+e:e)))):i):null!=a&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Z.p?Z.p(i,a):i+":"+a+";")}return n+(e&&o?e+"{"+o+"}":o)+r},Q={},tt=t=>{if("object"==typeof t){let e="";for(let n in t)e+=n+tt(t[n]);return e}return t},et=(t,e,n,r,o)=>{let i=tt(t),a=Q[i]||(Q[i]=(t=>{let e=0,n=11;for(;e<t.length;)n=101*n+t.charCodeAt(e++)>>>0;return"go"+n})(i));if(!Q[a]){let e=i!==t?t:(t=>{let e,n,r=[{}];for(;e=Y.exec(t.replace(V,""));)e[4]?r.shift():e[3]?(n=e[3].replace(X," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][e[1]]=e[2].replace(X," ").trim();return r[0]})(t);Q[a]=Z(o?{["@keyframes "+a]:e}:e,n?"":"."+a)}let l=n&&Q.g?Q.g:null;return n&&(Q.g=Q[a]),((t,e,n,r)=>{r?e.data=e.data.replace(r,t):-1===e.data.indexOf(t)&&(e.data=n?t+e.data:e.data+t)})(Q[a],e,r,l),a},nt=(t,e,n)=>t.reduce(((t,r,o)=>{let i=e[o];if(i&&i.call){let t=i(n),e=t&&t.props&&t.props.className||/^go/.test(t)&&t;i=e?"."+e:t&&"object"==typeof t?t.props?"":Z(t,""):!1===t?"":t}return t+r+(null==i?"":i)}),"");function rt(t){let e=this||{},n=t.call?t(e.p):t;return et(n.unshift?n.raw?nt(n,[].slice.call(arguments,1),e.p):n.reduce(((t,n)=>Object.assign(t,n&&n.call?n(e.p):n)),{}):n,J(e.target),e.g,e.o,e.k)}let ot,it,at;rt.bind({g:1}),rt.bind({k:1});function lt(t,e){let n=this||{};return function(){let r=arguments;function o(i,a){let l=Object.assign({},i),c=l.className||o.className;n.p=Object.assign({theme:it&&it()},l),n.o=/ *go\d+/.test(c),l.className=rt.apply(n,r)+(c?" "+c:""),e&&(l.ref=a);let u=t;return t[0]&&(u=l.as||t,delete l.as),at&&u[0]&&at(l),ot(u,l)}return e?e(o):o}}var ct,ut,st,ft,dt=0,pt=[],mt=[],ht=c,yt=ht.__b,gt=ht.__r,vt=ht.diffed,bt=ht.__c,_t=ht.unmount,wt=ht.__;function St(t,e){ht.__h&&ht.__h(ut,t,dt||e),dt=0;var n=ut.__H||(ut.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:mt}),n.__[t]}function Ot(t){return dt=1,xt(Ct,t)}function xt(t,e,n){var r=St(ct++,2);if(r.t=t,!r.__c&&(r.__=[n?n(e):Ct(void 0,e),function(t){var e=r.__N?r.__N[0]:r.__[0],n=r.t(e,t);e!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=ut,!ut.u)){var o=function(t,e,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(t){return!!t.__c}));if(o.every((function(t){return!t.__N})))return!i||i.call(this,t,e,n);var a=!1;return o.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(a=!0)}})),!(!a&&r.__c.props===t)&&(!i||i.call(this,t,e,n))};ut.u=!0;var i=ut.shouldComponentUpdate,a=ut.componentWillUpdate;ut.componentWillUpdate=function(t,e,n){if(this.__e){var r=i;i=void 0,o(t,e,n),i=r}a&&a.call(this,t,e,n)},ut.shouldComponentUpdate=o}return r.__N||r.__}function jt(t,e){var n=St(ct++,3);!ht.__s&&Mt(n.__H,e)&&(n.__=t,n.i=e,ut.__H.__h.push(n))}function Et(t){return dt=5,It((function(){return{current:t}}),[])}function It(t,e){var n=St(ct++,7);return Mt(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function kt(t,e){return dt=8,It((function(){return t}),e)}function Lt(){for(var t;t=pt.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Tt),t.__H.__h.forEach(At),t.__H.__h=[]}catch(e){t.__H.__h=[],ht.__e(e,t.__v)}}ht.__b=function(t){ut=null,yt&&yt(t)},ht.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),wt&&wt(t,e)},ht.__r=function(t){gt&>(t),ct=0;var e=(ut=t.__c).__H;e&&(st===ut?(e.__h=[],ut.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=mt,t.__N=t.i=void 0}))):(e.__h.forEach(Tt),e.__h.forEach(At),e.__h=[],ct=0)),st=ut},ht.diffed=function(t){vt&&vt(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==pt.push(e)&&ft===ht.requestAnimationFrame||((ft=ht.requestAnimationFrame)||Nt)(Lt)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==mt&&(t.__=t.__V),t.i=void 0,t.__V=mt}))),st=ut=null},ht.__c=function(t,e){e.some((function(t){try{t.__h.forEach(Tt),t.__h=t.__h.filter((function(t){return!t.__||At(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],ht.__e(n,t.__v)}})),bt&&bt(t,e)},ht.unmount=function(t){_t&&_t(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{Tt(t)}catch(t){e=t}})),n.__H=void 0,e&&ht.__e(e,n.__v))};var Pt="function"==typeof requestAnimationFrame;function Nt(t){var e,n=function(){clearTimeout(r),Pt&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);Pt&&(e=requestAnimationFrame(n))}function Tt(t){var e=ut,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),ut=e}function At(t){var e=ut;t.__c=t.__(),ut=e}function Mt(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function Ct(t,e){return"function"==typeof e?e(t):e}function Dt(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function l(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,l)}c((r=r.apply(t,e||[])).next())}))}function Gt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}"function"==typeof SuppressedError&&SuppressedError;var zt=function t(e,n){if(e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){if(e.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(e)){if((r=e.length)!=n.length)return!1;for(o=r;0!=o--;)if(!t(e[o],n[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if((r=(i=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var a=i[o];if(!t(e[a],n[a]))return!1}return!0}return e!=e&&n!=n},Rt=Gt(zt);const Ht="__googleMapsScriptId";var Ut;!function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE"}(Ut||(Ut={}));class qt{constructor({apiKey:t,authReferrerPolicy:e,channel:n,client:r,id:o=Ht,language:i,libraries:a=[],mapIds:l,nonce:c,region:u,retries:s=3,url:f="https://maps.googleapis.com/maps/api/js",version:d}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=t,this.authReferrerPolicy=e,this.channel=n,this.client=r,this.id=o||Ht,this.language=i,this.libraries=a,this.mapIds=l,this.nonce=c,this.region=u,this.retries=s,this.url=f,this.version=d,qt.instance){if(!Rt(this.options,qt.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(qt.instance.options)}`);return qt.instance}qt.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?Ut.FAILURE:this.done?Ut.SUCCESS:this.loading?Ut.LOADING:Ut.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let t=this.url;return t+="?callback=__googleMapsCallback&loading=async",this.apiKey&&(t+=`&key=${this.apiKey}`),this.channel&&(t+=`&channel=${this.channel}`),this.client&&(t+=`&client=${this.client}`),this.libraries.length>0&&(t+=`&libraries=${this.libraries.join(",")}`),this.language&&(t+=`&language=${this.language}`),this.region&&(t+=`®ion=${this.region}`),this.version&&(t+=`&v=${this.version}`),this.mapIds&&(t+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(t+=`&auth_referrer_policy=${this.authReferrerPolicy}`),t}deleteScript(){const t=document.getElementById(this.id);t&&t.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise(((t,e)=>{this.loadCallback((n=>{n?e(n.error):t(window.google)}))}))}importLibrary(t){return this.execute(),google.maps.importLibrary(t)}loadCallback(t){this.callbacks.push(t),this.execute()}setScript(){var t,e;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((t=>!n[t]&&delete n[t])),(null===(e=null===(t=null===window||void 0===window?void 0:window.google)||void 0===t?void 0:t.maps)||void 0===e?void 0:e.importLibrary)||(t=>{let e,n,r,o="The Google Maps JavaScript API",i="google",a="importLibrary",l="__ib__",c=document,u=window;u=u[i]||(u[i]={});const s=u.maps||(u.maps={}),f=new Set,d=new URLSearchParams,p=()=>e||(e=new Promise(((a,u)=>Dt(this,void 0,void 0,(function*(){var p;for(r in yield n=c.createElement("script"),n.id=this.id,d.set("libraries",[...f]+""),t)d.set(r.replace(/[A-Z]/g,(t=>"_"+t[0].toLowerCase())),t[r]);d.set("callback",i+".maps."+l),n.src=this.url+"?"+d,s[l]=a,n.onerror=()=>e=u(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)})))));s[a]?console.warn(o+" only loads once. Ignoring:",t):s[a]=(t,...e)=>f.add(t)&&p().then((()=>s[a](t,...e)))})(n);const r=this.libraries.map((t=>this.importLibrary(t)));r.length||r.push(this.importLibrary("core")),Promise.all(r).then((()=>this.callback()),(t=>{const e=new ErrorEvent("error",{error:t});this.loadErrorCallback(e)}))}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(t){if(this.errors.push(t),this.errors.length<=this.retries){const t=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${t} ms.`),setTimeout((()=>{this.deleteScript(),this.setScript()}),t)}else this.onerrorEvent=t,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach((t=>{t(this.onerrorEvent)})),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),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||(this.loading=!0,this.setScript())}}}function Ft(t){return Ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ft(t)}function Bt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){u=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Wt(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function $t(){
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
$t=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),l=new P(r||[]);return o(a,"_invoke",{value:E(t,n,l)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var d="suspendedStart",p="suspendedYield",m="executing",h="completed",y={};function g(){}function v(){}function b(){}var _={};u(_,a,(function(){return this}));var w=Object.getPrototypeOf,S=w&&w(w(N([])));S&&S!==n&&r.call(S,a)&&(_=S);var O=b.prototype=g.prototype=Object.create(_);function x(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(o,i,a,l){var c=f(t[o],t,i);if("throw"!==c.type){var u=c.arg,s=u.value;return s&&"object"==Ft(s)&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,a,l)}),(function(t){n("throw",t,a,l)})):e.resolve(s).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,l)}))}l(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var c=I(l,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?h:p,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=h,r.method="throw",r.arg=u.arg)}}}function I(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,I(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function N(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(Ft(e)+" is not iterable")}return v.prototype=b,o(O,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:v,configurable:!0}),v.displayName=u(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,c,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},x(j.prototype),u(j.prototype,l,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new j(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(O),u(O,c,"Generator"),u(O,a,(function(){return this})),u(O,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=N,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:N(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}function Kt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Yt(r.key),r)}}function Jt(t,e,n){return e&&Kt(t.prototype,e),n&&Kt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Yt(t){var e=function(t,e){if("object"!=Ft(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ft(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ft(e)?e:e+""}function Vt(t,e,n,r,o,i,a){try{var l=t[i](a),c=l.value}catch(t){return void n(t)}l.done?e(c):Promise.resolve(c).then(r,o)}function Xt(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Vt(i,r,o,a,l,"next",t)}function l(t){Vt(i,r,o,a,l,"throw",t)}a(void 0)}))}}function Zt(){return(Zt=Xt($t().mark((function t(){var e;return $t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(window.L){t.next=8;break}return t.next=3,a.e(334).then(a.t.bind(a,481,23));case 3:e=t.sent,console.warn("🍃 Leaflet was loaded asynchronously."),window.L=e,t.next=9;break;case 8:console.warn("🍃 Leaflet is already loaded.");case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var Qt=function(t){var e=t.style.transform.replace(/[^0-9\-.,]/g,"").split(",");return[e[12]||e[4],e[13]||e[5]]},te=function(t,e){var n=t.includes("index.php?rest_route");return t+(n?"&":"?")+new URLSearchParams(e).toString()},ee=Jt((function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.url=r,this.message=e,this.code=n,this.body=o,this.debug=i,this.cancelledByUser="USER-ABORTED"===n})),ne=function(){var t=Xt($t().mark((function t(e){var n,r,o,i,a,l,c,u,s,f=arguments;return $t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=f.length>1&&void 0!==f[1]?f[1]:{},r=null,o={},i=null,a=null,t.prev=5,(n=n||{}).headers=n.headers?n.headers:{},n.headers.Pragma="no-cache",n.headers["Cache-Control"]="no-cache",t.next=12,fetch("".concat(e),n);case 12:return a=t.sent,t.next=15,a.text();case 15:r=t.sent,(o=JSON.parse(r)).success||(l=!1===o.success?"NOT-SUCCESS":"N/A",c=o.message?o.message:"Unknown error. Check your Console Logs.","rest_no_route"===o.code?(c="The API can't be accessed. Are you sure the WP REST API is enabled? Check this article: https://meowapps.com/fix-wordpress-rest-api/.",l="NO-ROUTE"):"internal_server_error"===o.code&&(c="Server error. Please check your PHP Error Logs.",l="SERVER-ERROR"),i=new ee(c,l,e,r||a)),t.next=26;break;case 20:t.prev=20,t.t0=t.catch(5),u="BROKEN-REPLY",s="The reply sent by the server is broken.","AbortError"===t.t0.name?(u="USER-ABORTED",s="The request was aborted by the user."):a&&a.status&&408===a.status&&(u="REQUEST-TIMEOUT",s="The request generated a timeout."),i=new ee(s,u,e,r||a,t.t0);case 26:return i&&(o.success=!1,o.message=i.message,o.error=i),t.abrupt("return",o);case 28:case"end":return t.stop()}}),t,null,[[5,20]])})));return function(e){return t.apply(this,arguments)}}(),re=function(){var t=Xt($t().mark((function t(e){var n,r,o,i,a,l,c,u,s,f,d,p,m,h,y,g,v,b,_,w,S=arguments;return $t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=(n=S.length>1&&void 0!==S[1]?S[1]:{}).json,o=void 0===r?null:r,i=n.method,a=void 0===i?"GET":i,l=n.signal,c=n.file,u=n.nonce,s=n.bearerToken,"GET"!==a||!o){t.next=4;break}throw new Error("NekoFetch: GET method does not support json argument (".concat(e,")."));case 4:if(f=c?new FormData:null,c)for(f.append("file",c),d=0,p=Object.entries(o);d<p.length;d++)m=Bt(p[d],2),h=m[0],y=m[1],f.append(h,y);return g={},u&&(g["X-WP-Nonce"]=u),s&&(g.Authorization="Bearer ".concat(s)),f||(g["Content-Type"]="application/json"),v={method:a,headers:g,body:f||(o?JSON.stringify(o):null),signal:l},b=null,t.next=14,ne(e,v);case 14:if((b=t.sent).success){t.next=17;break}throw new Error(null!==(_=null===(w=b)||void 0===w?void 0:w.message)&&void 0!==_?_:"Unknown error.");case 17:return t.abrupt("return",b);case 18:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),oe=function(){var t=vn(),e=t.id,n=t.images,r=t.mglMap,o=t.mapZoom,i="map-".concat(e),a=kt((function(t){var e,n,r;if(0===Object.keys(t.sizes).length)return console.warn("🍃 No image sizes found for the pin image. Using the original image."),t.file_full;if(null!==(e=t.sizes)&&void 0!==e&&e.large)return t.sizes.large;if(null!==(n=t.sizes)&&void 0!==n&&n.medium)return t.sizes.medium;if(null!==(r=t.sizes)&&void 0!==r&&r.thumbnail)return t.sizes.thumbnail;var o=Object.keys(t.sizes),i=o[o.length-1];return console.warn("🍃 No large, medium or thumbnail size found for image. Using the largest available size:",i,t),t.sizes[i]}),[]),l=kt((function(t,e){if("openstreetmap"==e){L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'Map data © <a href="https://openstreetmap.org">OpenStreetMap</a> contributors',maxZoom:18,noWrap:!0,style:"https://openmaptiles.github.io/osm-bright-gl-style/style-cdn.json"}).addTo(t)}if("maptiler"==e){var n="https://api.maptiler.com/maps/basic/{z}/{x}/{y}.png?key=".concat(r.maptiler.apiKey);L.tileLayer(n,{attribution:'© MapTiler © <a href="https://openstreetmap.org">OpenStreetMap</a> contributors',maxZoom:18,noWrap:!0}).addTo(t)}if("mapbox"==e){var o,i,a;if(null!==(o=r.mapbox.style)&&void 0!==o&&o.username&&null!==(i=r.mapbox.style)&&void 0!==i&&i.style_id){var l=r.mapbox.style,c=l.username,u=l.style_id;a="https://api.mapbox.com/styles/v1/".concat(c,"/").concat(u,"/tiles/{z}/{x}/{y}?access_token=").concat(r.mapbox.apiKey)}else a="https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token=".concat(r.mapbox.apiKey);L.tileLayer(a,{attribution:'Map data © <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors, <a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="https://www.mapbox.com/">Mapbox</a>',tileSize:512,maxZoom:18,zoomOffset:-1,id:"mapbox/streets-v12"}).addTo(t)}}),[]),c=kt((function(t,e){function n(t,e,n,r){this.id=t,this.latlng_=e,this.imageSrc=r,this.setMap(n)}n.prototype=new google.maps.OverlayView,n.prototype.draw=function(){var t=this.div_;if(!t){(t=this.div_=document.createElement("div")).className="gmap-image-marker";var e=document.createElement("img");e.className="wp-image-".concat(this.id),e.src=this.imageSrc,t.appendChild(e),this.getPanes().overlayImage.appendChild(t)}var n=this.getProjection().fromLatLngToDivPixel(this.latlng_);n&&(t.style.left=n.x+"px",t.style.top=n.y+"px")},n.prototype.remove=function(){this.div_&&(this.div_.parentNode.removeChild(this.div_),this.div_=null)},n.prototype.getPosition=function(){return this.latlng_},e.forEach((function(e){var r=e.data.gps.split(","),o={image:a(e),pos:[r[0],r[1]]};new n(e.id,new google.maps.LatLng(o.pos[0],o.pos[1]),t,o.image)}))}),[a]),u=kt((function(t,e){e.forEach((function(e,n){var o=r.lightboxable?"inline-block":"none",i='\n <div class="image-marker-container" data-image-index="'.concat(n,'">\n <div class="rounded-image">\n ').concat(e.link.href?'<a href="'.concat(e.link.href,'" target="').concat(e.link.target,'" rel="').concat(e.link.rel,'">'):"",'\n <img \n class="wp-image-').concat(e.id,'" \n src="').concat(a(e),'"\n ').concat(e.file_srcset?'srcset="'.concat(e.file_srcset,'"'):"","\n ").concat(e.file_sizes?'sizes="'.concat(e.file_sizes,'"'):"",'\n style="display: ').concat(o,'"\n >\n ').concat(e.link.href?"</a>":"","\n </div>\n </div>\n "),l=L.divIcon({className:"image-marker",iconSize:null,html:i}),c=e.data.gps.split(",");L.marker(c,{icon:l}).addTo(t)}))}),[a]),s=kt((function(t,e){var n=new google.maps.LatLngBounds;e.forEach((function(t){var e=t.data.gps.split(","),r={lat:parseFloat(e[0]),lng:parseFloat(e[1])};n.extend(r)})),t.fitBounds(n)}),[]),f=kt((function(t,e,n){var r=[];e.forEach((function(t){var e=t.data.gps.split(",");r.push(e)}));var o=new L.LatLngBounds(r).getCenter();t.setView(o,n)}),[]),d=kt((function(t){n.length>0&&(c(t,n),s(t,n))}),[n,c,s]),p=kt((function(t,e,r){n.length>0&&(l(t,e),u(t,n),f(t,n,r))}),[n,l,u,f]);return jt((function(){(function(){return Zt.apply(this,arguments)})().then((function(){if("googlemaps"===r.tilesProvider)new qt({apiKey:r.googlemaps.apiKey,version:"weekly"}).load().then((function(){var t=new google.maps.Map(document.getElementById(i),{center:{lat:-34.397,lng:150.644},zoom:o});t.setOptions({styles:r.googlemaps.style}),d(t),document.body.dispatchEvent(new Event("post-load"))}));else if(null!=L.DomUtil.get(i)){L.DomUtil.get(i)._leaflet_id=null;var t=L.map(i).setView(r.center,o);try{console.log("🍃 Leaflet map created. Using ResizeObserver to resize the map."),window.dispatchEvent(new Event("resize"))}catch(t){console.warn("🍃 Leaflet map created. ResizeObserver is not supported.")}p(t,r.tilesProvider,o),document.body.dispatchEvent(new Event("post-load"))}}))}),[r.tilesProvider,d,p,i]),i},ie="undefined"!=typeof mgl_settings,ae=ie?mgl_settings.options:void 0,le=ie?mgl_settings.api_url.replace(/\/+$/,""):void 0,ce=ie?mgl_settings.rest_nonce:void 0;var ue=0;Array.isArray;function se(t,e,n,r,o,i){e||(e={});var a,l,u=e;if("ref"in u)for(l in u={},e)"ref"==l?a=e[l]:u[l]=e[l];var s={type:t,props:u,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--ue,__i:-1,__u:0,__source:o,__self:i};if("function"==typeof t&&(a=t.defaultProps))for(l in a)void 0===u[l]&&(u[l]=a[l]);return c.vnode&&c.vnode(s),s}var fe,de,pe,me,he,ye,ge,ve,be,_e,we,Se,Oe,xe,je,Ee,Ie,ke;function Le(t){return Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Le(t)}function Pe(t){return function(t){if(Array.isArray(t))return De(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Ce(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ne(){
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
Ne=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),l=new P(r||[]);return o(a,"_invoke",{value:E(t,n,l)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var d="suspendedStart",p="suspendedYield",m="executing",h="completed",y={};function g(){}function v(){}function b(){}var _={};u(_,a,(function(){return this}));var w=Object.getPrototypeOf,S=w&&w(w(N([])));S&&S!==n&&r.call(S,a)&&(_=S);var O=b.prototype=g.prototype=Object.create(_);function x(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(o,i,a,l){var c=f(t[o],t,i);if("throw"!==c.type){var u=c.arg,s=u.value;return s&&"object"==Le(s)&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,a,l)}),(function(t){n("throw",t,a,l)})):e.resolve(s).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,l)}))}l(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var c=I(l,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?h:p,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=h,r.method="throw",r.arg=u.arg)}}}function I(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,I(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function N(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(Le(e)+" is not iterable")}return v.prototype=b,o(O,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:v,configurable:!0}),v.displayName=u(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,c,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},x(j.prototype),u(j.prototype,l,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new j(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(O),u(O,c,"Generator"),u(O,a,(function(){return this})),u(O,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=N,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:N(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}function Te(t,e,n,r,o,i,a){try{var l=t[i](a),c=l.value}catch(t){return void n(t)}l.done?e(c):Promise.resolve(c).then(r,o)}function Ae(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Te(i,r,o,a,l,"next",t)}function l(t){Te(i,r,o,a,l,"throw",t)}a(void 0)}))}}function Me(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){u=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,e)||Ce(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ce(t,e){if(t){if("string"==typeof t)return De(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?De(t,e):void 0}}function De(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Ge(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ze(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ge(Object(n),!0).forEach((function(e){Re(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ge(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Re(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=Le(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Le(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Le(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var He="tiles",Ue="masonry",qe="justified",Fe="square",Be="cascade",We="carousel",$e="map",Ke="horizontal",Je=function(t){return t===qe},Ye=[He,Ue,qe,Fe,Be],Ve={high:["o","i","oo","ii","oi","io","ooo","oii","ooi","ioo","oio","ioi","iio","iii","iooo","oioo","ooio","oooi","iiii","oooo","ioooo","ooioo","ooooi","iiooo","iooio","ooiio","ooioi","oooii","oiioo","oiooi","iiioo","iiooi","iooii","ooiii"],medium:["o","i","oo","ii","oi","io","ooo","oii","ooi","ioo","oio","ioi","iio","iii"],low:["o","i"]},Xe={high:{desktop:4,tablet:3,mobile:2},medium:{desktop:3,tablet:2,mobile:2},low:{desktop:1,tablet:1,mobile:1}},Ze={o:{box:"a",orientation:"landscape"},i:{box:"a",orientation:"portrait"},oo:{box:"a",orientation:"landscape"},ii:{box:"a",orientation:"portrait"},oi:{box:"a",orientation:"landscape"},io:{box:"a",orientation:"portrait"},ooo:{box:"c",orientation:"landscape"},ioo:{box:"b",orientation:"landscape"},oio:{box:"a",orientation:"landscape"},ooi:{box:"a",orientation:"landscape"},oii:{box:"a",orientation:"landscape"},ioi:{box:"b",orientation:"landscape"},iio:{box:"c",orientation:"landscape"},iii:{box:"a",orientation:"portrait"},"oooo-v0":{box:"c",orientation:"landscape"},"oooo-v1":{box:"a",orientation:"landscape"},"oooo-v2":{box:"a",orientation:"landscape"},oioo:{box:"a",orientation:"landscape"},iooo:{box:"d",orientation:"landscape"},ooio:{box:"d",orientation:"landscape"},oooi:{box:"a",orientation:"landscape"},iiii:{box:"a",orientation:"portrait"},aoooo:{box:"a",orientation:"portrait"},ioooo:{box:"a",orientation:"portrait"},ooioo:{box:"c",orientation:"portrait"},ooooi:{box:"e",orientation:"portrait"},iiooo:{box:"a",orientation:"portrait"},iooio:{box:"a",orientation:"portrait"},ooiio:{box:"e",orientation:"landscape"},ooioi:{box:"c",orientation:"portrait"},oooii:{box:"d",orientation:"portrait"},oiioo:{box:"b",orientation:"portrait"},oiooi:{box:"b",orientation:"portrait"},iiioo:{box:"a",orientation:"portrait"},iiooi:{box:"a",orientation:"portrait"},iooii:{box:"a",orientation:"portrait"},ooiii:{box:"c",orientation:"portrait"}},Qe=0,tn={apiUrl:null,restNonce:null,id:null,images:[],imageIds:[],className:"",containerClassName:"",inlineStyle:{},loadImagesCount:12,canInfiniteScroll:!1,layout:"tiles",captions:"none",animation:!1,imageSize:"srcset",infinite:!1,infiniteBuffer:0,tilesGutter:10,tilesGutterTablet:10,tilesGutterMobile:10,tilesDensity:"high",tilesDensityTablet:"medium",tilesDensityMobile:"low",masonryGutter:5,masonryColumns:3,justifiedGutter:5,justifiedRowHeight:200,justifiedDensity:"high",justifiedDensityTablet:"medium",justifiedDensityMobile:"low",squareGutter:5,squareColumns:5,cascadeGutter:10,horizontalGutter:5,horizontalImageHeight:500,horizontalHideScrollbar:!1,carouselGutter:5,carouselImageHeight:500,carouselArrowNavEnabled:!0,carouselDotNavEnabled:!0,carouselThumbnailNavEnabled:!1,mapEngine:"",mapHeight:400,googlemapsToken:"",googlemapsStyle:"[]",mapboxToken:"",mapboxStyle:{username:"",style_id:""},maptilerToken:"",rightClick:!1,size:"large",customClass:"",link:null,isPreview:!1,updir:null,classId:null,gutter:5,columns:3,layouts:[],density:{desktop:"high",tablet:"medium",mobile:"low"},imageHeight:500,mglMap:{defaultEngine:"undefined"!=typeof mgl_map&&null!==(fe=null===(de=mgl_map)||void 0===de?void 0:de.default_engine)&&void 0!==fe?fe:"",tilesProvider:"undefined"!=typeof mgl_map&&null!==(pe=null===(me=mgl_map)||void 0===me?void 0:me.default_engine)&&void 0!==pe?pe:"",height:"undefined"!=typeof mgl_map&&null!==(he=null===(ye=mgl_map)||void 0===ye?void 0:ye.height)&&void 0!==he?he:400,googlemaps:{apiKey:"undefined"!=typeof mgl_map&&null!==(ge=null===(ve=mgl_map)||void 0===ve||null===(ve=ve.googlemaps)||void 0===ve?void 0:ve.api_key)&&void 0!==ge?ge:"",style:"undefined"!=typeof mgl_map&&null!==(be=null===(_e=mgl_map)||void 0===_e||null===(_e=_e.googlemaps)||void 0===_e?void 0:_e.style)&&void 0!==be?be:""},mapbox:{apiKey:"undefined"!=typeof mgl_map&&null!==(we=null===(Se=mgl_map)||void 0===Se||null===(Se=Se.mapbox)||void 0===Se?void 0:Se.api_key)&&void 0!==we?we:"",style:"undefined"!=typeof mgl_map&&null!==(Oe=null===(xe=mgl_map)||void 0===xe||null===(xe=xe.mapbox)||void 0===xe?void 0:xe.style)&&void 0!==Oe?Oe:""},maptiler:{apiKey:"undefined"!=typeof mgl_map&&null!==(je=null===(Ee=mgl_map)||void 0===Ee||null===(Ee=Ee.maptiler)||void 0===Ee?void 0:Ee.api_key)&&void 0!==je?je:"",style:"undefined"!=typeof mgl_map&&null!==(Ie=null===(ke=mgl_map)||void 0===ke||null===(ke=ke.maptiler)||void 0===ke?void 0:ke.style)&&void 0!==Ie?Ie:""},center:[51.505,-.09],lightboxable:!0},atts:{}},en="SET_IMAGES",nn="SET_CLASS_NAMES",rn="SET_CONTAINER_CLASS_NAMES",on="SET_INLINE_STYLES",an="SET_GUTTER",ln="SET_CULLUMNS",cn="SET_DENSITY",un="SET_IMAGE_HEIGHT",sn="SET_API_URL",fn="SET_REST_NONCE",dn="SET_CAN_INFINITE_SCROLL",pn="PUSH_BUSY",mn="POP_BUSY",hn=function(t,e){switch(e.type){case"ERROR_UPDATED":var n=e.apiErrors;return ze(ze({},t),{},{apiErrors:n});case en:var r=e.images;return ze(ze({},t),{},{images:r});case pn:var o=e.status,i=void 0===o?"":o;return ze(ze({},t),{},{busy:++Qe>0,status:i});case mn:var a=e.status,l=void 0===a?"":a;return ze(ze({},t),{},{busy:--Qe>0,status:l});case nn:var c=e.layout,u=e.customClass,s=e.animation,f=e.captions,d=[];return d.push("mgl-gallery"),d.push("mgl-"+c),u&&d.push(u),s&&(d.push("is-animated"),d.push(s)),f&&d.push("captions-"+f),ze(ze({},t),{},{className:d.join(" ")});case rn:var p=e.layout,m=[];return m.push("mgl-"+p+"-container"),ze(ze({},t),{},{containerClassName:m.join(" ")});case on:var h=e.layout,y=e.justifiedRowHeight,g=Je(h)?{"--rh":"".concat(y,"px")}:{};return ze(ze({},t),{},{inlineStyle:g});case an:var v=e.layout,b=e.tilesGutter,_=e.tilesGutterTablet,w=e.tilesGutterMobile,S=e.masonryGutter,O=e.justifiedGutter,x=e.squareGutter,j=e.cascadeGutter,E=e.horizontalGutter,I=e.carouselGutter,k=e.mapGutter,L=Re(Re(Re(Re(Re(Re(Re(Re({},He,{desktop:parseInt(b),tablet:parseInt(_),mobile:parseInt(w)}),Ue,parseInt(S)),qe,parseInt(O)),Fe,parseInt(x)),Be,parseInt(j)),Ke,parseInt(E)),We,parseInt(I)),$e,parseInt(k));return ze(ze({},t),{},{gutter:L[v]});case ln:var P=e.layout,N=e.masonryColumns,T=e.squareColumns,A=Re(Re({},Ue,parseInt(N)),Fe,parseInt(T));return ze(ze({},t),{},{columns:A[P]});case cn:var M=e.tilesDensity,C=e.tilesDensityTablet,D=e.tilesDensityMobile,G={tiles:{desktop:M,tablet:C,mobile:D},justified:{desktop:e.justifiedDensity||"high",tablet:e.justifiedDensityTablet||"medium",mobile:e.justifiedDensityMobile||"low"},desktop:M,tablet:C,mobile:D};return ze(ze({},t),{},{density:G});case un:var z=e.layout,R=e.horizontalImageHeight,H=e.carouselImageHeight,U=Re(Re({},Ke,parseInt(R)),We,parseInt(H));return ze(ze({},t),{},{imageHeight:U[z]});case sn:var q=e.apiUrl;return ze(ze({},t),{},{apiUrl:q});case fn:var F=e.restNonce;return ze(ze({},t),{},{restNonce:F});case dn:var B=e.infinite,W=e.images,$=e.imageIds,K=B&&W.length<$.length;return ze(ze({},t),{},{canInfiniteScroll:K});default:return t}},yn=function(t,e){var n={__c:e="__cC"+g++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,r;return this.getChildContext||(n=[],(r={})[e]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some((function(t){t.__e=!0,N(t)}))},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}(),gn=function(t){var e,n=t.options,r=t.galleryOptions,o=t.galleryImages,i=t.atts,a=t.apiUrl,l=t.restNonce,c=t.children,u=xt(hn,ze(ze({},tn),function(t){return{id:t.id,layout:t.layout,captions:t.captions,captionsAlignment:t.captions_alignment,captionsBackground:t.captions_background,loading:t.loading,animation:t.animation,imageSize:t.image_size,galleryShortcodeOverrideDisabled:t.gallery_shortcode_override_disabled,skeletonLoading:t.skeleton_loading,infinite:t.infinite,infiniteBuffer:t.infinite_buffer,tilesGutter:t.tiles_gutter,tilesGutterTablet:t.tiles_gutter_tablet,tilesGutterMobile:t.tiles_gutter_mobile,tilesDensity:t.tiles_density,tilesDensityTablet:t.tiles_density_tablet,tilesDensityMobile:t.tiles_density_mobile,tilesStylishStyle:t.tiles_stylish_style,masonryGutter:t.masonry_gutter,masonryColumns:t.masonry_columns,masonryLeftToRight:t.masonry_left_to_right,justifiedGutter:t.justified_gutter,justifiedRowHeight:t.justified_row_height,justifiedDensity:t.justified_density,justifiedDensityTablet:t.justified_density_tablet,justifiedDensityMobile:t.justified_density_mobile,squareGutter:t.square_gutter,squareColumns:t.square_columns,cascadeGutter:t.cascade_gutter,horizontalGutter:t.horizontal_gutter,horizontalImageHeight:t.horizontal_image_height,horizontalHideScrollbar:t.horizontal_hide_scrollbar,horizontalScrollWarning:t.horizontal_scroll_warning,horizontalNativeScroll:t.horizontal_native_scroll,carouselCompact:t.carousel_compact,carouselImmersive:t.carousel_immersive,carouselGutter:t.carousel_gutter,carouselImageHeight:t.carousel_image_height,carouselArrowNavEnabled:t.carousel_arrow_nav_enabled,carouselDotNavEnabled:t.carousel_dot_nav_enabled,carouselThumbnailNavEnabled:t.carousel_thumbnail_nav_enabled,carouselAspectRatio:t.carousel_aspect_ratio,carouselAutoplay:t.carousel_autoplay,carouselInfinite:t.carousel_infinite,mapEngine:t.map_engine,mapHeight:t.map_height,mapZoom:t.map_zoom,mapGutter:t.map_gutter,googlemapsToken:t.googlemaps_token,googlemapsStyle:t.googlemaps_style,mapboxToken:t.mapbox_token,mapboxStyle:t.mapbox_style,maptilerToken:t.maptiler_token,rightClick:t.right_click,imageIds:t.image_ids,size:t.size,customClass:t.custom_class,link:t.link,isPreview:t.is_preview,updir:t.updir,classId:t.class_id,layouts:t.layouts,images:t.images,atts:t.atts}}(ze(ze(ze({},n),r),{},{images:o,atts:i})))),s=Me(u,2),f=s[0],d=s[1],p=f.layout,m=f.customClass,h=f.animation,y=f.captions,g=f.justifiedRowHeight,v=f.tilesGutter,b=f.tilesGutterMobile,_=f.tilesGutterTablet,w=f.tilesDensity,S=f.tilesDensityMobile,O=f.tilesDensityTablet,x=f.justifiedDensity,j=f.justifiedDensityMobile,E=f.justifiedDensityTablet,I=f.masonryGutter,k=f.justifiedGutter,L=f.squareGutter,P=f.cascadeGutter,N=f.horizontalGutter,T=f.carouselGutter,A=f.masonryColumns,M=f.squareColumns,C=f.horizontalImageHeight,D=f.carouselImageHeight,G=f.mapGutter,z=f.infinite,R=f.images,H=f.imageIds;return jt((function(){d({type:nn,layout:p,customClass:m,animation:h,captions:y})}),[p,m,h,y]),jt((function(){d({type:rn,layout:p})}),[p]),jt((function(){d({type:on,layout:p,justifiedRowHeight:g})}),[p,g]),jt((function(){d({type:an,layout:p,tilesGutter:v,tilesGutterMobile:b,tilesGutterTablet:_,masonryGutter:I,justifiedGutter:k,squareGutter:L,cascadeGutter:P,horizontalGutter:N,carouselGutter:T,mapGutter:G})}),[p,v,b,_,I,k,L,P,N,T,G]),jt((function(){d({type:ln,layout:p,masonryColumns:A,squareColumns:M})}),[p,A,M]),jt((function(){d({type:cn,tilesDensity:w,tilesDensityMobile:S,tilesDensityTablet:O,justifiedDensity:x,justifiedDensityMobile:j,justifiedDensityTablet:E})}),[w,S,O,x,j,E]),jt((function(){d({type:un,layout:p,horizontalImageHeight:C,carouselImageHeight:D})}),[p,C,D]),jt((function(){d({type:sn,apiUrl:a})}),[a]),jt((function(){d({type:fn,restNonce:l})}),[l]),jt((function(){d({type:dn,infinite:z,images:R,imageIds:H})}),[z,R.length,null!==(e=null==H?void 0:H.length)&&void 0!==e?e:[]]),se(yn.Provider,{value:[f,d],children:c})};const vn=function(){var t={},e=function(t){var e=ut.context[t.__c],n=St(ct++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(ut)),e.props.value):t.__}(yn),n=Me(e,2),r=n[0],o=n[1];return t.loadImages=Ae(Ne().mark((function e(){var n,o,i,a,l=arguments;return Ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=l.length>0&&void 0!==l[0]?l[0]:null,o=r.images.map((function(t){return t.id})),i=r.imageIds.filter((function(t){return!o.includes(t)})),null!=n?(console.log("Loading images up to id:",n),a=i.indexOf(n),i=-1!==a?i.slice(0,a+1):[]):i=i.slice(0,r.loadImagesCount),i.length&&t.fetchImages(i);case 5:case"end":return e.stop()}}),e)}))),t.fetchImages=function(){var t=Ae(Ne().mark((function t(e){var n,i;return Ne().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o({type:pn}),n=te("".concat(le,"/images/"),{imageIds:JSON.stringify(e),atts:JSON.stringify(r.atts),layout:r.layout,size:r.size}),t.prev=2,t.next=5,re(n,{nonce:r.restNonce});case 5:(i=t.sent).success&&o({type:en,images:[].concat(Pe(r.images),Pe(i.data))}),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(2),t.t0.message&&alert(t.t0.message);case 12:return t.prev=12,o({type:mn}),t.finish(12);case 15:case"end":return t.stop()}}),t,null,[[2,9,12,15]])})));return function(e){return t.apply(this,arguments)}}(),ze(ze({},r),t)};function bn(t){return bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bn(t)}var _n,wn,Sn,On,xn,jn;function En(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function In(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?En(Object(n),!0).forEach((function(e){kn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):En(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function kn(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=bn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=bn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==bn(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ln(t){return function(t){if(Array.isArray(t))return Pn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Pn(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pn(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Nn(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var Tn=lt("figure")(_n||(_n=Nn(["\n position: relative;\n margin: 0;\n"]))),An=lt("div")(wn||(wn=Nn(["\n height: inherit;\n"]))),Mn=lt("a")(Sn||(Sn=Nn(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.3);\n transition: background-color 0.3s;\n\n &:hover {\n background-color: rgba(0, 0, 0, 0.5);\n }\n"]))),Cn=lt("div")(On||(On=Nn(["\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n padding: 20px;\n text-align: center;\n border-radius: 8px;\n color: #fff;\n text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);\n display: flex;\n flex-direction: column;\n align-items: center;\n"]))),Dn=lt("a")(xn||(xn=Nn(["\n color: #fff;\n font-size: 1.5em;\n font-weight: bold;\n text-decoration: none;\n margin-bottom: ",";\n"])),(function(t){return t.hasExcerpt?"5px":"0"})),Gn=lt("p")(jn||(jn=Nn(["\n color: #fff;\n font-size: 1em;\n margin: 0;\n white-space: normal;\n"]))),zn=function(t){var e=t.image,n=t.atts,r=vn(),o=(r.isPreview,r.captions),i=r.captionsAlignment,a=r.captionsBackground,l=r.layout,c=r.carouselAspectRatio,u=e.img_html,s=e.domElement,f=e.link_href,d=e.link_target,p=e.link_rel,m=e.featured_post_title,h=e.featured_post_url,y=e.featured_post_excerpt,g=e.meta,v=e.caption,b=e.attributes,_=e.classNames,w=["mgl-item"].concat(Ln(void 0===_?[]:_)).join(" "),S=Et(null),O=It((function(){return"carousel"!==l?"":c||null!=n&&n.keepAspectRatio?"-aspect-ratio":""}),[l,c]);jt((function(){var t=S.current;if(t&&s)return t.appendChild(s),function(){t.removeChild(s)}}),[s]);var x=It((function(){return Je(l)?{"--w":g.width,"--h":g.height}:{}}),[l,g]);return se(Tn,In(In({className:w,style:x},b),{},{children:[se("div",{className:"mgl-icon",children:se("div",{className:"mgl-img-container".concat(O),ref:S,children:function(){if(s)return null;var t=f?se("a",{href:f,target:d,rel:p,dangerouslySetInnerHTML:{__html:u}}):se("div",{style:{height:"100%",display:"flex"},dangerouslySetInnerHTML:{__html:u}});return m?se(An,{children:[se(Mn,{href:h,children:se(Cn,{children:[se(Dn,{hasExcerpt:!!y,children:m}),y&&se(Gn,{children:y})]})}),t]}):t}()})}),"none"!==o&&v&&"carousel"!==l?se("figcaption",{className:"mgl-caption caption-".concat(i," caption-bg-").concat(a),children:se("p",{dangerouslySetInnerHTML:{__html:v}})}):null]}))};function Rn(t){return Rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rn(t)}function Hn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Un(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Hn(Object(n),!0).forEach((function(e){qn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Hn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function qn(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=Rn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Rn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Rn(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Fn(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){u=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Bn(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bn(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var Wn,$n=function(){var t,e=vn(),n=e.classId,r=e.className,o=e.inlineStyle,i=e.images,a=e.density,l=e.justifiedGutter,c=Fn(Ot(window.innerWidth),2),u=c[0],s=c[1],f=It((function(){return u<=460?"mobile":u<=768?"tablet":"desktop"}),[u]),d=(a.justified||{desktop:"high",tablet:"medium",mobile:"low"})[f],p=(null===(t=Xe[d])||void 0===t?void 0:t[f])||1,m=(p-i.length%p)%p;jt((function(){var t=function(){s(window.innerWidth)};return window.addEventListener("resize",t),function(){return window.removeEventListener("resize",t)}}),[]);var h=Un(Un({},o),{},{"--columns":p,"--mgl-gutter":"".concat(l,"px")});return se("div",{id:n,className:"".concat(r).concat(p>1?" mgl-justified-grid":""),style:h,children:[i.map((function(t){return se(zn,{image:t},t.id)})),Array.from({length:m}).map((function(t,e){return se("div",{className:"mgl-item mgl-empty"},"empty-".concat(e))}))]})};var Kn=lt("div")(Wn||(Wn=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n\n ","\n"])),(function(t){return Je(t.layout)&&"\n #".concat(t.classId," {\n display: ").concat(t.isPreview?"block":"none",";\n margin: ").concat(-1*t.gutter/2,"px;\n }\n\n #").concat(t.classId," .mgl-item {\n margin: ").concat(t.gutter/2,"px;\n }\n ")}),(function(t){return t.layout===Ue&&"\n .mgl-masonry {\n display: ".concat(t.isPreview?"block":"none",";\n }\n\n #").concat(t.classId," {\n column-count: ").concat(t.columns,";\n margin: ").concat(-1*t.gutter/2,"px;\n }\n\n #").concat(t.classId," .mgl-item, figcaption {\n padding: ").concat(t.gutter/2,"px;\n }\n\n @media screen and (max-width: 800px) {\n #").concat(t.classId," {\n column-count: 2;\n }\n }\n\n @media screen and (max-width: 600px) {\n #").concat(t.classId," {\n column-count: 1;\n }\n }\n ")}),(function(t){return t.layout===Fe&&"\n .mgl-square {\n display: ".concat(t.isPreview?"block":"none",";\n }\n\n #").concat(t.classId," {\n\t\t margin: ").concat(-1*t.gutter/2,"px;\n }\n\n #").concat(t.classId," .mgl-item {\n width: calc(100% / ").concat(t.columns,");\n padding-bottom: calc(100% / ").concat(t.columns,");\n }\n\n ").concat(t.columns>2&&"\n @media screen and (max-width: 460px) {\n #".concat(t.classId," .mgl-item {\n width: 50%;\n padding-bottom: 50%;\n }\n }\n "),"\n\n ").concat(t.columns>1&&"\n @media screen and (max-width: 360px) {\n #".concat(t.classId," .mgl-item {\n width: 100%;\n padding-bottom: 100%;\n }\n }\n "),"\n\n #").concat(t.classId,".custom-gallery-class .mgl-item {\n padding-bottom: calc(100% / ").concat(t.columns," / 1.5) !important;\n }\n\n #").concat(t.classId," .mgl-item .mgl-icon {\n padding: ").concat(t.gutter/2,"px;\n }\n\n #").concat(t.classId," .mgl-item figcaption {\n padding: ").concat(t.gutter/2,"px;\n }\n ")}),(function(t){return t.layout===Be&&"\n .mgl-cascade {\n display: ".concat(t.isPreview?"block":"none",";\n }\n\n #").concat(t.classId," {\n margin: ").concat(-1*t.gutter/2,"px;\n }\n\n #").concat(t.classId," .mgl-box {\n padding: ").concat(t.gutter/2,"px;\n }\n\n @media screen and (max-width: 600px) {\n #").concat(t.classId," figcaption {\n display: none\n }\n }\n ")}),(function(t){return t.layout===He&&"\n .mgl-tiles {\n display: ".concat(t.isPreview?"block":"none",";\n }\n\n #").concat(t.classId," {\n margin: ").concat(-1*t.gutter.desktop/2,"px;\n width: calc(100% + ").concat(t.gutter.desktop,"px);\n }\n\n #").concat(t.classId," .mgl-box {\n padding: ").concat(t.gutter.desktop/2,"px;\n }\n\n @media screen and (max-width: 768px) {\n #").concat(t.classId," {\n margin: ").concat(-1*t.gutter.tablet/2,"px;\n width: calc(100% + ").concat(t.gutter.tablet,"px);\n }\n\n #").concat(t.classId," .mgl-box {\n padding: ").concat(t.gutter.tablet/2,"px;\n }\n }\n\n @media screen and (max-width: 460px) {\n #").concat(t.classId," {\n margin: ").concat(-1*t.gutter.mobile/2,"px;\n width: calc(100% + ").concat(t.gutter.mobile,">px);\n }\n\n #").concat(t.classId," .mgl-box {\n padding: ").concat(t.gutter.mobile/2,"px;\n }\n }\n ")}),(function(t){return t.layout===Ke&&"\n #".concat(t.classId," {\n min-height: ").concat(t.imageHeight,"px;\n }\n\n #").concat(t.classId," .meow-horizontal-track {\n height: ").concat(t.imageHeight,"px;\n }\n\n #").concat(t.classId," .meow-horizontal-prev-btn, #").concat(t.classId," .meow-horizontal-next-btn {\n top: ").concat(t.imageHeight/2,"px;\n }\n\n #").concat(t.classId," .mgl-item {\n padding: 0 ").concat(t.gutter/2,"px;\n }\n\n #").concat(t.classId," .mgl-item figcaption {\n width: calc(100% - ").concat(t.gutter,"px);\n padding: 0 ").concat(t.gutter/2,"px;\n left: ").concat(t.gutter/2,"px;\n }\n ")}),(function(t){return t.layout===We&&"\n #".concat(t.classId," {\n min-height: ").concat(t.imageHeight,"px;\n }\n\n #").concat(t.classId," .meow-carousel-track {\n height: ").concat(t.imageHeight,"px;\n }\n\n #").concat(t.classId," .meow-carousel-prev-btn, #").concat(t.classId," .meow-carousel-next-btn {\n top: ").concat(t.imageHeight/2,"px;\n }\n\n #").concat(t.classId," .mgl-item {\n padding: 0 ").concat(t.gutter/2,"px;\n }\n\n #").concat(t.classId," .mgl-item figcaption {\n width: calc(100% - ").concat(t.gutter,"px);\n padding: 0 ").concat(t.gutter/2,"px;\n left: ").concat(t.gutter/2,"px;\n }\n ")}),(function(t){return t.layout===$e&&"\n #".concat(t.classId," .mgl-item .mgl-icon .mgl-map-container {\n height: ").concat(t.mapHeight,"px;\n }\n ")}));function Jn(t){return function(t){if(Array.isArray(t))return Xn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Vn(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yn(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){u=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,e)||Vn(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vn(t,e){if(t){if("string"==typeof t)return Xn(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xn(t,e):void 0}}function Xn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var Zn=function(){var t=vn(),e=t.classId,n=t.className,r=t.inlineStyle,o=t.images,i=t.masonryColumns,a=t.masonryLeftToRight,l=Et(null),c=Yn(Ot(i),2),u=c[0],s=c[1];return jt((function(){if(a){var t=function(){var t=window.getComputedStyle(l.current),e=parseInt(t["column-count"]);e!==u&&s(e)};l.current.addEventListener("masonry-layout",t);var e=new ResizeObserver((function(){l.current.dispatchEvent(new CustomEvent("masonry-layout"))}));return e.observe(l.current),function(){e.disconnect(),l.current.removeEventListener("masonry-layout",t)}}}),[]),se("div",{ref:l,id:e,className:n,style:r,children:(a?function(t,e){if(!e||1===e)return t;for(var n=[],r=Array.from({length:e},(function(){return[]})),o=0;o<t.length;o++)r[o%e].push(t[o]);for(var i=0,a=r;i<a.length;i++){var l=a[i];n=[].concat(Jn(n),Jn(l))}return n}(o,u):o).map((function(t){return se(zn,{image:t},t.id)}))})};function Qn(t){return Qn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qn(t)}function tr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function er(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tr(Object(n),!0).forEach((function(e){nr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function nr(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=Qn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Qn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Qn(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){u=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return or(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?or(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function or(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var ir=function(){var t=vn(),e=t.classId,n=t.className,r=t.inlineStyle,o=t.images,i=rr(Ot(!1),2),a=i[0],l=i[1];return jt((function(){l(!0)}),[]),se("div",{id:e,className:n,style:a?er({},r):er(er({},r),{},{visibility:"hidden",display:"none"}),children:o.map((function(t){return se(zn,{image:t},t.id)}))})},ar=function(){var t=vn(),e=t.classId,n=t.className,r=t.inlineStyle,o=t.images,i=t.layouts,a=kt((function(t){return t.reverse().map((function(t){return t.meta.width>=t.meta.height?"o":"i"})).join("")}),[]),l=kt((function(t,e){if(e<=0)return{result:!1,ideal:arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,size:null,currentImages:null};var n=o.slice(t,t+e),r=a(n);return i.includes(r)?{result:!0,ideal:r,size:e,currentImages:n}:l(t,e-1,r)}),[o,i,a]);return se("div",{id:e,className:n,style:r,children:It((function(){for(var t=0,e=o.length-1,n=[];e>=t;){var r=l(t,2),i=r.result,a=r.ideal,c=r.size,u=r.currentImages;n.push({showError:!i,layout:a,images:u}),t+=c}return n}),[o,l]).map((function(t){var e=t.showError,n=t.layout,r=t.images;return e&&se("div",{style:"padding: 20px; background: darkred; color: white;",children:["MEOW GALLERY ERROR. No layout for ",n]}),se("div",{class:"mgl-row mgl-layout-".concat(n.length,"-").concat(n),"data-cascade-layout":n,children:r.map((function(t,e){return se("div",{class:"mgl-box ".concat(String.fromCharCode(97+e)),children:se(zn,{image:t})},t.id)}))})}))})};function lr(t){return lr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lr(t)}function cr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ur(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?cr(Object(n),!0).forEach((function(e){sr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function sr(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=lr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=lr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==lr(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function fr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){u=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return dr(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dr(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var pr=function(){var t=Et(null),e=vn(),n=e.classId,r=e.className,o=e.inlineStyle,i=e.images,a=e.density,l=e.tilesStylishStyle,c=fr(Ot(window.innerWidth),2),u=c[0],s=c[1],f=fr(Ot(!1),2),d=f[0],p=f[1],m=It((function(){return l?"mgl-tiles-stylish":""}),[l]),h=a[It((function(){var t=window.innerWidth;return t<=460?"mobile":t<=768?"tablet":"desktop"}),[u])],y=Ve[h],g=It((function(){if(!i.length)return[];var t=[],e="";if(i.forEach((function(n,r){var o=e+n.orientation;y.includes(o)?e=o:(t.push(e),e=n.orientation),r===i.length-1&&t.push(e)})),t.length>=2){var n=t.length-1,r=t.length-2,o=t[n].split(""),a=t[r].split("");if(1===o.length&&a.length>2){var l=a.pop();o.unshift(l)}t[r]=a.join(""),t[n]=o.join("")}return function(t){var e=0;return t.map((function(t){var n="";return"oooo"===t?(3===e&&(e=0),n+=0===e?"".concat(t,"-v0"):"".concat(t,"-v").concat(e),e++):n+=t,{content:t,rowLayout:n}}))}(t)}),[i,y]);jt((function(){var t=function(){s(window.innerWidth),document.body.dispatchEvent(new Event("post-load"))};return window.addEventListener("resize",t),function(){return window.removeEventListener("resize",t)}}),[]),jt((function(){d&&t.current&&g.length&&t.current.querySelectorAll(".mgl-row").forEach((function(t){var e=t.getAttribute("data-row-layout"),n=Ze[e],r=function(t,e){var n="three-two";if("landscape"==e)switch(n){case"three-two":return 2*t/3;case"five-four":return 4*t/5}else switch(n){case"three-two":return 3*t/2;case"five-four":return 5*t/4}}(t.querySelector(".mgl-box.".concat(n.box)).offsetWidth,n.orientation);0===r?setTimeout((function(){t.style.height=r+"px"}),750):t.style.height=r+"px"}))}),[d,g.length]),jt((function(){p(!0)}),[]);var v=d?ur({},o):ur(ur({},o),{},{visibility:"hidden",display:"none"});return se("div",{ref:t,id:n,className:r,style:v,children:g.map((function(t,e){var n=t.content,r=t.rowLayout,o=0===e?0:g.filter((function(t,n){return n<e})).reduce((function(t,e){return t+e.content.length}),0),a=i.slice(o,o+n.length);return se("div",{className:"mgl-row mgl-layout-".concat(n.length,"-").concat(r),"data-row-layout":r,children:a.map((function(t,e){return se("div",{className:"mgl-box ".concat(String.fromCharCode(97+e)),children:se(zn,{image:ur(ur({},t),{},{classNames:[m]})})},t.id)}))},e)}))})};function mr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){u=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return hr(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hr(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var yr=function(){var t=Et(),e=vn(),n=e.classId,r=e.className,o=e.inlineStyle,i=e.images,a=e.horizontalHideScrollbar,l=e.horizontalGutter,c=e.horizontalScrollWarning,u=e.canInfiniteScroll,s=e.infiniteBuffer,f=e.horizontalNativeScroll,d=e.busy,p=vn().loadImages,m=mr(Ot(0),2),h=m[0],y=m[1],g=mr(Ot(0),2),v=g[0],b=g[1],_=mr(Ot(!1),2),w=_[0],S=_[1],O=mr(Ot(!1),2),x=O[0],j=O[1],E=mr(Ot(!0),2),I=E[0],k=E[1],L=mr(Ot(!0),2),P=L[0],N=L[1],T=It((function(){var t=[r];return a&&t.push("hide-scrollbar"),t.join(" ")}),[r,a]),A=kt((function(){t.current&&u&&!d&&t.current.scrollLeft>=t.current.scrollLeftMax-s&&p()}),[t,d,u,s,p]),M=kt((function(e){f||t.current&&(e.preventDefault(),t.current.scrollLeft+=e.deltaY,R(),A())}),[t,A]),C=kt((function(e){t.current&&(e.preventDefault(),b(t.current.scrollLeft),y(e.screenX),S(!0))}),[t]),D=kt((function(e){if(t.current){var n=h-e.screenX;w&&(Math.abs(n)>5&&!x?(j(!0),t.current.querySelectorAll("img").forEach((function(t){t.classList.remove("mwl-img"),t.classList.add("mwl-img-disabled")}))):j(!1),x&&(t.current.scrollLeft=v+n,A(),R()))}}),[t,h,w,x,v,A]),G=kt((function(){t.current&&w&&(S(!1),j(!1),t.current.querySelectorAll("img").forEach((function(t){t.classList.add("mwl-img"),t.classList.remove("mwl-img-disabled")})))}),[t,w]),z=kt((function(){t.current&&(S(!1),j(!1),t.current.querySelectorAll("img").forEach((function(t){t.classList.add("mwl-img"),t.classList.remove("mwl-img-disabled")})))}),[t]),R=kt((function(){t.current&&c&&(t.current.scrollLeftMax=t.current.scrollWidth-t.current.clientWidth,k(t.current.scrollLeft<t.current.scrollLeftMax-300&&P),N(!1))}),[t,P]),H=It((function(){return I&&c?se("div",{className:"meow-horizontal-more-images",children:se("p",{children:" Keep scrolling, more to see ! ⏩ "})}):null}),[I,t]);return jt((function(){if(!P&&c){var e=setTimeout((function(){N(!0),k(t.current.scrollLeft<t.current.scrollLeftMax-300)}),3e3);return function(){return clearTimeout(e)}}}),[P,t,c]),se("div",{id:n,className:T,style:o,"data-mgl-gutter":l,onWheel:M,onMouseDown:C,onMouseMove:D,onMouseOut:G,onMouseUp:z,children:[se("div",{ref:t,className:"meow-horizontal-track",children:i.map((function(t){return se(zn,{image:t},t.id)}))}),H]})};function gr(t){return gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gr(t)}function vr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function br(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vr(Object(n),!0).forEach((function(e){_r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _r(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=gr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=gr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==gr(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wr(t){return function(t){if(Array.isArray(t))return xr(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Or(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Sr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){u=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,e)||Or(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Or(t,e){if(t){if("string"==typeof t)return xr(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xr(t,e):void 0}}function xr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var jr=function(){var t,e,n=Et(null),r=Et(null),o=vn(),i=o.classId,a=o.className,l=o.inlineStyle,c=o.images,u=o.carouselGutter,s=o.carouselArrowNavEnabled,f=o.carouselInfinite,d=o.carouselDotNavEnabled,p=o.carouselThumbnailNavEnabled,m=o.carouselCompact,h=o.carouselImmersive,y=o.carouselAutoplay,g=o.captions,v=o.atts,b=vn().loadImages;function _(t,e){return t in v?"true"===v[t]||"1"===v[t]:e}var w=_("arrow",s),S=_("dot",d),O=_("thumbnail",p),x=_("compact",m),j=_("immersive",h),I=_("autoplay",y),k=_("keep-aspect-ratio",!1),L=(null==v?void 0:v.captions)||g;null!=v&&v.hero&&(w=!1,S=!1,O=!1,x=!0,j=!0,I=!0,L="none");var P=Sr(Ot([]),2),N=P[0],T=P[1],A=Sr(Ot(""),2),M=A[0],C=A[1],D=Sr(Ot(0),2),G=D[0],z=D[1],R=Sr(Ot([]),2),H=R[0],U=R[1],q=Sr(Ot(),2),F=q[0],B=q[1],W=Sr(Ot(!1),2),$=W[0],K=W[1],J=Sr(Ot(!1),2),Y=J[0],V=J[1],X=Sr(Ot(0),2),Z=X[0],Q=X[1],tt=Sr(Ot(0),2),et=tt[0],nt=tt[1],rt=Sr(Ot(0),2),ot=rt[0],it=rt[1],at=Sr(Ot(null!==(t=I)&&void 0!==t&&t),2),lt=at[0],ct=at[1],ut=Sr(Ot(!1),2),st=ut[0],ft=ut[1],dt=It((function(){var t=c.length;return 0===t?[]:[br(br({},c.at(-2)),{},{classNames:["clone","before-last-item","no-lightbox"]}),br(br({},c.at(t>1?-1:0)),{},{classNames:["clone","last-item","no-lightbox"]})].concat(wr(c),[br(br({},c.at(0)),{},{classNames:["clone","first-item","no-lightbox"]}),br(br({},c.at(t>1?1:0)),{},{classNames:["clone","after-last-item","no-lightbox"]})]).map((function(t,e){var n;return br(br({},t),{},{dataIndex:e,classNames:e===F?[].concat(wr(null!==(n=t.classNames)&&void 0!==n?n:[]),["active"]):t.classNames,attributes:br(br({},t.attributes),{},{"data-mc-index":e})})}))}),[c,F]),pt=kt((function(t){return dt.find((function(e){return e.dataIndex===t})).classNames.includes("clone")}),[dt]),mt=It((function(){return dt.find((function(t){return t.dataIndex===F}))}),[dt,F]),ht=dt.length,yt=ht-3,gt=kt((function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n.current&&H.length&&null!=t){var r=parseInt(t);T(e?["no-transition"]:[]);var o,i=H.find((function(t){return t.dataIndex===r})).element,a=-1*((o=i).offsetLeft+o.offsetWidth/2-n.current.offsetWidth/2);C("translate3d(".concat(a,"px, 0, 0)")),e&&setTimeout((function(){T([])})),B(r)}}),[n,H]),vt=kt((function(){var t=F;2===F&&(gt(yt+1,!0),t=yt+1),setTimeout((function(){gt(0===t?ht-1:t-1)}),1)}),[pt,F,mt,ht,gt,lt]),bt=kt((function(){var t=F;F===yt&&(gt(1,!0),t=1),setTimeout((function(){gt(t===ht-1?0:t+1)}),1)}),[pt,F,mt,dt,ht,gt]),_t=function(){if(!n.current||!r.current||!H.length)return!1;var t=n.current.getBoundingClientRect().left+n.current.offsetWidth/2,e=H[1].element.getBoundingClientRect().left+H[1].element.offsetWidth/2,o=H[H.length-2].element.getBoundingClientRect().left+H[H.length-2].element.offsetWidth/2;return t-e<=0?(gt(yt,!0),nt(parseFloat(Qt(r.current)[0])),!0):t-o>=0&&(gt(2,!0),nt(parseFloat(Qt(r.current)[0])),!0)},wt=function(){if(!n.current)return null;var t=n.current.getBoundingClientRect().left+n.current.offsetWidth/2,e=!1,r=0;return H.forEach((function(n,o){var i=n.element.getBoundingClientRect().left+n.element.offsetWidth/2,a=Math.abs(t-i);(!e||a<e)&&(e=a,r=o)})),r},St=kt((function(t){r.current&&(K(!0),"touchstart"===t.type?Q(t.touches[0].pageX):Q(t.clientX),nt(parseFloat(Qt(r.current)[0])))}),[r]),xt=kt((function(t){if($&&r.current)if(r.current.querySelectorAll(".mwl-img").forEach((function(t){t.classList.remove("mwl-img"),t.classList.add("mwl-img-disabled")})),V(!0),r.current.classList.add("no-transition"),_t())Q(t.clientX);else{var e="touchmove"===t.type?Z-t.touches[0].pageX:Z-t.clientX;it(e),r.current.style.transform="translate3d("+(et-e)+"px, 0, 0)"}}),[$,r,_t,Z,et]),Lt=kt((function(){if(r.current){var t=Y;if(r.current.classList.remove("no-transition"),V(!1),K(!1),t){setTimeout((function(){document.querySelectorAll(".mwl-img-disabled").forEach((function(t){t.classList.remove("mwl-img-disabled"),t.classList.add("mwl-img")}))}));var e=wt();return e===F&&ot>=80&&bt(),e===F&&ot<=-80&&vt(),gt(e),!1}}}),[r,Y,F,ot,bt,vt,wt]),Pt=kt((function(){ct(!lt)}),[lt]),Nt=It((function(){return se("div",{className:"meow-carousel-autoplay-btn",onClick:Pt,children:[lt&&se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:[se("path",{d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256 256-114.6 256-256S397.4 0 256 0zm0 480C132.5 480 32 379.5 32 256S132.5 32 256 32s224 100.5 224 224-100.5 224-224 224z"}),se("path",{d:"M352.5 256L192 352V160z"})]}),!lt&&se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:se("path",{d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256 256-114.6 256-256S397.4 0 256 0zm0 480C132.5 480 32 379.5 32 256S132.5 32 256 32s224 100.5 224 224-100.5 224-224 224z"})})]})}),[Pt,lt]),Tt=It((function(){return se(E,{children:[se("div",{className:"meow-carousel-prev-btn",onClick:vt,children:se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:se("path",{d:"M217.9 256L345 129c9.4-9.4 9.4-24.6 0-33.9-9.4-9.4-24.6-9.3-34 0L167 239c-9.1 9.1-9.3 23.7-.7 33.1L310.9 417c4.7 4.7 10.9 7 17 7s12.3-2.3 17-7c9.4-9.4 9.4-24.6 0-33.9L217.9 256z"})})}),se("div",{className:"meow-carousel-next-btn",onClick:bt,children:se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:se("path",{d:"M294.1 256L167 129c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.3 34 0L345 239c9.1 9.1 9.3 23.7.7 33.1L201.1 417c-4.7 4.7-10.9 7-17 7s-12.3-2.3-17-7c-9.4-9.4-9.4-24.6 0-33.9l127-127.1z"})})})]})}),[vt,bt]),At=It((function(){var t=x?"meow-inside-top":"",e=dt.length-4>25?"meow-nowrap":"",n=F-2-5<0?0:F-2-5,r=Math.floor(60*n)+5;return se("div",{className:"meow-carousel-nav-thumbnails-container ".concat(e," ").concat(t),style:{transform:"translateX(-".concat(e?r:0,"px)")},children:dt.map((function(t){var e;if(Object.hasOwn(t,"classNames")&&null!==(e=t.classNames)&&void 0!==e&&e.includes("clone"))return null;var n=["meow-carousel-nav-thumbnail"];return(t.dataIndex===F||2===t.dataIndex&&yt<F||t.dataIndex===yt&&2>F)&&n.push("active"),se("div",{className:"".concat(n.join(" ")," no-lightbox"),onClick:function(){return gt(t.dataIndex)},dangerouslySetInnerHTML:{__html:t.img_html}},t.dataIndex)})).filter((function(t){return null!==t}))})}),[dt,F,gt]),Mt=It((function(){var t=x?"meow-inside-top":"",e=dt.length-4>25?"meow-nowrap":"",n=F-2-10<0?0:F-2-10,r=Math.floor(26*n)+5;return se("div",{className:"meow-carousel-nav-dots-container ".concat(e," ").concat(t),style:{transform:"translateX(-".concat(e?r:0,"px)")},children:dt.map((function(t){var e;if(Object.hasOwn(t,"classNames")&&null!==(e=t.classNames)&&void 0!==e&&e.includes("clone"))return null;var n=["meow-carousel-nav-dot"];return(t.dataIndex===F||2===t.dataIndex&&yt<F||t.dataIndex===yt&&2>F)&&n.push("active"),se("div",{className:n.join(" "),onClick:function(){return gt(t.dataIndex)},children:se("span",{})},t.dataIndex)})).filter((function(t){return null!==t}))})}),[dt,F,gt]),Ct=It((function(){return se("div",{className:"meow-carousel-caption-container ".concat(x?"meow-inside-bottom-text":""),children:dt.map((function(t){var e;if(void 0===t.caption||""===t.caption)return null;if(Object.hasOwn(t,"classNames")&&null!==(e=t.classNames)&&void 0!==e&&e.includes("clone"))return null;var n=["meow-carousel-caption"];return(t.dataIndex===F&&t.caption||t.caption&&2===t.dataIndex&&yt<F||t.dataIndex===yt&&2>F)&&n.push("active"),se("div",{className:"".concat(n.join(" ")),children:[j&&se("div",{className:"meow-immersive-caption",style:"background: url('".concat(t.img_html.match(/src="([^"]*)/)[1],"') no-repeat center center; background-size: cover;")}),se("p",{dangerouslySetInnerHTML:{__html:t.caption}})]},t.dataIndex)})).filter((function(t){return null!==t}))})}),[dt,F]);jt((function(){function t(){gt(F,!0)}return window.addEventListener("resize",t),function(){return window.removeEventListener("resize",t)}}),[F,gt]),jt((function(){if(0===G&&r.current&&dt.length>0){var t,e=Array.from(null===(t=r.current)||void 0===t?void 0:t.children);z(e.reduce((function(t,e){return t+e.offsetWidth}),0)),U(e.map((function(t){return{element:t,dataIndex:parseInt(t.getAttribute("data-mc-index"))}})))}}),[null===(e=r.current)||void 0===e?void 0:e.children,dt]),jt((function(){if(f&&c.length+4!=H.length){var t,e=Array.from(null===(t=r.current)||void 0===t?void 0:t.children);U(e.map((function(t){return{element:t,dataIndex:parseInt(t.getAttribute("data-mc-index"))}}))),gt(F,!1),window.renderMeowLightbox&&window.renderMeowLightbox()}}),[c]),jt((function(){f&&(F>0&&F%10==0||F>c.length)&&b()}),[F]),jt((function(){G>0&&setTimeout((function(){gt(2,!0)}),300)}),[G]),jt((function(){if(lt){var t=setInterval((function(){setTimeout((function(){bt()}),10)}),4e3);return function(){return clearInterval(t)}}}),[lt,F]),jt((function(){ft(!0)}),[]);var Dt=st?br({},l):br(br({},l),{},{visibility:"hidden",display:"none"});return se("div",{ref:n,id:i,className:a,style:Dt,"data-mgl-gutter":u,"data-mgl-arrow_nav":w,"data-mgl-dot_nav":S,"data-mgl-keep_aspect_ratio":k,children:[se("div",{ref:r,className:["meow-carousel-track"].concat(wr(N)).join(" "),style:{width:"".concat(G,"px"),transform:M,opacity:null!=F?1:0},onMouseDown:St,onTouchStart:St,onMouseMove:xt,onTouchMove:xt,onMouseUp:Lt,onTouchEnd:Lt,children:dt.map((function(t){return se(zn,{image:t,atts:{keepAspectRatio:k}},t.dataIndex)}))}),I&&Nt,w&&Tt,"none"!=L&&Ct,O&&At,S&&Mt]})};function Er(t){return Er="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Er(t)}function Ir(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function kr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ir(Object(n),!0).forEach((function(e){Lr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ir(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Lr(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=Er(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Er(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Er(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Pr=function(){var t=vn(),e=t.classId,n=t.className,r=t.inlineStyle,o=t.mglMap,i=oe();return se("div",{id:e,className:n,style:kr(kr({},r),{},{height:"".concat(o.height,"px")}),children:se("div",{id:i,className:"mgl-ui-map"})})};!function(t,e,n,r){Z.p=e,ot=t,it=n,at=r}(x);var Nr=function(){var t=vn(),e=t.layout,n=t.containerClassName,r=t.isPreview,o=t.gutter,i=t.columns,a=t.classId,l=t.imageHeight,c=t.rightClick,u=t.mapHeight,s=t.infinite,f=t.loading,d=t.infiniteBuffer,p=t.busy,m=t.canInfiniteScroll,h=vn().loadImages,y=function(t){return Ye.includes(t)}(e),g=It((function(){switch(e){case qe:return se($n,{});case Ue:return se(Zn,{});case Fe:return se(ir,{});case Be:return se(ar,{});case He:return se(pr,{});case Ke:return se(yr,{});case We:return se(jr,{});case $e:return se(Pr,{});default:return se("p",{children:["Sorry, not implemented yet! : ",e]})}}),[e]),v=kt((function(t){c||t.preventDefault()}),[c]),b=kt((function(){h(),window.renderMeowLightbox&&setTimeout((function(){window.renderMeowLightbox()}),500)}),[h]);return jt((function(){var t;if(s&&y&&"button-loader"!==f){var e=window.location.hash;if(e){var n=e.split("mwl-")[1];n&&h(n)}t=function(){var t;if(!p){var e=null===(t=document.querySelector("#".concat(a)))||void 0===t?void 0:t.nextElementSibling;if(null!=e&&e.classList.contains("mgl-infinite-scroll"))window.scrollY+window.innerHeight>e.offsetTop-d&&(console.log("Loading more images..."),h(),window.renderMeowLightbox&&setTimeout((function(){window.renderMeowLightbox()}),500))}},window.addEventListener("scroll",t)}return function(){t&&window.removeEventListener("scroll",t)}}),[s,y,d,p,h,a,f]),se(Kn,{className:n,layout:e,isPreview:r,gutter:o,columns:i,classId:a,imageHeight:l,mapHeight:u,onContextMenu:v,children:[g,m&&y&&("button-loader"===f?se("button",{onClick:b,className:"mgl-button-loader",disabled:p,children:p?"Loading...":"Load more"}):se("div",{className:"mgl-infinite-scroll ".concat("undefined"!==f&&"none"!==f?f:""),children:se("div",{className:"mgl-loading"})}))]})};function Tr(t){return Tr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tr(t)}function Ar(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Mr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ar(Object(n),!0).forEach((function(e){Cr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ar(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Cr(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=Tr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Tr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Tr(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Dr(t){return function(t){if(Array.isArray(t))return Gr(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Gr(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gr(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var zr=function(t){var e=t.collectionThumbnail,n=t.attributes,r=void 0===n?{}:n,o=t.setIsLoadingRoot,i=t.index,a=t.isOdd,l=t.isLast,c=e.name,u=e.description,s=e.gallery_id,f=e.wplr_collection_id,d=(e.media_id,e.img_src),p=e.img_srcset,m=e.classNames,h=a&&l,y=["mgl-collection-item"].concat(Dr(void 0===m?[]:m)).join(" ").trim(),g=It((function(){return'<img class="mgl-collection-thumbnail no-lightbox" src="'.concat(d,'" srcset="').concat(p,'" />')}),[d,p]),v=It((function(){if(void 0===i)return{};if(h){var t,e=i-1,n=e%4,r=6*Math.floor(e/4)+1;if(0===n)t="".concat(r," / 1 / ").concat(r+3," / 6");else{if(2!==n)return{gridArea:1===n?"".concat(r," / 3 / ").concat(r+3," / 6"):"".concat(r+3," / 4 / ").concat(r+6," / 6")};t="".concat(r+3," / 1 / ").concat(r+6," / 6")}return{gridArea:t}}var o,a=i-1,l=6*Math.floor(a/4)+1;switch(a%4){case 0:o="".concat(l," / 1 / ").concat(l+3," / 3");break;case 1:o="".concat(l," / 3 / ").concat(l+3," / 6");break;case 2:o="".concat(l+3," / 1 / ").concat(l+6," / 4");break;case 3:o="".concat(l+3," / 4 / ").concat(l+6," / 6")}return{gridArea:o}}),[i,h]);return se("figure",Mr(Mr({className:y},r),{},{onClick:function(){return function(){var t,e;void 0!==f?(t=f,e="wplr_collection_id"):(t=s,e="gallery_id");var n=new URL(window.location.href);n.searchParams.set(e,t),window.history.pushState({},"",n),o(t,e)}()},style:v,children:se("div",{className:"mgl-collection-img-container",children:[se("div",{className:"mgl-collection-image-content",dangerouslySetInnerHTML:{__html:g}}),se("div",{className:"mgl-collection-overlay"}),se("div",{className:"mgl-collection-info",children:[se("h3",{className:"mgl-collection-title",children:c}),se("p",{className:"mgl-collection-caption",children:u})]})]})}))};function Rr(t){return Rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rr(t)}function Hr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ur(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Hr(Object(n),!0).forEach((function(e){qr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Hr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function qr(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=Rr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Rr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Rr(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Fr=function(t){var e=t.classId,n=t.className,r=void 0===n?"":n,o=t.inlineStyle,i=t.collectionThumbnails,a=t.setIsLoadingRoot,l=(i=i.filter((function(t){return!t.error||(console.error("Meow Gallery: Error loading collection thumbnail",t),!1)}))).length,c=l%2!=0,u=0;if(l>0){var s=l-1,f=s%4,d=6*Math.floor(s/4)+1;u=0===f||1===f?d+2:d+5}var p={gridTemplateColumns:"repeat(5, 1fr)",gridTemplateRows:"repeat(".concat(u,", minmax(50px, 1fr))")};return se("div",{id:e,className:"mgl-collection-bento ".concat(r),style:Ur(Ur({},p),o),children:i.map((function(t,e){return se(zr,{collectionThumbnail:t,isOdd:c,isLast:e===i.length-1,index:e+1,setIsLoadingRoot:a},t.id)}))})};function Br(t){return Br="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Br(t)}function Wr(){
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
Wr=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),l=new P(r||[]);return o(a,"_invoke",{value:E(t,n,l)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var d="suspendedStart",p="suspendedYield",m="executing",h="completed",y={};function g(){}function v(){}function b(){}var _={};u(_,a,(function(){return this}));var w=Object.getPrototypeOf,S=w&&w(w(N([])));S&&S!==n&&r.call(S,a)&&(_=S);var O=b.prototype=g.prototype=Object.create(_);function x(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(o,i,a,l){var c=f(t[o],t,i);if("throw"!==c.type){var u=c.arg,s=u.value;return s&&"object"==Br(s)&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,a,l)}),(function(t){n("throw",t,a,l)})):e.resolve(s).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,l)}))}l(c.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,n,r){var o=d;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var c=I(l,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?h:p,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=h,r.method="throw",r.arg=u.arg)}}}function I(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,I(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function N(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(Br(e)+" is not iterable")}return v.prototype=b,o(O,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:v,configurable:!0}),v.displayName=u(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,c,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},x(j.prototype),u(j.prototype,l,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new j(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(O),u(O,c,"Generator"),u(O,a,(function(){return this})),u(O,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=N,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:N(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}function $r(t,e,n,r,o,i,a){try{var l=t[i](a),c=l.value}catch(t){return void n(t)}l.done?e(c):Promise.resolve(c).then(r,o)}function Kr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){u=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Jr(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jr(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var Yr=function(t){t.options,t.collectionOptions;var e=t.collectionThumbnails,n=t.atts,r=t.apiUrl,o=t.restNonce,i=Kr(Ot(!1),2),a=i[0],l=i[1],c=Kr(Ot(null),2),u=c[0],s=c[1],f=Kr(Ot(null),2),d=f[0],p=f[1],m=Kr(Ot(!1),2),h=m[0],y=m[1];jt((function(){var t,e,n=new URL(window.location.href);n.searchParams.has("gallery_id")?(t=n.searchParams.get("gallery_id"),e="gallery_id"):n.searchParams.has("wplr_collection_id")&&(t=n.searchParams.get("wplr_collection_id"),e="wplr_collection_id"),t?g(t,e):y(!0)}),[]);var g=function(){var t=function(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){$r(i,r,o,a,l,"next",t)}function l(t){$r(i,r,o,a,l,"throw",t)}a(void 0)}))}}(Wr().mark((function t(n,i){var a,c,u;return Wr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return l(!0),a=e.find((function(t){return t[i]==n})),p(a),t.next=5,re("".concat(r,"/load_gallery_collection"),{method:"POST",nonce:o,json:{id:n,search_slug:i}});case 5:if(!(c=t.sent).success){t.next=16;break}return s(c.data),(u=document.getElementById("mwl-data-script"))&&u.remove(),window.mwl_data=Object.assign({},window.mwl_data,JSON.parse(c.mwl_data)),setTimeout((function(){window.renderMeowGalleries()}),100),setTimeout((function(){window.renderMeowLightbox&&window.renderMeowLightbox()}),400),l(!1),y(!0),t.abrupt("return");case 16:return console.error("Error loading gallery",gallery_id,c),t.abrupt("return");case 18:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),v=It((function(){return se("div",{className:"mgl-gallery-collection-header",children:[se("button",{className:"mgl-gallery-collection-back",onClick:function(){return function(){s(null);var t=new URL(window.location.href);t.searchParams.delete("gallery_id"),window.history.pushState({},"",t)}()},"aria-label":"Back",children:se("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:se("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2.5",d:"M19 12H5M12 19l-7-7 7-7"})})}),se("h2",{className:"mgl-gallery-collection-name",children:null==d?void 0:d.name})]})}),[d]),b=It((function(){return n.layout||(n.layout="bento"),"bento"===n.layout?se(Fr,{collectionThumbnails:e,setIsLoadingRoot:g}):se("p",{children:["Sorry, not implemented yet! : ",n.layout]})}),[n.layout]);return se("div",{className:"mgl-collection-root","data-collection-id":n.id,children:h&&se(E,{children:se("div",{className:"mgl-collection-loading-container ".concat(a?"mgl-collection-loading":""," "),children:[!u&&b,!a&&u&&v,!a&&u&&se("div",{dangerouslySetInnerHTML:{__html:u}})]})})})};function Vr(t){return Vr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vr(t)}function Xr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Zr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xr(Object(n),!0).forEach((function(e){Qr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Qr(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=Vr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Vr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Vr(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var to=!1,eo=new WeakMap,no=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof t||""===t.trim())return console.warn("Meow Gallery: Invalid JSON string provided, returning fallback value.",{jsonString:t,fallback:e}),e;try{return JSON.parse(t)||e}catch(n){return console.error("JSON parsing error:",{errorMessage:n.message,jsonString:t}),e}},ro=function(){var t=document.querySelector("iframe.editor-canvas__iframe"),e=t?t.contentDocument||t.contentWindow.document:null,n=e?e.querySelectorAll(".mgl-root"):document.querySelectorAll(".mgl-root");n.length&&n.forEach((function(t){var e,n,r;if(!t.dataset.galleryOptions&&eo.has(t)){var o=eo.get(t);Object.keys(o.dataset).forEach((function(e){t.dataset[e]=o.dataset[e]})),!t.querySelector(".mgl-gallery-images")&&o.imagesContainerHTML&&t.insertAdjacentHTML("beforeend",o.imagesContainerHTML)}var i=t.querySelector(".mgl-gallery-container"),a=t.querySelector(".mgl-gallery-images"),l=no(null==t||null===(e=t.dataset)||void 0===e?void 0:e.galleryOptions,{}),c=no(null==t||null===(n=t.dataset)||void 0===n?void 0:n.galleryImages,[]),u=no(null==t||null===(r=t.dataset)||void 0===r?void 0:r.atts,{});if(i){if(eo.has(t)||eo.set(t,{dataset:Zr({},t.dataset),imagesContainerHTML:a?a.outerHTML:null}),!a)if("map"===u.layout)console.warn("Meow Gallery: The map layout does not require images to be present in the DOM.",{galleryRoot:t,galleryElement:i,galleryOptions:l,galleryImages:c,atts:u});else{if("carousel"!==u.layout)return void console.error("Meow Gallery: The container for the Meow Gallery images was not found; the code is probably from an old version and needs to be refreshed.",{galleryRoot:t,galleryElement:i,galleryOptions:l,galleryImages:c,atts:u});console.warn("Meow Gallery: The carousel layout does not require images to be present in the DOM.",{galleryRoot:t,galleryElement:i,galleryOptions:l,galleryImages:c,atts:u})}var s=a?Array.from(a.querySelectorAll(":scope > img, :scope > a")):[];0===s.length&&(s=a?Array.from(a.querySelectorAll(":scope > picture")):[],console.warn("Meow Gallery: No images found directly under the gallery container, checking for images inside <picture> elements.",{imagesElements:s,galleryRoot:t,galleryElement:i,galleryOptions:l,galleryImages:c,atts:u})),0===s.length||s.length!==c.length?console.warn("Meow Gallery: Mismatch between number of images in the DOM and their data. The elements will be created via JS.",{galleryElement:i,imagesElements:s,galleryImages:c,galleryOptions:l}):c.forEach((function(t,e){t.domElement=s[e]}));var f=t.querySelector(".mgl-gallery-skeleton");if(f){var d={position:i.style.position,top:i.style.top,left:i.style.left,width:i.style.width,height:i.style.height,zIndex:i.style.zIndex};i.style.position="absolute",i.style.top="0",i.style.left="0",i.style.width="100%",i.style.height="100%",i.style.zIndex="1",t.style.position="relative",setTimeout((function(){f.style.opacity="0"}),500),setTimeout((function(){f.remove(),Object.keys(d).forEach((function(t){i.style[t]=d[t]?d[t]:""}))}),1e3)}$(se(gn,{options:ae,galleryOptions:l,galleryImages:c,atts:u,apiUrl:le,restNonce:ce,children:se(Nr,{})}),i),Object.keys(t.dataset).forEach((function(e){delete t.dataset[e]})),a&&a.remove()}else console.error("Gallery error: The container for the gallery was not found.",{galleryRoot:t,galleryElement:i,galleryOptions:l,galleryImages:c,atts:u})}))},oo=function(){var t=document.querySelector("iframe.editor-canvas__iframe");t?(console.log("🖼️ Meow Gallery: Guttenberg is using an iframe, waiting for it to load..."),to?(console.log("🖼️ Meow Gallery: The iframe load listener was already added. Rendering galleries..."),ro()):(t.addEventListener("load",(function(){var e=document.getElementById("mgl-css-css"),n=document.getElementById("mgl-pro-css-css");if(e){console.log("🖼️ Meow Gallery: Cloning the CSS link for the iframe...");var r=e.cloneNode(!0);r.id="mgl-css-css-clone",t.contentDocument.head.appendChild(r)}if(n){console.log("🖼️ Meow Gallery: Cloning the Pro CSS link for the iframe...");var o=n.cloneNode(!0);o.id="mgl-pro-css-css-clone",t.contentDocument.head.appendChild(o)}ro()})),to=!0)):ro()},io=function(){var t=document.querySelectorAll(".mgl-collection-root");t.length&&t.forEach((function(t){var e,n,r,o=t.querySelector(".mgl-collection-container"),i=t.querySelector(".mgl-collection-thumbnails"),a=no(null==t||null===(e=t.dataset)||void 0===e?void 0:e.collectionOptions,{}),l=no(null==t||null===(n=t.dataset)||void 0===n?void 0:n.collectionThumbnails,[]),c=no(null==t||null===(r=t.dataset)||void 0===r?void 0:r.atts,{});if(o){var u=i?Array.from(i.querySelectorAll(":scope > a")):[];0===u.length||u.length!==l.length?console.warn("Meow Gallery: Mismatch between number of collections in the DOM and their data. The elements will be created via JS.",{collectionElement:o,collectionsElements:u,collectionThumbnails:l,collectionOptions:a}):l.forEach((function(t,e){t.domElement=u[e]})),$(se(Yr,{options:ae,collectionOptions:a,collectionThumbnails:l,atts:c,apiUrl:le,restNonce:ce}),o),Object.keys(t.dataset).forEach((function(e){delete t.dataset[e]})),i&&i.remove()}else console.error("Meow Gallery: The container for the Meow Collection was not found; the code is probably from an old version and needs to be refreshed.",{collectionRoot:t,collectionElement:o,collectionOptions:a,collectionThumbnails:l,atts:c})}))};window.renderMeowGalleries=oo,window.renderMeowCollections=io,document.addEventListener("DOMContentLoaded",(function(){ae&&le&&ce&&(oo(),io())}))})();