smartscapesinc.com
Open in
urlscan Pro
2606:4700:3031::6815:3cc5
Public Scan
Submitted URL: http://smartscapesinc.com/wp-content/plugins/photonic/include/js/front-end/module/photonic-baguettebox.min.js?ver=20220518...
Effective URL: https://smartscapesinc.com/wp-content/plugins/photonic/include/js/front-end/module/photonic-baguettebox.min.js?ver=20220518...
Submission: On November 19 via api from US — Scanned from DE
Effective URL: https://smartscapesinc.com/wp-content/plugins/photonic/include/js/front-end/module/photonic-baguettebox.min.js?ver=20220518...
Submission: On November 19 via api from US — Scanned from DE
Form analysis
0 forms found in the DOMText Content
(()=>{"use strict";var t,e,o,n,i,r={4209:t=>{function e(t,e,o,n,i,r,a){try{var l=t[r](a),c=l.value}catch(t){return void o(t)}l.done?e(c):Promise.resolve(c).then(n,i)}t.exports=function(t){return function(){var o=this,n=arguments;return new Promise((function(i,r){var a=t.apply(o,n);function l(t){e(a,i,r,l,c,"next",t)}function c(t){e(a,i,r,l,c,"throw",t)}l(void 0)}))}}},7593:t=>{t.exports=function(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}},6554:t=>{t.exports=function(t){return t&&t.__esModule?t:{default:t}}},9095:(t,e,o)=>{var n=o(5778);function i(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return i=function(){return t},t}t.exports=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==n(t)&&"function"!=typeof t)return{default:t};var e=i();if(e&&e.has(t))return e.get(t);var o={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){var l=r?Object.getOwnPropertyDescriptor(t,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=t[a]}return o.default=t,e&&e.set(t,o),o}},5778:t=>{function e(o){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=e=function(t){return typeof t}:t.exports=e=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(o)}t.exports=e},956:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Modal=void 0,e.Modal=function(t,e){var o=document.body,n=Object.assign({modalTarget:"photonicModal",closeCSS:"",closeFromRight:0,width:"80%",height:"100%",top:"0px",left:"0px",zIndexIn:"9999",zIndexOut:"-9999",color:"#39BEB9",opacityIn:"1",opacityOut:"0",animationDuration:".6s",overflow:"auto"},e),i=document.querySelector(".photonicModalOverlay"),r=document.querySelector(".photonicModalOverlayScrollable");i||((i=document.createElement("div")).className="photonicModalOverlay",(r=document.createElement("div")).className="photonicModalOverlayScrollable",i.appendChild(r),o.appendChild(i));var a=t.querySelector(".photonicModalClose");a||((a=document.createElement("a")).className="photonicModalClose "+n.closeCSS,a.style.right=n.closeFromRight,a.innerHTML="×",a.setAttribute("href","#"),t.insertAdjacentElement("afterbegin",a)),a=t.querySelector(".photonicModalClose");var l,c,s=document.querySelector("#"+n.modalTarget),u={width:n.width,height:n.height,top:n.top,left:n.left,"background-color":n.color,"overflow-y":n.overflow,"z-index":n.zIndexOut,opacity:n.opacityOut,"-webkit-animation-duration":n.animationDuration,"-moz-animation-duration":n.animationDuration,"-ms-animation-duration":n.animationDuration,"animation-duration":n.animationDuration};if(s){s.classList.add("photonicModal"),s.classList.add(n.modalTarget+"-off");var h="";for(var[d,p]of Object.entries(u))h+="".concat(d,": ").concat(p,"; ");s.style.cssText+=h,l=s,document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden",l.classList.contains(n.modalTarget+"-off")&&(l.classList.remove(n.modalTarget+"-off"),l.classList.add(n.modalTarget+"-on")),l.classList.contains(n.modalTarget+"-on")&&(l.style.opacity=n.opacityIn,l.style.zIndex=n.zIndexIn),i.style.overflowY=n.overflow,i.style.display="block",r.appendChild(l),l.style.display="block",l.style.overflowY=n.overflow,(c=r).style.height="auto",c.style.height="".concat(c.scrollHeight,"px"),c.style.height="auto"}a.addEventListener("click",(function(t){t.preventDefault(),document.documentElement.style.overflow="auto",document.body.style.overflow="auto",s.classList.contains(n.modalTarget+"-on")&&(s.classList.remove(n.modalTarget+"-on"),s.classList.add(n.modalTarget+"-off")),s.classList.contains(n.modalTarget+"-off")&&s.addEventListener("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",m,{once:!0}),s.style.overflowY="hidden",f(s),i.style.overflowY="hidden",i.style.display="none"}));var f=function(t){t.style.height=0,t.style.display="none"};function m(){s.style.zIndex=n.zIndexOut}}},8678:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Prompter=void 0,e.Prompter=class{constructor(t){this.events={onShow:new Event("onShow"),onConfirm:new Event("onConfirm"),onHide:new Event("onHide")},this.modal=document.getElementById(t),this.classClose=".close",this.classCancel=".cancel",this.classConfirm=".confirm",this.btnsOpen=[]}show(){return this.modal.dispatchEvent(this.events.onShow),this.modal.style.display="block",this}hide(){return this.modal.dispatchEvent(this.events.onHide),this.modal.style.display="none",this}removeEvents(){var t=this.modal.cloneNode(!0);return this.modal.parentNode.replaceChild(t,this.modal),this.modal=t,this}on(t,e){return this.modal.addEventListener(t,e),this}attach(){var t,e=[],o=this;for(t=(e=this.modal.querySelectorAll(o.classClose)).length-1;t>=0;t--)e[t].addEventListener("click",(function(){o.hide()}));for(t=(e=o.modal.querySelectorAll(o.classCancel)).length-1;t>=0;t--)e[t].addEventListener("click",(function(){o.hide()}));for(t=(e=o.modal.querySelectorAll(o.classConfirm)).length-1;t>=0;t--)e[t].addEventListener("click",(function(){o.modal.dispatchEvent(o.events.onConfirm),o.hide()}));for(t=o.btnsOpen.length-1;t>=0;t--)o.btnsOpen[t].addEventListener("click",(function(){o.show()}));return o}addOpenBtn(t){this.btnsOpen.push(t)}}},5870:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Tooltip=void 0,e.Tooltip=function(t,e){var o,n,i,r;function a(t){!function(t,e){var o=e.getAttribute("data-photonic-tooltip");if(""!==o){e.setAttribute("title",""),i=e.getBoundingClientRect();var n=document.createTextNode(o);t.innerHTML="",t.appendChild(n),i.left>window.innerWidth-100?t.className="photonic-tooltip-container tooltip-left":i.left+i.width/2<100?t.className="photonic-tooltip-container tooltip-right":t.className="photonic-tooltip-container tooltip-center"}}(o,t.currentTarget),function(t,e){if(""!==e.getAttribute("data-photonic-tooltip")){void 0===i&&(i=e.getBoundingClientRect());var o=i.top+i.height+window.scrollY,n=window.innerWidth-100;if(i.left+window.scrollX>n&&i.width<50)t.style.left=i.left+window.scrollX-(t.offsetWidth+i.width)+"px",t.style.top=e.offsetTop+"px";else if(i.left+window.scrollX>n&&i.width>50)t.style.left=i.left+window.scrollX-t.offsetWidth-20+"px",t.style.top=e.offsetTop+"px";else if(i.left+window.scrollX+i.width/2<100)t.style.left=i.left+window.scrollX+i.width+20+"px",t.style.top=e.offsetTop+"px";else{var r=i.left+window.scrollX+i.width/2-t.offsetWidth/2;t.style.left=r+"px",t.style.top=o+"px"}}}(o,t.currentTarget)}function l(t){if(o.className=n+" no-display",""!==o.innerText){o.removeChild(o.firstChild),o.removeAttribute("style");var e=t.currentTarget;e.setAttribute("title",e.getAttribute("data-photonic-tooltip"))}}r=document.documentElement.querySelectorAll(t),o=document.documentElement.querySelector(e),n=e.replace(/^\.+/g,""),null!==o&&0!==o.length||((o=document.createElement("div")).className=n+" no-display",document.body.appendChild(o)),r.forEach((function(t){t.removeEventListener("mouseenter",a),t.removeEventListener("mouseleave",l),t.addEventListener("mouseenter",a,!1),t.addEventListener("mouseleave",l,!1)}))}},1449:(t,e,o)=>{var n=o(9095),i=o(6554);Object.defineProperty(e,"__esModule",{value:!0}),e.Core=void 0;var r=i(o(4209)),a=i(o(7593)),l=n(o(91)),c=o(5870),s=o(8678);class u{}e.Core=u,(0,a.default)(u,"lightboxList",[]),(0,a.default)(u,"prompterList",[]),(0,a.default)(u,"lightbox",void 0),(0,a.default)(u,"deep",location.hash),(0,a.default)(u,"setLightbox",(function(t){return u.lightbox=t})),(0,a.default)(u,"getLightbox",(function(){return u.lightbox})),(0,a.default)(u,"setDeep",(function(t){return u.deep=t})),(0,a.default)(u,"getDeep",(function(){return u.deep})),(0,a.default)(u,"addToLightboxList",(function(t,e){return u.lightboxList[t]=e})),(0,a.default)(u,"getLightboxList",(function(){return u.lightboxList})),(0,a.default)(u,"showSpinner",(function(){var t=document.getElementsByClassName("photonic-loading");t.length>0?t=t[0]:(t=document.createElement("div")).className="photonic-loading",t.style.display="block",document.body.appendChild(t)})),(0,a.default)(u,"hideLoading",(function(){var t=document.getElementsByClassName("photonic-loading");t.length>0&&((t=t[0]).style.display="none")})),(0,a.default)(u,"initializePasswordPrompter",(function(t){var e=t.replace(/^#+/g,""),o=new s.Prompter(e);o.attach(),u.prompterList[t]=o,o.show()})),(0,a.default)(u,"moveHTML5External",(function(){var t=document.getElementById("photonic-html5-external-videos");t||((t=document.createElement("div")).id="photonic-html5-external-videos",t.style.display="none",document.body.appendChild(t));var e=document.querySelectorAll(".photonic-html5-external");if(e)for(var o=e.length,n=0;n<o;n++)e[n].classList.remove("photonic-html5-external"),t.appendChild(e[n])})),(0,a.default)(u,"blankSlideupTitle",(function(){document.querySelectorAll(".title-display-slideup-stick, .photonic-slideshow.title-display-slideup-stick").forEach((function(t){Array.from(t.getElementsByTagName("a")).forEach((function(t){t.setAttribute("title","")}))}))})),(0,a.default)(u,"showSlideupTitle",(function(){for(var t=document.documentElement.querySelectorAll(".title-display-slideup-stick a .photonic-title"),e=t.length,o=0;o<e;o++)t[o].style.display="block"})),(0,a.default)(u,"waitForImages",function(){var t=(0,r.default)((function*(t){var e=[],o=[],n=!1;"string"==typeof t?document.querySelectorAll(t).forEach((function(t){Array.from(t.getElementsByTagName("img")).forEach((function(t){e.push(t.getAttribute("src")),o.push(t.parentElement)}))})):t instanceof Element&&("instagram"===t.getAttribute("data-photonic-platform")&&(n=!0),Array.from(t.getElementsByTagName("img")).forEach((function(t){e.push(t.getAttribute("src")),o.push(t.parentElement)})));var i=[],r=[],a=function(t,e){i.push(new Promise((function(i){var a=new Image;a.onload=function(){n&&(o[t].setAttribute("data-pswp-width",a.naturalWidth),o[t].setAttribute("data-pswp-height",a.naturalHeight)),i()},a.src=e,r.push(a)})))};for(var[l,c]of e.entries())a(l,c);return yield Promise.all(i),r}));return function(e){return t.apply(this,arguments)}}()),(0,a.default)(u,"standardizeTitleWidths",(function(){var t=u;document.querySelectorAll(".photonic-standard-layout.title-display-below, .photonic-standard-layout.title-display-hover-slideup-show, .photonic-standard-layout.title-display-slideup-stick").forEach((function(e){t.waitForImages(e).then((function(){e.querySelectorAll(".photonic-thumb").forEach((function(t){var e=t.getElementsByTagName("img");if(null!=e){e=e[0];var o=t.querySelector(".photonic-title-info");o&&(o.style.width=e.width+"px")}}))}))}))})),(0,a.default)(u,"sanitizeTitles",(function(){document.querySelectorAll(".photonic-stream a, a.photonic-level-2-thumb").forEach((function(t){if(!t.parentNode.classList.contains("photonic-header-title")){var e=t.getAttribute("title");t.setAttribute("title",l.getText(e))}}))})),(0,a.default)(u,"initializeTooltips",(function(){null!=document.querySelector(".title-display-tooltip a, .photonic-slideshow.title-display-tooltip img")&&(0,c.Tooltip)("[data-photonic-tooltip]",".photonic-tooltip-container")})),(0,a.default)(u,"showRegularGrids",(function(){document.querySelectorAll(".photonic-standard-layout").forEach((function(t){u.waitForImages(t).then((function(){t.querySelectorAll(".photonic-level-1, .photonic-level-2").forEach((function(t){t.style.display="inline-block"}))}))}))})),(0,a.default)(u,"executeCommon",(function(){u.moveHTML5External(),u.blankSlideupTitle(),u.standardizeTitleWidths(),u.sanitizeTitles(),u.initializeTooltips(),u.showRegularGrids()}))},8025:(t,e,o)=>{var n=o(9095);Object.defineProperty(e,"__esModule",{value:!0}),e.JustifiedGrid=void 0;var i=o(1449),r=n(o(91)),a=function(t){var e,o,n,i,r;for(i=0,r=t.length;i<r;i++)e=(n=t[i])[0],(!o||e<o.computed)&&(o={value:n,computed:e});return o.value},l=function(t,e){var o,n,i,r,l,c,s,u,h,d,p,f;if(l=t.length,e<=0)return[];if(e>l)return t.map((function(t){return[t]}));for(s=function(){var t,o;for(o=[],t=0;0<=l?t<l:t>l;0<=l?++t:--t)o.push(function(){var t,o;for(o=[],u=t=0;0<=e?t<e:t>e;u=0<=e?++t:--t)o.push(0);return o}());return o}(),c=function(){var t,o,n;for(n=[],t=0,o=l-1;0<=o?t<o:t>o;0<=o?++t:--t)n.push(function(){var t,o,n;for(n=[],u=t=0,o=e-1;0<=o?t<o:t>o;u=0<=o?++t:--t)n.push(0);return n}());return n}(),n=h=0;0<=l?h<l:h>l;n=0<=l?++h:--h)s[n][0]=t[n]+(n?s[n-1][0]:0);for(i=d=0;0<=e?d<e:d>e;i=0<=e?++d:--d)s[0][i]=t[0];for(n=p=1;1<=l?p<l:p>l;n=1<=l?++p:--p)for(i=f=1;1<=e?f<e:f>e;i=1<=e?++f:--f)r=a(function(){var t,e;for(e=[],u=t=0;0<=n?t<n:t>n;u=0<=n?++t:--t)e.push([Math.max(s[u][i-1],s[n][0]-s[u][0]),u]);return e}()),s[n][i]=r[0],c[n-1][i-1]=r[1];for(l-=1,e-=2,o=[];e>=0;)o=[function(){var o,i,r,a;for(a=[],n=o=i=c[l-1][e]+1,r=l+1;i<=r?o<r:o>r;n=i<=r?++o:--o)a.push(t[n]);return a}()].concat(o),l=c[l-1][e],e-=1;return[function(){var e,o,i;for(i=[],n=e=0,o=l+1;0<=o?e<o:e>o;n=0<=o?++e:--e)i.push(t[n]);return i}()].concat(o)};e.JustifiedGrid=function(t,e,o,n){void 0!==console&&"0"!==Photonic_JS.debug_on&&""!==Photonic_JS.debug_on&&console.time("Justified Grid");var a=document.querySelectorAll(o);null!=o&&0!==a.length||(a=document.querySelectorAll(".photonic-random-layout")),!t&&a.length>0&&i.Core.showSpinner(),a.forEach((function(o){if(!o.classList.contains("sizes-missing")&&window.CSS&&CSS.supports("color","var(--fake-var)"))i.Core.waitForImages(o).then((function(){o.querySelectorAll(".photonic-thumb, .photonic-thumb img").forEach((function(t){return r.fadeIn(t)})),i.Core.blankSlideupTitle(),i.Core.showSlideupTitle(),t||e||i.Core.hideLoading()}));else{var a=Math.floor(o.getBoundingClientRect().width),c=Math.max(document.documentElement.clientHeight,window.innerHeight||0),s=Math.max(parseInt(c/4),Photonic_JS.tile_min_height),u=2*Photonic_JS.tile_spacing;i.Core.waitForImages(o).then((function(){var n=[];Array.from(o.getElementsByTagName("img")).forEach((function(t){if(null===t.closest(".photonic-panel")){var e=t.parentNode.parentNode;0!==t.naturalHeight&&void 0!==t.naturalHeight&&void 0!==t.naturalWidth&&n.push({tile:e,aspect_ratio:t.naturalWidth/t.naturalHeight})}}));for(var c=n.reduce((function(t,e){return t+(e.aspect_ratio*s+u)}),0),h=Math.max(Math.round(c/a),1),d=function(t,e){if(e<=0)return[];for(;e;)try{return l(t,e--)}catch(t){}}(n.map((function(t){return Math.round(100*t.aspect_ratio)})),h),p=0,f=d.length,m=0;m<f;m++){var g,v=d[m],y=n.slice(p,p+v.length);p+=v.length,g=y.reduce((function(t,e){return t+e.aspect_ratio}),0);for(var b=y.length,w=0;w<b;w++){var _=y[w],S=_.tile;S.style.width=parseInt(a/g*_.aspect_ratio)+"px",S.style.height=parseInt(a/g)+"px"}}o.querySelectorAll(".photonic-thumb, .photonic-thumb img").forEach((function(t){return r.fadeIn(t)})),i.Core.blankSlideupTitle(),i.Core.showSlideupTitle(),t||e||i.Core.hideLoading()}))}n&&!t&&("lightcase"===Photonic_JS.lightbox_library?n.initialize(".photonic-random-layout"):["bigpicture","featherlight","glightbox"].indexOf(Photonic_JS.lightbox_library)>-1?n.initialize(o):"fancybox3"===Photonic_JS.lightbox_library?n.initialize(".photonic-random-layout"):"photoswipe"===Photonic_JS.lightbox_library&&n.initialize())})),void 0!==console&&"0"!==Photonic_JS.debug_on&&""!==Photonic_JS.debug_on&&console.timeEnd("Justified Grid")}},7534:(t,e,o)=>{var n=o(9095);Object.defineProperty(e,"__esModule",{value:!0}),e.initializeLayouts=void 0;var i=o(8025),r=o(4074),a=o(720),l=n(o(541));e.initializeLayouts=function(t){(0,i.JustifiedGrid)(!1,!1,null,t),(0,r.Mosaic)(!1,!1),(0,a.Masonry)(!1,!1),l.initializeSliders(),window.addEventListener("resize",(function(){(0,i.JustifiedGrid)(!0,!1,".photonic-random-layout.sizes-missing"),(0,r.Mosaic)(!0,!1),(0,a.Masonry)(!0,!1)}))}},720:(t,e,o)=>{var n=o(9095);Object.defineProperty(e,"__esModule",{value:!0}),e.Masonry=void 0;var i=o(1449),r=n(o(91));e.Masonry=function(t,e,o){void 0!==console&&"0"!==Photonic_JS.debug_on&&""!==Photonic_JS.debug_on&&console.time("Masonry");var n=document.querySelectorAll(o);null!=o&&0!==n.length||(n=document.querySelectorAll(".photonic-masonry-layout")),!t&&n.length>0&&i.Core.showSpinner();var a=isNaN(Photonic_JS.masonry_min_width)||parseInt(Photonic_JS.masonry_min_width)<=0?200:Photonic_JS.masonry_min_width;a=parseInt(a),n.forEach((function(o){i.Core.waitForImages(o).then((function(){var n=o.getAttribute("data-photonic-gallery-columns");n=isNaN(parseInt(n))||parseInt(n)<=0?3:parseInt(n);var l=Math.floor(o.getBoundingClientRect().width),c=l/n>a?n:Math.floor(l/a);null!=c&&(o.style.columnCount=c.toString()),Array.from(o.getElementsByTagName("img")).forEach((function(t){r.fadeIn(t),t.style.display="block"})),i.Core.showSlideupTitle(),t||e||i.Core.hideLoading()}))})),void 0!==console&&"0"!==Photonic_JS.debug_on&&""!==Photonic_JS.debug_on&&console.timeEnd("Masonry")}},4074:(t,e,o)=>{var n=o(9095);Object.defineProperty(e,"__esModule",{value:!0}),e.Mosaic=void 0;var i=o(1449),r=n(o(91)),a=function(t,e,o){for(var n=[],i=0;i<t;)if(t-i<=e&&i>0)n.push(t-i),i+=t-i;else{var r=Math.max(Math.floor(Math.random()*e+1),o);r=Math.min(r,t-i),n.push(r),i+=r}return n},l=function(t,e){return t.filter((function(t,o){return o%2===e}))},c=function(t){t.sort((function(t,e){return t.height-e.height})),t[0].new_height=t[0].height,t[0].new_width=t[0].width;for(var e=1;e<t.length;e++)t[e].new_height=t[0].height,t[e].new_width=t[e].new_height*t[e].aspect_ratio;var o=t.reduce((function(t,e){return t+e.new_width}),0);return{elements:t,height:t[0].new_height,width:o,aspect_ratio:o/t[0].new_height}};e.Mosaic=function(t,e,o){void 0!==console&&"0"!==Photonic_JS.debug_on&&""!==Photonic_JS.debug_on&&console.time("Mosaic");var n=document.querySelectorAll(o);null!=o&&0!==n.length||(n=document.querySelectorAll(".photonic-mosaic-layout")),!t&&n.length>0&&i.Core.showSpinner(),n.forEach((function(o){i.Core.waitForImages(o).then((function(){if(o.hasChildNodes()){var n,s=Math.floor(o.getBoundingClientRect().width),u=isNaN(Photonic_JS.mosaic_trigger_width)||parseInt(Photonic_JS.mosaic_trigger_width)<=0?200:parseInt(Photonic_JS.mosaic_trigger_width),h=Math.floor(s/u),d=s>=2*u?2:1,p=[],f=[];Array.from(o.getElementsByTagName("img")).forEach((function(t,e){if(null==t.closest(".photonic-panel")){var o=t.parentNode.parentNode;if(o.setAttribute("data-photonic-photo-index",e),f[e]=o,0!==t.naturalHeight&&void 0!==t.naturalHeight&&void 0!==t.naturalWidth){var n=t.naturalWidth/t.naturalHeight;p.push({src:t.src,width:t.naturalWidth,height:t.naturalHeight,aspect_ratio:n,photo_position:e})}}})),n=p.length;var m=a(n,h,d),g=[],v=0;m.forEach((function(t){g.push(p.slice(v,v+t)),v+=t}));var y=0;g.forEach((function(t){var e;t.sort((function(t,e){return t.aspect_ratio-e.aspect_ratio})),e=1===t.length?[1]:2===t.length?[1,1]:a(t.length,t.length-1,1);for(var o=0,n=t.length-1,i=[],r=[],u=2;u<=h;u++)for(var d=e.indexOf(u);-1<d&&o<n;){for(var p=[],m=0;m<u&&o<=n;)p.push(t[o++]),++m<u&&o<=n&&(p.push(t[n--]),m++);i.push(p),r.push(d),d=e.indexOf(u,d+1)}var g=t.slice(o,n+1),v=[];i.forEach((function(t,e){var o,n;if(0===Math.floor(2*Math.random())){var i=Math.max(Math.floor(Math.random()*(t.length/2-1)),1);o=t.slice(0,i),n=t.slice(i)}else o=l(t,0),n=l(t,1);o=c(o),n=c(n),o.new_width=Math.min(o.width,n.width),o.new_height=o.new_width/o.aspect_ratio,n.new_width=o.new_width,n.new_height=n.new_width/n.aspect_ratio,v.push({elements:[o,n],height:o.new_height+n.new_height,width:o.new_width,aspect_ratio:o.new_width/(o.new_height+n.new_height),element_position:r[e]})})),v.sort((function(t,e){return t.element_position-e.element_position}));for(var b=[],w=0;w<e.length;w++)if(r.indexOf(w)>-1)b.push(v.shift());else{var _=g.shift();b.push({elements:[_],height:_.height,width:_.width,aspect_ratio:_.aspect_ratio})}var S=b.reduce((function(t,e){return t+e.aspect_ratio}),0),E=0;b.forEach((function(t){t.new_width=t.aspect_ratio/S*s,t.new_height=t.new_width/t.aspect_ratio,t.y=y,t.x=E,E+=t.new_width})),y+=b[0].new_height,function(t,e){for(var o=t.length,n=0;n<o;n++)for(var i=t[n],r=i.y,a=0,l=void 0,c=i.elements.length,s=0;s<c;s++){var u=i.elements[s];if(void 0!==u.photo_position)(l=e[u.photo_position]).style.width=i.new_width+"px",l.style.height=i.new_height+"px",l.style.top=i.y+"px",l.style.left=i.x+"px";else{u.new_width=i.new_width,0===a?(u.new_height=u.new_width/u.aspect_ratio,a=u.new_height):u.new_height=i.new_height-a,u.x=i.x,u.y=r,r+=u.new_height;for(var h=u.elements.reduce((function(t,e){return t+e.new_width}),0),d=0,p=u.elements.length,f=0;f<p;f++){var m=u.elements[f];m.new_width=u.new_width*m.new_width/h,m.new_height=u.new_height,m.x=d,d+=m.new_width,(l=e[m.photo_position]).style.width=Math.floor(m.new_width)+"px",l.style.height=Math.floor(m.new_height)+"px",l.style.top=Math.floor(u.y)+"px",l.style.left=Math.floor(u.x+m.x)+"px"}}}}(b,f)})),o.style.height=y+"px",Array.from(o.getElementsByTagName("img")).forEach((function(t){return r.fadeIn(t)})),i.Core.showSlideupTitle(),t||e||i.Core.hideLoading()}}))})),void 0!==console&&"0"!==Photonic_JS.debug_on&&""!==Photonic_JS.debug_on&&console.timeEnd("Mosaic")}},541:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.initializeSliders=e.Slider=void 0;var n=o(1449),i=function(t){t&&t.querySelector(".photonic-slideshow-content")&&n.Core.waitForImages(t).then((function(){var e="#"+t.getAttribute("id"),o=document.querySelector(e+"-thumbs");null!=o&&(o=new Splide(e+"-thumbs")).mount();var n=new Splide(e);n.on("mounted resize",(function(e){(t.classList.contains("photonic-slideshow-side-white")||t.classList.contains("photonic-slideshow-start-next"))&&function(t,e){var o=0,n=0,i=t.offsetWidth,r=t.querySelectorAll(".splide__slide img");Array.prototype.forEach.call(r,(function(t){if(0!==t.naturalHeight){var r=t.naturalWidth/t.naturalHeight;if(r>=n){n=r;var a=t.naturalWidth>i?i/t.naturalWidth:1,l=parseInt(e.options.perPage,10);isNaN(l)||0===l||(a/=l),o=t.naturalHeight*a}}})),Array.prototype.forEach.call(r,(function(t){t.style.height=o+"px"})),Array.prototype.forEach.call(t.querySelectorAll(".splide__slide, .splide__list"),(function(t){t.style.height=o+"px"})),t.style.height=o+"px"}(t,n)})),n.on("visible",(function(e){t.classList.contains("photonic-slideshow-adapt-height")&&function(t,e,o){var n=o.options,i=o.index;if(e.isWithin(parseInt(i),parseInt(n.perPage)-1)){var r=o.Components.Elements.slides,a=parseInt(i)+parseInt(n.perPage),l=r.slice(i,a),c=0;requestAnimationFrame((function(){Array.prototype.forEach.call(l,(function(t){var e=t.querySelector("img"),o=e.offsetHeight;e&&o>c&&(c=o)})),e.slide.style.height="".concat(c,"px");var o=t.querySelector(".splide__track"),n=o?o.offsetHeight:0;c!==n&&(t.querySelector(".splide__list").style.height="".concat(c,"px"),o.style.height="".concat(c,"px"))}))}}(t,e,n)})),null==o?n.mount():n.sync(o).mount(),t.querySelectorAll("img").forEach((function(t){t.style.display="inline"}))}))};e.Slider=i,e.initializeSliders=function(){var t=document.querySelectorAll(".photonic-slideshow");"undefined"!=typeof Splide?t.forEach((function(t){return i(t)})):void 0!==console&&t.length>0&&console.error("Splide not found! Please ensure that the Splide script is available and loaded before Photonic.")}},9685:(t,e,o)=>{var n=o(9095);Object.defineProperty(e,"__esModule",{value:!0}),e.PhotonicBaguetteBox=void 0;var i=o(1651),r=n(o(91));class a extends i.Lightbox{constructor(){super()}soloImages(){var t=super.soloImages(),e=1;t.forEach((function(t){null==t.getAttribute("id")&&(t.setAttribute("id","photonic-baguettebox-"+e),e++)}))}hostedVideo(t){var e=t.getAttribute("href").match(new RegExp(/(\.mp4|\.webm|\.ogg)/i)),o=t.classList.contains("photonic-lb");null===e||o||(t.classList.add(Photonic_JS.lightbox_library+"-html5-video"),this.modifyAdditionalVideoProperties(t))}modifyAdditionalVideoProperties(t){null!=t&&t instanceof Element&&"A"===t.tagName&&(t.setAttribute("data-content-type","video"),null==t.getAttribute("id")&&(t.setAttribute("id","photonic-baguettebox-video-"+this.videoIndex),this.videoIndex++))}initialize(t,e){this.handleSolos();var o,n=this;o=null==t?document.querySelectorAll(".photonic-level-1-container"):t instanceof NodeList?t:t instanceof Element?[t]:document.querySelectorAll(t),e&&baguetteBox.destroy(),o.forEach((function(t){var e=t.getAttribute("id");baguetteBox.run("#"+e,{captions:function(t){return t.getAttribute("data-title")?t.getAttribute("data-title"):t.getAttribute("title")?t.getAttribute("title"):""},onChange:function(e,o){var i=t.querySelectorAll(".photonic-lb").item(e);if(null!=i){n.setHash(i);var a={url:location.href,title:r.getText(i.getAttribute("data-title")),image:i.getAttribute("href")};n.addSocial("#baguetteBox-overlay",a)}},afterHide:function(){n.unsetHash()}})}))}initializeForNewContainer(t){this.initialize(t)}}e.PhotonicBaguetteBox=a},1651:(t,e,o)=>{var n=o(6554);Object.defineProperty(e,"__esModule",{value:!0}),e.Lightbox=void 0;var i=n(o(7593));e.Lightbox=class{constructor(){(0,i.default)(this,"deep",void 0),(0,i.default)(this,"lastDeep",void 0),this.socialIcons="<div id='photonic-social'><a class='photonic-share-fb' href='https://www.facebook.com/sharer/sharer.php?u={photonic_share_link}&title={photonic_share_title}&picture={photonic_share_image}' target='_blank' title='Share on Facebook'><div class='icon-facebook'></div></a><a class='photonic-share-twitter' href='https://twitter.com/share?url={photonic_share_link}&text={photonic_share_title}' target='_blank' title='Share on Twitter'><div class='icon-twitter'></div></a><a class='photonic-share-pinterest' data-pin-do='buttonPin' href='https://www.pinterest.com/pin/create/button/?url={photonic_share_link}&media={photonic_share_image}&description={photonic_share_title}' data-pin-custom='true' target='_blank' title='Share on Pinterest'><div class='icon-pinterest'></div></a></div>",this.videoIndex=1}getVideoSize(t,e){return new Promise((function(o){var n=document.createElement("video");n.addEventListener("loadedmetadata",(function(){var t,n,i=this.videoHeight,r=this.videoWidth,a=this.videoWidth/this.videoHeight;e.width/e.height>a?t=r*(n=e.height)/i:n=i*(t=e.width)/r,o({height:i,width:r,newHeight:n,newWidth:t})}),!1),n.src=t}))}getImageSize(t,e){return new Promise((function(o){var n=document.createElement("img");n.addEventListener("load",(function(){var t,n,i=this.height,r=this.width,a=this.width/this.height;e.width/e.height>a?t=r*(n=e.height)/i:n=i*(t=e.width)/r,o({height:i,width:r,newHeight:n,newWidth:t})}),!1),n.src=t}))}addSocial(t,e,o){if(void 0!==Photonic_JS.social_media&&""!==Photonic_JS.social_media||void 0!==e.buy){var n,i=document.getElementById("photonic-social");if(null!==i&&i.parentNode.removeChild(i),n=null==o?"beforeend":o,""!==location.hash){var r,a=this.socialIcons.replace(/{photonic_share_link}/g,encodeURIComponent(e.url)).replace(/{photonic_share_title}/g,encodeURIComponent(e.title)).replace(/{photonic_share_image}/g,encodeURIComponent(e.image));if(null!==(r="string"==typeof t?document.documentElement.querySelector(t):t)&&r.insertAdjacentHTML(n,a),void 0===Photonic_JS.social_media||""===Photonic_JS.social_media){var l=document.documentElement.querySelectorAll(".photonic-share-fb, .photonic-share-twitter, .photonic-share-pinterest");Array.prototype.forEach.call(l,(function(t){t.parentNode.removeChild(t)}))}}}}setHash(t){if(void 0!==Photonic_JS.deep_linking&&"none"!==Photonic_JS.deep_linking&&null!=t){var e="string"==typeof t?t:t.getAttribute("data-photonic-deep");void 0!==e&&("function"==typeof window.history.pushState&&"yes-history"===Photonic_JS.deep_linking?window.history.pushState({},document.title,"#"+e):"function"==typeof window.history.replaceState&&"no-history"===Photonic_JS.deep_linking?window.history.replaceState({},document.title,"#"+e):document.location.hash=e)}}unsetHash(){this.lastDeep=void 0===this.lastDeep||""!==this.deep?location.hash:this.lastDeep,window.history&&"replaceState"in window.history?history.replaceState({},document.title,location.href.substr(0,location.href.length-location.hash.length)):window.location.hash=""}changeHash(t){if("load"===t.type){var e=window.location.hash;if((e=e.substr(1))&&""!==e){var o=document.querySelectorAll('[data-photonic-deep="'+e+'"]');if(o.length>0){var n=o[0],i=document.createEvent("HTMLEvents");i.initEvent("click",!0,!1),n.dispatchEvent(i)}}}else{var r=this.deep;if(null!=r&&r.length>1)if(window.location.hash&&-1!==r.indexOf("#access_token="))this.unsetHash();else{r=r.substr(1);var a=document.querySelectorAll('[data-photonic-deep="'+r+'"]');if(a.length>0){var l=a[0],c=document.createEvent("HTMLEvents");c.initEvent("click",!0,!1),l.dispatchEvent(c),this.setHash(r)}}}}catchYouTubeURL(t){var e=t.match(/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/);if(e&&11===e[2].length)return e[2]}catchVimeoURL(t){var e=t.match(/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/(?:[^\/]*)\/videos\/|album\/(?:\d+)\/video\/|video\/|)(\d+)(?:[a-zA-Z0-9_\-]+)?/);if(e)return e[1]}soloImages(){var t=document.querySelectorAll("a[href]"),e=Array.from(t).filter((function(t){return/(\.jpg|\.jpeg|\.bmp|\.gif|\.png)/i.test(t.getAttribute("href"))})).filter((function(t){return!t.classList.contains("photonic-lb")}));return e.forEach((function(t){t.classList.add("photonic-"+Photonic_JS.lightbox_library),t.classList.add("photonic-"+Photonic_JS.lightbox_library+"-solo"),t.classList.add(Photonic_JS.lightbox_library)})),e}changeVideoURL(t,e,o,n){}hostedVideo(t){}soloVideos(){var t=this;Photonic_JS.lightbox_for_videos&&document.querySelectorAll("a[href]").forEach((function(e){var o,n,i,r=e.getAttribute("href"),a=t.catchYouTubeURL(r),l=t.catchVimeoURL(r);void 0!==a?(o="https://youtube.com/watch?v="+a,n="https://youtube.com/embed/"+a,i="https://img.youtube.com/vi/"+a+"/hddefault.jpg"):void 0!==l&&(o="https://vimeo.com/"+l,n="https://player.vimeo.com/video/"+l),void 0!==o&&(e.classList.add(Photonic_JS.lightbox_library+"-video"),t.changeVideoURL(e,o,n,i),t.modifyAdditionalVideoProperties(e)),t.hostedVideo(e)}))}handleSolos(){Photonic_JS.lightbox_for_all&&this.soloImages(),this.soloVideos(),void 0!==Photonic_JS.deep_linking&&"none"!==Photonic_JS.deep_linking&&(window.addEventListener("load",this.changeHash),window.addEventListener("hashchange",this.changeHash))}initialize(){this.handleSolos()}initializeForNewContainer(t){}initializeForExisting(){}modifyAdditionalVideoProperties(t){}}},3178:(t,e,o)=>{var n=o(9095);Object.defineProperty(e,"__esModule",{value:!0}),e.addAllListeners=e.addLazyLoadListener=e.addSlideUpLeaveListener=e.addSlideUpEnterListener=e.addHelperMoreButtonListener=e.addMoreButtonListener=e.addLevel3ExpandListener=e.addPasswordSubmitListener=e.addLevel2ClickListener=void 0;var i=o(1449),r=n(o(91)),a=n(o(1043)),l=o(8025),c=o(4074),s=o(5870),u=function(){document.addEventListener("click",(function(t){if(t.target instanceof Element&&t.target.closest(".photonic-level-2-thumb")){var e=t.target.closest(".photonic-level-2-thumb");if(!r.hasClass(e,"gallery-page")){t.preventDefault();var o=e.closest(".photonic-level-2-container"),n=e.getAttribute("data-photonic-platform"),i=e.getAttribute("data-photonic-singular"),l=o.getAttribute("data-photonic-query"),c={panel_id:e.getAttribute("id"),popup:e.getAttribute("data-photonic-popup"),photo_count:e.getAttribute("data-photonic-photo-count"),photo_more:e.getAttribute("data-photonic-photo-more"),query:l};"google"!==n&&"zenfolio"!==n||(c.thumb_size=e.getAttribute("data-photonic-thumb-size")),"flickr"!==n&&"smug"!==n&&"google"!==n&&"zenfolio"!==n||(c.overlay_size=e.getAttribute("data-photonic-overlay-size"),c.overlay_video_size=e.getAttribute("data-photonic-overlay-video-size")),"google"===n&&(c.overlay_crop=e.getAttribute("data-photonic-overlay-crop")),a.displayLevel2(n,i,c)}}}),!1)};e.addLevel2ClickListener=u;var h=function(){document.addEventListener("click",(function(t){if(t.target instanceof Element&&t.target.closest(".photonic-password-submit")){t.preventDefault();var e=t.target.closest(".photonic-password-submit"),o=e.closest(".photonic-password-prompter"),n=e.closest(".photonic-level-2-container"),r=o.getAttribute("id").split("-"),l=r[1],c=r[2],s=r.slice(4).join("-"),u="photonic-".concat(l,"-").concat(c,"-thumb-").concat(s),h=document.getElementById("".concat(u)),d=n.getAttribute("data-photonic-query"),p=o.querySelector('input[name="photonic-'+l+'-password"]');p=p.value;var f=i.Core.prompterList["#photonic-".concat(l,"-").concat(c,"-prompter-").concat(s)];null!=f&&f.hide(),i.Core.showSpinner();var m={panel_id:u,popup:h.getAttribute("data-photonic-popup"),photo_count:h.getAttribute("data-photonic-photo-count"),photo_more:h.getAttribute("data-photonic-photo-more"),query:d};"smug"===l?(m.password=p,m.overlay_size=h.getAttribute("data-photonic-overlay-size")):"zenfolio"===l&&(m.password=p,m.realm_id=h.getAttribute("data-photonic-realm"),m.thumb_size=h.getAttribute("data-photonic-thumb-size"),m.overlay_size=h.getAttribute("data-photonic-overlay-size"),m.overlay_video_size=e.getAttribute("data-photonic-overlay-video-size")),a.processRequest(l,c,s,m)}}),!1)};e.addPasswordSubmitListener=h;var d=function(){document.addEventListener("click",(function(t){if(t.target instanceof Element&&t.target.closest("a.photonic-level-3-expand")){t.preventDefault();var e=t.target.closest("a.photonic-level-3-expand"),o=e.parentNode.parentNode.parentNode,n=o.parentNode;if(e.classList.contains("photonic-level-3-expand-plus"))a.processL3Request(e,o,{view:"collections",node:e.getAttribute("data-photonic-level-3"),layout:e.getAttribute("data-photonic-layout"),stream:n.getAttribute("id")});else if(e.classList.contains("photonic-level-3-expand-up")){var i=r.next(o,".photonic-stream");r.slideUpDown(i,"hide"),e.classList.remove("photonic-level-3-expand-up"),e.classList.add("photonic-level-3-expand-down"),e.setAttribute("title",void 0===Photonic_JS.maximize_panel?"Show":Photonic_JS.maximize_panel)}else if(e.classList.contains("photonic-level-3-expand-down")){var l=r.next(o,".photonic-stream");r.slideUpDown(l,"show"),e.classList.remove("photonic-level-3-expand-down"),e.classList.add("photonic-level-3-expand-up"),e.setAttribute("title",void 0===Photonic_JS.minimize_panel?"Hide":Photonic_JS.minimize_panel)}}}),!1)};e.addLevel3ExpandListener=d;var p=function(){document.addEventListener("click",(function(t){if(t.target instanceof Element&&t.target.closest("a.photonic-more-button.photonic-more-dynamic")){t.preventDefault();var e=t.target.closest("a.photonic-more-button.photonic-more-dynamic"),o=e.parentNode.querySelector(".photonic-level-1-container, .photonic-level-2-container"),n=o.getAttribute("data-photonic-query"),a=o.getAttribute("data-photonic-platform"),u=o.classList.contains("photonic-level-1-container")?"level-1":"level-2",h=o.getAttribute("id");i.Core.showSpinner(),r.post(Photonic_JS.ajaxurl,{action:"photonic_load_more",provider:a,query:n},(function(t){var n=r.getElement(t),a=n.querySelectorAll(".photonic-".concat(u)),d=n.querySelector(".photonic-more-button"),p=o.querySelector("a.photonic-lb"),f=[];null!==p&&a.forEach((function(t){var e=t.querySelector("a");null!==e&&(e.setAttribute("rel",p.getAttribute("rel")),null!=e.getAttribute("data-fancybox")?e.setAttribute("data-fancybox",p.getAttribute("data-fancybox")):null!=e.getAttribute("data-rel")?e.setAttribute("data-rel",p.getAttribute("data-rel")):null!=e.getAttribute("data-strip-group")?e.setAttribute("data-strip-group",p.getAttribute("data-strip-group")):null!=e.getAttribute("data-gall")&&e.setAttribute("data-gall",p.getAttribute("data-gall")),f.push(e))})),a.forEach((function(t){return o.appendChild(t)})),i.Core.moveHTML5External(),0===a.length&&(i.Core.hideLoading(),r.fadeOut(e),e.remove());var m=i.Core.getLightbox();if("imagelightbox"===Photonic_JS.lightbox_library)null!=p&&(m=i.Core.getLightboxList()['a[rel="'+p.getAttribute("rel")+'"]'],"level-1"===u&&m.addToImageLightbox(f));else if("lightcase"===Photonic_JS.lightbox_library)null!=p&&m.initialize('a[data-rel="'+p.getAttribute("data-rel")+'"]');else if("lightgallery"===Photonic_JS.lightbox_library)if(null!==p){var g=[...(m=i.Core.getLightboxList()[p.getAttribute("rel")]).galleryItems];a.forEach((function(t){var e,o=t.querySelector("a"),n=o.querySelector("img");"video"===o.getAttribute("data-photonic-media-type")&&(e=JSON.parse(o.getAttribute("data-video"))),g.push({alt:n.getAttribute("alt"),downloadUrl:o.getAttribute("data-download-url"),src:"video"===o.getAttribute("data-photonic-media-type")?e.source[0].src:o.getAttribute("href"),subHtml:o.getAttribute("data-sub-html"),thumb:n.getAttribute("src")})})),m.updateSlides(g,0),m.refresh()}else m.initialize(o);else if("venobox"===Photonic_JS.lightbox_library){if(null!==p){var v=p.getAttribute("data-gall");p.closest(".photonic-panel")&&(v=p.closest(".photonic-panel").getAttribute("id")),m.initialize("#"+v,!0)}}else["bigpicture","featherlight","glightbox","spotlight"].includes(Photonic_JS.lightbox_library)?m.initialize(o):"baguettebox"===Photonic_JS.lightbox_library?m.initialize(null,!0):"fancybox3"===Photonic_JS.lightbox_library?null!=p&&m.initialize(null,p.getAttribute("data-fancybox")):"photoswipe"===Photonic_JS.lightbox_library&&m.initialize();i.Core.waitForImages(a).then((function(){var t=n.querySelector(".photonic-random-layout,.photonic-standard-layout,.photonic-masonry-layout,.photonic-mosaic-layout,.modal-gallery");null!=t&&o.setAttribute("data-photonic-query",t.getAttribute("data-photonic-query")),null==d&&(r.fadeOut(e),e.remove()),r.hasClass(o,"photonic-mosaic-layout")?(0,c.Mosaic)(!1,!1,"#"+h):r.hasClass(o,"photonic-random-layout")?(0,l.JustifiedGrid)(!1,!1,"#"+h,m):r.hasClass(o,"photonic-masonry-layout")?(a.forEach((function(t){var e=t.querySelector("img");r.fadeIn(e),e.style.display="block"})),i.Core.hideLoading()):(o.querySelectorAll(".photonic-"+u).forEach((function(t){t.style.display="inline-block"})),i.Core.standardizeTitleWidths(),i.Core.hideLoading()),(0,s.Tooltip)("[data-photonic-tooltip]",".photonic-tooltip-container")}))}))}}))};e.addMoreButtonListener=p;var f=function(){document.addEventListener("click",(function(t){if(t.target instanceof Element&&t.target.closest('input[type="button"].photonic-helper-more')){t.preventDefault(),i.Core.showSpinner();var e=t.target.closest('input[type="button"].photonic-helper-more'),o=e.closest("table"),n=void 0===e.getAttribute("data-photonic-token")?null:e.getAttribute("data-photonic-token"),a=e.getAttribute("data-photonic-platform"),l={action:"photonic_helper_shortcode_more",provider:a,access:e.getAttribute("data-photonic-access")};n&&(l.nextPageToken=n),"google"===a&&r.post(Photonic_JS.ajaxurl,l,(function(t){var n=r.getElement(t);if((n=Array.from(n.getElementsByTagName("tr"))).length>0){var a=e.closest("tr");a&&a.remove(),n.forEach((function(t,e){0!==e&&o.appendChild(t)}))}(0,s.Tooltip)("[data-photonic-tooltip]",".photonic-tooltip-container"),i.Core.hideLoading()}))}}))};e.addHelperMoreButtonListener=f;var m=function(){document.addEventListener("mouseover",(function(t){var e=".title-display-hover-slideup-show a, .photonic-slideshow.title-display-hover-slideup-show li";if(t.target instanceof Element&&t.target.closest(e)){var o=t.target.closest(e),n=o.querySelector(".photonic-title");r.slideUpTitle(n,"show"),o.setAttribute("title","")}}),!0)};e.addSlideUpEnterListener=m;var g=function(){document.addEventListener("mouseout",(function(t){var e=".title-display-hover-slideup-show a, .photonic-slideshow.title-display-hover-slideup-show li";if(t.target instanceof Element&&t.target.closest(e)){var o=t.target.closest(e),n=o.querySelector(".photonic-title");r.slideUpTitle(n,"hide"),o.setAttribute("title",r.getText(o.getAttribute("data-title")))}}),!0)};e.addSlideUpLeaveListener=g;var v=function(){var t=document.documentElement.querySelectorAll("input.photonic-show-gallery-button");Array.prototype.forEach.call(t,(function(t){t.addEventListener("click",a.lazyLoad)})),t=document.documentElement.querySelectorAll("input.photonic-js-load-button"),Array.prototype.forEach.call(t,(function(t){t.addEventListener("click",a.lazyLoad),t.click()}))};e.addLazyLoadListener=v,e.addAllListeners=function(){u(),h(),d(),p(),f(),m(),g(),v()}},1043:(t,e,o)=>{var n=o(9095);Object.defineProperty(e,"__esModule",{value:!0}),e.lazyLoad=e.processL3Request=e.displayLevel2=e.processRequest=void 0;var i=o(1449),r=n(o(91)),a=o(8025),l=o(720),c=o(4074),s=o(5870),u=o(956),h=(o(541),0),d=function(t){var e;i.Core.hideLoading(),e=t instanceof Element?t:r.getElement(t).firstElementChild,r.hide(e),document.body.appendChild(e),i.Core.moveHTML5External();var o=i.Core.getLightbox();null!=o&&o.initializeForNewContainer("#"+e.getAttribute("id"));var n=e.querySelectorAll(".photonic-lb");if(n.length>0){i.Core.setDeep("#"+n[0].getAttribute("data-photonic-deep"));var a=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});n[0].dispatchEvent(a)}},p=function(t,e,o,n){n.action="photonic_display_level_2_contents",r.post(Photonic_JS.ajaxurl,n,(function(a){if(a.substr(0,Photonic_JS.password_failed.length)===Photonic_JS.password_failed){i.Core.hideLoading();var l="#photonic-"+t+"-"+e+"-prompter-"+o,c=i.Core.prompterList[l];null!=c&&c.show()}else"show"===n.popup?function(t,e,o,n){var a=n.replace(".","\\."),l=r.getElement(t).firstElementChild,c=l.querySelector(".modal-gallery");i.Core.waitForImages(c).then((function(){var t=document.querySelector("#photonic-"+e+"-"+o+"-"+a);t&&(t.appendChild(l),r.show(t)),(0,u.Modal)(l,{modalTarget:"photonic-"+e+"-panel-"+a,color:"#000",width:Photonic_JS.gallery_panel_width+"%",closeFromRight:(100-Photonic_JS.gallery_panel_width)/2+"%"}),i.Core.moveHTML5External();var n=i.Core.getLightbox();null!=n&&n.initializeForNewContainer("#"+l.getAttribute("id")),(0,s.Tooltip)("[data-photonic-tooltip]",".photonic-tooltip-container"),i.Core.hideLoading()}))}(a,t,e,o):""!==a?d(a):i.Core.hideLoading()}))};e.processRequest=p,e.displayLevel2=function(t,e,o){var n=o.panel_id.substr(("photonic-"+t+"-"+e+"-thumb-").length),a="#photonic-"+t+"-panel-"+n,l=document.getElementById("photonic-"+t+"-panel-"+n);null==l?(l=document.getElementById(o.panel_id)).classList.contains("photonic-"+t+"-passworded")?i.Core.initializePasswordPrompter("#photonic-".concat(t,"-").concat(e,"-prompter-").concat(n)):(i.Core.showSpinner(),p(t,e,n,o)):(i.Core.showSpinner(),function(t,e,o,n){var a=r.getElement(o);"show"===n.popup?(i.Core.hideLoading(),(0,u.Modal)(a,{modalTarget:"photonic-"+t+"-panel-"+e,color:"#000",width:Photonic_JS.gallery_panel_width+"%",closeFromRight:(100-Photonic_JS.gallery_panel_width)/2+"%"})):d(document.getElementById("photonic-"+t+"-panel-"+e))}(t,n,a,o))},e.processL3Request=function(t,e,o){o.action="photonic_display_level_3_contents",i.Core.showSpinner();var n=i.Core.getLightbox();r.post(Photonic_JS.ajaxurl,o,(function(u){var h=r.getElement(u);if(e){var d=h.querySelector(".photonic-level-2-container"),p=e.parentNode,f=h.firstElementChild,m=o.node.substr("flickr-collection-".length);f.setAttribute("id",o.stream+"-"+m),p.insertBefore(f,e.nextSibling),d.classList.contains("photonic-random-layout")?(0,a.JustifiedGrid)(!1,!1,null,n):d.classList.contains("photonic-mosaic-layout")?(0,c.Mosaic)(!1,!1):d.classList.contains("photonic-masonry-layout")&&(0,l.Masonry)(!1,!1),f.querySelectorAll(".photonic-level-2").forEach((function(t){t.style.display="inline-block"})),(0,s.Tooltip)("[data-photonic-tooltip]",".photonic-tooltip-container"),t.classList.remove("photonic-level-3-expand-plus"),t.classList.add("photonic-level-3-expand-up"),t.setAttribute("title",void 0===Photonic_JS.minimize_panel?"Hide":Photonic_JS.minimize_panel)}i.Core.hideLoading()}))},e.lazyLoad=function(t){h++,i.Core.showSpinner();var e=t.currentTarget,o={action:"photonic_lazy_load",shortcode:e.getAttribute("data-photonic-shortcode")};r.post(Photonic_JS.ajaxurl,o,(function(t){var o=document.createElement("div");if(o.innerHTML=t,o=o.firstElementChild){var n=o.getAttribute("id"),r=n.substring(0,n.lastIndexOf("-")),u=document.documentElement.querySelectorAll("."+r),d=0;u.forEach((function(t){var e=t.getAttribute("id");e=e.substring(e.lastIndexOf("-")+1),e=parseInt(e,10),d=Math.max(d,e)})),d+=1;var p=new RegExp(n,"gi");o.innerHTML=t.replace(p,r+"-"+d).replace("photonic-slideshow-"+n.substring(n.lastIndexOf("-")+1),"photonic-slideshow-"+d),(o=o.firstElementChild).querySelectorAll("figure.photonic-level-2").forEach((function(t){if(null!=t.getAttribute("id")){var e=t.getAttribute("id"),o=e.substring(0,e.lastIndexOf("-")+1)+d;t.setAttribute("id",o);var n=t.querySelector("a");if(null!=n.getAttribute("id")){var i=n.getAttribute("id"),r=i.substring(0,i.lastIndexOf("-")+1)+d;n.setAttribute("id",r)}var a=t.querySelector(".photonic-password-prompter");if(null!=a&&null!=a.getAttribute("id")){var l=a.getAttribute("id"),c=l.substring(0,l.lastIndexOf("-")+1)+d;a.setAttribute("id",c)}}})),e.insertAdjacentElement("afterend",o);var f=r+"-"+d,m=i.Core.getLightbox();null!=m&&m.initializeForNewContainer("#"+o.getAttribute("id")),document.querySelectorAll("#"+f+" .photonic-random-layout").length>0?((0,a.JustifiedGrid)(!1,!0,"#"+f+" .photonic-random-layout",m),h--):document.querySelectorAll("#"+f+" .photonic-masonry-layout").length>0?((0,l.Masonry)(!1,!0,"#"+f+" .photonic-masonry-layout"),h--):document.querySelectorAll("#"+f+" .photonic-mosaic-layout").length>0&&((0,c.Mosaic)(!1,!0,"#"+f+" .photonic-mosaic-layout"),h--),i.Core.waitForImages(o).then((function(){document.documentElement.querySelectorAll("#"+f+" .photonic-standard-layout .photonic-level-1, #"+f+" .photonic-standard-layout .photonic-level-2").forEach((function(t){t.style.display="inline-block"})),i.Core.standardizeTitleWidths(),--h<=0&&i.Core.hideLoading()})),i.Core.moveHTML5External(),e.parentNode.removeChild(e),(0,s.Tooltip)("[data-photonic-tooltip]",".photonic-tooltip-container"),h<=0&&i.Core.hideLoading()}}))}},91:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.hide=e.show=e.fadeOut=e.fadeIn=e.slideUpTitle=e.slideUpDown=e.getText=e.getElement=e.next=e.get=e.post=e.hasClass=void 0;var o=function(t,e){return t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className)};function n(t,e,o,n){var i=new XMLHttpRequest;i.open(t,e),i.onreadystatechange=function(){if(4===i.readyState&&200===i.status){var t=i.responseText;n(t)}};var r=new FormData;for(var[a,l]of Object.entries(o))r.append(a,l);i.send(r)}e.hasClass=o,e.post=function(t,e,o){n("POST",t,e,o)},e.get=function(t,e,o){n("GET",t,e,o)},e.next=function(t,e){var o=t.nextElementSibling;if(!e)return o;for(;o;){if(o.matches(e))return o;o=o.nextElementSibling}},e.getElement=function(t){return(new DOMParser).parseFromString(t,"text/html").body},e.getText=function(t){var e=document.createElement("div");return e.innerHTML=t,e.innerText},e.slideUpDown=function(t,e){null!=t&&t.classList&&(t.classList.contains("photonic-can-slide")||t.classList.add("photonic-can-slide"),"show"===e?(t.classList.remove("photonic-can-slide-hide"),t.style.height="".concat(t.scrollHeight,"px")):(t.classList.add("photonic-can-slide-hide"),t.style.height=0))},e.slideUpTitle=function(t,e){if(t&&t.classList)if("show"===e){var o=0;t.offsetHeight&&(o=2*parseInt(getComputedStyle(t).paddingTop.slice(0,-2))),t.style.height=t.scrollHeight+6-o+"px",t.classList.add("slideup-show")}else t.style.height="",t.classList.remove("slideup-show")},e.fadeIn=function(t){o(t,"fade-in")||(t.style.display="block",t.classList.add("fade-in"))},e.fadeOut=function(t,e){var o=t.style,n=25/(e||500);o.opacity=o.opacity||1,function e(){o.opacity-=n,o.opacity<0?(o.display="none",t.classList.remove("fade-in")):setTimeout(e,25)}()};var i=function(t,e){var o=t.getAttribute("data-olddisplay"),n=t.style.display,i=(window.getComputedStyle?getComputedStyle(t,null):t.currentStyle).display;e?(o||"none"!==n||(t.style.display=""),""===t.style.display&&"none"===i&&(o=o||function(t){var e=document.createElement("iframe");e.setAttribute("frameborder",0),e.setAttribute("width",0),e.setAttribute("height",0),document.documentElement.appendChild(e);var o=(e.contentWindow||e.contentDocument).document;o.write(),o.close();var n=o.createElement(t);o.documentElement.appendChild(n);var i=(window.getComputedStyle?getComputedStyle(n,null):n.currentStyle).display;return e.parentNode.removeChild(e),i}(t.nodeName))):(n&&"none"!==n||"none"!==i)&&t.setAttribute("data-olddisplay","none"===i?n:i),e&&"none"!==t.style.display&&""!==t.style.display||(t.style.display=e?o||"":"none")};e.show=function(t){return i(t,!0)},e.hide=function(t){return i(t)}}},a={};function l(t){if(a[t])return a[t].exports;var e=a[t]={exports:{}};return r[t](e,e.exports,l),e.exports}l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(t){for(var e=(this.document||this.ownerDocument).querySelectorAll(t),o=e.length;--o>=0&&e.item(o)!==this;);return o>-1}),Element.prototype.closest||(Element.prototype.closest=function(t){var e=this;do{if(Element.prototype.matches.call(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}),"document"in self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&function(t){if("Element"in t){var e="classList",o=t.Element.prototype,n=Object,i=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")},r=Array.prototype.indexOf||function(t){for(var e=0,o=this.length;e<o;e++)if(e in this&&this[e]===t)return e;return-1},a=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},l=function(t,e){if(""===e)throw new a("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(e))throw new a("INVALID_CHARACTER_ERR","String contains an invalid character");return r.call(t,e)},c=function(t){for(var e=i.call(t.getAttribute("class")||""),o=e?e.split(/\s+/):[],n=0,r=o.length;n<r;n++)this.push(o[n]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},s=c.prototype=[],u=function(){return new c(this)};if(a.prototype=Error.prototype,s.item=function(t){return this[t]||null},s.contains=function(t){return-1!==l(this,t+="")},s.add=function(){var t,e=arguments,o=0,n=e.length,i=!1;do{t=e[o]+"",-1===l(this,t)&&(this.push(t),i=!0)}while(++o<n);i&&this._updateClassName()},s.remove=function(){var t,e,o=arguments,n=0,i=o.length,r=!1;do{for(t=o[n]+"",e=l(this,t);-1!==e;)this.splice(e,1),r=!0,e=l(this,t)}while(++n<i);r&&this._updateClassName()},s.toggle=function(t,e){t+="";var o=this.contains(t),n=o?!0!==e&&"remove":!1!==e&&"add";return n&&this[n](t),!0===e||!1===e?e:!o},s.toString=function(){return this.join(" ")},n.defineProperty){var h={get:u,enumerable:!0,configurable:!0};try{n.defineProperty(o,e,h)}catch(t){void 0!==t.number&&-2146823252!==t.number||(h.enumerable=!1,n.defineProperty(o,e,h))}}else n.prototype.__defineGetter__&&o.__defineGetter__(e,u)}}(self),function(){var t=document.createElement("_");if(t.classList.add("c1","c2"),!t.classList.contains("c2")){var e=function(t){var e=DOMTokenList.prototype[t];DOMTokenList.prototype[t]=function(t){var o,n=arguments.length;for(o=0;o<n;o++)t=arguments[o],e.call(this,t)}};e("add"),e("remove")}if(t.classList.toggle("c3",!1),t.classList.contains("c3")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:o.call(this,t)}}t=null}()),Array.from||(Array.from=function(){var t;try{t=Symbol.iterator?Symbol.iterator:"Symbol(Symbol.iterator)"}catch(e){t="Symbol(Symbol.iterator)"}var e=Object.prototype.toString,o=function(t){return"function"==typeof t||"[object Function]"===e.call(t)},n=Math.pow(2,53)-1,i=function(t){var e=function(t){var e=Number(t);return isNaN(e)?0:0!==e&&isFinite(e)?(e>0?1:-1)*Math.floor(Math.abs(e)):e}(t);return Math.min(Math.max(e,0),n)},r=function(e,o){var n=e&&o[t]();return function(t){return e?n.next():o[t]}},a=function(t,e,o,n,i,r){for(var a=0;a<o||i;){var l=n(a),c=i?l.value:l;if(i&&l.done)return e;e[a]=r?void 0===t?r(c,a):r.call(t,c,a):c,a+=1}if(i)throw new TypeError("Array.from: provided arrayLike or iterator has length more then 2 ** 52 - 1");return e.length=o,e};return function(e){var n=this,l=Object(e),c=o(l[t]);if(null==e&&!c)throw new TypeError("Array.from requires an array-like object or iterator - not null or undefined");var s,u=arguments.length>1?arguments[1]:void 0;if(void 0!==u){if(!o(u))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(s=arguments[2])}var h=i(l.length),d=o(n)?Object(new n(h)):new Array(h);return a(s,d,h,r(c,l),c,u)}}()),Array.prototype.forEach||(Array.prototype.forEach=function(t,e){e=e||window;for(var o=0;o<this.length;o++)t.call(e,this[o],o,this)}),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(t,e){if(null==this)throw new TypeError('"this" is null or not defined');var o=Object(this),n=o.length>>>0;if(0===n)return!1;for(var i,r,a=0|e,l=Math.max(a>=0?a:n-Math.abs(a),0);l<n;){if((i=o[l])===(r=t)||"number"==typeof i&&"number"==typeof r&&isNaN(i)&&isNaN(r))return!0;l++}return!1}}),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),String.prototype.includes||(String.prototype.includes=function(t,e){if(t instanceof RegExp)throw TypeError("first argument must not be a RegExp");return void 0===e&&(e=0),-1!==this.indexOf(t,e)}),Object.entries||(Object.entries=function(t){for(var e=Object.keys(t),o=e.length,n=new Array(o);o--;)n[o]=[e[o],t[e[o]]];return n}),"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var o=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(o[r]=i[r])}return o},writable:!0,configurable:!0}),function(){function t(t){var e=this.constructor;return this.then((function(o){return e.resolve(t()).then((function(){return o}))}),(function(o){return e.resolve(t()).then((function(){return e.reject(o)}))}))}function e(t){return new this((function(e,o){if(!t||void 0===t.length)return o(new TypeError(typeof t+" "+t+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var n=Array.prototype.slice.call(t);if(0===n.length)return e([]);var i=n.length;function r(t,o){if(o&&("object"==typeof o||"function"==typeof o)){var a=o.then;if("function"==typeof a)return void a.call(o,(function(e){r(t,e)}),(function(o){n[t]={status:"rejected",reason:o},0==--i&&e(n)}))}n[t]={status:"fulfilled",value:o},0==--i&&e(n)}for(var a=0;a<n.length;a++)r(a,n[a])}))}var o=setTimeout;function n(t){return Boolean(t&&void 0!==t.length)}function i(){}function r(t){if(!(this instanceof r))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(t,this)}function a(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,r._immediateFn((function(){var o=1===t._state?e.onFulfilled:e.onRejected;if(null!==o){var n;try{n=o(t._value)}catch(t){return void s(e.promise,t)}c(e.promise,n)}else(1===t._state?c:s)(e.promise,t._value)}))):t._deferreds.push(e)}function c(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var o=e.then;if(e instanceof r)return t._state=3,t._value=e,void u(t);if("function"==typeof o)return void d((n=o,i=e,function(){n.apply(i,arguments)}),t)}t._state=1,t._value=e,u(t)}catch(e){s(t,e)}var n,i}function s(t,e){t._state=2,t._value=e,u(t)}function u(t){2===t._state&&0===t._deferreds.length&&r._immediateFn((function(){t._handled||r._unhandledRejectionFn(t._value)}));for(var e=0,o=t._deferreds.length;e<o;e++)a(t,t._deferreds[e]);t._deferreds=null}function h(t,e,o){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=o}function d(t,e){var o=!1;try{t((function(t){o||(o=!0,c(e,t))}),(function(t){o||(o=!0,s(e,t))}))}catch(t){if(o)return;o=!0,s(e,t)}}r.prototype.catch=function(t){return this.then(null,t)},r.prototype.then=function(t,e){var o=new this.constructor(i);return a(this,new h(t,e,o)),o},r.prototype.finally=t,r.all=function(t){return new r((function(e,o){if(!n(t))return o(new TypeError("Promise.all accepts an array"));var i=Array.prototype.slice.call(t);if(0===i.length)return e([]);var r=i.length;function a(t,n){try{if(n&&("object"==typeof n||"function"==typeof n)){var l=n.then;if("function"==typeof l)return void l.call(n,(function(e){a(t,e)}),o)}i[t]=n,0==--r&&e(i)}catch(t){o(t)}}for(var l=0;l<i.length;l++)a(l,i[l])}))},r.allSettled=e,r.resolve=function(t){return t&&"object"==typeof t&&t.constructor===r?t:new r((function(e){e(t)}))},r.reject=function(t){return new r((function(e,o){o(t)}))},r.race=function(t){return new r((function(e,o){if(!n(t))return o(new TypeError("Promise.race accepts an array"));for(var i=0,a=t.length;i<a;i++)r.resolve(t[i]).then(e,o)}))},r._immediateFn="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){o(t,0)},r._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};var p=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==l.g)return l.g;throw new Error("unable to locate global object")}();"function"!=typeof p.Promise?p.Promise=r:p.Promise.prototype.finally?p.Promise.allSettled||(p.Promise.allSettled=e):p.Promise.prototype.finally=t}(),function(t){try{return new MouseEvent("test"),!1}catch(t){}var e=function(e,o){o=o||{bubbles:!1,cancelable:!1};var n=document.createEvent("MouseEvent");return n.initMouseEvent(e,o.bubbles,o.cancelable,t,0,o.screenX||0,o.screenY||0,o.clientX||0,o.clientY||0,o.ctrlKey||!1,o.altKey||!1,o.shiftKey||!1,o.metaKey||!1,o.button||0,o.relatedTarget||null),n};e.prototype=Event.prototype,t.MouseEvent=e}(window),[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(t){t.hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){this.parentNode.removeChild(this)}})})),function(t){function e(e){return!!e&&("Symbol"in t&&"iterator"in t.Symbol&&"function"==typeof e[Symbol.iterator]||!!Array.isArray(e))}function o(t){return"from"in Array?Array.from(t):Array.prototype.slice.call(t)}!function(){var n,i=t.URL;try{if(i){if("searchParams"in(n=new t.URL("http://example.com"))){var r=new u("http://example.com");if(r.search="a=1&b=2","http://example.com/?a=1&b=2"===r.href&&(r.search="","http://example.com/"===r.href))return}"href"in n||(n=void 0),n=void 0}}catch(t){}function a(t){var e="",o=!0;return t.forEach((function(t){var n=encodeURIComponent(t.name),i=encodeURIComponent(t.value);o||(e+="&"),e+=n+"="+i,o=!1})),e.replace(/%20/g,"+")}function l(t,e){var o=t.split("&");e&&-1===o[0].indexOf("=")&&(o[0]="="+o[0]);var n=[];o.forEach((function(t){if(0!==t.length){var e=t.indexOf("=");if(-1!==e)var o=t.substring(0,e),i=t.substring(e+1);else o=t,i="";o=o.replace(/\+/g," "),i=i.replace(/\+/g," "),n.push({name:o,value:i})}}));var i=[];return n.forEach((function(t){i.push({name:decodeURIComponent(t.name),value:decodeURIComponent(t.value)})})),i}function c(t){var n=this;this._list=[],null==t||(t instanceof c?this._list=l(String(t)):"object"==typeof t&&e(t)?o(t).forEach((function(t){if(!e(t))throw TypeError();var i=o(t);if(2!==i.length)throw TypeError();n._list.push({name:String(i[0]),value:String(i[1])})})):"object"==typeof t&&t?Object.keys(t).forEach((function(e){n._list.push({name:String(e),value:String(t[e])})})):("?"===(t=String(t)).substring(0,1)&&(t=t.substring(1)),this._list=l(t))),this._url_object=null,this._setList=function(t){i||(n._list=t)};var i=!1;this._update_steps=function(){i||(i=!0,n._url_object&&("about:"===n._url_object.protocol&&-1!==n._url_object.pathname.indexOf("?")&&(n._url_object.pathname=n._url_object.pathname.split("?")[0]),n._url_object.search=a(n._list),i=!1))}}function s(t,e){var o=0;this.next=function(){if(o>=t.length)return{done:!0,value:void 0};var n=t[o++];return{done:!1,value:"key"===e?n.name:"value"===e?n.value:[n.name,n.value]}}}function u(e,o){if(!(this instanceof t.URL))throw new TypeError("Failed to construct 'URL': Please use the 'new' operator.");o&&(e=function(){if(n)return new i(e,o).href;var t;try{var r;if("[object OperaMini]"===Object.prototype.toString.call(window.operamini)?((t=document.createElement("iframe")).style.display="none",document.documentElement.appendChild(t),r=t.contentWindow.document):document.implementation&&document.implementation.createHTMLDocument?r=document.implementation.createHTMLDocument(""):document.implementation&&document.implementation.createDocument?((r=document.implementation.createDocument("http://www.w3.org/1999/xhtml","html",null)).documentElement.appendChild(r.createElement("head")),r.documentElement.appendChild(r.createElement("body"))):window.ActiveXObject&&((r=new window.ActiveXObject("htmlfile")).write("<head></head><body></body>"),r.close()),!r)throw Error("base not supported");var a=r.createElement("base");a.href=o,r.getElementsByTagName("head")[0].appendChild(a);var l=r.createElement("a");return l.href=e,l.href}finally{t&&t.parentNode.removeChild(t)}}());var r=function(t){if(n)return new i(t);var e=document.createElement("a");return e.href=t,e}(e||""),a=function(){if(!("defineProperties"in Object))return!1;try{var t={};return Object.defineProperties(t,{prop:{get:function(){return!0}}}),t.prop}catch(t){return!1}}()?this:document.createElement("a"),s=new c(r.search?r.search.substring(1):null);function u(){var t=r.href.replace(/#$|\?$|\?(?=#)/g,"");r.href!==t&&(r.href=t)}function h(){s._setList(r.search?l(r.search.substring(1)):[]),s._update_steps()}return s._url_object=a,Object.defineProperties(a,{href:{get:function(){return r.href},set:function(t){r.href=t,u(),h()},enumerable:!0,configurable:!0},origin:{get:function(){return"origin"in r?r.origin:this.protocol+"//"+this.host},enumerable:!0,configurable:!0},protocol:{get:function(){return r.protocol},set:function(t){r.protocol=t},enumerable:!0,configurable:!0},username:{get:function(){return r.username},set:function(t){r.username=t},enumerable:!0,configurable:!0},password:{get:function(){return r.password},set:function(t){r.password=t},enumerable:!0,configurable:!0},host:{get:function(){var t={"http:":/:80$/,"https:":/:443$/,"ftp:":/:21$/}[r.protocol];return t?r.host.replace(t,""):r.host},set:function(t){r.host=t},enumerable:!0,configurable:!0},hostname:{get:function(){return r.hostname},set:function(t){r.hostname=t},enumerable:!0,configurable:!0},port:{get:function(){return r.port},set:function(t){r.port=t},enumerable:!0,configurable:!0},pathname:{get:function(){return"/"!==r.pathname.charAt(0)?"/"+r.pathname:r.pathname},set:function(t){r.pathname=t},enumerable:!0,configurable:!0},search:{get:function(){return r.search},set:function(t){r.search!==t&&(r.search=t,u(),h())},enumerable:!0,configurable:!0},searchParams:{get:function(){return s},enumerable:!0,configurable:!0},hash:{get:function(){return r.hash},set:function(t){r.hash=t,u()},enumerable:!0,configurable:!0},toString:{value:function(){return r.toString()},enumerable:!1,configurable:!0},valueOf:{value:function(){return r.valueOf()},enumerable:!1,configurable:!0}}),a}if(Object.defineProperties(c.prototype,{append:{value:function(t,e){this._list.push({name:t,value:e}),this._update_steps()},writable:!0,enumerable:!0,configurable:!0},delete:{value:function(t){for(var e=0;e<this._list.length;)this._list[e].name===t?this._list.splice(e,1):++e;this._update_steps()},writable:!0,enumerable:!0,configurable:!0},get:{value:function(t){for(var e=0;e<this._list.length;++e)if(this._list[e].name===t)return this._list[e].value;return null},writable:!0,enumerable:!0,configurable:!0},getAll:{value:function(t){for(var e=[],o=0;o<this._list.length;++o)this._list[o].name===t&&e.push(this._list[o].value);return e},writable:!0,enumerable:!0,configurable:!0},has:{value:function(t){for(var e=0;e<this._list.length;++e)if(this._list[e].name===t)return!0;return!1},writable:!0,enumerable:!0,configurable:!0},set:{value:function(t,e){for(var o=!1,n=0;n<this._list.length;)this._list[n].name===t?o?this._list.splice(n,1):(this._list[n].value=e,o=!0,++n):++n;o||this._list.push({name:t,value:e}),this._update_steps()},writable:!0,enumerable:!0,configurable:!0},entries:{value:function(){return new s(this._list,"key+value")},writable:!0,enumerable:!0,configurable:!0},keys:{value:function(){return new s(this._list,"key")},writable:!0,enumerable:!0,configurable:!0},values:{value:function(){return new s(this._list,"value")},writable:!0,enumerable:!0,configurable:!0},forEach:{value:function(t){var e=arguments.length>1?arguments[1]:void 0;this._list.forEach((function(o){t.call(e,o.value,o.name)}))},writable:!0,enumerable:!0,configurable:!0},toString:{value:function(){return a(this._list)},writable:!0,enumerable:!1,configurable:!0}}),"Symbol"in t&&"iterator"in t.Symbol&&(Object.defineProperty(c.prototype,t.Symbol.iterator,{value:c.prototype.entries,writable:!0,enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,t.Symbol.iterator,{value:function(){return this},writable:!0,enumerable:!0,configurable:!0})),i)for(var h in i)Object.prototype.hasOwnProperty.call(i,h)&&"function"==typeof i[h]&&(u[h]=i[h]);t.URL=u,t.URLSearchParams=c}(),function(){if("1"!==new t.URLSearchParams([["a",1]]).get("a")||"1"!==new t.URLSearchParams({a:1}).get("a")){var n=t.URLSearchParams;t.URLSearchParams=function(t){if(t&&"object"==typeof t&&e(t)){var i=new n;return o(t).forEach((function(t){if(!e(t))throw TypeError();var n=o(t);if(2!==n.length)throw TypeError();i.append(n[0],n[1])})),i}return t&&"object"==typeof t?(i=new n,Object.keys(t).forEach((function(e){i.set(e,t[e])})),i):new n(t)}}}()}(self),function(){if("function"==typeof window.CustomEvent)return!1;function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:null};var o=document.createEvent("CustomEvent");return o.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),o}window.CustomEvent=t,window.Event=t}(),t=l(9095),e=l(1449),o=l(9685),n=t(l(3178)),i=t(l(7534)),document.addEventListener("DOMContentLoaded",(function(){var t=new o.PhotonicBaguetteBox;e.Core.setLightbox(t),t.initialize(),t.initialize(".photonic-baguettebox-solo"),t.initialize(".baguettebox-html5-video"),e.Core.executeCommon(),n.addAllListeners(),i.initializeLayouts(t)}))})();