!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).window=t.window||{})}(this,(function(t){"use strict";const e=(t,e=1e4)=>(t=parseFloat(t+"")||0,Math.round((t+Number.EPSILON)*e)/e),i=function(t){if(!(t&&t instanceof Element&&t.offsetParent))return!1;const e=t.scrollHeight>t.clientHeight,i=window.getComputedStyle(t).overflowY,n=-1!==i.indexOf("hidden"),s=-1!==i.indexOf("visible");return e&&!n&&!s},n=function(t,e=void 0){return!(!t||t===document.body||e&&t===e)&&(i(t)?t:n(t.parentElement,e))},s=function(t){var e=(new DOMParser).parseFromString(t,"text/html").body;if(e.childElementCount>1){for(var i=document.createElement("div");e.firstChild;)i.appendChild(e.firstChild);return i}return e.firstChild},o=t=>`${t||""}`.split(" ").filter((t=>!!t)),a=(t,e,i)=>{t&&o(e).forEach((e=>{t.classList.toggle(e,i||!1)}))};class r{constructor(t){Object.defineProperty(this,"pageX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"pageY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"clientX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"clientY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"time",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"nativePointer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.nativePointer=t,this.pageX=t.pageX,this.pageY=t.pageY,this.clientX=t.clientX,this.clientY=t.clientY,this.id=self.Touch&&t instanceof Touch?t.identifier:-1,this.time=Date.now()}}const l={passive:!1};class c{constructor(t,{start:e=(()=>!0),move:i=(()=>{}),end:n=(()=>{})}){Object.defineProperty(this,"element",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"startCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"moveCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"endCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"currentPointers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"startPointers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),this.element=t,this.startCallback=e,this.moveCallback=i,this.endCallback=n;for(const t of["onPointerStart","onTouchStart","onMove","onTouchEnd","onPointerEnd","onWindowBlur"])this[t]=this[t].bind(this);this.element.addEventListener("mousedown",this.onPointerStart,l),this.element.addEventListener("touchstart",this.onTouchStart,l),this.element.addEventListener("touchmove",this.onMove,l),this.element.addEventListener("touchend",this.onTouchEnd),this.element.addEventListener("touchcancel",this.onTouchEnd)}onPointerStart(t){if(!t.buttons||0!==t.button)return;const e=new r(t);this.currentPointers.some((t=>t.id===e.id))||this.triggerPointerStart(e,t)&&(window.addEventListener("mousemove",this.onMove),window.addEventListener("mouseup",this.onPointerEnd),window.addEventListener("blur",this.onWindowBlur))}onTouchStart(t){for(const e of Array.from(t.changedTouches||[]))this.triggerPointerStart(new r(e),t);window.addEventListener("blur",this.onWindowBlur)}onMove(t){const e=this.currentPointers.slice(),i="changedTouches"in t?Array.from(t.changedTouches||[]).map((t=>new r(t))):[new r(t)],n=[];for(const t of i){const e=this.currentPointers.findIndex((e=>e.id===t.id));e<0||(n.push(t),this.currentPointers[e]=t)}n.length&&this.moveCallback(t,this.currentPointers.slice(),e)}onPointerEnd(t){t.buttons>0&&0!==t.button||(this.triggerPointerEnd(t,new r(t)),window.removeEventListener("mousemove",this.onMove),window.removeEventListener("mouseup",this.onPointerEnd),window.removeEventListener("blur",this.onWindowBlur))}onTouchEnd(t){for(const e of Array.from(t.changedTouches||[]))this.triggerPointerEnd(t,new r(e))}triggerPointerStart(t,e){return!!this.startCallback(e,t,this.currentPointers.slice())&&(this.currentPointers.push(t),this.startPointers.push(t),!0)}triggerPointerEnd(t,e){const i=this.currentPointers.findIndex((t=>t.id===e.id));i<0||(this.currentPointers.splice(i,1),this.startPointers.splice(i,1),this.endCallback(t,e,this.currentPointers.slice()))}onWindowBlur(){this.clear()}clear(){for(;this.currentPointers.length;){const t=this.currentPointers[this.currentPointers.length-1];this.currentPointers.splice(this.currentPointers.length-1,1),this.startPointers.splice(this.currentPointers.length-1,1),this.endCallback(new Event("touchend",{bubbles:!0,cancelable:!0,clientX:t.clientX,clientY:t.clientY}),t,this.currentPointers.slice())}}stop(){this.element.removeEventListener("mousedown",this.onPointerStart,l),this.element.removeEventListener("touchstart",this.onTouchStart,l),this.element.removeEventListener("touchmove",this.onMove,l),this.element.removeEventListener("touchend",this.onTouchEnd),this.element.removeEventListener("touchcancel",this.onTouchEnd),window.removeEventListener("mousemove",this.onMove),window.removeEventListener("mouseup",this.onPointerEnd),window.removeEventListener("blur",this.onWindowBlur)}}function h(t,e){return e?Math.sqrt(Math.pow(e.clientX-t.clientX,2)+Math.pow(e.clientY-t.clientY,2)):0}function d(t,e){return e?{clientX:(t.clientX+e.clientX)/2,clientY:(t.clientY+e.clientY)/2}:t}const u=t=>"object"==typeof t&&null!==t&&t.constructor===Object&&"[object Object]"===Object.prototype.toString.call(t),p=(t,...e)=>{const i=e.length;for(let n=0;n<i;n++){const i=e[n]||{};Object.entries(i).forEach((([e,i])=>{const n=Array.isArray(i)?[]:{};t[e]||Object.assign(t,{[e]:n}),u(i)?Object.assign(t[e],p(n,i)):Array.isArray(i)?Object.assign(t,{[e]:[...i]}):Object.assign(t,{[e]:i})}))}return t},f=function(t,e){return t.split(".").reduce(((t,e)=>"object"==typeof t?t[e]:void 0),e)};class g{constructor(t={}){Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),this.setOptions(t);for(const t of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))t.startsWith("on")&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}setOptions(t){this.options=t?p({},this.constructor.defaults,t):{};for(const[t,e]of Object.entries(this.option("on")||{}))this.on(t,e)}option(t,...e){let i=f(t,this.options);return i&&"function"==typeof i&&(i=i.call(this,this,...e)),i}optionFor(t,e,i,...n){let s=f(e,t);var o;"string"!=typeof(o=s)||isNaN(o)||isNaN(parseFloat(o))||(s=parseFloat(s)),"true"===s&&(s=!0),"false"===s&&(s=!1),s&&"function"==typeof s&&(s=s.call(this,this,t,...n));let a=f(e,this.options);return a&&"function"==typeof a?s=a.call(this,this,t,...n,s):void 0===s&&(s=a),void 0===s?i:s}cn(t){const e=this.options.classes;return e&&e[t]||""}localize(t,e=[]){t=String(t).replace(/\{\{(\w+).?(\w+)?\}\}/g,((t,e,i)=>{let n="";return i?n=this.option(`${e[0]+e.toLowerCase().substring(1)}.l10n.${i}`):e&&(n=this.option(`l10n.${e}`)),n||(n=t),n}));for(let i=0;i<e.length;i++)t=t.split(e[i][0]).join(e[i][1]);return t=t.replace(/\{\{(.*?)\}\}/g,((t,e)=>e))}on(t,e){let i=[];"string"==typeof t?i=t.split(" "):Array.isArray(t)&&(i=t),this.events||(this.events=new Map),i.forEach((t=>{let i=this.events.get(t);i||(this.events.set(t,[]),i=[]),i.includes(e)||i.push(e),this.events.set(t,i)}))}off(t,e){let i=[];"string"==typeof t?i=t.split(" "):Array.isArray(t)&&(i=t),i.forEach((t=>{const i=this.events.get(t);if(Array.isArray(i)){const t=i.indexOf(e);t>-1&&i.splice(t,1)}}))}emit(t,...e){[...this.events.get(t)||[]].forEach((t=>t(this,...e))),"*"!==t&&this.emit("*",t,...e)}}Object.defineProperty(g,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.36"}),Object.defineProperty(g,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{}});class m extends g{constructor(t={}){super(t),Object.defineProperty(this,"plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}})}attachPlugins(t={}){const e=new Map;for(const[i,n]of Object.entries(t)){const t=this.option(i),s=this.plugins[i];s||!1===t?s&&!1===t&&(s.detach(),delete this.plugins[i]):e.set(i,new n(this,t||{}))}for(const[t,i]of e)this.plugins[t]=i,i.attach()}detachPlugins(t){t=t||Object.keys(this.plugins);for(const e of t){const t=this.plugins[e];t&&t.detach(),delete this.plugins[e]}return this.emit("detachPlugins"),this}}var v;!function(t){t[t.Init=0]="Init",t[t.Error=1]="Error",t[t.Ready=2]="Ready",t[t.Panning=3]="Panning",t[t.Mousemove=4]="Mousemove",t[t.Destroy=5]="Destroy"}(v||(v={}));const b=["a","b","c","d","e","f"],y={PANUP:"Move up",PANDOWN:"Move down",PANLEFT:"Move left",PANRIGHT:"Move right",ZOOMIN:"Zoom in",ZOOMOUT:"Zoom out",TOGGLEZOOM:"Toggle zoom level",TOGGLE1TO1:"Toggle zoom level",ITERATEZOOM:"Toggle zoom level",ROTATECCW:"Rotate counterclockwise",ROTATECW:"Rotate clockwise",FLIPX:"Flip horizontally",FLIPY:"Flip vertically",FITX:"Fit horizontally",FITY:"Fit vertically",RESET:"Reset",TOGGLEFS:"Toggle fullscreen"},w={content:null,width:"auto",height:"auto",panMode:"drag",touch:!0,dragMinThreshold:3,lockAxis:!1,mouseMoveFactor:1,mouseMoveFriction:.12,zoom:!0,pinchToZoom:!0,panOnlyZoomed:"auto",minScale:1,maxScale:2,friction:.25,dragFriction:.35,decelFriction:.05,click:"toggleZoom",dblClick:!1,wheel:"zoom",wheelLimit:7,spinner:!0,bounds:"auto",infinite:!1,rubberband:!0,bounce:!0,maxVelocity:75,transformParent:!1,classes:{content:"f-panzoom__content",isLoading:"is-loading",canZoomIn:"can-zoom_in",canZoomOut:"can-zoom_out",isDraggable:"is-draggable",isDragging:"is-dragging",inFullscreen:"in-fullscreen",htmlHasFullscreen:"with-panzoom-in-fullscreen"},l10n:y},x='<circle cx="25" cy="25" r="20"></circle>',E='<div class="f-spinner"><svg viewBox="0 0 50 50">'+x+x+"</svg></div>",S=t=>t&&null!==t&&t instanceof Element&&"nodeType"in t,P=(t,e)=>{t&&o(e).forEach((e=>{t.classList.remove(e)}))},C=(t,e)=>{t&&o(e).forEach((e=>{t.classList.add(e)}))},T={a:1,b:0,c:0,d:1,e:0,f:0},M=1e5,O=1e4,A="mousemove",L="drag",z="content",R="auto";let k=null,I=null;class D extends m{get fits(){return this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1}get isTouchDevice(){return null===I&&(I=window.matchMedia("(hover: none)").matches),I}get isMobile(){return null===k&&(k=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)),k}get panMode(){return this.options.panMode!==A||this.isTouchDevice?L:A}get panOnlyZoomed(){const t=this.options.panOnlyZoomed;return t===R?this.isTouchDevice:t}get isInfinite(){return this.option("infinite")}get angle(){return 180*Math.atan2(this.current.b,this.current.a)/Math.PI||0}get targetAngle(){return 180*Math.atan2(this.target.b,this.target.a)/Math.PI||0}get scale(){const{a:t,b:e}=this.current;return Math.sqrt(t*t+e*e)||1}get targetScale(){const{a:t,b:e}=this.target;return Math.sqrt(t*t+e*e)||1}get minScale(){return this.option("minScale")||1}get fullScale(){const{contentRect:t}=this;return t.fullWidth/t.fitWidth||1}get maxScale(){return this.fullScale*(this.option("maxScale")||1)||1}get coverScale(){const{containerRect:t,contentRect:e}=this,i=Math.max(t.height/e.fitHeight,t.width/e.fitWidth)||1;return Math.min(this.fullScale,i)}get isScaling(){return Math.abs(this.targetScale-this.scale)>1e-5&&!this.isResting}get isContentLoading(){const t=this.content;return!!(t&&t instanceof HTMLImageElement)&&!t.complete}get isResting(){if(this.isBouncingX||this.isBouncingY)return!1;for(const t of b){const e="e"==t||"f"===t?1e-4:1e-5;if(Math.abs(this.target[t]-this.current[t])>e)return!1}return!(!this.ignoreBounds&&!this.checkBounds().inBounds)}constructor(t,e={},i={}){var n;if(super(e),Object.defineProperty(this,"pointerTracker",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"resizeObserver",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"updateTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"clickTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"rAF",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"isTicking",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"ignoreBounds",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isBouncingX",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isBouncingY",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"clicks",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"trackingPoints",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"pwt",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"cwd",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"pmme",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"friction",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:v.Init}),Object.defineProperty(this,"isDragging",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"content",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"spinner",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"containerRect",{enumerable:!0,configurable:!0,writable:!0,value:{width:0,height:0,innerWidth:0,innerHeight:0}}),Object.defineProperty(this,"contentRect",{enumerable:!0,configurable:!0,writable:!0,value:{top:0,right:0,bottom:0,left:0,fullWidth:0,fullHeight:0,fitWidth:0,fitHeight:0,width:0,height:0}}),Object.defineProperty(this,"dragStart",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,top:0,left:0,time:0}}),Object.defineProperty(this,"dragOffset",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,time:0}}),Object.defineProperty(this,"current",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},T)}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},T)}),Object.defineProperty(this,"velocity",{enumerable:!0,configurable:!0,writable:!0,value:{a:0,b:0,c:0,d:0,e:0,f:0}}),Object.defineProperty(this,"lockedAxis",{enumerable:!0,configurable:!0,writable:!0,value:!1}),!t)throw new Error("Container Element Not Found");this.container=t,this.initContent(),this.attachPlugins(Object.assign(Object.assign({},D.Plugins),i)),this.emit("attachPlugins"),this.emit("init");const o=this.content;if(o.addEventListener("load",this.onLoad),o.addEventListener("error",this.onError),this.isContentLoading){if(this.option("spinner")){t.classList.add(this.cn("isLoading"));const e=s(E);!t.contains(o)||o.parentElement instanceof HTMLPictureElement?this.spinner=t.appendChild(e):this.spinner=(null===(n=o.parentElement)||void 0===n?void 0:n.insertBefore(e,o))||null}this.emit("beforeLoad")}else queueMicrotask((()=>{this.enable()}))}initContent(){const{container:t}=this,e=this.cn(z);let i=this.option(z)||t.querySelector(`.${e}`);if(i||(i=t.querySelector("img,picture")||t.firstElementChild,i&&C(i,e)),i instanceof HTMLPictureElement&&(i=i.querySelector("img")),!i)throw new Error("No content found");this.content=i}onLoad(){const{spinner:t,container:e,state:i}=this;t&&(t.remove(),this.spinner=null),this.option("spinner")&&e.classList.remove(this.cn("isLoading")),this.emit("afterLoad"),i===v.Init?this.enable():this.updateMetrics()}onError(){this.state!==v.Destroy&&(this.spinner&&(this.spinner.remove(),this.spinner=null),this.stop(),this.detachEvents(),this.state=v.Error,this.emit("error"))}getNextScale(t){const{fullScale:e,targetScale:i,coverScale:n,maxScale:s,minScale:o}=this;let a=o;switch(t){case"toggleMax":a=i-o<.5*(s-o)?s:o;break;case"toggleCover":a=i-o<.5*(n-o)?n:o;break;case"toggleZoom":a=i-o<.5*(e-o)?e:o;break;case"iterateZoom":let t=[1,e,s].sort(((t,e)=>t-e)),r=t.findIndex((t=>t>i+1e-5));a=t[r]||1}return a}attachObserver(){var t;const e=()=>{const{container:t,containerRect:e}=this;return Math.abs(e.width-t.getBoundingClientRect().width)>.1||Math.abs(e.height-t.getBoundingClientRect().height)>.1};this.resizeObserver||void 0===window.ResizeObserver||(this.resizeObserver=new ResizeObserver((()=>{this.updateTimer||(e()?(this.onResize(),this.isMobile&&(this.updateTimer=setTimeout((()=>{e()&&this.onResize(),this.updateTimer=null}),500))):this.updateTimer&&(clearTimeout(this.updateTimer),this.updateTimer=null))}))),null===(t=this.resizeObserver)||void 0===t||t.observe(this.container)}detachObserver(){var t;null===(t=this.resizeObserver)||void 0===t||t.disconnect()}attachEvents(){const{container:t}=this;t.addEventListener("click",this.onClick,{passive:!1,capture:!1}),t.addEventListener("wheel",this.onWheel,{passive:!1}),this.pointerTracker=new c(t,{start:this.onPointerDown,move:this.onPointerMove,end:this.onPointerUp}),document.addEventListener(A,this.onMouseMove)}detachEvents(){var t;const{container:e}=this;e.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),e.removeEventListener("wheel",this.onWheel,{passive:!1}),null===(t=this.pointerTracker)||void 0===t||t.stop(),this.pointerTracker=null,document.removeEventListener(A,this.onMouseMove),document.removeEventListener("keydown",this.onKeydown,!0),this.clickTimer&&(clearTimeout(this.clickTimer),this.clickTimer=null),this.updateTimer&&(clearTimeout(this.updateTimer),this.updateTimer=null)}animate(){this.setTargetForce();const t=this.friction,e=this.option("maxVelocity");for(const i of b)t?(this.velocity[i]*=1-t,e&&!this.isScaling&&(this.velocity[i]=Math.max(Math.min(this.velocity[i],e),-1*e)),this.current[i]+=this.velocity[i]):this.current[i]=this.target[i];this.setTransform(),this.setEdgeForce(),!this.isResting||this.isDragging?this.rAF=requestAnimationFrame((()=>this.animate())):this.stop("current")}setTargetForce(){for(const t of b)"e"===t&&this.isBouncingX||"f"===t&&this.isBouncingY||(this.velocity[t]=(1/(1-this.friction)-1)*(this.target[t]-this.current[t]))}checkBounds(t=0,e=0){const{current:i}=this,n=i.e+t,s=i.f+e,o=this.getBounds(),{x:a,y:r}=o,l=a.min,c=a.max,h=r.min,d=r.max;let u=0,p=0;return l!==1/0&&n<l?u=l-n:c!==1/0&&n>c&&(u=c-n),h!==1/0&&s<h?p=h-s:d!==1/0&&s>d&&(p=d-s),Math.abs(u)<1e-4&&(u=0),Math.abs(p)<1e-4&&(p=0),Object.assign(Object.assign({},o),{xDiff:u,yDiff:p,inBounds:!u&&!p})}clampTargetBounds(){const{target:t}=this,{x:e,y:i}=this.getBounds();e.min!==1/0&&(t.e=Math.max(t.e,e.min)),e.max!==1/0&&(t.e=Math.min(t.e,e.max)),i.min!==1/0&&(t.f=Math.max(t.f,i.min)),i.max!==1/0&&(t.f=Math.min(t.f,i.max))}calculateContentDim(t=this.current){const{content:e,contentRect:i}=this,{fitWidth:n,fitHeight:s,fullWidth:o,fullHeight:a}=i;let r=o,l=a;if(this.option("zoom")||0!==this.angle){const i=!(e instanceof HTMLImageElement)&&("none"===window.getComputedStyle(e).maxWidth||"none"===window.getComputedStyle(e).maxHeight),c=i?o:n,h=i?a:s,d=this.getMatrix(t),u=new DOMPoint(0,0).matrixTransform(d),p=new DOMPoint(0+c,0).matrixTransform(d),f=new DOMPoint(0+c,0+h).matrixTransform(d),g=new DOMPoint(0,0+h).matrixTransform(d),m=Math.abs(f.x-u.x),v=Math.abs(f.y-u.y),b=Math.abs(g.x-p.x),y=Math.abs(g.y-p.y);r=Math.max(m,b),l=Math.max(v,y)}return{contentWidth:r,contentHeight:l}}setEdgeForce(){if(this.ignoreBounds||this.isDragging||this.panMode===A||this.targetScale<this.scale)return this.isBouncingX=!1,void(this.isBouncingY=!1);const{target:t}=this,{x:e,y:i,xDiff:n,yDiff:s}=this.checkBounds();const o=this.option("maxVelocity");let a=this.velocity.e,r=this.velocity.f;0!==n?(this.isBouncingX=!0,n*a<=0?a+=.14*n:(a=.14*n,e.min!==1/0&&(this.target.e=Math.max(t.e,e.min)),e.max!==1/0&&(this.target.e=Math.min(t.e,e.max))),o&&(a=Math.max(Math.min(a,o),-1*o))):this.isBouncingX=!1,0!==s?(this.isBouncingY=!0,s*r<=0?r+=.14*s:(r=.14*s,i.min!==1/0&&(this.target.f=Math.max(t.f,i.min)),i.max!==1/0&&(this.target.f=Math.min(t.f,i.max))),o&&(r=Math.max(Math.min(r,o),-1*o))):this.isBouncingY=!1,this.isBouncingX&&(this.velocity.e=a),this.isBouncingY&&(this.velocity.f=r)}enable(){const{content:t}=this,e=new DOMMatrixReadOnly(window.getComputedStyle(t).transform);for(const t of b)this.current[t]=this.target[t]=e[t];this.updateMetrics(),this.attachObserver(),this.attachEvents(),this.state=v.Ready,this.emit("ready")}onClick(t){var e;"click"===t.type&&0===t.detail&&(this.dragOffset.x=0,this.dragOffset.y=0),this.isDragging&&(null===(e=this.pointerTracker)||void 0===e||e.clear(),this.trackingPoints=[],this.startDecelAnim());const i=t.target;if(!i||t.defaultPrevented)return;if(i.hasAttribute("disabled"))return t.preventDefault(),void t.stopPropagation();if((()=>{const t=window.getSelection();return t&&"Range"===t.type})()&&!i.closest("button"))return;const n=i.closest("[data-panzoom-action]"),s=i.closest("[data-panzoom-change]"),o=n||s,a=o&&S(o)?o.dataset:null;if(a){const e=a.panzoomChange,i=a.panzoomAction;if((e||i)&&t.preventDefault(),e){let t={};try{t=JSON.parse(e)}catch(t){console&&console.warn("The given data was not valid JSON")}return void this.applyChange(t)}if(i)return void(this[i]&&this[i]())}if(Math.abs(this.dragOffset.x)>3||Math.abs(this.dragOffset.y)>3)return t.preventDefault(),void t.stopPropagation();if(i.closest("[data-fancybox]"))return;const r=this.content.getBoundingClientRect(),l=this.dragStart;if(l.time&&!this.canZoomOut()&&(Math.abs(r.x-l.x)>2||Math.abs(r.y-l.y)>2))return;this.dragStart.time=0;const c=e=>{this.option("zoom",t)&&e&&"string"==typeof e&&/(iterateZoom)|(toggle(Zoom|Full|Cover|Max)|(zoomTo(Fit|Cover|Max)))/.test(e)&&"function"==typeof this[e]&&(t.preventDefault(),this[e]({event:t}))},h=this.option("click",t),d=this.option("dblClick",t);d?(this.clicks++,1==this.clicks&&(this.clickTimer=setTimeout((()=>{1===this.clicks?(this.emit("click",t),!t.defaultPrevented&&h&&c(h)):(this.emit("dblClick",t),t.defaultPrevented||c(d)),this.clicks=0,this.clickTimer=null}),350))):(this.emit("click",t),!t.defaultPrevented&&h&&c(h))}addTrackingPoint(t){const e=this.trackingPoints.filter((t=>t.time>Date.now()-100));e.push(t),this.trackingPoints=e}onPointerDown(t,e,i){var n;if(!1===this.option("touch",t))return!1;this.pwt=0,this.dragOffset={x:0,y:0,time:0},this.trackingPoints=[];const s=this.content.getBoundingClientRect();if(this.dragStart={x:s.x,y:s.y,top:s.top,left:s.left,time:Date.now()},this.clickTimer)return!1;if(this.panMode===A&&this.targetScale>1)return t.preventDefault(),t.stopPropagation(),!1;const o=t.composedPath()[0];if(!i.length){if(["TEXTAREA","OPTION","INPUT","SELECT","VIDEO","IFRAME"].includes(o.nodeName)||o.closest("[contenteditable],[data-selectable],[data-draggable],[data-clickable],[data-panzoom-change],[data-panzoom-action]"))return!1;null===(n=window.getSelection())||void 0===n||n.removeAllRanges()}if("mousedown"===t.type)["A","BUTTON"].includes(o.nodeName)||t.preventDefault();else if(Math.abs(this.velocity.a)>.3)return!1;return this.target.e=this.current.e,this.target.f=this.current.f,this.stop(),this.isDragging||(this.isDragging=!0,this.addTrackingPoint(e),this.emit("touchStart",t)),!0}onPointerMove(t,i,s){if(!1===this.option("touch",t))return;if(!this.isDragging)return;if(i.length<2&&this.panOnlyZoomed&&e(this.targetScale)<=e(this.minScale))return;if(this.emit("touchMove",t),t.defaultPrevented)return;this.addTrackingPoint(i[0]);const{content:o}=this,a=d(s[0],s[1]),r=d(i[0],i[1]);let l=0,c=0;if(i.length>1){const t=o.getBoundingClientRect();l=a.clientX-t.left-.5*t.width,c=a.clientY-t.top-.5*t.height}const u=h(s[0],s[1]),p=h(i[0],i[1]);let f=u?p/u:1,g=r.clientX-a.clientX,m=r.clientY-a.clientY;this.dragOffset.x+=g,this.dragOffset.y+=m,this.dragOffset.time=Date.now()-this.dragStart.time;let v=e(this.targetScale)===e(this.minScale)&&this.option("lockAxis");if(v&&!this.lockedAxis)if("xy"===v||"y"===v||"touchmove"===t.type){if(Math.abs(this.dragOffset.x)<6&&Math.abs(this.dragOffset.y)<6)return void t.preventDefault();const e=Math.abs(180*Math.atan2(this.dragOffset.y,this.dragOffset.x)/Math.PI);this.lockedAxis=e>45&&e<135?"y":"x",this.dragOffset.x=0,this.dragOffset.y=0,g=0,m=0}else this.lockedAxis=v;if(n(t.target,this.content)&&(v="x",this.dragOffset.y=0),v&&"xy"!==v&&this.lockedAxis!==v&&e(this.targetScale)===e(this.minScale))return;t.cancelable&&t.preventDefault(),this.container.classList.add(this.cn("isDragging"));const b=this.checkBounds(g,m);this.option("rubberband")?("x"!==this.isInfinite&&(b.xDiff>0&&g<0||b.xDiff<0&&g>0)&&(g*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitWidth*b.xDiff))),"y"!==this.isInfinite&&(b.yDiff>0&&m<0||b.yDiff<0&&m>0)&&(m*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitHeight*b.yDiff)))):(b.xDiff&&(g=0),b.yDiff&&(m=0));const y=this.targetScale,w=this.minScale,x=this.maxScale;y<.5*w&&(f=Math.max(f,w)),y>1.5*x&&(f=Math.min(f,x)),"y"===this.lockedAxis&&e(y)===e(w)&&(g=0),"x"===this.lockedAxis&&e(y)===e(w)&&(m=0),this.applyChange({originX:l,originY:c,panX:g,panY:m,scale:f,friction:this.option("dragFriction"),ignoreBounds:!0})}onPointerUp(t,e,i){if(i.length)return this.dragOffset.x=0,this.dragOffset.y=0,void(this.trackingPoints=[]);this.container.classList.remove(this.cn("isDragging")),this.isDragging&&(this.addTrackingPoint(e),this.panOnlyZoomed&&this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1&&(this.trackingPoints=[]),n(t.target,this.content)&&"y"===this.lockedAxis&&(this.trackingPoints=[]),this.emit("touchEnd",t),this.isDragging=!1,this.lockedAxis=!1,this.state!==v.Destroy&&(t.defaultPrevented||this.startDecelAnim()))}startDecelAnim(){var t;const i=this.isScaling;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const t of b)this.velocity[t]=0;this.target.e=this.current.e,this.target.f=this.current.f,P(this.container,"is-scaling"),P(this.container,"is-animating"),this.isTicking=!1;const{trackingPoints:n}=this,s=n[0],o=n[n.length-1];let a=0,r=0,l=0;o&&s&&(a=o.clientX-s.clientX,r=o.clientY-s.clientY,l=o.time-s.time);const c=(null===(t=window.visualViewport)||void 0===t?void 0:t.scale)||1;1!==c&&(a*=c,r*=c);let h=0,d=0,u=0,p=0,f=this.option("decelFriction");const g=this.targetScale;if(l>0){u=Math.abs(a)>3?a/(l/30):0,p=Math.abs(r)>3?r/(l/30):0;const t=this.option("maxVelocity");t&&(u=Math.max(Math.min(u,t),-1*t),p=Math.max(Math.min(p,t),-1*t))}u&&(h=u/(1/(1-f)-1)),p&&(d=p/(1/(1-f)-1)),("y"===this.option("lockAxis")||"xy"===this.option("lockAxis")&&"y"===this.lockedAxis&&e(g)===this.minScale)&&(h=u=0),("x"===this.option("lockAxis")||"xy"===this.option("lockAxis")&&"x"===this.lockedAxis&&e(g)===this.minScale)&&(d=p=0);const m=this.dragOffset.x,v=this.dragOffset.y,y=this.option("dragMinThreshold")||0;Math.abs(m)<y&&Math.abs(v)<y&&(h=d=0,u=p=0),(this.option("zoom")&&(g<this.minScale-1e-5||g>this.maxScale+1e-5)||i&&!h&&!d)&&(f=.35),this.applyChange({panX:h,panY:d,friction:f}),this.emit("decel",u,p,m,v)}onWheel(t){var e=[-t.deltaX||0,-t.deltaY||0,-t.detail||0].reduce((function(t,e){return Math.abs(e)>Math.abs(t)?e:t}));const i=Math.max(-1,Math.min(1,e));if(this.emit("wheel",t,i),this.panMode===A)return;if(t.defaultPrevented)return;const n=this.option("wheel");"pan"===n?(t.preventDefault(),this.panOnlyZoomed&&!this.canZoomOut()||this.applyChange({panX:2*-t.deltaX,panY:2*-t.deltaY,bounce:!1})):"zoom"===n&&!1!==this.option("zoom")&&this.zoomWithWheel(t)}onMouseMove(t){this.panWithMouse(t)}onKeydown(t){"Escape"===t.key&&this.toggleFS()}onResize(){this.updateMetrics(),this.checkBounds().inBounds||this.requestTick()}setTransform(){this.emit("beforeTransform");const{current:t,target:i,content:n,contentRect:s}=this,o=Object.assign({},T);for(const n of b){const s="e"==n||"f"===n?O:M;o[n]=e(t[n],s),Math.abs(i[n]-t[n])<("e"==n||"f"===n?.51:.001)&&(t[n]=i[n])}let{a:a,b:r,c:l,d:c,e:h,f:d}=o,u=`matrix(${a}, ${r}, ${l}, ${c}, ${h}, ${d})`,p=n.parentElement instanceof HTMLPictureElement?n.parentElement:n;if(this.option("transformParent")&&(p=p.parentElement||p),p.style.transform===u)return;p.style.transform=u;const{contentWidth:f,contentHeight:g}=this.calculateContentDim();s.width=f,s.height=g,this.emit("afterTransform")}updateMetrics(t=!1){var i;if(!this||this.state===v.Destroy)return;if(this.isContentLoading)return;const n=Math.max(1,(null===(i=window.visualViewport)||void 0===i?void 0:i.scale)||1),{container:s,content:o}=this,a=o instanceof HTMLImageElement,r=s.getBoundingClientRect(),l=getComputedStyle(this.container);let c=r.width*n,h=r.height*n;const d=parseFloat(l.paddingTop)+parseFloat(l.paddingBottom),u=c-(parseFloat(l.paddingLeft)+parseFloat(l.paddingRight)),p=h-d;this.containerRect={width:c,height:h,innerWidth:u,innerHeight:p};const f=parseFloat(o.dataset.width||"")||(t=>{let e=0;return e=t instanceof HTMLImageElement?t.naturalWidth:t instanceof SVGElement?t.width.baseVal.value:Math.max(t.offsetWidth,t.scrollWidth),e||0})(o),g=parseFloat(o.dataset.height||"")||(t=>{let e=0;return e=t instanceof HTMLImageElement?t.naturalHeight:t instanceof SVGElement?t.height.baseVal.value:Math.max(t.offsetHeight,t.scrollHeight),e||0})(o);let m=this.option("width",f)||R,b=this.option("height",g)||R;const y=m===R,w=b===R;"number"!=typeof m&&(m=f),"number"!=typeof b&&(b=g),y&&(m=f*(b/g)),w&&(b=g/(f/m));let x=o.parentElement instanceof HTMLPictureElement?o.parentElement:o;this.option("transformParent")&&(x=x.parentElement||x);const E=x.getAttribute("style")||"";x.style.setProperty("transform","none","important"),a&&(x.style.width="",x.style.height=""),x.offsetHeight;const S=o.getBoundingClientRect();let P=S.width*n,C=S.height*n,T=P,M=C;P=Math.min(P,m),C=Math.min(C,b),a?({width:P,height:C}=((t,e,i,n)=>{const s=i/t,o=n/e,a=Math.min(s,o);return{width:t*=a,height:e*=a}})(m,b,P,C)):(P=Math.min(P,m),C=Math.min(C,b));let O=.5*(M-C),A=.5*(T-P);this.contentRect=Object.assign(Object.assign({},this.contentRect),{top:S.top-r.top+O,bottom:r.bottom-S.bottom+O,left:S.left-r.left+A,right:r.right-S.right+A,fitWidth:P,fitHeight:C,width:P,height:C,fullWidth:m,fullHeight:b}),x.style.cssText=E,a&&(x.style.width=`${P}px`,x.style.height=`${C}px`),this.setTransform(),!0!==t&&this.emit("refresh"),this.ignoreBounds||(e(this.targetScale)<e(this.minScale)?this.zoomTo(this.minScale,{friction:0}):this.targetScale>this.maxScale?this.zoomTo(this.maxScale,{friction:0}):this.state===v.Init||this.checkBounds().inBounds||this.requestTick()),this.updateControls()}calculateBounds(){const{contentWidth:t,contentHeight:i}=this.calculateContentDim(this.target),{targetScale:n,lockedAxis:s}=this,{fitWidth:o,fitHeight:a}=this.contentRect;let r=0,l=0,c=0,h=0;const d=this.option("infinite");if(!0===d||s&&d===s)r=-1/0,c=1/0,l=-1/0,h=1/0;else{let{containerRect:s,contentRect:d}=this,u=e(o*n,O),p=e(a*n,O),{innerWidth:f,innerHeight:g}=s;if(s.width===u&&(f=s.width),s.width===p&&(g=s.height),t>f){c=.5*(t-f),r=-1*c;let e=.5*(d.right-d.left);r+=e,c+=e}if(o>f&&t<f&&(r-=.5*(o-f),c-=.5*(o-f)),i>g){h=.5*(i-g),l=-1*h;let t=.5*(d.bottom-d.top);l+=t,h+=t}a>g&&i<g&&(r-=.5*(a-g),c-=.5*(a-g))}return{x:{min:r,max:c},y:{min:l,max:h}}}getBounds(){const t=this.option("bounds");return t!==R?t:this.calculateBounds()}updateControls(){const t=this,i=t.container,{panMode:n,contentRect:s,targetScale:o,minScale:r}=t;let l=r,c=t.option("click")||!1;c&&(l=t.getNextScale(c));let h=t.canZoomIn(),d=t.canZoomOut(),u=n===L&&!!this.option("touch"),p=d&&u;if(u&&(e(o)<e(r)&&!this.panOnlyZoomed&&(p=!0),(e(s.width,1)>e(s.fitWidth,1)||e(s.height,1)>e(s.fitHeight,1))&&(p=!0)),e(s.width*o,1)<e(s.fitWidth,1)&&(p=!1),n===A&&(p=!1),a(i,this.cn("isDraggable"),p),!this.option("zoom"))return;let f=h&&e(l)>e(o),g=!f&&!p&&d&&e(l)<e(o);a(i,this.cn("canZoomIn"),f),a(i,this.cn("canZoomOut"),g);for(const t of i.querySelectorAll("[data-panzoom-action]")){let e=!1,i=!1;switch(t.dataset.panzoomAction){case"zoomIn":h?e=!0:i=!0;break;case"zoomOut":d?e=!0:i=!0;break;case"toggleZoom":case"iterateZoom":h||d?e=!0:i=!0;const n=t.querySelector("g");n&&(n.style.display=h?"":"none")}e?(t.removeAttribute("disabled"),t.removeAttribute("tabindex")):i&&(t.setAttribute("disabled",""),t.setAttribute("tabindex","-1"))}}panTo({x:t=this.target.e,y:e=this.target.f,scale:i=this.targetScale,friction:n=this.option("friction"),angle:s=0,originX:o=0,originY:a=0,flipX:r=!1,flipY:l=!1,ignoreBounds:c=!1}){this.state!==v.Destroy&&this.applyChange({panX:t-this.target.e,panY:e-this.target.f,scale:i/this.targetScale,angle:s,originX:o,originY:a,friction:n,flipX:r,flipY:l,ignoreBounds:c})}applyChange({panX:t=0,panY:i=0,scale:n=1,angle:s=0,originX:o=-this.current.e,originY:a=-this.current.f,friction:r=this.option("friction"),flipX:l=!1,flipY:c=!1,ignoreBounds:h=!1,bounce:d=this.option("bounce")}){const u=this.state;if(u===v.Destroy)return;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.friction=r||0,this.ignoreBounds=h;const{current:p}=this,f=p.e,g=p.f,m=this.getMatrix(this.target);let y=(new DOMMatrix).translate(f,g).translate(o,a).translate(t,i);if(this.option("zoom")){if(!h){const t=this.targetScale,e=this.minScale,i=this.maxScale;t*n<e&&(n=e/t),t*n>i&&(n=i/t)}y=y.scale(n)}y=y.translate(-o,-a).translate(-f,-g).multiply(m),s&&(y=y.rotate(s)),l&&(y=y.scale(-1,1)),c&&(y=y.scale(1,-1));for(const t of b)"e"!==t&&"f"!==t&&(y[t]>this.minScale+1e-5||y[t]<this.minScale-1e-5)?this.target[t]=y[t]:this.target[t]=e(y[t],O);(this.targetScale<this.scale||Math.abs(n-1)>.1||this.panMode===A||!1===d)&&!h&&this.clampTargetBounds(),u===v.Init?this.animate():this.isResting||(this.state=v.Panning,this.requestTick())}stop(t=!1){if(this.state===v.Init||this.state===v.Destroy)return;const e=this.isTicking;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const e of b)this.velocity[e]=0,"current"===t?this.current[e]=this.target[e]:"target"===t&&(this.target[e]=this.current[e]);this.setTransform(),P(this.container,"is-scaling"),P(this.container,"is-animating"),this.isTicking=!1,this.state=v.Ready,e&&(this.emit("endAnimation"),this.updateControls())}requestTick(){this.isTicking||(this.emit("startAnimation"),this.updateControls(),C(this.container,"is-animating"),this.isScaling&&C(this.container,"is-scaling")),this.isTicking=!0,this.rAF||(this.rAF=requestAnimationFrame((()=>this.animate())))}panWithMouse(t,i=this.option("mouseMoveFriction")){if(this.pmme=t,this.panMode!==A||!t)return;if(e(this.targetScale)<=e(this.minScale))return;this.emit("mouseMove",t);const{container:n,containerRect:s,contentRect:o}=this,a=s.width,r=s.height,l=n.getBoundingClientRect(),c=(t.clientX||0)-l.left,h=(t.clientY||0)-l.top;let{contentWidth:d,contentHeight:u}=this.calculateContentDim(this.target);const p=this.option("mouseMoveFactor");p>1&&(d!==a&&(d*=p),u!==r&&(u*=p));let f=.5*(d-a)-c/a*100/100*(d-a);f+=.5*(o.right-o.left);let g=.5*(u-r)-h/r*100/100*(u-r);g+=.5*(o.bottom-o.top),this.applyChange({panX:f-this.target.e,panY:g-this.target.f,friction:i})}zoomWithWheel(t){if(this.state===v.Destroy||this.state===v.Init)return;const i=Date.now();if(i-this.pwt<45)return void t.preventDefault();this.pwt=i;var n=[-t.deltaX||0,-t.deltaY||0,-t.detail||0].reduce((function(t,e){return Math.abs(e)>Math.abs(t)?e:t}));const s=Math.max(-1,Math.min(1,n)),{targetScale:o,maxScale:a,minScale:r}=this;let l=o*(100+45*s)/100;e(l)<e(r)&&e(o)<=e(r)?(this.cwd+=Math.abs(s),l=r):e(l)>e(a)&&e(o)>=e(a)?(this.cwd+=Math.abs(s),l=a):(this.cwd=0,l=Math.max(Math.min(l,a),r)),this.cwd>this.option("wheelLimit")||(t.preventDefault(),e(l)!==e(o)&&this.zoomTo(l,{event:t}))}canZoomIn(){return this.option("zoom")&&(e(this.contentRect.width,1)<e(this.contentRect.fitWidth,1)||e(this.targetScale)<e(this.maxScale))}canZoomOut(){return this.option("zoom")&&e(this.targetScale)>e(this.minScale)}zoomIn(t=1.25,e){this.zoomTo(this.targetScale*t,e)}zoomOut(t=.8,e){this.zoomTo(this.targetScale*t,e)}zoomToFit(t){this.zoomTo("fit",t)}zoomToCover(t){this.zoomTo("cover",t)}zoomToFull(t){this.zoomTo("full",t)}zoomToMax(t){this.zoomTo("max",t)}toggleZoom(t){this.zoomTo(this.getNextScale("toggleZoom"),t)}toggleMax(t){this.zoomTo(this.getNextScale("toggleMax"),t)}toggleCover(t){this.zoomTo(this.getNextScale("toggleCover"),t)}iterateZoom(t){this.zoomTo("next",t)}zoomTo(t=1,{friction:e=R,originX:i=R,originY:n=R,event:s}={}){if(this.isContentLoading||this.state===v.Destroy)return;const{targetScale:o,fullScale:a,maxScale:r,coverScale:l}=this;if(this.stop(),this.panMode===A&&(s=this.pmme||s),s||i===R||n===R){const t=this.content.getBoundingClientRect(),e=this.container.getBoundingClientRect(),o=s?s.clientX:e.left+.5*e.width,a=s?s.clientY:e.top+.5*e.height;i=o-t.left-.5*t.width,n=a-t.top-.5*t.height}let c=1;"number"==typeof t?c=t:"full"===t?c=a:"cover"===t?c=l:"max"===t?c=r:"fit"===t?c=1:"next"===t&&(c=this.getNextScale("iterateZoom")),c=c/o||1,e=e===R?c>1?.15:.25:e,this.applyChange({scale:c,originX:i,originY:n,friction:e}),s&&this.panMode===A&&this.panWithMouse(s,e)}rotateCCW(){this.applyChange({angle:-90})}rotateCW(){this.applyChange({angle:90})}flipX(){this.applyChange({flipX:!0})}flipY(){this.applyChange({flipY:!0})}fitX(){this.stop("target");const{containerRect:t,contentRect:e,target:i}=this;this.applyChange({panX:.5*t.width-(e.left+.5*e.fitWidth)-i.e,panY:.5*t.height-(e.top+.5*e.fitHeight)-i.f,scale:t.width/e.fitWidth/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}fitY(){this.stop("target");const{containerRect:t,contentRect:e,target:i}=this;this.applyChange({panX:.5*t.width-(e.left+.5*e.fitWidth)-i.e,panY:.5*t.innerHeight-(e.top+.5*e.fitHeight)-i.f,scale:t.height/e.fitHeight/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}toggleFS(){const{container:t}=this,e=this.cn("inFullscreen"),i=this.cn("htmlHasFullscreen");t.classList.toggle(e);const n=t.classList.contains(e);n?(document.documentElement.classList.add(i),document.addEventListener("keydown",this.onKeydown,!0)):(document.documentElement.classList.remove(i),document.removeEventListener("keydown",this.onKeydown,!0)),this.updateMetrics(),this.emit(n?"enterFS":"exitFS")}getMatrix(t=this.current){const{a:e,b:i,c:n,d:s,e:o,f:a}=t;return new DOMMatrix([e,i,n,s,o,a])}reset(t){if(this.state!==v.Init&&this.state!==v.Destroy){this.stop("current");for(const t of b)this.target[t]=T[t];this.target.a=this.minScale,this.target.d=this.minScale,this.clampTargetBounds(),this.isResting||(this.friction=void 0===t?this.option("friction"):t,this.state=v.Panning,this.requestTick())}}destroy(){this.stop(),this.state=v.Destroy,this.detachEvents(),this.detachObserver();const{container:t,content:e}=this,i=this.option("classes")||{};for(const e of Object.values(i))t.classList.remove(e+"");e&&(e.removeEventListener("load",this.onLoad),e.removeEventListener("error",this.onError)),this.detachPlugins()}}Object.defineProperty(D,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:w}),Object.defineProperty(D,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}});const F=function(t,e){let i=!0;return(...n)=>{i&&(i=!1,t(...n),setTimeout((()=>{i=!0}),e))}},j=(t,e)=>{let i=[];return t.childNodes.forEach((t=>{t.nodeType!==Node.ELEMENT_NODE||e&&!t.matches(e)||i.push(t)})),i},B={viewport:null,track:null,enabled:!0,slides:[],axis:"x",transition:"fade",preload:1,slidesPerPage:"auto",initialPage:0,friction:.12,Panzoom:{decelFriction:.12},center:!0,infinite:!0,fill:!0,dragFree:!1,adaptiveHeight:!1,direction:"ltr",classes:{container:"f-carousel",viewport:"f-carousel__viewport",track:"f-carousel__track",slide:"f-carousel__slide",isLTR:"is-ltr",isRTL:"is-rtl",isHorizontal:"is-horizontal",isVertical:"is-vertical",inTransition:"in-transition",isSelected:"is-selected"},l10n:{NEXT:"Next slide",PREV:"Previous slide",GOTO:"Go to slide #%d"}};var H;!function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Destroy=2]="Destroy"}(H||(H={}));const N=t=>{if("string"==typeof t||t instanceof HTMLElement)t={html:t};else{const e=t.thumb;void 0!==e&&("string"==typeof e&&(t.thumbSrc=e),e instanceof HTMLImageElement&&(t.thumbEl=e,t.thumbElSrc=e.src,t.thumbSrc=e.src),delete t.thumb)}return Object.assign({html:"",el:null,isDom:!1,class:"",customClass:"",index:-1,dim:0,gap:0,pos:0,transition:!1},t)},_=(t={})=>Object.assign({index:-1,slides:[],dim:0,pos:-1},t);class $ extends g{constructor(t,e){super(e),Object.defineProperty(this,"instance",{enumerable:!0,configurable:!0,writable:!0,value:t})}attach(){}detach(){}}const W={classes:{list:"f-carousel__dots",isDynamic:"is-dynamic",hasDots:"has-dots",dot:"f-carousel__dot",isBeforePrev:"is-before-prev",isPrev:"is-prev",isCurrent:"is-current",isNext:"is-next",isAfterNext:"is-after-next"},dotTpl:'<button type="button" data-carousel-page="%i" aria-label="{{GOTO}}"><span class="f-carousel__dot" aria-hidden="true"></span></button>',dynamicFrom:11,maxCount:1/0,minCount:2};class X extends ${constructor(){super(...arguments),Object.defineProperty(this,"isDynamic",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"list",{enumerable:!0,configurable:!0,writable:!0,value:null})}onRefresh(){this.refresh()}build(){let t=this.list;if(!t){t=document.createElement("ul"),C(t,this.cn("list")),t.setAttribute("role","tablist");const e=this.instance.container;e.appendChild(t),C(e,this.cn("hasDots")),this.list=t}return t}refresh(){var t;const e=this.instance.pages.length,i=Math.min(2,this.option("minCount")),n=Math.max(2e3,this.option("maxCount")),s=this.option("dynamicFrom");if(e<i||e>n)return void this.cleanup();const o="number"==typeof s&&e>5&&e>=s,r=!this.list||this.isDynamic!==o||this.list.children.length!==e;r&&this.cleanup();const l=this.build();if(a(l,this.cn("isDynamic"),!!o),r)for(let t=0;t<e;t++)l.append(this.createItem(t));let c,h=0;for(const e of[...l.children]){const i=h===this.instance.page;i&&(c=e),a(e,this.cn("isCurrent"),i),null===(t=e.children[0])||void 0===t||t.setAttribute("aria-selected",i?"true":"false");for(const t of["isBeforePrev","isPrev","isNext","isAfterNext"])P(e,this.cn(t));h++}if(c=c||l.firstChild,o&&c){const t=c.previousElementSibling,e=t&&t.previousElementSibling;C(t,this.cn("isPrev")),C(e,this.cn("isBeforePrev"));const i=c.nextElementSibling,n=i&&i.nextElementSibling;C(i,this.cn("isNext")),C(n,this.cn("isAfterNext"))}this.isDynamic=o}createItem(t=0){var e;const i=document.createElement("li");i.setAttribute("role","presentation");const n=s(this.instance.localize(this.option("dotTpl"),[["%d",t+1]]).replace(/\%i/g,t+""));return i.appendChild(n),null===(e=i.children[0])||void 0===e||e.setAttribute("role","tab"),i}cleanup(){this.list&&(this.list.remove(),this.list=null),this.isDynamic=!1,P(this.instance.container,this.cn("hasDots"))}attach(){this.instance.on(["refresh","change"],this.onRefresh)}detach(){this.instance.off(["refresh","change"],this.onRefresh),this.cleanup()}}Object.defineProperty(X,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:W});const q="disabled",Y="next",V="prev";class Z extends ${constructor(){super(...arguments),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"prev",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"next",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"isDom",{enumerable:!0,configurable:!0,writable:!0,value:!1})}onRefresh(){const t=this.instance,e=t.pages.length,i=t.page;if(e<2)return void this.cleanup();this.build();let n=this.prev,s=this.next;n&&s&&(n.removeAttribute(q),s.removeAttribute(q),t.isInfinite||(i<=0&&n.setAttribute(q,""),i>=e-1&&s.setAttribute(q,"")))}addBtn(t){var e;const i=this.instance,n=document.createElement("button");n.setAttribute("tabindex","0"),n.setAttribute("title",i.localize(`{{${t.toUpperCase()}}}`)),C(n,this.cn("button")+" "+this.cn(t===Y?"isNext":"isPrev"));const s=i.isRTL?t===Y?V:Y:t;var o;return n.innerHTML=i.localize(this.option(`${s}Tpl`)),n.dataset[`carousel${o=t,o?o.match("^[a-z]")?o.charAt(0).toUpperCase()+o.substring(1):o:""}`]="true",null===(e=this.container)||void 0===e||e.appendChild(n),n}build(){const t=this.instance.container,e=this.cn("container");let{container:i,prev:n,next:s}=this;i||(i=t.querySelector("."+e),this.isDom=!!i),i||(i=document.createElement("div"),C(i,e),t.appendChild(i)),this.container=i,s||(s=i.querySelector("[data-carousel-next]")),s||(s=this.addBtn(Y)),this.next=s,n||(n=i.querySelector("[data-carousel-prev]")),n||(n=this.addBtn(V)),this.prev=n}cleanup(){this.isDom||(this.prev&&this.prev.remove(),this.next&&this.next.remove(),this.container&&this.container.remove()),this.prev=null,this.next=null,this.container=null,this.isDom=!1}attach(){this.instance.on(["refresh","change"],this.onRefresh)}detach(){this.instance.off(["refresh","change"],this.onRefresh),this.cleanup()}}Object.defineProperty(Z,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{classes:{container:"f-carousel__nav",button:"f-button",isNext:"is-next",isPrev:"is-prev"},nextTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M9 3l9 9-9 9"/></svg>',prevTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M15 3l-9 9 9 9"/></svg>'}});class U extends ${constructor(){super(...arguments),Object.defineProperty(this,"selectedIndex",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"nav",{enumerable:!0,configurable:!0,writable:!0,value:null})}addAsTargetFor(t){this.target=this.instance,this.nav=t,this.attachEvents()}addAsNavFor(t){this.nav=this.instance,this.target=t,this.attachEvents()}attachEvents(){const{nav:t,target:e}=this;t&&e&&(t.options.initialSlide=e.options.initialPage,t.state===H.Ready?this.onNavReady(t):t.on("ready",this.onNavReady),e.state===H.Ready?this.onTargetReady(e):e.on("ready",this.onTargetReady))}onNavReady(t){t.on("createSlide",this.onNavCreateSlide),t.on("Panzoom.click",this.onNavClick),t.on("Panzoom.touchEnd",this.onNavTouch),this.onTargetChange()}onTargetReady(t){t.on("change",this.onTargetChange),t.on("Panzoom.refresh",this.onTargetChange),this.onTargetChange()}onNavClick(t,e,i){this.onNavTouch(t,t.panzoom,i)}onNavTouch(t,e,i){var n,s;if(Math.abs(e.dragOffset.x)>3||Math.abs(e.dragOffset.y)>3)return;const o=i.target,{nav:a,target:r}=this;if(!a||!r||!o)return;const l=o.closest("[data-index]");if(i.stopPropagation(),i.preventDefault(),!l)return;const c=parseInt(l.dataset.index||"",10)||0,h=r.getPageForSlide(c),d=a.getPageForSlide(c);a.slideTo(d),r.slideTo(h,{friction:(null===(s=null===(n=this.nav)||void 0===n?void 0:n.plugins)||void 0===s?void 0:s.Sync.option("friction"))||0}),this.markSelectedSlide(c)}onNavCreateSlide(t,e){e.index===this.selectedIndex&&this.markSelectedSlide(e.index)}onTargetChange(){var t,e;const{target:i,nav:n}=this;if(!i||!n)return;if(n.state!==H.Ready||i.state!==H.Ready)return;const s=null===(e=null===(t=i.pages[i.page])||void 0===t?void 0:t.slides[0])||void 0===e?void 0:e.index,o=n.getPageForSlide(s);this.markSelectedSlide(s),n.slideTo(o,null===n.prevPage&&null===i.prevPage?{friction:0}:void 0)}markSelectedSlide(t){const e=this.nav;e&&e.state===H.Ready&&(this.selectedIndex=t,[...e.slides].map((e=>{e.el&&e.el.classList[e.index===t?"add":"remove"]("is-nav-selected")})))}attach(){const t=this;let e=t.options.target,i=t.options.nav;e?t.addAsNavFor(e):i&&t.addAsTargetFor(i)}detach(){const t=this,e=t.nav,i=t.target;e&&(e.off("ready",t.onNavReady),e.off("createSlide",t.onNavCreateSlide),e.off("Panzoom.click",t.onNavClick),e.off("Panzoom.touchEnd",t.onNavTouch)),t.nav=null,i&&(i.off("ready",t.onTargetReady),i.off("refresh",t.onTargetChange),i.off("change",t.onTargetChange)),t.target=null}}Object.defineProperty(U,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{friction:.35}});const G={Navigation:Z,Dots:X,Sync:U},K="animationend",J="isSelected",Q="slide";class tt extends m{get axis(){return this.isHorizontal?"e":"f"}get isEnabled(){return this.state===H.Ready}get isInfinite(){let t=!1;const{contentDim:e,viewportDim:i,pages:n,slides:s}=this,o=s[0];return n.length>=2&&o&&e+o.dim>=i&&(t=this.option("infinite")),t}get isRTL(){return"rtl"===this.option("direction")}get isHorizontal(){return"x"===this.option("axis")}constructor(t,e={},i={}){if(super(),Object.defineProperty(this,"bp",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"lp",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"userOptions",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:H.Init}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"prevPage",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"viewport",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"track",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"slides",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"pages",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"panzoom",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"inTransition",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"contentDim",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"viewportDim",{enumerable:!0,configurable:!0,writable:!0,value:0}),"string"==typeof t&&(t=document.querySelector(t)),!t||!S(t))throw new Error("No Element found");this.container=t,this.slideNext=F(this.slideNext.bind(this),150),this.slidePrev=F(this.slidePrev.bind(this),150),this.userOptions=e,this.userPlugins=i,queueMicrotask((()=>{this.processOptions()}))}processOptions(){var t,e;const i=p({},tt.defaults,this.userOptions);let n="";const s=i.breakpoints;if(s&&u(s))for(const[t,e]of Object.entries(s))window.matchMedia(t).matches&&u(e)&&(n+=t,p(i,e));n===this.bp&&this.state!==H.Init||(this.bp=n,this.state===H.Ready&&(i.initialSlide=(null===(e=null===(t=this.pages[this.page])||void 0===t?void 0:t.slides[0])||void 0===e?void 0:e.index)||0),this.state!==H.Init&&this.destroy(),super.setOptions(i),!1===this.option("enabled")?this.attachEvents():setTimeout((()=>{this.init()}),0))}init(){this.state=H.Init,this.emit("init"),this.attachPlugins(Object.assign(Object.assign({},tt.Plugins),this.userPlugins)),this.emit("attachPlugins"),this.initLayout(),this.initSlides(),this.updateMetrics(),this.setInitialPosition(),this.initPanzoom(),this.attachEvents(),this.state=H.Ready,this.emit("ready")}initLayout(){const{container:t}=this,e=this.option("classes");C(t,this.cn("container")),a(t,e.isLTR,!this.isRTL),a(t,e.isRTL,this.isRTL),a(t,e.isVertical,!this.isHorizontal),a(t,e.isHorizontal,this.isHorizontal);let i=this.option("viewport")||t.querySelector(`.${e.viewport}`);i||(i=document.createElement("div"),C(i,e.viewport),i.append(...j(t,`.${e.slide}`)),t.prepend(i)),i.addEventListener("scroll",this.onScroll);let n=this.option("track")||t.querySelector(`.${e.track}`);n||(n=document.createElement("div"),C(n,e.track),n.append(...Array.from(i.childNodes))),n.setAttribute("aria-live","polite"),i.contains(n)||i.prepend(n),this.viewport=i,this.track=n,this.emit("initLayout")}initSlides(){const{track:t}=this;if(!t)return;const e=[...this.slides],i=[];[...j(t,`.${this.cn(Q)}`)].forEach((t=>{if(S(t)){const e=N({el:t,isDom:!0,index:this.slides.length});i.push(e)}}));for(let t of[...this.option("slides",[])||[],...e])i.push(N(t));this.slides=i;for(let t=0;t<this.slides.length;t++)this.slides[t].index=t;for(const t of i)this.emit("beforeInitSlide",t,t.index),this.emit("initSlide",t,t.index);this.emit("initSlides")}setInitialPage(){const t=this.option("initialSlide");this.page="number"==typeof t?this.getPageForSlide(t):parseInt(this.option("initialPage",0)+"",10)||0}setInitialPosition(){const{track:t,pages:e,isHorizontal:i}=this;if(!t||!e.length)return;let n=this.page;e[n]||(this.page=n=0);const s=(e[n].pos||0)*(this.isRTL&&i?1:-1),o=i?`${s}px`:"0",a=i?"0":`${s}px`;t.style.transform=`translate3d(${o}, ${a}, 0) scale(1)`,this.option("adaptiveHeight")&&this.setViewportHeight()}initPanzoom(){this.panzoom&&(this.panzoom.destroy(),this.panzoom=null);const t=this.option("Panzoom")||{};this.panzoom=new D(this.viewport,p({},{content:this.track,zoom:!1,panOnlyZoomed:!1,lockAxis:this.isHorizontal?"x":"y",infinite:this.isInfinite,click:!1,dblClick:!1,touch:t=>!(this.pages.length<2&&!t.options.infinite),bounds:()=>this.getBounds(),maxVelocity:t=>Math.abs(t.target[this.axis]-t.current[this.axis])<2*this.viewportDim?100:0},t)),this.panzoom.on("*",((t,e,...i)=>{this.emit(`Panzoom.${e}`,t,...i)})),this.panzoom.on("decel",this.onDecel),this.panzoom.on("refresh",this.onRefresh),this.panzoom.on("beforeTransform",this.onBeforeTransform),this.panzoom.on("endAnimation",this.onEndAnimation)}attachEvents(){const t=this.container;t&&(t.addEventListener("click",this.onClick,{passive:!1,capture:!1}),t.addEventListener("slideTo",this.onSlideTo)),window.addEventListener("resize",this.onResize)}createPages(){let t=[];const{contentDim:e,viewportDim:i}=this;let n=this.option("slidesPerPage");n=("auto"===n||e<=i)&&!1!==this.option("fill")?1/0:parseFloat(n+"");let s=0,o=0,a=0;for(const e of this.slides)(!t.length||o+e.dim-i>.05||a>=n)&&(t.push(_()),s=t.length-1,o=0,a=0),t[s].slides.push(e),o+=e.dim+e.gap,a++;return t}processPages(){const t=this.pages,{contentDim:i,viewportDim:n,isInfinite:s}=this,o=this.option("center"),a=this.option("fill"),r=a&&o&&i>n&&!s;if(t.forEach(((t,e)=>{var s;t.index=e,t.pos=(null===(s=t.slides[0])||void 0===s?void 0:s.pos)||0,t.dim=0;for(const[e,i]of t.slides.entries())t.dim+=i.dim,e<t.slides.length-1&&(t.dim+=i.gap);r&&t.pos+.5*t.dim<.5*n?t.pos=0:r&&t.pos+.5*t.dim>=i-.5*n?t.pos=i-n:o&&(t.pos+=-.5*(n-t.dim))})),t.forEach((t=>{a&&!s&&i>n&&(t.pos=Math.max(t.pos,0),t.pos=Math.min(t.pos,i-n)),t.pos=e(t.pos,1e3),t.dim=e(t.dim,1e3),Math.abs(t.pos)<=.1&&(t.pos=0)})),s)return t;const l=[];let c;return t.forEach((t=>{const e=Object.assign({},t);c&&e.pos===c.pos?(c.dim+=e.dim,c.slides=[...c.slides,...e.slides]):(e.index=l.length,c=e,l.push(e))})),l}getPageFromIndex(t=0){const e=this.pages.length;let i;return t=parseInt((t||0).toString())||0,i=this.isInfinite?(t%e+e)%e:Math.max(Math.min(t,e-1),0),i}getSlideMetrics(t){var i,n;const s=this.isHorizontal?"width":"height";let o=0,a=0,r=t.el;const l=!(!r||r.parentNode);if(r?o=parseFloat(r.dataset[s]||"")||0:(r=document.createElement("div"),r.style.visibility="hidden",(this.track||document.body).prepend(r)),C(r,this.cn(Q)+" "+t.class+" "+t.customClass),o)r.style[s]=`${o}px`,r.style["width"===s?"height":"width"]="";else{l&&(this.track||document.body).prepend(r),o=r.getBoundingClientRect()[s]*Math.max(1,(null===(i=window.visualViewport)||void 0===i?void 0:i.scale)||1);let t=r[this.isHorizontal?"offsetWidth":"offsetHeight"];t-1>o&&(o=t)}const c=getComputedStyle(r);return"content-box"===c.boxSizing&&(this.isHorizontal?(o+=parseFloat(c.paddingLeft)||0,o+=parseFloat(c.paddingRight)||0):(o+=parseFloat(c.paddingTop)||0,o+=parseFloat(c.paddingBottom)||0)),a=parseFloat(c[this.isHorizontal?"marginRight":"marginBottom"])||0,l?null===(n=r.parentElement)||void 0===n||n.removeChild(r):t.el||r.remove(),{dim:e(o,1e3),gap:e(a,1e3)}}getBounds(){const{isInfinite:t,isRTL:e,isHorizontal:i,pages:n}=this;let s={min:0,max:0};if(t)s={min:-1/0,max:1/0};else if(n.length){const t=n[0].pos,o=n[n.length-1].pos;s=e&&i?{min:t,max:o}:{min:-1*o,max:-1*t}}return{x:i?s:{min:0,max:0},y:i?{min:0,max:0}:s}}repositionSlides(){let t,{isHorizontal:i,isRTL:n,isInfinite:s,viewport:o,viewportDim:a,contentDim:r,page:l,pages:c,slides:h,panzoom:d}=this,u=0,p=0,f=0,g=0;d?g=-1*d.current[this.axis]:c[l]&&(g=c[l].pos||0),t=i?n?"right":"left":"top",n&&i&&(g*=-1);for(const i of h){const n=i.el;n?("top"===t?(n.style.right="",n.style.left=""):n.style.top="",i.index!==u?n.style[t]=0===p?"":`${e(p,1e3)}px`:n.style[t]="",f+=i.dim+i.gap,u++):p+=i.dim+i.gap}if(s&&f&&o){let n=getComputedStyle(o),s="padding",l=i?"Right":"Bottom",c=parseFloat(n[s+(i?"Left":"Top")]);g-=c,a+=c,a+=parseFloat(n[s+l]);for(const i of h)i.el&&(e(i.pos)<e(a)&&e(i.pos+i.dim+i.gap)<e(g)&&e(g)>e(r-a)&&(i.el.style[t]=`${e(p+f,1e3)}px`),e(i.pos+i.gap)>=e(r-a)&&e(i.pos)>e(g+a)&&e(g)<e(a)&&(i.el.style[t]=`-${e(f,1e3)}px`))}let m,v,b=[...this.inTransition];if(b.length>1&&(m=c[b[0]],v=c[b[1]]),m&&v){let i=0;for(const n of h)n.el?this.inTransition.has(n.index)&&m.slides.indexOf(n)<0&&(n.el.style[t]=`${e(i+(m.pos-v.pos),1e3)}px`):i+=n.dim+n.gap}}createSlideEl(t){const{track:e,slides:i}=this;if(!e||!t)return;if(t.el&&t.el.parentNode)return;const n=t.el||document.createElement("div");C(n,this.cn(Q)),C(n,t.class),C(n,t.customClass);const s=t.html;s&&(s instanceof HTMLElement?n.appendChild(s):n.innerHTML=t.html+"");const o=[];i.forEach(((t,e)=>{t.el&&o.push(e)}));const a=t.index;let r=null;if(o.length){r=i[o.reduce(((t,e)=>Math.abs(e-a)<Math.abs(t-a)?e:t))]}const l=r&&r.el&&r.el.parentNode?r.index<t.index?r.el.nextSibling:r.el:null;e.insertBefore(n,e.contains(l)?l:null),t.el=n,this.emit("createSlide",t)}removeSlideEl(t,e=!1){const i=null==t?void 0:t.el;if(!i||!i.parentNode)return;const n=this.cn(J);if(i.classList.contains(n)&&(P(i,n),this.emit("unselectSlide",t)),t.isDom&&!e)return i.removeAttribute("aria-hidden"),i.removeAttribute("data-index"),void(i.style.left="");this.emit("removeSlide",t);const s=new CustomEvent(K);i.dispatchEvent(s),t.el&&(t.el.remove(),t.el=null)}transitionTo(t=0,e=this.option("transition")){var i,n,s,o;if(!e)return!1;const a=this.page,{pages:r,panzoom:l}=this;t=parseInt((t||0).toString())||0;const c=this.getPageFromIndex(t);if(!l||!r[c]||r.length<2||Math.abs(((null===(n=null===(i=r[a])||void 0===i?void 0:i.slides[0])||void 0===n?void 0:n.dim)||0)-this.viewportDim)>1)return!1;let h=t>a?1:-1;this.isInfinite&&(0===a&&t===r.length-1&&(h=-1),a===r.length-1&&0===t&&(h=1));const d=r[c].pos*(this.isRTL?1:-1);if(a===c&&Math.abs(d-l.target[this.axis])<1)return!1;this.clearTransitions();const u=l.isResting;C(this.container,this.cn("inTransition"));const p=(null===(s=r[a])||void 0===s?void 0:s.slides[0])||null,f=(null===(o=r[c])||void 0===o?void 0:o.slides[0])||null;this.inTransition.add(f.index),this.createSlideEl(f);let g=p.el,m=f.el;u||e===Q||(e="fadeFast",g=null);const v=this.isRTL?"next":"prev",b=this.isRTL?"prev":"next";return g&&(this.inTransition.add(p.index),p.transition=e,g.addEventListener(K,this.onAnimationEnd),g.classList.add(`f-${e}Out`,`to-${h>0?b:v}`)),m&&(f.transition=e,m.addEventListener(K,this.onAnimationEnd),m.classList.add(`f-${e}In`,`from-${h>0?v:b}`)),l.current[this.axis]=d,l.target[this.axis]=d,l.requestTick(),this.onChange(c),!0}manageSlideVisiblity(){const t=new Set,e=new Set,i=this.getVisibleSlides(parseFloat(this.option("preload",0)+"")||0);for(const n of this.slides)i.has(n)?t.add(n):e.add(n);for(const e of this.inTransition)t.add(this.slides[e]);for(const e of t)this.createSlideEl(e),this.lazyLoadSlide(e);for(const i of e)t.has(i)||this.removeSlideEl(i);this.markSelectedSlides(),this.repositionSlides()}markSelectedSlides(){if(!this.pages[this.page]||!this.pages[this.page].slides)return;const t="aria-hidden";let e=this.cn(J);if(e)for(const i of this.slides){const n=i.el;n&&(n.dataset.index=`${i.index}`,n.classList.contains("f-thumbs__slide")?this.getVisibleSlides(0).has(i)?n.removeAttribute(t):n.setAttribute(t,"true"):this.pages[this.page].slides.includes(i)?(n.classList.contains(e)||(C(n,e),this.emit("selectSlide",i)),n.removeAttribute(t)):(n.classList.contains(e)&&(P(n,e),this.emit("unselectSlide",i)),n.setAttribute(t,"true")))}}flipInfiniteTrack(){const{axis:t,isHorizontal:e,isInfinite:i,isRTL:n,viewportDim:s,contentDim:o}=this,a=this.panzoom;if(!a||!i)return;let r=a.current[t],l=a.target[t]-r,c=0,h=.5*s;n&&e?(r<-h&&(c=-1,r+=o),r>o-h&&(c=1,r-=o)):(r>h&&(c=1,r-=o),r<-o+h&&(c=-1,r+=o)),c&&(a.current[t]=r,a.target[t]=r+l)}lazyLoadImg(t,e){const i=this,n="f-fadeIn",o="is-preloading";let a=!1,r=null;const l=()=>{a||(a=!0,r&&(r.remove(),r=null),P(e,o),e.complete&&(C(e,n),setTimeout((()=>{P(e,n)}),350)),this.option("adaptiveHeight")&&t.el&&this.pages[this.page].slides.indexOf(t)>-1&&(i.updateMetrics(),i.setViewportHeight()),this.emit("load",t))};C(e,o),e.src=e.dataset.lazySrcset||e.dataset.lazySrc||"",delete e.dataset.lazySrc,delete e.dataset.lazySrcset,e.addEventListener("error",(()=>{l()})),e.addEventListener("load",(()=>{l()})),setTimeout((()=>{const i=e.parentNode;i&&t.el&&(e.complete?l():a||(r=s(E),i.insertBefore(r,e)))}),300)}lazyLoadSlide(t){const e=t&&t.el;if(!e)return;const i=new Set;let n=Array.from(e.querySelectorAll("[data-lazy-src],[data-lazy-srcset]"));e.dataset.lazySrc&&n.push(e),n.map((t=>{t instanceof HTMLImageElement?i.add(t):t instanceof HTMLElement&&t.dataset.lazySrc&&(t.style.backgroundImage=`url('${t.dataset.lazySrc}')`,delete t.dataset.lazySrc)}));for(const e of i)this.lazyLoadImg(t,e)}onAnimationEnd(t){var e;const i=t.target,n=i?parseInt(i.dataset.index||"",10)||0:-1,s=this.slides[n],o=t.animationName;if(!i||!s||!o)return;const a=!!this.inTransition.has(n)&&s.transition;a&&o.substring(0,a.length+2)===`f-${a}`&&this.inTransition.delete(n),this.inTransition.size||this.clearTransitions(),n===this.page&&(null===(e=this.panzoom)||void 0===e?void 0:e.isResting)&&this.emit("settle")}onDecel(t,e=0,i=0,n=0,s=0){if(this.option("dragFree"))return void this.setPageFromPosition();const{isRTL:o,isHorizontal:a,axis:r,pages:l}=this,c=l.length,h=Math.abs(Math.atan2(i,e)/(Math.PI/180));let d=0;if(d=h>45&&h<135?a?0:i:a?e:0,!c)return;let u=this.page,p=o&&a?1:-1;const f=t.current[r]*p;let{pageIndex:g}=this.getPageFromPosition(f);Math.abs(d)>5?(l[u].dim<document.documentElement["client"+(this.isHorizontal?"Width":"Height")]-1&&(u=g),u=o&&a?d<0?u-1:u+1:d<0?u+1:u-1):u=0===n&&0===s?u:g,this.slideTo(u,{transition:!1,friction:t.option("decelFriction")})}onClick(t){const e=t.target,i=e&&S(e)?e.dataset:null;let n,s;i&&(void 0!==i.carouselPage?(s="slideTo",n=i.carouselPage):void 0!==i.carouselNext?s="slideNext":void 0!==i.carouselPrev&&(s="slidePrev")),s?(t.preventDefault(),t.stopPropagation(),e&&!e.hasAttribute("disabled")&&this[s](n)):this.emit("click",t)}onSlideTo(t){const e=t.detail||0;this.slideTo(this.getPageForSlide(e),{friction:0})}onChange(t,e=0){const i=this.page;this.prevPage=i,this.page=t,this.option("adaptiveHeight")&&this.setViewportHeight(),t!==i&&(this.markSelectedSlides(),this.emit("change",t,i,e))}onRefresh(){let t=this.contentDim,e=this.viewportDim;this.updateMetrics(),this.contentDim===t&&this.viewportDim===e||this.slideTo(this.page,{friction:0,transition:!1})}onScroll(){var t;null===(t=this.viewport)||void 0===t||t.scroll(0,0)}onResize(){this.option("breakpoints")&&this.processOptions()}onBeforeTransform(t){this.lp!==t.current[this.axis]&&(this.flipInfiniteTrack(),this.manageSlideVisiblity()),this.lp=t.current.e}onEndAnimation(){this.inTransition.size||this.emit("settle")}reInit(t=null,e=null){this.destroy(),this.state=H.Init,this.prevPage=null,this.userOptions=t||this.userOptions,this.userPlugins=e||this.userPlugins,this.processOptions()}slideTo(t=0,{friction:e=this.option("friction"),transition:i=this.option("transition")}={}){if(this.state===H.Destroy)return;t=parseInt((t||0).toString())||0;const n=this.getPageFromIndex(t),{axis:s,isHorizontal:o,isRTL:a,pages:r,panzoom:l}=this,c=r.length,h=a&&o?1:-1;if(!l||!c)return;if(this.page!==n){const e=new Event("beforeChange",{bubbles:!0,cancelable:!0});if(this.emit("beforeChange",e,t),e.defaultPrevented)return}if(this.transitionTo(t,i))return;let d=r[n].pos;if(this.isInfinite){const e=this.contentDim,i=l.target[s]*h;if(2===c)d+=e*Math.floor(parseFloat(t+"")/2);else{d=[d,d-e,d+e].reduce((function(t,e){return Math.abs(e-i)<Math.abs(t-i)?e:t}))}}d*=h,Math.abs(l.target[s]-d)<1||(l.panTo({x:o?d:0,y:o?0:d,friction:e}),this.onChange(n))}slideToClosest(t){if(this.panzoom){const{pageIndex:e}=this.getPageFromPosition();this.slideTo(e,t)}}slideNext(){this.slideTo(this.page+1)}slidePrev(){this.slideTo(this.page-1)}clearTransitions(){this.inTransition.clear(),P(this.container,this.cn("inTransition"));const t=["to-prev","to-next","from-prev","from-next"];for(const e of this.slides){const i=e.el;if(i){i.removeEventListener(K,this.onAnimationEnd),i.classList.remove(...t);const n=e.transition;n&&i.classList.remove(`f-${n}Out`,`f-${n}In`)}}this.manageSlideVisiblity()}addSlide(t,e){var i,n,s,o;const a=this.panzoom,r=(null===(i=this.pages[this.page])||void 0===i?void 0:i.pos)||0,l=(null===(n=this.pages[this.page])||void 0===n?void 0:n.dim)||0,c=this.contentDim<this.viewportDim;let h=Array.isArray(e)?e:[e];const d=[];for(const t of h)d.push(N(t));this.slides.splice(t,0,...d);for(let t=0;t<this.slides.length;t++)this.slides[t].index=t;for(const t of d)this.emit("beforeInitSlide",t,t.index);if(this.page>=t&&(this.page+=d.length),this.updateMetrics(),a){const e=(null===(s=this.pages[this.page])||void 0===s?void 0:s.pos)||0,i=(null===(o=this.pages[this.page])||void 0===o?void 0:o.dim)||0,n=this.pages.length||1,h=this.isRTL?l-i:i-l,d=this.isRTL?r-e:e-r;c&&1===n?(t<=this.page&&(a.current[this.axis]-=h,a.target[this.axis]-=h),a.panTo({[this.isHorizontal?"x":"y"]:-1*e})):d&&t<=this.page&&(a.target[this.axis]-=d,a.current[this.axis]-=d,a.requestTick())}for(const t of d)this.emit("initSlide",t,t.index)}prependSlide(t){this.addSlide(0,t)}appendSlide(t){this.addSlide(this.slides.length,t)}removeSlide(t){const e=this.slides.length;t=(t%e+e)%e;const i=this.slides[t];if(i){this.removeSlideEl(i,!0),this.slides.splice(t,1);for(let t=0;t<this.slides.length;t++)this.slides[t].index=t;this.updateMetrics(),this.slideTo(this.page,{friction:0,transition:!1}),this.emit("destroySlide",i)}}updateMetrics(){const{panzoom:t,viewport:i,track:n,slides:s,isHorizontal:o,isInfinite:a}=this;if(!n)return;const r=o?"width":"height",l=o?"offsetWidth":"offsetHeight";if(i){let t=Math.max(i[l],e(i.getBoundingClientRect()[r],1e3)),n=getComputedStyle(i),s="padding",a=o?"Right":"Bottom";t-=parseFloat(n[s+(o?"Left":"Top")])+parseFloat(n[s+a]),this.viewportDim=t}let c,h=0;for(const[t,i]of s.entries()){let n=0,o=0;!i.el&&c?(n=c.dim,o=c.gap):(({dim:n,gap:o}=this.getSlideMetrics(i)),c=i),n=e(n,1e3),o=e(o,1e3),i.dim=n,i.gap=o,i.pos=h,h+=n,(a||t<s.length-1)&&(h+=o)}h=e(h,1e3),this.contentDim=h,t&&(t.contentRect[r]=h,t.contentRect[o?"fullWidth":"fullHeight"]=h),this.pages=this.createPages(),this.pages=this.processPages(),this.state===H.Init&&this.setInitialPage(),this.page=Math.max(0,Math.min(this.page,this.pages.length-1)),this.manageSlideVisiblity(),this.emit("refresh")}getProgress(t,i=!1,n=!1){void 0===t&&(t=this.page);const s=this,o=s.panzoom,a=s.contentDim,r=s.pages[t]||0;if(!r||!o)return t>this.page?-1:1;let l=-1*o.current.e,c=e((l-r.pos)/(1*r.dim),1e3),h=c,d=c;this.isInfinite&&!0!==n&&(h=e((l-r.pos+a)/(1*r.dim),1e3),d=e((l-r.pos-a)/(1*r.dim),1e3));let u=[c,h,d].reduce((function(t,e){return Math.abs(e)<Math.abs(t)?e:t}));return i?u:u>1?1:u<-1?-1:u}setViewportHeight(){const{page:t,pages:e,viewport:i,isHorizontal:n}=this;if(!i||!e[t])return;let s=0;n&&this.track&&(this.track.style.height="auto",e[t].slides.forEach((t=>{t.el&&(s=Math.max(s,t.el.offsetHeight))}))),i.style.height=s?`${s}px`:""}getPageForSlide(t){for(const e of this.pages)for(const i of e.slides)if(i.index===t)return e.index;return-1}getVisibleSlides(t=0){var e;const i=new Set;let{panzoom:n,contentDim:s,viewportDim:o,pages:a,page:r}=this;if(o){s=s+(null===(e=this.slides[this.slides.length-1])||void 0===e?void 0:e.gap)||0;let l=0;l=n&&n.state!==v.Init&&n.state!==v.Destroy?-1*n.current[this.axis]:a[r]&&a[r].pos||0,this.isInfinite&&(l-=Math.floor(l/s)*s),this.isRTL&&this.isHorizontal&&(l*=-1);const c=l-o*t,h=l+o*(t+1),d=this.isInfinite?[-1,0,1]:[0];for(const t of this.slides)for(const e of d){const n=t.pos+e*s,o=n+t.dim+t.gap;n<h&&o>c&&i.add(t)}}return i}getPageFromPosition(t){const{viewportDim:e,contentDim:i,slides:n,pages:s,panzoom:o}=this,a=s.length,r=n.length,l=n[0],c=n[r-1],h=this.option("center");let d=0,u=0,p=0,f=void 0===t?-1*((null==o?void 0:o.target[this.axis])||0):t;h&&(f+=.5*e),this.isInfinite?(f<l.pos-.5*c.gap&&(f-=i,p=-1),f>c.pos+c.dim+.5*c.gap&&(f-=i,p=1)):f=Math.max(l.pos||0,Math.min(f,c.pos));let g=c,m=n.find((t=>{const e=t.pos-.5*g.gap,i=t.pos+t.dim+.5*t.gap;return g=t,f>=e&&f<i}));return m||(m=c),u=this.getPageForSlide(m.index),d=u+p*a,{page:d,pageIndex:u}}setPageFromPosition(){const{pageIndex:t}=this.getPageFromPosition();this.onChange(t)}destroy(){if([H.Destroy].includes(this.state))return;this.state=H.Destroy;const{container:t,viewport:e,track:i,slides:n,panzoom:s}=this,o=this.option("classes");t.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),t.removeEventListener("slideTo",this.onSlideTo),window.removeEventListener("resize",this.onResize),s&&(s.destroy(),this.panzoom=null),n&&n.forEach((t=>{this.removeSlideEl(t)})),this.detachPlugins(),e&&(e.removeEventListener("scroll",this.onScroll),e.offsetParent&&i&&i.offsetParent&&e.replaceWith(...i.childNodes));for(const[e,i]of Object.entries(o))"container"!==e&&i&&t.classList.remove(i);this.track=null,this.viewport=null,this.page=0,this.slides=[];const a=this.events.get("ready");this.events=new Map,a&&this.events.set("ready",a)}}Object.defineProperty(tt,"Panzoom",{enumerable:!0,configurable:!0,writable:!0,value:D}),Object.defineProperty(tt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:B}),Object.defineProperty(tt,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:G});const et=function(t){if(!S(t))return 0;const e=window.scrollY,i=window.innerHeight,n=e+i,s=t.getBoundingClientRect(),o=s.y+e,a=s.height,r=o+a;if(e>r||n<o)return 0;if(e<o&&n>r)return 100;if(o<e&&r>n)return 100;let l=a;o<e&&(l-=e-o),r>n&&(l-=r-n);const c=l/i*100;return Math.round(c)},it=!("undefined"==typeof window||!window.document||!window.document.createElement);let nt;const st=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden]):not(.fancybox-focus-guard)","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"]):not([disabled]):not([aria-hidden])'].join(","),ot=t=>{if(t&&it){void 0===nt&&document.createElement("div").focus({get preventScroll(){return nt=!0,!1}});try{if(nt)t.focus({preventScroll:!0});else{const e=window.scrollY||document.body.scrollTop,i=window.scrollX||document.body.scrollLeft;t.focus(),document.body.scrollTo({top:e,left:i,behavior:"auto"})}}catch(t){}}},at=()=>{const t=document;let e,i="",n="",s="";return t.fullscreenEnabled?(i="requestFullscreen",n="exitFullscreen",s="fullscreenElement"):t.webkitFullscreenEnabled&&(i="webkitRequestFullscreen",n="webkitExitFullscreen",s="webkitFullscreenElement"),i&&(e={request:function(e=t.documentElement){return"webkitRequestFullscreen"===i?e[i](Element.ALLOW_KEYBOARD_INPUT):e[i]()},exit:function(){return t[s]&&t[n]()},isFullscreen:function(){return t[s]}}),e},rt={animated:!0,autoFocus:!0,backdropClick:"close",Carousel:{classes:{container:"fancybox__carousel",viewport:"fancybox__viewport",track:"fancybox__track",slide:"fancybox__slide"}},closeButton:"auto",closeExisting:!1,commonCaption:!1,compact:()=>window.matchMedia("(max-width: 578px), (max-height: 578px)").matches,contentClick:"toggleZoom",contentDblClick:!1,defaultType:"image",defaultDisplay:"flex",dragToClose:!0,Fullscreen:{autoStart:!1},groupAll:!1,groupAttr:"data-fancybox",hideClass:"f-fadeOut",hideScrollbar:!0,idle:3500,keyboard:{Escape:"close",Delete:"close",Backspace:"close",PageUp:"next",PageDown:"prev",ArrowUp:"prev",ArrowDown:"next",ArrowRight:"next",ArrowLeft:"prev"},l10n:Object.assign(Object.assign({},y),{CLOSE:"Close",NEXT:"Next",PREV:"Previous",MODAL:"You can close this modal content with the ESC key",ERROR:"Something Went Wrong, Please Try Again Later",IMAGE_ERROR:"Image Not Found",ELEMENT_NOT_FOUND:"HTML Element Not Found",AJAX_NOT_FOUND:"Error Loading AJAX:Not Found",AJAX_FORBIDDEN:"Error Loading AJAX:Forbidden",IFRAME_ERROR:"Error Loading Page",TOGGLE_ZOOM:"Toggle zoom level",TOGGLE_THUMBS:"Toggle thumbnails",TOGGLE_SLIDESHOW:"Toggle slideshow",TOGGLE_FULLSCREEN:"Toggle full-screen mode",DOWNLOAD:"Download"}),parentEl:null,placeFocusBack:!0,showClass:"f-zoomInUp",startIndex:0,tpl:{closeButton:'<button data-fancybox-close class="f-button is-close-btn" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M20 20L4 4m16 0L4 20"/></svg></button>',main:'<div class="fancybox__container" role="dialog" aria-modal="true" aria-label="{{MODAL}}" tabindex="-1">\n    <div class="fancybox__backdrop"></div>\n    <div class="fancybox__carousel"></div>\n    <div class="fancybox__footer"></div>\n  </div>'},trapFocus:!0,wheel:"zoom"};var lt,ct;!function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Closing=2]="Closing",t[t.CustomClosing=3]="CustomClosing",t[t.Destroy=4]="Destroy"}(lt||(lt={})),function(t){t[t.Loading=0]="Loading",t[t.Opening=1]="Opening",t[t.Ready=2]="Ready",t[t.Closing=3]="Closing"}(ct||(ct={}));let ht="",dt=!1,ut=!1,pt=null;const ft=()=>{let t="",e="";const i=Ae.getInstance();if(i){const n=i.carousel,s=i.getSlide();if(n&&s){let o=s.slug||void 0,a=s.triggerEl||void 0;e=o||(i.option("slug")||""),!e&&a&&a.dataset&&(e=a.dataset.fancybox||""),e&&"true"!==e&&(t="#"+e+(!o&&n.slides.length>1?"-"+(s.index+1):""))}}return{hash:t,slug:e,index:1}},gt=()=>{const t=new URL(document.URL).hash,e=t.slice(1).split("-"),i=e[e.length-1],n=i&&/^\+?\d+$/.test(i)&&parseInt(e.pop()||"1",10)||1;return{hash:t,slug:e.join("-"),index:n}},mt=()=>{const{slug:t,index:e}=gt();if(!t)return;let i=document.querySelector(`[data-slug="${t}"]`);if(i&&i.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})),Ae.getInstance())return;const n=document.querySelectorAll(`[data-fancybox="${t}"]`);n.length&&(i=n[e-1],i&&i.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})))},vt=()=>{if(!1===Ae.defaults.Hash)return;const t=Ae.getInstance();if(!1===(null==t?void 0:t.options.Hash))return;const{slug:e,index:i}=gt(),{slug:n}=ft();t&&(e===n?t.jumpTo(i-1):(dt=!0,t.close())),mt()},bt=()=>{pt&&clearTimeout(pt),queueMicrotask((()=>{vt()}))},yt=()=>{window.addEventListener("hashchange",bt,!1),setTimeout((()=>{vt()}),500)};it&&(/complete|interactive|loaded/.test(document.readyState)?yt():document.addEventListener("DOMContentLoaded",yt));const wt="is-zooming-in";class xt extends ${onCreateSlide(t,e,i){const n=this.instance.optionFor(i,"src")||"";i.el&&"image"===i.type&&"string"==typeof n&&this.setImage(i,n)}onRemoveSlide(t,e,i){i.panzoom&&i.panzoom.destroy(),i.panzoom=void 0,i.imageEl=void 0}onChange(t,e,i,n){P(this.instance.container,wt);for(const t of e.slides){const e=t.panzoom;e&&t.index!==i&&e.reset(.35)}}onClose(){var t;const e=this.instance,i=e.container,n=e.getSlide();if(!i||!i.parentElement||!n)return;const{el:s,contentEl:o,panzoom:a,thumbElSrc:r}=n;if(!s||!r||!o||!a||a.isContentLoading||a.state===v.Init||a.state===v.Destroy)return;a.updateMetrics();let l=this.getZoomInfo(n);if(!l)return;this.instance.state=lt.CustomClosing,i.classList.remove(wt),i.classList.add("is-zooming-out"),o.style.backgroundImage=`url('${r}')`;const c=i.getBoundingClientRect();1===((null===(t=window.visualViewport)||void 0===t?void 0:t.scale)||1)&&Object.assign(i.style,{position:"absolute",top:`${i.offsetTop+window.scrollY}px`,left:`${i.offsetLeft+window.scrollX}px`,bottom:"auto",right:"auto",width:`${c.width}px`,height:`${c.height}px`,overflow:"hidden"});const{x:h,y:d,scale:u,opacity:p}=l;if(p){const t=((t,e,i,n)=>{const s=e-t,o=n-i;return e=>i+((e-t)/s*o||0)})(a.scale,u,1,0);a.on("afterTransform",(()=>{o.style.opacity=t(a.scale)+""}))}a.on("endAnimation",(()=>{e.destroy()})),a.target.a=u,a.target.b=0,a.target.c=0,a.target.d=u,a.panTo({x:h,y:d,scale:u,friction:p?.2:.33,ignoreBounds:!0}),a.isResting&&e.destroy()}setImage(t,e){const i=this.instance;t.src=e,this.process(t,e).then((e=>{const{contentEl:n,imageEl:s,thumbElSrc:o,el:a}=t;if(i.isClosing()||!n||!s)return;n.offsetHeight;const r=!!i.isOpeningSlide(t)&&this.getZoomInfo(t);if(this.option("protected")&&a){a.addEventListener("contextmenu",(t=>{t.preventDefault()}));const t=document.createElement("div");C(t,"fancybox-protected"),n.appendChild(t)}if(o&&r){const s=e.contentRect,a=Math.max(s.fullWidth,s.fullHeight);let c=null;!r.opacity&&a>1200&&(c=document.createElement("img"),C(c,"fancybox-ghost"),c.src=o,n.appendChild(c));const h=()=>{c&&(C(c,"f-fadeFastOut"),setTimeout((()=>{c&&(c.remove(),c=null)}),200))};(l=o,new Promise(((t,e)=>{const i=new Image;i.onload=t,i.onerror=e,i.src=l}))).then((()=>{i.hideLoading(t),t.state=ct.Opening,this.instance.emit("reveal",t),this.zoomIn(t).then((()=>{h(),this.instance.done(t)}),(()=>{})),c&&setTimeout((()=>{h()}),a>2500?800:200)}),(()=>{i.hideLoading(t),i.revealContent(t)}))}else{const n=this.optionFor(t,"initialSize"),s=this.optionFor(t,"zoom"),o={event:i.prevMouseMoveEvent||i.options.event,friction:s?.12:0};let a=i.optionFor(t,"showClass")||void 0,r=!0;i.isOpeningSlide(t)&&("full"===n?e.zoomToFull(o):"cover"===n?e.zoomToCover(o):"max"===n?e.zoomToMax(o):r=!1,e.stop("current")),r&&a&&(a=e.isDragging?"f-fadeIn":""),i.hideLoading(t),i.revealContent(t,a)}var l}),(()=>{i.setError(t,"{{IMAGE_ERROR}}")}))}process(t,e){return new Promise(((i,n)=>{var o;const a=this.instance,r=t.el;a.clearContent(t),a.showLoading(t);let l=this.optionFor(t,"content");if("string"==typeof l&&(l=s(l)),!l||!S(l)){if(l=document.createElement("img"),l instanceof HTMLImageElement){let i="",n=t.caption;i="string"==typeof n&&n?n.replace(/<[^>]+>/gi,"").substring(0,1e3):`Image ${t.index+1} of ${(null===(o=a.carousel)||void 0===o?void 0:o.pages.length)||1}`,l.src=e||"",l.alt=i,l.draggable=!1,t.srcset&&l.setAttribute("srcset",t.srcset),this.instance.isOpeningSlide(t)&&(l.fetchPriority="high")}t.sizes&&l.setAttribute("sizes",t.sizes)}C(l,"fancybox-image"),t.imageEl=l,a.setContent(t,l,!1);t.panzoom=new D(r,p({transformParent:!0},this.option("Panzoom")||{},{content:l,width:(e,i)=>a.optionFor(t,"width","auto",i)||"auto",height:(e,i)=>a.optionFor(t,"height","auto",i)||"auto",wheel:()=>{const t=a.option("wheel");return("zoom"===t||"pan"==t)&&t},click:(e,i)=>{var n,s;if(a.isCompact||a.isClosing())return!1;if(t.index!==(null===(n=a.getSlide())||void 0===n?void 0:n.index))return!1;if(i){const t=i.composedPath()[0];if(["A","BUTTON","TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].includes(t.nodeName))return!1}let o=!i||i.target&&(null===(s=t.contentEl)||void 0===s?void 0:s.contains(i.target));return a.option(o?"contentClick":"backdropClick")||!1},dblClick:()=>a.isCompact?"toggleZoom":a.option("contentDblClick")||!1,spinner:!1,panOnlyZoomed:!0,wheelLimit:1/0,on:{ready:t=>{i(t)},error:()=>{n()},destroy:()=>{n()}}}))}))}zoomIn(t){return new Promise(((e,i)=>{const n=this.instance,s=n.container,{panzoom:o,contentEl:a,el:r}=t;o&&o.updateMetrics();const l=this.getZoomInfo(t);if(!(l&&r&&a&&o&&s))return void i();const{x:c,y:h,scale:d,opacity:u}=l,p=()=>{t.state!==ct.Closing&&(u&&(a.style.opacity=Math.max(Math.min(1,1-(1-o.scale)/(1-d)),0)+""),o.scale>=1&&o.scale>o.targetScale-.1&&e(o))},f=t=>{(t.scale<.99||t.scale>1.01)&&!t.isDragging||(P(s,wt),a.style.opacity="",t.off("endAnimation",f),t.off("touchStart",f),t.off("afterTransform",p),e(t))};o.on("endAnimation",f),o.on("touchStart",f),o.on("afterTransform",p),o.on(["error","destroy"],(()=>{i()})),o.panTo({x:c,y:h,scale:d,friction:0,ignoreBounds:!0}),o.stop("current");const g={event:"mousemove"===o.panMode?n.prevMouseMoveEvent||n.options.event:void 0},m=this.optionFor(t,"initialSize");C(s,wt),n.hideLoading(t),"full"===m?o.zoomToFull(g):"cover"===m?o.zoomToCover(g):"max"===m?o.zoomToMax(g):o.reset(.172)}))}getZoomInfo(t){const{el:e,imageEl:i,thumbEl:n,panzoom:s}=t,o=this.instance,a=o.container;if(!e||!i||!n||!s||et(n)<3||!this.optionFor(t,"zoom")||!a||o.state===lt.Destroy)return!1;if("0"===getComputedStyle(a).getPropertyValue("--f-images-zoom"))return!1;const r=window.visualViewport||null;if(1!==(r?r.scale:1))return!1;let{top:l,left:c,width:h,height:d}=n.getBoundingClientRect(),{top:u,left:p,fitWidth:f,fitHeight:g}=s.contentRect;if(!(h&&d&&f&&g))return!1;const m=s.container.getBoundingClientRect();p+=m.left,u+=m.top;const v=-1*(p+.5*f-(c+.5*h)),b=-1*(u+.5*g-(l+.5*d)),y=h/f;let w=this.option("zoomOpacity")||!1;return"auto"===w&&(w=Math.abs(h/d-f/g)>.1),{x:v,y:b,scale:y,opacity:w}}attach(){const t=this,e=t.instance;e.on("Carousel.change",t.onChange),e.on("Carousel.createSlide",t.onCreateSlide),e.on("Carousel.removeSlide",t.onRemoveSlide),e.on("close",t.onClose)}detach(){const t=this,e=t.instance;e.off("Carousel.change",t.onChange),e.off("Carousel.createSlide",t.onCreateSlide),e.off("Carousel.removeSlide",t.onRemoveSlide),e.off("close",t.onClose)}}Object.defineProperty(xt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{initialSize:"fit",Panzoom:{maxScale:1},protected:!1,zoom:!0,zoomOpacity:"auto"}}),"function"==typeof SuppressedError&&SuppressedError;const Et="html",St="image",Pt="map",Ct="youtube",Tt="vimeo",Mt="html5video",Ot=(t,e={})=>{const i=new URL(t),n=new URLSearchParams(i.search),s=new URLSearchParams;for(const[t,i]of[...n,...Object.entries(e)]){let e=i+"";if("t"===t){let t=e.match(/((\d*)m)?(\d*)s?/);t&&s.set("start",60*parseInt(t[2]||"0")+parseInt(t[3]||"0")+"")}else s.set(t,e)}let o=s+"",a=t.match(/#t=((.*)?\d+s)/);return a&&(o+=`#t=${a[1]}`),o},At={ajax:null,autoSize:!0,iframeAttr:{allow:"autoplay; fullscreen",scrolling:"auto"},preload:!0,videoAutoplay:!0,videoRatio:16/9,videoTpl:'<video class="fancybox__html5video" playsinline controls controlsList="nodownload" poster="{{poster}}">\n  <source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos.</video>',videoFormat:"",vimeo:{byline:1,color:"00adef",controls:1,dnt:1,muted:0},youtube:{controls:1,enablejsapi:1,nocookie:1,rel:0,fs:1}},Lt=["image","html","ajax","inline","clone","iframe","map","pdf","html5video","youtube","vimeo"];class zt extends ${onBeforeInitSlide(t,e,i){this.processType(i)}onCreateSlide(t,e,i){this.setContent(i)}onClearContent(t,e){e.xhr&&(e.xhr.abort(),e.xhr=null);const i=e.iframeEl;i&&(i.onload=i.onerror=null,i.src="//about:blank",e.iframeEl=null);const n=e.contentEl,s=e.placeholderEl;if("inline"===e.type&&n&&s)n.classList.remove("fancybox__content"),"none"!==getComputedStyle(n).getPropertyValue("display")&&(n.style.display="none"),setTimeout((()=>{s&&(n&&s.parentNode&&s.parentNode.insertBefore(n,s),s.remove())}),0),e.contentEl=void 0,e.placeholderEl=void 0;else for(;e.el&&e.el.firstChild;)e.el.removeChild(e.el.firstChild)}onSelectSlide(t,e,i){i.state===ct.Ready&&this.playVideo()}onUnselectSlide(t,e,i){var n,s;if(i.type===Mt){try{null===(s=null===(n=i.el)||void 0===n?void 0:n.querySelector("video"))||void 0===s||s.pause()}catch(t){}return}let o;i.type===Tt?o={method:"pause",value:"true"}:i.type===Ct&&(o={event:"command",func:"pauseVideo"}),o&&i.iframeEl&&i.iframeEl.contentWindow&&i.iframeEl.contentWindow.postMessage(JSON.stringify(o),"*"),i.poller&&clearTimeout(i.poller)}onDone(t,e){t.isCurrentSlide(e)&&!t.isClosing()&&this.playVideo()}onRefresh(t,e){e.slides.forEach((t=>{t.el&&(this.resizeIframe(t),this.setAspectRatio(t))}))}onMessage(t){try{let e=JSON.parse(t.data);if("https://player.vimeo.com"===t.origin){if("ready"===e.event)for(let e of Array.from(document.getElementsByClassName("fancybox__iframe")))e instanceof HTMLIFrameElement&&e.contentWindow===t.source&&(e.dataset.ready="true")}else if(t.origin.match(/^https:\/\/(www.)?youtube(-nocookie)?.com$/)&&"onReady"===e.event){const t=document.getElementById(e.id);t&&(t.dataset.ready="true")}}catch(t){}}loadAjaxContent(t){const e=this.instance.optionFor(t,"src")||"";this.instance.showLoading(t);const i=this.instance,n=new XMLHttpRequest;i.showLoading(t),n.onreadystatechange=function(){n.readyState===XMLHttpRequest.DONE&&i.state===lt.Ready&&(i.hideLoading(t),200===n.status?i.setContent(t,n.responseText):i.setError(t,404===n.status?"{{AJAX_NOT_FOUND}}":"{{AJAX_FORBIDDEN}}"))};const s=t.ajax||null;n.open(s?"POST":"GET",e+""),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.setRequestHeader("X-Requested-With","XMLHttpRequest"),n.send(s),t.xhr=n}setInlineContent(t){let e=null;if(S(t.src))e=t.src;else if("string"==typeof t.src){const i=t.src.split("#",2).pop();e=i?document.getElementById(i):null}if(e){if("clone"===t.type||e.closest(".fancybox__slide")){e=e.cloneNode(!0);const i=e.dataset.animationName;i&&(e.classList.remove(i),delete e.dataset.animationName);let n=e.getAttribute("id");n=n?`${n}--clone`:`clone-${this.instance.id}-${t.index}`,e.setAttribute("id",n)}else if(e.parentNode){const i=document.createElement("div");i.classList.add("fancybox-placeholder"),e.parentNode.insertBefore(i,e),t.placeholderEl=i}this.instance.setContent(t,e)}else this.instance.setError(t,"{{ELEMENT_NOT_FOUND}}")}setIframeContent(t){const{src:e,el:i}=t;if(!e||"string"!=typeof e||!i)return;i.classList.add("is-loading");const n=this.instance,s=document.createElement("iframe");s.className="fancybox__iframe",s.setAttribute("id",`fancybox__iframe_${n.id}_${t.index}`);for(const[e,i]of Object.entries(this.optionFor(t,"iframeAttr")||{}))s.setAttribute(e,i);s.onerror=()=>{n.setError(t,"{{IFRAME_ERROR}}")},t.iframeEl=s;const o=this.optionFor(t,"preload");if("iframe"!==t.type||!1===o)return s.setAttribute("src",t.src+""),n.setContent(t,s,!1),this.resizeIframe(t),void n.revealContent(t);n.showLoading(t),s.onload=()=>{if(!s.src.length)return;const e="true"!==s.dataset.ready;s.dataset.ready="true",this.resizeIframe(t),e?n.revealContent(t):n.hideLoading(t)},s.setAttribute("src",e),n.setContent(t,s,!1)}resizeIframe(t){const{type:e,iframeEl:i}=t;if(e===Ct||e===Tt)return;const n=null==i?void 0:i.parentElement;if(!i||!n)return;let s=t.autoSize;void 0===s&&(s=this.optionFor(t,"autoSize"));let o=t.width||0,a=t.height||0;o&&a&&(s=!1);const r=n&&n.style;if(!1!==t.preload&&!1!==s&&r)try{const t=window.getComputedStyle(n),e=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),s=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),l=i.contentWindow;if(l){const t=l.document,i=t.getElementsByTagName(Et)[0],n=t.body;r.width="",n.style.overflow="hidden",o=o||i.scrollWidth+e,r.width=`${o}px`,n.style.overflow="",r.flex="0 0 auto",r.height=`${n.scrollHeight}px`,a=i.scrollHeight+s}}catch(t){}if(o||a){const t={flex:"0 1 auto",width:"",height:""};o&&"auto"!==o&&(t.width=`${o}px`),a&&"auto"!==a&&(t.height=`${a}px`),Object.assign(r,t)}}playVideo(){const t=this.instance.getSlide();if(!t)return;const{el:e}=t;if(!e||!e.offsetParent)return;if(!this.optionFor(t,"videoAutoplay"))return;if(t.type===Mt)try{const t=e.querySelector("video");if(t){const e=t.play();void 0!==e&&e.then((()=>{})).catch((e=>{t.muted=!0,t.play()}))}}catch(t){}if(t.type!==Ct&&t.type!==Tt)return;const i=()=>{if(t.iframeEl&&t.iframeEl.contentWindow){let e;if("true"===t.iframeEl.dataset.ready)return e=t.type===Ct?{event:"command",func:"playVideo"}:{method:"play",value:"true"},e&&t.iframeEl.contentWindow.postMessage(JSON.stringify(e),"*"),void(t.poller=void 0);t.type===Ct&&(e={event:"listening",id:t.iframeEl.getAttribute("id")},t.iframeEl.contentWindow.postMessage(JSON.stringify(e),"*"))}t.poller=setTimeout(i,250)};i()}processType(t){if(t.html)return t.type=Et,t.src=t.html,void(t.html="");const e=this.instance.optionFor(t,"src","");if(!e||"string"!=typeof e)return;let i=t.type,n=null;if(n=e.match(/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|shorts\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i)){const s=this.optionFor(t,Ct),{nocookie:o}=s,a=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(i[n[s]]=t[n[s]])}return i}(s,["nocookie"]),r=`www.youtube${o?"-nocookie":""}.com`,l=Ot(e,a),c=encodeURIComponent(n[2]);t.videoId=c,t.src=`https://${r}/embed/${c}?${l}`,t.thumbSrc=t.thumbSrc||`https://i.ytimg.com/vi/${c}/mqdefault.jpg`,i=Ct}else if(n=e.match(/^.+vimeo.com\/(?:\/)?([\d]+)((\/|\?h=)([a-z0-9]+))?(.*)?/)){const s=Ot(e,this.optionFor(t,Tt)),o=encodeURIComponent(n[1]),a=n[4]||"";t.videoId=o,t.src=`https://player.vimeo.com/video/${o}?${a?`h=${a}${s?"&":""}`:""}${s}`,i=Tt}if(!i&&t.triggerEl){const e=t.triggerEl.dataset.type;Lt.includes(e)&&(i=e)}i||"string"==typeof e&&("#"===e.charAt(0)?i="inline":(n=e.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(i=Mt,t.videoFormat=t.videoFormat||"video/"+("ogv"===n[1]?"ogg":n[1])):e.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?i=St:e.match(/\.(pdf)((\?|#).*)?$/i)&&(i="pdf")),(n=e.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i))?(t.src=`https://maps.google.${n[1]}/?ll=${(n[2]?n[2]+"&z="+Math.floor(parseFloat(n[3]))+(n[4]?n[4].replace(/^\//,"&"):""):n[4]+"").replace(/\?/,"&")}&output=${n[4]&&n[4].indexOf("layer=c")>0?"svembed":"embed"}`,i=Pt):(n=e.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i))&&(t.src=`https://maps.google.${n[1]}/maps?q=${n[2].replace("query=","q=").replace("api=1","")}&output=embed`,i=Pt),i=i||this.instance.option("defaultType"),t.type=i,i===St&&(t.thumbSrc=t.thumbSrc||t.src)}setContent(t){const e=this.instance.optionFor(t,"src")||"";if(t&&t.type&&e){switch(t.type){case Et:this.instance.setContent(t,e);break;case Mt:const i=this.option("videoTpl");i&&this.instance.setContent(t,i.replace(/\{\{src\}\}/gi,e+"").replace(/\{\{format\}\}/gi,this.optionFor(t,"videoFormat")||"").replace(/\{\{poster\}\}/gi,t.poster||t.thumbSrc||""));break;case"inline":case"clone":this.setInlineContent(t);break;case"ajax":this.loadAjaxContent(t);break;case"pdf":case Pt:case Ct:case Tt:t.preload=!1;case"iframe":this.setIframeContent(t)}this.setAspectRatio(t)}}setAspectRatio(t){const e=t.contentEl;if(!(t.el&&e&&t.type&&[Ct,Tt,Mt].includes(t.type)))return;let i,n=t.width||"auto",s=t.height||"auto";if("auto"===n||"auto"===s){i=this.optionFor(t,"videoRatio");const e=(i+"").match(/(\d+)\s*\/\s?(\d+)/);i=e&&e.length>2?parseFloat(e[1])/parseFloat(e[2]):parseFloat(i+"")}else n&&s&&(i=n/s);if(!i)return;e.style.aspectRatio="",e.style.width="",e.style.height="",e.offsetHeight;const o=e.getBoundingClientRect(),a=o.width||1,r=o.height||1;e.style.aspectRatio=i+"",i<a/r?(s="auto"===s?r:Math.min(r,s),e.style.width="auto",e.style.height=`${s}px`):(n="auto"===n?a:Math.min(a,n),e.style.width=`${n}px`,e.style.height="auto")}attach(){const t=this,e=t.instance;e.on("Carousel.beforeInitSlide",t.onBeforeInitSlide),e.on("Carousel.createSlide",t.onCreateSlide),e.on("Carousel.selectSlide",t.onSelectSlide),e.on("Carousel.unselectSlide",t.onUnselectSlide),e.on("Carousel.Panzoom.refresh",t.onRefresh),e.on("done",t.onDone),e.on("clearContent",t.onClearContent),window.addEventListener("message",t.onMessage)}detach(){const t=this,e=t.instance;e.off("Carousel.beforeInitSlide",t.onBeforeInitSlide),e.off("Carousel.createSlide",t.onCreateSlide),e.off("Carousel.selectSlide",t.onSelectSlide),e.off("Carousel.unselectSlide",t.onUnselectSlide),e.off("Carousel.Panzoom.refresh",t.onRefresh),e.off("done",t.onDone),e.off("clearContent",t.onClearContent),window.removeEventListener("message",t.onMessage)}}Object.defineProperty(zt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:At});const Rt="play",kt="pause",It="ready";class Dt extends ${constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:It}),Object.defineProperty(this,"inHover",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"timer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"progressBar",{enumerable:!0,configurable:!0,writable:!0,value:null})}get isActive(){return this.state!==It}onReady(t){this.option("autoStart")&&(t.isInfinite||t.page<t.pages.length-1)&&this.start()}onChange(){this.removeProgressBar(),this.pause()}onSettle(){this.resume()}onVisibilityChange(){"visible"===document.visibilityState?this.resume():this.pause()}onMouseEnter(){this.inHover=!0,this.pause()}onMouseLeave(){var t;this.inHover=!1,(null===(t=this.instance.panzoom)||void 0===t?void 0:t.isResting)&&this.resume()}onTimerEnd(){const t=this.instance;"play"===this.state&&(t.isInfinite||t.page!==t.pages.length-1?t.slideNext():t.slideTo(0))}removeProgressBar(){this.progressBar&&(this.progressBar.remove(),this.progressBar=null)}createProgressBar(){var t;if(!this.option("showProgress"))return null;this.removeProgressBar();const e=this.instance,i=(null===(t=e.pages[e.page])||void 0===t?void 0:t.slides)||[];let n=this.option("progressParentEl");if(n||(n=(1===i.length?i[0].el:null)||e.viewport),!n)return null;const s=document.createElement("div");return C(s,"f-progress"),n.prepend(s),this.progressBar=s,s.offsetHeight,s}set(){const t=this,e=t.instance;if(e.pages.length<2)return;if(t.timer)return;const i=t.option("timeout");t.state=Rt,C(e.container,"has-autoplay");let n=t.createProgressBar();n&&(n.style.transitionDuration=`${i}ms`,n.style.transform="scaleX(1)"),t.timer=setTimeout((()=>{t.timer=null,t.inHover||t.onTimerEnd()}),i),t.emit("set")}clear(){const t=this;t.timer&&(clearTimeout(t.timer),t.timer=null),t.removeProgressBar()}start(){const t=this;if(t.set(),t.state!==It){if(t.option("pauseOnHover")){const e=t.instance.container;e.addEventListener("mouseenter",t.onMouseEnter,!1),e.addEventListener("mouseleave",t.onMouseLeave,!1)}document.addEventListener("visibilitychange",t.onVisibilityChange,!1),t.emit("start")}}stop(){const t=this,e=t.state,i=t.instance.container;t.clear(),t.state=It,i.removeEventListener("mouseenter",t.onMouseEnter,!1),i.removeEventListener("mouseleave",t.onMouseLeave,!1),document.removeEventListener("visibilitychange",t.onVisibilityChange,!1),P(i,"has-autoplay"),e!==It&&t.emit("stop")}pause(){const t=this;t.state===Rt&&(t.state=kt,t.clear(),t.emit(kt))}resume(){const t=this,e=t.instance;if(e.isInfinite||e.page!==e.pages.length-1)if(t.state!==Rt){if(t.state===kt&&!t.inHover){const e=new Event("resume",{bubbles:!0,cancelable:!0});t.emit("resume",e),e.defaultPrevented||t.set()}}else t.set();else t.stop()}toggle(){this.state===Rt||this.state===kt?this.stop():this.start()}attach(){const t=this,e=t.instance;e.on("ready",t.onReady),e.on("Panzoom.startAnimation",t.onChange),e.on("Panzoom.endAnimation",t.onSettle),e.on("Panzoom.touchMove",t.onChange)}detach(){const t=this,e=t.instance;e.off("ready",t.onReady),e.off("Panzoom.startAnimation",t.onChange),e.off("Panzoom.endAnimation",t.onSettle),e.off("Panzoom.touchMove",t.onChange),t.stop()}}Object.defineProperty(Dt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{autoStart:!0,pauseOnHover:!0,progressParentEl:null,showProgress:!0,timeout:3e3}});class Ft extends ${constructor(){super(...arguments),Object.defineProperty(this,"ref",{enumerable:!0,configurable:!0,writable:!0,value:null})}onPrepare(t){const e=t.carousel;if(!e)return;const i=t.container;i&&(e.options.Autoplay=p({autoStart:!1},this.option("Autoplay")||{},{pauseOnHover:!1,timeout:this.option("timeout"),progressParentEl:()=>this.option("progressParentEl")||null,on:{start:()=>{t.emit("startSlideshow")},set:e=>{var n;i.classList.add("has-slideshow"),(null===(n=t.getSlide())||void 0===n?void 0:n.state)!==ct.Ready&&e.pause()},stop:()=>{i.classList.remove("has-slideshow"),t.isCompact||t.endIdle(),t.emit("endSlideshow")},resume:(e,i)=>{var n,s,o;!i||!i.cancelable||(null===(n=t.getSlide())||void 0===n?void 0:n.state)===ct.Ready&&(null===(o=null===(s=t.carousel)||void 0===s?void 0:s.panzoom)||void 0===o?void 0:o.isResting)||i.preventDefault()}}}),e.attachPlugins({Autoplay:Dt}),this.ref=e.plugins.Autoplay)}onReady(t){const e=t.carousel,i=this.ref;i&&e&&this.option("playOnStart")&&(e.isInfinite||e.page<e.pages.length-1)&&i.start()}onDone(t,e){const i=this.ref,n=t.carousel;if(!i||!n)return;const s=e.panzoom;s&&s.on("startAnimation",(()=>{t.isCurrentSlide(e)&&i.stop()})),t.isCurrentSlide(e)&&i.resume()}onKeydown(t,e){var i;const n=this.ref;n&&e===this.option("key")&&"BUTTON"!==(null===(i=document.activeElement)||void 0===i?void 0:i.nodeName)&&n.toggle()}attach(){const t=this,e=t.instance;e.on("Carousel.init",t.onPrepare),e.on("Carousel.ready",t.onReady),e.on("done",t.onDone),e.on("keydown",t.onKeydown)}detach(){const t=this,e=t.instance;e.off("Carousel.init",t.onPrepare),e.off("Carousel.ready",t.onReady),e.off("done",t.onDone),e.off("keydown",t.onKeydown)}}Object.defineProperty(Ft,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{key:" ",playOnStart:!1,progressParentEl:t=>{var e;return(null===(e=t.instance.container)||void 0===e?void 0:e.querySelector(".fancybox__toolbar [data-fancybox-toggle-slideshow]"))||t.instance.container},timeout:3e3}});const jt={classes:{container:"f-thumbs f-carousel__thumbs",viewport:"f-thumbs__viewport",track:"f-thumbs__track",slide:"f-thumbs__slide",isResting:"is-resting",isSelected:"is-selected",isLoading:"is-loading",hasThumbs:"has-thumbs"},minCount:2,parentEl:null,thumbTpl:'<button class="f-thumbs__slide__button" tabindex="0" type="button" aria-label="{{GOTO}}" data-carousel-index="%i"><img class="f-thumbs__slide__img" data-lazy-src="{{%s}}" alt="" /></button>',type:"modern"};var Bt;!function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Hidden=2]="Hidden"}(Bt||(Bt={}));const Ht="isResting",Nt="thumbWidth",_t="thumbHeight",$t="thumbClipWidth";let Wt=class extends ${constructor(){super(...arguments),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:"modern"}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"track",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"carousel",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"thumbWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbClipWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbGap",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbExtraGap",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:Bt.Init})}get isModern(){return"modern"===this.type}onInitSlide(t,e){const i=e.el?e.el.dataset:void 0;i&&(e.thumbSrc=i.thumbSrc||e.thumbSrc||"",e[$t]=parseFloat(i[$t]||"")||e[$t]||0,e[_t]=parseFloat(i.thumbHeight||"")||e[_t]||0),this.addSlide(e)}onInitSlides(){this.build()}onChange(){var t;if(!this.isModern)return;const e=this.container,i=this.instance,n=i.panzoom,s=this.carousel,o=s?s.panzoom:null,r=i.page;if(n&&s&&o){if(n.isDragging){P(e,this.cn(Ht));let n=(null===(t=s.pages[r])||void 0===t?void 0:t.pos)||0;n+=i.getProgress(r)*(this[$t]+this.thumbGap);let a=o.getBounds();-1*n>a.x.min&&-1*n<a.x.max&&o.panTo({x:-1*n,friction:.12})}else a(e,this.cn(Ht),n.isResting);this.shiftModern()}}onRefresh(){this.updateProps();for(const t of this.instance.slides||[])this.resizeModernSlide(t);this.shiftModern()}isDisabled(){const t=this.option("minCount")||0;if(t){const e=this.instance;let i=0;for(const t of e.slides||[])t.thumbSrc&&i++;if(i<t)return!0}const e=this.option("type");return["modern","classic"].indexOf(e)<0}getThumb(t){const e=this.option("thumbTpl")||"";return{html:this.instance.localize(e,[["%i",t.index],["%d",t.index+1],["%s",t.thumbSrc||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"]])}}addSlide(t){const e=this.carousel;e&&e.addSlide(t.index,this.getThumb(t))}getSlides(){const t=[];for(const e of this.instance.slides||[])t.push(this.getThumb(e));return t}resizeModernSlide(t){this.isModern&&(t[Nt]=t[$t]&&t[_t]?Math.round(this[_t]*(t[$t]/t[_t])):this[Nt])}updateProps(){const t=this.container;if(!t)return;const e=e=>parseFloat(getComputedStyle(t).getPropertyValue("--f-thumb-"+e))||0;this.thumbGap=e("gap"),this.thumbExtraGap=e("extra-gap"),this[Nt]=e("width")||40,this[$t]=e("clip-width")||40,this[_t]=e("height")||40}build(){const t=this;if(t.state!==Bt.Init)return;if(t.isDisabled())return void t.emit("disabled");const e=t.instance,i=e.container,n=t.getSlides(),s=t.option("type");t.type=s;const o=t.option("parentEl"),a=t.cn("container"),r=t.cn("track");let l=null==o?void 0:o.querySelector("."+a);l||(l=document.createElement("div"),C(l,a),o?o.appendChild(l):i.after(l)),C(l,`is-${s}`),C(i,t.cn("hasThumbs")),t.container=l,t.updateProps();let c=l.querySelector("."+r);c||(c=document.createElement("div"),C(c,t.cn("track")),l.appendChild(c)),t.track=c;const h=p({},{track:c,infinite:!1,center:!0,fill:"classic"===s,dragFree:!0,slidesPerPage:1,transition:!1,preload:.25,friction:.12,Panzoom:{maxVelocity:0},Dots:!1,Navigation:!1,classes:{container:"f-thumbs",viewport:"f-thumbs__viewport",track:"f-thumbs__track",slide:"f-thumbs__slide"}},t.option("Carousel")||{},{Sync:{target:e},slides:n}),d=new e.constructor(l,h);d.on("createSlide",((e,i)=>{t.setProps(i.index),t.emit("createSlide",i,i.el)})),d.on("ready",(()=>{t.shiftModern(),t.emit("ready")})),d.on("refresh",(()=>{t.shiftModern()})),d.on("Panzoom.click",((e,i,n)=>{t.onClick(n)})),t.carousel=d,t.state=Bt.Ready}onClick(t){t.preventDefault(),t.stopPropagation();const e=this.instance,{pages:i,page:n}=e,s=t=>{if(t){const e=t.closest("[data-carousel-index]");if(e)return[parseInt(e.dataset.carouselIndex||"",10)||0,e]}return[-1,void 0]},o=(t,e)=>{const i=document.elementFromPoint(t,e);return i?s(i):[-1,void 0]};let[a,r]=s(t.target);if(a>-1)return;const l=this[$t],c=t.clientX,h=t.clientY;let[d,u]=o(c-l,h),[p,f]=o(c+l,h);u&&f?(a=Math.abs(c-u.getBoundingClientRect().right)<Math.abs(c-f.getBoundingClientRect().left)?d:p,a===n&&(a=a===d?p:d)):u?a=d:f&&(a=p),a>-1&&i[a]&&e.slideTo(a)}getShift(t){var e;const i=this,{instance:n}=i,s=i.carousel;if(!n||!s)return 0;const o=i[Nt],a=i[$t],r=i.thumbGap,l=i.thumbExtraGap;if(!(null===(e=s.slides[t])||void 0===e?void 0:e.el))return 0;const c=.5*(o-a),h=n.pages.length-1;let d=n.getProgress(0),u=n.getProgress(h),p=n.getProgress(t,!1,!0),f=0,g=c+l+r;const m=d<0&&d>-1,v=u>0&&u<1;return 0===t?(f=g*Math.abs(d),v&&1===d&&(f-=g*Math.abs(u))):t===h?(f=g*Math.abs(u)*-1,m&&-1===u&&(f+=g*Math.abs(d))):m||v?(f=-1*g,f+=g*Math.abs(d),f+=g*(1-Math.abs(u))):f=g*p,f}setProps(t){var i;const n=this;if(!n.isModern)return;const{instance:s}=n,o=n.carousel;if(s&&o){const a=null===(i=o.slides[t])||void 0===i?void 0:i.el;if(a&&a.childNodes.length){let i=e(1-Math.abs(s.getProgress(t))),o=e(n.getShift(t));a.style.setProperty("--progress",i?i+"":""),a.style.setProperty("--shift",o+"")}}}shiftModern(){const t=this;if(!t.isModern)return;const{instance:e,track:i}=t,n=e.panzoom,s=t.carousel;if(!(e&&i&&n&&s))return;if(n.state===v.Init||n.state===v.Destroy)return;for(const i of e.slides)t.setProps(i.index);let o=(t[$t]+t.thumbGap)*(s.slides.length||0);i.style.setProperty("--width",o+"")}cleanup(){const t=this;t.carousel&&t.carousel.destroy(),t.carousel=null,t.container&&t.container.remove(),t.container=null,t.track&&t.track.remove(),t.track=null,t.state=Bt.Init,P(t.instance.container,t.cn("hasThumbs"))}attach(){const t=this,e=t.instance;e.on("initSlide",t.onInitSlide),e.state===H.Init?e.on("initSlides",t.onInitSlides):t.onInitSlides(),e.on(["change","Panzoom.afterTransform"],t.onChange),e.on("Panzoom.refresh",t.onRefresh)}detach(){const t=this,e=t.instance;e.off("initSlide",t.onInitSlide),e.off("initSlides",t.onInitSlides),e.off(["change","Panzoom.afterTransform"],t.onChange),e.off("Panzoom.refresh",t.onRefresh),t.cleanup()}};Object.defineProperty(Wt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:jt});const Xt=Object.assign(Object.assign({},jt),{key:"t",showOnStart:!0,parentEl:null}),qt="is-masked",Yt="aria-hidden";class Vt extends ${constructor(){super(...arguments),Object.defineProperty(this,"ref",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"hidden",{enumerable:!0,configurable:!0,writable:!0,value:!1})}get isEnabled(){const t=this.ref;return t&&!t.isDisabled()}get isHidden(){return this.hidden}onClick(t,e){e.stopPropagation()}onCreateSlide(t,e){var i,n,s;const o=(null===(s=null===(n=null===(i=this.instance)||void 0===i?void 0:i.carousel)||void 0===n?void 0:n.slides[e.index])||void 0===s?void 0:s.type)||"",a=e.el;if(a&&o){let t=`for-${o}`;["video","youtube","vimeo","html5video"].includes(o)&&(t+=" for-video"),C(a,t)}}onInit(){var t;const e=this,i=e.instance,n=i.carousel;if(e.ref||!n)return;const s=e.option("parentEl")||i.footer||i.container;if(!s)return;const o=p({},e.options,{parentEl:s,classes:{container:"f-thumbs fancybox__thumbs"},Carousel:{Sync:{friction:i.option("Carousel.friction")||0}},on:{ready:t=>{const i=t.container;i&&this.hidden&&(e.refresh(),i.style.transition="none",e.hide(),i.offsetHeight,queueMicrotask((()=>{i.style.transition="",e.show()})))}}});o.Carousel=o.Carousel||{},o.Carousel.on=p((null===(t=e.options.Carousel)||void 0===t?void 0:t.on)||{},{click:this.onClick,createSlide:this.onCreateSlide}),n.options.Thumbs=o,n.attachPlugins({Thumbs:Wt}),e.ref=n.plugins.Thumbs,e.option("showOnStart")||(e.ref.state=Bt.Hidden,e.hidden=!0)}onResize(){var t;const e=null===(t=this.ref)||void 0===t?void 0:t.container;e&&(e.style.maxHeight="")}onKeydown(t,e){const i=this.option("key");i&&i===e&&this.toggle()}toggle(){const t=this.ref;if(t&&!t.isDisabled())return t.state===Bt.Hidden?(t.state=Bt.Init,void t.build()):void(this.hidden?this.show():this.hide())}show(){const t=this.ref;if(!t||t.isDisabled())return;const e=t.container;e&&(this.refresh(),e.offsetHeight,e.removeAttribute(Yt),e.classList.remove(qt),this.hidden=!1)}hide(){const t=this.ref,e=t&&t.container;e&&(this.refresh(),e.offsetHeight,e.classList.add(qt),e.setAttribute(Yt,"true")),this.hidden=!0}refresh(){const t=this.ref;if(!t||!t.state)return;const e=t.container,i=(null==e?void 0:e.firstChild)||null;e&&i&&i.childNodes.length&&(e.style.maxHeight=`${i.getBoundingClientRect().height}px`)}attach(){const t=this,e=t.instance;e.state===lt.Init?e.on("Carousel.init",t.onInit):t.onInit(),e.on("resize",t.onResize),e.on("keydown",t.onKeydown)}detach(){var t;const e=this,i=e.instance;i.off("Carousel.init",e.onInit),i.off("resize",e.onResize),i.off("keydown",e.onKeydown),null===(t=i.carousel)||void 0===t||t.detachPlugins(["Thumbs"]),e.ref=null}}Object.defineProperty(Vt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Xt});const Zt={panLeft:{icon:'<svg><path d="M5 12h14M5 12l6 6M5 12l6-6"/></svg>',change:{panX:-100}},panRight:{icon:'<svg><path d="M5 12h14M13 18l6-6M13 6l6 6"/></svg>',change:{panX:100}},panUp:{icon:'<svg><path d="M12 5v14M18 11l-6-6M6 11l6-6"/></svg>',change:{panY:-100}},panDown:{icon:'<svg><path d="M12 5v14M18 13l-6 6M6 13l6 6"/></svg>',change:{panY:100}},zoomIn:{icon:'<svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M11 8v6M8 11h6"/></svg>',action:"zoomIn"},zoomOut:{icon:'<svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"zoomOut"},toggle1to1:{icon:'<svg><path d="M3.51 3.07c5.74.02 11.48-.02 17.22.02 1.37.1 2.34 1.64 2.18 3.13 0 4.08.02 8.16 0 12.23-.1 1.54-1.47 2.64-2.79 2.46-5.61-.01-11.24.02-16.86-.01-1.36-.12-2.33-1.65-2.17-3.14 0-4.07-.02-8.16 0-12.23.1-1.36 1.22-2.48 2.42-2.46Z"/><path d="M5.65 8.54h1.49v6.92m8.94-6.92h1.49v6.92M11.5 9.4v.02m0 5.18v0"/></svg>',action:"toggleZoom"},toggleZoom:{icon:'<svg><g><line x1="11" y1="8" x2="11" y2="14"></line></g><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"toggleZoom"},iterateZoom:{icon:'<svg><g><line x1="11" y1="8" x2="11" y2="14"></line></g><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"iterateZoom"},rotateCCW:{icon:'<svg><path d="M15 4.55a8 8 0 0 0-6 14.9M9 15v5H4M18.37 7.16v.01M13 19.94v.01M16.84 18.37v.01M19.37 15.1v.01M19.94 11v.01"/></svg>',action:"rotateCCW"},rotateCW:{icon:'<svg><path d="M9 4.55a8 8 0 0 1 6 14.9M15 15v5h5M5.63 7.16v.01M4.06 11v.01M4.63 15.1v.01M7.16 18.37v.01M11 19.94v.01"/></svg>',action:"rotateCW"},flipX:{icon:'<svg style="stroke-width: 1.3"><path d="M12 3v18M16 7v10h5L16 7M8 7v10H3L8 7"/></svg>',action:"flipX"},flipY:{icon:'<svg style="stroke-width: 1.3"><path d="M3 12h18M7 16h10L7 21v-5M7 8h10L7 3v5"/></svg>',action:"flipY"},fitX:{icon:'<svg><path d="M4 12V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v6M10 18H3M21 18h-7M6 15l-3 3 3 3M18 15l3 3-3 3"/></svg>',action:"fitX"},fitY:{icon:'<svg><path d="M12 20H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h6M18 14v7M18 3v7M15 18l3 3 3-3M15 6l3-3 3 3"/></svg>',action:"fitY"},reset:{icon:'<svg><path d="M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"/></svg>',action:"reset"},toggleFS:{icon:'<svg><g><path d="M14.5 9.5 21 3m0 0h-6m6 0v6M3 21l6.5-6.5M3 21v-6m0 6h6"/></g><g><path d="m14 10 7-7m-7 7h6m-6 0V4M3 21l7-7m0 0v6m0-6H4"/></g></svg>',action:"toggleFS"}};var Ut;!function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Disabled=2]="Disabled"}(Ut||(Ut={}));const Gt={absolute:"auto",display:{left:["infobar"],middle:[],right:["iterateZoom","slideshow","fullscreen","thumbs","close"]},enabled:"auto",items:{infobar:{tpl:'<div class="fancybox__infobar" tabindex="-1"><span data-fancybox-current-index></span>/<span data-fancybox-count></span></div>'},download:{tpl:'<a class="f-button" title="{{DOWNLOAD}}" data-fancybox-download href="javasript:;"><svg><path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5 5-5M12 4v12"/></svg></a>'},prev:{tpl:'<button class="f-button" title="{{PREV}}" data-fancybox-prev><svg><path d="m15 6-6 6 6 6"/></svg></button>'},next:{tpl:'<button class="f-button" title="{{NEXT}}" data-fancybox-next><svg><path d="m9 6 6 6-6 6"/></svg></button>'},slideshow:{tpl:'<button class="f-button" title="{{TOGGLE_SLIDESHOW}}" data-fancybox-toggle-slideshow><svg><g><path d="M8 4v16l13 -8z"></path></g><g><path d="M8 4v15M17 4v15"/></g></svg></button>'},fullscreen:{tpl:'<button class="f-button" title="{{TOGGLE_FULLSCREEN}}" data-fancybox-toggle-fullscreen><svg><g><path d="M4 8V6a2 2 0 0 1 2-2h2M4 16v2a2 2 0 0 0 2 2h2M16 4h2a2 2 0 0 1 2 2v2M16 20h2a2 2 0 0 0 2-2v-2"/></g><g><path d="M15 19v-2a2 2 0 0 1 2-2h2M15 5v2a2 2 0 0 0 2 2h2M5 15h2a2 2 0 0 1 2 2v2M5 9h2a2 2 0 0 0 2-2V5"/></g></svg></button>'},thumbs:{tpl:'<button class="f-button" title="{{TOGGLE_THUMBS}}" data-fancybox-toggle-thumbs><svg><circle cx="5.5" cy="5.5" r="1"/><circle cx="12" cy="5.5" r="1"/><circle cx="18.5" cy="5.5" r="1"/><circle cx="5.5" cy="12" r="1"/><circle cx="12" cy="12" r="1"/><circle cx="18.5" cy="12" r="1"/><circle cx="5.5" cy="18.5" r="1"/><circle cx="12" cy="18.5" r="1"/><circle cx="18.5" cy="18.5" r="1"/></svg></button>'},close:{tpl:'<button class="f-button" title="{{CLOSE}}" data-fancybox-close><svg><path d="m19.5 4.5-15 15M4.5 4.5l15 15"/></svg></button>'}},parentEl:null},Kt={tabindex:"-1",width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Jt="has-toolbar",Qt="fancybox__toolbar";class te extends ${constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:Ut.Init}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null})}onReady(t){var e;if(!t.carousel)return;let i=this.option("display"),n=this.option("absolute"),s=this.option("enabled");if("auto"===s){const t=this.instance.carousel;let e=0;if(t)for(const i of t.slides)(i.panzoom||"image"===i.type)&&e++;e||(s=!1)}s||(i=void 0);let o=0;const a={left:[],middle:[],right:[]};if(i)for(const t of["left","middle","right"])for(const n of i[t]){const i=this.createEl(n);i&&(null===(e=a[t])||void 0===e||e.push(i),o++)}let r=null;if(o&&(r=this.createContainer()),r){for(const[t,e]of Object.entries(a)){const i=document.createElement("div");C(i,Qt+"__column is-"+t);for(const t of e)i.appendChild(t);"auto"!==n||"middle"!==t||e.length||(n=!0),r.appendChild(i)}!0===n&&C(r,"is-absolute"),this.state=Ut.Ready,this.onRefresh()}else this.state=Ut.Disabled}onClick(t){var e,i;const n=this.instance,s=n.getSlide(),o=null==s?void 0:s.panzoom,a=t.target,r=a&&S(a)?a.dataset:null;if(!r)return;if(void 0!==r.fancyboxToggleThumbs)return t.preventDefault(),t.stopPropagation(),void(null===(e=n.plugins.Thumbs)||void 0===e||e.toggle());if(void 0!==r.fancyboxToggleFullscreen)return t.preventDefault(),t.stopPropagation(),void this.instance.toggleFullscreen();if(void 0!==r.fancyboxToggleSlideshow){t.preventDefault(),t.stopPropagation();const e=null===(i=n.carousel)||void 0===i?void 0:i.plugins.Autoplay;let s=e.isActive;return o&&"mousemove"===o.panMode&&!s&&o.reset(),void(s?e.stop():e.start())}const l=r.panzoomAction,c=r.panzoomChange;if((c||l)&&(t.preventDefault(),t.stopPropagation()),c){let t={};try{t=JSON.parse(c)}catch(t){}o&&o.applyChange(t)}else l&&o&&o[l]&&o[l]()}onChange(){this.onRefresh()}onRefresh(){if(this.instance.isClosing())return;const t=this.container;if(!t)return;const e=this.instance.getSlide();if(!e||e.state!==ct.Ready)return;const i=e&&!e.error&&e.panzoom;for(const e of t.querySelectorAll("[data-panzoom-action]"))i?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"));let n=i&&i.canZoomIn(),s=i&&i.canZoomOut();for(const e of t.querySelectorAll('[data-panzoom-action="zoomIn"]'))n?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"));for(const e of t.querySelectorAll('[data-panzoom-action="zoomOut"]'))s?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"));for(const e of t.querySelectorAll('[data-panzoom-action="toggleZoom"],[data-panzoom-action="iterateZoom"]')){s||n?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"));const t=e.querySelector("g");t&&(t.style.display=n?"":"none")}}onDone(t,e){var i;null===(i=e.panzoom)||void 0===i||i.on("afterTransform",(()=>{this.instance.isCurrentSlide(e)&&this.onRefresh()})),this.instance.isCurrentSlide(e)&&this.onRefresh()}createContainer(){const t=this.instance.container;if(!t)return null;const e=this.option("parentEl")||t;let i=e.querySelector("."+Qt);return i||(i=document.createElement("div"),C(i,Qt),e.prepend(i)),i.addEventListener("click",this.onClick,{passive:!1,capture:!0}),t&&C(t,Jt),this.container=i,i}createEl(t){const e=this.instance,i=e.carousel;if(!i)return null;if("toggleFS"===t)return null;if("fullscreen"===t&&!at())return null;let n=null;const o=i.slides.length||0;let a=0,r=0;for(const t of i.slides)(t.panzoom||"image"===t.type)&&a++,("image"===t.type||t.downloadSrc)&&r++;if(o<2&&["infobar","prev","next"].includes(t))return n;if(void 0!==Zt[t]&&!a)return null;if("download"===t&&!r)return null;if("thumbs"===t){const t=e.plugins.Thumbs;if(!t||!t.isEnabled)return null}if("slideshow"===t){if(!i.plugins.Autoplay||o<2)return null}if(void 0!==Zt[t]){const e=Zt[t];n=document.createElement("button"),n.setAttribute("title",this.instance.localize(`{{${t.toUpperCase()}}}`)),C(n,"f-button"),e.action&&(n.dataset.panzoomAction=e.action),e.change&&(n.dataset.panzoomChange=JSON.stringify(e.change)),n.appendChild(s(this.instance.localize(e.icon)))}else{const e=(this.option("items")||[])[t];e&&(n=s(this.instance.localize(e.tpl)),"function"==typeof e.click&&n.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation(),"function"==typeof e.click&&e.click.call(this,this,t)})))}const l=null==n?void 0:n.querySelector("svg");if(l)for(const[t,e]of Object.entries(Kt))l.getAttribute(t)||l.setAttribute(t,String(e));return n}removeContainer(){const t=this.container;t&&t.remove(),this.container=null,this.state=Ut.Disabled;const e=this.instance.container;e&&P(e,Jt)}attach(){const t=this,e=t.instance;e.on("Carousel.initSlides",t.onReady),e.on("done",t.onDone),e.on(["reveal","Carousel.change"],t.onChange),t.onReady(t.instance)}detach(){const t=this,e=t.instance;e.off("Carousel.initSlides",t.onReady),e.off("done",t.onDone),e.off(["reveal","Carousel.change"],t.onChange),t.removeContainer()}}Object.defineProperty(te,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Gt});const ee={Hash:class extends ${onReady(){dt=!1}onChange(t){pt&&clearTimeout(pt);const{hash:e}=ft(),{hash:i}=gt(),n=t.isOpeningSlide(t.getSlide());n&&(ht=i===e?"":i),e&&e!==i&&(pt=setTimeout((()=>{try{if(t.state===lt.Ready){let t="replaceState";n&&!ut&&(t="pushState",ut=!0),window.history[t]({},document.title,window.location.pathname+window.location.search+e)}}catch(t){}}),300))}onClose(t){if(pt&&clearTimeout(pt),!dt&&ut)return ut=!1,dt=!1,void window.history.back();if(!dt)try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+(ht||""))}catch(t){}}attach(){const t=this.instance;t.on("ready",this.onReady),t.on(["Carousel.ready","Carousel.change"],this.onChange),t.on("close",this.onClose)}detach(){const t=this.instance;t.off("ready",this.onReady),t.off(["Carousel.ready","Carousel.change"],this.onChange),t.off("close",this.onClose)}static parseURL(){return gt()}static startFromUrl(){mt()}static destroy(){window.removeEventListener("hashchange",bt,!1)}},Html:zt,Images:xt,Slideshow:Ft,Thumbs:Vt,Toolbar:te},ie="with-fancybox",ne="hide-scrollbar",se="--fancybox-scrollbar-compensate",oe="--fancybox-body-margin",ae="aria-hidden",re="is-using-tab",le="is-animated",ce="is-compact",he="is-loading",de="is-opening",ue="has-caption",pe="disabled",fe="tabindex",ge="download",me="href",ve="src",be=t=>"string"==typeof t,ye=function(){var t=window.getSelection();return!!t&&"Range"===t.type};let we,xe=null,Ee=null,Se=0,Pe=0,Ce=0,Te=0;const Me=new Map;let Oe=0;class Ae extends m{get isIdle(){return this.idle}get isCompact(){return this.option("compact")}constructor(t=[],e={},i={}){super(e),Object.defineProperty(this,"userSlides",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"idle",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"idleTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"clickTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"pwt",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"ignoreFocusChange",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"startedFs",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:lt.Init}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"footer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"carousel",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"lastFocus",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"prevMouseMoveEvent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),we||(we=at()),this.id=e.id||++Oe,Me.set(this.id,this),this.userSlides=t,this.userPlugins=i,queueMicrotask((()=>{this.init()}))}init(){if(this.state===lt.Destroy)return;this.state=lt.Init,this.attachPlugins(Object.assign(Object.assign({},Ae.Plugins),this.userPlugins)),this.emit("init"),this.emit("attachPlugins"),!0===this.option("hideScrollbar")&&(()=>{if(!it)return;const t=document,e=t.body,i=t.documentElement;if(e.classList.contains(ne))return;let n=window.innerWidth-i.getBoundingClientRect().width;const s=parseFloat(window.getComputedStyle(e).marginRight);n<0&&(n=0),i.style.setProperty(se,`${n}px`),s&&e.style.setProperty(oe,`${s}px`),e.classList.add(ne)})(),this.initLayout(),this.scale();const t=()=>{this.initCarousel(this.userSlides),this.state=lt.Ready,this.attachEvents(),this.emit("ready"),setTimeout((()=>{this.container&&this.container.setAttribute(ae,"false")}),16)};this.option("Fullscreen.autoStart")&&we&&!we.isFullscreen()?we.request().then((()=>{this.startedFs=!0,t()})).catch((()=>t())):t()}initLayout(){var t,e;const i=this.option("parentEl")||document.body,n=s(this.localize(this.option("tpl.main")||""));if(n){if(n.setAttribute("id",`fancybox-${this.id}`),n.setAttribute("aria-label",this.localize("{{MODAL}}")),n.classList.toggle(ce,this.isCompact),C(n,this.option("mainClass")||""),C(n,de),this.container=n,this.footer=n.querySelector(".fancybox__footer"),i.appendChild(n),C(document.documentElement,ie),xe&&Ee||(xe=document.createElement("span"),C(xe,"fancybox-focus-guard"),xe.setAttribute(fe,"0"),xe.setAttribute(ae,"true"),xe.setAttribute("aria-label","Focus guard"),Ee=xe.cloneNode(),null===(t=n.parentElement)||void 0===t||t.insertBefore(xe,n),null===(e=n.parentElement)||void 0===e||e.append(Ee)),n.addEventListener("mousedown",(t=>{Se=t.pageX,Pe=t.pageY,P(n,re)})),this.option("closeExisting"))for(const t of Me.values())t.id!==this.id&&t.close();else this.option("animated")&&(C(n,le),setTimeout((()=>{this.isClosing()||P(n,le)}),350));this.emit("initLayout")}}initCarousel(t){const e=this.container;if(!e)return;const n=e.querySelector(".fancybox__carousel");if(!n)return;const s=this.carousel=new tt(n,p({},{slides:t,transition:"fade",Panzoom:{lockAxis:this.option("dragToClose")?"xy":"x",infinite:!!this.option("dragToClose")&&"y"},Dots:!1,Navigation:{classes:{container:"fancybox__nav",button:"f-button",isNext:"is-next",isPrev:"is-prev"}},initialPage:this.option("startIndex"),l10n:this.option("l10n")},this.option("Carousel")||{}));s.on("*",((t,e,...i)=>{this.emit(`Carousel.${e}`,t,...i)})),s.on(["ready","change"],(()=>{this.manageCaption()})),this.on("Carousel.removeSlide",((t,e,i)=>{this.clearContent(i),i.state=void 0})),s.on("Panzoom.touchStart",(()=>{var t,e;this.isCompact||this.endIdle(),(null===(t=document.activeElement)||void 0===t?void 0:t.closest(".f-thumbs"))&&(null===(e=this.container)||void 0===e||e.focus())})),s.on("settle",(()=>{this.idleTimer||this.isCompact||!this.option("idle")||this.setIdle(),this.option("autoFocus")&&!this.isClosing&&this.checkFocus()})),this.option("dragToClose")&&(s.on("Panzoom.afterTransform",((t,e)=>{const n=this.getSlide();if(n&&i(n.el))return;const s=this.container;if(s){const t=Math.abs(e.current.f),i=t<1?"":Math.max(.5,Math.min(1,1-t/e.contentRect.fitHeight*1.5));s.style.setProperty("--fancybox-ts",i?"0s":""),s.style.setProperty("--fancybox-opacity",i+"")}})),s.on("Panzoom.touchEnd",((t,e,n)=>{var s;const o=this.getSlide();if(o&&i(o.el))return;if(e.isMobile&&document.activeElement&&-1!==["TEXTAREA","INPUT"].indexOf(null===(s=document.activeElement)||void 0===s?void 0:s.nodeName))return;const a=Math.abs(e.dragOffset.y);"y"===e.lockedAxis&&(a>=200||a>=50&&e.dragOffset.time<300)&&(n&&n.cancelable&&n.preventDefault(),this.close(n,"f-throwOut"+(e.current.f<0?"Up":"Down")))}))),s.on("change",(t=>{var e;let i=null===(e=this.getSlide())||void 0===e?void 0:e.triggerEl;if(i){const e=new CustomEvent("slideTo",{bubbles:!0,cancelable:!0,detail:t.page});i.dispatchEvent(e)}})),s.on(["refresh","change"],(t=>{const e=this.container;if(!e)return;for(const i of e.querySelectorAll("[data-fancybox-current-index]"))i.innerHTML=t.page+1;for(const i of e.querySelectorAll("[data-fancybox-count]"))i.innerHTML=t.pages.length;if(!t.isInfinite){for(const i of e.querySelectorAll("[data-fancybox-next]"))t.page<t.pages.length-1?(i.removeAttribute(pe),i.removeAttribute(fe)):(i.setAttribute(pe,""),i.setAttribute(fe,"-1"));for(const i of e.querySelectorAll("[data-fancybox-prev]"))t.page>0?(i.removeAttribute(pe),i.removeAttribute(fe)):(i.setAttribute(pe,""),i.setAttribute(fe,"-1"))}const i=this.getSlide();if(!i)return;let n=i.downloadSrc||"";n||"image"!==i.type||i.error||!be(i[ve])||(n=i[ve]);for(const t of e.querySelectorAll("[data-fancybox-download]")){const e=i.downloadFilename;n?(t.removeAttribute(pe),t.removeAttribute(fe),t.setAttribute(me,n),t.setAttribute(ge,e||n),t.setAttribute("target","_blank")):(t.setAttribute(pe,""),t.setAttribute(fe,"-1"),t.removeAttribute(me),t.removeAttribute(ge))}})),this.emit("initCarousel")}attachEvents(){const t=this,e=t.container;if(!e)return;e.addEventListener("click",t.onClick,{passive:!1,capture:!1}),e.addEventListener("wheel",t.onWheel,{passive:!1,capture:!1}),document.addEventListener("keydown",t.onKeydown,{passive:!1,capture:!0}),document.addEventListener("visibilitychange",t.onVisibilityChange,!1),document.addEventListener("mousemove",t.onMousemove),t.option("trapFocus")&&document.addEventListener("focus",t.onFocus,!0),window.addEventListener("resize",t.onResize);const i=window.visualViewport;i&&(i.addEventListener("scroll",t.onResize),i.addEventListener("resize",t.onResize))}detachEvents(){const t=this,e=t.container;if(!e)return;document.removeEventListener("keydown",t.onKeydown,{passive:!1,capture:!0}),e.removeEventListener("wheel",t.onWheel,{passive:!1,capture:!1}),e.removeEventListener("click",t.onClick,{passive:!1,capture:!1}),document.removeEventListener("mousemove",t.onMousemove),window.removeEventListener("resize",t.onResize);const i=window.visualViewport;i&&(i.removeEventListener("resize",t.onResize),i.removeEventListener("scroll",t.onResize)),document.removeEventListener("visibilitychange",t.onVisibilityChange,!1),document.removeEventListener("focus",t.onFocus,!0)}scale(){const t=this.container;if(!t)return;const e=window.visualViewport,i=Math.max(1,(null==e?void 0:e.scale)||1);let n="",s="",o="";if(e&&i>1){let t=`${e.offsetLeft}px`,a=`${e.offsetTop}px`;n=e.width*i+"px",s=e.height*i+"px",o=`translate3d(${t}, ${a}, 0) scale(${1/i})`}t.style.transform=o,t.style.width=n,t.style.height=s}onClick(t){var e;const{container:i,isCompact:n}=this;if(!i||this.isClosing())return;!n&&this.option("idle")&&this.resetIdle();const s=t.composedPath()[0];if(s.closest(".fancybox-spinner")||s.closest("[data-fancybox-close]"))return t.preventDefault(),void this.close(t);if(s.closest("[data-fancybox-prev]"))return t.preventDefault(),void this.prev();if(s.closest("[data-fancybox-next]"))return t.preventDefault(),void this.next();if("click"===t.type&&0===t.detail)return;if(Math.abs(t.pageX-Se)>30||Math.abs(t.pageY-Pe)>30)return;const o=document.activeElement;if(ye()&&o&&i.contains(o))return;if(n&&"image"===(null===(e=this.getSlide())||void 0===e?void 0:e.type))return void(this.clickTimer?(clearTimeout(this.clickTimer),this.clickTimer=null):this.clickTimer=setTimeout((()=>{this.toggleIdle(),this.clickTimer=null}),350));if(this.emit("click",t),t.defaultPrevented)return;let a=!1;if(s.closest(".fancybox__content")){if(o){if(o.closest("[contenteditable]"))return;s.matches(st)||o.blur()}if(ye())return;a=this.option("contentClick")}else s.closest(".fancybox__carousel")&&!s.matches(st)&&(a=this.option("backdropClick"));"close"===a?(t.preventDefault(),this.close(t)):"next"===a?(t.preventDefault(),this.next()):"prev"===a&&(t.preventDefault(),this.prev())}onWheel(t){const e=t.target;let i=this.option("wheel",t);e.closest(".fancybox__thumbs")&&(i="slide");const s="slide"===i,o=[-t.deltaX||0,-t.deltaY||0,-t.detail||0].reduce((function(t,e){return Math.abs(e)>Math.abs(t)?e:t})),a=Math.max(-1,Math.min(1,o)),r=Date.now();this.pwt&&r-this.pwt<300?s&&t.preventDefault():(this.pwt=r,this.emit("wheel",t,a),t.defaultPrevented||("close"===i?(t.preventDefault(),this.close(t)):"slide"===i&&(n(e)||(t.preventDefault(),this[a>0?"prev":"next"]()))))}onScroll(){window.scrollTo(Ce,Te)}onKeydown(t){if(!this.isTopmost())return;this.isCompact||!this.option("idle")||this.isClosing()||this.resetIdle();const e=t.key,i=this.option("keyboard");if(!i)return;const n=t.composedPath()[0],s=document.activeElement&&document.activeElement.classList,o=s&&s.contains("f-button")||n.dataset.carouselPage||n.dataset.carouselIndex;if("Escape"!==e&&!o&&S(n)){if(n.isContentEditable||-1!==["TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].indexOf(n.nodeName))return}if("Tab"===t.key?C(this.container,re):P(this.container,re),t.ctrlKey||t.altKey||t.shiftKey)return;this.emit("keydown",e,t);const a=i[e];a&&"function"==typeof this[a]&&(t.preventDefault(),this[a]())}onResize(){const t=this.container;if(!t)return;const e=this.isCompact;t.classList.toggle(ce,e),this.manageCaption(this.getSlide()),this.isCompact?this.clearIdle():this.endIdle(),this.scale(),this.emit("resize")}onFocus(t){this.isTopmost()&&this.checkFocus(t)}onMousemove(t){this.prevMouseMoveEvent=t,!this.isCompact&&this.option("idle")&&this.resetIdle()}onVisibilityChange(){"visible"===document.visibilityState?this.checkFocus():this.endIdle()}manageCloseBtn(t){const e=this.optionFor(t,"closeButton")||!1;if("auto"===e){const t=this.plugins.Toolbar;if(t&&t.state===Ut.Ready)return}if(!e)return;if(!t.contentEl||t.closeBtnEl)return;const i=this.option("tpl.closeButton");if(i){const e=s(this.localize(i));t.closeBtnEl=t.contentEl.appendChild(e),t.el&&C(t.el,"has-close-btn")}}manageCaption(t=void 0){var e,i;const n="fancybox__caption",s=this.container;if(!s)return;P(s,ue);const o=this.isCompact||this.option("commonCaption"),a=!o;if(this.caption&&this.stop(this.caption),a&&this.caption&&(this.caption.remove(),this.caption=null),o&&!this.caption)for(const t of(null===(e=this.carousel)||void 0===e?void 0:e.slides)||[])t.captionEl&&(t.captionEl.remove(),t.captionEl=void 0,P(t.el,ue),null===(i=t.el)||void 0===i||i.removeAttribute("aria-labelledby"));if(t||(t=this.getSlide()),!t||o&&!this.isCurrentSlide(t))return;const r=t.el;let l=this.optionFor(t,"caption","");if(!l)return void(o&&this.caption&&this.animate(this.caption,"f-fadeOut",(()=>{this.caption&&(this.caption.innerHTML="")})));let c=null;if(a){if(c=t.captionEl||null,r&&!c){const e=n+`_${this.id}_${t.index}`;c=document.createElement("div"),C(c,n),c.setAttribute("id",e),t.captionEl=r.appendChild(c),C(r,ue),r.setAttribute("aria-labelledby",e)}}else{if(c=this.caption,c||(c=s.querySelector("."+n)),!c){c=document.createElement("div"),c.dataset.fancyboxCaption="",C(c,n);(this.footer||s).prepend(c)}C(s,ue),this.caption=c}c&&(c.innerHTML="",be(l)||"number"==typeof l?c.innerHTML=l+"":l instanceof HTMLElement&&c.appendChild(l))}checkFocus(t){this.focus(t)}focus(t){var e;if(this.ignoreFocusChange)return;const i=document.activeElement||null,n=(null==t?void 0:t.target)||null,s=this.container,o=null===(e=this.carousel)||void 0===e?void 0:e.viewport;if(!s||!o)return;if(!t&&i&&s.contains(i))return;const a=this.getSlide(),r=a&&a.state===ct.Ready?a.el:null;if(!r||r.contains(i)||s===i)return;t&&t.cancelable&&t.preventDefault(),this.ignoreFocusChange=!0;const l=Array.from(s.querySelectorAll(st));let c=[],h=null;for(let t of l){const e=!t.offsetParent||!!t.closest('[aria-hidden="true"]'),i=r&&r.contains(t),n=!o.contains(t);if(t===s||(i||n)&&!e){c.push(t);const e=t.dataset.origTabindex;void 0!==e&&e&&(t.tabIndex=parseFloat(e)),t.removeAttribute("data-orig-tabindex"),!t.hasAttribute("autoFocus")&&h||(h=t)}else{const e=void 0===t.dataset.origTabindex?t.getAttribute("tabindex")||"":t.dataset.origTabindex;e&&(t.dataset.origTabindex=e),t.tabIndex=-1}}let d=null;t?(!n||c.indexOf(n)<0)&&(d=h||s,c.length&&(i===Ee?d=c[0]:this.lastFocus!==s&&i!==xe||(d=c[c.length-1]))):d=a&&"image"===a.type?s:h||s,d&&ot(d),this.lastFocus=document.activeElement,this.ignoreFocusChange=!1}next(){const t=this.carousel;t&&t.pages.length>1&&t.slideNext()}prev(){const t=this.carousel;t&&t.pages.length>1&&t.slidePrev()}jumpTo(...t){this.carousel&&this.carousel.slideTo(...t)}isTopmost(){var t;return(null===(t=Ae.getInstance())||void 0===t?void 0:t.id)==this.id}animate(t=null,e="",i){if(!t||!e)return void(i&&i());this.stop(t);const n=s=>{s.target===t&&t.dataset.animationName&&(t.removeEventListener("animationend",n),delete t.dataset.animationName,i&&i(),P(t,e))};t.dataset.animationName=e,t.addEventListener("animationend",n),C(t,e)}stop(t){t&&t.dispatchEvent(new CustomEvent("animationend",{bubbles:!1,cancelable:!0,currentTarget:t}))}setContent(t,e="",i=!0){if(this.isClosing())return;const n=t.el;if(!n)return;let o=null;if(S(e)?o=e:(o=s(e+""),S(o)||(o=document.createElement("div"),o.innerHTML=e+"")),["img","picture","iframe","video","audio"].includes(o.nodeName.toLowerCase())){const t=document.createElement("div");t.appendChild(o),o=t}S(o)&&t.filter&&!t.error&&(o=o.querySelector(t.filter)),o&&S(o)?(C(o,"fancybox__content"),t.id&&o.setAttribute("id",t.id),n.classList.add(`has-${t.error?"error":t.type||"unknown"}`),n.prepend(o),"none"===o.style.display&&(o.style.display=""),"none"===getComputedStyle(o).getPropertyValue("display")&&(o.style.display=t.display||this.option("defaultDisplay")||"flex"),t.contentEl=o,i&&this.revealContent(t),this.manageCloseBtn(t),this.manageCaption(t)):this.setError(t,"{{ELEMENT_NOT_FOUND}}")}revealContent(t,e){const i=t.el,n=t.contentEl;i&&n&&(this.emit("reveal",t),this.hideLoading(t),t.state=ct.Opening,(e=this.isOpeningSlide(t)?void 0===e?this.optionFor(t,"showClass"):e:"f-fadeIn")?this.animate(n,e,(()=>{this.done(t)})):this.done(t))}done(t){this.isClosing()||(t.state=ct.Ready,this.emit("done",t),C(t.el,"is-done"),this.isCurrentSlide(t)&&this.option("autoFocus")&&queueMicrotask((()=>{var e;null===(e=t.panzoom)||void 0===e||e.updateControls(),this.option("autoFocus")&&this.focus()})),this.isOpeningSlide(t)&&(P(this.container,de),!this.isCompact&&this.option("idle")&&this.setIdle()))}isCurrentSlide(t){const e=this.getSlide();return!(!t||!e)&&e.index===t.index}isOpeningSlide(t){var e,i;return null===(null===(e=this.carousel)||void 0===e?void 0:e.prevPage)&&t&&t.index===(null===(i=this.getSlide())||void 0===i?void 0:i.index)}showLoading(t){t.state=ct.Loading;const e=t.el;if(!e)return;C(e,he),this.emit("loading",t),t.spinnerEl||setTimeout((()=>{if(!this.isClosing()&&!t.spinnerEl&&t.state===ct.Loading){let i=s(E);C(i,"fancybox-spinner"),t.spinnerEl=i,e.prepend(i),this.animate(i,"f-fadeIn")}}),250)}hideLoading(t){const e=t.el;if(!e)return;const i=t.spinnerEl;this.isClosing()?null==i||i.remove():(P(e,he),i&&this.animate(i,"f-fadeOut",(()=>{i.remove()})),t.state===ct.Loading&&(this.emit("loaded",t),t.state=ct.Ready))}setError(t,e){if(this.isClosing())return;const i=new Event("error",{bubbles:!0,cancelable:!0});if(this.emit("error",i,t),i.defaultPrevented)return;t.error=e,this.hideLoading(t),this.clearContent(t);const n=document.createElement("div");n.classList.add("fancybox-error"),n.innerHTML=this.localize(e||"<p>{{ERROR}}</p>"),this.setContent(t,n)}clearContent(t){if(void 0===t.state)return;this.emit("clearContent",t),t.contentEl&&(t.contentEl.remove(),t.contentEl=void 0);const e=t.el;e&&(P(e,"has-error"),P(e,"has-unknown"),P(e,`has-${t.type||"unknown"}`)),t.closeBtnEl&&t.closeBtnEl.remove(),t.closeBtnEl=void 0,t.captionEl&&t.captionEl.remove(),t.captionEl=void 0,t.spinnerEl&&t.spinnerEl.remove(),t.spinnerEl=void 0}getSlide(){var t;const e=this.carousel;return(null===(t=null==e?void 0:e.pages[null==e?void 0:e.page])||void 0===t?void 0:t.slides[0])||void 0}close(t,e){if(this.isClosing())return;const i=new Event("shouldClose",{bubbles:!0,cancelable:!0});if(this.emit("shouldClose",i,t),i.defaultPrevented)return;t&&t.cancelable&&(t.preventDefault(),t.stopPropagation());const n=()=>{this.proceedClose(t,e)};this.startedFs&&we&&we.isFullscreen()?Promise.resolve(we.exit()).then((()=>n())):n()}clearIdle(){this.idleTimer&&clearTimeout(this.idleTimer),this.idleTimer=null}setIdle(t=!1){const e=()=>{this.clearIdle(),this.idle=!0,C(this.container,"is-idle"),this.emit("setIdle")};if(this.clearIdle(),!this.isClosing())if(t)e();else{const t=this.option("idle");t&&(this.idleTimer=setTimeout(e,t))}}endIdle(){this.clearIdle(),this.idle&&!this.isClosing()&&(this.idle=!1,P(this.container,"is-idle"),this.emit("endIdle"))}resetIdle(){this.endIdle(),this.setIdle()}toggleIdle(){this.idle?this.endIdle():this.setIdle(!0)}toggleFullscreen(){we&&(we.isFullscreen()?we.exit():we.request().then((()=>{this.startedFs=!0})))}isClosing(){return[lt.Closing,lt.CustomClosing,lt.Destroy].includes(this.state)}proceedClose(t,e){var i,n;this.state=lt.Closing,this.clearIdle(),this.detachEvents();const s=this.container,o=this.carousel,a=this.getSlide(),r=a&&this.option("placeFocusBack")?a.triggerEl||this.option("triggerEl"):null;if(r&&(et(r)?ot(r):r.focus()),s&&(P(s,de),C(s,"is-closing"),s.setAttribute(ae,"true"),this.option("animated")&&C(s,le),s.style.pointerEvents="none"),o){o.clearTransitions(),null===(i=o.panzoom)||void 0===i||i.destroy(),null===(n=o.plugins.Navigation)||void 0===n||n.detach();for(const t of o.slides){t.state=ct.Closing,this.hideLoading(t);const e=t.contentEl;e&&this.stop(e);const i=null==t?void 0:t.panzoom;i&&(i.stop(),i.detachEvents(),i.detachObserver()),this.isCurrentSlide(t)||o.emit("removeSlide",t)}}Ce=window.scrollX,Te=window.scrollY,window.addEventListener("scroll",this.onScroll),this.emit("close",t),this.state!==lt.CustomClosing?(void 0===e&&a&&(e=this.optionFor(a,"hideClass")),e&&a?(this.animate(a.contentEl,e,(()=>{o&&o.emit("removeSlide",a)})),setTimeout((()=>{this.destroy()}),500)):this.destroy()):setTimeout((()=>{this.destroy()}),500)}destroy(){var t;if(this.state===lt.Destroy)return;window.removeEventListener("scroll",this.onScroll),this.state=lt.Destroy,null===(t=this.carousel)||void 0===t||t.destroy();const e=this.container;e&&e.remove(),Me.delete(this.id);const i=Ae.getInstance();i?i.focus():(xe&&(xe.remove(),xe=null),Ee&&(Ee.remove(),Ee=null),P(document.documentElement,ie),(()=>{if(!it)return;const t=document,e=t.body;e.classList.remove(ne),e.style.setProperty(oe,""),t.documentElement.style.setProperty(se,"")})(),this.emit("destroy"))}static bind(t,e,i){if(!it)return;let n,s="",o={};if(void 0===t?n=document.body:be(t)?(n=document.body,s=t,"object"==typeof e&&(o=e||{})):(n=t,be(e)&&(s=e),"object"==typeof i&&(o=i||{})),!n||!S(n))return;s=s||"[data-fancybox]";const a=Ae.openers.get(n)||new Map;a.set(s,o),Ae.openers.set(n,a),1===a.size&&n.addEventListener("click",Ae.fromEvent)}static unbind(t,e){let i,n="";if(be(t)?(i=document.body,n=t):(i=t,be(e)&&(n=e)),!i)return;const s=Ae.openers.get(i);s&&n&&s.delete(n),n&&s||(Ae.openers.delete(i),i.removeEventListener("click",Ae.fromEvent))}static destroy(){let t;for(;t=Ae.getInstance();)t.destroy();for(const t of Ae.openers.keys())t.removeEventListener("click",Ae.fromEvent);Ae.openers=new Map}static fromEvent(t){if(t.defaultPrevented)return;if(t.button&&0!==t.button)return;if(t.ctrlKey||t.metaKey||t.shiftKey)return;let e=t.composedPath()[0];const i=e.closest("[data-fancybox-trigger]");if(i){const t=i.dataset.fancyboxTrigger||"",n=document.querySelectorAll(`[data-fancybox="${t}"]`),s=parseInt(i.dataset.fancyboxIndex||"",10)||0;e=n[s]||e}if(!(e&&e instanceof Element))return;let n,s,o,a;if([...Ae.openers].reverse().find((([t,i])=>!(!t.contains(e)||![...i].reverse().find((([i,r])=>{let l=e.closest(i);return!!l&&(n=t,s=i,o=l,a=r,!0)}))))),!n||!s||!o)return;a=a||{},t.preventDefault(),e=o;let r=[],l=p({},rt,a);l.event=t,l.triggerEl=e,l.delegate=i;const c=l.groupAll,h=l.groupAttr,d=h&&e?e.getAttribute(`${h}`):"";if((!e||d||c)&&(r=[].slice.call(n.querySelectorAll(s))),e&&!c&&(r=d?r.filter((t=>t.getAttribute(`${h}`)===d)):[e]),!r.length)return;const u=Ae.getInstance();return u&&u.options.triggerEl&&r.indexOf(u.options.triggerEl)>-1?void 0:(e&&(l.startIndex=r.indexOf(e)),Ae.fromNodes(r,l))}static fromSelector(t,e,i){let n=null,s="",o={};if(be(t)?(n=document.body,s=t,"object"==typeof e&&(o=e||{})):t instanceof HTMLElement&&be(e)&&(n=t,s=e,"object"==typeof i&&(o=i||{})),!n||!s)return!1;const a=Ae.openers.get(n);return!!a&&(o=p({},a.get(s)||{},o),!!o&&Ae.fromNodes(Array.from(n.querySelectorAll(s)),o))}static fromNodes(t,e){e=p({},rt,e||{});const i=[];for(const n of t){const t=n.dataset||{},s=t[ve]||n.getAttribute(me)||n.getAttribute("currentSrc")||n.getAttribute(ve)||void 0;let o;const a=e.delegate;let r;a&&i.length===e.startIndex&&(o=a instanceof HTMLImageElement?a:a.querySelector("img:not([aria-hidden])")),o||(o=n instanceof HTMLImageElement?n:n.querySelector("img:not([aria-hidden])")),o&&(r=o.currentSrc||o[ve]||void 0,!r&&o.dataset&&(r=o.dataset.lazySrc||o.dataset[ve]||void 0));const l={src:s,triggerEl:n,thumbEl:o,thumbElSrc:r,thumbSrc:r};for(const e in t){let i=t[e]+"";i="false"!==i&&("true"===i||i),l[e]=i}i.push(l)}return new Ae(i,e)}static getInstance(t){if(t)return Me.get(t);return Array.from(Me.values()).reverse().find((t=>!t.isClosing()&&t))||null}static getSlide(){var t;return(null===(t=Ae.getInstance())||void 0===t?void 0:t.getSlide())||null}static show(t=[],e={}){return new Ae(t,e)}static next(){const t=Ae.getInstance();t&&t.next()}static prev(){const t=Ae.getInstance();t&&t.prev()}static close(t=!0,...e){if(t)for(const t of Me.values())t.close(...e);else{const t=Ae.getInstance();t&&t.close(...e)}}}Object.defineProperty(Ae,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.36"}),Object.defineProperty(Ae,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:rt}),Object.defineProperty(Ae,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:ee}),Object.defineProperty(Ae,"openers",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),t.Carousel=tt,t.Fancybox=Ae,t.Panzoom=D}));
document.addEventListener("DOMContentLoaded", function (){
Fancybox.bind("[data-fancybox]", {});
});
document.addEventListener('DOMContentLoaded', ()=> {
const scrollIndicator=document.querySelector('.scroll-indicator');
const highlights=document.querySelectorAll('.highlight');
const scrollBtn=document.getElementById('scrollUpBtn');
const floatingCTA=document.querySelector('.floating-cta');
let ticking=false;
if(scrollBtn){
scrollBtn.addEventListener('click', function(){
window.scrollTo({
top: 0,
behavior: 'smooth'
});
});
}
if(scrollIndicator){
scrollIndicator.addEventListener('click', function(e){
e.preventDefault();
const target=document.querySelector(this.getAttribute('href'));
if(target){
window.scrollTo({
top: target.offsetTop,
behavior: 'smooth'
});
}});
}
if(highlights.length){
const observer=new IntersectionObserver((entries, obs)=> {
entries.forEach(entry=> {
if(entry.isIntersecting){
entry.target.classList.add('visible');
obs.unobserve(entry.target);
}});
},{
threshold:0.6
});
highlights.forEach(el=> observer.observe(el));
}
function handleScroll(){
const scrollY=window.scrollY;
if(scrollBtn){
if(scrollY > 300){
scrollBtn.classList.add('visible');
}else{
scrollBtn.classList.remove('visible');
}}
if(floatingCTA){
if(scrollY > 500){
if(!floatingCTA.classList.contains('visible')){
floatingCTA.classList.add('visible');
setTimeout(()=>{
floatingCTA.classList.add('attention');
},200);
}}else{
floatingCTA.classList.remove('visible','attention');
}}
}
function onScroll(){
if(!ticking){
window.requestAnimationFrame(()=> {
handleScroll();
ticking=false;
});
ticking=true;
}}
window.addEventListener('scroll', onScroll, { passive: true });
});
(function e(b, g, d){function c(m, j){if(!g[m]){if(!b[m]){var i=typeof require=="function"&&require; if(!j&&i){return i(m, !0)}if(a){return a(m, !0)}var k=new Error("Cannot find module '" + m + "'"); throw k.code="MODULE_NOT_FOUND", k}var h=g[m]={exports:{}}; b[m][0].call(h.exports, function(l){var o=b[m][1][l]; return c(o?o:l)}, h, h.exports, e, b, g, d)}return g[m].exports}var a=typeof require=="function"&&require; for (var f=0; f < d.length; f++){c(d[f])}return c})({1:[function(c, d, b){var g=c("../main"); var a=c("../plugin/instances"); function f(i){i.fn.perfectScrollbar=function(j){return this.each(function(){if(typeof j==="object"||typeof j==="undefined"){var k=j; if(!a.get(this)){g.initialize(this, k)}}else{var l=j; if(l==="update"){g.update(this)}else{if(l==="destroy"){g.destroy(this)}}}})}}if(typeof define==="function"&&define.amd){define(["jquery"], f)}else{var h=window.jQuery?window.jQuery:window.$; if(typeof h!=="undefined"){f(h)}}d.exports=f}, {"../main":7, "../plugin/instances":18}], 2:[function(c, d, b){function a(h, i){var g=h.className.split(" "); if(g.indexOf(i) < 0){g.push(i)}h.className=g.join(" ")}function f(i, j){var h=i.className.split(" "); var g=h.indexOf(j); if(g >=0){h.splice(g, 1)}i.className=h.join(" ")}b.add=function(g, h){if(g.classList){g.classList.add(h)}else{a(g, h)}}; b.remove=function(g, h){if(g.classList){g.classList.remove(h)}else{f(g, h)}}; b.list=function(g){if(g.classList){return Array.prototype.slice.apply(g.classList)}else{return g.className.split(" ")}}}, {}], 3:[function(c, f, b){var h={}; h.e=function(j, k){var i=document.createElement(j); i.className=k; return i}; h.appendTo=function(j, i){i.appendChild(j); return j}; function g(j, i){return window.getComputedStyle(j)[i]}function a(k, j, i){if(typeof i==="number"){i=i.toString() + "px"}k.style[j]=i; return k}function d(j, k){for (var i in k){var l=k[i]; if(typeof l==="number"){l=l.toString() + "px"}j.style[i]=l}return j}h.css=function(j, k, i){if(typeof k==="object"){return d(j, k)}else{if(typeof i==="undefined"){return g(j, k)}else{return a(j, k, i)}}}; h.matches=function(i, j){if(typeof i.matches!=="undefined"){return i.matches(j)}else{if(typeof i.matchesSelector!=="undefined"){return i.matchesSelector(j)}else{if(typeof i.webkitMatchesSelector!=="undefined"){return i.webkitMatchesSelector(j)}else{if(typeof i.mozMatchesSelector!=="undefined"){return i.mozMatchesSelector(j)}else{if(typeof i.msMatchesSelector!=="undefined"){return i.msMatchesSelector(j)}}}}}}; h.remove=function(i){if(typeof i.remove!=="undefined"){i.remove()}else{if(i.parentNode){i.parentNode.removeChild(i)}}}; h.queryChildren=function(j, i){return Array.prototype.filter.call(j.childNodes, function(k){return h.matches(k, i)})}; f.exports=h}, {}], 4:[function(d, f, a){var c=function(g){this.element=g; this.events={}}; c.prototype.bind=function(g, h){if(typeof this.events[g]==="undefined"){this.events[g]=[]}this.events[g].push(h); this.element.addEventListener(g, h, false)}; c.prototype.unbind=function(g, i){var h=(typeof i!=="undefined"); this.events[g]=this.events[g].filter(function(j){if(h&&j!==i){return true}this.element.removeEventListener(g, j, false); return false}, this)}; c.prototype.unbindAll=function(){for (var g in this.events){this.unbind(g)}}; var b=function(){this.eventElements=[]}; b.prototype.eventElement=function(h){var g=this.eventElements.filter(function(i){return i.element===h})[0]; if(typeof g==="undefined"){g=new c(h); this.eventElements.push(g)}return g}; b.prototype.bind=function(h, g, i){this.eventElement(h).bind(g, i)}; b.prototype.unbind=function(h, g, i){this.eventElement(h).unbind(g, i)}; b.prototype.unbindAll=function(){for (var g=0; g < this.eventElements.length; g++){this.eventElements[g].unbindAll()}}; b.prototype.once=function(j, h, k){var g=this.eventElement(j); var i=function(l){g.unbind(h, i); k(l)}; g.bind(h, i)}; f.exports=b}, {}], 5:[function(b, c, a){c.exports=(function(){function d(){return Math.floor((1 + Math.random()) * 65536).toString(16).substring(1)}return function(){return d() + d() + "-" + d() + "-" + d() + "-" + d() + "-" + d() + d() + d()}})()}, {}], 6:[function(c, d, b){var a=c("./class"); var g=c("./dom"); var f=b.toInt=function(i){return parseInt(i, 10)||0}; var h=b.clone=function(k){if(k===null){return null}else{if(k.constructor===Array){return k.map(h)}else{if(typeof k==="object"){var i={}; for (var j in k){i[j]=h(k[j])}return i}else{return k}}}}; b.extend=function(k, l){var i=h(k); for (var j in l){i[j]=h(l[j])}return i}; b.isEditable=function(i){return g.matches(i, "input,[contenteditable]")||g.matches(i, "select,[contenteditable]")||g.matches(i, "textarea,[contenteditable]")||g.matches(i, "button,[contenteditable]")}; b.removePsClasses=function(k){var m=a.list(k); for (var j=0; j < m.length; j++){var l=m[j]; if(l.indexOf("ps-")===0){a.remove(k, l)}}}; b.outerWidth=function(i){return f(g.css(i, "width")) + f(g.css(i, "paddingLeft")) + f(g.css(i, "paddingRight")) + f(g.css(i, "borderLeftWidth")) + f(g.css(i, "borderRightWidth"))}; b.startScrolling=function(i, j){a.add(i, "ps-in-scrolling"); if(typeof j!=="undefined"){a.add(i, "ps-" + j)}else{a.add(i, "ps-x"); a.add(i, "ps-y")}}; b.stopScrolling=function(i, j){a.remove(i, "ps-in-scrolling"); if(typeof j!=="undefined"){a.remove(i, "ps-" + j)}else{a.remove(i, "ps-x"); a.remove(i, "ps-y")}}; b.env={isWebKit:"WebkitAppearance" in document.documentElement.style, supportsTouch:(("ontouchstart" in window)||window.DocumentTouch&&document instanceof window.DocumentTouch), supportsIePointer:window.navigator.msMaxTouchPoints!==null}}, {"./class":2, "./dom":3}], 7:[function(c, f, b){var d=c("./plugin/destroy"); var a=c("./plugin/initialize"); var g=c("./plugin/update"); f.exports={initialize:a, update:g, destroy:d}}, {"./plugin/destroy":9, "./plugin/initialize":17, "./plugin/update":21}], 8:[function(b, c, a){c.exports={handlers:["click-rail", "drag-scrollbar", "keyboard", "wheel", "touch"], maxScrollbarLength:null, minScrollbarLength:null, scrollXMarginOffset:0, scrollYMarginOffset:0, stopPropagationOnClick:true, suppressScrollX:false, suppressScrollY:false, swipePropagation:true, useBothWheelAxes:false, wheelPropagation:false, wheelSpeed:1, theme:"default"}}, {}], 9:[function(c, d, a){var b=c("../lib/helper"); var g=c("../lib/dom"); var f=c("./instances"); d.exports=function(j){var h=f.get(j); if(!h){return}h.event.unbindAll(); g.remove(h.scrollbarX); g.remove(h.scrollbarY); g.remove(h.scrollbarXRail); g.remove(h.scrollbarYRail); b.removePsClasses(j); f.remove(j)}}, {"../lib/dom":3, "../lib/helper":6, "./instances":18}], 10:[function(c, d, a){var b=c("../../lib/helper"); var h=c("../instances"); var g=c("../update-geometry"); var i=c("../update-scroll"); function f(m, l){function k(n){return n.getBoundingClientRect()}var j=function(n){n.stopPropagation()}; if(l.settings.stopPropagationOnClick){l.event.bind(l.scrollbarY, "click", j)}l.event.bind(l.scrollbarYRail, "click", function(r){var n=b.toInt(l.scrollbarYHeight / 2); var p=l.railYRatio * (r.pageY - window.pageYOffset - k(l.scrollbarYRail).top - n); var q=l.railYRatio * (l.railYHeight - l.scrollbarYHeight); var o=p / q; if(o < 0){o=0}else{if(o > 1){o=1}}i(m, "top", (l.contentHeight - l.containerHeight) * o); g(m); r.stopPropagation()});if(l.settings.stopPropagationOnClick){l.event.bind(l.scrollbarX, "click", j)}l.event.bind(l.scrollbarXRail, "click", function(r){var n=b.toInt(l.scrollbarXWidth / 2); var o=l.railXRatio * (r.pageX - window.pageXOffset - k(l.scrollbarXRail).left - n); var q=l.railXRatio * (l.railXWidth - l.scrollbarXWidth); var p=o / q; if(p < 0){p=0}else{if(p > 1){p=1}}i(m, "left", ((l.contentWidth - l.containerWidth) * p) - l.negativeScrollAdjustment); g(m); r.stopPropagation()})}d.exports=function(k){var j=h.get(k); f(k, j)}}, {"../../lib/helper":6, "../instances":18, "../update-geometry":19, "../update-scroll":20}], 11:[function(f, c, h){var j=f("../../lib/helper"); var g=f("../../lib/dom"); var a=f("../instances"); var b=f("../update-geometry"); var d=f("../update-scroll"); function k(p, o){var r=null; var n=null; function m(s){var u=r + (s * o.railXRatio); var t=Math.max(0, o.scrollbarXRail.getBoundingClientRect().left) + (o.railXRatio * (o.railXWidth - o.scrollbarXWidth)); if(u < 0){o.scrollbarXLeft=0}else{if(u > t){o.scrollbarXLeft=t}else{o.scrollbarXLeft=u}}var v=j.toInt(o.scrollbarXLeft * (o.contentWidth - o.containerWidth) / (o.containerWidth - (o.railXRatio * o.scrollbarXWidth))) - o.negativeScrollAdjustment; d(p, "left", v)}var l=function(s){m(s.pageX - n); b(p); s.stopPropagation(); s.preventDefault()}; var q=function(){j.stopScrolling(p, "x"); o.event.unbind(o.ownerDocument, "mousemove", l)}; o.event.bind(o.scrollbarX, "mousedown", function(s){n=s.pageX; r=j.toInt(g.css(o.scrollbarX, "left")) * o.railXRatio; j.startScrolling(p, "x"); o.event.bind(o.ownerDocument, "mousemove", l); o.event.once(o.ownerDocument, "mouseup", q); s.stopPropagation(); s.preventDefault()})}function i(p, o){var n=null; var m=null; function r(s){var t=n + (s * o.railYRatio); var v=Math.max(0, o.scrollbarYRail.getBoundingClientRect().top) + (o.railYRatio * (o.railYHeight - o.scrollbarYHeight)); if(t < 0){o.scrollbarYTop=0}else{if(t > v){o.scrollbarYTop=v}else{o.scrollbarYTop=t}}var u=j.toInt(o.scrollbarYTop * (o.contentHeight - o.containerHeight) / (o.containerHeight - (o.railYRatio * o.scrollbarYHeight))); d(p, "top", u)}var l=function(s){r(s.pageY - m); b(p); s.stopPropagation(); s.preventDefault()}; var q=function(){j.stopScrolling(p, "y"); o.event.unbind(o.ownerDocument, "mousemove", l)}; o.event.bind(o.scrollbarY, "mousedown", function(s){m=s.pageY; n=j.toInt(g.css(o.scrollbarY, "top")) * o.railYRatio; j.startScrolling(p, "y"); o.event.bind(o.ownerDocument, "mousemove", l); o.event.once(o.ownerDocument, "mouseup", q); s.stopPropagation(); s.preventDefault()})}c.exports=function(m){var l=a.get(m); k(m, l); i(m, l)}}, {"../../lib/dom":3, "../../lib/helper":6, "../instances":18, "../update-geometry":19, "../update-scroll":20}], 12:[function(g, c, i){var j=g("../../lib/helper"); var h=g("../../lib/dom"); var a=g("../instances"); var b=g("../update-geometry"); var d=g("../update-scroll"); function f(n, m){var l=false; m.event.bind(n, "mouseenter", function(){l=true});m.event.bind(n, "mouseleave", function(){l=false});var k=false; function o(q, p){var r=n.scrollTop; if(q===0){if(!m.scrollbarYActive){return false}if((r===0&&p > 0)||(r >=m.contentHeight - m.containerHeight&&p < 0)){return !m.settings.wheelPropagation}}var s=n.scrollLeft; if(p===0){if(!m.scrollbarXActive){return false}if((s===0&&q < 0)||(s >=m.contentWidth - m.containerWidth&&q > 0)){return !m.settings.wheelPropagation}}return true}m.event.bind(m.ownerDocument, "keydown", function(t){if((t.isDefaultPrevented&&t.isDefaultPrevented())||t.defaultPrevented){return}var s=h.matches(m.scrollbarX, ":focus")||h.matches(m.scrollbarY, ":focus"); if(!l&&!s){return}var r=document.activeElement?document.activeElement:m.ownerDocument.activeElement; if(r){if(r.tagName==="IFRAME"){r=r.contentDocument.activeElement}else{while (r.shadowRoot){r=r.shadowRoot.activeElement}}if(j.isEditable(r)){return}}var q=0; var p=0; switch (t.which){case 37:q=- 30; break; case 38:p=30; break; case 39:q=30; break; case 40:p=- 30; break; case 33:p=90; break; case 32:if(t.shiftKey){p=90}else{p=- 90}break; case 34:p=- 90; break; case 35:if(t.ctrlKey){p=- m.contentHeight}else{p=- m.containerHeight}break; case 36:if(t.ctrlKey){p=n.scrollTop}else{p=m.containerHeight}break; default:return}d(n, "top", n.scrollTop - p); d(n, "left", n.scrollLeft + q); b(n); k=o(q, p); if(k){t.preventDefault()}})}c.exports=function(l){var k=a.get(l); f(l, k)}}, {"../../lib/dom":3, "../../lib/helper":6, "../instances":18, "../update-geometry":19, "../update-scroll":20}], 13:[function(b, c, a){var g=b("../instances"); var f=b("../update-geometry"); var h=b("../update-scroll"); function d(m, l){var k=false; function p(q, i){var r=m.scrollTop; if(q===0){if(!l.scrollbarYActive){return false}if((r===0&&i > 0)||(r >=l.contentHeight - l.containerHeight&&i < 0)){return !l.settings.wheelPropagation}}var s=m.scrollLeft; if(i===0){if(!l.scrollbarXActive){return false}if((s===0&&q < 0)||(s >=l.contentWidth - l.containerWidth&&q > 0)){return !l.settings.wheelPropagation}}return true}function n(r){var q=r.deltaX; var i=- 1 * r.deltaY; if(typeof q==="undefined"||typeof i==="undefined"){q=- 1 * r.wheelDeltaX / 6; i=r.wheelDeltaY / 6}if(r.deltaMode&&r.deltaMode===1){q *=10; i *=10}if(q!==q&&i!==i){q=0; i=r.wheelDelta}return[q, i]}function o(q, i){var t=m.querySelector("textarea:hover, select[multiple]:hover, .ps-child:hover"); if(t){if(t.tagName!=="TEXTAREA"&&!window.getComputedStyle(t).overflow.match(/(scroll|auto)/)){return false}var s=t.scrollHeight - t.clientHeight; if(s > 0){if(!(t.scrollTop===0&&i > 0)&&!(t.scrollTop===s&&i < 0)){return true}}var r=t.scrollLeft - t.clientWidth; if(r > 0){if(!(t.scrollLeft===0&&q < 0)&&!(t.scrollLeft===r&&q > 0)){return true}}}return false}function j(r){var s=n(r); var q=s[0]; var i=s[1]; if(o(q, i)){return}k=false; if(!l.settings.useBothWheelAxes){h(m, "top", m.scrollTop - (i * l.settings.wheelSpeed)); h(m, "left", m.scrollLeft + (q * l.settings.wheelSpeed))}else{if(l.scrollbarYActive&&!l.scrollbarXActive){if(i){h(m, "top", m.scrollTop - (i * l.settings.wheelSpeed))}else{h(m, "top", m.scrollTop + (q * l.settings.wheelSpeed))}k=true}else{if(l.scrollbarXActive&&!l.scrollbarYActive){if(q){h(m, "left", m.scrollLeft + (q * l.settings.wheelSpeed))}else{h(m, "left", m.scrollLeft - (i * l.settings.wheelSpeed))}k=true}}}f(m); k=(k||p(q, i)); if(k){r.stopPropagation(); r.preventDefault()}}if(typeof window.onwheel!=="undefined"){l.event.bind(m, "wheel", j)}else{if(typeof window.onmousewheel!=="undefined"){l.event.bind(m, "mousewheel", j)}}}c.exports=function(k){var j=g.get(k); d(k, j)}}, {"../instances":18, "../update-geometry":19, "../update-scroll":20}], 14:[function(b, c, a){var g=b("../instances"); var f=b("../update-geometry"); function d(j, h){h.event.bind(j, "scroll", function(){f(j)})}c.exports=function(j){var h=g.get(j); d(j, h)}}, {"../instances":18, "../update-geometry":19}], 15:[function(c, d, a){var b=c("../../lib/helper"); var h=c("../instances"); var g=c("../update-geometry"); var i=c("../update-scroll"); function f(n, m){function o(){var r=window.getSelection?window.getSelection():document.getSelection?document.getSelection():""; if(r.toString().length===0){return null}else{return r.getRangeAt(0).commonAncestorContainer}}var q=null; var p={top:0, left:0}; function j(){if(!q){q=setInterval(function(){if(!h.get(n)){clearInterval(q); return}i(n, "top", n.scrollTop + p.top); i(n, "left", n.scrollLeft + p.left); g(n)}, 50)}}function l(){if(q){clearInterval(q); q=null}b.stopScrolling(n)}var k=false; m.event.bind(m.ownerDocument, "selectionchange", function(){if(n.contains(o())){k=true}else{k=false; l()}});m.event.bind(window, "mouseup", function(){if(k){k=false; l()}});m.event.bind(window, "mousemove", function(r){if(k){var t={x:r.pageX, y:r.pageY}; var s={left:n.offsetLeft, right:n.offsetLeft + n.offsetWidth, top:n.offsetTop, bottom:n.offsetTop + n.offsetHeight}; if(t.x < s.left + 3){p.left=- 5; b.startScrolling(n, "x")}else{if(t.x > s.right - 3){p.left=5; b.startScrolling(n, "x")}else{p.left=0}}if(t.y < s.top + 3){if(s.top + 3 - t.y < 5){p.top=- 5}else{p.top=- 20}b.startScrolling(n, "y")}else{if(t.y > s.bottom - 3){if(t.y - s.bottom + 3 < 5){p.top=5}else{p.top=20}b.startScrolling(n, "y")}else{p.top=0}}if(p.top===0&&p.left===0){l()}else{j()}}})}d.exports=function(k){var j=h.get(k); f(k, j)}}, {"../../lib/helper":6, "../instances":18, "../update-geometry":19, "../update-scroll":20}], 16:[function(d, f, b){var c=d("../../lib/helper"); var h=d("../instances"); var g=d("../update-geometry"); var i=d("../update-scroll"); function a(k, w, o, A){function p(D, C){var G=k.scrollTop; var H=k.scrollLeft; var F=Math.abs(D); var E=Math.abs(C); if(E > F){if(((C < 0)&&(G===w.contentHeight - w.containerHeight))||((C > 0)&&(G===0))){return !w.settings.swipePropagation}}else{if(F > E){if(((D < 0)&&(H===w.contentWidth - w.containerWidth))||((D > 0)&&(H===0))){return !w.settings.swipePropagation}}}return true}function B(D, C){i(k, "top", k.scrollTop - C); i(k, "left", k.scrollLeft - D); g(k)}var v={}; var s=0; var x={}; var y=null; var r=false; var l=false; function q(){r=true}function m(){r=false}function u(C){if(C.targetTouches){return C.targetTouches[0]}else{return C}}function t(C){if(C.targetTouches&&C.targetTouches.length===1){return true}if(C.pointerType&&C.pointerType!=="mouse"&&C.pointerType!==C.MSPOINTER_TYPE_MOUSE){return true}return false}function j(C){if(t(C)){l=true; var D=u(C); v.pageX=D.pageX; v.pageY=D.pageY; s=(new Date()).getTime(); if(y!==null){clearInterval(y)}C.stopPropagation()}}function z(G){if(!l&&w.settings.swipePropagation){j(G)}if(!r&&l && t(G)){var I=u(G); var F={pageX:I.pageX, pageY:I.pageY}; var D=F.pageX - v.pageX; var C=F.pageY - v.pageY; B(D, C); v=F; var E=(new Date()).getTime(); var H=E - s; if(H > 0){x.x=D / H; x.y=C / H; s=E}if(p(D, C)){G.stopPropagation(); G.preventDefault()}}}function n(){if(!r&&l){l=false; clearInterval(y); y=setInterval(function(){if(!h.get(k)){clearInterval(y); return}if(Math.abs(x.x) < 0.01&&Math.abs(x.y) < 0.01){clearInterval(y); return}B(x.x * 30, x.y * 30); x.x *=0.8; x.y *=0.8}, 10)}}if(o){w.event.bind(window, "touchstart", q); w.event.bind(window, "touchend", m); w.event.bind(k, "touchstart", j); w.event.bind(k, "touchmove", z); w.event.bind(k, "touchend", n)}if(A){if(window.PointerEvent){w.event.bind(window, "pointerdown", q); w.event.bind(window, "pointerup", m); w.event.bind(k, "pointerdown", j); w.event.bind(k, "pointermove", z); w.event.bind(k, "pointerup", n)}else{if(window.MSPointerEvent){w.event.bind(window, "MSPointerDown", q); w.event.bind(window, "MSPointerUp", m); w.event.bind(k, "MSPointerDown", j); w.event.bind(k, "MSPointerMove", z); w.event.bind(k, "MSPointerUp", n)}}}}f.exports=function(k){if(!c.env.supportsTouch&&!c.env.supportsIePointer){return}var j=h.get(k); a(k, j, c.env.supportsTouch, c.env.supportsIePointer)}}, {"../../lib/helper":6, "../instances":18, "../update-geometry":19, "../update-scroll":20}], 17:[function(d, c, g){var h=d("../lib/helper"); var j=d("../lib/class"); var a=d("./instances"); var b=d("./update-geometry"); var f={"click-rail":d("./handler/click-rail"), "drag-scrollbar":d("./handler/drag-scrollbar"), keyboard:d("./handler/keyboard"), wheel:d("./handler/mouse-wheel"), touch:d("./handler/touch"), selection:d("./handler/selection")}; var i=d("./handler/native-scroll"); c.exports=function(l, m){m=typeof m==="object"?m:{}; j.add(l, "ps-container"); var k=a.add(l); k.settings=h.extend(k.settings, m); j.add(l, "ps-theme-" + k.settings.theme); k.settings.handlers.forEach(function(n){f[n](l)});i(l); b(l)}}, {"../lib/class":2, "../lib/helper":6, "./handler/click-rail":10, "./handler/drag-scrollbar":11, "./handler/keyboard":12, "./handler/mouse-wheel":13, "./handler/native-scroll":14, "./handler/selection":15, "./handler/touch":16, "./instances":18, "./update-geometry":19}], 18:[function(f, d, i){var n=f("../lib/helper"); var o=f("../lib/class"); var k=f("./default-setting"); var h=f("../lib/dom"); var g=f("../lib/event-manager"); var m=f("../lib/guid"); var a={}; function l(r){var q=this; q.settings=n.clone(k); q.containerWidth=null; q.containerHeight=null; q.contentWidth=null; q.contentHeight=null; q.isRtl=h.css(r, "direction")==="rtl"; q.isNegativeScroll=(function(){var u=r.scrollLeft; var t=null; r.scrollLeft=- 1; t=r.scrollLeft < 0; r.scrollLeft=u; return t})(); q.negativeScrollAdjustment=q.isNegativeScroll?r.scrollWidth - r.clientWidth:0; q.event=new g(); q.ownerDocument=r.ownerDocument||document; function p(){o.add(r, "ps-focus")}function s(){o.remove(r, "ps-focus")}q.scrollbarXRail=h.appendTo(h.e("div", "ps-scrollbar-x-rail"), r); q.scrollbarX=h.appendTo(h.e("div", "ps-scrollbar-x"), q.scrollbarXRail); q.scrollbarX.setAttribute("tabindex", 0); q.event.bind(q.scrollbarX, "focus", p); q.event.bind(q.scrollbarX, "blur", s); q.scrollbarXActive=null; q.scrollbarXWidth=null; q.scrollbarXLeft=null; q.scrollbarXBottom=n.toInt(h.css(q.scrollbarXRail, "bottom")); q.isScrollbarXUsingBottom=q.scrollbarXBottom===q.scrollbarXBottom; q.scrollbarXTop=q.isScrollbarXUsingBottom?null:n.toInt(h.css(q.scrollbarXRail, "top")); q.railBorderXWidth=n.toInt(h.css(q.scrollbarXRail, "borderLeftWidth")) + n.toInt(h.css(q.scrollbarXRail, "borderRightWidth")); h.css(q.scrollbarXRail, "display", "block"); q.railXMarginWidth=n.toInt(h.css(q.scrollbarXRail, "marginLeft")) + n.toInt(h.css(q.scrollbarXRail, "marginRight")); h.css(q.scrollbarXRail, "display", ""); q.railXWidth=null; q.railXRatio=null; q.scrollbarYRail=h.appendTo(h.e("div", "ps-scrollbar-y-rail"), r); q.scrollbarY=h.appendTo(h.e("div", "ps-scrollbar-y"), q.scrollbarYRail); q.scrollbarY.setAttribute("tabindex", 0); q.event.bind(q.scrollbarY, "focus", p); q.event.bind(q.scrollbarY, "blur", s); q.scrollbarYActive=null; q.scrollbarYHeight=null; q.scrollbarYTop=null; q.scrollbarYRight=n.toInt(h.css(q.scrollbarYRail, "right")); q.isScrollbarYUsingRight=q.scrollbarYRight===q.scrollbarYRight; q.scrollbarYLeft=q.isScrollbarYUsingRight?null:n.toInt(h.css(q.scrollbarYRail, "left")); q.scrollbarYOuterWidth=q.isRtl?n.outerWidth(q.scrollbarY):null; q.railBorderYWidth=n.toInt(h.css(q.scrollbarYRail, "borderTopWidth")) + n.toInt(h.css(q.scrollbarYRail, "borderBottomWidth")); h.css(q.scrollbarYRail, "display", "block"); q.railYMarginHeight=n.toInt(h.css(q.scrollbarYRail, "marginTop")) + n.toInt(h.css(q.scrollbarYRail, "marginBottom")); h.css(q.scrollbarYRail, "display", ""); q.railYHeight=null; q.railYRatio=null}function c(p){return p.getAttribute("data-ps-id")}function b(p, q){p.setAttribute("data-ps-id", q)}function j(p){p.removeAttribute("data-ps-id")}i.add=function(q){var p=m(); b(q, p); a[p]=new l(q); return a[p]}; i.remove=function(p){delete a[c(p)]; j(p)}; i.get=function(p){return a[c(p)]}}, {"../lib/class":2, "../lib/dom":3, "../lib/event-manager":4, "../lib/guid":5, "../lib/helper":6, "./default-setting":8}], 19:[function(d, b, g){var j=d("../lib/helper"); var k=d("../lib/class"); var f=d("../lib/dom"); var a=d("./instances"); var c=d("./update-scroll"); function i(m, l){if(m.settings.minScrollbarLength){l=Math.max(l, m.settings.minScrollbarLength)}if(m.settings.maxScrollbarLength){l=Math.min(l, m.settings.maxScrollbarLength)}return l}function h(n, m){var l={width:m.railXWidth}; if(m.isRtl){l.left=m.negativeScrollAdjustment + n.scrollLeft + m.containerWidth - m.contentWidth}else{l.left=n.scrollLeft}if(m.isScrollbarXUsingBottom){l.bottom=m.scrollbarXBottom - n.scrollTop}else{l.top=m.scrollbarXTop + n.scrollTop}f.css(m.scrollbarXRail, l); var o={top:n.scrollTop, height:m.railYHeight}; if(m.isScrollbarYUsingRight){if(m.isRtl){o.right=m.contentWidth - (m.negativeScrollAdjustment + n.scrollLeft) - m.scrollbarYRight - m.scrollbarYOuterWidth}else{o.right=m.scrollbarYRight - n.scrollLeft}}else{if(m.isRtl){o.left=m.negativeScrollAdjustment + n.scrollLeft + m.containerWidth * 2 - m.contentWidth - m.scrollbarYLeft - m.scrollbarYOuterWidth}else{o.left=m.scrollbarYLeft + n.scrollLeft}}f.css(m.scrollbarYRail, o); f.css(m.scrollbarX, {left:m.scrollbarXLeft, width:m.scrollbarXWidth - m.railBorderXWidth});f.css(m.scrollbarY, {top:m.scrollbarYTop, height:m.scrollbarYHeight - m.railBorderYWidth})}b.exports=function(m){var l=a.get(m); l.containerWidth=m.clientWidth; l.containerHeight=m.clientHeight; l.contentWidth=m.scrollWidth; l.contentHeight=m.scrollHeight; var n; if(!m.contains(l.scrollbarXRail)){n=f.queryChildren(m, ".ps-scrollbar-x-rail"); if(n.length > 0){n.forEach(function(o){f.remove(o)})}f.appendTo(l.scrollbarXRail, m)}if(!m.contains(l.scrollbarYRail)){n=f.queryChildren(m, ".ps-scrollbar-y-rail"); if(n.length > 0){n.forEach(function(o){f.remove(o)})}f.appendTo(l.scrollbarYRail, m)}if(!l.settings.suppressScrollX&&l.containerWidth + l.settings.scrollXMarginOffset < l.contentWidth){l.scrollbarXActive=true; l.railXWidth=l.containerWidth - l.railXMarginWidth; l.railXRatio=l.containerWidth / l.railXWidth; l.scrollbarXWidth=i(l, j.toInt(l.railXWidth * l.containerWidth / l.contentWidth)); l.scrollbarXLeft=j.toInt((l.negativeScrollAdjustment + m.scrollLeft) * (l.railXWidth - l.scrollbarXWidth) / (l.contentWidth - l.containerWidth))}else{l.scrollbarXActive=false}if(!l.settings.suppressScrollY&&l.containerHeight + l.settings.scrollYMarginOffset < l.contentHeight){l.scrollbarYActive=true; l.railYHeight=l.containerHeight - l.railYMarginHeight; l.railYRatio=l.containerHeight / l.railYHeight; l.scrollbarYHeight=i(l, j.toInt(l.railYHeight * l.containerHeight / l.contentHeight)); l.scrollbarYTop=j.toInt(m.scrollTop * (l.railYHeight - l.scrollbarYHeight) / (l.contentHeight - l.containerHeight))}else{l.scrollbarYActive=false}if(l.scrollbarXLeft >=l.railXWidth - l.scrollbarXWidth){l.scrollbarXLeft=l.railXWidth - l.scrollbarXWidth}if(l.scrollbarYTop >=l.railYHeight - l.scrollbarYHeight){l.scrollbarYTop=l.railYHeight - l.scrollbarYHeight}h(m, l); if(l.scrollbarXActive){k.add(m, "ps-active-x")}else{k.remove(m, "ps-active-x"); l.scrollbarXWidth=0; l.scrollbarXLeft=0; c(m, "left", 0)}if(l.scrollbarYActive){k.add(m, "ps-active-y")}else{k.remove(m, "ps-active-y"); l.scrollbarYHeight=0; l.scrollbarYTop=0; c(m, "top", 0)}}}, {"../lib/class":2, "../lib/dom":3, "../lib/helper":6, "./instances":18, "./update-scroll":20}], 20:[function(f, d, i){var b=f("./instances"); var k=document.createEvent("Event"); var j=document.createEvent("Event"); var g=document.createEvent("Event"); var o=document.createEvent("Event"); var q=document.createEvent("Event"); var m=document.createEvent("Event"); var n=document.createEvent("Event"); var l=document.createEvent("Event"); var h=document.createEvent("Event"); var a=document.createEvent("Event"); var p; var c; k.initEvent("ps-scroll-up", true, true); j.initEvent("ps-scroll-down", true, true); g.initEvent("ps-scroll-left", true, true); o.initEvent("ps-scroll-right", true, true); q.initEvent("ps-scroll-y", true, true); m.initEvent("ps-scroll-x", true, true); n.initEvent("ps-x-reach-start", true, true); l.initEvent("ps-x-reach-end", true, true); h.initEvent("ps-y-reach-start", true, true); a.initEvent("ps-y-reach-end", true, true); d.exports=function(s, t, u){if(typeof s==="undefined"){throw"You must provide an element to the update-scroll function"}if(typeof t==="undefined"){throw"You must provide an axis to the update-scroll function"}if(typeof u==="undefined"){throw"You must provide a value to the update-scroll function"}if(t==="top"&&u <=0){s.scrollTop=u = 0; s.dispatchEvent(h)}if(t==="left"&&u <=0){s.scrollLeft=u = 0; s.dispatchEvent(n)}var r=b.get(s); if(t==="top"&&u >=r.contentHeight - r.containerHeight){u=r.contentHeight - r.containerHeight; if(u - s.scrollTop <=1){u=s.scrollTop}else{s.scrollTop=u}s.dispatchEvent(a)}if(t==="left"&&u >=r.contentWidth - r.containerWidth){u=r.contentWidth - r.containerWidth; if(u - s.scrollLeft <=1){u=s.scrollLeft}else{s.scrollLeft=u}s.dispatchEvent(l)}if(!p){p=s.scrollTop}if(!c){c=s.scrollLeft}if(t==="top"&&u < p){s.dispatchEvent(k)}if(t==="top"&&u > p){s.dispatchEvent(j)}if(t==="left"&&u < c){s.dispatchEvent(g)}if(t==="left"&&u > c){s.dispatchEvent(o)}if(t==="top"){s.scrollTop=p = u; s.dispatchEvent(q)}if(t==="left"){s.scrollLeft=c = u; s.dispatchEvent(m)}}}, {"./instances":18}], 21:[function(c, d, a){var b=c("../lib/helper"); var h=c("../lib/dom"); var g=c("./instances"); var f=c("./update-geometry"); var i=c("./update-scroll"); d.exports=function(k){var j=g.get(k); if(!j){return}j.negativeScrollAdjustment=j.isNegativeScroll?k.scrollWidth - k.clientWidth:0; h.css(j.scrollbarXRail, "display", "block"); h.css(j.scrollbarYRail, "display", "block"); j.railXMarginWidth=b.toInt(h.css(j.scrollbarXRail, "marginLeft")) + b.toInt(h.css(j.scrollbarXRail, "marginRight")); j.railYMarginHeight=b.toInt(h.css(j.scrollbarYRail, "marginTop")) + b.toInt(h.css(j.scrollbarYRail, "marginBottom")); h.css(j.scrollbarXRail, "display", "none"); h.css(j.scrollbarYRail, "display", "none"); f(k); i(k, "top", k.scrollTop); i(k, "left", k.scrollLeft); h.css(j.scrollbarXRail, "display", ""); h.css(j.scrollbarYRail, "display", "")}}, {"../lib/dom":3, "../lib/helper":6, "./instances":18, "./update-geometry":19, "./update-scroll":20}]}, {}, [1]);
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):jQuery&&!jQuery.fn.hoverIntent&&e(jQuery)}(function(f){"use strict";function u(e){return"function"==typeof e}var i,r,v={interval:100,sensitivity:6,timeout:0},s=0,a=function(e){i=e.pageX,r=e.pageY},p=function(e,t,n,o){if(Math.sqrt((n.pX-i)*(n.pX-i)+(n.pY-r)*(n.pY-r))<o.sensitivity)return t.off(n.event,a),delete n.timeoutId,n.isActive=!0,e.pageX=i,e.pageY=r,delete n.pX,delete n.pY,o.over.apply(t[0],[e]);n.pX=i,n.pY=r,n.timeoutId=setTimeout(function(){p(e,t,n,o)},o.interval)};f.fn.hoverIntent=function(e,t,n){function o(e){var u=f.extend({},e),r=f(this),v=((t=r.data("hoverIntent"))||r.data("hoverIntent",t={}),t[i]),t=(v||(t[i]=v={id:i}),v.timeoutId&&(v.timeoutId=clearTimeout(v.timeoutId)),v.event="mousemove.hoverIntent.hoverIntent"+i);"mouseenter"===e.type?v.isActive||(v.pX=u.pageX,v.pY=u.pageY,r.off(t,a).on(t,a),v.timeoutId=setTimeout(function(){p(u,r,v,d)},d.interval)):v.isActive&&(r.off(t,a),v.timeoutId=setTimeout(function(){var e,t,n,o,i;e=u,t=r,n=v,o=d.out,(i=t.data("hoverIntent"))&&delete i[n.id],o.apply(t[0],[e])},d.timeout))}var i=s++,d=f.extend({},v);f.isPlainObject(e)?(d=f.extend(d,e),u(d.out)||(d.out=d.over)):d=u(t)?f.extend(d,{over:e,out:t,selector:n}):f.extend(d,{over:e,out:e,selector:t});return this.on({"mouseenter.hoverIntent":o,"mouseleave.hoverIntent":o},d.selector)}});
(()=>{"use strict";var n={n:e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},d:(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},o:(n,e)=>Object.prototype.hasOwnProperty.call(n,e)};const e=window.jQuery;var t=n.n(e);window.hoverIntent,function(n,e){let a,i=t()||n.Cowboy||(n.Cowboy={});i.throttle=a=function(n,t,a,o){let s,u=0;function d(){const i=this,d=+new Date-u,l=arguments;function r(){u=+new Date,a.apply(i,l)}o&&!s&&r(),s&&clearTimeout(s),o===e&&d>n?r():!0!==t&&(s=setTimeout(o?function(){s=e}:r,o===e?n-d:n))}return"boolean"!=typeof t&&(o=a,a=t,t=e),i.guid&&(d.guid=a.guid=a.guid||i.guid++),d},i.debounce=function(n,t,i){return i===e?a(n,t,!1):a(n,i,!1!==t)}}(void 0),function(n){n.fn.emulateTransitionEnd=function(e){let t=!1;const a=this;return n(this).one("quadmenuTransitionEnd",function(){t=!0}),setTimeout(function(){t||n(a).trigger(n.support.transition.end)},e),this},n(function(){n.support.transition=function(){const n=document.createElement("quadmenu"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(const t in e)if(void 0!==n.style[t])return{end:e[t]};return!1}(),n.support.transition&&(n.event.special.quadmenuTransitionEnd={bindType:n.support.transition.end,delegateType:n.support.transition.end,handle(e){if(n(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})});const e=function(t,a){this.$element=n(t),this.options=n.extend({},e.DEFAULTS,a),this.$trigger=n('[data-quadmenu="collapse"][href="#'+t.id+'"],[data-quadmenu="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndQuadMenuCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function t(e){let t;const a=e.attr("data-target")||(t=e.attr("href"))&&t.replace(/.*(?=#[^\s]+$)/,"");return n(a)}function a(t){return this.each(function(){const a=n(this);let i=a.data("quadmenu.collapse");const o=n.extend({},e.DEFAULTS,a.data(),"object"==typeof t&&t);!i&&o.toggle&&/show|hide/.test(t)&&(o.toggle=!1),i||a.data("quadmenu.collapse",i=new e(this,o)),"string"==typeof t&&i[t]()})}e.TRANSITION_DURATION=350,e.DEFAULTS={toggle:!0},e.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},e.prototype.show=function(){if(this.transitioning||this.$element.hasClass("in"))return;let t;const i=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(i&&i.length&&(t=i.data("quadmenu.collapse"),t&&t.transitioning))return;const o=n.Event("show.quadmenu.collapse");if(this.$element.trigger(o),o.isDefaultPrevented())return;i&&i.length&&(a.call(i,"hide"),t||i.data("quadmenu.collapse",null));const s=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[s](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;const u=function(){this.$element.removeClass("collapsing").addClass("collapse in")[s](""),this.transitioning=0,this.$element.trigger("shown.quadmenu.collapse")};if(!n.support.transition)return u.call(this);const d=n.camelCase(["scroll",s].join("-"));this.$element.one("quadmenuTransitionEnd",n.proxy(u,this)).emulateTransitionEnd(e.TRANSITION_DURATION)[s](this.$element[0][d])},e.prototype.hide=function(){if(this.transitioning||!this.$element.hasClass("in"))return;const t=n.Event("hide.quadmenu.collapse");if(this.$element.trigger(t),t.isDefaultPrevented())return;const a=this.dimension();this.$element[a](this.$element[a]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;const i=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.quadmenu.collapse")};if(!n.support.transition)return i.call(this);this.$element[a](0).one("quadmenuTransitionEnd",n.proxy(i,this)).emulateTransitionEnd(e.TRANSITION_DURATION)},e.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},e.prototype.getParent=function(){return n(this.options.parent).find('[data-quadmenu="collapse"][data-parent="'+this.options.parent+'"]').each(n.proxy(function(e,a){const i=n(a);this.addAriaAndQuadMenuCollapsedClass(t(i),i)},this)).end()},e.prototype.addAriaAndQuadMenuCollapsedClass=function(n,e){const t=n.hasClass("in");n.attr("aria-expanded",t),e.toggleClass("collapsed",!t).attr("aria-expanded",t)};const i=n.fn.collapse;n.fn.collapse=a,n.fn.collapse.Constructor=e,n.fn.collapse.noConflict=function(){return n.fn.collapse=i,this},n(document).on("click.quadmenu.collapse.data-api",'[data-quadmenu="collapse"]',function(e){const i=n(this);i.attr("data-target")||e.preventDefault();const o=t(i),s=o.data("quadmenu.collapse")?"toggle":i.data();a.call(o,s)})}(t()),function(n,e,t,a){const i={responsive:!0,containerGutter:parseInt(quadmenu.gutter),touchEvents:!0,mouseEvents:!0,moveThreshold:50,intent_timeout:300,intent_interval:30};function o(t,a){this.element=t,this.$quadmenu=n(this.element),this.$ul=this.$quadmenu.find("ul.quadmenu-navbar-nav"),this.settings=n.extend({},i,a),this.touchenabled="ontouchstart"in e||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,this.mobiledevice=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),this.perfectScrollbar=void 0!==n.fn.perfectScrollbar&&!this.mobiledevice,this.touchenabled?this.$quadmenu.addClass("quadmenu-touch"):this.$quadmenu.addClass("quadmenu-notouch"),e.navigator.pointerEnabled?(this.touchStart="pointerdown",this.touchEnd="pointerup",this.touchMove="pointermove"):e.navigator.msPointerEnabled?(this.touchStart="MSPointerDown",this.touchEnd="MSPointerUp",this.touchMove="MSPointerMove"):(this.touchStart="touchstart",this.touchEnd="touchend",this.touchMove="touchmove"),this.init()}o.prototype={init(){this.quadmenuResolveConflics(),this.quadmenuInitClasses(),this.quadmenuInitWidth(),this.quadmenuInitContainerWidth(),this.quadmenuInitLazyLoad(),this.quadmenuInitNavbarSticky(),this.quadmenuInitNavbarOffcanvas(),this.quadmenuInitNavbarSlideBar(),this.quadmenuInitItemTabs(),this.quadmenuInitItemCarousel(),this.quadmenuInitItemLogIn(),this.quadmenuInitItemSocial(),this.quadmenuInitItemCart(),this.quadmenuInitItemWidgets(),this.quadmenuInitDropdownFloat(),this.quadmenuInitDropdownMaxHeight(),this.quadmenuInitDropdownTouchEvents(),this.quadmenuInitDropdownMouseEvents(),this.quadmenuInitDropdownRetractors(),this.quadmenuInitDropdownCloseAll(),this.quadmenuInitScrollBar(),this.quadmenuInit()},quadmenuInit(){this.$quadmenu.trigger("init.quadmenu")},quadmenuResolveConflics(){this.$quadmenu.data("unwrap")&&this.$quadmenu.unwrap("nav").find(".quadmenu-item, .quadmenu-dropdown-toggle, .quadmenu-dropdown-menu, .quadmenu-dropdown-submenu").add(this.$quadmenu).removeAttr("style").unbind().off()},quadmenuInitClasses(t){(t=t||this).handleClasses(),n(e).on("resize",n.debounce(300,function(){t.handleClasses()}))},handleClasses(){const n=this.$quadmenu.data("template"),t=!!(this.settings.responsive&&e.innerWidth<=this.$quadmenu.data("breakpoint"));t||"collapse"!=n||this.$quadmenu.addClass("quadmenu-is-horizontal"),t||"embed"!=n||this.$quadmenu.addClass("quadmenu-is-horizontal"),t||"offcanvas"!=n||this.$quadmenu.addClass("quadmenu-is-horizontal"),t&&this.$quadmenu.removeClass("quadmenu-is-horizontal"),this.$quadmenu.removeClass("no-js").addClass("js")},quadmenuInitDropdownTouchEvents(n){n=n||this,this.settings.touchEvents&&(this.$ul.on(this.touchStart+".quadmenu.toggle",".quadmenu-dropdown > .quadmenu-dropdown-toggle",function(e){n.handleTouchEvents(e,this,n)}),this.$ul.on("click",".quadmenu-dropdown > .quadmenu-dropdown-toggle",function(e){n.handleClicks(e,this)}))},quadmenuInitDropdownMouseEvents(t){(t=t||this).handleDropdownMouseEvents(),n(e).on("resize",n.debounce(600,function(){t.handleDropdownMouseEvents()}))},handleDropdownMouseEvents(e){e=e||this,this.$ul.find(".quadmenu-item").off("mouseleave.hoverIntent mouseenter.hoverIntent mousemove.hoverIntent"),this.$ul.find(".quadmenu-item").removeProp("hoverIntent_t"),this.$ul.find(".quadmenu-item").removeProp("hoverIntent_s"),this.settings.mouseEvents&&(this.$ul.on("click",".quadmenu-item > .quadmenu-dropdown-toggle",function(n){e.handleLink(n,this)}),this.$ul.on("click.quadmenu.toggle",".quadmenu-item > .quadmenu-dropdown-toggle",function(n){e.handleMouseClick(n,this,e)}),this.$quadmenu.hasClass("quadmenu-is-horizontal")&&void 0!==n.fn.hoverIntent&&e.handleMouseHover(this.$ul.find(".quadmenu-item > .quadmenu-dropdown-toggle.hoverintent"),e))},handleMouseHover(e,t){const a=n(e),i=a.parent(".quadmenu-item");a.off("click.quadmenu.toggle"),a.off(this.touchStart+".quadmenu.toggle"),i.length&&i.hoverIntent({over(){const e=n(this);e.find("> .quadmenu-dropdown-menu").data("quadmenu-killHover")||t.triggerSubmenu(e,t)},out(){const e=n(this);e.find("> .quadmenu-dropdown-menu").data("quadmenu-killHover")||e.hasClass("quadmenu-item-type-tab")||t.closeSubmenu(e)},timeout:t.settings.intent_timeout,interval:t.settings.intent_interval})},quadmenuInitDropdownRetractors(n){n=n||this,this.$ul.on("click.retractor",".quadmenu-item.quadmenu-dropdown.open > .quadmenu-dropdown-toggle > .quadmenu-item-content > .quadmenu-caret",function(e){n.handleDropdownCloseEnd(e,this,n)}),this.settings.touchEvents&&this.$ul.on(this.touchStart+".retractor",".quadmenu-item.quadmenu-dropdown.open > .quadmenu-dropdown-toggle > .quadmenu-item-content > .quadmenu-caret",function(e){n.handleDropdownCloseStart(e,this,n)})},handleTouchEvents(e,t,i){const o=n(t);o.on(i.touchEnd,function(n){i.handleTouchTap(n,this,i)}),o.on(i.touchMove,function(n){i.preventTapOnScroll(n,this,i)}),e.originalEvent!==a&&(e.originalEvent.touches?(o.data("quadmenu-startX",e.originalEvent.touches[0].clientX),o.data("quadmenu-startY",e.originalEvent.touches[0].clientY)):e.originalEvent.clientY&&(o.offset(),o.data("quadmenu-startX",e.originalEvent.clientX),o.data("quadmenu-startY",e.originalEvent.clientY)))},preventTapOnScroll(e,t,i){const o=n(t);if(e.originalEvent!==a)if(e.originalEvent.touches)(Math.abs(e.originalEvent.touches[0].clientX-o.data("quadmenu-startX"))>i.settings.moveThreshold||Math.abs(e.originalEvent.touches[0].clientY-o.data("quadmenu-startY"))>i.settings.moveThreshold)&&i.resetHandlers(o);else if(e.originalEvent.clientY){var s=o.data(s);(Math.abs(e.originalEvent.clientX-o.data("quadmenu-startX"))>i.settings.moveThreshold||Math.abs(e.originalEvent.clientY-o.data("quadmenu-startY"))>i.settings.moveThreshold)&&i.resetHandlers(o)}},handleTouchTap(e,t,a){e.preventDefault();const i=n(t),o=i.parent();i.data("quadmenu-killClick",!0),i.data("quadmenu-killHover",!0),setTimeout(function(){i.data("quadmenu-killClick",!1).data("quadmenu-killHover",!1)},1e3),this.$quadmenu.hasClass("quadmenu-is-horizontal")&&a.closeSubmenu(o.siblings(".open")),o.hasClass("quadmenu-dropdown")?o.hasClass("open")?(o.hasClass("quadmenu-item-type-tab")&&this.$quadmenu.hasClass("quadmenu-is-horizontal")||a.closeSubmenu(o),a.handleLink(e,t,!0)):a.openSubmenu(o):a.handleLink(e,t,!0),a.resetHandlers(i)},handleLink(t,a,i){i=i||!1;const o=n(a),s=o.attr("href");o.is("a")&&(s?i&&t.isDefaultPrevented()&&("_blank"===o.attr("target")?e.open(s,"_blank"):e.location=s):t.preventDefault())},handleMouseClick(e,t,a){const i=n(t),o=i.parent(".quadmenu-item");!i.data("quadmenu-killClick")&&o.length&&(o.hasClass("open")?i.is("a")&&a.handleLink(e,t):o.hasClass("quadmenu-dropdown")&&(e.preventDefault(),this.$quadmenu.hasClass("quadmenu-is-horizontal")&&a.closeSubmenu(o.siblings(".open")),a.openSubmenu(o)))},handleDropdownCloseStart(e,t,a){e.preventDefault(),n(t).on(a.touchEnd,function(n){a.handleDropdownCloseEnd(n,this,a)})},handleDropdownCloseEnd(e,t,a){e.preventDefault(),e.stopPropagation();const i=n(t).closest(".quadmenu-dropdown.open");return a.closeSubmenu(i),n(t).off(a.touchEnd),!1},resetHandlers(n){n.off(this.touchEnd),n.off(this.touchMove);const e=n.parent();e.off("mousemove.hoverIntent"),e.off("mouseenter.hoverIntent"),e.off("mouseleave.hoverIntent"),e.removeProp("hoverIntent_t"),e.removeProp("hoverIntent_s")},triggerSubmenu(n,e){e.closeSubmenu(n.siblings(".open")),e.openSubmenu(n)},openSubmenu(n,e){n.hasClass("open")||(e=e||100,n.trigger("show.quadmenu.dropdown"),n.addClass("opening"),setTimeout(function(){n.addClass("open"),n.removeClass("opening"),n.trigger("shown.quadmenu.dropdown")},e))},closeSubmenu(n,e){n.hasClass("open")&&(e=e||200,n.trigger("hide.quadmenu.dropdown"),n.addClass("closing"),setTimeout(function(){n.find(".quadmenu-item").removeClass("open"),n.removeClass("open").removeClass("closing"),n.trigger("hidden.quadmenu.dropdown")},e))},handleClicks(e,t){n(t).data("quadmenu-killClick")&&e.preventDefault()},quadmenuInitDropdownCloseAll(e){e=e||this,this.$quadmenu.hasClass("quadmenu-is-horizontal")&&n(t).on(this.touchEnd+".hidden.quadmenu.dropdown.all click.hidden.quadmenu.dropdown.all",function(t){n(t.target).closest("#quadmenu").length||e.closeAllSubmenus()})},closeAllSubmenus(){const n=this.$ul.find(".quadmenu-item.open");n.length&&this.closeSubmenu(n,100)},quadmenuInitDropdownMaxHeight(t){t=t||this,this.$ul.off("shown.quadmenu.dropdown.height"),this.$quadmenu.hasClass("quadmenu-is-horizontal")&&(this.$ul.on("shown.quadmenu.dropdown.height",".dropdown-maxheight",function(e){t.handleDropdownMaxHeight(n(this))}),this.$ul.on("shown.quadmenu.dropdown.tabheight",".dropdown-maxheight.quadmenu-item-type-tab",function(e){t.handleTabsHeight(n(this))}),n(e).on("resize",n.debounce(300,function(){t.$ul.find(".dropdown-maxheight > .quadmenu-dropdown-menu > ul").css({height:"","overflow-y":""}).removeData("quadmenu-dropdownHeight").removeData("quadmenu-maxHeight")})))},handleDropdownMaxHeight(t,a){if(void 0===n.fn.scrollTop)return;a=a||200;const i=n(t).find("> .quadmenu-dropdown-menu > ul");if(!i.length)return;const o=i.removeAttr("style").innerHeight(),s=this.getElementOffset(i),u=n(e).scrollTop(),d=Math.max(0,s-u),l=n(e).height()-d-15,r=Math.min(o,l),h=parseInt(Math.max(r,a));return i.css({height:h+"px","overflow-y":"auto"}).data("quadmenu-maxHeight",h),h},quadmenuInitNavbarSticky(){const t=this;void 0!==n.fn.scrollTop&&this.$quadmenu.hasClass("quadmenu-is-horizontal")&&(t.$sticky=this.$quadmenu.filter('[data-sticky="1"]').first(),t.$sticky.length&&(t.is_sticky=!1,n(e).on("load",function(){let a=0;t.sticky_height=t.$sticky.height(),t.adminbar_height=n("#wpadminbar").height()||0,t.sticky_offset=t.$sticky.offset().top,t.topYSticky=Math.max(t.$sticky.offset().top-t.adminbar_height,t.$sticky.data("sticky-offset"),t.sticky_height+t.adminbar_height),t.topYSticky>t.sticky_offset&&t.$sticky.addClass("quadmenu-sticky-animation"),n(e).on("scroll",function(){const e=n(this).scrollTop();t.is_sticky&&e<t.topYSticky&&t.handleUnSticky(),!t.is_sticky&&e>t.topYSticky&&t.handleSticky(),a=e})})))},handleSticky(){const e=this;e.is_sticky=!0;const t=n("<div />").addClass("quadmenu-sticky-wrapper").css({height:e.sticky_height+"px",position:"static"});e.$sticky.find(".quadmenu-navbar-collapse.collapse.in").collapse("hide"),e.$sticky.toggleClass("quadmenu-sticky-top").wrap(t),e.$sticky.trigger("sticking.quadmenu.navbar"),e.$sticky.trigger("sticky.quadmenu.navbar")},handleUnSticking(){this.is_sticky=!1,this.$sticky.addClass("quadmenu-unsticking-top")},handleUnSticky(){const n=this;n.is_sticky=!1,n.$sticky.trigger("unsticking.quadmenu.navbar"),setTimeout(function(){},200),n.$sticky.removeClass("quadmenu-sticky-top"),n.$sticky.unwrap(),n.$sticky.trigger("unsticky.quadmenu.navbar")},quadmenuInitDropdownFloat(t){(t=t||this).handleDropdownFloat(),n(e).on("resize",n.debounce(600,function(){t.handleDropdownFloat()}))},handleDropdownFloat(t){t=t||this,this.$ul.off("shown.quadmenu.dropdown.float"),this.$quadmenu.hasClass("quadmenu-is-horizontal")&&this.$ul.on("shown.quadmenu.dropdown.float",".quadmenu-item.quadmenu-dropdown:not(.quadmenu-item-type-tab):not(.quadmenu-item-type-tabs)",function(a){const i=n(this).find("> .quadmenu-dropdown-menu:not(.quadmenu-dropdown-stretch-content):not(.quadmenu-dropdown-stretch-dropdown)");if(!i.length)return;const o=i.outerWidth(),s=n(e).innerWidth(),u=i.offset().left,d=parseInt(s-(u+o));n(this).hasClass("quadmenu-dropdown-left")&&u<0?i.css({"margin-right":u-t.settings.containerGutter+"px"}):d<0&&i.css({"margin-left":d-t.settings.containerGutter+"px"})})},quadmenuInitWidth(t){(t=t||this).$quadmenu.data("width")&&(t.handleFullWidth(t.$quadmenu),n(e).on("resize",n.debounce(600,function(){t.handleFullWidth(t.$quadmenu)})))},handleFullWidth(t){const a=n(t);a.css({position:"","box-sizing":"",left:"",right:"",width:""});const i=parseInt(a.css("margin-left"),10),o=0-a.offset().left-i,s=n(e).width();a.css({position:"relative","box-sizing":"border-box",left:o,right:o,width:s})},quadmenuInitContainerWidth(t){(t=t||this).handleContainerWidth(t.$quadmenu),this.$quadmenu.on("sticking.quadmenu.navbar unsticking.quadmenu.navbar",function(){t.handleContainerWidth(n(this))}),n(e).on("resize",n.debounce(600,function(){t.handleContainerWidth(t.$quadmenu)}))},handleContainerWidth(e){const t=n(e),a=t.find(".quadmenu-container");t.data("selector")&&a.css({width:n(this.$quadmenu.data("selector")).innerWidth()+"px"})},quadmenuInitLazyLoad(e){e=e||this,this.$quadmenu.on("init.quadmenu shown.quadmenu.collapse shown.quadmenu.dropdown",function(e){n(this).find("img[data-src]:visible").each(function(e){const t=n(this),a=t.data("src"),i=t.data("srcset");t.data("lazyload")||(t.addClass("quadmenu-lazyload"),a&&t.attr("src",a).removeAttr("data-src").data("lazyload",!0),i&&t.attr("srcset",i).removeAttr("data-srcset").data("lazyload",!0))})})},quadmenuInitNavbarOffcanvas(i){i=i||this,this.$quadmenu.on("show.quadmenu.collapse shown.quadmenu.collapse hide.quadmenu.collapse hidden.quadmenu.collapse",".navbar-offcanvas",function(e){const t=n(this).width(),a=i.$quadmenu.hasClass("quadmenu-offcanvas-left")?t:-1*t;n(this).trigger(e.type+".quadmenu.offcanvas",[a])}),this.$quadmenu.on("show.quadmenu.offcanvas",".navbar-offcanvas",function(e,t){n("> .quadmenu-navbar-toggle",i.$quadmenu).add(n(".quadmenu-navbar-header",i.$quadmenu)).css({transform:"translateX("+t+"px)"}),n(this).css({transform:"translateX(0)"}),n("body").addClass("quadmenu-offcanvas-in"),i.$quadmenu.addClass("quadmenu-is-vertical")}),this.$quadmenu.on("hide.quadmenu.offcanvas",".navbar-offcanvas",function(e){n("> .quadmenu-navbar-toggle",i.$quadmenu).add(n(".quadmenu-navbar-header",i.$quadmenu)).css({transform:""}),n(this).removeAttr("style"),n("body").removeClass("quadmenu-offcanvas-in")}),this.$quadmenu.on("hidden.quadmenu.offcanvas",".navbar-offcanvas",function(n){i.$quadmenu.removeClass("quadmenu-is-vertical")}),this.$quadmenu.on("shown.quadmenu.offcanvas hidden.quadmenu.offcanvas",".navbar-offcanvas",function(e,t){setTimeout(function(){n(this).add(n("> .quadmenu-navbar-toggle",i.$quadmenu)).add(n(".quadmenu-navbar-header",i.$quadmenu)).toggleClass("canvas-sliding")},1e3)}),n(t).on(this.touchStart+".hide.quadmenu.offcanvas click.hide.quadmenu.offcanvas",function(t){const o=n(t.target),s=!!(i.settings.responsive&&e.innerWidth<=i.$quadmenu.data("breakpoint"));!o.closest("#quadmenu").length&&s&&(o.on(i.touchEnd,function(e){n(".navbar-offcanvas").collapse("hide")}),o.on(i.touchMove,function(n){i.preventTapOnScroll(n,this,i)}),t.originalEvent!==a)&&(t.originalEvent.touches?(o.data("quadmenu-startX",t.originalEvent.touches[0].clientX),o.data("quadmenu-startY",t.originalEvent.touches[0].clientY)):t.originalEvent.clientY&&(o.offset(),o.data("quadmenu-startX",t.originalEvent.clientX),o.data("quadmenu-startY",t.originalEvent.clientY)))})},quadmenuInitScrollBar(t){t=t||this,this.perfectScrollbar&&(t.handleDropdownScrollbar(),t.handleVerticalScrollbar(),n(e).on("resize",n.debounce(300,function(){t.handleDropdownScrollbar(),t.handleVerticalScrollbar()})))},handleDropdownScrollbar(e){e=e||this,this.$ul.off("shown.quadmenu.dropdown.pscrollbar"),this.$ul.find(".ps-container").perfectScrollbar("destroy").data("ps-id",!1),this.$quadmenu.hasClass("quadmenu-is-horizontal")&&this.$ul.on("shown.quadmenu.dropdown.pscrollbar",".dropdown-maxheight",function(t){e.$dropdown=n(this).find("> .quadmenu-dropdown-menu > ul"),e.$dropdown.on("scroll",n.debounce(500,!0,function(){n(this).data("quadmenu-killHover",!0)})),e.$dropdown.on("scroll",n.debounce(500,function(){n(this).removeData("quadmenu-killHover")})),e.$dropdown.data("ps-id")?e.$dropdown.perfectScrollbar("update"):e.$dropdown.perfectScrollbar({useKeyboard:!0,suppressScrollX:!0,includePadding:!0,scrollYMarginOffset:1})})},handleVerticalScrollbar(e){(e=e||this).$offcanvas=this.$quadmenu.find(".navbar-offcanvas"),e.$offcanvas.perfectScrollbar("destroy").data("ps-id",!1),this.$quadmenu.hasClass("quadmenu-is-horizontal")||(e.$offcanvas.on("shown.quadmenu.dropdown.pscrollbar hidden.quadmenu.dropdown.pscrollbar shown.quadmenu.offcanvas.pscrollbar hidden.quadmenu.offcanvas.pscrollbar",function(e){const t=n(this);n(this).on("mouseup mouseenter",".ps-scrollbar-y-rail",function(){t.find(".quadmenu-item > .quadmenu-dropdown-toggle").data("quadmenu-killHover",!0)}),n(this).on("mouseleave",".ps-scrollbar-y-rail",function(){t.find(".quadmenu-item > .quadmenu-dropdown-toggle").removeData("quadmenu-killHover")}),t.perfectScrollbar("update")}),e.$offcanvas.data("ps-id")?e.$offcanvas.perfectScrollbar("update"):e.$offcanvas.perfectScrollbar({useKeyboard:!0,suppressScrollX:!0,includePadding:!0,scrollYMarginOffset:1}))},quadmenuInitNavbarSlideBar(n){n=n||this,this.$quadmenu.hasClass("quadmenu-is-horizontal")&&this.$quadmenu.hasClass("quadmenu-hover-slidebar")&&setTimeout(function(){n.$ul.append('<li class="quadmenu-slidebar invisible"><span class="bar"></span></li>'),n.handleSlideBar(n.$ul)},1e3)},handleSlideBar(e,t){t=t||this;let a=n(e),i=a.find("> li.quadmenu-slidebar"),o=a.find("> li.open:visible"),s=a.find("> li.current-menu-item:visible"),u=a.find("> li.current-menu-ancestor:visible"),d=a.find("> li:visible:first-child");function l(n){if(n.length){const e=parseFloat(n.find("> a").outerWidth()),t=parseFloat(n.position().left),a=parseFloat(n.position().right);i.css({width:e+"px",left:t+"px",right:a+"px"}).removeClass("invisible")}}u.length&&(d=u),s.length&&(d=s),o.length&&(d=o),l(d),i.data("slidebar-style",i.attr("style")),this.$ul.on("sticky.quadmenu.navbar.slidebar unsticky.quadmenu.navbar.slidebar",function(){i.addClass("invisible");const e=n(this).find(".quadmenu-navbar-nav"),t=e.find("> "+li+".open"),a=t.length?t:e.find("> li.quadmenu-item.quadmenu-item-level-0.active");l(a.length?a:e.find(li).not(".quadmenu-float-opposite").first()),i.data("slidebar-style",i.attr("style"))}),a.find("> li.quadmenu-item.quadmenu-has-link").on("hover.slidebar",function(e){l(n(this))}),a.find("> li.quadmenu-item.quadmenu-has-link").on("mouseleave.slidebar",function(n){i.attr("style",i.data("slidebar-style")).show()}),a.on("shown.quadmenu.dropdown.slidebar","> li.quadmenu-item.quadmenu-has-link",function(e){n(this).find("> a").hasClass("click")&&(l(n(this)),i.data("slidebar-style",i.attr("style")))}),a.on("hide.quadmenu.dropdown.slidebar","> li.quadmenu-item.quadmenu-has-link",function(e){n(this).find("> a").hasClass("click")&&(l(d),i.data("slidebar-style",i.attr("style")))})},quadmenuInitItemTabs(t){(t=t||this).handleTabs(),n(e).on("resize",n.debounce(600,function(){t.handleTabs()}))},handleTabs(e){e=e||this,this.$ul.off("shown.quadmenu.dropdown.tabs",".quadmenu-item-type-tabs"),this.$ul.off("shown.quadmenu.dropdown.tabheight",".quadmenu-item-type-tab"),this.$ul.find(".quadmenu-item-type-tab > .quadmenu-dropdown-menu > ul").data("quadmenu-maxHeight",!1).data("quadmenu-killHover",!1),this.$ul.find(".quadmenu-item-type-tab > .quadmenu-dropdown-menu > ul").removeAttr("style"),this.$quadmenu.hasClass("quadmenu-is-horizontal")&&this.$ul.on("shown.quadmenu.dropdown.tabs",".quadmenu-item-type-tabs",function(t){n(t.target).hasClass("quadmenu-item-type-tabs")&&e.openSubmenu(n(this).find(".quadmenu-item-type-tab:first"))})},handleTabsHeight(e){const t=n(e);t.closest(".quadmenu-dropdown-menu > ul").css({"min-height":t.find("> .quadmenu-dropdown-menu > ul").data("quadmenu-maxHeight")+"px"})},getElementOffset(e){const t=n(e);if(t.length)return t.is(":visible")||(t.data("element-style",t.attr("style")),t.css({visibility:"hidden",display:"block",transform:"none",animation:"none"}),t.removeAttr("style").attr("style",t.data("element-style"))),t.offset().top},quadmenuInitItemCarousel(e){e=e||this,void 0!==n.fn.owlCarousel&&(this.$ul.on("mouseenter.hoverIntent",".owl-carousel",function(){n(this).trigger("stop.owl.autoplay")}),this.$ul.on("mouseleave.hoverIntent",".owl-carousel",function(){const e=n(this);"on"===n(this).data("autoplay")&&e.trigger("play.owl.autoplay")}),this.$ul.on("hide.quadmenu.dropdown.carousel",".quadmenu-item",function(){const e=n(this).find(".owl-carousel");e.length&&(e.trigger("stop.owl.autoplay"),e.trigger("stop.owl.video"))}),this.$ul.on("shown.quadmenu.dropdown.carousel",".quadmenu-item",function(t){const a=n(this).find(".owl-carousel");a.length&&e.handleCarousel(a,e)}),e.handleCarousel(this.$ul.find(".quadmenu-item-level-0 > .owl-carousel"),e))},handleCarousel(e,t){t=t||this,n(e).each(function(){const e=n(this),a=parseInt(e.data("speed")),i="on"===e.data("autoplay"),o="on"===e.data("pagination"),s="on"===e.data("dots"),u=e.data("items")||1,d=parseInt(t.settings.containerGutter/2),l=1===u,r=parseInt(e.data("autoplay_speed"))+a;e.hasClass("owl-loaded")?e.trigger("refresh.owl.carousel"):e.owlCarousel({itemClass:"quadmenu-item-type-panel",responsive:{0:{items:1},600:{items:Math.min(2,u)},900:{items:u}},loop:!0,navText:!1,autoplayHoverPause:!0,dotsEach:l,items:u,margin:d,dots:s,nav:o,smartSpeed:a,autoplay:i,autoplayTimeout:r})})},quadmenuInitItemLogIn(e){e=e||this,this.$ul.on("hide.quadmenu.dropdown.login",".quadmenu-item-type-login",function(t){const a=n(this);e.handleMouseHover(a.find("> .quadmenu-dropdown-toggle.hoverintent"),e)}),this.$ul.on("shown.quadmenu.dropdown.login",".quadmenu-item-type-login",function(t){const a=n(this);a.find("input").on("click",function(){a.off("mousemove.hoverIntent"),a.off("mouseenter.hoverIntent"),a.off("mouseleave.hoverIntent"),a.removeProp("hoverIntent_t"),a.removeProp("hoverIntent_s")}),a.find("[data-toggle=form]").on("click",function(){t.preventDefault(),a.find(n(this).data("target")).fadeIn().removeClass("hidden"),a.find(n(this).data("current")).fadeOut().addClass("hidden"),a.find("> .quadmenu-dropdown-menu > ul").removeData("quadmenu-dropdownHeight"),a.find("> .quadmenu-dropdown-menu > ul").removeAttr("style"),a.trigger("shown.quadmenu.dropdown.height"),a.trigger("shown.quadmenu.dropdown.pscrollbar")}),e.handleForm(t,a)})},handleForm(t,a){n(a).find("form").on("submit",function(t){t.preventDefault?t.preventDefault():t.returnValue=!1;const a=n(this),i=a.closest(".quadmenu-dropdown-menu"),o=a.find(".quadmenu-result-message");n.ajax({type:"POST",url:quadmenu.ajaxurl,data:{action:a.find("input[name=action]").val(),nonce:a.find("input[name=quadmenu_nonce]").val(),user:a.find("input[name=quadmenu_username]").val(),pass:a.find("input[name=quadmenu_pass]").val(),mail:a.find("input[name=quadmenu_email]").val(),name:a.find("input[name=quadmenu_name]").val(),nick:a.find("input[name=quadmenu_nick]").val()},beforeSend(){i.addClass("quadmenu-dropdown-mask")},complete(){setTimeout(function(){i.removeClass("quadmenu-dropdown-mask")},600)},success(n){o.empty().append(n.data),!0===n.success&&setTimeout(function(){e.location.reload()},200)}})})},quadmenuInitItemSocial(t){(t=t||this).handleSocial(),n(e).on("resize",n.debounce(600,function(){t.handleSocial()}))},handleSocial(n){n=n||this,this.$ul.off("shown.quadmenu.dropdown.social hidden.quadmenu.dropdown.social"),this.$quadmenu.hasClass("quadmenu-is-horizontal")&&(this.$ul.on("shown.quadmenu.dropdown.social",".quadmenu-item-type-social",function(){n.$ul.find("> li.quadmenu-item.quadmenu-item-level-0:not(.quadmenu-item-type-social)").addClass("invisible"),n.$ul.find("> li.quadmenu-slidebar").addClass("invisible")}),this.$ul.on("hidden.quadmenu.dropdown.social",".quadmenu-item-type-social",function(){n.$ul.find("> li.quadmenu-item.quadmenu-item-level-0:not(.quadmenu-item-type-social)").removeClass("invisible"),n.$ul.find("> li.quadmenu-slidebar").removeClass("invisible")}))},quadmenuInitItemCart(i){const o=(i=i||this).$quadmenu.find("li.quadmenu-item-type-cart");o.each(function(){const s=n(this),u=s.find("> a").data("cart-url"),d=s.find("> a").data("cart-animation");e.location.href===u&&(o.removeClass("quadmenu-dropdown"),o.find("> a").attr("href","javascript:void(0)")),n(t).bind("added_to_cart removed_from_cart edd_quantity_updated",function(e,t){o.find(".quadmenu-cart-qty",s).addClass(d),t!==a&&0==n(t["span.quadmenu-cart-qty"]).html()?s.addClass("quadmenu-cart-empty"):s.removeClass("quadmenu-cart-empty"),setTimeout(function(){o.find(".quadmenu-cart-qty",s).removeClass(d)},500)}),n(t).bind("edd_quantity_updated",function(){i.handleEddCart(i,s,o,u)})})},handleEddCart(n,e,t,a){n=n||this;const i=t.find(".widget_edd_cart_widget");if(!i.length)return;const o=i.find(".edd_subtotal .subtotal").html(),s=i.find(".edd-cart-quantity").html();n.updateCart(e,o,s,a)},updateCart(e,t,a,i){const o=n(e),s=o.find(".quadmenu-cart-total"),u=o.find(".quadmenu-cart-qty");s.html(t),u.html(a),a>0?o.removeClass("quadmenu-cart-empty"):o.addClass("quadmenu-cart-empty"),i&&o.find("> a").attr("href",i),setTimeout(function(){u.removeClass("animate")},1500)},quadmenuInitItemWidgets(e){n(t).on("show.quadmenu.dropdown",function(e){n(this).find(".widget_media_audio > video, .widget_media_audio > audio").each(function(){this.player.trigger("resize")})}),n(t).on("hidden.quadmenu.dropdown",function(e){n(this).find(".widget_media_video video, .widget_media_video audio").each(function(){this.player.pause()})})}},n.fn.quadmenu=function(e){const t=arguments;if(e===a||"object"==typeof e)return this.each(function(){n.data(this,"plugin_quadmenu")||n.data(this,"plugin_quadmenu",new o(this,e))});if("string"==typeof e&&"_"!==e[0]&&"init"!==e){let i;return this.each(function(){const a=n.data(this,"plugin_quadmenu");a instanceof o&&"function"==typeof a[e]&&(i=a[e].apply(a,Array.prototype.slice.call(t,1))),"destroy"===e&&n.data(this,"plugin_quadmenu",null)}),i!==a?i:this}}}(t(),window,document),function(n){function e(){n("nav#quadmenu").quadmenu()}e(),n(window).on("load",function(){e()})}(t())})();
!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(x){"use strict";var t,e,i,n,W,C,o,s,r,l,a,h,u;function E(t,e,i){return[parseFloat(t[0])*(a.test(t[0])?e/100:1),parseFloat(t[1])*(a.test(t[1])?i/100:1)]}function L(t,e){return parseInt(x.css(t,e),10)||0}function N(t){return null!=t&&t===t.window}x.ui=x.ui||{},x.ui.version="1.13.3",
x.extend(x.expr.pseudos,{data:x.expr.createPseudo?x.expr.createPseudo(function(e){return function(t){return!!x.data(t,e)}}):function(t,e,i){return!!x.data(t,i[3])}}),
x.fn.extend({disableSelection:(t="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}}),
x.ui.focusable=function(t,e){var i,n,o,s=t.nodeName.toLowerCase();return"area"===s?(o=(i=t.parentNode).name,!(!t.href||!o||"map"!==i.nodeName.toLowerCase())&&0<(i=x("img[usemap='#"+o+"']")).length&&i.is(":visible")):(/^(input|select|textarea|button|object)$/.test(s)?(n=!t.disabled)&&(o=x(t).closest("fieldset")[0])&&(n=!o.disabled):n="a"===s&&t.href||e,n&&x(t).is(":visible")&&function(t){var e=t.css("visibility");for(;"inherit"===e;)t=t.parent(),e=t.css("visibility");return"visible"===e}(x(t)))},x.extend(x.expr.pseudos,{focusable:function(t){return x.ui.focusable(t,null!=x.attr(t,"tabindex"))}}),x.fn._form=function(){return"string"==typeof this[0].form?this.closest("form"):x(this[0].form)},
x.ui.formResetMixin={_formResetHandler:function(){var e=x(this);setTimeout(function(){var t=e.data("ui-form-reset-instances");x.each(t,function(){this.refresh()})})},_bindFormResetHandler:function(){var t;this.form=this.element._form(),this.form.length&&((t=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice(x.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}},x.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),
x.expr.pseudos||(x.expr.pseudos=x.expr[":"]),x.uniqueSort||(x.uniqueSort=x.unique),x.escapeSelector||(e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,i=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},x.escapeSelector=function(t){return(t+"").replace(e,i)}),x.fn.even&&x.fn.odd||x.fn.extend({even:function(){return this.filter(function(t){return t%2==0})},odd:function(){return this.filter(function(t){return t%2==1})}}),
x.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},
x.fn.labels=function(){var t,e,i;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(t=this.attr("id"))&&(i=(i=this.eq(0).parents().last()).add((i.length?i:this).siblings()),t="label[for='"+x.escapeSelector(t)+"']",e=e.add(i.find(t).addBack(t))),this.pushStack(e)):this.pushStack([])},x.ui.plugin={add:function(t,e,i){var n,o=x.ui[t].prototype;for(n in i)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([e,i[n]])},call:function(t,e,i,n){var o,s=t.plugins[e];if(s&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(o=0;o<s.length;o++)t.options[s[o][0]]&&s[o][1].apply(t.element,i)}},
W=Math.max,C=Math.abs,o=/left|center|right/,s=/top|center|bottom/,r=/[\+\-]\d+(\.[\d]+)?%?/,l=/^\w+/,a=/%$/,h=x.fn.position,x.position={scrollbarWidth:function(){var t,e,i;return void 0!==n?n:(i=(e=x("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>")).children()[0],x("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),n=t-i)},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?x.position.scrollbarWidth():0,height:e?x.position.scrollbarWidth():0}},getWithinInfo:function(t){var e=x(t||window),i=N(e[0]),n=!!e[0]&&9===e[0].nodeType;return{element:e,isWindow:i,isDocument:n,offset:!i&&!n?x(t).offset():{left:0,top:0},scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop(),width:e.outerWidth(),height:e.outerHeight()}}},x.fn.position=function(f){var c,d,p,g,m,v,y,w,b,_,t,e;return f&&f.of?(v="string"==typeof(f=x.extend({},f)).of?x(document).find(f.of):x(f.of),y=x.position.getWithinInfo(f.within),w=x.position.getScrollInfo(y),b=(f.collision||"flip").split(" "),_={},e=9===(e=(t=v)[0]).nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:N(e)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:e.preventDefault?{width:0,height:0,offset:{top:e.pageY,left:e.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()},v[0].preventDefault&&(f.at="left top"),d=e.width,p=e.height,m=x.extend({},g=e.offset),x.each(["my","at"],function(){var t,e,i=(f[this]||"").split(" ");(i=1===i.length?o.test(i[0])?i.concat(["center"]):s.test(i[0])?["center"].concat(i):["center","center"]:i)[0]=o.test(i[0])?i[0]:"center",i[1]=s.test(i[1])?i[1]:"center",t=r.exec(i[0]),e=r.exec(i[1]),_[this]=[t?t[0]:0,e?e[0]:0],f[this]=[l.exec(i[0])[0],l.exec(i[1])[0]]}),1===b.length&&(b[1]=b[0]),"right"===f.at[0]?m.left+=d:"center"===f.at[0]&&(m.left+=d/2),"bottom"===f.at[1]?m.top+=p:"center"===f.at[1]&&(m.top+=p/2),c=E(_.at,d,p),m.left+=c[0],m.top+=c[1],this.each(function(){var i,t,r=x(this),l=r.outerWidth(),a=r.outerHeight(),e=L(this,"marginLeft"),n=L(this,"marginTop"),o=l+e+L(this,"marginRight")+w.width,s=a+n+L(this,"marginBottom")+w.height,h=x.extend({},m),u=E(_.my,r.outerWidth(),r.outerHeight());"right"===f.my[0]?h.left-=l:"center"===f.my[0]&&(h.left-=l/2),"bottom"===f.my[1]?h.top-=a:"center"===f.my[1]&&(h.top-=a/2),h.left+=u[0],h.top+=u[1],i={marginLeft:e,marginTop:n},x.each(["left","top"],function(t,e){x.ui.position[b[t]]&&x.ui.position[b[t]][e](h,{targetWidth:d,targetHeight:p,elemWidth:l,elemHeight:a,collisionPosition:i,collisionWidth:o,collisionHeight:s,offset:[c[0]+u[0],c[1]+u[1]],my:f.my,at:f.at,within:y,elem:r})}),f.using&&(t=function(t){var e=g.left-h.left,i=e+d-l,n=g.top-h.top,o=n+p-a,s={target:{element:v,left:g.left,top:g.top,width:d,height:p},element:{element:r,left:h.left,top:h.top,width:l,height:a},horizontal:i<0?"left":0<e?"right":"center",vertical:o<0?"top":0<n?"bottom":"middle"};d<l&&C(e+i)<d&&(s.horizontal="center"),p<a&&C(n+o)<p&&(s.vertical="middle"),W(C(e),C(i))>W(C(n),C(o))?s.important="horizontal":s.important="vertical",f.using.call(this,t,s)}),r.offset(x.extend(h,{using:t}))})):h.apply(this,arguments)},x.ui.position={fit:{left:function(t,e){var i,n=e.within,o=n.isWindow?n.scrollLeft:n.offset.left,n=n.width,s=t.left-e.collisionPosition.marginLeft,r=o-s,l=s+e.collisionWidth-n-o;n<e.collisionWidth?0<r&&l<=0?(i=t.left+r+e.collisionWidth-n-o,t.left+=r-i):t.left=!(0<l&&r<=0)&&l<r?o+n-e.collisionWidth:o:0<r?t.left+=r:0<l?t.left-=l:t.left=W(t.left-s,t.left)},top:function(t,e){var i,n=e.within,n=n.isWindow?n.scrollTop:n.offset.top,o=e.within.height,s=t.top-e.collisionPosition.marginTop,r=n-s,l=s+e.collisionHeight-o-n;o<e.collisionHeight?0<r&&l<=0?(i=t.top+r+e.collisionHeight-o-n,t.top+=r-i):t.top=!(0<l&&r<=0)&&l<r?n+o-e.collisionHeight:n:0<r?t.top+=r:0<l?t.top-=l:t.top=W(t.top-s,t.top)}},flip:{left:function(t,e){var i=e.within,n=i.offset.left+i.scrollLeft,o=i.width,i=i.isWindow?i.scrollLeft:i.offset.left,s=t.left-e.collisionPosition.marginLeft,r=s-i,s=s+e.collisionWidth-o-i,l="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,a="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,h=-2*e.offset[0];r<0?((o=t.left+l+a+h+e.collisionWidth-o-n)<0||o<C(r))&&(t.left+=l+a+h):0<s&&(0<(n=t.left-e.collisionPosition.marginLeft+l+a+h-i)||C(n)<s)&&(t.left+=l+a+h)},top:function(t,e){var i=e.within,n=i.offset.top+i.scrollTop,o=i.height,i=i.isWindow?i.scrollTop:i.offset.top,s=t.top-e.collisionPosition.marginTop,r=s-i,s=s+e.collisionHeight-o-i,l="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,a="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,h=-2*e.offset[1];r<0?((o=t.top+l+a+h+e.collisionHeight-o-n)<0||o<C(r))&&(t.top+=l+a+h):0<s&&(0<(n=t.top-e.collisionPosition.marginTop+l+a+h-i)||C(n)<s)&&(t.top+=l+a+h)}},flipfit:{left:function(){x.ui.position.flip.left.apply(this,arguments),x.ui.position.fit.left.apply(this,arguments)},top:function(){x.ui.position.flip.top.apply(this,arguments),x.ui.position.fit.top.apply(this,arguments)}}},x.ui.safeActiveElement=function(e){var i;try{i=e.activeElement}catch(t){i=e.body}return i=(i=i||e.body).nodeName?i:e.body},x.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&x(t).trigger("blur")},
x.fn.scrollParent=function(t){var e=this.css("position"),i="absolute"===e,n=t?/(auto|scroll|hidden)/:/(auto|scroll)/,t=this.parents().filter(function(){var t=x(this);return(!i||"static"!==t.css("position"))&&n.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&t.length?t:x(this[0].ownerDocument||document)},
x.extend(x.expr.pseudos,{tabbable:function(t){var e=x.attr(t,"tabindex"),i=null!=e;return(!i||0<=e)&&x.ui.focusable(t,i)}}),
x.fn.extend({uniqueId:(u=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++u)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&x(this).removeAttr("id")})}});
var f,c=0,d=Array.prototype.hasOwnProperty,p=Array.prototype.slice;x.cleanData=(f=x.cleanData,function(t){for(var e,i,n=0;null!=(i=t[n]);n++)(e=x._data(i,"events"))&&e.remove&&x(i).triggerHandler("remove");f(t)}),x.widget=function(t,i,e){var n,o,s,r={},l=t.split(".")[0],a=l+"-"+(t=t.split(".")[1]);return e||(e=i,i=x.Widget),Array.isArray(e)&&(e=x.extend.apply(null,[{}].concat(e))),x.expr.pseudos[a.toLowerCase()]=function(t){return!!x.data(t,a)},x[l]=x[l]||{},n=x[l][t],o=x[l][t]=function(t,e){if(!this||!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},x.extend(o,n,{version:e.version,_proto:x.extend({},e),_childConstructors:[]}),(s=new i).options=x.widget.extend({},s.options),x.each(e,function(e,n){function o(){return i.prototype[e].apply(this,arguments)}function s(t){return i.prototype[e].apply(this,t)}r[e]="function"!=typeof n?n:function(){var t,e=this._super,i=this._superApply;return this._super=o,this._superApply=s,t=n.apply(this,arguments),this._super=e,this._superApply=i,t}}),o.prototype=x.widget.extend(s,{widgetEventPrefix:n&&s.widgetEventPrefix||t},r,{constructor:o,namespace:l,widgetName:t,widgetFullName:a}),n?(x.each(n._childConstructors,function(t,e){var i=e.prototype;x.widget(i.namespace+"."+i.widgetName,o,e._proto)}),delete n._childConstructors):i._childConstructors.push(o),x.widget.bridge(t,o),o},x.widget.extend=function(t){for(var e,i,n=p.call(arguments,1),o=0,s=n.length;o<s;o++)for(e in n[o])i=n[o][e],d.call(n[o],e)&&void 0!==i&&(x.isPlainObject(i)?t[e]=x.isPlainObject(t[e])?x.widget.extend({},t[e],i):x.widget.extend({},i):t[e]=i);return t},x.widget.bridge=function(s,e){var r=e.prototype.widgetFullName||s;x.fn[s]=function(i){var t="string"==typeof i,n=p.call(arguments,1),o=this;return t?this.length||"instance"!==i?this.each(function(){var t,e=x.data(this,r);return"instance"===i?(o=e,!1):e?"function"!=typeof e[i]||"_"===i.charAt(0)?x.error("no such method '"+i+"' for "+s+" widget instance"):(t=e[i].apply(e,n))!==e&&void 0!==t?(o=t&&t.jquery?o.pushStack(t.get()):t,!1):void 0:x.error("cannot call methods on "+s+" prior to initialization; attempted to call method '"+i+"'")}):o=void 0:(n.length&&(i=x.widget.extend.apply(null,[i].concat(n))),this.each(function(){var t=x.data(this,r);t?(t.option(i||{}),t._init&&t._init()):x.data(this,r,new e(i,this))})),o}},x.Widget=function(){},x.Widget._childConstructors=[],x.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=x(e||this.defaultElement||this)[0],this.element=x(e),this.uuid=c++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),this.classesElementLookup={},e!==this&&(x.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=x(e.style?e.ownerDocument:e.document||e),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){var i=this;this._destroy(),x.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:x.noop,widget:function(){return this.element},option:function(t,e){var i,n,o,s=t;if(0===arguments.length)return x.widget.extend({},this.options);if("string"==typeof t)if(s={},t=(i=t.split(".")).shift(),i.length){for(n=s[t]=x.widget.extend({},this.options[t]),o=0;o<i.length-1;o++)n[i[o]]=n[i[o]]||{},n=n[i[o]];if(t=i.pop(),1===arguments.length)return void 0===n[t]?null:n[t];n[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];s[t]=e}return this._setOptions(s),this},_setOptions:function(t){for(var e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(t){var e,i,n;for(e in t)n=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&n&&n.length&&(i=x(n.get()),this._removeClass(n,e),i.addClass(this._classes({element:i,keys:e,classes:t,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(o){var s=[],r=this;function t(t,e){for(var i,n=0;n<t.length;n++)i=r.classesElementLookup[t[n]]||x(),i=o.add?(function(){var i=[];o.element.each(function(t,e){x.map(r.classesElementLookup,function(t){return t}).some(function(t){return t.is(e)})||i.push(e)}),r._on(x(i),{remove:"_untrackClassesElement"})}(),x(x.uniqueSort(i.get().concat(o.element.get())))):x(i.not(o.element).get()),r.classesElementLookup[t[n]]=i,s.push(t[n]),e&&o.classes[t[n]]&&s.push(o.classes[t[n]])}return(o=x.extend({element:this.element,classes:this.options.classes||{}},o)).keys&&t(o.keys.match(/\S+/g)||[],!0),o.extra&&t(o.extra.match(/\S+/g)||[]),s.join(" ")},_untrackClassesElement:function(i){var n=this;x.each(n.classesElementLookup,function(t,e){-1!==x.inArray(i.target,e)&&(n.classesElementLookup[t]=x(e.not(i.target).get()))}),this._off(x(i.target))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,n){var o="string"==typeof t||null===t,e={extra:o?e:i,keys:o?t:e,element:o?this.element:t,add:n="boolean"==typeof n?n:i};return e.element.toggleClass(this._classes(e),n),this},_on:function(o,s,t){var r,l=this;"boolean"!=typeof o&&(t=s,s=o,o=!1),t?(s=r=x(s),this.bindings=this.bindings.add(s)):(t=s,s=this.element,r=this.widget()),x.each(t,function(t,e){function i(){if(o||!0!==l.options.disabled&&!x(this).hasClass("ui-state-disabled"))return("string"==typeof e?l[e]:e).apply(l,arguments)}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||x.guid++);var t=t.match(/^([\w:-]*)\s*(.*)$/),n=t[1]+l.eventNamespace,t=t[2];t?r.on(n,t,i):s.on(n,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e),this.bindings=x(this.bindings.not(t).get()),this.focusable=x(this.focusable.not(t).get()),this.hoverable=x(this.hoverable.not(t).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(x(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(x(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,i){var n,o,s=this.options[t];if(i=i||{},(e=x.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],o=e.originalEvent)for(n in o)n in e||(e[n]=o[n]);return this.element.trigger(e,i),!("function"==typeof s&&!1===s.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},x.each({show:"fadeIn",hide:"fadeOut"},function(s,r){x.Widget.prototype["_"+s]=function(e,t,i){var n,o=(t="string"==typeof t?{effect:t}:t)?!0!==t&&"number"!=typeof t&&t.effect||r:s;"number"==typeof(t=t||{})?t={duration:t}:!0===t&&(t={}),n=!x.isEmptyObject(t),t.complete=i,t.delay&&e.delay(t.delay),n&&x.effects&&x.effects.effect[o]?e[s](t):o!==s&&e[o]?e[o](t.duration,t.easing,i):e.queue(function(t){x(this)[s](),i&&i.call(e[0]),t()})}})});
(()=>{var t={507:(t,e,r)=>{"use strict";r.d(e,{A:()=>A});var n=function(t){return"string"!=typeof t||""===t?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(t)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};var i=function(t){return"string"!=typeof t||""===t?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(t)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(t)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};var o=function(t,e){return function(r,o,s,c=10){const l=t[e];if(!i(r))return;if(!n(o))return;if("function"!=typeof s)return void console.error("The hook callback must be a function.");if("number"!=typeof c)return void console.error("If specified, the hook priority must be a number.");const a={callback:s,priority:c,namespace:o};if(l[r]){const t=l[r].handlers;let e;for(e=t.length;e>0&&!(c>=t[e-1].priority);e--);e===t.length?t[e]=a:t.splice(e,0,a),l.__current.forEach((t=>{t.name===r&&t.currentIndex>=e&&t.currentIndex++}))}else l[r]={handlers:[a],runs:0};"hookAdded"!==r&&t.doAction("hookAdded",r,o,s,c)}};var s=function(t,e,r=!1){return function(o,s){const c=t[e];if(!i(o))return;if(!r&&!n(s))return;if(!c[o])return 0;let l=0;if(r)l=c[o].handlers.length,c[o]={runs:c[o].runs,handlers:[]};else{const t=c[o].handlers;for(let e=t.length-1;e>=0;e--)t[e].namespace===s&&(t.splice(e,1),l++,c.__current.forEach((t=>{t.name===o&&t.currentIndex>=e&&t.currentIndex--})))}return"hookRemoved"!==o&&t.doAction("hookRemoved",o,s),l}};var c=function(t,e){return function(r,n){const i=t[e];return void 0!==n?r in i&&i[r].handlers.some((t=>t.namespace===n)):r in i}};var l=function(t,e,r,n){return function(i,...o){const s=t[e];s[i]||(s[i]={handlers:[],runs:0}),s[i].runs++;const c=s[i].handlers;if(!c||!c.length)return r?o[0]:void 0;const l={name:i,currentIndex:0};return(n?async function(){try{s.__current.add(l);let t=r?o[0]:void 0;for(;l.currentIndex<c.length;){const e=c[l.currentIndex];t=await e.callback.apply(null,o),r&&(o[0]=t),l.currentIndex++}return r?t:void 0}finally{s.__current.delete(l)}}:function(){try{s.__current.add(l);let t=r?o[0]:void 0;for(;l.currentIndex<c.length;){t=c[l.currentIndex].callback.apply(null,o),r&&(o[0]=t),l.currentIndex++}return r?t:void 0}finally{s.__current.delete(l)}})()}};var a=function(t,e){return function(){const r=t[e],n=Array.from(r.__current);return n.at(-1)?.name??null}};var d=function(t,e){return function(r){const n=t[e];return void 0===r?n.__current.size>0:Array.from(n.__current).some((t=>t.name===r))}};var u=function(t,e){return function(r){const n=t[e];if(i(r))return n[r]&&n[r].runs?n[r].runs:0}};class h{actions;filters;addAction;addFilter;removeAction;removeFilter;hasAction;hasFilter;removeAllActions;removeAllFilters;doAction;doActionAsync;applyFilters;applyFiltersAsync;currentAction;currentFilter;doingAction;doingFilter;didAction;didFilter;constructor(){this.actions=Object.create(null),this.actions.__current=new Set,this.filters=Object.create(null),this.filters.__current=new Set,this.addAction=o(this,"actions"),this.addFilter=o(this,"filters"),this.removeAction=s(this,"actions"),this.removeFilter=s(this,"filters"),this.hasAction=c(this,"actions"),this.hasFilter=c(this,"filters"),this.removeAllActions=s(this,"actions",!0),this.removeAllFilters=s(this,"filters",!0),this.doAction=l(this,"actions",!1,!1),this.doActionAsync=l(this,"actions",!1,!0),this.applyFilters=l(this,"filters",!0,!1),this.applyFiltersAsync=l(this,"filters",!0,!0),this.currentAction=a(this,"actions"),this.currentFilter=a(this,"filters"),this.doingAction=d(this,"actions"),this.doingFilter=d(this,"filters"),this.didAction=u(this,"actions"),this.didFilter=u(this,"filters")}}var A=function(){return new h}},8770:()=>{}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,r),o.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{actions:()=>x,addAction:()=>s,addFilter:()=>c,applyFilters:()=>m,applyFiltersAsync:()=>v,createHooks:()=>t.A,currentAction:()=>y,currentFilter:()=>F,defaultHooks:()=>o,didAction:()=>b,didFilter:()=>k,doAction:()=>f,doActionAsync:()=>p,doingAction:()=>_,doingFilter:()=>g,filters:()=>w,hasAction:()=>d,hasFilter:()=>u,removeAction:()=>l,removeAllActions:()=>h,removeAllFilters:()=>A,removeFilter:()=>a});var t=r(507),e=r(8770),i={};for(const t in e)["default","actions","addAction","addFilter","applyFilters","applyFiltersAsync","createHooks","currentAction","currentFilter","defaultHooks","didAction","didFilter","doAction","doActionAsync","doingAction","doingFilter","filters","hasAction","hasFilter","removeAction","removeAllActions","removeAllFilters","removeFilter"].indexOf(t)<0&&(i[t]=()=>e[t]);r.d(n,i);const o=(0,t.A)(),{addAction:s,addFilter:c,removeAction:l,removeFilter:a,hasAction:d,hasFilter:u,removeAllActions:h,removeAllFilters:A,doAction:f,doActionAsync:p,applyFilters:m,applyFiltersAsync:v,currentAction:y,currentFilter:F,doingAction:_,doingFilter:g,didAction:b,didFilter:k,actions:x,filters:w}=o})(),(window.wp=window.wp||{}).hooks=n})();
(()=>{var e={609:()=>{{const e="wpforms",o=window.jQuery;o(document).on("wpformsAjaxSubmitSuccess",".wpforms-ajax-form",function(t,n){const i=o(this),r=i.data("formid"),s=o("form#"+i.attr("id")).index(i)+1;window.PUM.integrations.formSubmission(i,{formProvider:e,formId:r,formInstanceId:s})})}},824:function(e,o,t){!function(){"use strict";function e(e){var o=this.constructor;return this.then(function(t){return o.resolve(e()).then(function(){return t})},function(t){return o.resolve(e()).then(function(){return o.reject(t)})})}var o=setTimeout;function n(e){return Boolean(e&&void 0!==e.length)}function i(){}function r(e){if(!(this instanceof r))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],l(e,this)}function s(e,o){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,r._immediateFn(function(){var t=1===e._state?o.onFulfilled:o.onRejected;if(null!==t){var n;try{n=t(e._value)}catch(e){return void p(o.promise,e)}a(o.promise,n)}else(1===e._state?a:p)(o.promise,e._value)})):e._deferreds.push(o)}function a(e,o){try{if(o===e)throw new TypeError("A promise cannot be resolved with itself.");if(o&&("object"==typeof o||"function"==typeof o)){var t=o.then;if(o instanceof r)return e._state=3,e._value=o,void u(e);if("function"==typeof t)return void l((n=t,i=o,function(){n.apply(i,arguments)}),e)}e._state=1,e._value=o,u(e)}catch(o){p(e,o)}var n,i}function p(e,o){e._state=2,e._value=o,u(e)}function u(e){2===e._state&&0===e._deferreds.length&&r._immediateFn(function(){e._handled||r._unhandledRejectionFn(e._value)});for(var o=0,t=e._deferreds.length;o<t;o++)s(e,e._deferreds[o]);e._deferreds=null}function c(e,o,t){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof o?o:null,this.promise=t}function l(e,o){var t=!1;try{e(function(e){t||(t=!0,a(o,e))},function(e){t||(t=!0,p(o,e))})}catch(e){if(t)return;t=!0,p(o,e)}}r.prototype.catch=function(e){return this.then(null,e)},r.prototype.then=function(e,o){var t=new this.constructor(i);return s(this,new c(e,o,t)),t},r.prototype.finally=e,r.all=function(e){return new r(function(o,t){if(!n(e))return t(new TypeError("Promise.all accepts an array"));var i=Array.prototype.slice.call(e);if(0===i.length)return o([]);var r=i.length;function s(e,n){try{if(n&&("object"==typeof n||"function"==typeof n)){var a=n.then;if("function"==typeof a)return void a.call(n,function(o){s(e,o)},t)}i[e]=n,0===--r&&o(i)}catch(e){t(e)}}for(var a=0;a<i.length;a++)s(a,i[a])})},r.resolve=function(e){return e&&"object"==typeof e&&e.constructor===r?e:new r(function(o){o(e)})},r.reject=function(e){return new r(function(o,t){t(e)})},r.race=function(e){return new r(function(o,t){if(!n(e))return t(new TypeError("Promise.race accepts an array"));for(var i=0,s=e.length;i<s;i++)r.resolve(e[i]).then(o,t)})},r._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){o(e,0)},r._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var d=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==t.g)return t.g;throw new Error("unable to locate global object")}();"Promise"in d?d.Promise.prototype.finally||(d.Promise.prototype.finally=e):d.Promise=r}()},999:()=>{!function(e){"use strict";window.PUM=window.PUM||{},window.PUM_URLTracking={init:function(){this.addPopupOpenTracking()},addPopupOpenTracking:function(){var o=this;e(document).on("pumAfterOpen.url_tracking",".pum",function(){var e=window.PUM.getPopup(this),t=e.popmake("getSettings"),n=parseInt(t.id,10);n>0&&o.processPopupLinks(e,n)})},processPopupLinks:function(o,t){var n=this;o.find("a[href]").each(function(){var i=e(this),r=i.attr("href");if(n.isInternalUrl(r)){var s={pid:t};window.PUM&&window.PUM.hooks&&(s=window.PUM.hooks.applyFilters("popupMaker.popup.linkUrlParams",s,o,i));var a=n.appendParamsToUrl(r,s);i.attr("href",a)}})},isInternalUrl:function(e){if(!e||"#"===e||0===e.indexOf("#"))return!1;if(0===e.indexOf("/")&&0!==e.indexOf("//"))return!0;if(0===e.indexOf("//")&&(e=window.location.protocol+e),0===e.indexOf("http"))try{return new URL(e).hostname===window.location.hostname}catch(e){return!1}return!0},appendParamsToUrl:function(e,o){try{var t=new URL(e,window.location.origin);for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&o[n]&&t.searchParams.set(n,o[n]);return t.toString()}catch(t){var i="";for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&o[r]&&(i.length>0&&(i+="&"),i+=encodeURIComponent(r)+"="+encodeURIComponent(o[r]));if(i.length>0){var s=-1!==e.indexOf("?")?"&":"?";return e+s+i}return e}}},e(function(){window.PUM_URLTracking.init()})}(jQuery)},1154:()=>{{const e="bricksbuilder",o=window.jQuery;o(document).on("bricks/form/success",function(t){const n=t.detail.elementId,i=t.detail.formData,r=o('[data-element-id="'+n+'"]');if(!r.length)return;const s=n,a=r.index('[data-element-id^="'+n.replace(/\d+$/,"")+'"]')+1;window.PUM.integrations.formSubmission(r,{formProvider:e,formId:s,formInstanceId:a,extras:{formData:i,elementId:n,bricksEvent:t.detail}})})}},1531:()=>{!function(e,o,t){"use strict";var n=function(o){e.pm_cookie(o.name,!0,o.session?null:o.time,o.path?pum_vars.home_url||"/":null),pum.hooks.doAction("popmake.setCookie",o)};e.extend(e.fn.popmake.methods,{addCookie:function(o){return pum.hooks.doAction("popmake.addCookie",arguments),e.fn.popmake.cookies[o]?e.fn.popmake.cookies[o].apply(this,Array.prototype.slice.call(arguments,1)):(window.console&&console.warn("Cookie type "+o+" does not exist."),this)},setCookie:n,checkCookies:function(o){var n,i=!1;if(o.cookie_name===t||null===o.cookie_name||""===o.cookie_name)return!1;switch(typeof o.cookie_name){case"object":case"array":for(n=0;o.cookie_name.length>n;n+=1)e.pm_cookie(o.cookie_name[n])!==t&&(i=!0);break;case"string":e.pm_cookie(o.cookie_name)!==t&&(i=!0)}return pum.hooks.doAction("popmake.checkCookies",o,i),i}}),e.fn.popmake.cookies=e.fn.popmake.cookies||{},e.extend(e.fn.popmake.cookies,{on_popup_open:function(e){var o=PUM.getPopup(this);o.on("pumAfterOpen",function(){o.popmake("setCookie",e)})},on_popup_close:function(e){var o=PUM.getPopup(this);o.on("pumBeforeClose",function(){o.popmake("setCookie",e)})},on_popup_conversion:function(e){var o=PUM.getPopup(this);o.on("pumConversion",function(){o.popmake("setCookie",e)})},form_submission:function(o){var t=PUM.getPopup(this);o=e.extend({form:"",formInstanceId:"",only_in_popup:!1},o),PUM.hooks.addAction("pum.integration.form.success",function(e,n){o.form.length&&PUM.integrations.checkFormKeyMatches(o.form,o.formInstanceId,n)&&(o.only_in_popup&&n.popup.length&&n.popup.is(t)||!o.only_in_popup)&&t.popmake("setCookie",o)})},manual:function(e){var o=PUM.getPopup(this);o.on("pumSetCookie",function(){o.popmake("setCookie",e)})},form_success:function(e){var o=PUM.getPopup(this);o.on("pumFormSuccess",function(){o.popmake("setCookie",e)})},pum_sub_form_success:function(e){var o=PUM.getPopup(this);o.find("form.pum-sub-form").on("success",function(){o.popmake("setCookie",e)})},pum_sub_form_already_subscribed:function(e){var o=PUM.getPopup(this);o.find("form.pum-sub-form").on("success",function(){o.popmake("setCookie",e)})},ninja_form_success:function(o){return e.fn.popmake.cookies.form_success.apply(this,arguments)},cf7_form_success:function(o){return e.fn.popmake.cookies.form_success.apply(this,arguments)},gforms_form_success:function(o){return e.fn.popmake.cookies.form_success.apply(this,arguments)}}),e(o).on("pumInit",".pum",function(){var e,o=PUM.getPopup(this),t=o.popmake("getSettings").cookies||[],n=null;if(t.length)for(e=0;t.length>e;e+=1)n=t[e],o.popmake("addCookie",n.event,n.settings)}),e(function(){var o=e(".pum-cookie");o.each(function(){var t=e(this),i=o.index(t),r=t.data("cookie-args");t.data("only-onscreen")?t.isInViewport()&&t.is(":visible")?n(r):e(window).on("scroll.pum-cookie-"+i,e.fn.popmake.utilities.throttle(function(o){t.isInViewport()&&t.is(":visible")&&(n(r),e(window).off("scroll.pum-cookie-"+i))},100)):n(r)})})}(jQuery,document)},1632:()=>{!function(e){"use strict";e.fn.popmake.last_open_trigger=null,e.fn.popmake.last_close_trigger=null,e.fn.popmake.conversion_trigger=null;var o=!(void 0===pum_vars.analytics_api||!pum_vars.analytics_api);window.PUM_Analytics={beacon:function(t,n){var i=o?pum_vars.analytics_api:pum_vars.ajaxurl,r={route:window.pum.hooks.applyFilters("pum.analyticsBeaconRoute","/"+pum_vars.analytics_route+"/"),data:window.pum.hooks.applyFilters("pum.AnalyticsBeaconData",e.extend(!0,{event:"open",pid:null,_cache:+new Date},t)),callback:"function"==typeof n?n:function(){}};if(o?i+=r.route:r.data.action="pum_analytics",i){if("sendBeacon"in navigator)try{var s=new FormData;for(var a in r.data)if(Object.prototype.hasOwnProperty.call(r.data,a)){var p=r.data[a];"object"==typeof p&&null!==p&&(p=JSON.stringify(p)),s.append(a,p)}return void(navigator.sendBeacon(i,s)&&r.callback())}catch(e){console.warn("sendBeacon failed, falling back to image beacon:",e)}var u=new Image;e(u).on("error success load done",r.callback),u.src=i+"?"+e.param(r.data)}}},pum_vars.analytics_enabled&&(e(document).on("pumAfterOpen.core_analytics",".pum",function(){var o=window.PUM.getPopup(this),t={pid:parseInt(o.popmake("getSettings").id,10)||null};t.pid>0&&!e("body").hasClass("single-popup")&&window.PUM_Analytics.beacon(t)}),e(function(){window.PUM.coreFormAnalyticsHandler=function(o,t){if(!1!==t.ajax&&0!==t.popup.length){var n={pid:parseInt(t.popup.popmake("getSettings").id,10)||null,event:"conversion"};n.pid>0&&!e("body").hasClass("single-popup")&&window.PUM_Analytics.beacon(n)}},window.PUM.hooks.addAction("pum.integration.form.success",window.PUM.coreFormAnalyticsHandler)}))}(jQuery)},1868:()=>{var e;!function(o,t){"use strict";var n,i,r="a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]",s=".pum:not(.pum-accessibility-disabled)";e={forceFocus:function(o){i&&i.length&&!i[0].contains(o.target)&&(o.stopPropagation(),e.setFocusToFirstItem())},trapTabKey:function(e){if(9===e.keyCode){var t=i.find(".pum-container *").filter(r).filter(":visible"),n=o(":focus"),s=t.length,a=t.index(n);e.shiftKey?0===a&&(t.get(s-1).focus(),e.preventDefault()):a===s-1&&(t.get(0).focus(),e.preventDefault())}},setFocusToFirstItem:function(){i.find(".pum-container *").filter(r).filter(":visible").first().trigger("focus")},initiateFocusLock:function(){var r=PUM.getPopup(this),s=o(":focus");r.has(s).length||(n=s),i=r.on("keydown.pum_accessibility",e.trapTabKey),o(t).one("focusin.pum_accessibility",e.forceFocus),e.setFocusToFirstItem()}},o(t).on("pumInit",s,function(){PUM.getPopup(this).find("[tabindex]").each(function(){var e=o(this);e.data("tabindex",e.attr("tabindex")).prop("tabindex","0")})}).on("pumBeforeOpen",s,function(){}).on("pumAfterOpen",s,e.initiateFocusLock).on("pumAfterOpen",s,function(){var e=PUM.getPopup(this);i=e.attr("aria-modal","true")}).on("pumBeforeClose",s,function(){}).on("pumAfterClose",s,function(){PUM.getPopup(this).off("keydown.pum_accessibility").attr("aria-modal","false"),void 0!==n&&n.length&&n.trigger("focus"),i=null,o(t).off("focusin.pum_accessibility")}).on("pumSetupClose",s,function(){}).on("pumOpenPrevented",s,function(){}).on("pumClosePrevented",s,function(){}).on("pumBeforeReposition",s,function(){})}(jQuery,document)},1935:()=>{!function(e,o){"use strict";window.PUM.getLastOpenTrigger=function(){return e.fn.popmake.last_open_trigger},window.PUM.setLastOpenTrigger=o=>{e.fn.popmake.last_open_trigger=o},e.extend(e.fn.popmake.methods,{addTrigger:function(n){return function(){if(Object.keys(t).length)return t;t=window.PUM.hooks.applyFilters("popupMaker.triggers",{auto_open:function(o){var t=PUM.getPopup(this);setTimeout(function(){t.popmake("state","isOpen")||!t.popmake("checkCookies",o)&&t.popmake("checkConditions")&&(e.fn.popmake.last_open_trigger="Auto Open - Delay: "+o.delay,t.popmake("open"))},o.delay)},click_open:function(t){var n,i=PUM.getPopup(this),r=i.popmake("getSettings"),s=[".popmake-"+r.id,".popmake-"+decodeURIComponent(r.slug),'a[href$="#popmake-'+r.id+'"]'];t.extra_selectors&&""!==t.extra_selectors&&s.push(t.extra_selectors),n=(s=pum.hooks.applyFilters("pum.trigger.click_open.selectors",s,t,i)).join(", "),e(n).addClass("pum-trigger").css({cursor:"pointer"}),e(o).on("click.pumTrigger",n,function(o){var n=e(this),r=t.do_default||!1;i.has(n).length>0||i.popmake("state","isOpen")||!i.popmake("checkCookies",t)&&i.popmake("checkConditions")&&(n.data("do-default")?r=n.data("do-default"):(n.hasClass("do-default")||n.hasClass("popmake-do-default")||n.hasClass("pum-do-default"))&&(r=!0),o.ctrlKey||pum.hooks.applyFilters("pum.trigger.click_open.do_default",r,i,n)||(o.preventDefault(),o.stopPropagation()),e.fn.popmake.last_open_trigger=n,i.popmake("open"))})},form_submission:function(o){var t=PUM.getPopup(this);o=e.extend({form:"",formInstanceId:"",delay:0},o);PUM.hooks.addAction("pum.integration.form.success",function(n,i){o.form.length&&PUM.integrations.checkFormKeyMatches(o.form,o.formInstanceId,i)&&setTimeout(function(){t.popmake("state","isOpen")||!t.popmake("checkCookies",o)&&t.popmake("checkConditions")&&(e.fn.popmake.last_open_trigger="Form Submission",t.popmake("open"))},o.delay)})},admin_debug:function(){PUM.getPopup(this).popmake("open")}}),t=e.extend(t,e.fn.popmake.triggers),e.fn.popmake.triggers=t}(),e.fn.popmake.triggers[n]?e.fn.popmake.triggers[n].apply(this,Array.prototype.slice.call(arguments,1)):(window.console&&console.warn("Trigger type "+n+" does not exist."),this)}});let t={};e(o).on("pumInit",".pum",function(){var e,o=PUM.getPopup(this),t=o.popmake("getSettings").triggers||[],n=null;if(t.length)for(e=0;t.length>e;e+=1)n=t[e],o.popmake("addTrigger",n.type,n.settings)}),e.fn.popmake=e.fn.popmake||{},e.fn.popmake.triggers=e.fn.popmake.triggers||{}}(jQuery,document)},2900:()=>{{const e="ninjaforms",o=window.jQuery;let t=!1;const n=()=>{"undefined"!=typeof Marionette&&"undefined"!=typeof nfRadio&&!1===t&&(t=Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("forms"),"submit:response",this.popupMaker)},popupMaker:function(t,n,i,r){const s=o("#nf-form-"+r+"-cont"),[a,p=null]=r.split("_"),u={};t.errors&&t.errors.length||(window.PUM.integrations.formSubmission(s,{formProvider:e,formId:a,formInstanceId:p,extras:{response:t}}),t.data&&t.data.actions&&(u.openpopup=void 0!==t.data.actions.openpopup,u.openpopup_id=u.openpopup?parseInt(t.data.actions.openpopup):0,u.closepopup=void 0!==t.data.actions.closepopup,u.closedelay=u.closepopup?parseInt(t.data.actions.closepopup):0,u.closepopup&&t.data.actions.closedelay&&(u.closedelay=parseInt(t.data.actions.closedelay))),window.PUM.forms.success(s,u))}}),new t)};o(n)}},2927:()=>{var e,o=!1;!function(t,n){if(n=window.pum_vars||{debug_mode:!1},(o=void 0!==n.debug_mode&&n.debug_mode)||-1===window.location.href.indexOf("pum_debug")||(o=!0),o){var i=!1,r=!1,s=window.pum_debug_vars||{debug_mode_enabled:"Popup Maker: Debug Mode Enabled",debug_started_at:"Debug started at:",debug_more_info:"For more information on how to use this information visit https://wppopupmaker.com/docs/?utm_medium=js-debug-info&utm_campaign=contextual-help&utm_source=browser-console&utm_content=more-info",global_info:"Global Information",localized_vars:"Localized variables",popups_initializing:"Popups Initializing",popups_initialized:"Popups Initialized",single_popup_label:"Popup: #",theme_id:"Theme ID: ",label_method_call:"Method Call:",label_method_args:"Method Arguments:",label_popup_settings:"Settings",label_triggers:"Triggers",label_cookies:"Cookies",label_delay:"Delay:",label_conditions:"Conditions",label_cookie:"Cookie:",label_settings:"Settings:",label_selector:"Selector:",label_mobile_disabled:"Mobile Disabled:",label_tablet_disabled:"Tablet Disabled:",label_event:"Event: %s",triggers:[],cookies:[]};e={odump:function(e){return t.extend({},e)},logo:function(){console.log(" -------------------------------------------------------------\n|  ____                           __  __       _              |\n| |  _ \\ ___  _ __  _   _ _ __   |  \\/  | __ _| | _____ _ __  |\n| | |_) / _ \\| '_ \\| | | | '_ \\  | |\\/| |/ _` | |/ / _ \\ '__| |\n| |  __/ (_) | |_) | |_| | |_) | | |  | | (_| |   <  __/ |    |\n| |_|   \\___/| .__/ \\__,_| .__/  |_|  |_|\\__,_|_|\\_\\___|_|    |\n|            |_|         |_|                                  |\n -------------------------------------------------------------")},initialize:function(){i=!0,e.logo(),console.log("init popups ✔"),console.debug(s.debug_mode_enabled),console.log(s.debug_started_at,new Date),console.info(s.debug_more_info),e.divider(s.global_info),console.groupCollapsed(s.localized_vars),console.log("pum_vars:",e.odump(n)),t(document).trigger("pum_debug_initialize_localized_vars"),console.groupEnd(),t(document).trigger("pum_debug_initialize")},popup_event_header:function(o){var t=o.popmake("getSettings");r!==t.id&&(r=t.id,e.divider(s.single_popup_label+t.id+" - "+t.slug))},divider:function(e){try{var o=62,t=0,n=" "+new Array(63).join("-")+" ",i=e;"string"==typeof e?(e.length>62&&(i=i.substring(0,62)),o=62-i.length,(t={left:Math.floor(o/2),right:Math.floor(o/2)}).left+t.right===o-1&&t.right++,t.left=new Array(t.left+1).join(" "),t.right=new Array(t.right+1).join(" "),console.log(n+"\n|"+t.left+i+t.right+"|\n"+n)):console.log(n)}catch(e){console.error("Got a '"+e+"' when printing out the heading divider to the console.")}},click_trigger:function(e,o){var t,n=e.popmake("getSettings"),i=[".popmake-"+n.id,".popmake-"+decodeURIComponent(n.slug),'a[href$="#popmake-'+n.id+'"]'];o.extra_selectors&&""!==o.extra_selectors&&i.push(o.extra_selectors),t=(i=pum.hooks.applyFilters("pum.trigger.click_open.selectors",i,o,e)).join(", "),console.log(s.label_selector,t)},trigger:function(o,n){if("string"==typeof s.triggers[n.type]){switch(console.groupCollapsed(s.triggers[n.type]),n.type){case"auto_open":console.log(s.label_delay,n.settings.delay),console.log(s.label_cookie,n.settings.cookie_name);break;case"click_open":e.click_trigger(o,n.settings),console.log(s.label_cookie,n.settings.cookie_name)}t(document).trigger("pum_debug_render_trigger",o,n),console.groupEnd()}},cookie:function(o,n){if("string"==typeof s.cookies[n.event]){switch(console.groupCollapsed(s.cookies[n.event]),n.event){case"on_popup_open":case"on_popup_close":case"manual":case"ninja_form_success":console.log(s.label_cookie,e.odump(n.settings))}t(document).trigger("pum_debug_render_trigger",o,n),console.groupEnd()}}},t(document).on("pumInit",".pum",function(){var o=PUM.getPopup(t(this)),n=o.popmake("getSettings"),r=n.triggers||[],a=n.cookies||[],p=n.conditions||[],u=0;if(i||(e.initialize(),e.divider(s.popups_initializing)),console.groupCollapsed(s.single_popup_label+n.id+" - "+n.slug),console.log(s.theme_id,n.theme_id),r.length){for(console.groupCollapsed(s.label_triggers),u=0;r.length>u;u++)e.trigger(o,r[u]);console.groupEnd()}if(a.length){for(console.groupCollapsed(s.label_cookies),u=0;a.length>u;u+=1)e.cookie(o,a[u]);console.groupEnd()}p.length&&(console.groupCollapsed(s.label_conditions),console.log(p),console.groupEnd()),console.groupCollapsed(s.label_popup_settings),console.log(s.label_mobile_disabled,!1!==n.disable_on_mobile),console.log(s.label_tablet_disabled,!1!==n.disable_on_tablet),console.log(s.label_display_settings,e.odump(n)),o.trigger("pum_debug_popup_settings"),console.groupEnd(),console.groupEnd()}).on("pumBeforeOpen",".pum",function(){var o=PUM.getPopup(t(this)),n=t.fn.popmake.last_open_trigger;e.popup_event_header(o),console.groupCollapsed(s.label_event.replace("%s","pumBeforeOpen"));try{n=(n=t(t.fn.popmake.last_open_trigger)).length?n:t.fn.popmake.last_open_trigger.toString()}catch(e){n=""}finally{console.log(s.label_triggers,[n])}console.groupEnd()}).on("pumOpenPrevented",".pum",function(){var o=PUM.getPopup(t(this));e.popup_event_header(o),console.groupCollapsed(s.label_event.replace("%s","pumOpenPrevented")),console.groupEnd()}).on("pumAfterOpen",".pum",function(){var o=PUM.getPopup(t(this));e.popup_event_header(o),console.groupCollapsed(s.label_event.replace("%s","pumAfterOpen")),console.groupEnd()}).on("pumSetupClose",".pum",function(){var o=PUM.getPopup(t(this));e.popup_event_header(o),console.groupCollapsed(s.label_event.replace("%s","pumSetupClose")),console.groupEnd()}).on("pumClosePrevented",".pum",function(){var o=PUM.getPopup(t(this));e.popup_event_header(o),console.groupCollapsed(s.label_event.replace("%s","pumClosePrevented")),console.groupEnd()}).on("pumBeforeClose",".pum",function(){var o=PUM.getPopup(t(this));e.popup_event_header(o),console.groupCollapsed(s.label_event.replace("%s","pumBeforeClose")),console.groupEnd()}).on("pumAfterClose",".pum",function(){var o=PUM.getPopup(t(this));e.popup_event_header(o),console.groupCollapsed(s.label_event.replace("%s","pumAfterClose")),console.groupEnd()}).on("pumBeforeReposition",".pum",function(){var o=PUM.getPopup(t(this));e.popup_event_header(o),console.groupCollapsed(s.label_event.replace("%s","pumBeforeReposition")),console.groupEnd()}).on("pumAfterReposition",".pum",function(){var o=PUM.getPopup(t(this));e.popup_event_header(o),console.groupCollapsed(s.label_event.replace("%s","pumAfterReposition")),console.groupEnd()}).on("pumCheckingCondition",".pum",function(o,n,i){var r=PUM.getPopup(t(this));e.popup_event_header(r),console.groupCollapsed(s.label_event.replace("%s","pumCheckingCondition")),console.log((i.not_operand?"(!) ":"")+i.target+": "+n,i),console.groupEnd()})}}(jQuery)},3234:()=>{{const e="fluentforms",o=window.jQuery;o(document).on("fluentform_submission_success",function(t,n){const i=n.form,r=n.config.id,s=i.data("form_instance");console.log(r,n),window.PUM.integrations.formSubmission(o(i),{formProvider:e,formId:r,formInstanceId:s})})}},3524:()=>{!function(e){"use strict";e.fn.popmake.defaults={id:null,slug:"",theme_id:null,cookies:[],triggers:[],conditions:[],mobile_disabled:null,tablet_disabled:null,custom_height_auto:!1,scrollable_content:!1,position_from_trigger:!1,position_fixed:!1,overlay_disabled:!1,stackable:!1,disable_reposition:!1,close_on_overlay_click:!1,close_on_form_submission:!1,close_on_form_submission_delay:0,close_on_esc_press:!1,close_on_f4_press:!1,disable_on_mobile:!1,disable_on_tablet:!1,size:"medium",responsive_min_width:"0%",responsive_max_width:"100%",custom_width:"640px",custom_height:"380px",animation_type:"fade",animation_speed:"350",animation_origin:"center top",location:"center top",position_top:"100",position_bottom:"0",position_left:"0",position_right:"0",zindex:"1999999999",close_button_delay:"0",meta:{display:{stackable:!1,overlay_disabled:!1,size:"medium",responsive_max_width:"100",responsive_max_width_unit:"%",responsive_min_width:"0",responsive_min_width_unit:"%",custom_width:"640",custom_width_unit:"px",custom_height:"380",custom_height_unit:"px",custom_height_auto:!1,location:"center top",position_top:100,position_left:0,position_bottom:0,position_right:0,position_fixed:!1,animation_type:"fade",animation_speed:350,animation_origin:"center top",scrollable_content:!1,disable_reposition:!1,position_from_trigger:!1,overlay_zindex:!1,zindex:"1999999999"},close:{overlay_click:!1,esc_press:!1,f4_press:!1,text:"",button_delay:0},click_open:[]},container:{active_class:"active",attr:{class:"popmake"}},title:{attr:{class:"popmake-title"}},content:{attr:{class:"popmake-content"}},close:{close_speed:0,attr:{class:"popmake-close"}},overlay:{attr:{id:"popmake-overlay",class:"popmake-overlay"}}}}(jQuery,document)},3858:()=>{{const e="wsforms",o=window.jQuery;o(document).on("wsf-submit-success wsf-save-success",function(t,n,i,r,s,a){window.PUM.integrations.formSubmission(o(s),{formProvider:e,formId:i,formInstanceId:r})})}},3880:()=>{!function(e,o){"use strict";e.fn.popmake.version=1.21,e.fn.popmake.last_open_popup=null,window.ajaxurl=window.pum_vars.ajaxurl,window.PUM.init=function(){e(o).trigger("pumBeforeInit"),e(".pum").popmake(),e(o).trigger("pumInitialized"),"object"==typeof pum_vars.form_success&&(pum_vars.form_success=e.extend({popup_id:null,settings:{}}),PUM.forms.success(pum_vars.form_success.popup_id,pum_vars.form_success.settings)),PUM.integrations.init()},e(function(){if(PUM.hooks.applyFilters("pum.shouldInit",!0)){var e=PUM.hooks.applyFilters("pum.initHandler",PUM.init),o=PUM.hooks.applyFilters("pum.initPromises",[]);Promise.all(o).then(e)}}),e(".pum").on("pumInit",function(){var o=PUM.getPopup(this),t=PUM.getSetting(o,"id"),n=o.find("form");if(n.length){var i=e("<input>",{type:"hidden",name:"pum_form_popup_id",value:t});n.append(i)}}).on("pumAfterClose",window.PUM.actions.stopIframeVideosPlaying),e(".pum .pum-cta a, .pum a.pum-cta").on("click",function(){PUM.getPopup(this).trigger("pumConversion")})}(jQuery)},4102:()=>{{const e="gravityforms",o=window.jQuery,t={};o(document).on("gform_confirmation_loaded",function(n,i){const r=o("#gform_confirmation_wrapper_"+i+",#gforms_confirmation_message_"+i)[0];window.PUM.integrations.formSubmission(r,{formProvider:e,formId:i}),window.PUM.forms.success(r,t[i]||{})}),o(function(){o(".gform_wrapper > form").each(function(){const e=o(this),n=e.attr("id").replace("gform_",""),i=e.find("input.gforms-pum"),r=!!i.length&&JSON.parse(i.val());r&&"object"==typeof r&&("object"==typeof r&&void 0!==r.closedelay&&r.closedelay.toString().length>=3&&(r.closedelay=r.closedelay/1e3),t[n]=r)})})}},4885:()=>{!function(e,o,t){"use strict";function n(e){var o=e.popmake("getContainer"),t={display:"",opacity:""};e.css(t),o.css(t)}function i(e){return e.overlay_disabled?0:e.animation_speed/2}function r(e){return e.overlay_disabled?parseInt(e.animation_speed):e.animation_speed/2}e.fn.popmake.methods.animate_overlay=function(o,t,n){return PUM.getPopup(this).popmake("getSettings").overlay_disabled?e.fn.popmake.overlay_animations.none.apply(this,[t,n]):e.fn.popmake.overlay_animations[o]?e.fn.popmake.overlay_animations[o].apply(this,[t,n]):(window.console&&console.warn("Animation style "+o+" does not exist."),this)},e.fn.popmake.methods.animate=function(o){return e.fn.popmake.animations[o]?e.fn.popmake.animations[o].apply(this,Array.prototype.slice.call(arguments,1)):(window.console&&console.warn("Animation style "+o+" does not exist."),this)},e.fn.popmake.animations={none:function(e){var o=PUM.getPopup(this);return o.popmake("getContainer").css({opacity:1,display:"block"}),o.popmake("animate_overlay","none",0,function(){e!==t&&e()}),this},slide:function(e){var o=PUM.getPopup(this),s=o.popmake("getContainer"),a=o.popmake("getSettings"),p=o.popmake("animation_origin",a.animation_origin);return n(o),s.position(p),o.popmake("animate_overlay","fade",i(a),function(){s.popmake("reposition",function(o){s.animate(o,r(a),"swing",function(){e!==t&&e()})})}),this},fade:function(e){var o=PUM.getPopup(this),s=o.popmake("getContainer"),a=o.popmake("getSettings");return n(o),o.css({opacity:0,display:"block"}),s.css({opacity:0,display:"block"}),o.popmake("animate_overlay","fade",i(a),function(){s.animate({opacity:1},r(a),"swing",function(){e!==t&&e()})}),this},fadeAndSlide:function(e){var o=PUM.getPopup(this),s=o.popmake("getContainer"),a=o.popmake("getSettings"),p=o.popmake("animation_origin",a.animation_origin);return n(o),o.css({display:"block",opacity:0}),s.css({display:"block",opacity:0}),s.position(p),o.popmake("animate_overlay","fade",i(a),function(){s.popmake("reposition",function(o){o.opacity=1,s.animate(o,r(a),"swing",function(){e!==t&&e()})})}),this},grow:function(o){return e.fn.popmake.animations.fade.apply(this,arguments)},growAndSlide:function(o){return e.fn.popmake.animations.fadeAndSlide.apply(this,arguments)}},e.fn.popmake.overlay_animations={none:function(e,o){PUM.getPopup(this).css({opacity:1,display:"block"}),"function"==typeof o&&o()},fade:function(e,o){PUM.getPopup(this).css({opacity:0,display:"block"}).animate({opacity:1},e,"swing",o)},slide:function(e,o){PUM.getPopup(this).slideDown(e,o)}}}(jQuery,document)},4907:()=>{!function(e){"use strict";void 0===e.fn.on&&(e.fn.on=function(e,o,t){return this.delegate(o,e,t)}),void 0===e.fn.off&&(e.fn.off=function(e,o,t){return this.undelegate(o,e,t)}),void 0===e.fn.bindFirst&&(e.fn.bindFirst=function(o,t){var n,i,r=e(this);r.unbind(o,t),r.bind(o,t),(i=(n=e._data(r[0]).events)[o]).unshift(i.pop()),n[o]=i}),void 0===e.fn.outerHtml&&(e.fn.outerHtml=function(){var o=e(this).clone();return e("<div/>").append(o).html()}),void 0===e.fn.isInViewport&&(e.fn.isInViewport=function(){var o=e(this).offset().top,t=o+e(this).outerHeight(),n=e(window).scrollTop(),i=n+e(window).height();return t>n&&o<i}),void 0===Date.now&&(Date.now=function(){return(new Date).getTime()})}(jQuery)},5235:()=>{!function(e){"use strict";var o={openpopup:!1,openpopup_id:0,closepopup:!1,closedelay:0,redirect_enabled:!1,redirect:"",cookie:!1};window.PUM=window.PUM||{},window.PUM.forms=window.PUM.forms||{},e.extend(window.PUM.forms,{form:{validation:{errors:[]},responseHandler:function(e,o){var t=o.data;o.success?window.PUM.forms.form.success(e,t):window.PUM.forms.form.errors(e,t)},display_errors:function(e,o){window.PUM.forms.messages.add(e,o||this.validation.errors,"error")},beforeAjax:function(o){var t=o.find('[type="submit"]'),n=t.find(".pum-form__loader");window.PUM.forms.messages.clear_all(o),n.length||(n=e('<span class="pum-form__loader"></span>'),""!==t.attr("value")?n.insertAfter(t):t.append(n)),t.prop("disabled",!0),n.show(),o.addClass("pum-form--loading").removeClass("pum-form--errors")},afterAjax:function(e){var o=e.find('[type="submit"]'),t=o.find(".pum-form__loader");o.prop("disabled",!1),t.hide(),e.removeClass("pum-form--loading")},success:function(e,o){void 0!==o.message&&""!==o.message&&window.PUM.forms.messages.add(e,[{message:o.message}]),e.trigger("success",[o]),!e.data("noredirect")&&void 0!==e.data("redirect_enabled")&&o.redirect&&(""!==o.redirect?window.location=o.redirect:window.location.reload(!0))},errors:function(e,o){void 0!==o.errors&&o.errors.length&&(console.log(o.errors),window.PUM.forms.form.display_errors(e,o.errors),window.PUM.forms.messages.scroll_to_first(e),e.addClass("pum-form--errors").trigger("errors",[o]))},submit:function(o){var t=e(this),n=t.pumSerializeObject();o.preventDefault(),o.stopPropagation(),window.PUM.forms.form.beforeAjax(t),e.ajax({type:"POST",dataType:"json",url:pum_vars.ajaxurl,data:{action:"pum_form",values:n}}).always(function(){window.PUM.forms.form.afterAjax(t)}).done(function(e){window.PUM.forms.form.responseHandler(t,e)}).error(function(e,o,t){console.log("Error: type of "+o+" with message of "+t)})}},messages:{add:function(o,t,n){var i=o.find(".pum-form__messages"),r=0;if(n=n||"success",t=t||[],!i.length)switch(i=e('<div class="pum-form__messages">').hide(),pum_vars.message_position){case"bottom":o.append(i.addClass("pum-form__messages--bottom"));break;case"top":o.prepend(i.addClass("pum-form__messages--top"))}if(["bottom","top"].indexOf(pum_vars.message_position)>=0)for(;t.length>r;r++)this.add_message(i,t[r].message,n);else for(;t.length>r;r++)void 0!==t[r].field?this.add_field_error(o,t[r]):this.add_message(i,t[r].message,n);i.is(":hidden")&&e(".pum-form__message",i).length&&i.slideDown()},add_message:function(o,t,n){var i=e('<p class="pum-form__message">').html(t);n=n||"success",i.addClass("pum-form__message--"+n),o.append(i),o.is(":visible")&&i.hide().slideDown()},add_field_error:function(o,t){var n=e('[name="'+t.field+'"]',o).parents(".pum-form__field").addClass("pum-form__field--error");this.add_message(n,t.message,"error")},clear_all:function(o,t){var n=o.find(".pum-form__messages"),i=n.find(".pum-form__message"),r=o.find(".pum-form__field.pum-form__field--error");t=t||!1,n.length&&i.slideUp("fast",function(){e(this).remove(),t&&n.hide()}),r.length&&r.removeClass("pum-form__field--error").find("p.pum-form__message").remove()},scroll_to_first:function(o){window.PUM.utilities.scrollTo(e(".pum-form__field.pum-form__field--error",o).eq(0))}},success:function(t,n){if(n=e.extend({},o,n)){var i=PUM.getPopup(t),r={},s=function(){n.openpopup&&PUM.getPopup(n.openpopup_id).length?PUM.open(n.openpopup_id):n.redirect_enabled&&(""!==n.redirect?window.location=n.redirect:window.location.reload(!0))};i.length&&(i.trigger("pumFormSuccess"),n.cookie&&(r=e.extend({name:"pum-"+PUM.getSetting(i,"id"),expires:"+1 year"},"object"==typeof n.cookie?n.cookie:{}),PUM.setCookie(i,r))),i.length&&n.closepopup?setTimeout(function(){i.popmake("close",s)},1e3*parseInt(n.closedelay)):s()}}})}(jQuery)},5288:()=>{!function(e){"use strict";e.PUM=e.PUM||{},e.PUM.hooks=e.PUM.hooks||new function(){var e=Array.prototype.slice,o={removeFilter:function(e,t){return"string"==typeof e&&n("filters",e,t),o},applyFilters:function(){var t=e.call(arguments),n=t.shift();return"string"==typeof n?r("filters",n,t):o},addFilter:function(e,t,n,r){return"string"==typeof e&&"function"==typeof t&&i("filters",e,t,n=parseInt(n||10,10),r),o},removeAction:function(e,t){return"string"==typeof e&&n("actions",e,t),o},doAction:function(){var t=e.call(arguments),n=t.shift();return"string"==typeof n&&r("actions",n,t),o},addAction:function(e,t,n,r){return"string"==typeof e&&"function"==typeof t&&i("actions",e,t,n=parseInt(n||10,10),r),o}},t={actions:{},filters:{}};function n(e,o,n,i){var r,s,a;if(t[e][o])if(n)if(r=t[e][o],i)for(a=r.length;a--;)(s=r[a]).callback===n&&s.context===i&&r.splice(a,1);else for(a=r.length;a--;)r[a].callback===n&&r.splice(a,1);else t[e][o]=[]}function i(e,o,n,i,r){var s={callback:n,priority:i,context:r},a=t[e][o];a?(a.push(s),a=function(e){for(var o,t,n,i=1,r=e.length;i<r;i++){for(o=e[i],t=i;(n=e[t-1])&&n.priority>o.priority;)e[t]=e[t-1],--t;e[t]=o}return e}(a)):a=[s],t[e][o]=a}function r(e,o,n){var i,r,s=t[e][o];if(!s)return"filters"===e&&n[0];if(r=s.length,"filters"===e)for(i=0;i<r;i++)n[0]=s[i].callback.apply(s[i].context,n);else for(i=0;i<r;i++)s[i].callback.apply(s[i].context,n);return"filters"!==e||n[0]}return o},e.pum=e.PUM}(window)},5530:()=>{{const e="calderaforms";let o;const t=(e,t)=>o=t.$form;(0,window.jQuery)(document).on("cf.ajax.request",t).on("cf.submission",function(t,n){if("complete"===n.data.status||"success"===n.data.status){const[t,n=null]=o.attr("id").split("_");window.PUM.integrations.formSubmission(o,{formProvider:e,formId:t,formInstanceId:n,extras:{state:window.cfstate.hasOwnProperty(t)?window.cfstate[t]:null}})}})}},5980:()=>{!function(e,o){"use strict";e(o).on("pumInit",".pum",function(){e(this).popmake("getContainer").trigger("popmakeInit")}).on("pumBeforeOpen",".pum",function(){e(this).popmake("getContainer").addClass("active").trigger("popmakeBeforeOpen")}).on("pumAfterOpen",".pum",function(){e(this).popmake("getContainer").trigger("popmakeAfterOpen")}).on("pumBeforeClose",".pum",function(){e(this).popmake("getContainer").trigger("popmakeBeforeClose")}).on("pumAfterClose",".pum",function(){e(this).popmake("getContainer").removeClass("active").trigger("popmakeAfterClose")}).on("pumSetupClose",".pum",function(){e(this).popmake("getContainer").trigger("popmakeSetupClose")}).on("pumOpenPrevented",".pum",function(){e(this).popmake("getContainer").removeClass("preventOpen").removeClass("active")}).on("pumClosePrevented",".pum",function(){e(this).popmake("getContainer").removeClass("preventClose")}).on("pumBeforeReposition",".pum",function(){e(this).popmake("getContainer").trigger("popmakeBeforeReposition")})}(jQuery,document)},6068:()=>{!function(e){"use strict";e.fn.popmake.callbacks={reposition_using:function(o){e(this).css(o)}}}(jQuery,document)},7460:()=>{!function(e){"use strict";var o,t=function(){return void 0===o&&(o="undefined"!=typeof MobileDetect?new MobileDetect(window.navigator.userAgent):{phone:function(){return!1},tablet:function(){return!1}}),o};e.extend(e.fn.popmake.methods,{checkConditions:function(){var o,n,i,r,s,a=PUM.getPopup(this),p=a.popmake("getSettings"),u=!0;if(p.disable_on_mobile&&t().phone())return!1;if(p.disable_on_tablet&&t().tablet())return!1;if(p.conditions.length)for(n=0;p.conditions.length>n;n++){for(r=p.conditions[n],o=!1,i=0;r.length>i;i++)if("boolean"!=typeof r[i]){if((!(s=e.extend({},{not_operand:!1},r[i])).not_operand&&a.popmake("checkCondition",s)||s.not_operand&&!a.popmake("checkCondition",s))&&(o=!0),e(this).trigger("pumCheckingCondition",[o,s]),o)break}else if(r[i]){o=!0;break}o||(u=!1)}return u},checkCondition:function(o){var t=o.target||null,n=o.settings||o;if(!t)return console.warn("Condition type not set."),!1;const r=i(t);return r?r.apply(this,[n,o]):e.fn.popmake.conditions[t]?e.fn.popmake.conditions[t].apply(this,[o]):window.console?(console.warn("Condition "+t+" does not exist."),!0):void 0}});let n={};const i=e=>{var o;return null!==(o=(Object.keys(n).length||(n=window.PUM.hooks.applyFilters("popupMaker.conditionCallbacks",{})),n)[e])&&void 0!==o&&o};e.fn.popmake=e.fn.popmake||{},e.fn.popmake.conditions=e.fn.popmake.conditions||{}}(jQuery,document)},7952:()=>{{const e="contactform7",o=window.jQuery;o(document).on("wpcf7mailsent",function(t,n){const i=t.detail.contactFormId,r=o(t.target),s=(t.detail.id||t.detail.unitTag).split("-").pop().replace("o","");window.PUM.integrations.formSubmission(r,{formProvider:e,formId:i,formInstanceId:s,extras:{details:n}});const a=r.find("input.wpcf7-pum"),p=!!a.length&&JSON.parse(a.val());"object"==typeof p&&void 0!==p.closedelay&&p.closedelay.toString().length>=3&&(p.closedelay=p.closedelay/1e3),window.PUM.forms.success(r,p)})}},9156:()=>{!function(e){"use strict";e.extend(e.fn.popmake,{cookie:function(o){function t(n,i,r){var s,a=new Date;if("undefined"!=typeof document){if(arguments.length>1){switch(typeof(r=e.extend({path:pum_vars.home_url},t.defaults,r)).expires){case"number":a.setMilliseconds(a.getMilliseconds()+864e5*r.expires),r.expires=a;break;case"string":a.setTime(1e3*e.fn.popmake.utilities.strtotime("+"+r.expires)),r.expires=a}try{s=JSON.stringify(i),/^[\{\[]/.test(s)&&(i=s)}catch(e){}return i=o.write?o.write(i,n):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n=(n=(n=encodeURIComponent(String(n))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape),document.cookie=[n,"=",i,r.expires?"; expires="+r.expires.toUTCString():"",r.path?"; path="+r.path:"",r.domain?"; domain="+r.domain:"",r.secure?"; secure":""].join("")}n||(s={});for(var p=document.cookie?document.cookie.split("; "):[],u=/(%[0-9A-Z]{2})+/g,c=0;c<p.length;c++){var l=p[c].split("="),d=l.slice(1).join("=");'"'===d.charAt(0)&&(d=d.slice(1,-1));try{var m=l[0].replace(u,decodeURIComponent);if(d=o.read?o.read(d,m):o(d,m)||d.replace(u,decodeURIComponent),this.json)try{d=JSON.parse(d)}catch(e){}if(n===m){s=d;break}n||(s[m]=d)}catch(e){}}return s}}return void 0===o&&(o=function(){}),t.set=t,t.get=function(e){return t.call(t,e)},t.getJSON=function(){return t.apply({json:!0},[].slice.call(arguments))},t.defaults={domain:pum_vars.cookie_domain?pum_vars.cookie_domain:""},t.remove=function(o,n){t(o,"",e.extend({},n,{expires:-1,path:""})),t(o,"",e.extend({},n,{expires:-1}))},t.process=function(e,o,n,i){return arguments.length>3&&"object"!=typeof arguments[2]&&void 0!==o?t.apply(t,[e,o,{expires:n,path:i}]):t.apply(t,[].slice.call(arguments,[0,2]))},t.withConverter=e.fn.popmake.cookie,t}()}),window.pm_cookie=e.pm_cookie=e.fn.popmake.cookie.process,window.pm_cookie_json=e.pm_cookie_json=e.fn.popmake.cookie.getJSON,window.pm_remove_cookie=e.pm_remove_cookie=e.fn.popmake.cookie.remove}(jQuery)},9381:()=>{!function(e){"use strict";function o(e){return e}window.PUM=window.PUM||{},window.PUM.integrations=window.PUM.integrations||{},e.extend(window.PUM.integrations,{init:function(){if(void 0!==pum_vars.form_submission){var e=pum_vars.form_submission;e.ajax=!1,e.popup=e.popupId>0?PUM.getPopup(e.popupId):null,PUM.integrations.formSubmission(null,e)}},formSubmission:function(t,n){var i=PUM.getPopup(t);(n=e.extend({popup:i,formProvider:null,formId:null,formInstanceId:null,formKey:null,ajax:!0,tracked:!1},n)).formKey=n.formKey||[n.formProvider,n.formId,n.formInstanceId].filter(o).join("_"),n.popup&&n.popup.length&&(n.popupId=PUM.getSetting(i,"id"),i.trigger("pumConversion")),window.PUM.hooks.doAction("pum.integration.form.success",t,n)},checkFormKeyMatches:function(e,o,t){o=""===o&&o;var n=-1!==["any"===e,"pumsubform"===e&&"pumsubform"===t.formProvider,e===t.formProvider+"_any",!o&&new RegExp("^"+e+"(_[d]*)?").test(t.formKey),!!o&&e+"_"+o===t.formKey].indexOf(!0);return window.PUM.hooks.applyFilters("pum.integration.checkFormKeyMatches",n,{formIdentifier:e,formInstanceId:o,submittedFormArgs:t})}})}(window.jQuery)},9472:()=>{{const e="mc4wp",o=window.jQuery;o(()=>{"undefined"!=typeof mc4wp&&mc4wp.forms.on("success",function(t,n){const i=o(t.element),r=t.id,s=o(".mc4wp-form-"+t.id).index(i)+1;window.PUM.integrations.formSubmission(i,{formProvider:e,formId:r,formInstanceId:s,extras:{form:t,data:n}})})})}},9497:()=>{{const e="formidableforms",o=window.jQuery;o(document).on("frmFormComplete",function(t,n,i){const r=o(n),s=r.find('input[name="form_id"]').val(),a=PUM.getPopup(r.find('input[name="pum_form_popup_id"]').val());window.PUM.integrations.formSubmission(r,{popup:a,formProvider:e,formId:s,extras:{response:i}})})}},9508:()=>{!function(e){"use strict";var o="color,date,datetime,datetime-local,email,hidden,month,number,password,range,search,tel,text,time,url,week".split(","),t="select,textarea".split(","),n=/\[([^\]]*)\]/g;function i(e,o,t){var n=o[0];o.length>1?(e[n]||(e[n]=o[1]?{}:[]),i(e[n],o.slice(1),t)):(n||(n=e.length),e[n]=t)}Array.prototype.indexOf||(Array.prototype.indexOf=function(e){if(null==this)throw new TypeError;var o=Object(this),t=o.length>>>0;if(0===t)return-1;var n=0;if(arguments.length>0&&((n=Number(arguments[1]))!=n?n=0:0!==n&&n!==1/0&&n!==-1/0&&(n=(n>0||-1)*Math.floor(Math.abs(n)))),n>=t)return-1;for(var i=n>=0?n:Math.max(t-Math.abs(n),0);i<t;i++)if(i in o&&o[i]===e)return i;return-1}),window.PUM=window.PUM||{},e.fn.popmake.utilities=window.PUM.utilities={scrollTo:function(o,t){var n=e(o)||e();n.length&&e("html, body").animate({scrollTop:n.offset().top-100},1e3,"swing",function(){var e=n.find(':input:not([type="button"]):not([type="hidden"]):not(button)').eq(0);e.hasClass("wp-editor-area")?tinyMCE.execCommand ("mceFocus",!1,e.attr("id")):e.focus(),"function"==typeof t&&t()})},inArray:function(e,o){return!!~o.indexOf(e)},convert_hex:function(e,o){return e=e.replace("#",""),"rgba("+parseInt(e.substring(0,2),16)+","+parseInt(e.substring(2,4),16)+","+parseInt(e.substring(4,6),16)+","+o/100+")"},debounce:function(e,o){var t;return function(){var n=this,i=arguments;window.clearTimeout(t),t=window.setTimeout(function(){e.apply(n,i)},o)}},throttle:function(e,o){var t=!1,n=function(){t=!1};return function(){t||(e.apply(this,arguments),window.setTimeout(n,o),t=!0)}},getXPath:function(o){var t,n,i,r,s,a=[];return e.each(e(o).parents(),function(o,p){if(t=e(p),n=t.attr("id")||"",i=t.attr("class")||"",r=t.get(0).tagName.toLowerCase(),s=t.parent().children(r).index(t),"body"===r)return!1;i.length>0&&(i=(i=i.split(" "))[0]),a.push(r+(n.length>0?"#"+n:i.length>0?"."+i.split(" ").join("."):":eq("+s+")"))}),a.reverse().join(" > ")},strtotime:function(e,o){var t,n,i,r,s,a,p,u,c,l,d=!1;if(!e)return d;if((n=(e=e.replace(/^\s+|\s+$/g,"").replace(/\s{2,}/g," ").replace(/[\t\r\n]/g,"").toLowerCase()).match(/^(\d{1,4})([\-\.\/\:])(\d{1,2})([\-\.\/\:])(\d{1,4})(?:\s(\d{1,2}):(\d{2})?:?(\d{2})?)?(?:\s([A-Z]+)?)?$/))&&n[2]===n[4])if(n[1]>1901)switch(n[2]){case"-":case"/":return n[3]>12||n[5]>31?d:new Date(n[1],parseInt(n[3],10)-1,n[5],n[6]||0,n[7]||0,n[8]||0,n[9]||0)/1e3;case".":return d}else if(n[5]>1901)switch(n[2]){case"-":case".":return n[3]>12||n[1]>31?d:new Date(n[5],parseInt(n[3],10)-1,n[1],n[6]||0,n[7]||0,n[8]||0,n[9]||0)/1e3;case"/":return n[1]>12||n[3]>31?d:new Date(n[5],parseInt(n[1],10)-1,n[3],n[6]||0,n[7]||0,n[8]||0,n[9]||0)/1e3}else switch(n[2]){case"-":return n[3]>12||n[5]>31||n[1]<70&&n[1]>38?d:(r=n[1]>=0&&n[1]<=38?+n[1]+2e3:n[1],new Date(r,parseInt(n[3],10)-1,n[5],n[6]||0,n[7]||0,n[8]||0,n[9]||0)/1e3);case".":return n[5]>=70?n[3]>12||n[1]>31?d:new Date(n[5],parseInt(n[3],10)-1,n[1],n[6]||0,n[7]||0,n[8]||0,n[9]||0)/1e3:n[5]<60&&!n[6]?n[1]>23||n[3]>59?d:(i=new Date,new Date(i.getFullYear(),i.getMonth(),i.getDate(),n[1]||0,n[3]||0,n[5]||0,n[9]||0)/1e3):d;case"/":return n[1]>12||n[3]>31||n[5]<70&&n[5]>38?d:(r=n[5]>=0&&n[5]<=38?+n[5]+2e3:n[5],new Date(r,parseInt(n[1],10)-1,n[3],n[6]||0,n[7]||0,n[8]||0,n[9]||0)/1e3);case":":return n[1]>23||n[3]>59||n[5]>59?d:(i=new Date,new Date(i.getFullYear(),i.getMonth(),i.getDate(),n[1]||0,n[3]||0,n[5]||0)/1e3)}if("now"===e)return null===o||isNaN(o)?(new Date).getTime()/1e3||0:o||0;if(t=Date.parse(e),!isNaN(t))return t/1e3||0;function m(e){var o=e.split(" "),t=o[0],n=o[1].substring(0,3),i=/\d+/.test(t),r=("last"===t?-1:1)*("ago"===o[2]?-1:1);if(i&&(r*=parseInt(t,10)),p.hasOwnProperty(n)&&!o[1].match(/^mon(day|\.)?$/i))return s["set"+p[n]](s["get"+p[n]]()+r);if("wee"===n)return s.setDate(s.getDate()+7*r);if("next"===t||"last"===t)!function(e,o,t){var n,i=a[o];void 0!==i&&(0===(n=i-s.getDay())?n=7*t:n>0&&"last"===e?n-=7:n<0&&"next"===e&&(n+=7),s.setDate(s.getDate()+n))}(t,n,r);else if(!i)return!1;return!0}if(s=o?new Date(1e3*o):new Date,a={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6},p={yea:"FullYear",mon:"Month",day:"Date",hou:"Hours",min:"Minutes",sec:"Seconds"},c="([+-]?\\d+\\s"+"(years?|months?|weeks?|days?|hours?|minutes?|min|seconds?|sec|sunday|sun\\.?|monday|mon\\.?|tuesday|tue\\.?|wednesday|wed\\.?|thursday|thu\\.?|friday|fri\\.?|saturday|sat\\.?)"+"|(last|next)\\s(years?|months?|weeks?|days?|hours?|minutes?|min|seconds?|sec|sunday|sun\\.?|monday|mon\\.?|tuesday|tue\\.?|wednesday|wed\\.?|thursday|thu\\.?|friday|fri\\.?|saturday|sat\\.?))(\\sago)?",!(n=e.match(new RegExp(c,"gi"))))return d;for(l=0,u=n.length;l<u;l+=1)if(!m(n[l]))return d;return s.getTime()/1e3},serializeObject:function(r){e.extend({},r);var s={},a=e.extend(!0,{include:[],exclude:[],includeByClass:""},r);return this.find(":input").each(function(){var r;!this.name||this.disabled||window.PUM.utilities.inArray(this.name,a.exclude)||a.include.length&&!window.PUM.utilities.inArray(this.name,a.include)||-1===this.className.indexOf(a.includeByClass)||(r=this.name.replace(n,"[$1").split("["))[0]&&(this.checked||window.PUM.utilities.inArray(this.type,o)||window.PUM.utilities.inArray(this.nodeName.toLowerCase(),t))&&("checkbox"===this.type&&r.push(""),i(s,r,e(this).val()))}),s}},e.fn.pumSerializeObject=window.PUM.utilities.serializeObject,e.fn.popmake.utilies=e.fn.popmake.utilities}(jQuery,document)},9725:()=>{!function(e){"use strict";pum_vars&&void 0!==pum_vars.core_sub_forms_enabled&&!pum_vars.core_sub_forms_enabled||(window.PUM=window.PUM||{},window.PUM.newsletter=window.PUM.newsletter||{},e.extend(window.PUM.newsletter,{form:e.extend({},window.PUM.forms.form,{submit:function(o){var t=e(this),n=t.pumSerializeObject();o.preventDefault(),o.stopPropagation(),window.PUM.newsletter.form.beforeAjax(t),e.ajax({type:"POST",dataType:"json",url:pum_vars.ajaxurl,data:{action:"pum_sub_form",values:n}}).always(function(){window.PUM.newsletter.form.afterAjax(t)}).done(function(e){window.PUM.newsletter.form.responseHandler(t,e)}).error(function(e,o,t){console.log("Error: type of "+o+" with message of "+t)})}})}),e(document).on("submit","form.pum-sub-form",window.PUM.newsletter.form.submit).on("success","form.pum-sub-form",function(o,t){var n=e(o.target),i=n.data("settings")||{},r=n.pumSerializeObject(),s=PUM.getPopup(n),a=PUM.getSetting(s,"id"),p=e("form.pum-sub-form",s).index(n)+1;window.PUM.integrations.formSubmission(n,{formProvider:"pumsubform",formId:a,formInstanceId:p,extras:{data:t,values:r,settings:i}}),n.trigger("pumNewsletterSuccess",[t]).addClass("pum-newsletter-success"),n[0].reset(),window.PUM.hooks.doAction("pum-sub-form.success",t,n),"string"==typeof i.redirect&&""!==i.redirect&&(i.redirect=atob(i.redirect)),window.PUM.forms.success(n,i)}).on("error","form.pum-sub-form",function(o,t){var n=e(o.target);n.trigger("pumNewsletterError",[t]),window.PUM.hooks.doAction("pum-sub-form.errors",t,n)}))}(jQuery)}},o={};function t(n){var i=o[n];if(void 0!==i)return i.exports;var r=o[n]={exports:{}};return e[n].call(r.exports,r,r.exports,t),r.exports}t.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return t.d(o,{a:o}),o},t.d=(e,o)=>{for(var n in o)t.o(o,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:o[n]})},t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{"use strict";t(824),t(4907);const e=window.jQuery,o=t.n(e)(),n={validate:/^[a-z_][a-z0-9_]*(?:\[(?:\d*|[a-z0-9_]+)\])*$/i,key:/[a-z0-9_]+|(?=\[\])/gi,push:/^$/,fixed:/^\d+$/,named:/^[a-z0-9_]+$/i};function i(e,t){var i={},r={};function s(e,o,t){return e[o]=t,e}function a(e){return void 0===r[e]&&(r[e]=0),r[e]++}function p(){return i}this.addPair=function(r){if(!n.validate.test(r.name))return this;var p=function(e,o){var t,i=e.match(n.key);try{o=JSON.parse(o)}catch(e){}for(;void 0!==(t=i.pop());)n.push.test(t)?o=s([],a(e.replace(/\[\]$/,"")),o):n.fixed.test(t)?o=s([],t,o):n.named.test(t)&&(o=s({},t,o));return o}(r.name,function(e){return"checkbox"===o('[name="'+e.name+'"]',t).attr("type")&&"1"===e.value||e.value}(r));return i=e.extend(!0,i,p),this},this.addPairs=function(o){if(!e.isArray(o))throw new Error("formSerializer.addPairs expects an Array");for(var t=0,n=o.length;t<n;t++)this.addPair(o[t]);return this},this.serialize=p,this.serializeJSON=function(){return JSON.stringify(p())}}i.patterns=n,i.serializeObject=function(){var e;return e=this.is("form")?this.serializeArray():this.find(":input").serializeArray(),new i(o,this).addPairs(e).serialize()},i.serializeJSON=function(){var e;return e=this.is("form")?this.serializeArray():this.find(":input").serializeArray(),new i(o,this).addPairs(e).serializeJSON()},o.fn.pumSerializeObject=i.serializeObject,o.fn.pumSerializeJSON=i.serializeJSON,function(e,o,t){window.pum_vars=window.pum_vars||{default_theme:"0",home_url:"/",version:1.7,pm_dir_url:"",ajaxurl:"",restapi:!1,analytics_api:!1,rest_nonce:null,debug_mode:!1,disable_tracking:!0,message_position:"top",core_sub_forms_enabled:!0,popups:{}},window.pum_popups=window.pum_popups||{},window.pum_vars.popups=window.pum_popups,window.PUM={get:new function(){var e={},o=function(o,n,i){"boolean"==typeof n&&(i=n,n=!1);var r=n?n.selector+" "+o:o;return(t===e[r]||i)&&(e[r]=n?n.find(o):jQuery(o)),e[r]};return o.elementCache=e,o},getPopup:function(o){var t,n;return n=o,(t=isNaN(n)||parseInt(Number(n))!==parseInt(n)||isNaN(parseInt(n,10))?"current"===o?e(".pum-overlay.pum-active:eq(0)"):"open"===o?e(".pum-overlay.pum-active"):"closed"===o?e(".pum-overlay:not(.pum-active)"):o instanceof jQuery?o:e(o):PUM.get("#pum-"+o)).hasClass("pum-overlay")?t:t.hasClass("popmake")||t.parents(".pum-overlay").length?t.parents(".pum-overlay"):e()},open:function(e,o){PUM.getPopup(e).popmake("open",o)},close:function(e,o){PUM.getPopup(e).popmake("close",o)},preventOpen:function(e){PUM.getPopup(e).addClass("preventOpen")},getSettings:function(e){return PUM.getPopup(e).popmake("getSettings")},getSetting:function(e,o,n){var i=function(e,o){function t(e,o,t){return o?e[o.slice(0,t?-1:o.length)]:e}return o.split(".").reduce(function(e,o){return o?o.split("[").reduce(t,e):e},e)}(PUM.getSettings(e),o);return void 0!==i?i:n!==t?n:null},checkConditions:function(e){return PUM.getPopup(e).popmake("checkConditions")},getCookie:function(o){return e.pm_cookie(o)},getJSONCookie:function(o){return e.pm_cookie_json(o)},setCookie:function(e,o){PUM.getPopup(e).popmake("setCookie",jQuery.extend({name:"pum-"+PUM.getSetting(e,"id"),expires:"+30 days"},o))},setCookieRaw:function(o,t,n){e.pm_cookie(o,t,n)},clearCookie:function(o,t){e.pm_remove_cookie(o),"function"==typeof t&&t()},clearCookies:function(o,n){var i,r=PUM.getPopup(o).popmake("getSettings").cookies;if(r!==t&&r.length)for(i=0;r.length>i;i+=1)e.pm_remove_cookie(r[i].settings.name);"function"==typeof n&&n()},getClickTriggerSelector:function(e,o){var t=PUM.getPopup(e),n=PUM.getSettings(e),i=[".popmake-"+n.id,".popmake-"+decodeURIComponent(n.slug),'a[href$="#popmake-'+n.id+'"]'];return o.extra_selectors&&""!==o.extra_selectors&&i.push(o.extra_selectors),(i=pum.hooks.applyFilters("pum.trigger.click_open.selectors",i,o,t)).join(", ")},disableClickTriggers:function(n,i){if(n!==t)if(i!==t){var r=PUM.getClickTriggerSelector(n,i);e(r).removeClass("pum-trigger"),e(o).off("click.pumTrigger click.popmakeOpen",r)}else{var s=PUM.getSetting(n,"triggers",[]);if(s.length)for(var a=0;s.length>a;a++)-1!==pum.hooks.applyFilters("pum.disableClickTriggers.clickTriggerTypes",["click_open"]).indexOf(s[a].type)&&(r=PUM.getClickTriggerSelector(n,s[a].settings),e(r).removeClass("pum-trigger"),e(o).off("click.pumTrigger click.popmakeOpen",r))}},actions:{stopIframeVideosPlaying:function(){var o=PUM.getPopup(this),t=o.popmake("getContainer");o.hasClass("pum-has-videos")||(t.find("iframe").filter('[src*="youtube"],[src*="vimeo"]').each(function(){var o=e(this),t=o.attr("src"),n=t.replace("autoplay=1","1=1");n!==t&&(t=n),o.prop("src",t)}),t.find("video").each(function(){this.pause()}))}}},e.fn.popmake=function(t){return e.fn.popmake.methods[t]?(e(o).trigger("pumMethodCall",arguments),e.fn.popmake.methods[t].apply(this,Array.prototype.slice.call(arguments,1))):"object"!=typeof t&&t?void(window.console&&console.warn("Method "+t+" does not exist on $.fn.popmake")):e.fn.popmake.methods.init.apply(this,arguments)},e.fn.popmake.methods={init:function(){return this.each(function(){var o=PUM.getPopup(this),n=o.popmake("getSettings");if(n.theme_id<=0&&(n.theme_id=pum_vars.default_theme),n.disable_reposition!==t&&n.disable_reposition||e(window).on("resize",function(){(o.hasClass("pum-active")||o.find(".popmake.active").length)&&e.fn.popmake.utilities.throttle(setTimeout(function(){o.popmake("reposition")},25),500,!1)}),o.find(".pum-container").data("popmake",n),o.data("popmake",n).trigger("pumInit"),n.open_sound&&"none"!==n.open_sound){var i="custom"!==n.open_sound?new Audio(pum_vars.pm_dir_url+"assets/sounds/"+n.open_sound):new Audio(n.custom_sound);i.addEventListener("canplaythrough",function(){o.data("popAudio",i)}),i.addEventListener("error",function(){console.warn("Error occurred when trying to load Popup opening sound.")}),i.load()}return this})},getOverlay:function(){return PUM.getPopup(this)},getContainer:function(){return PUM.getPopup(this).find(".pum-container")},getTitle:function(){return PUM.getPopup(this).find(".pum-title")||null},getContent:function(){return PUM.getPopup(this).find(".pum-content")||null},getClose:function(){return PUM.getPopup(this).find(".pum-content + .pum-close")||null},getSettings:function(){var o=PUM.getPopup(this);return e.extend(!0,{},e.fn.popmake.defaults,o.data("popmake")||{},"object"==typeof pum_popups&&void 0!==pum_popups[o.attr("id")]?pum_popups[o.attr("id")]:{})},state:function(e){var o=PUM.getPopup(this);if(t!==e)switch(e){case"isOpen":return o.hasClass("pum-open")||o.popmake("getContainer").hasClass("active");case"isClosed":return!o.hasClass("pum-open")&&!o.popmake("getContainer").hasClass("active")}},open:function(o){var n=PUM.getPopup(this),i=n.popmake("getContainer"),r=n.popmake("getClose"),s=n.popmake("getSettings"),a=e("html");return n.trigger("pumBeforeOpen"),PUM.hooks.applyFilters("popupMaker.popup.preventOpen",!1,n,s)||n.hasClass("preventOpen")||i.hasClass("preventOpen")?(console.log("prevented"),n.removeClass("preventOpen").removeClass("pum-active").trigger("pumOpenPrevented"),this):(s.stackable||n.popmake("close_all"),n.popmake("initializeState"),n.addClass("pum-active"),s.close_button_delay>0&&r.fadeOut(0),a.addClass("pum-open"),s.overlay_disabled?a.addClass("pum-open-overlay-disabled"):a.addClass("pum-open-overlay"),s.position_fixed?a.addClass("pum-open-fixed"):a.addClass("pum-open-scrollable"),n.popmake("setup_close").popmake("reposition").queue(function(){var o=n.popmake("getContainer");n.css({display:"block",opacity:0}),o.css({display:"block",opacity:0}),e(this).dequeue()}).popmake("animate",s.animation_type,function(){s.close_button_delay>0&&setTimeout(function(){r.fadeIn()},s.close_button_delay),n.trigger("pumAfterOpen"),e(window).trigger("resize"),e.fn.popmake.last_open_popup=n,o!==t&&o()}),void 0!==n.data("popAudio")&&n.data("popAudio").play().catch(function(e){console.warn("Sound was not able to play when popup opened. Reason: "+e)}),this)},initializeState:function(){var e=PUM.getPopup(this),o=e.popmake("getContainer");return e.css({display:"",opacity:"",height:"",width:""}),o.css({display:"",opacity:"",height:"",width:""}),e[0].offsetHeight,o[0].offsetHeight,this},setup_close:function(){var n=PUM.getPopup(this),i=n.popmake("getClose"),r=n.popmake("getSettings");if((i=i.add(e(".popmake-close, .pum-close",n).not(i))).off("click.pum").on("click.pum",function(o){var i=e(this);i.hasClass("pum-do-default")||i.data("do-default")!==t&&i.data("do-default")||o.preventDefault(),e.fn.popmake.last_close_trigger="Close Button",n.popmake("close")}),r.close_on_esc_press||r.close_on_f4_press){const o=`keyup.popmake-${r.id}`;e(window).off(o).on(o,function(o){27===o.keyCode&&r.close_on_esc_press&&(e.fn.popmake.last_close_trigger="ESC Key",n.popmake("close")),115===o.keyCode&&r.close_on_f4_press&&(e.fn.popmake.last_close_trigger="F4 Key",n.popmake("close"))})}return r.close_on_overlay_click&&(n.on("pumAfterOpen",function(){e(o).on(`click.popmake-${r.id}`,function(o){e(o.target).closest(".pum-container").length||(e.fn.popmake.last_close_trigger="Overlay Click",n.popmake("close"))})}),n.on("pumAfterClose",function(){e(o).off(`click.popmake-${r.id}`)})),r.close_on_form_submission&&PUM.hooks.addAction("pum.integration.form.success",function(o,t){t.popup&&t.popup[0]===n[0]&&setTimeout(function(){e.fn.popmake.last_close_trigger="Form Submission",n.popmake("close")},r.close_on_form_submission_delay||0)}),n.trigger("pumSetupClose"),this},close:function(o){return this.each(function(){var n=PUM.getPopup(this),i=n.popmake("getContainer"),r=n.popmake("getClose"),s=n.popmake("getSettings");return r=r.add(e(".popmake-close, .pum-close",n).not(r)),n.trigger("pumBeforeClose"),n.hasClass("preventClose")||i.hasClass("preventClose")?(n.removeClass("preventClose").trigger("pumClosePrevented"),this):(i.fadeOut("fast",function(){n.is(":visible")&&n.fadeOut("fast"),e(window).off(`keyup.popmake-${s.id}`),n.off("click.popmake"),r.off("click.popmake"),1===e(".pum-active").length&&e("html").removeClass("pum-open").removeClass("pum-open-scrollable").removeClass("pum-open-overlay").removeClass("pum-open-overlay-disabled").removeClass("pum-open-fixed"),n.removeClass("pum-active").trigger("pumAfterClose"),o!==t&&o()}),this)})},close_all:function(){return e(".pum-active").popmake("close"),this},reposition:function(o){var t=PUM.getPopup(this).trigger("pumBeforeReposition"),n=t.popmake("getContainer"),i=t.popmake("getSettings"),r=i.location,s={my:"",at:"",of:window,collision:"none",using:"function"==typeof o?o:e.fn.popmake.callbacks.reposition_using},a={overlay:null,container:null},p=null;try{p=e(e.fn.popmake.last_open_trigger)}catch(o){p=e()}return i.position_from_trigger&&p.length?(s.of=p,r.indexOf("left")>=0&&(s.my+=" right",s.at+=" left"+(0!==i.position_left?"-"+i.position_left:"")),r.indexOf("right")>=0&&(s.my+=" left",s.at+=" right"+(0!==i.position_right?"+"+i.position_right:"")),r.indexOf("center")>=0&&(s.my="center"===r?"center":s.my+" center",s.at="center"===r?"center":s.at+" center"),r.indexOf("top")>=0&&(s.my+=" bottom",s.at+=" top"+(0!==i.position_top?"-"+i.position_top:"")),r.indexOf("bottom")>=0&&(s.my+=" top",s.at+=" bottom"+(0!==i.position_bottom?"+"+i.position_bottom:""))):(r.indexOf("left")>=0&&(s.my+=" left"+(0!==i.position_left?"+"+i.position_left:""),s.at+=" left"),r.indexOf("right")>=0&&(s.my+=" right"+(0!==i.position_right?"-"+i.position_right:""),s.at+=" right"),r.indexOf("center")>=0&&(s.my="center"===r?"center":s.my+" center",s.at="center"===r?"center":s.at+" center"),r.indexOf("top")>=0&&(s.my+=" top"+(0!==i.position_top?"+"+(e("body").hasClass("admin-bar")?parseInt(i.position_top,10)+32:i.position_top):""),s.at+=" top"),r.indexOf("bottom")>=0&&(s.my+=" bottom"+(0!==i.position_bottom?"-"+i.position_bottom:""),s.at+=" bottom")),s.my=s.my.trim(),s.at=s.at.trim(),t.is(":hidden")&&(a.overlay=t.css("opacity"),t.css({opacity:0}).show(0)),n.is(":hidden")&&(a.container=n.css("opacity"),n.css({opacity:0}).show(0)),i.position_fixed&&n.addClass("fixed"),"custom"===i.size?n.css({width:i.custom_width,height:i.custom_height_auto?"auto":i.custom_height}):"auto"!==i.size&&n.addClass("responsive").css({minWidth:""!==i.responsive_min_width?i.responsive_min_width:"auto",maxWidth:""!==i.responsive_max_width?i.responsive_max_width:"auto"}),t.trigger("pumAfterReposition"),n.addClass("custom-position").position(s).trigger("popmakeAfterReposition"),"center"===r&&n[0].offsetTop<0&&n.css({top:e("body").hasClass("admin-bar")?42:10}),a.overlay&&t.css({opacity:a.overlay}).hide(0),a.container&&n.css({opacity:a.container}).hide(0),this},animation_origin:function(e){var o=PUM.getPopup(this).popmake("getContainer"),t={my:"",at:""};switch(e){case"top":t={my:"left+"+o.offset().left+" bottom-100",at:"left top"};break;case"bottom":t={my:"left+"+o.offset().left+" top+100",at:"left bottom"};break;case"left":t={my:"right top+"+o.offset().top,at:"left top"};break;case"right":t={my:"left top+"+o.offset().top,at:"right top"};break;default:e.indexOf("left")>=0&&(t={my:t.my+" right",at:t.at+" left"}),e.indexOf("right")>=0&&(t={my:t.my+" left",at:t.at+" right"}),e.indexOf("center")>=0&&(t={my:t.my+" center",at:t.at+" center"}),e.indexOf("top")>=0&&(t={my:t.my+" bottom-100",at:t.at+" top"}),e.indexOf("bottom")>=0&&(t={my:t.my+" top+100",at:t.at+" bottom"}),t.my=t.my.trim(),t.at=t.at.trim()}return t.of=window,t.collision="none",t}}}(jQuery,document),window.PUM,t(6068),t(3524),t(5288),t(9508),t(4885),t(9156),t(1531),t(7460),t(1632),t(1868),t(5235),t(9725),t(9381),t(1935),t(999),t(5980),t(2927),t(1154),t(5530),t(7952),t(3234),t(9497),t(4102),t(9472),t(2900),t(609),t(3858),t(3880)})()})();