PageSourceSearch

https://gasstationsusa.com/wp-content/uploads/hummingbird-assets/95f16706d26c319b2558a0f72eb923bd.js

js gasstationsusa.com collected 2026-10-01 00:47:24 UTC 218,599 bytes, 27 lines download raw bytes

1/**handles:fitvids,easypiechart,salvattore,profile-builder-divi-extension-frontend-bundle,areoi-bootstrap,jquery-bind-first,js-cookie-pys,js-sha256,pys,et-core-common,googlesitekit-events-provider-content-events,smush-lazy-load**/
2(a=>{a.fn.fitVids=function(t){var e={customSelector:null,ignore:null},i,r,d;return document.getElementById("fit-vids-style")||(i=document.head||document.getElementsByTagName("head")[0],r=".fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}",(d=document.createElement("div")).innerHTML='<p>x</p><style id="fit-vids-style">'+r+"</style>",i.appendChild(d.childNodes[1])),t&&a.extend(e,t),this.each(function(){var t=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"],o=(e.customSelector&&t.push(e.customSelector),".fitvidsignore"),t=(e.ignore&&(o=o+", "+e.ignore),a(this).find(t.join(","))),t;(t=(t=t.not("object object")).not(o)).each(function(){var t=a(this),e,i,r,d;0<t.parents(o).length||"embed"===this.tagName.toLowerCase()&&t.parent("object").length||t.parent(".fluid-width-video-wrapper").length||(t.css("height")||t.css("width")||!isNaN(t.attr("height"))&&!isNaN(t.attr("width"))||(t.attr("height",9),t.attr("width",16)),r=("object"===this.tagName.toLowerCase()||t.attr("height")&&!isNaN(parseInt(t.attr("height"),10))?parseInt(t.attr("height"),10):t.height())/(isNaN(parseInt(t.attr("width"),10))?t.width():parseInt(t.attr("width"),10)),t.attr("name")||(d="fitvid"+a.fn.fitVids._count,t.attr("name",d),a.fn.fitVids._count++),t.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*r+"%"),t.removeAttr("height").removeAttr("width"))})})},a.fn.fitVids._count=0})(window.jQuery||window.Zepto);
3((e,t)=>{"object"==typeof exports?module.exports=t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):t(e.jQuery)})(this,function(a){var o=function(e,o){var a,t=document.createElement("canvas"),r=(e.appendChild(t),"undefined"!=typeof G_vmlCanvasManager&&G_vmlCanvasManager.initElement(t),t.getContext("2d")),n=(t.width=t.height=o.size,1),s=(1<window.devicePixelRatio&&(n=window.devicePixelRatio,t.style.width=t.style.height=[o.size,"px"].join(""),t.width=t.height=o.size*n,r.scale(n,n)),r.translate(o.size/2,o.size/2),r.rotate((o.rotate/180-.5)*Math.PI),(o.size-o.lineWidth)/2),i=(o.scaleColor&&o.scaleLength&&(s-=o.scaleLength+2),Date.now=Date.now||function(){return+new Date},function(e,t,a,n){var i=(a=Math.min(Math.max(-1,a||0),1))<=0;r.beginPath(),r.arc(0,0,s,0,2*Math.PI*a,i),r.strokeStyle=e,r.globalAlpha=n,r.lineWidth=t,r.stroke()}),d=function(){var e,t;r.lineWidth=1,r.fillStyle=o.scaleColor,r.save();for(var a=24;0<a;--a)e=a%6==0?(t=o.scaleLength,0):(t=.6*o.scaleLength,o.scaleLength-t),r.fillRect(-o.size/2+e,0,t,1),r.rotate(Math.PI/12);r.restore()},h=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)},l=function(){o.scaleColor&&d(),o.trackColor&&i(o.trackColor,o.lineWidth,1,o.trackAlpha)};this.getCanvas=function(){return t},this.getCtx=function(){return r},this.clear=function(){r.clearRect(o.size/-2,o.size/-2,o.size,o.size)},this.draw=function(e){var t;o.scaleColor||o.trackColor?r.getImageData&&r.putImageData?a?r.putImageData(a,0,0):(l(),a=r.getImageData(0,0,o.size*n,o.size*n)):(this.clear(),l()):this.clear(),r.lineCap=o.lineCap,t="function"==typeof o.barColor?o.barColor(e):o.barColor,i(t,o.lineWidth,e/100,o.barAlpha)}.bind(this),this.animate=function(a,n){var i=Date.now(),r=(o.onStart(a,n),function(){var e=Math.min(Date.now()-i,o.animate.duration),t=o.easing(this,e,a,n-a,o.animate.duration);this.draw(t),o.onStep(a,n,t),e>=o.animate.duration?o.onStop(a,n):h(r)}.bind(this));h(r)}.bind(this)},n=function(t,a){var n={barColor:"#ef1e25",barAlpha:1,trackColor:"#f9f9f9",trackAlpha:1,scaleColor:"#dfe0e0",scaleLength:5,lineCap:"round",lineWidth:3,size:110,rotate:0,render:!0,animate:{duration:1e3,enabled:!0},easing:function(e,t,a,n,i){return(t/=i/2)<1?n/2*t*t+a:-n/2*(--t*(t-2)-1)+a},onStart:function(e,t){},onStep:function(e,t,a){},onStop:function(e,t){}};if(void 0!==o)n.renderer=o;else{if("undefined"==typeof SVGRenderer)throw new Error("Please load either the SVG- or the CanvasRenderer");n.renderer=SVGRenderer}var i={},r=0,e=function(){for(var e in this.el=t,this.options=i,n)n.hasOwnProperty(e)&&(i[e]=(a&&void 0!==a[e]?a:n)[e],"function"==typeof i[e])&&(i[e]=i[e].bind(this));"string"==typeof i.easing&&"undefined"!=typeof jQuery&&"function"==typeof jQuery.easing[i.easing]?i.easing=jQuery.easing[i.easing]:i.easing=n.easing,"number"==typeof i.animate&&(i.animate={duration:i.animate,enabled:!0}),"boolean"!=typeof i.animate||i.animate||(i.animate={duration:1e3,enabled:i.animate}),this.renderer=new i.renderer(t,i),this.renderer.draw(r),t.dataset&&t.dataset.percent?this.update(parseFloat(t.dataset.percent)):t.getAttribute&&t.getAttribute("data-percent")&&this.update(parseFloat(t.getAttribute("data-percent")))}.bind(this);this.update=function(e){return e=parseFloat(e),i.animate.enabled?this.renderer.animate(r,e):this.renderer.draw(e),r=e,this}.bind(this),this.disableAnimation=function(){return i.animate.enabled=!1,this},this.enableAnimation=function(){return i.animate.enabled=!0,this},e()};a.fn.easyPieChart=function(t){return this.each(function(){var e;a.data(this,"easyPieChart")||(e=a.extend({},t,a(this).data()),a.data(this,"easyPieChart",new n(this,e)))})}});
4((e,t)=>{"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.salvattore=t()})(this,function(){window.matchMedia||(window.matchMedia=((r=window.styleMedia||window.media)||(u=document.createElement("style"),d=document.getElementsByTagName("script")[0],m=null,u.type="text/css",u.id="matchmediajs-test",d.parentNode.insertBefore(u,d),m="getComputedStyle"in window&&window.getComputedStyle(u,null)||u.currentStyle,r={matchMedium:function(e){var e="@media "+e+"{ #matchmediajs-test { width: 1px; } }";return u.styleSheet?u.styleSheet.cssText=e:u.textContent=e,"1px"===m.width}}),function(e){return{matches:r.matchMedium(e||"all"),media:e||"all"}})),window.matchMedia&&window.matchMedia("all").addListener||(i=(l=window.matchMedia)("only all").matches,o=!1,n=0,c=[],s=function(){clearTimeout(n),n=setTimeout(function(){for(var e=0,t=c.length;e<t;e++){var n=c[e].mql,r=c[e].listeners||[],a=l(n.media).matches;if(a!==n.matches){n.matches=a;for(var i=0,o=r.length;i<o;i++)r[i].call(window,n)}}},30)},window.matchMedia=function(e){var t=l(e),r=[],n=0;return t.addListener=function(e){i&&(o||(o=!0,window.addEventListener("resize",s,!0)),0===n&&(n=c.push({mql:t,listeners:r})),r.push(e))},t.removeListener=function(e){for(var t=0,n=r.length;t<n;t++)r[t]===e&&r.splice(t,1)},t});
4for(var a=0,e=["ms","moz","webkit","o"],t=0,l,i,o,n,c,s,r,u,d,m,f,h,p,y,w,C,g,v;t<e.length&&!window.requestAnimationFrame;++t)window.requestAnimationFrame=window[e[t]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[e[t]+"CancelAnimationFrame"]||window[e[t]+"CancelRequestAnimationFrame"];function E(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}return window.requestAnimationFrame||(window.requestAnimationFrame=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-a)),r=window.setTimeout(function(){e(t+n)},n);return a=t+n,r}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)}),"function"!=typeof window.CustomEvent&&(E.prototype=window.Event.prototype,window.CustomEvent=E),p=(h=window).document,w=[],C=[],g=[],v=function(e,t,n){e.dataset?e.dataset[t]=n:e.setAttribute("data-"+t,n)},(y={obtainGridSettings:function(e){var t,e=h.getComputedStyle(e,":before").getPropertyValue("content").slice(1,-1),n=e.match(/^\s*(\d+)(?:\s?\.(.+))?\s*$/),r=1,a=[];return n?(r=n[1],a=(a=n[2])?a.split("."):["column"]):(n=e.match(/^\s*\.(.+)\s+(\d+)\s*$/))&&(a=n[1],r=(r=n[2])&&r.split(".")),{numberOfColumns:r,columnClasses:a}},addColumns:function(e,t){for(var n,r=y.obtainGridSettings(e),a=r.numberOfColumns,i=r.columnClasses,o=new Array(+a),l=p.createDocumentFragment(),c=a;0!=c--;)o.push(t.querySelectorAll(n="[data-columns] > *:nth-child("+a+"n-"+c+")"));o.forEach(function(e){var t=p.createElement("div"),n=p.createDocumentFragment();t.className=i.join(" "),Array.prototype.forEach.call(e,function(e){n.appendChild(e)}),t.appendChild(n),l.appendChild(t)}),e.appendChild(l),v(e,"columns",a)},removeColumns:function(e){var t=p.createRange(),e=(t.selectNodeContents(e),Array.prototype.filter.call(t.extractContents().childNodes,function(e){return e instanceof h.HTMLElement})),r=e.length,t=e[0].childNodes.length,a=new Array(t*r),n=(Array.prototype.forEach.call(e,function(e,n){Array.prototype.forEach.call(e.children,function(e,t){a[t*r+n]=e})}),p.createElement("div"));return v(n,"columns",0),a.filter(function(e){return!!e}).forEach(function(e){n.appendChild(e)}),n},recreateColumns:function(t){h.requestAnimationFrame(function(){y.addColumns(t,y.removeColumns(t));var e=new CustomEvent("columnsChange");t.dispatchEvent(e)})},mediaQueryChange:function(e){e.matches&&Array.prototype.forEach.call(w,y.recreateColumns)},getCSSRules:function(e){var t;try{t=e.sheet.cssRules||e.sheet.rules}catch(e){return[]}return t||[]},getStylesheets:function(){return Array.prototype.concat.call(Array.prototype.slice.call(p.querySelectorAll("style[type='text/css']")),Array.prototype.slice.call(p.querySelectorAll("link[rel='stylesheet']")))},mediaRuleHasColumnsSelector:function(e){var t,n;try{t=e.length}catch(e){t=0}for(;t--;)if((n=e[t]).selectorText&&n.selectorText.match(/\[data-columns\](.*)::?before$/))return!0;return!1},scanMediaQueries:function(){var t=[],n;h.matchMedia&&(y.getStylesheets().forEach(function(e){Array.prototype.forEach.call(y.getCSSRules(e),function(e){e.media&&e.cssRules&&y.mediaRuleHasColumnsSelector(e.cssRules)&&t.push(e)})}),n=C.filter(function(e){return-1===t.indexOf(e)}),g.filter(function(e){return-1!==n.indexOf(e.rule)}).forEach(function(e){e.mql.removeListener(y.mediaQueryChange)}),g=g.filter(function(e){return-1===n.indexOf(e.rule)}),t.filter(function(e){return-1==C.indexOf(e)}).forEach(function(e){var t=h.matchMedia(e.media.mediaText);t.addListener(y.mediaQueryChange),g.push({rule:e,mql:t})}),C.length=0,C=t)},rescanMediaQueries:function(){y.scanMediaQueries(),Array.prototype.forEach.call(w,y.recreateColumns)},nextElementColumnIndex:function(e,t){for(var n,r,a,i=e.children,o=i.length,l=0,c=0,a=0;a<o;a++)(r=(n=i[a]).children.length+(t[a].children||t[a].childNodes).length)<(l=0===l?r:l)&&(c=a,l=r);return c},createFragmentsList:function(e){for(var t=new Array(e),n=0;n!==e;)t[n]=p.createDocumentFragment(),n++;return t},appendElements:function(n,e){var t=n.children,r=t.length,a=y.createFragmentsList(r);Array.prototype.forEach.call(e,function(e){var t=y.nextElementColumnIndex(n,a);a[t].appendChild(e)}),Array.prototype.forEach.call(t,function(e,t){e.appendChild(a[t])})},prependElements:function(e,t){var n=e.children,r=n.length,a=y.createFragmentsList(r),i=r-1;t.forEach(function(e){var t=a[i];t.insertBefore(e,t.firstChild),0===i?i=r-1:i--}),Array.prototype.forEach.call(n,function(e,t){e.insertBefore(a[t],e.firstChild)});for(var o=p.createDocumentFragment(),l=t.length%r;0!=l--;)o.appendChild(e.lastChild);e.insertBefore(o,e.firstChild)},registerGrid:function(e){var t,n;"none"===h.getComputedStyle(e).display||0<jQuery(e).children(".column").length||((t=p.createRange()).selectNodeContents(e),(n=p.createElement("div")).appendChild(t.extractContents()),v(n,"columns",0),y.addColumns(e,n),w.push(e))},init:function(){var e=p.createElement("style"),e=(e.innerHTML="[data-columns]::before{visibility:hidden;position:absolute;font-size:1px;}",p.head.appendChild(e),p.querySelectorAll("[data-columns]"));Array.prototype.forEach.call(e,y.registerGrid),y.scanMediaQueries()}}).init(),{appendElements:y.appendElements,prependElements:y.prependElements,registerGrid:y.registerGrid,recreateColumns:y.recreateColumns,rescanMediaQueries:y.rescanMediaQueries,append_elements:y.appendElements,prepend_elements:y.prependElements,register_grid:y.registerGrid,recreate_columns:y.recreateColumns,rescan_media_queries:y.rescanMediaQueries}});
5!function(n){var t={};function o(r){if(t[r])return t[r].exports;var e=t[r]={i:r,l:!1,exports:{}};return n[r].call(e.exports,e,e.exports,o),e.l=!0,e.exports}o.m=n,o.c=t,o.d=function(n,t,r){o.o(n,t)||Object.defineProperty(n,t,{configurable:!1,enumerable:!0,get:r})},o.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return o.d(t,"a",t),t},o.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},o.p="/",o(o.s=21)}([,,function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},,,,,,,,,,,,,function(n,t,o){o(7),o(8),o(3),o(5),o(6),o(2),o(4),n.exports=o(22)},function(n,t){jQuery(function(n){})}]);
6/*!
7  * Bootstrap v5.0.2 (https://getbootstrap.com/)
8  * Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
9  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
10  */
11!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e()}(this,(function(){"use strict";const t={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter(t=>t.matches(e)),parents(t,e){const i=[];let n=t.parentNode;for(;n&&n.nodeType===Node.ELEMENT_NODE&&3!==n.nodeType;)n.matches(e)&&i.push(n),n=n.parentNode;return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]}},e=t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t},i=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i="#"+i.split("#")[1]),e=i&&"#"!==i?i.trim():null}return e},n=t=>{const e=i(t);return e&&document.querySelector(e)?e:null},s=t=>{const e=i(t);return e?document.querySelector(e):null},o=t=>{t.dispatchEvent(new Event("transitionend"))},r=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),a=e=>r(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?t.findOne(e):null,l=(t,e,i)=>
vendor: 19,656 bytes, line 11
11{Object.keys(i).forEach(n=>{const s=i[n],o=e[n],a=o&&r(o)?"element":null==(l=o)?""+l:{}.toString.call(l).match(/\s([a-z]+)/i)[1].toLowerCase();var l;if(!new RegExp(s).test(a))throw new TypeError(`${t.toUpperCase()}: Option "${n}" provided type "${a}" but expected type "${s}".`)})},c=t=>!(!r(t)||0===t.getClientRects().length)&&"visible"===getComputedStyle(t).getPropertyValue("visibility"),h=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),d=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?d(t.parentNode):null},u=()=>{},f=t=>t.offsetHeight,p=()=>{const{jQuery:t}=window;return t&&!document.body.hasAttribute("data-bs-no-jquery")?t:null},m=[],g=()=>"rtl"===document.documentElement.dir,_=t=>{var e;e=()=>{const e=p();if(e){const i=t.NAME,n=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=n,t.jQueryInterface)}},"loading"===document.readyState?(m.length||document.addEventListener("DOMContentLoaded",()=>{m.forEach(t=>t())}),m.push(e)):e()},b=t=>{"function"==typeof t&&t()},v=(t,e,i=!0)=>{if(!i)return void b(t);const n=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const n=Number.parseFloat(e),s=Number.parseFloat(i);return n||s?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0})(e)+5;let s=!1;const r=({target:i})=>{i===e&&(s=!0,e.removeEventListener("transitionend",r),b(t))};e.addEventListener("transitionend",r),setTimeout(()=>{s||o(e)},n)},y=(t,e,i,n)=>{let s=t.indexOf(e);if(-1===s)return t[!i&&n?t.length-1:0];const o=t.length;return s+=i?1:-1,n&&(s=(s+o)%o),t[Math.max(0,Math.min(s,o-1))]},w=/[^.]*(?=\..*)\.|.*/,E=/\..*/,A=/::\d+$/,T={};let O=1;const C={mouseenter:"mouseover",mouseleave:"mouseout"},k=/^(mouseenter|mouseleave)/i,L=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function x(t,e){return e&&`${e}::${O++}`||t.uidEvent||O++}function D(t){const e=x(t);return t.uidEvent=e,T[e]=T[e]||{},T[e]}function S(t,e,i=null){const n=Object.keys(t);for(let s=0,o=n.length;s<o;s++){const o=t[n[s]];if(o.originalHandler===e&&o.delegationSelector===i)return o}return null}function I(t,e,i){const n="string"==typeof e,s=n?i:e;let o=M(t);return L.has(o)||(o=t),[n,s,o]}function N(t,e,i,n,s){if("string"!=typeof e||!t)return;if(i||(i=n,n=null),k.test(e)){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};n?n=t(n):i=t(i)}const[o,r,a]=I(e,i,n),l=D(t),c=l[a]||(l[a]={}),h=S(c,r,o?i:null);if(h)return void(h.oneOff=h.oneOff&&s);const d=x(r,e.replace(w,"")),u=o?function(t,e,i){return function n(s){const o=t.querySelectorAll(e);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(let a=o.length;a--;)if(o[a]===r)return s.delegateTarget=r,n.oneOff&&P.off(t,s.type,e,i),i.apply(r,[s]);return null}}(t,i,n):function(t,e){return function i(n){return n.delegateTarget=t,i.oneOff&&P.off(t,n.type,e),e.apply(t,[n])}}(t,i);u.delegationSelector=o?i:null,u.originalHandler=r,u.oneOff=s,u.uidEvent=d,c[d]=u,t.addEventListener(a,u,o)}function j(t,e,i,n,s){const o=S(e[i],n,s);o&&(t.removeEventListener(i,o,Boolean(s)),delete e[i][o.uidEvent])}function M(t){return t=t.replace(E,""),C[t]||t}const P={on(t,e,i,n){N(t,e,i,n,!1)},one(t,e,i,n){N(t,e,i,n,!0)},off(t,e,i,n){if("string"!=typeof e||!t)return;const[s,o,r]=I(e,i,n),a=r!==e,l=D(t),c=e.startsWith(".");if(void 0!==o){if(!l||!l[r])return;return void j(t,l,r,o,s?i:null)}c&&Object.keys(l).forEach(i=>{!function(t,e,i,n){const s=e[i]||{};Object.keys(s).forEach(o=>{if(o.includes(n)){const n=s[o];j(t,e,i,n.originalHandler,n.delegationSelector)}})}(t,l,i,e.slice(1))});const h=l[r]||{};Object.keys(h).forEach(i=>{const n=i.replace(A,"");if(!a||e.includes(n)){const e=h[i];j(t,l,r,e.originalHandler,e.delegationSelector)}})},trigger(t,e,i){if("string"!=typeof e||!t)return null;const n=p(),s=M(e),o=e!==s,r=L.has(s);let a,l=!0,c=!0,h=!1,d=null;return o&&n&&(a=n.Event(e,i),n(t).trigger(a),l=!a.isPropagationStopped(),c=!a.isImmediatePropagationStopped(),h=a.isDefaultPrevented()),r?(d=document.createEvent("HTMLEvents"),d.initEvent(s,l,!0)):d=new CustomEvent(e,{bubbles:l,cancelable:!0}),void 0!==i&&Object.keys(i).forEach(t=>{Object.defineProperty(d,t,{get:()=>i[t]})}),h&&d.preventDefault(),c&&t.dispatchEvent(d),d.defaultPrevented&&void 0!==a&&a.preventDefault(),d}},H=new Map;var R={set(t,e,i){H.has(t)||H.set(t,new Map);const n=H.get(t);n.has(e)||0===n.size?n.set(e,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(t,e)=>H.has(t)&&H.get(t).get(e)||null,remove(t,e){if(!H.has(t))return;const i=H.get(t);i.delete(e),0===i.size&&H.delete(t)}};class B{constructor(t){(t=a(t))&&(this._element=t,R.set(this._element,this.constructor.DATA_KEY,this))}dispose(){R.remove(this._element,this.constructor.DATA_KEY),P.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach(t=>{this[t]=null})}_queueCallback(t,e,i=!0){v(t,e,i)}static getInstance(t){return R.get(t,this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.0.2"}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}static get DATA_KEY(){return"bs."+this.NAME}static get EVENT_KEY(){return"."+this.DATA_KEY}}class W extends B{static get NAME(){return"alert"}close(t){const e=t?this._getRootElement(t):this._element,i=this._triggerCloseEvent(e);null===i||i.defaultPrevented||this._removeElement(e)}_getRootElement(t){return s(t)||t.closest(".alert")}_triggerCloseEvent(t){return P.trigger(t,"close.bs.alert")}_removeElement(t){t.classList.remove("show");const e=t.classList.contains("fade");this._queueCallback(()=>this._destroyElement(t),t,e)}_destroyElement(t){t.remove(),P.trigger(t,"closed.bs.alert")}static jQueryInterface(t){return this.each((function(){const e=W.getOrCreateInstance(this);"close"===t&&e[t](this)}))}static handleDismiss(t){return function(e){e&&e.preventDefault(),t.close(this)}}}P.on(document,"click.bs.alert.data-api",'[data-bs-dismiss="alert"]',W.handleDismiss(new W)),_(W);class q extends B{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each((function(){const e=q.getOrCreateInstance(this);"toggle"===t&&e[t]()}))}}function z(t){return"true"===t||"false"!==t&&(t===Number(t).toString()?Number(t):""===t||"null"===t?null:t)}function $(t){return t.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}P.on(document,"click.bs.button.data-api",'[data-bs-toggle="button"]',t=>{t.preventDefault();const e=t.target.closest('[data-bs-toggle="button"]');q.getOrCreateInstance(e).toggle()}),_(q);const U={setDataAttribute(t,e,i){t.setAttribute("data-bs-"+$(e),i)},removeDataAttribute(t,e){t.removeAttribute("data-bs-"+$(e))},getDataAttributes(t){if(!t)return{};const e={};return Object.keys(t.dataset).filter(t=>t.startsWith("bs")).forEach(i=>{let n=i.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1,n.length),e[n]=z(t.dataset[i])}),e},getDataAttribute:(t,e)=>z(t.getAttribute("data-bs-"+$(e))),offset(t){const e=t.getBoundingClientRect();return{top:e.top+document.body.scrollTop,left:e.left+document.body.scrollLeft}},position:t=>({top:t.offsetTop,left:t.offsetLeft})},F={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},V={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},K="next",X="prev",Y="left",Q="right",G={ArrowLeft:Q,ArrowRight:Y};class Z extends B{constructor(e,i){super(e),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(i),this._indicatorsElement=t.findOne(".carousel-indicators",this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent),this._addEventListeners()}static get Default(){return F}static get NAME(){return"carousel"}next(){this._slide(K)}nextWhenVisible(){!document.hidden&&c(this._element)&&this.next()}prev(){this._slide(X)}pause(e){e||(this._isPaused=!0),t.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(o(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(e){this._activeElement=t.findOne(".active.carousel-item",this._element);const i=this._getItemIndex(this._activeElement);if(e>this._items.length-1||e<0)return;if(this._isSliding)return void P.one(this._element,"slid.bs.carousel",()=>this.to(e));if(i===e)return this.pause(),void this.cycle();const n=e>i?K:X;this._slide(n,this._items[e])}_getConfig(t){return t={...F,...U.getDataAttributes(this._element),..."object"==typeof t?t:{}},l("carousel",t,V),t}_handleSwipe(){const t=Math.abs(this.touchDeltaX);if(t<=40)return;const e=t/this.touchDeltaX;this.touchDeltaX=0,e&&this._slide(e>0?Q:Y)}_addEventListeners(){this._config.keyboard&&P.on(this._element,"keydown.bs.carousel",t=>this._keydown(t)),"hover"===this._config.pause&&(P.on(this._element,"mouseenter.bs.carousel",t=>this.pause(t)),P.on(this._element,"mouseleave.bs.carousel",t=>this.cycle(t))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){const e=t=>{!this._pointerEvent||"pen"!==t.pointerType&&"touch"!==t.pointerType?this._pointerEvent||(this.touchStartX=t.touches[0].clientX):this.touchStartX=t.clientX},i=t=>{this.touchDeltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this.touchStartX},n=t=>{!this._pointerEvent||"pen"!==t.pointerType&&"touch"!==t.pointerType||(this.touchDeltaX=t.clientX-this.touchStartX),this._handleSwipe(),"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(t=>this.cycle(t),500+this._config.interval))};t.find(".carousel-item img",this._element).forEach(t=>{P.on(t,"dragstart.bs.carousel",t=>t.preventDefault())}),this._pointerEvent?(P.on(this._element,"pointerdown.bs.carousel",t=>e(t)),P.on(this._element,"pointerup.bs.carousel",t=>n(t)),this._element.classList.add("pointer-event")):(P.on(this._element,"touchstart.bs.carousel",t=>e(t)),P.on(this._element,"touchmove.bs.carousel",t=>i(t)),P.on(this._element,"touchend.bs.carousel",t=>n(t)))}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=G[t.key];e&&(t.preventDefault(),this._slide(e))}_getItemIndex(e){return this._items=e&&e.parentNode?t.find(".carousel-item",e.parentNode):[],this._items.indexOf(e)}_getItemByOrder(t,e){const i=t===K;return y(this._items,e,i,this._config.wrap)}_triggerSlideEvent(e,i){const n=this._getItemIndex(e),s=this._getItemIndex(t.findOne(".active.carousel-item",this._element));return P.trigger(this._element,"slide.bs.carousel",{relatedTarget:e,direction:i,from:s,to:n})}_setActiveIndicatorElement(e){if(this._indicatorsElement){const i=t.findOne(".active",this._indicatorsElement);i.classList.remove("active"),i.removeAttribute("aria-current");const n=t.find("[data-bs-target]",this._indicatorsElement);for(let t=0;t<n.length;t++)if(Number.parseInt(n[t].getAttribute("data-bs-slide-to"),10)===this._getItemIndex(e)){n[t].classList.add("active"),n[t].setAttribute("aria-current","true");break}}}_updateInterval(){const e=this._activeElement||t.findOne(".active.carousel-item",this._element);if(!e)return;const i=Number.parseInt(e.getAttribute("data-bs-interval"),10);i?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=i):this._config.interval=this._config.defaultInterval||this._config.interval}_slide(e,i){const n=this._directionToOrder(e),s=t.findOne(".active.carousel-item",this._element),o=this._getItemIndex(s),r=i||this._getItemByOrder(n,s),a=this._getItemIndex(r),l=Boolean(this._interval),c=n===K,h=c?"carousel-item-start":"carousel-item-end",d=c?"carousel-item-next":"carousel-item-prev",u=this._orderToDirection(n);if(r&&r.classList.contains("active"))return void(this._isSliding=!1);if(this._isSliding)return;if(this._triggerSlideEvent(r,u).defaultPrevented)return;if(!s||!r)return;this._isSliding=!0,l&&this.pause(),this._setActiveIndicatorElement(r),this._activeElement=r;const p=()=>{P.trigger(this._element,"slid.bs.carousel",{relatedTarget:r,direction:u,from:o,to:a})};if(this._element.classList.contains("slide")){r.classList.add(d),f(r),s.classList.add(h),r.classList.add(h);const t=()=>{r.classList.remove(h,d),r.classList.add("active"),s.classList.remove("active",d,h),this._isSliding=!1,setTimeout(p,0)};this._queueCallback(t,s,!0)}else s.classList.remove("active"),r.classList.add("active"),this._isSliding=!1,p();l&&this.cycle()}_directionToOrder(t){return[Q,Y].includes(t)?g()?t===Y?X:K:t===Y?K:X:t}_orderToDirection(t){return[K,X].includes(t)?g()?t===X?Y:Q:t===X?Q:Y:t}static carouselInterface(t,e){const i=Z.getOrCreateInstance(t,e);let{_config:n}=i;"object"==typeof e&&(n={...n,...e});const s="string"==typeof e?e:n.slide;if("number"==typeof e)i.to(e);else if("string"==typeof s){if(void 0===i[s])throw new TypeError(`No method named "${s}"`);i[s]()}else n.interval&&n.ride&&(i.pause(),i.cycle())}static jQueryInterface(t){return this.each((function(){Z.carouselInterface(this,t)}))}static dataApiClickHandler(t){const e=s(this);if(!e||!e.classList.contains("carousel"))return;const i={...U.getDataAttributes(e),...U.getDataAttributes(this)},n=this.getAttribute("data-bs-slide-to");n&&(i.interval=!1),Z.carouselInterface(e,i),n&&Z.getInstance(e).to(n),t.preventDefault()}}P.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",Z.dataApiClickHandler),P.on(window,"load.bs.carousel.data-api",()=>{const e=t.find('[data-bs-ride="carousel"]');for(let t=0,i=e.length;t<i;t++)Z.carouselInterface(e[t],Z.getInstance(e[t]))}),_(Z);const J={toggle:!0,parent:""},tt={toggle:"boolean",parent:"(string|element)"};class et extends B{constructor(e,i){super(e),this._isTransitioning=!1,this._config=this._getConfig(i),this._triggerArray=t.find(`[data-bs-toggle="collapse"][href="#${this._element.id}"],[data-bs-toggle="collapse"][data-bs-target="#${this._element.id}"]`);const s=t.find('[data-bs-toggle="collapse"]');for(let e=0,i=s.length;e<i;e++){const i=s[e],o=n(i),r=t.find(o).filter(t=>t===this._element);null!==o&&r.length&&(this._selector=o,this._triggerArray.push(i))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}static get Default(){return J}static get NAME(){return"collapse"}toggle(){this._element.classList.contains("show")?this.hide():this.show()}show(){if(this._isTransitioning||this._element.classList.contains("show"))return;let e,i;this._parent&&(e=t.find(".show, .collapsing",this._parent).filter(t=>"string"==typeof this._config.parent?t.getAttribute("data-bs-parent")===this._config.parent:t.classList.contains("collapse")),0===e.length&&(e=null));const n=t.findOne(this._selector);if(e){const t=e.find(t=>n!==t);if(i=t?et.getInstance(t):null,i&&i._isTransitioning)return}if(P.trigger(this._element,"show.bs.collapse").defaultPrevented)return;e&&e.forEach(t=>{n!==t&&et.collapseInterface(t,"hide"),i||R.set(t,"bs.collapse",null)});const s=this._getDimension();this._element.classList.remove("collapse"),this._element.classList.add("collapsing"),this._element.style[s]=0,this._triggerArray.length&&this._triggerArray.forEach(t=>{t.classList.remove("collapsed"),t.setAttribute("aria-expanded",!0)}),this.setTransitioning(!0);const o="scroll"+(s[0].toUpperCase()+s.slice(1));this._queueCallback(()=>{this._element.classList.remove("collapsing"),this._element.classList.add("collapse","show"),this._element.style[s]="",this.setTransitioning(!1),P.trigger(this._element,"shown.bs.collapse")},this._element,!0),this._element.style[s]=this._element[o]+"px"}hide(){if(this._isTransitioning||!this._element.classList.contains("show"))return;if(P.trigger(this._element,"hide.bs.collapse").defaultPrevented)return;const t=this._getDimension();this._element.style[t]=this._element.getBoundingClientRect()[t]+"px",f(this._element),this._element.classList.add("collapsing"),this._element.classList.remove("collapse","show");const e=this._triggerArray.length;if(e>0)for(let t=0;t<e;t++){const e=this._triggerArray[t],i=s(e);i&&!i.classList.contains("show")&&(e.classList.add("collapsed"),e.setAttribute("aria-expanded",!1))}this.setTransitioning(!0),this._element.style[t]="",this._queueCallback(()=>{this.setTransitioning(!1),this._element.classList.remove("collapsing"),this._element.classList.add("collapse"),P.trigger(this._element,"hidden.bs.collapse")},this._element,!0)}setTransitioning(t){this._isTransitioning=t}_getConfig(t){return(t={...J,...t}).toggle=Boolean(t.toggle),l("collapse",t,tt),t}_getDimension(){return this._element.classList.contains("width")?"width":"height"}_getParent(){let{parent:e}=this._config;e=a(e);const i=`[data-bs-toggle="collapse"][data-bs-parent="${e}"]`;return t.find(i,e).forEach(t=>{const e=s(t);this._addAriaAndCollapsedClass(e,[t])}),e}_addAriaAndCollapsedClass(t,e){if(!t||!e.length)return;const i=t.classList.contains("show");e.forEach(t=>{i?t.classList.remove("collapsed"):t.classList.add("collapsed"),t.setAttribute("aria-expanded",i)})}static collapseInterface(t,e){let i=et.getInstance(t);const n={...J,...U.getDataAttributes(t),..."object"==typeof e&&e?e:{}};if(!i&&n.toggle&&"string"==typeof e&&/show|hide/.test(e)&&(n.toggle=!1),i||(i=new et(t,n)),"string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]()}}static jQueryInterface(t){return this.each((function(){et.collapseInterface(this,t)}))}}P.on(document,"click.bs.collapse.data-api",'[data-bs-toggle="collapse"]',(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();const i=U.getDataAttributes(this),s=n(this);t.find(s).forEach(t=>{const e=et.getInstance(t);let n;e?(null===e._parent&&"string"==typeof i.parent&&(e._config.parent=i.parent,e._parent=e._getParent()),n="toggle"):n=i,et.collapseInterface(t,n)})})),_(et);var it="top",nt="bottom",st="right",ot="left",rt=[it,nt,st,ot],at=rt.reduce((function(t,e){return t.concat([e+"-start",e+"-end"])}),[]),lt=[].concat(rt,["auto"]).reduce((function(t,e){return t.concat([e,e+"-start",e+"-end"])}),[]),ct=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];
11function ht(t){return t?(t.nodeName||"").toLowerCase():null}function dt(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function ut(t){return t instanceof dt(t).Element||t instanceof Element}function ft(t){return t instanceof dt(t).HTMLElement||t instanceof HTMLElement}function pt(t){return"undefined"!=typeof ShadowRoot&&(t instanceof dt(t).ShadowRoot||t instanceof ShadowRoot)}var mt={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},s=e.elements[t];ft(s)&&ht(s)&&(Object.assign(s.style,i),Object.keys(n).forEach((function(t){var e=n[t];!1===e?s.removeAttribute(t):s.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t],s=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});ft(n)&&ht(n)&&(Object.assign(n.style,o),Object.keys(s).forEach((function(t){n.removeAttribute(t)})))}))}},requires:["computeStyles"]};function gt(t){return t.split("-")[0]}function _t(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function bt(t){var e=_t(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function vt(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&pt(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function yt(t){return dt(t).getComputedStyle(t)}function wt(t){return["table","td","th"].indexOf(ht(t))>=0}function Et(t){return((ut(t)?t.ownerDocument:t.document)||window.document).documentElement}function At(t){return"html"===ht(t)?t:t.assignedSlot||t.parentNode||(pt(t)?t.host:null)||Et(t)}function Tt(t){return ft(t)&&"fixed"!==yt(t).position?t.offsetParent:null}function Ot(t){for(var e=dt(t),i=Tt(t);i&&wt(i)&&"static"===yt(i).position;)i=Tt(i);return i&&("html"===ht(i)||"body"===ht(i)&&"static"===yt(i).position)?e:i||function(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&ft(t)&&"fixed"===yt(t).position)return null;for(var i=At(t);ft(i)&&["html","body"].indexOf(ht(i))<0;){var n=yt(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(t)||e}function Ct(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}var kt=Math.max,Lt=Math.min,xt=Math.round;function Dt(t,e,i){return kt(t,Lt(e,i))}function St(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function It(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}var Nt={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,n=t.name,s=t.options,o=i.elements.arrow,r=i.modifiersData.popperOffsets,a=gt(i.placement),l=Ct(a),c=[ot,st].indexOf(a)>=0?"height":"width";if(o&&r){var h=function(t,e){return St("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:It(t,rt))}(s.padding,i),d=bt(o),u="y"===l?it:ot,f="y"===l?nt:st,p=i.rects.reference[c]+i.rects.reference[l]-r[l]-i.rects.popper[c],m=r[l]-i.rects.reference[l],g=Ot(o),_=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,b=p/2-m/2,v=h[u],y=_-d[c]-h[f],w=_/2-d[c]/2+b,E=Dt(v,w,y),A=l;i.modifiersData[n]=((e={})[A]=E,e.centerOffset=E-w,e)}},effect:function(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&vt(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},jt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Mt(t){var e,i=t.popper,n=t.popperRect,s=t.placement,o=t.offsets,r=t.position,a=t.gpuAcceleration,l=t.adaptive,c=t.roundOffsets,h=!0===c?function(t){var e=t.x,i=t.y,n=window.devicePixelRatio||1;return{x:xt(xt(e*n)/n)||0,y:xt(xt(i*n)/n)||0}}(o):"function"==typeof c?c(o):o,d=h.x,u=void 0===d?0:d,f=h.y,p=void 0===f?0:f,m=o.hasOwnProperty("x"),g=o.hasOwnProperty("y"),_=ot,b=it,v=window;if(l){var y=Ot(i),w="clientHeight",E="clientWidth";y===dt(i)&&"static"!==yt(y=Et(i)).position&&(w="scrollHeight",E="scrollWidth"),y=y,s===it&&(b=nt,p-=y[w]-n.height,p*=a?1:-1),s===ot&&(_=st,u-=y[E]-n.width,u*=a?1:-1)}var A,T=Object.assign({position:r},l&&jt);return a?Object.assign({},T,((A={})[b]=g?"0":"",A[_]=m?"0":"",A.transform=(v.devicePixelRatio||1)<2?"translate("+u+"px, "+p+"px)":"translate3d("+u+"px, "+p+"px, 0)",A)):Object.assign({},T,((e={})[b]=g?p+"px":"",e[_]=m?u+"px":"",e.transform="",e))}var Pt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,s=void 0===n||n,o=i.adaptive,r=void 0===o||o,a=i.roundOffsets,l=void 0===a||a,c={placement:gt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,Mt(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,Mt(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},Ht={passive:!0},Rt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,s=n.scroll,o=void 0===s||s,r=n.resize,a=void 0===r||r,l=dt(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);
11return o&&c.forEach((function(t){t.addEventListener("scroll",i.update,Ht)})),a&&l.addEventListener("resize",i.update,Ht),function(){o&&c.forEach((function(t){t.removeEventListener("scroll",i.update,Ht)})),a&&l.removeEventListener("resize",i.update,Ht)}},data:{}},Bt={left:"right",right:"left",bottom:"top",top:"bottom"};function Wt(t){return t.replace(/left|right|bottom|top/g,(function(t){return Bt[t]}))}var qt={start:"end",end:"start"};function zt(t){return t.replace(/start|end/g,(function(t){return qt[t]}))}function $t(t){var e=dt(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ut(t){return _t(Et(t)).left+$t(t).scrollLeft}function Ft(t){var e=yt(t),i=e.overflow,n=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function Vt(t,e){var i;void 0===e&&(e=[]);var n=function t(e){return["html","body","#document"].indexOf(ht(e))>=0?e.ownerDocument.body:ft(e)&&Ft(e)?e:t(At(e))}(t),s=n===(null==(i=t.ownerDocument)?void 0:i.body),o=dt(n),r=s?[o].concat(o.visualViewport||[],Ft(n)?n:[]):n,a=e.concat(r);return s?a:a.concat(Vt(At(r)))}function Kt(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Xt(t,e){return"viewport"===e?Kt(function(t){var e=dt(t),i=Et(t),n=e.visualVie
vendor: 5,470 bytes, line 11
11wport,s=i.clientWidth,o=i.clientHeight,r=0,a=0;return n&&(s=n.width,o=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(r=n.offsetLeft,a=n.offsetTop)),{width:s,height:o,x:r+Ut(t),y:a}}(t)):ft(e)?function(t){var e=_t(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):Kt(function(t){var e,i=Et(t),n=$t(t),s=null==(e=t.ownerDocument)?void 0:e.body,o=kt(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=kt(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-n.scrollLeft+Ut(t),l=-n.scrollTop;return"rtl"===yt(s||i).direction&&(a+=kt(i.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}(Et(t)))}function Yt(t){return t.split("-")[1]}function Qt(t){var e,i=t.reference,n=t.element,s=t.placement,o=s?gt(s):null,r=s?Yt(s):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(o){case it:e={x:a,y:i.y-n.height};break;case nt:e={x:a,y:i.y+i.height};break;case st:e={x:i.x+i.width,y:l};break;case ot:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=o?Ct(o):null;if(null!=c){var h="y"===c?"height":"width";switch(r){case"start":e[c]=e[c]-(i[h]/2-n[h]/2);break;case"end":e[c]=e[c]+(i[h]/2-n[h]/2)}}return e}function Gt(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=void 0===n?t.placement:n,o=i.boundary,r=void 0===o?"clippingParents":o,a=i.rootBoundary,l=void 0===a?"viewport":a,c=i.elementContext,h=void 0===c?"popper":c,d=i.altBoundary,u=void 0!==d&&d,f=i.padding,p=void 0===f?0:f,m=St("number"!=typeof p?p:It(p,rt)),g="popper"===h?"reference":"popper",_=t.elements.reference,b=t.rects.popper,v=t.elements[u?g:h],y=function(t,e,i){var n="clippingParents"===e?function(t){var e=Vt(At(t)),i=["absolute","fixed"].indexOf(yt(t).position)>=0&&ft(t)?Ot(t):t;return ut(i)?e.filter((function(t){return ut(t)&&vt(t,i)&&"body"!==ht(t)})):[]}(t):[].concat(e),s=[].concat(n,[i]),o=s[0],r=s.reduce((function(e,i){var n=Xt(t,i);return e.top=kt(n.top,e.top),e.right=Lt(n.right,e.right),e.bottom=Lt(n.bottom,e.bottom),e.left=kt(n.left,e.left),e}),Xt(t,o));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}(ut(v)?v:v.contextElement||Et(t.elements.popper),r,l),w=_t(_),E=Qt({reference:w,element:b,strategy:"absolute",placement:s}),A=Kt(Object.assign({},b,E)),T="popper"===h?A:w,O={top:y.top-T.top+m.top,bottom:T.bottom-y.bottom+m.bottom,left:y.left-T.left+m.left,right:T.right-y.right+m.right},C=t.modifiersData.offset;if("popper"===h&&C){var k=C[s];Object.keys(O).forEach((function(t){var e=[st,nt].indexOf(t)>=0?1:-1,i=[it,nt].indexOf(t)>=0?"y":"x";O[t]+=k[i]*e}))}return O}function Zt(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=i.boundary,o=i.rootBoundary,r=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?lt:l,h=Yt(n),d=h?a?at:at.filter((function(t){return Yt(t)===h})):rt,u=d.filter((function(t){return c.indexOf(t)>=0}));0===u.length&&(u=d);var f=u.reduce((function(e,i){return e[i]=Gt(t,{placement:i,boundary:s,rootBoundary:o,padding:r})[gt(i)],e}),{});return Object.keys(f).sort((function(t,e){return f[t]-f[e]}))}var Jt={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var s=i.mainAxis,o=void 0===s||s,r=i.altAxis,a=void 0===r||r,l=i.fallbackPlacements,c=i.padding,h=i.boundary,d=i.rootBoundary,u=i.altBoundary,f=i.flipVariations,p=void 0===f||f,m=i.allowedAutoPlacements,g=e.options.placement,_=gt(g),b=l||(_!==g&&p?function(t){if("auto"===gt(t))return[];var e=Wt(t);return[zt(t),e,zt(e)]}(g):[Wt(g)]),v=[g].concat(b).reduce((function(t,i){return t.concat("auto"===gt(i)?Zt(e,{placement:i,boundary:h,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:m}):i)}),[]),y=e.rects.reference,w=e.rects.popper,E=new Map,A=!0,T=v[0],O=0;O<v.length;O++){var C=v[O],k=gt(C),L="start"===Yt(C),x=[it,nt].indexOf(k)>=0,D=x?"width":"height",S=Gt(e,{placement:C,boundary:h,rootBoundary:d,altBoundary:u,padding:c}),I=x?L?st:ot:L?nt:it;y[D]>w[D]&&(I=Wt(I));var N=Wt(I),j=[];if(o&&j.push(S[k]<=0),a&&j.push(S[I]<=0,S[N]<=0),j.every((function(t){return t}))){T=C,A=!1;break}E.set(C,j)}if(A)for(var M=function(t){var e=v.find((function(e){var i=E.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return T=e,"break"},P=p?3:1;P>0&&"break"!==M(P);P--);e.placement!==T&&(e.modifiersData[n]._skip=!0,e.placement=T,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function te(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function ee(t){return[it,st,nt,ot].some((function(e){return t[e]>=0}))}var ie={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,s=e.rects.popper,o=e.modifiersData.preventOverflow,r=Gt(e,{elementContext:"reference"}),a=Gt(e,{altBoundary:!0}),l=te(r,n),c=te(a,s,o),h=ee(l),d=ee(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}},ne={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.offset,o=void 0===s?[0,0]:s,r=lt.reduce((function(t,i){return t[i]=function(t,e,
11i){var n=gt(t),s=[ot,it].indexOf(n)>=0?-1:1,o="function"==typeof i?i(Object.assign({},e,{placement:t})):i,r=o[0],a=o[1];return r=r||0,a=(a||0)*s,[ot,st].indexOf(n)>=0?{x:a,y:r}:{x:r,y:a}}(i,e.rects,o),t}),{}),a=r[e.placement],l=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=r}},se={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=Qt({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},oe={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.mainAxis,o=void 0===s||s,r=i.altAxis,a=void 0!==r&&r,l=i.boundary,c=i.rootBoundary,h=i.altBoundary,d=i.padding,u=i.tether,f=void 0===u||u,p=i.tetherOffset,m=void 0===p?0:p,g=Gt(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:h}),_=gt(e.placement),b=Yt(e.placement),v=!b,y=Ct(_),w="x"===y?"y":"x",E=e.modifiersData.popperOffsets,A=e.rects.reference,T=e.rects.popper,O="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,C={x:0,y:0};if(E){if(o||a){var k="y"===y?it:ot,L="y"===y?nt:st,x="y"===y?"height":"width",D=E[y],S=E[y]+g[k],I=E[y]-g[L],N=f?-T[x]/2:0,j="start"===b?A[x]:T[x],M="start"===b?-T[x]:-A[x],P=e.elements.arrow,H=f&&P?bt(P):{width:0,height:0},R=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=R[k],W=R[L],q=Dt(0,A[x],H[x]),z=v?A[x]/2-N-q-B-O:j-q-B-O,$=v?-A[x]/2+N+q+W+O:M+q+W+O,U=e.elements.arrow&&Ot(e.elements.arrow),F=U?"y"===y?U.clientTop||0:U.clientLeft||0:0,V=e.modifiersData.offset?e.modifiersData.offset[e.placement][y]:0,K=E[y]+z-V-F,X=E[y]+$-V;if(o){var Y=Dt(f?Lt(S,K):S,D,f?kt(I,X):I);E[y]=Y,C[y]=Y-D}if(a){var Q="x"===y?it:ot,G="x"===y?nt:st,Z=E[w],J=Z+g[Q],tt=Z-g[G],et=Dt(f?Lt(J,K):J,Z,f?kt(tt,X):tt);E[w]=et,C[w]=et-Z}}e.modifiersData[n]=C}},requiresIfExists:["offset"]};function re(t,e,i){void 0===i&&(i=!1);var n,s,o=Et(e),r=_t(t),a=ft(e),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(a||!a&&!i)&&(("body"!==ht(e)||Ft(o))&&(l=(n=e)!==dt(n)&&ft(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:$t(n)),ft(e)?((c=_t(e)).x+=e.clientLeft,c.y+=e.clientTop):o&&(c.x=Ut(o))),{x:r.left+l.scrollLeft-c.x,y:r.top+l.scrollTop-c.y,width:r.width,height:r.height}}var ae={placement:"bottom",modifiers:[],strategy:"absolute"};function le(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function ce(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,n=void 0===i?[]:i,s=e.defaultOptions,o=void 0===s?ae:s;return function(t,e,i){void 0===i&&(i=o);var s,r,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},ae,o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,h={state:a,setOptions:function(i){d(),a.options=Object.assign({},o,a.options,i),a.scrollParents={reference:ut(t)?Vt(t):t.contextElement?Vt(t.contextElement):[],popper:Vt(e)};var s,r,c=function(t){var e=function(t){var e=new Map,i=new Set,n=[];return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||function t(s){i.add(s.name),[].concat(s.requires||[],s.requiresIfExists||[]).forEach((function(n){if(!i.has(n)){var s=e.get(n);s&&t(s)}})),n.push(s)}(t)})),n}(t);return ct.reduce((function(t,i){return t.concat(e.filter((function(t){return t.phase===i})))}),[])}((s=[].concat(n,a.options.modifiers),r=s.reduce((function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e,t}),{}),Object.keys(r).map((function(t){return r[t]}))));return a.orderedModifiers=c.filter((function(t){return t.enabled})),a.orderedModifiers.forEach((function(t){var e=t.name,i=t.options,n=void 0===i?{}:i,s=t.effect;if("function"==typeof s){var o=s({state:a,name:e,instance:h,options:n});l.push(o||function(){})}})),h.update()},forceUpdate:function(){if(!c){var t=a.elements,e=t.reference,i=t.popper;if(le(e,i)){a.rects={reference:re(e,Ot(i),"fixed"===a.options.strategy),popper:bt(i)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEac
11h((function(t){return a.modifiersData[t.name]=Object.assign({},t.data)}));for(var n=0;n<a.orderedModifiers.length;n++)if(!0!==a.reset){var s=a.orderedModifiers[n],o=s.fn,r=s.options,l=void 0===r?{}:r,d=s.name;"function"==typeof o&&(a=o({state:a,options:l,name:d,instance:h})||a)}else a.reset=!1,n=-1}}},update:(s=function(){return new Promise((function(t){h.forceUpdate(),t(a)}))},function(){return r||(r=new Promise((function(t){Promise.resolve().then((function(){r=void 0,t(s())}))}))),r}),destroy:function(){d(),c=!0}};if(!le(t,e))return h;function d(){l.forEach((function(t){return t()})),l=[]}return h.setOptions(i).then((function(t){!c&&i.onFirstUpdate&&i.onFirstUpdate(t)})),h}}var he=ce(),de=ce({defaultModifiers:[Rt,se,Pt,mt]}),ue=ce({defaultModifiers:[Rt,se,Pt,mt,ne,Jt,oe,Nt,ie]}),fe=Object.freeze({__proto__:null,popperGenerator:ce,detectOverflow:Gt,createPopperBase:he,createPopper:ue,createPopperLite:de,top:it,bottom:nt,right:st,left:ot,auto:"auto",basePlacements:rt,start:"start",end:"end",clippingParents:"clippingParents",viewport:"viewport",popper:"popper",reference:"reference",variationPlacements:at,placements:lt,beforeRead:"beforeRead",read:"read",afterRead:"afterRead",beforeMain:"beforeMain",main:"main",afterMain:"afterMain",beforeWrite:"beforeWrite",write:"write",afterWrite:"afterWrite",modifierPhases:ct,applyStyles:mt,arrow:Nt,computeStyles:Pt,eventListeners:Rt,flip:Jt,hide:ie,offset:ne,popperOffsets:se,preventOverflow:oe});const pe=new RegExp("ArrowUp|ArrowDown|Escape"),me=g()?"top-end":"top-start",ge=g()?"top-start":"top-end",_e=g()?"bottom-end":"bottom-start",be=g()?"bottom-start":"bottom-end",ve=g()?"left-start":"right-start",ye=g()?"right-start":"left-start",we={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},Ee={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"};class Ae extends B{constructor(t,e){super(t),this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}static get Default(){return we}static get DefaultType(){return Ee}static get NAME(){return"dropdown"}toggle(){h(this._element)||(this._element.classList.contains("show")?this.hide():this.show())}show(){if(h(this._element)||this._menu.classList.contains("show"))return;const t=Ae.getParentFromElement(this._element),e={relatedTarget:this._element};if(!P.trigger(this._element,"show.bs.dropdown",e).defaultPrevented){if(this._inNavbar)U.setDataAttribute(this._menu,"popper","none");else{if(void 0===fe)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=t:r(this._config.reference)?e=a(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const i=this._getPopperConfig(),n=i.modifiers.find(t=>"applyStyles"===t.name&&!1===t.enabled);this._popper=ue(e,this._menu,i),n&&U.setDataAttribute(this._menu,"popper","static")}
vendor: 12,488 bytes, line 11
11"ontouchstart"in document.documentElement&&!t.closest(".navbar-nav")&&[].concat(...document.body.children).forEach(t=>P.on(t,"mouseover",u)),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.toggle("show"),this._element.classList.toggle("show"),P.trigger(this._element,"shown.bs.dropdown",e)}}hide(){if(h(this._element)||!this._menu.classList.contains("show"))return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_addEventListeners(){P.on(this._element,"click.bs.dropdown",t=>{t.preventDefault(),this.toggle()})}_completeHide(t){P.trigger(this._element,"hide.bs.dropdown",t).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(t=>P.off(t,"mouseover",u)),this._popper&&this._popper.destroy(),this._menu.classList.remove("show"),this._element.classList.remove("show"),this._element.setAttribute("aria-expanded","false"),U.removeDataAttribute(this._menu,"popper"),P.trigger(this._element,"hidden.bs.dropdown",t))}_getConfig(t){if(t={...this.constructor.Default,...U.getDataAttributes(this._element),...t},l("dropdown",t,this.constructor.DefaultType),"object"==typeof t.reference&&!r(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError("dropdown".toUpperCase()+': Option "reference" provided type "object" without a required "getBoundingClientRect" method.');return t}_getMenuElement(){return t.next(this._element,".dropdown-menu")[0]}_getPlacement(){const t=this._element.parentNode;if(t.classList.contains("dropend"))return ve;if(t.classList.contains("dropstart"))return ye;const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?ge:me:e?be:_e}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return"static"===this._config.display&&(t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_selectMenuItem({key:e,target:i}){const n=t.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(c);n.length&&y(n,i,"ArrowDown"===e,!n.includes(i)).focus()}static dropdownInterface(t,e){const i=Ae.getOrCreateInstance(t,e);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]()}}static jQueryInterface(t){return this.each((function(){Ae.dropdownInterface(this,t)}))}static clearMenus(e){if(e&&(2===e.button||"keyup"===e.type&&"Tab"!==e.key))return;const i=t.find('[data-bs-toggle="dropdown"]');for(let t=0,n=i.length;t<n;t++){const n=Ae.getInstance(i[t]);if(!n||!1===n._config.autoClose)continue;if(!n._element.classList.contains("show"))continue;const s={relatedTarget:n._element};if(e){const t=e.composedPath(),i=t.includes(n._menu);if(t.includes(n._element)||"inside"===n._config.autoClose&&!i||"outside"===n._config.autoClose&&i)continue;if(n._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;"click"===e.type&&(s.clickEvent=e)}n._completeHide(s)}}static getParentFromElement(t){return s(t)||t.parentNode}static dataApiKeydownHandler(e){if(/input|textarea/i.test(e.target.tagName)?"Space"===e.key||"Escape"!==e.key&&("ArrowDown"!==e.key&&"ArrowUp"!==e.key||e.target.closest(".dropdown-menu")):!pe.test(e.key))return;const i=this.classList.contains("show");if(!i&&"Escape"===e.key)return;if(e.preventDefault(),e.stopPropagation(),h(this))return;const n=()=>this.matches('[data-bs-toggle="dropdown"]')?this:t.prev(this,'[data-bs-toggle="dropdown"]')[0];return"Escape"===e.key?(n().focus(),void Ae.clearMenus()):"ArrowUp"===e.key||"ArrowDown"===e.key?(i||n().click(),void Ae.getInstance(n())._selectMenuItem(e)):void(i&&"Space"!==e.key||Ae.clearMenus())}}P.on(document,"keydown.bs.dropdown.data-api",'[data-bs-toggle="dropdown"]',Ae.dataApiKeydownHandler),P.on(document,"keydown.bs.dropdown.data-api",".dropdown-menu",Ae.dataApiKeydownHandler),P.on(document,"click.bs.dropdown.data-api",Ae.clearMenus),P.on(document,"keyup.bs.dropdown.data-api",Ae.clearMenus),P.on(document,"click.bs.dropdown.data-api",'[data-bs-toggle="dropdown"]',(function(t){t.preventDefault(),Ae.dropdownInterface(this)})),_(Ae);class Te{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,"paddingRight",e=>e+t),this._setElementAttributes(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top","paddingRight",e=>e+t),this._setElementAttributes(".sticky-top","marginRight",e=>e-t)}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const n=this.getWidth();this._applyManipulationCallback(t,t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+n)return;this._saveInitialAttribute(t,e);const s=window.getComputedStyle(t)[e];t.style[e]=i(Number.parseFloat(s))+"px"})}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top","paddingRight"),this._resetElementAttributes(".sticky-top","marginRight")}_saveInitialAttribute(t,e){const i=t.style[e];i&&U.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,t=>{const i=U.getDataAttribute(t,e);void 0===i?t.style.removeProperty(e):(U.removeDataAttribute(t,e),t.style[e]=i)})}_applyManipulationCallback(e,i){r(e)?i(e):t.find(e,this._element).forEach(i)}isOverflowing(){return this.getWidth()>0}}const Oe={isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},Ce={isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"};class ke{constructor(t){this._config=this._getConfig(t),this._isAppended=!1,this._element=null}show(t){this._config.isVisible?(this._append(),this._config.isAnimated&&f(this._getElement()),this._getElement().classList.add("show"),this._emulateAnimation(()=>{b(t)})):b(t)}hide(t){this._config.isVisible?(this._getElement().classList.remove("show"),this._emulateAnimation(()=>{this.dispose(),b(t)})):b(t)}_getElement(){if(!this._element){const t=document.createElement("div");t.className="modal-backdrop",this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_getConfig(t){return(t={...Oe,..."object"==typeof t?t:{}}).rootElement=a(t.rootElement),l("backdrop",t,Ce),t}_append(){this._isAppended||(this._config.rootElement.appendChild(this._getElement()),P.on(this._getElement(),"mousedown.bs.backdrop",()=>{b(this._config.clickCallback)}),this._isAppended=!0)}dispose(){this._isAppended&&(P.off(this._element,"mousedown.bs.backdrop"),this._element.remove(),this._isAppended=!1)}_emulateAnimation(t){v(t,this._getElement(),this._config.isAnimated)}}const Le={backdrop:!0,keyboard:!0,focus:!0},xe={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"};class De extends B{constructor(e,i){super(e),this._config=this._getConfig(i),this._dialog=t.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._isShown=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollBar=new Te}static get Default(){return Le}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||P.trigger(this._element,"show.bs.modal",{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add("modal-open"),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),P.on(this._element,"click.dismiss.bs.modal",'[data-bs-dismiss="modal"]',t=>this.hide(t)),P.on(this._dialog,"mousedown.dismiss.bs.modal",()=>{P.one(this._element,"mouseup.dismiss.bs.modal",t=>{t.target===this._element&&(this._ignoreBackdropClick=!0)})}),this._showBackdrop(()=>this._showElement(t)))}hide(t){if(t&&["A","AREA"].includes(t.target.tagName)&&t.preventDefault(),!this._isShown||this._isTransitioning)return;if(P.trigger(this._element,"hide.bs.modal").defaultPrevented)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),P.off(document,"focusin.bs.modal"),this._element.classList.remove("show"),P.off(this._element,"click.dismiss.bs.modal"),P.off(this._dialog,"mousedown.dismiss.bs.modal"),this._queueCallback(()=>this._hideModal(),this._element,e)}dispose(){[window,this._dialog].forEach(t=>P.off(t,".bs.modal")),this._backdrop.dispose(),super.dispose(),P.off(document,"focusin.bs.modal")}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new ke({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_getConfig(t){return t={...Le,...U.getDataAttributes(this._element),..."object"==typeof t?t:{}},l("modal",t,xe),t}_showElement(e){const i=this._isAnimated(),n=t.findOne(".modal-body",this._dialog);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0,n&&(n.scrollTop=0),i&&f(this._element),this._element.classList.add("show"),this._config.focus&&this._enforceFocus(),this._queueCallback(()=>{this._config.focus&&this._element.focus(),this._isTransitioning=!1,P.trigger(this._element,"shown.bs.modal",{relatedTarget:e})},this._dialog,i)}_enforceFocus(){P.off(document,"focusin.bs.modal"),P.on(document,"focusin.bs.modal",t=>{document===t.target||this._element===t.target||this._element.contains(t.target)||this._element.focus()})}_setEscapeEvent(){this._isShown?P.on(this._element,"keydown.dismiss.bs.modal",t=>{this._config.keyboard&&"Escape"===t.key?(t.preventDefault(),this.hide()):this._config.keyboard||"Escape"!==t.key||this._triggerBackdropTransition()}):P.off(this._element,"keydown.dismiss.bs.modal")}_setResizeEvent(){this._isShown?P.on(window,"resize.bs.modal",()=>this._adjustDialog()):P.off(window,"resize.bs.modal")}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove("modal-open"),this._resetAdjustments(),this._scrollBar.reset(),P.trigger(this._element,"hidden.bs.modal")})}_showBackdrop(t){P.on(this._element,"click.dismiss.bs.modal",t=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:t.target===t.currentTarget&&(!0===this._config.backdrop?this.hide():"static"===this._config.backdrop&&this._triggerBackdropTransition())}),this._backdrop.show(t)}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(P.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented)return;const{classList:t,scrollHeight:e,style:i}=this._element,n=e>document.documentElement.clientHeight;!n&&"hidden"===i.overflowY||t.contains("modal-static")||(n||(i.overflowY="hidden"),t.add("modal-static"),this._queueCallback(()=>{t.remove("modal-static"),n||this._queueCallback(()=>{i.overflowY=""},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),i=e>0;(!i&&t&&!g()||i&&!t&&g())&&(this._element.style.paddingLeft=e+"px"),(i&&!t&&!g()||!i&&t&&g())&&(this._element.style.paddingRight=e+"px")}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each((function(){const i=De.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method n
11amed "${t}"`);i[t](e)}}))}}P.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',(function(t){const e=s(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),P.one(e,"show.bs.modal",t=>{t.defaultPrevented||P.one(e,"hidden.bs.modal",()=>{c(this)&&this.focus()})}),De.getOrCreateInstance(e).toggle(this)})),_(De);const Se={backdrop:!0,keyboard:!0,scroll:!1},Ie={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"};class Ne extends B{constructor(t,e){super(t),this._config=this._getConfig(e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._addEventListeners()}static get NAME(){return"offcanvas"}static get Default(){return Se}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||P.trigger(this._element,"show.bs.offcanvas",{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||((new Te).hide(),this._enforceFocusOnElement(this._element)),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add("show"),this._queueCallback(()=>{P.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:t})},this._element,!0))}hide(){this._isShown&&(P.trigger(this._element,"hide.bs.offcanvas").defaultPrevented||(P.off(document,"focusin.bs.offcanvas"),this._element.blur(),this._isShown=!1,this._element.classList.remove("show"),this._backdrop.hide(),this._queueCallback(()=>{this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._element.style.visibility="hidden",this._config.scroll||(new Te).reset(),P.trigger(this._element,"hidden.bs.offcanvas")},this._element,!0)))}dispose(){this._backdrop.dispose(),super.dispose(),P.off(document,"focusin.bs.offcanvas")}_getConfig(t){return t={...Se,...U.getDataAttributes(this._element),..."object"==typeof t?t:{}},l("offcanvas",t,Ie),t}_initializeBackDrop(){return new ke({isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_enforceFocusOnElement(t){P.off(document,"focusin.bs.offcanvas"),P.on(document,"focusin.bs.offcanvas",e=>{document===e.target||t===e.target||t.contains(e.target)||t.focus()}),t.focus()}_addEventListeners(){P.on(this._element,"click.dismiss.bs.offcanvas",'[data-bs-dismiss="offcanvas"]',()=>this.hide()),P.on(this._element,"keydown.dismiss.bs.offcanvas",t=>{this._config.keyboard&&"Escape"===t.key&&this.hide()})}static jQueryInterface(t){return this.each((function(){const e=Ne.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}P.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',(function(e){const i=s(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),h(this))return;P.one(i,"hidden.bs.offcanvas",()=>{c(this)&&this.focus()});const n=t.findOne(".offcanvas.show");n&&n!==i&&Ne.getInstance(n).hide(),Ne.getOrCreateInstance(i).toggle(this)})),P.on(window,"load.bs.offcanvas.data-api",()=>t.find(".offcanvas.show").forEach(t=>Ne.getOrCreateInstance(t).show())),_(Ne);const je=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Me=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/i,Pe=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,He=(t,e)=>{const i=t.nodeName.toLowerCase();if(e.includes(i))return!je.has(i)||Boolean(Me.test(t.nodeValue)||Pe.test(t.nodeValue));const n=e.filter(t=>t instanceof RegExp);for(let t=0,e=n.length;t<e;t++)if(n[t].test(i))return!0;return!1};function Re(t,e,i){if(!t.length)return t;if(i&&"function"==typeof i)return i(t);const n=(new window.DOMParser).parseFromString(t,"text/html"),s=Object.keys(e),o=[].concat(...n.body.querySelectorAll("*"));for(let t=0,i=o.length;t<i;t++){const i=o[t],n=i.nodeName.toLowerCase();if(!s.includes(n)){i.remove();continue}const r=[].concat(...i.attributes),a=[].concat(e["*"]||[],e[n]||[]);r.forEach(t=>{He(t,a)||i.removeAttribute(t.nodeName)})}return n.body.innerHTML}const Be=new RegExp("(^|\\s)bs-tooltip\\S+","g"),We=new Set(["sanitize","allowList","sanitizeFn"]),qe={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boun
vendor: 19,581 bytes, line 11
11dary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},ze={AUTO:"auto",TOP:"top",RIGHT:g()?"left":"right",BOTTOM:"bottom",LEFT:g()?"right":"left"},$e={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},Ue={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"};class Fe extends B{constructor(t,e){if(void 0===fe)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this._config=this._getConfig(e),this.tip=null,this._setListeners()}static get Default(){return $e}static get NAME(){return"tooltip"}static get Event(){return Ue}static get DefaultType(){return qe}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(t){if(this._isEnabled)if(t){const e=this._initializeOnDelegatedTarget(t);e._activeTrigger.click=!e._activeTrigger.click,e._isWithActiveTrigger()?e._enter(null,e):e._leave(null,e)}else{if(this.getTipElement().classList.contains("show"))return void this._leave(null,this);this._enter(null,this)}}dispose(){clearTimeout(this._timeout),P.off(this._element.closest(".modal"),"hide.bs.modal",this._hideModalHandler),this.tip&&this.tip.remove(),this._popper&&this._popper.destroy(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this.isWithContent()||!this._isEnabled)return;const t=P.trigger(this._element,this.constructor.Event.SHOW),i=d(this._element),n=null===i?this._element.ownerDocument.documentElement.contains(this._element):i.contains(this._element);if(t.defaultPrevented||!n)return;const s=this.getTipElement(),o=e(this.constructor.NAME);s.setAttribute("id",o),this._element.setAttribute("aria-describedby",o),this.setContent(),this._config.animation&&s.classList.add("fade");const r="function"==typeof this._config.placement?this._config.placement.call(this,s,this._element):this._config.placement,a=this._getAttachment(r);this._addAttachmentClass(a);const{container:l}=this._config;R.set(s,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(l.appendChild(s),P.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=ue(this._element,s,this._getPopperConfig(a)),s.classList.add("show");const c="function"==typeof this._config.customClass?this._config.customClass():this._config.customClass;c&&s.classList.add(...c.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(t=>{P.on(t,"mouseover",u)});const h=this.tip.classList.contains("fade");this._queueCallback(()=>{const t=this._hoverState;this._hoverState=null,P.trigger(this._element,this.constructor.Event.SHOWN),"out"===t&&this._leave(null,this)},this.tip,h)}hide(){if(!this._popper)return;const t=this.getTipElement();if(P.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented)return;t.classList.remove("show"),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(t=>P.off(t,"mouseover",u)),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1;const e=this.tip.classList.contains("fade");this._queueCallback(()=>{this._isWithActiveTrigger()||("show"!==this._hoverState&&t.remove(),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),P.trigger(this._element,this.constructor.Event.HIDDEN),this._popper&&(this._popper.destroy(),this._popper=null))},this.tip,e),this._hoverState=""}update(){null!==this._popper&&this._popper.update()}isWithContent(){return Boolean(this.getTitle())}getTipElement(){if(this.tip)return this.tip;const t=document.createElement("div");return t.innerHTML=this._config.template,this.tip=t.children[0],this.tip}setContent(){const e=this.getTipElement();this.setElementContent(t.findOne(".tooltip-inner",e),this.getTitle()),e.classList.remove("fade","show")}setElementContent(t,e){if(null!==t)return r(e)?(e=a(e),void(this._config.html?e.parentNode!==t&&(t.innerHTML="",t.appendChild(e)):t.textContent=e.textContent)):void(this._config.html?(this._config.sanitize&&(e=Re(e,this._config.allowList,this._config.sanitizeFn)),t.innerHTML=e):t.textContent=e)}getTitle(){let t=this._element.getAttribute("data-bs-original-title");return t||(t="function"==typeof this._config.title?this._config.title.call(this._element):this._config.title),t}updateAttachment(t){return"right"===t?"end":"left"===t?"start":t}_initializeOnDelegatedTarget(t,e){const i=this.constructor.DATA_KEY;return(e=e||R.get(t.delegateTarget,i))||(e=new this.constructor(t.delegateTarget,this._getDelegateConfig()),R.set(t.delegateTarget,i,e)),e}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:t=>this._handlePopperPlacementChange(t)}],onFirstUpdate:t=>{t.options.placement!==t.placement&&this._handlePopperPlacementChange(t)}};return{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_addAttachmentClass(t){this.getTipElement().classList.add("bs-tooltip-"+this.updateAttachment(t))}_getAttachment(t){return ze[t.toUpperCase()]}_setListeners(){this._config.trigger.split(" ").forEach(t=>{if("click"===t)P.on(this._element,this.constructor.Event.CLICK,this._config.selector,t=>this.toggle(t));else if("manual"!==t){const e="hover"===t?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,i="hover"===t?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;P.on(this._element,e,this._config.selector,t=>this._enter(t)),P.on(this._element,i,this._config.selector,t=>this._leave(t))}}),this._hideModalHandler=()=>{this._element&&this.hide()},P.on(this._element.closest(".modal"),"hide.bs.modal",this._hideModalHandler),this._config.selector?this._config={...this._config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const t=this._element.getAttribute("title"),e=typeof this._element.getAttribute("data-bs-original-title");(t||"string"!==e)&&(this._element.setAttribute("data-bs-original-title",t||""),!t||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",t),this._element.setAttribute("title",""))}_enter(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusin"===t.type?"focus":"hover"]=!0),e.getTipElement().classList.contains("show")||"show"===e._hoverState?e._hoverState="show":(clearTimeout(e._timeout),e._hoverState="show",e._config.delay&&e._config.delay.show?e._timeout=setTimeout(()=>{"show"===e._hoverState&&e.show()},e._config.delay.show):e.show())}_leave(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusout"===t.type?"focus":"hover"]=e._element.contains(t.relatedTarget)),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState="out",e._config.delay&&e._config.delay.hide?e._timeout=setTimeout(()=>{"out"===e._hoverState&&e.hide()},e._config.delay.hide):e.hide())}_isWithActiveTrigger(){for(const t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1}_getConfig(t){const e=U.getDataAttributes(this._element);return Object.keys(e).forEach(t=>{We.has(t)&&delete e[t]}),(t={...this.constructor.Default,...e,..."object"==typeof t&&t?t:{}}).container=!1===t.container?document.body:a(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),l("tooltip",t,this.constructor.DefaultType),t.sanitize&&(t.template=Re(t.template,t.allowList,t.sanitizeFn)),t}_getDelegateConfig(){const t={};if(this._config)for(const e in this._config)this.constructor.Default[e]!==this._config[e]&&(t[e]=this._config[e]);return t}_cleanTipClass(){const t=this.getTipElement(),e=t.getAttribute("class").match(Be);null!==e&&e.length>0&&e.map(t=>t.trim()).forEach(e=>t.classList.remove(e))}_handlePopperPlacementChange(t){const{state:e}=t;e&&(this.tip=e.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(e.placement)))}static jQueryInterface(t){return this.each((function(){const e=Fe.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}_(Fe);const Ve=new RegExp("(^|\\s)bs-popover\\S+","g"),Ke={...Fe.Default,placement:"right",offset:[0,8],trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'},Xe={...Fe.DefaultType,content:"(string|element|function)"},Ye={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"};class Qe extends Fe{static get Default(){return Ke}static get NAME(){return"popover"}static get Event(){return Ye}static get DefaultType(){return Xe}isWithContent(){return this.getTitle()||this._getContent()}getTipElement(){return this.tip||(this.tip=super.getTipElement(),this.getTitle()||t.findOne(".popover-header",this.tip).remove(),this._getContent()||t.findOne(".popover-body",this.tip).remove()),this.tip}setContent(){const e=this.getTipElement();this.setElementContent(t.findOne(".popover-header",e),this.getTitle());let i=this._getContent();"function"==typeof i&&(i=i.call(this._element)),this.setElementContent(t.findOne(".popover-body",e),i),e.classList.remove("fade","show")}_addAttachmentClass(t){this.getTipElement().classList.add("bs-popover-"+this.updateAttachment(t))}_getContent(){return this._element.getAttribute("data-bs-content")||this._config.content}_cleanTipClass(){const t=this.getTipElement(),e=t.getAttribute("class").match(Ve);null!==e&&e.length>0&&e.map(t=>t.trim()).forEach(e=>t.classList.remove(e))}static jQueryInterface(t){return this.each((function(){const e=Qe.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}_(Qe);const Ge={offset:10,method:"auto",target:""},Ze={offset:"number",method:"string",target:"(string|element)"};class Je extends B{constructor(t,e){super(t),this._scrollElement="BODY"===this._element.tagName?window:this._element,this._config=this._getConfig(e),this._selector=`${this._config.target} .nav-link, ${this._config.target} .list-group-item, ${this._config.target} .dropdown-item`,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,P.on(this._scrollElement,"scroll.bs.scrollspy",()=>this._process()),this.refresh(),this._process()}static get Default(){return Ge}static get NAME(){return"scrollspy"}refresh(){const e=this._scrollElement===this._scrollElement.window?"offset":"position",i="auto"===this._config.method?e:this._config.method,s="position"===i?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),t.find(this._selector).map(e=>{const o=n(e),r=o?t.findOne(o):null;if(r){const t=r.getBoundingClientRect();if(t.width||t.height)return[U[i](r).top+s,o]}return null}).filter(t=>t).sort((t,e)=>t[0]-e[0]).forEach(t=>{this._offsets.push(t[0]),this._targets.push(t[1])})}dispose(){P.off(this._scrollElement,".bs.scrollspy"),super.dispose()}_getConfig(t){if("string"!=typeof(t={...Ge,...U.getDataAttributes(this._element),..."object"==typeof t&&t?t:{}}).target&&r(t.target)){let{id:i}=t.target;i||(i=e("scrollspy"),t.target.id=i),t.target="#"+i}return l("scrollspy",t,Ze),t}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){const t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),i=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=i){const t=this._targets[this._targets.length-1];this._activeTarget!==t&&this._activate(t)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(let e=this._offsets.length;e--;)this._activeTarget!==this._targets[e]&&t>=this._offsets[e]&&(void 0===this._offsets[e+1]||t<this._offsets[e+1])&&this._activate(this._targets[e])}}_activate(e){this._activeTarget=e,this._clear();const i=this._selector.split(",").map(t=>`${t}[data-bs-target="${e}"],${t}[href="${e}"]`),n=t.findOne(i.join(","));n.classList.contains("dropdown-item")?(t.findOne(".dropdown-toggle",n.closest(".dropdown")).classList.add("active"),n.classList.add("active")):(n.classList.add("active"),t.parents(n,".nav, .list-group").forEach(e=>{t.prev(e,".nav-link, .list-group-item").forEach(t=>t.classList.add("active")),t.prev(e,".nav-item").forEach(e=>{t.children(e,".nav-link").forEach(t=>t.classList.add("active"))})})),P.trigger(this._scrollElement,"activate.bs.scrollspy",{relatedTarget:e})}_clear(){t.find(this._selector).filter(t=>t.classList.contains("active")).forEach(t=>t.classList.remove("active"))}static jQueryInterface(t){return this.each((function(){const e=Je.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}P.on(window,"load.bs.scrollspy.data-api",()=>{t.find('[data-bs-spy="scroll"]').forEach(t=>new Je(t))}),_(Je);class ti extends B{static get NAME(){return"tab"}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains("active"))return;let e;const i=s(this._element),n=this._element.closest(".nav, .list-group");if(n){const i="UL"===n.nodeName||"OL"===n.nodeName?":scope > li > .active":".active";e=t.find(i,n),e=e[e.length-1]}const o=e?P.trigger(e,"hide.bs.tab",{relatedTarget:this._element}):null;if(P.trigger(this._element,"show.bs.tab",{relatedTarget:e}).defaultPrevented||null!==o&&o.defaultPrevented)return;this._activate(this._element,n);const r=()=>{P.trigger(e,"hidden.bs.tab",{relatedTarget:this._element}),P.trigger(this._element,"shown.bs.tab",{relatedTarget:e})};i?this._activate(i,i.parentNode,r):r()}_activate(e,i,n){const s=(!i||"UL"!==i.nodeName&&"OL"!==i.nodeName?t.children(i,".active"):t.find(":scope > li > .active",i))[0],o=n&&s&&s.classList.contains("fade"),r=()=>this._transitionComplete(e,s,n);s&&o?(s.classList.remove("show"),this._queueCallback(r,e,!0)):r()}_transitionComplete(e,i,n){if(i){i.classList.remove("active");const e=t.findOne(":scope > .dropdown-menu .active",i.parentNode);e&&e.classList.remove("active"),"tab"===i.getAttribute("role")&&i.setAttribute("aria-selected",!1)}e.classList.add("active"),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),f(e),e.classList.contains("fade")&&e.classList.add("show");let s=e.parentNode;if(s&&"LI"===s.nodeName&&(s=s.parentNode),s&&s.classList.contains("dropdown-menu")){const i=e.closest(".dropdown");i&&t.find(".dropdown-toggle",i).forEach(t=>t.classList.add("active")),e.setAttribute("aria-expanded",!0)}n&&n()}static jQueryInterface(t){return this.each((function(){const e=ti.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}P.on(document,"click.bs.tab.data-api",'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),h(this)||ti.getOrCreateInstance(this).show()})),_(ti);const ei={animation:"boolean",autohide:"boolean",delay:"number"},ii={animation:!0,autohide:!0,delay:5e3};class ni extends B{constructor(t,e){super(t),this._config=this._getConfig(e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get DefaultType(){return ei}static get Default(){return ii}static get NAME(){return"toast"}show(){P.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove("hide"),f(this._element),this._element.classList.add("showing"),this._queueCallback(()=>{this._element.classList.remove("showing"),this._element.classList.add("show"),P.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this._element.classList.contains("show")&&(P.trigger(this._element,"hide.bs.toast").defaultPrevented||(this._element.classList.remove("show"),this._queueCallback(()=>{this._element.classList.add("hide"),P.trigger(this._element,"hidden.bs.toast")},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this._element.classList.contains("show")&&this._element.classList.remove("show"),super.dispose()}_getConfig(t){return t={...ii,...U.getDataAttributes(this._element),..."object"==typeof t&&t?t:{}},l("toast",t,this.constructor.DefaultType),t}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const i=t.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){P.on(this._element,"click.dismiss.bs.toast",'[data-bs-dismiss="toast"]',()=>this.hide()),P.on(this._element,"mouseover.bs.toast",t=>this._onInteraction(t,!0)),P.on(this._element,"mouseout.bs.toast",t=>this._onInteraction(t,!1)),P.on(this._element,"focusin.bs.toast",t=>this._onInteraction(t,!0)),P.on(this._element,"focusout.bs.toast",t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=ni.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method n
11amed "${t}"`);e[t](this)}}))}}return _(ni),{Alert:W,Button:q,Carousel:Z,Collapse:et,Dropdown:Ae,Modal:De,Offcanvas:Ne,Popover:Qe,ScrollSpy:Je,Tab:ti,Toast:ni,Tooltip:Fe}}));
12/*
13 * jQuery.bind-first library v0.2.3
14 * Copyright (c) 2013 Vladimir Zhuravlev
15 *
16 * Released under MIT License
17 * @license
18 *
19 * Date: Thu Feb  6 10:13:59 ICT 2014
20 **/
21(function(t){function e(e){return u?e.data("events"):t._data(e[0]).events}function n(t,n,r){var i=e(t),a=i[n];if(!u){var s=r?a.splice(a.delegateCount-1,1)[0]:a.pop();return a.splice(r?0:a.delegateCount||0,0,s),void 0}r?i.live.unshift(i.live.pop()):a.unshift(a.pop())}function r(e,r,i){var a=r.split(/\s+/);e.each(function(){for(var e=0;a.length>e;++e){var r=a[e].trim().match(/[^\.]+/i)[0];n(t(this),r,i)}})}function i(e){t.fn[e+"First"]=function(){var n=t.makeArray(arguments),i=n.shift();return i&&(t.fn[e].apply(this,arguments),r(this,i)),this}}var a=t.fn.jquery.split("."),s=parseInt(a[0]),f=parseInt(a[1]),u=1>s||1==s&&7>f;i("bind"),i("one"),t.fn.delegateFirst=function(){var e=t.makeArray(arguments),n=e[1];return n&&(e.splice(0,2),t.fn.delegate.apply(this,arguments),r(this,n,!0)),this},t.fn.liveFirst=function(){var e=t.makeArray(arguments);return e.unshift(this.selector),t.fn.delegateFirst.apply(t(document),e),this},u||(t.fn.onFirst=function(e,n){var i=t(this),a="string"==typeof n;if(t.fn.on.apply(i,arguments),"object"==typeof e)for(type in e)e.hasOwnProperty(type)&&r(i,type,a);else"string"==typeof e&&r(i,e,a);return i})})(jQuery);
22!function(e){var n=!1;if("function"==typeof define&&define.amd&&(define(e),n=!0),"object"==typeof exports&&(module.exports=e(),n=!0),!n){var o=window.Cookies,t=window.Cookies=e();t.noConflict=function(){return window.Cookies=o,t}}}(function(){function e(){for(var e=0,n={};e<arguments.length;e++){var o=arguments[e];for(var t in o)n[t]=o[t]}return n}function n(o){function t(n,r,i){var c;if("undefined"!=typeof document){if(arguments.length>1){if(i=e({path:"/"},t.defaults,i),"number"==typeof i.expires){var a=new Date;a.setMilliseconds(a.getMilliseconds()+864e5*i.expires),i.expires=a}try{c=JSON.stringify(r),/^[\{\[]/.test(c)&&(r=c)}catch(e){}return r=o.write?o.write(r,n):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n=encodeURIComponent(String(n)),n=n.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),n=n.replace(/[\(\)]/g,escape),document.cookie=[n,"=",r,i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}n||(c={});for(var p=document.cookie?document.cookie.split("; "):[],s=/(%[0-9A-Z]{2})+/g,d=0;d<p.length;d++){var f=p[d].split("="),u=f.slice(1).join("=");'"'===u.charAt(0)&&(u=u.slice(1,-1));try{var l=f[0].replace(s,decodeURIComponent);if(u=o.read?o.read(u,l):o(u,l)||u.replace(s,decodeURIComponent),this.json)try{u=JSON.parse(u)}catch(e){}if(n===l){c=u;break}n||(c[l]=u)}catch(e){}}return c}}return 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={},t.remove=function(n,o){t(n,"",e(o,{expires:-1}))},t.withConverter=n,t}return n(function(){})});
23(()=>{var y="input is invalid type",t,o=(t="object"==typeof window)?window:{},t=!(t=o.JS_SHA256_NO_WINDOW?!1:t)&&"object"==typeof self,s=!o.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node,t=(s?o=global:t&&(o=self),!o.JS_SHA256_NO_COMMON_JS&&"object"==typeof module&&module.exports),i="function"==typeof define&&define.amd,l=!o.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,a="0123456789abcdef".split(""),h=[-2147483648,8388608,32768,128],f=[24,16,8,0],v=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
23734187,3204031479,3329325298],e=["hex","array","digest","arrayBuffer"],r=[],n=(!o.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!l||!o.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer}),function(i,h){return function(t){return new A(h,!0).update(t)[i]()}}),u=function(t){var i=n("hex",t);(i=s?c(i,t):i).create=function(){return new A(t)},i.update=function(t){return i.create().update(t)};for(var h=0;h<e.length;++h){var r=e[h];i[r]=n(r,t)}return i},c=function(i,t){var h=require("crypto"),r=require("buffer").Buffer,s=t?"sha224":"sha256",e,e=r.from&&!o.JS_SHA256_NO_BUFFER_FROM?r.from:function(t){return new r(t)},n;return function(t){if("string"==typeof t)return h.createHash(s).update(t,"utf8").digest("hex");if(null==t)throw new Error(y);return t.constructor===ArrayBuffer&&(t=new Uint8Array(t)),Array.isArray(t)||ArrayBuffer.isView(t)||t.constructor===r?h.createHash(s).update(e(t)).digest("hex"):i(t)}},p=function(h,r){return function(t,i){return new w(t,r,!0).update(i)[h]()}},d=function(i){var h=p("hex",i);h.create=function(t){return new w(t,i)},h.update=function(t,i){return h.create(t).update(i)};for(var t=0;t<e.length;++t){var r=e[t];h[r]=p(r,i)}return h};function A(t,i){i?(r[0]=r[16]=r[1]=r[2]=r[3]=r[4]=r[5]=r[6]=r[7]=r[8]=r[9]=r[10]=r[11]=r[12]=r[13]=r[14]=r[15]=0,this.blocks=r):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=t}function w(t,i,h){var r,s=typeof t;if("string"==s){for(var e=[],n=t.length,o=0,a,r=0;r<n;++r)(a=t.charCodeAt(r))<128?e[o++]=a:(a<2048?e[o++]=192|a>>>6:(a<55296||57344<=a?e[o++]=224|a>>>12:(a=65536+((1023&a)<<10|1023&t.charCodeAt(++r)),e[o++]=240|a>>>18,e[o++]=128|a>>>12&63),e[o++]=128|a>>>6&63),e[o++]=128|63&a);t=e}else{if("object"!=s)throw new Error(y);if(null===t)throw new Error(y);if(l&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||l&&ArrayBuffer.isView(t)))throw new Error(y)}64<t.length&&(t=new A(i,!0).update(t).array());var f=[],u=[];for(r=0;r<64;++r){var c=t[r]||0;f[r]=92^c,u[r]=54^c}A.call(this,i,h),this.update(u),this.oKeyPad=f,this.inner=!0,this.sharedMemory=h}A.prototype.update=function(t){if(!this.finalized){var i,h=typeof t;if("string"!=h){if("object"!=h)throw new Error(y);if(null===t)throw new Error(y);if(l&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||l&&ArrayBuffer.isView(t)))throw new Error(y);i=!0}for(var r,s=0,e,n=t.length,o=this.blocks;s<n;){if(this.hashed&&(this.hashed=!1,o[0]=this.block,this.block=o[16]=o[1]=o[2]=o[3]=o[4]=o[5]=o[6]=o[7]=o[8]=o[9]=o[10]=o[11]=o[12]=o[13]=o[14]=o[15]=0),i)for(e=this.start;s<n&&e<64;++s)o[e>>>2]|=t[s]<<f[3&e++];else for(e=this.start;s<n&&e<64;++s)(r=t.charCodeAt(s))<128?o[e>>>2]|=r<<f[3&e++]:(r<2048?o[e>>>2]|=(192|r>>>6)<<f[3&e++]:(r<55296||57344<=r?o[e>>>2]|=(224|r>>>12)<<f[3&e++]:(r=65536+((1023&r)<<10|1023&t.charCodeAt(++s)),o[e>>>2]|=(240|r>>>18)<<f[3&e++],o[e>>>2]|=(128|r>>>12&63)<<f[3&e++]),o[e>>>2]|=(128|r>>>6&63)<<f[3&e++]),o[e>>>2]|=(128|63&r)<<f[3&e++]);this.lastByteIndex=e,this.bytes+=e-this.start,64<=e?(this.block=o[16],this.start=e-64,this.hash(),this.hashed=!0):this.start=e}return 4294967295<this.bytes&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},A.prototype.finalize=function(){var t,i;this.finalized||(this.finalized=!0,t=this.blocks,i=this.lastByteIndex,t[16]=this.block,t[i>>>2]|=h[3&i],this.block=t[16],56<=i&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash())},A.prototype.hash=function(){for(var t=this.h0,i=this.h1,h=this.h2,r=this.h3,s=this.h4,e=this.h5,n=this.h6,o=this.h7,a=this.blocks,f,u,c,y,l,p,d,A,w,b,_,f=16;f<64;++f)u=((l=a[f-15])>>>7|l<<25)^(l>>>18|l<<14)^l>>>3,l=a[f-2],a[f]=a[f-16]+u+a[f-7]+(c=(l>>>17|l<<15)^(l>>>19|l<<13)^l>>>10)<<0;for(_=i&h,f=0;f<64;f+=4)this.first?(r=this.is224?(A=300032,o=(l=a[0]-1413257819)-150054599<<0,l+24177077<<0):(A=704751109,o=(l=a[0]-210244248)-1521486534<<0,l+143694565<<0),this.first=!1):(o=r+(l=o+(c=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(d=s&e^~s&n)+v[f]+a[f])<<0,r=l+(p=(u=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10))+(y=(A=t&i)^t&h^_))<<0),n=h+(l=n+(c=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7))+(d=o&s^~o&e)+v[f+1]+a[f+1])<<0,h=l+(p=(u=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(y=(w=r&t)^r&i^A))<<0,e=i+(l=e+(c=(n>>>6|n<<26)^(n>>>11|n<<21)^(n>>>25|n<<7))+(d=n&o^~n&s)+v[f+2]+a[f+2])<<0,i=l+(p=(u=(h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>
2322|h<<10))+(y=(b=h&r)^h&t^w))<<0,s=t+(l=s+(c=(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7))+(d=e&n^~e&o)+v[f+3]+a[f+3])<<0,t=l+(p=(u=(i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(y=(_=i&h)^i&r^b))<<0,this.chromeBugWorkAround=!0;this.h0=this.h0+t<<0,this.h1=this.h1+i<<0,this.h2=this.h2+h<<0,this.h3=this.h3+r<<0,this.h4=this.h4+s<<0,this.h5=this.h5+e<<0,this.h6=this.h6+n<<0,this.h7=this.h7+o<<0},A.prototype.toString=A.prototype.hex=function(){this.finalize();var t=this.h0,i=this.h1,h=this.h2,r=this.h3,s=this.h4,e=this.h5,n=this.h6,o=this.h7,t=a[t>>>28&15]+a[t>>>24&15]+a[t>>>20&15]+a[t>>>16&15]+a[t>>>12&15]+a[t>>>8&15]+a[t>>>4&15]+a[15&t]+a[i>>>28&15]+a[i>>>24&15]+a[i>>>20&15]+a[i>>>16&15]+a[i>>>12&15]+a[i>>>8&15]+a[i>>>4&15]+a[15&i]+a[h>>>28&15]+a[h>>>24&15]+a[h>>>20&15]+a[h>>>16&15]+a[h>>>12&15]+a[h>>>8&15]+a[h>>>4&15]+a[15&h]+a[r>>>28&15]+a[r>>>24&15]+a[r>>>20&15]+a[r>>>16&15]+a[r>>>12&15]+a[r>>>8&15]+a[r>>>4&15]+a[15&r]+a[s>>>28&15]+a[s>>>24&15]+a[s>>>20&15]+a[s>>>16&15]+a[s>>>12&15]+a[s>>>8&15]+a[s>>>4&15]+a[15&s]+a[e>>>28&15]+a[e>>>24&15]+a[e>>>20&15]+a[e>>>16&15]+a[e>>>12&15]+a[e>>>8&15]+a[e>>>4&15]+a[15&e]+a[n>>>28&15]+a[n>>>24&15]+a[n>>>20&15]+a[n>>>16&15]+a[n>>>12&15]+a[n>>>8&15]+a[n>>>4&15]+a[15&n];return this.is224||(t+=a[o>>>28&15]+a[o>>>24&15]+a[o>>>20&15]+a[o>>>16&15]+a[o>>>12&15]+a[o>>>8&15]+a[o>>>4&15]+a[15&o]),t},A.prototype.array=A.prototype.digest=function(){this.finalize();var t=this.h0,i=this.h1,h=this.h2,r=this.h3,s=this.h4,e=this.h5,n=this.h6,o=this.h7,t=[t>>>24&255,t>>>16&255,t>>>8&255,255&t,i>>>24&255,i>>>16&255,i>>>8&255,255&i,h>>>24&255,h>>>16&255,h>>>8&255,255&h,r>>>24&255,r>>>16&255,r>>>8&255,255&r,s>>>24&255,s>>>16&255,s>>>8&255,255&s,e>>>24&255,e>>>16&255,e>>>8&255,255&e,n>>>24&255,n>>>16&255,n>>>8&255,255&n];return this.is224||t.push(o>>>24&255,o>>>16&255,o>>>8&255,255&o),t},A.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(this.is224?28:32),i=new DataView(t);return i.setUint32(0,this.h0),i.setUint32(4,this.h1),i.setUint32(8,this.h2),i.setUint32(12,this.h3),i.setUint32(16,this.h4),i.setUint32(20,this.h5),i.setUint32(24,this.h6),this.is224||i.setUint32(28,this.h7),t},(w.prototype=new A).finalize=function(){var t;A.prototype.finalize.call(this),this.inner&&(this.inner=!1,t=this.array(),A.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(t),A.prototype.finalize.call(this))};var b=u();(b.sha256=b).sha224=u(!0),b.sha256.hmac=d(),b.sha224.hmac=d(!0),t?module.exports=b:(o.sha256=b.sha256,o.sha224=b.sha224,i&&define(function(){return b}))})();
24function pys_generate_token(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function getBundlePriceOnSingleProduct(n){var o=0;return jQuery(".bundle_form .bundled_product").each(function(e){var t=jQuery(this).find(".cart").data("bundled_item_id"),t=n.prices[t],a=jQuery(this).find(".bundled_qty").val();jQuery(this).hasClass("bundled_item_optional")&&!jQuery(this).find(".bundled_product_optional_checkbox input").prop("checked")||(o+=t*a)}),o}function getUrlParameter(e){for(var t,a=window.location.search.substring(1).split("&"),n,o,o=0;o<a.length;o++)if((n=a[o].split("="))[0]===e&&void 0!==n[1])try{return decodeURIComponent(n[1])}catch(e){return n[1]}return!1}function getCookieYes(e){var t=document.cookie.split(";").reduce((e,t)=>{var[t,a]=t.split("=");return t&&a&&(e[t.trim()]=a),e},{}),t=t["cookieyes-consent"]||t.wt_consent,t;if(t)return{[e]:t}=t.split(",").reduce((e,t)=>{var[t,a]=t.split(":");return t&&a&&(e[t]=a),e},{}),t}function getRootDomain(e=!1){var t=window.location.hostname,a;return"undefined"==typeof tldjs?(console.warn("tldjs is not defined"),t):(a=tldjs.getDomain(t))?e?"."+a:a:t}((D,p)=>{p.debug&&console.log("PYS:",p);var S={},E={},P="dynamicVariable",e=null;function x(){if(null===e){if(!p||!p.hasOwnProperty("track_cookie_for_subdomains")||!p.track_cookie_for_subdomains)return"";null===(e=O())&&(e=B())}return e}function O(){var e,t;try{e=Cookies.get("pys_cd"),t=String(location.hostname||"").toLowerCase()}catch(e){return null}return!e||"host-only"===e||-1===(e=String(e).toLowerCase()).indexOf(".")||!t||t!==e&&t.slice(-(e.length+1))!=="."+e||q(e)&&!o("."+e)?null:"."+e}function q(e){var t=String(e).split("."),a;return 2===t.length&&t[0].length<=3&&t[1].length<=3||-1!==["github.io","vercel.app","pages.dev","wpcomstaging.com","appspot.com","netlify.app","herokuapp.com","myshopify.com"].indexOf(e)}function B(){var e="";try{e=String(location.hostname||"")}catch(e){return""}if(e&&-1!==e.indexOf(".")&&-1===e.indexOf(":")&&!/^[\d.]+$/.test(e))for(var t=e.split("."),a=2;a<=t.length;a++){var n="."+t.slice(t.length-a).join(".");if(o(n))return n}return""}function o(e){var t="pys_dt",a=String(Math.floor(1e9*Math.random())),n=!1;try{document.cookie=t+"="+a+"; path=/; domain="+e+"; SameSite=Lax",n=-1!==("; "+document.cookie+";").indexOf("; "+t+"="+a+";")}catch(e){return}finally{try{document.cookie=t+"=; path=/; domain="+e+"; max-age=0"}catch(e){}}return n}function T(e){var t=e?String(e).replace(/^\./,""):"";if(t&&-1!==t.indexOf("."))try{Cookies.get("pys_cd")!==t&&(Cookies.remove("pys_cd",{path:"/",domain:""}),Cookies.set("pys_cd",t,{expires:365,path:"/",domain:e,sameSite:"Lax"}))}catch(e){}else L()}function L(){if(p&&p.track_cookie_for_subdomains)try{void 0===Cookies.get("pys_cd")&&Cookies.set("pys_cd","host-only",{expires:365,path:"/",sameSite:"Lax"})}catch(e){}}var A="";try{A=I((document.referrer||"").toString())}catch(e){}var i="pys_session_entry_referrer";function I(e){var e,t,t;return e?-1!==(t=(e=-1!==(t=(e=String(e)).indexOf("?"))?e.substring(0,t):e).indexOf("#"))?e.substring(0,t):e:""}var N="";function r(e){var t="",a;try{void 0!==window.sessionStorage&&(t=window.sessionStorage.getItem(i)||"")}catch(e){}if(!t){var n=Cookies.get(i);if(n&&"undefined"!==n){t=n;try{void 0!==window.sessionStorage&&window.sessionStorage.setItem(i,t)}catch(e){}}}if(!t){var n="";try{n=I((document.referrer||"").toString())}catch(e){}if(n){var a="";try{a=new URL(n).hostname}catch(e){}if(a&&a!==window.location.hostname){t=n;try{void 0!==window.sessionStorage&&window.sessionStorage.setItem(i,t)}catch(e){}}}}t&&e&&p&&p.cookie&&!p.cookie.disabled_all_cookie&&((a=Cookies.get(i))&&"undefined"!==a||Cookies.set(i,t,{path:"/",domain:x()})),N=t}r(!1);var G="pys_event_referrer";function V(){if(A&&p&&p.cookie&&!p.cookie.disabled_all_cookie)try{Cookies.set(G,A,{path:"/",domain:x()})}catch(e){}}function j(t,a=""){if(null==t)return null;if("object"!=typeof t)return t;if(Array.isArray(t))return t.map(e=>j(e,a));var e,n;if(("value"in t||"selector"in t||"dynamic"in t||"input_type"in t)&&Object.keys(t).every(e=>["value","selector","dynamic","input_type","name"].includes(e))){if(!t.dynamic||!1===t.dynamic||!t.selector||""===t.selector.trim()){let e=t.value??null;return e="float"!==t.input_type&&"int"!==t.input_type?e:s(e,"int"===t.input_type)}try{var o=document.querySelector(t.selector);if(!o)return null;let e=o.value||o.innerText||o.textContent||o.getAttribute("content")||o.getAttribute("data-value")||null;return e="float"!==t.input_type&&"int"!==t.input_type?e:s(e,"int"===t.input_type)}catch(e){return null}}return Object.fromEntries(Object.entries(t).map(([e,t])=>[e,j(t,e)]).filter(([e,t])=>null!=t))}function s(e,t=!1){return null==e?null:(t?parseInt:parseFloat)(e)}var z={tag:function(){return"pinterest"},isEnabled:function(){},disable:function(){},loadPixel:function(){},fireEvent:function(e,t){return!1},onAdSenseEvent:function(e){},onClickEvent:function(e){},onWatchVideo:function(e){},onCommentEvent:function(){},onDownloadEvent:function(e){},onFormEvent:function(e){},onWooAddToCartOnButtonEvent:function(e){},onWooAddToCartOnSingleEvent:function(e,t,a,n,o){},onWooRemoveFromCartEvent:function(e){},onWooAffiliateEvent:function(e){},onWooPayPalEvent:function(e){},onEddAddToCartOnButtonEvent:function(e,t,a){},onEddRemoveFromCartEvent:function(e){},onPageScroll:function(e){},onTime:function(e){}},J={tag:function(){return"bing"},isEnabled:function(){},disable:function(){},loadPixel:function(){},fireEvent:function(e,t){return!1},onAdSenseEvent:function(){},onClickEvent:function(e){},onWatchVideo:function(e){},onCommentEvent:function(){},onFormEvent:function(e){},onDownloadEvent:function(e){},onWooAddToCartOnButtonEvent:function(e){},onWooAddToCartOnSingleEvent:function(e,t,a,n,o){},onWooRemoveFromCartEvent:function(e){},onWooAffiliateEvent:function(e){},onWooPayPalEvent:function(){},onEddAddToCartOnButtonEvent:function(e,t,a){},onEddRemoveFromCartEvent:function(e){},onPageScroll:function(e){},onTime:function(e){}},Y={tag:function(){return"reddit"},isEnabled:function(){},disable:function(){},loadPixel:function(){},fireEvent:function(e,t){return!1},onAdSenseEvent:function(e){},onClickEvent:function(e){},onWatchVideo:function(e){},onCommentEvent:function(e){},onFormEvent:function(e){},onDownloadEvent:function(e){},onWooAddToCartOnButtonEvent:function(e){},onWooAddToCartOnSingleEvent:function(e,t,a,n,o){},onWooRemoveFromCartEvent:function(e){},onWooAffiliateEvent:function(e){},onWooPayPalEvent:function(e){},onEddAddToCartOnButtonEvent:function(e,t,a){},onEddRemoveFromCartEvent:function(e){},onPageScroll:function(e){},onTime:function(e){}},R=(_=>{var r=z,s=J,d=Y,i=!1,e=!1,t=!1;let c=v();var a=null,n=!1,o=1e3,f=["utm_source","utm_medium","utm_campaign","utm_term","utm_content"],g=["fbadid","gadid","padid","bingid"],l="dataLayerPYS",p="dataLayer";function u(e){var t;return/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}function m(e){return-1!==(e=e.replace(/(https?:\/\/)?(www.)?/i,"")).indexOf("/")?e.split("/")[0]:e}function y(){R.refreshAddonPixels(),_.gdpr.all_disabled_by_api||(_.gdpr.facebook_disabled_by_api||F.loadPixel(),_.gdpr.analytics_disabled_by_api||W.loadPixel(),_.gdpr.analytics_disabled_by_api||U.loadPixel(),_.gdpr.pinterest_disabled_by_api||r.loadPixel(),_.gdpr.bing_disabled_by_api||s.loadPixel(),_.gdpr.openai_disabled_by_api||M.loadPixel(),_.gdpr.reddit_disabled_by_api)||d.loadPixel(),_.gdpr.consent_magic_integration_enabled&&"undefined"!=typeof CS_Data&&void 0!==CS_Data.cs_google_analytics_consent_mode&&1==CS_Data.cs_google_analytics_consent_mode&&W.loadPixel()}function v(){return(void 0===Cookies.get("pys_start_session")||void 0===Cookies.get("pys_session_limit"))&&(firstVisit=!0)}function h(){try{let e=I(document.referrer.toString()),t;var a=0===e.length,n=!a&&0===e.indexOf(_.siteUrl),o=!a&&!n;return"direct"!==(t=!1==o?"direct":e)?m(t):t}catch(e){return console.error(e),"direct"}}
24function b(){try{var t={},a=[];return window.location.search.substr(1).split("&").forEach(function(e){1<(a=e.split("=")).length&&(t[a[0]]=a[1])}),t}catch(e){return console.error(e),{}}}function w(e=!0){let t="pys_landing_page";return"last_visit"===_.visit_data_model&&(t="last_pys_landing_page"),Cookies.get(t)&&"undefined"!==Cookies.get(t)?Cookies.get(t):_.hasOwnProperty("tracking_analytics")&&_.tracking_analytics&&_.tracking_analytics.TrafficLanding?_.tracking_analytics.TrafficLanding:e?window.location.href:""}function k(){let e="pysTrafficSource";return"last_visit"===_.visit_data_model&&(e="last_pysTrafficSource"),Cookies.get(e)&&"undefined"!==Cookies.get(e)?Cookies.get(e):_.hasOwnProperty("tracking_analytics")&&_.tracking_analytics&&_.tracking_analytics.TrafficSource?_.tracking_analytics.TrafficSource:""}function C(e=!1){try{let a="pys_",n=[],o=(e&&(a="last_pys_"),b());return D.each(g,function(e,t){Cookies.get(a+t)?n[t]=Cookies.get(a+t):_.hasOwnProperty("tracking_analytics")&&_.tracking_analytics&&_.tracking_analytics.TrafficUtmsId&&_.tracking_analytics.TrafficUtmsId[t]?n[t]=O(_.tracking_analytics.TrafficUtmsId[t]):o.hasOwnProperty(t)&&(n[t]=O(o[t]))}),n}catch(e){return console.error(e),[]}}function E(e=!1){try{let n="pys_",o=(e&&(n="last_pys_"),[]),i=b();return D.each(f,function(e,t){var a;Cookies.get(n+t)?(a=Cookies.get(n+t),o[t]=O(a)):_.hasOwnProperty("tracking_analytics")&&_.tracking_analytics&&_.tracking_analytics.TrafficUtms&&_.tracking_analytics.TrafficUtms[t]?o[t]=O(_.tracking_analytics.TrafficUtms[t]):i.hasOwnProperty(t)&&(o[t]=O(i[t]))}),o}catch(e){return console.error(e),[]}}function P(){var e=new Array,t=new Date,a=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],n=["January","February","March","April","May","June","July","August","September","October","November","December"],o;return e.push(["00-01","01-02","02-03","03-04","04-05","05-06","06-07","07-08","08-09","09-10","10-11","11-12","12-13","13-14","14-15","15-16","16-17","17-18","18-19","19-20","20-21","21-22","22-23","23-24"][t.getHours()]),e.push(a[t.getDay()]),e.push(n[t.getMonth()]),e}function O(e){return u(e)?void 0:e}return{PRODUCT_SIMPLE:0,PRODUCT_VARIABLE:1,PRODUCT_BUNDLE:2,PRODUCT_GROUPED:3,utmTerms:f,utmId:g,fireEventForAllPixel:function(e,t){R.refreshAddonPixels(),t.hasOwnProperty(F.tag())&&F[e](t[F.tag()]),t.hasOwnProperty(W.tag())&&W[e](t[W.tag()]),t.hasOwnProperty(r.tag())&&r[e](t[r.tag()]),t.hasOwnProperty(s.tag())&&s[e](t[s.tag()]),t.hasOwnProperty(d.tag())&&d[e](t[d.tag()]),t.hasOwnProperty(U.tag())&&U[e](t[U.tag()])},refreshAddonPixels:function(){r=R.setupPinterestObject(),s=R.setupBingObject(),d=R.setupRedditObject()},csModeEnabled:function(e){return 1===Number(e)},setupPinterestObject:function(){return r=window.pys.Pinterest||r},setupBingObject:function(){return s=window.pys.Bing||s},setupRedditObject:function(){return d=window.pys.Reddit||d},copyProperties:function(e,t){for(var a in e)"function"!=typeof e[a]&&(t[a]=e[a]);return t},requestPbid:function(){return _.send_external_id&&!Cookies.get("pbid")&&F.isEnabled()?a=a||jQuery.ajax({url:_.ajaxUrl,dataType:"json",data:{action:"pys_get_pbid"},success:function(e){var t;e.data&&0!=e.data.pbid&&(_.cookie.disabled_all_cookie||_.cookie.externalID_disabled_by_api||(t=parseInt(_.external_id_expire||180),Cookies.set("pbid",e.data.pbid,{expires:t,path:"/",domain:x()})),_.hasOwnProperty("facebook"))&&(_.facebook.advancedMatching={..._.facebook.advancedMatching,external_id:e.data.pbid})}}).always(function(){a=null}):null},holdForIdentity:function(e){var t,a,t;return!(n||!_.send_external_id||Cookies.get("pbid")||_.dynamicDataUrl&&_.facebook&&_.facebook.advancedMatching&&_.facebook.advancedMatching.external_id||!(t=R.requestPbid())||(a=!1,t.always(t=function(){a||(n=a=!0,e())}),setTimeout(t,o),0))},manageCookies:function(){if(void 0!==_.cookie&&(!_.gdpr.cookiebot_integration_enabled||"undefined"==typeof Cookiebot||!1!==Cookiebot.consented||Cookiebot.consent.marketing||Cookiebot.consent.statistics)){let e=!1;var t,o,t;(e=_.gdpr.consent_magic_integration_enabled&&void 0!==window.CS_Data&&1==window.CS_Data.cs_refresh_after_consent&&void 0===Cookies.get("cs_viewed_cookie_policy")?!0:e)||_.cookie.disabled_all_cookie||T(x()),e||!c||_.cookie.disabled_all_cookie||_.cookie.disabled_start_session_cookie||(t=6e4*_.last_visit_duration,(o=new Date).setTime(o.getTime()+t),Cookies.set("pys_session_limit",!0,{expires:o,path:"/",domain:x()}),Cookies.set("pys_start_session",!0,{path:"/",domain:x()})),Cookies.get("pbid")?F.isEnabled()&&F.advancedMatching()&&F.advancedMatching().external_id&&!_.cookie.disabled_all_cookie&&!_.cookie.externalID_disabled_by_api&&(t=parseInt(_.external_id_expire||180),Cookies.set("pbid",F.advancedMatching().external_id,{expires:t,path:"/",domain:x()})):R.requestPbid();let a=parseInt(_.cookie_duration),n=b();var o=window.location.href.split("?")[0];try{void 0!==Cookies.get("pys_first_visit")||_.cookie.disabled_all_cookie||(_.cookie.disabled_first_visit_cookie?Cookies.remove("pys_first_visit",{path:"/",domain:x()}):Cookies.set("pys_first_visit",!0,{expires:a,path:"/",domain:x()}),_.cookie.disabled_trafficsource_cookie?Cookies.remove("pysTrafficSource",{path:"/",domain:x()}):Cookies.set("pysTrafficSource",h(),{expires:a,path:"/",domain:x()}),_.cookie.disabled_landing_page_cookie?Cookies.remove("pys_landing_page",{path:"/",domain:x()}):Cookies.set("pys_landing_page",o,{expires:a,path:"/",domain:x()}),_.cookie.disabled_utmTerms_cookie?D.each(f,function(e,t){Cookies.remove("pys_"+t,{path:"/",domain:x()})}):D.each(f,function(e,t){n.hasOwnProperty(t)?Cookies.set("pys_"+t,n[t],{expires:a,path:"/",domain:x()}):Cookies.remove("pys_"+t,{path:"/",domain:x()})}),_.cookie.disabled_utmId_cookie?D.each(g,function(e,t){Cookies.remove("pys_"+t,{path:"/",domain:x()})}):D.each(g,function(e,t){n.hasOwnProperty(t)?Cookies.set("pys_"+t,n[t],{expires:a,path:"/",domain:x()}):Cookies.remove("pys_"+t,{path:"/",domain:x()})})),c&&!_.cookie.disabled_all_cookie&&(_.cookie.disabled_trafficsource_cookie?Cookies.remove("last_pysTrafficSource",{path:"/",domain:x()}):Cookies.set("last_pysTrafficSource",h(),{expires:a,path:"/",domain:x()}),_.cookie.disabled_landing_page_cookie?Cookies.remove("last_pys_landing_page",{path:"/",domain:x()}):Cookies.set("last_pys_landing_page",o,{expires:a,path:"/",domain:x()}),_.cookie.disabled_utmTerms_cookie?D.each(f,function(e,t){Cookies.remove("last_pys_"+t,{path:"/",domain:x()})}):D.each(f,function(e,t){n.hasOwnProperty(t)?Cookies.set("last_pys_"+t,n[t],{expires:a,path:"/",domain:x()}):Cookies.remove("last_pys_"+t,{path:"/",domain:x()})}),_.cookie.disabled_utmId_cookie?D.each(g,function(e,t){Cookies.remove("last_pys_"+t,{path:"/",domain:x()})}):D.each(g,function(e,t){n.hasOwnProperty(t)?Cookies.set("last_pys_"+t,n[t],{expires:a,path:"/",domain:x()}):Cookies.remove("last_pys_"+t,{path:"/",domain:x()})})),_.cookie.disabled_start_session_cookie&&(Cookies.remove("pys_start_session",{path:"/",domain:x()}),Cookies.remove("pys_session_limit",{path:"/",domain:x()})),_.cookie.disabled_all_cookie&&(Cookies.remove("pys_first_visit",{path:"/",domain:x()}),Cookies.remove("pysTrafficSource",{path:"/",domain:x()}),Cookies.remove("pys_landing_page",{path:"/",domain:x()}),Cookies.remove("last_pys_landing_page",{path:"/",domain:x()}),Cookies.remove("last_pysTrafficSource",{path:"/",domain:x()}),Cookies.remove("pys_start_session",{path:"/",domain:x()}),Cookies.remove("pys_session_limit",{path:"/",domain:x()}),D.each(R.utmTerms,function(e,t){Cookies.remove("pys_"+t,{path:"/",domain:x()})}),D.each(R.utmId,function(e,t){Cookies.remove("pys_"+t,{path:"/",domain:x()})}),D.each(R.utmTerms,function(e,t){Cookies.remove("last_pys_"+t,{path:"/",domain:x()})}),D.each(R.utmId,function(e,t){Cookies.remove("last_pys_"+t,{path:"/",domain:x()})}))}catch(e){console.error(e)}}},isMetaEnabledCapiPixel:function(e){var t=_.facebook&&_.facebook.metaEnabledCapiPixels;return Array.isArray(t)&&-1!==t.indexOf(e)},generateUniqueId:function(e){var t;return 0==e.eventID.length||"static"==e.type&&_.ajaxForServerStaticEvent||"static"!==e.type&&_.ajaxForServerEvent?(t=e.hasOwnProperty("custom_event_post_id")?e.custom_event_post_id:e.e_id,S.hasOwnProperty(t)||(S[t]=pys_generate_token()),S[t]):0!==e.eventID.length?e.eventID:void 0},flattenObject:function(e,t="",a={}){for(var[n,o]of Object.entries(e)){var n=t?(Array.isArray(e),`${t}[${n}]`):n;
24null===o||"object"!=typeof o||o instanceof File?a[n]=o:this.flattenObject(o,n,a)}return a},sendServerAjaxRequest:function(e,t){if("pys_api_event"===t.action&&"facebook"===t.pixel&&window.pysFacebookRest)this.sendRestAPIRequest(t,"facebook");else if("pys_openai_api_event"===t.action&&window.pysOpenAIRest)this.sendRestAPIRequest(t,"openai");else{if(_.useSendBeacon&&navigator.sendBeacon)try{var a=this.flattenObject(t),n=new URLSearchParams,o,i,r;for([o,i]of Object.entries(a))null!=i&&n.append(o,i);if(navigator.sendBeacon(e,n))return}catch(e){_.debug&&console.log("PYS: sendBeacon failed, falling back to jQuery.ajax:",e)}jQuery.ajax({type:"POST",url:e,data:t,headers:{"Cache-Control":"no-cache"},success:function(){}})}},sendRestAPIRequest:function(t,a){let e;switch(a){case"facebook":e=window.pysFacebookRest?window.pysFacebookRest.restApiUrl:"/wp-json/pys-facebook/v1/event";break;case"openai":e=window.pysOpenAIRest?window.pysOpenAIRest.restApiUrl:"/wp-json/pys-openai/v1/event";break;default:return console.error("PYS: Unknown platform for REST API:",a),void this.sendAjaxFallback(t)}var n={event:t.event,event_slug:t.event_slug||"",data:JSON.stringify(t.data||{}),ids:JSON.stringify(t.ids||[]),eventID:t.event_id||t.eventID||"",woo_order:t.woo_order||"0",edd_order:t.edd_order||"0",order_key:t.order_key||""},o=t.referrer_url||A,i;if(o&&(n.referrer_url=o),n.event_source_url=t.url||window.location.href,_.useSendBeacon&&navigator.sendBeacon)try{var r=new URLSearchParams,s,d;for([s,d]of Object.entries(n))r.append(s,d);if(navigator.sendBeacon(e,r))return}catch(e){}window.fetch?fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}).then(e=>{if(!e.ok)throw new Error(a+" REST API request failed: "+e.status)}).catch(e=>{_.debug&&console.log("PYS: "+a+" REST API failed, falling back to AJAX:",e),this.sendAjaxFallback(t)}):this.sendAjaxFallback(t)},sendAjaxFallback:function(e){jQuery.ajax({type:"POST",url:_.ajaxUrl,data:e,headers:{"Cache-Control":"no-cache"},success:function(){}})},clone:function(e){var t;if(null!=e&&"object"==typeof e){if(e instanceof Date)return(t=new Date).setTime(e.getTime()),t;if(e instanceof Array){for(var t=[],a=0,n=e.length;a<n;a++)"function"!=typeof e[a]&&(t[a]=R.clone(e[a]));return t}if(e instanceof Object){for(var o in t={},e)e.hasOwnProperty(o)&&"function"!=typeof e[o]&&(t[o]=R.clone(e[o]));return t}}return e},getTagsAsArray:function(e){return[].slice.call(document.getElementsByTagName(e))}
24,getRequestParams:function(){return[]},setupMouseOverClickEvents:function(o,i){document.addEventListener("mouseover",function(e){var t=Array.from(document.querySelectorAll(i)),a=e.target,n=a.closest(i);if(t.includes(a)||n){if(e.target.classList.contains("pys-mouse-over-"+o))return!0;e.target.classList.add("pys-mouse-over-"+o),R.fireTriggerEvent(o)}})},setupCSSClickEvents:function(n,o){document.addEventListener("click",function(e){var t=Array.from(document.querySelectorAll(o)),e=e.target,a=e.closest(o);(t.includes(e)||a)&&R.fireTriggerEvent(n)},!0)},setupURLClickEvents:function(){_.triggerEventTypes.hasOwnProperty("url_click")&&D("a[data-pys-event-id]").onFirst("click",function(e){D(this).attr("data-pys-event-id").split(",").forEach(function(e){e=parseInt(e),!1===isNaN(e)&&R.fireTriggerEvent(e)})})},setupScrollPosEvents:function(a,e){var n={},o=D(document).height()-D(window).height();D.each(e,function(e,t){t=o*t/100,t=Math.round(t),n[t]=a}),D(document).on("scroll",function(){var a=D(window).scrollTop();D.each(n,function(e,t){return a<=e||null===t||(n[e]=null,void R.fireTriggerEvent(t))})})},setupCommentEvents:function(e,t){D("form.comment-form").on("submit",function(){R.fireTriggerEvent(e)})},fireTriggerEvent:function(e){var t,e;_.triggerEvents.hasOwnProperty(e)&&(t={},(e=_.triggerEvents[e]).hasOwnProperty("facebook")&&(t=R.getFormFilledData(e.facebook),F.fireEvent(t.name,t)),e.hasOwnProperty("ga")&&(t=R.getFormFilledData(e.ga),W.fireEvent(t.name,t)),e.hasOwnProperty("pinterest")&&(t=R.getFormFilledData(e.pinterest),r.fireEvent(t.name,t)),e.hasOwnProperty("bing")&&(t=R.getFormFilledData(e.bing),s.fireEvent(t.name,t)),e.hasOwnProperty("reddit")&&(t=R.getFormFilledData(e.reddit),d.fireEvent(t.name,t)),e.hasOwnProperty("openai")&&(t=R.getFormFilledData(e.openai),M.fireEvent(t.name,t)),e.hasOwnProperty("gtm"))&&(t=R.getFormFilledData(e.gtm),U.fireEvent(t.name,t))},fireStaticEvents:function(n){R.refreshAddonPixels(),_.staticEvents.hasOwnProperty(n)&&D.each(_.staticEvents[n],function(e,t){D.each(t,function(e,t){var a;t.fired=t.fired||!1,t.fired||(t=R.getFormFilledData(t),a=!1,"facebook"===n?a=F.fireEvent(t.name,t):"ga"===n?a=W.fireEvent(t.name,t):"pinterest"===n?a=r.fireEvent(t.name,t):"bing"===n?a=s.fireEvent(t.name,t):"gtm"===n?a=U.fireEvent(t.name,t):"reddit"===n?a=d.fireEvent(t.name,t):"openai"===n&&(a=M.fireEvent(t.name,t)),t.fired=a)})})},loadGoogleTag:function(e){if(!i){let t=this.resolveGaDataLayerName();var e;this.dataLayerName=t,a=window,n=document,e="//www.googletagmanager.com/gtag/js?id="+e+"&l="+this.dataLayerName,o=n.createElement("script"),n=n.getElementsByTagName("script")[0],o.async=1,o.src=e,n.parentNode.insertBefore(o,n),window[t]=window[t]||[],window.gtag=window.gtag||function e(){window[t].push(arguments)},_.google_consent_mode&&(e=this.resolveConsentValues(),this.pushConsent(t,this.layerHasConsentDefault(t)?"update":"default",e)),R.gtagPush("js",new Date),i=!0}var a,n,e,o},resolveGaDataLayerName:function(){if(_.hasOwnProperty("GATags"))switch(_.GATags.ga_datalayer_type){case"default":return"dataLayerPYS";case"custom":return _.GATags.ga_datalayer_name;default:return"dataLayer"}return this.dataLayerName||"dataLayer"},resolveGtmDataLayerName:function(){var e=_.hasOwnProperty("gtm")?_.gtm.gtm_dataLayer_name:"";return"string"==typeof e&&e.length?e:"dataLayer"},gtagPush:function(){var e=this.dataLayerName||this.resolveGaDataLayerName();window[e]=window[e]||[],window[e].push(arguments)},hasSendToTarget:function(e){return Array.isArray(e)?0<e.length:"string"==typeof e&&""!==e},loadDefaultConsent:function(){this.gtagPush.apply(this,arguments)},pushConsent:function(e,t,a){e&&(window[e]=window[e]||[],function(){window[e].push(arguments)}("consent",t,a))},layerHasConsentDefault:function(e){var t=window[e];if(t&&"number"==typeof t.length)for(var a=0;a<t.length;a++){var n=t[a];if(n&&"consent"===n[0]&&"default"===n[1])return!0}return!1},resolveConsentValues:function(){return{analytics_storage:_.gdpr.analytics_storage.enabled?_.gdpr.analytics_storage.value:"granted",ad_storage:_.gdpr.ad_storage.enabled?_.gdpr.ad_storage.value:"granted",ad_user_data:_.gdpr.ad_user_data.enabled?_.gdpr.ad_user_data.value:"granted",ad_personalization:_.gdpr.ad_personalization.enabled?_.gdpr.ad_personalization.value:"granted"}},loadGTMScript:function(e=""){let t=(_.gtm.gtm_container_domain??"www.googletagmanager.com").replace(/\/$/,""),a=_.gtm.gtm_container_identifier??"gtm",n=_.gtm.gtm_auth??"",o=_.gtm.gtm_preview??"",i=this.resolveGtmDataLayerName();var r,s,d,c,e;window[i]=window[i]||[],window.gtag=window.gtag||function e(){window[i].push(arguments)},this.pushGTMConsentState(i),r=window,s=document,d="script",c=i,e=e,r[c]=r[c]||[],r[c].push({"gtm.start":(new Date).getTime(),event:"gtm.js"}),r=s.getElementsByTagName(d)[0],s=s.createElement(d),d="dataLayer"!==c?"&l="+c:"",s.async=!0,(c=t.startsWith("http://")||t.startsWith("https://")||t.startsWith("/"))?(c=a.includes("."),s.src=t+"/"+a+(c?"?":"/?")+"id="+e+d):s.src="https://"+t+"/"+a+".js?id="+e+d,n&&o&&(s.src+="&gtm_auth="+n+"&gtm_preview="+o+"&gtm_cookies_win=x"),r.parentNode.insertBefore(s,r)},loadDefaultGTMConsent:function(){window[this.GTMdataLayerName]=window[this.GTMdataLayerName]||[],window[this.GTMdataLayerName].push(arguments)},pushGTMConsentDefaults:function(e){this.pushGTMConsentState(e)},pushGTMConsentState:function(e){!_.google_consent_mode||t||_.consent_mode_cmp_active||(t=!0,this.GTMdataLayerName=e,this.pushConsent(e,this.layerHasConsentDefault(e)?"update":"default",this.resolveConsentValues()))},loadPixels:function(){_.gdpr.ajax_enabled&&!_.gdpr.consent_magic_integration_enabled?D.get({url:_.ajaxUrl,dataType:"json",data:{action:"pys_get_gdpr_filters_values"},success:function(e){e.success&&(_.gdpr.all_disabled_by_api=e.data.all_disabled_by_api,_.gdpr.facebook_disabled_by_api=e.data.facebook_disabled_by_api,_.gdpr.analytics_disabled_by_api=e.data.analytics_disabled_by_api,_.gdpr.google_ads_disabled_by_api=e.data.google_ads_disabled_by_api,_.gdpr.pinterest_disabled_by_api=e.data.pinterest_disabled_by_api,_.gdpr.bing_disabled_by_api=e.data.bing_disabled_by_api,_.gdpr.reddit_disabled_by_api=e.data.reddit_disabled_by_api,_.gdpr.openai_disabled_by_api=e.data.openai_disabled_by_api,_.cookie.externalID_disabled_by_api=e.data.externalID_disabled_by_api,_.cookie.disabled_all_cookie=e.data.disabled_all_cookie,_.cookie.disabled_advanced_form_data_cookie=e.data.disabled_advanced_form_data_cookie,_.cookie.disabled_landing_page_cookie=e.data.disabled_landing_page_cookie,_.cookie.disabled_first_visit_cookie=e.data.disabled_first_visit_cookie,_.cookie.disabled_trafficsource_cookie=e.data.disabled_trafficsource_cookie,_.cookie.disabled_utmTerms_cookie=e.data.disabled_utmTerms_cookie,_.cookie.disabled_utmId_cookie=e.data.disabled_utmId_cookie),y()}}):y()}
24,consentGiven:function(a){if(_.gdpr.consent_magic_integration_enabled&&"undefined"!=typeof CS_Data){var n=CS_Data.test_prefix;if(R.csModeEnabled(CS_Data.cs_google_consent_mode_enabled)&&("analytics"==a||"google_ads"==a)||R.csModeEnabled(CS_Data.cs_meta_ldu_mode)&&"facebook"==a||R.csModeEnabled(CS_Data.cs_reddit_ldu_mode)&&"reddit"==a||R.csModeEnabled(CS_Data.cs_openai_opt_out_mode)&&"openai"==a||R.csModeEnabled(CS_Data.cs_bing_consent_mode?.ad_storage?.enabled)&&"bing"==a)return!!(0===Number(CS_Data.cs_cache_enabled)||R.csModeEnabled(CS_Data.cs_cache_enabled)&&window.CS_Cache&&window.CS_Cache.check_status);if("facebook"==a&&(0==CS_Data.cs_script_cat.facebook||CS_Data.cs_script_cat.facebook==CS_Data.cs_necessary_cat_id))return!0;if("bing"==a&&(0==CS_Data.cs_script_cat.bing||CS_Data.cs_script_cat.bing==CS_Data.cs_necessary_cat_id))return!0;if("analytics"==a&&(0==CS_Data.cs_script_cat.analytics||CS_Data.cs_script_cat.analytics==CS_Data.cs_necessary_cat_id))return!0;if("google_ads"==a&&(0==CS_Data.cs_script_cat.gads||CS_Data.cs_script_cat.gads==CS_Data.cs_necessary_cat_id))return!0;if("pinterest"==a&&(0==CS_Data.cs_script_cat.pinterest||CS_Data.cs_script_cat.pinterest==CS_Data.cs_necessary_cat_id))return!0;if("tiktok"==a&&(0==CS_Data.cs_script_cat.tiktok||CS_Data.cs_script_cat.tiktok==CS_Data.cs_necessary_cat_id))return!0;if("reddit"==a&&(0==CS_Data.cs_script_cat?.reddit||CS_Data.cs_script_cat?.reddit==CS_Data.cs_necessary_cat_id))return!0;if("openai"==a&&(0==CS_Data.cs_script_cat?.openai||CS_Data.cs_script_cat?.openai==CS_Data.cs_necessary_cat_id))return!0;var e="cs_enabled_cookie_term",o=document.cookie.split(";");for(let t=1;t<=o.length;t++)if(-1!==o[t-1].indexOf(e)){let e=o[t-1].replace("cs_enabled_cookie_term"+n+"_","");e=Number(e.replace(/\D+/g,""));var i=Cookies.get("cs_enabled_cookie_term"+n+"_"+e);if(e===CS_Data.cs_script_cat.facebook&&"facebook"==a)return"yes"==i;if(e===CS_Data.cs_script_cat.bing&&"bing"==a)return"yes"==i;if(e===CS_Data.cs_script_cat.analytics&&"analytics"==a)return"yes"==i;if(e===CS_Data.cs_script_cat.gads&&"google_ads"==a)return"yes"==i;if(e===CS_Data.cs_script_cat.pinterest&&"pinterest"==a)return"yes"==i;if(e===CS_Data.cs_script_cat.tiktok&&"tiktok"==a)return"yes"==i;if(e===CS_Data.cs_script_cat?.reddit&&"reddit"==a)return"yes"==i;if(e===CS_Data.cs_script_cat?.openai&&"openai"==a)return"yes"==i}return!1}if(_.gdpr.real_cookie_banner_integration_enabled){var t=window.consentApi;if(t)switch(a){case"analytics":return t.consentSync("http","_ga","*").cookieOptIn;case"facebook":return t.consentSync("http","_fbp","*").cookieOptIn;case"pinterest":return t.consentSync("http","_pinterest_sess",".pinterest.com").cookieOptIn;default:return!0}}if(_.gdpr.cookiebot_integration_enabled&&"undefined"!=typeof Cookiebot){var r=_.gdpr["cookiebot_"+a+"_consent_category"];if(_.gdpr[a+"_prior_consent_enabled"]){if(!0===Cookiebot.consented||Cookiebot.consent[r])return!0}else if(Cookiebot.consent[r])return!0;return!1}if(_.gdpr.cookie_notice_integration_enabled&&"undefined"!=typeof cnArgs){var r=Cookies.get(cnArgs.cookieName);if(_.gdpr[a+"_prior_consent_enabled"]){if(void 0===r||"true"===r)return!0}else if("true"===r)return!0;return!1}if(_.gdpr.cookie_law_info_integration_enabled){var r=Cookies.get("cookieyes-consent")??Cookies.get("wt_consent")??Cookies.get("viewed_cookie_policy");if(_.gdpr[a+"_prior_consent_enabled"]&&void 0===r)return!0;if(!r||r!==Cookies.get("cookieyes-consent")&&r!==Cookies.get("wt_consent")){if(r&&r===Cookies.get("viewed_cookie_policy")&&"yes"===Cookies.get("viewed_cookie_policy"))return!0}else if("yes"===getCookieYes("analytics"))return!0;return!1}return!0},setupGdprCallbacks:function(){if(_.gdpr.consent_magic_integration_enabled&&"undefined"!=typeof CS_Data){let o=CS_Data.test_prefix,e=!1,i="cs_enabled_cookie_term",n=(1==CS_Data.cs_refresh_after_consent&&(e=CS_Data.cs_refresh_after_consent),function(){var a=document.cookie.split(";"),n={facebook:!0,ga:!0,google_ads:!0,tiktok:!0,bing:!0,pinterest:!0,gtm:!0,reddit:!0},e;for(let t=1;t<=a.length;t++)if(-1!==a[t-1].indexOf(i)){let e=a[t-1].replace("cs_enabled_cookie_term"+o+"_","");e=Number(e.replace(/\D+/g,"")),"yes"==Cookies.get("cs_enabled_cookie_term"+o+"_"+e)?(e!==CS_Data.cs_script_cat.facebook&&!R.csModeEnabled(CS_Data.cs_meta_ldu_mode)||F.loadPixel(),e!==CS_Data.cs_script_cat.bing&&!R.csModeEnabled(CS_Data.cs_bing_consent_mode?.ad_storage?.enabled)||s.loadPixel(),(e===CS_Data.cs_script_cat.analytics||void 0!==CS_Data.cs_google_analytics_consent_mode&&1==CS_Data.cs_google_analytics_consent_mode)&&W.loadPixel(),e===CS_Data.cs_script_cat.pinterest&&r.loadPixel(),e!==CS_Data.cs_script_cat.reddit&&!R.csModeEnabled(CS_Data.cs_reddit_ldu_mode)||d.loadPixel(),e!==CS_Data.cs_script_cat.openai&&!R.csModeEnabled(CS_Data.cs_openai_opt_out_mode)||M.loadPixel()):(e!==CS_Data.cs_script_cat.facebook||R.csModeEnabled(CS_Data.cs_meta_ldu_mode)||(F.disable(),n.facebook=!1),e!==CS_Data.cs_script_cat.bing||R.csModeEnabled(CS_Data.cs_bing_consent_mode?.ad_storage?.enabled)||(s.disable(),n.bing=!1),e!==CS_Data.cs_script_cat.analytics||void 0!==CS_Data.cs_google_analytics_consent_mode&&0!=CS_Data.cs_google_analytics_consent_mode||(W.disable(),n.ga=!1,n.gtm=!1),e===CS_Data.cs_script_cat.pinterest&&(r.disable(),n.pinterest=!1),e!==CS_Data.cs_script_cat.reddit||R.csModeEnabled(CS_Data.cs_reddit_ldu_mode)||(d.disable(),n.reddit=!1),e!==CS_Data.cs_script_cat.openai||R.csModeEnabled(CS_Data.cs_openai_opt_out_mode)||(M.disable(),n.open
24ai=!1),e===CS_Data.cs_script_cat?.openai&&(M.disable(),n.openai=!1)),"yes"==Cookies.get("cs_enabled_advanced_matching")&&F.loadPixel()}R.setupGDPRData(n)});e||(n(),D(document).on("click",".cs_action_btn",function(e){e.preventDefault();var e={facebook:!0,ga:!0,bing:!0,pinterest:!0,gtm:!0,reddit:!0},t,a=D(this).attr("data-cs_action");"allow_all"===a?(F.loadPixel(),s.loadPixel(),W.loadPixel(),r.loadPixel(),d.loadPixel(),e.facebook=!0,e.bing=!0,e.ga=!0,e.pinterest=!0,e.reddit=!0,e.gtm=!0,R.setupGDPRData(e)):"disable_all"===a?(R.csModeEnabled(CS_Data.cs_meta_ldu_mode)||(F.disable(),e.facebook=!1),R.csModeEnabled(CS_Data.cs_bing_consent_mode?.ad_storage?.enabled)||(s.disable(),e.bing=!1),0!=CS_Data.cs_google_analytics_consent_mode&&void 0!==CS_Data.cs_google_analytics_consent_mode||(W.disable(),e.ga=!1,e.gtm=!1),R.csModeEnabled(CS_Data.cs_reddit_ldu_mode)||(d.disable(),e.reddit=!1),r.disable(),e.pinterest=!1,M.disable(),e.openai=!1,R.setupGDPRData(e)):"cs_confirm"===a&&n()}))}var e,t;_.gdpr.real_cookie_banner_integration_enabled&&(e=window.consentApi)&&(e.consent("http","_ga","*").then(W.loadPixel.bind(W),W.disable.bind(W)),e.consent("http","_fbp","*").then(F.loadPixel.bind(F),F.disable.bind(F)),e.consent("http","_pinterest_sess",".pinterest.com").then(r.loadPixel.bind(r),r.disable.bind(r)),e.consent("http","_uetsid","*").then(s.loadPixel.bind(s),s.disable.bind(s)),t={facebook:!0,ga:!0,bing:!0,pinterest:!0,gtm:!0},e.consentSync("http","_ga","*").cookieOptIn||(t.ga=!1,t.gtm=!1),e.consentSync("http","_fbp","*").cookieOptIn||(t.facebook=!1),e.consentSync("http","_pinterest_sess",".pinterest.com").cookieOptIn||(t.pinterest=!1),e.consentSync("http","_uetsid","*").cookieOptIn||(t.bing=!1),R.setupGDPRData(t)),_.gdpr.cookiebot_integration_enabled&&"undefined"!=typeof Cookiebot&&window.addEventListener("CookiebotOnConsentReady",function(){var e={facebook:!0,ga:!0,bing:!0,pinterest:!0,gtm:!0};R.manageCookies(),Cookiebot.consent.marketing&&(F.loadPixel(),s.loadPixel(),r.loadPixel(),e.facebook=!0,e.bing=!0,e.pinterest=!0),Cookiebot.consent.statistics&&(W.loadPixel(),e.ga=!0,e.gtm=!0),Cookiebot.consent.marketing||(F.disable(),r.disable(),s.disable(),e.facebook=!1,e.bing=!1,e.pinterest=!1),Cookiebot.consent.statistics||(W.disable(),e.ga=!1,e.gtm=!1),R.setupGDPRData(e)}),_.gdpr.cookie_notice_integration_enabled&&(D(document).onFirst("click",".cn-set-cookie",function(){let e={};e="accept"===D(this).data("cookie-set")?(F.loadPixel(),W.loadPixel(),r.loadPixel(),s.loadPixel(),{facebook:!0,ga:!0,bing:!0,pinterest:!0,gtm:!0}):(F.disable(),W.disable(),r.disable(),s.disable(),{facebook:!1,ga:!1,bing:!1,pinterest:!1,gtm:!1}),R.setupGDPRData(e)}),D(document).onFirst("click",".cn-revoke-cookie",function(){var e;F.disable(),W.disable(),r.disable(),s.disable(),R.setupGDPRData({facebook:!1,ga:!1,bing:!1,pinterest:!1,gtm:!1})})),_.gdpr.cookie_law_info_integration_enabled&&(D(document).onFirst("click","#wt-cli-accept-all-btn,#cookie_action_close_header, .cky-btn-accept",function(){var e;setTimeout(function(){var e=Cookies.get("cookieyes-consent")??Cookies.get("wt_consent")??Cookies.get("viewed_cookie_policy");void 0!==e&&(e===Cookies.get("cookieyes-consent")||e===Cookies.get("wt_consent")?"yes"===getCookieYes("analytics")&&R.manageCookies():e===Cookies.get("viewed_cookie_policy")&&"yes"==e&&R.manageCookies())},1e3),F.loadPixel(),W.loadPixel(),r.loadPixel(),s.loadPixel(),R.setupGDPRData({facebook:!0,ga:!0,bing:!0,pinterest:!0,gtm:!0})}),D(document).onFirst("click","#cookie_action_close_header_reject, .cky-btn-reject",function(){var e;F.disable(),W.disable(),r.disable(),s.disable(),R.setupGDPRData({facebook:!1,ga:!1,bing:!1,pinterest:!1,gtm:!1})}))},setupGDPRData:function(e){e=window.btoa(JSON.stringify(e)),Cookies.set("pys_consent",e,{expires:365,path:"/",domain:x()})}
24,getLinkExtension:function(e){return 0<(e=(e=(e=e.substring(0,-1===e.indexOf("#")?e.length:e.indexOf("#"))).substring(0,-1===e.indexOf("?")?e.length:e.indexOf("?"))).substring(e.lastIndexOf("/")+1,e.length)).length&&-1!==e.indexOf(".")?e.substring(e.indexOf(".")+1):""},getLinkFilename:function(e){return 0<(e=(e=(e=e.substring(0,-1===e.indexOf("#")?e.length:e.indexOf("#"))).substring(0,-1===e.indexOf("?")?e.length:e.indexOf("?"))).substring(e.lastIndexOf("/")+1,e.length)).length&&-1!==e.indexOf(".")?e:""},isCheckoutPage:function(){return D("body").hasClass("woocommerce-checkout")||document.querySelector(".woocommerce-checkout")||D("body").hasClass("edd-checkout")},addCheckoutFields:function(){var a="",n=E(),o=(D.each(f,function(e,t){0<e&&(a+="|"),a+=t+":"+n[t]}),""),i=C(),r=(D.each(g,function(e,t){0<e&&(o+="|"),o+=t+":"+i[t]}),""),s=C(!0),d=(D.each(g,function(e,t){0<e&&(r+="|"),r+=t+":"+s[t]}),""),c=E(!0),e=(D.each(f,function(e,t){0<e&&(d+="|"),d+=t+":"+c[t]}),P()),t=w(!1),_=w(!1),l=k(),p=k(),u=null,u=D("body").hasClass("woocommerce-checkout")?D("form.woocommerce-checkout"):D("#edd_purchase_form"),m={pys_utm:a,pys_utm_id:o,pys_browser_time:e.join("|"),pys_landing:t,pys_source:l,pys_order_type:0<D(".wcf-optin-form").length?"wcf-optin":"normal",last_pys_landing:_,last_pys_source:p,last_pys_utm:d,last_pys_utm_id:r};Object.keys(m).forEach(function(e,t){u.append("<input type='hidden' name='"+e+"' value='"+m[e]+"' /> ")})},getAdvancedFormData:function(){var e=Cookies.get("pys_advanced_form_data");return void 0===e?{first_name:"",last_name:"",email:"",phone:""}:JSON.parse(e)},AdvancedMatching:{normalizeEmail:function(e){var e;return"string"==typeof e&&!(0===(e=e.trim().toLowerCase()).length||254<e.length)&&/^[^\s@]+@[^\s@.]+(\.[^\s@.]+)+$/.test(e)?e:""},normalizePhone:function(e){var e;return"string"==typeof e&&0<(e=e.replace(/[^0-9]/g,"")).length?e:""},normalizeName:function(e){return"string"!=typeof e||1024<e.length?"":e.trim().toLowerCase()},cookieIdentity:function(){var t;try{t=R.getAdvancedFormData()||{}}catch(e){t={}}return{email:this.normalizeEmail(t.email||""),phone:this.normalizePhone(t.phone||""),first_name:this.normalizeName(t.first_name||""),last_name:this.normalizeName(t.last_name||"")}},merge:function(o,i,r,e){var s;return o&&i&&(r=r||this.cookieIdentity(),s="keep_data"===(e=void 0===e?void 0!==_?_.data_persistency:"":e),Object.keys(i).forEac
24h(function(e){var t=i[e],a=r[t.field],n;"string"!=typeof a||0===a.length||"string"==typeof o[e]&&0<o[e].length&&!s||(t.hash?"function"==typeof sha256&&(o[e]=sha256(a)):o[e]=a)})),o}},getFormFilledData:function(a){return a.params&&0<Object.keys(a.params).length&&Object.entries(a.params).forEach(([e,t])=>{var t=j(t,e);null!==t?a.params[e]=t:delete a.params[e]}),a}}})(p),F=(_=!(c=["PageView","ViewContent","Search","AddToCart","AddToWishlist","InitiateCheckout","AddPaymentInfo","Purchase","Lead","Subscribe","CustomizeProduct","FindLocation","StartTrial","SubmitApplication","Schedule","Contact","Donate"]),t=function(){var t=x(),t=t?String(t).replace(/^\./,""):"",e;if(!t)try{t=String(location.hostname||"")}catch(e){t=""}return"fb."+(t?t.split(".").length-1:0)+"."+Date.now()+"."},l=function(){return Cookies.get("_fbp")?Cookies.get("_fbp"):t()+Math.floor(1e9+9e9*Math.random())},u=function(){return getUrlParameter("fbclid")?t()+getUrlParameter("fbclid"):""},m=(d=p).gdpr.all_disabled_by_api||d.gdpr.facebook_disabled_by_api||d.gdpr.cookiebot_integration_enabled||d.gdpr.consent_magic_integration_enabled||d.gdpr.cookie_notice_integration_enabled||d.gdpr.cookie_law_info_integration_enabled,{tag:function(){return"facebook"},isEnabled:function(){return d.hasOwnProperty("facebook")},disable:function(){_=!1},advancedMatching:function(){if(d.facebook.advancedMatchingEnabled){let e={};if(0<Object.keys(d.facebook.advancedMatching).length&&(e=d.facebook.advancedMatching),R.AdvancedMatching.merge(e,{em:{field:"email",hash:!1},ph:{field:"phone",hash:!1},fn:{field:"first_name",hash:!1},ln:{field:"last_name",hash:!1}}),e.hasOwnProperty("external_id")?e.external_id!=Cookies.get("pbid")&&(e.external_id=Cookies.get("pbid")?Cookies.get("pbid"):e.external_id):(Cookies.get("pbid")||d.hasOwnProperty("pbid")&&d.pbid)&&(e.external_id=Cookies.get("pbid")?Cookies.get("pbid"):d.pbid),0<Object.keys(e).length)return e}return!1},loadPixel:function(){var e,t,a,n,o,e,n,t;!_&&this.isEnabled()&&R.consentGiven("facebook")&&!R.holdForIdentity(function(){F.loadPixel()})&&(e=window,t=document,a="script",n="https://connect.facebook.net/en_US/fbevents.js",e.fbq||(o=e.fbq=function(){o.callMethod?o.callMethod.apply(o,arguments):o.queue.push(arguments)},e._fbq||(e._fbq=o),(o.push=o).loaded=!0,o.version="2.0",o.agent="dvpixelyoursite",o.queue=[],(e=t.createElement(a)).async=!0,e.src=n,(n=t.getElementsByTagName(a)[0]).parentNode.insertBefore(e,n)),d.cookie&&d.cookie.disabled_all_cookie||T(x()),t=parseInt(d.cookie_duration),Cookies.get("_fbp")||Cookies.set("_fbp",l(),{expires:t,path:"/",domain:x()}),getUrlParameter("fbclid")&&Cookies.set("_fbc",u(),{expires:t,path:"/",domain:x()}),r(!0),V(),d.facebook.pixelIds.forEach(function(e){d.facebook.removeMetadata&&fbq("set","autoConfig",!1,e);var t=F.advancedMatching(),a,n;1==+d.facebook.meta_ldu&&fbq("dataProcessingOptions",["LDU"],0,0),R.isMetaEnabledCapiPixel(e)&&fbq("optinMetaEnabledCapi",e),d.gdpr.consent_magic_integration_enabled&&"undefined"!=typeof CS_Data?t&&(a=CS_Data.test_prefix,n=Cookies.get("cs_enabled_advanced_matching"+a),!(0<jQuery("#cs_enabled_advanced_matching"+a).length)||"yes"==n)?fbq("init",e,t):fbq("init",e):t?fbq("init",e,t):fbq("init",e)}),_=!0,R.fireStaticEvents("facebook"))},fireEvent:function(e,t){return!(!_||!this.isEnabled()||(t.delay=t.delay||0,t.params=t.params||{},0===t.delay?a(e,t):setTimeout(function(e,t){a(e,t)},1e3*t.delay,e,t),0))},onCommentEvent:function(e){this.fireEvent(e.name,e)},onDownloadEvent:function(e){this.fireEvent(e.name,e)},onFormEvent:function(e){this.fireEvent(e.name,e)},onWooAddToCartOnButtonEvent:function(e){var t;d.dynamicEvents.woo_add_to_cart_on_button_click.hasOwnProperty(this.tag())&&(t=d.dynamicEvents.woo_add_to_cart_on_button_click[this.tag()],window.pysWooProductData=window.pysWooProductData||[],window.pysWooProductData.hasOwnProperty(e))&&window.pysWooProductData[e].hasOwnProperty("facebook")&&(t=R.copyProperties(t,{}),R.copyProperties(window.pysWooProductData[e].facebook.params,t.params),this.fireEvent(t.name,t))},onWooAddToCartOnSingleEvent:function(a,e,t,n){var i,r,n,o;window.pysWooProductData=window.pysWooProductData||[],d.dynamicEvents.woo_add_to_cart_on_button_click.hasOwnProperty(this.tag())&&(i=R.clone(d.dynamicEvents.woo_add_to_cart_on_button_click[this.tag()]),t!==R.PRODUCT_VARIABLE||d.facebook.wooVariableAsSimple||(a=parseInt(n.find('input[name="variation_id"]').val())),window.pysWooProductData.hasOwnProperty(a))&&window.pysWooProductData[a].hasOwnProperty("facebook")&&(R.copyProperties(window.pysWooProductData[a].facebook.params,i.params),r=0,t===R.PRODUCT_GROUPED&&(n.find(".woocommerce-grouped-product-list .qty").each(function(e){var t=D(this).attr("name").replaceAll("quantity[","").replaceAll("]",""),n=parseInt(D(this).val()),o=(isNaN(n)&&(n=0),window.pysWooProductData[a].facebook.grouped[t]);0==n&&i.params.content_ids.forEach(function(e,t,a){e==o.content_id&&a.splice(t,1)}
24),i.params.hasOwnProperty("contents")&&i.params.contents.forEach(function(e,t,a){e.id==o.content_id&&(0<n?e.quantity=n:a.splice(t,1))}),r+=o.price*n}),0==r)||(d.woo.addToCartOnButtonValueEnabled&&"global"!==d.woo.addToCartOnButtonValueOption&&(t===R.PRODUCT_GROUPED?i.params.value=r:t===R.PRODUCT_BUNDLE?(o=getBundlePriceOnSingleProduct(n=D(".bundle_form .bundle_data").data("bundle_form_data")),i.params.value=(parseInt(n.base_price)+o)*e):i.params.value=i.params.value*e),i.params.hasOwnProperty("contents")&&t!==R.PRODUCT_GROUPED&&(i.params.contents[0].quantity=e),this.fireEvent(i.name,i)))},onWooRemoveFromCartEvent:function(e){this.fireEvent(e.name,e)},onEddAddToCartOnButtonEvent:function(e,t,a){var n,t,e,t;d.dynamicEvents.edd_add_to_cart_on_button_click.hasOwnProperty(this.tag())&&(n=R.clone(d.dynamicEvents.edd_add_to_cart_on_button_click[this.tag()]),window.pysEddProductData)&&window.pysEddProductData.hasOwnProperty(e)&&(t=t?e+"_"+t:e,window.pysEddProductData[e].hasOwnProperty(t))&&window.pysEddProductData[e][t].hasOwnProperty("facebook")&&(R.copyProperties(window.pysEddProductData[e][t].facebook.params,n.params),d.edd.addToCartOnButtonValueEnabled&&"global"!==d.edd.addToCartOnButtonValueOption&&(n.params.value=n.params.value*a),(e=n.params.contents)[0].quantity=a,n.params.contents=e,this.fireEvent(n.name,n))},onEddRemoveFromCartEvent:function(e){this.fireEvent(e.name,e)},onPageScroll:function(e){this.fireEvent(e.name,e)},onTime:function(e){this.fireEvent(e.name,e)},initEventIdCookies:function(e){var t={};t[e]=pys_generate_token(36),Cookies.set("pys_fb_event_id",JSON.stringify(t))},updateEventId:function(e){var t=Cookies.get("pys_fb_event_id"),t;void 0===t?this.initEventIdCookies(e):((t=JSON.parse(t))[e]=pys_generate_token(36),Cookies.set("pys_fb_event_id",JSON.stringify(t)))},getEventId:function(e){var t=Cookies.get("pys_fb_event_id");return void 0===t&&(this.initEventIdCookies(e),t=Cookies.get("pys_fb_event_id")),JSON.parse(t)[e]},sendFacebookRestAPIRequest:function(t,a,n){if(void 0!==window.pysFacebookRest&&window.pysFacebookRest.restApiUrl){let e={event:a,data:JSON.stringify(n),ids:t.pixelIds||d.facebook.pixelIds,eventID:t.eventID,woo_order:t.woo_order||0,edd_order:t.edd_order||0,order_key:t.order_key||""};if(A&&(e.referrer_url=A),e.event_source_url=window.location.href,navigator.sendBeacon){let a=new FormData;if(Object.keys(e).forEach(t=>{Array.isArray(e[t])?e[t].forEach(e=>{a.append(t+"[]",e)}):a.append(t,e[t])}),navigator.sendBeacon(window.pysFacebookRest.restApiUrl,a))return}fetch(window.pysFacebookRest.restApiUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams(e)}).catch(()=>{this.sendAjaxFallback(t,a,n)})}},sendAjaxFallback:function(e,t,a){var t={action:"pys_api_event",pixel:"facebook",event:t,data:a,ids:e.pixelIds||d.facebook.pixelIds,eventID:e.eventID,url:window.location.href,ajax_event:d.ajax_event};e.hasOwnProperty("woo_order")&&(t.woo_order=e.woo_order),e.hasOwnProperty("edd_order")&&(t.edd_order=e.edd_order),e.hasOwnProperty("order_key")&&e.order_key&&(t.order_key=e.order_key),A&&(t.referrer_url=A),R.sendServerAjaxRequest(d.ajaxUrl,t)}}),d,c,_,t,l,u,m;function Q(e,t,a){let n=null;var o,i;return d.facebook.sendEventId&&(o=d.woo&&"add_cart_hook"===d.woo.addToCartCatchMethod,d.facebook.serverApiEnabled&&"woo_remove_from_cart"===e.e_id?(F.updateEventId(e.name),e.eventID=F.getEventId(e.name)):d.facebook.serverApiEnabled&&"woo_add_to_cart_on_button_click"===e.e_id&&o||(e.eventID=R.generateUniqueId(e),Cookies.get("_fbp")&&(a._fbp=Cookies.get("_fbp")),Cookies.get("_fbc")&&(a._fbc=Cookies.get("_fbc")),d.facebook.serverApiEnabled&&(d.ajaxForServerEvent||m)&&(i={action:"pys_api_event",pixel:"facebook",event:t,event_slug:e.e_id,data:a,ids:d.facebook.pixelIds,eventID:e.eventID,url:window.location.href,ajax_event:d.ajax_event},e.hasOwnProperty("woo_order")&&(i.woo_order=e.woo_order),e.hasOwnProperty("edd_order")&&(i.edd_order=e.edd_order),e.hasOwnProperty("order_key")&&e.order_key&&(i.order_key=e.order_key),A&&(i.referrer_url=A),"automatic_event_internal_link"===e.e_id||"automatic_event_outbound_link"===e.e_id?setTimeout(()=>R.sendServerAjaxRequest(d.ajaxUrl,i),500):"static"!=e.type&&R.sendServerAjaxRequest(d.ajaxUrl,i),"static"==e.type&&d.ajaxForServerStaticEvent||e.hasOwnProperty("ajaxFire")&&e.ajaxFire)&&R.sendServerAjaxRequest(d.ajaxUrl,i)),delete a._fbp,delete a._fbc,n=e.eventID),n}function a(e,t){var a,n,n,o,t;"function"==typeof window.pys_event_data_filter&&window.pys_disable_event_filter(e,"facebook")||(a=c.includes(e)?"track":"trackCustom",n=t.params,o={},R.copyProperties(n,n={}),t=Q(t,e,n),"hCR"!==e&&(d.debug&&console.log("[Facebook] "+e,n,"eventID",t),null!=t&&(o.eventID=t),fbq(a,e,n,o)))}var W={tag:function(){return"ga"},isEnabled:function(){return f.hasOwnProperty("ga")},disable:function(){n=!1},loadPixel:function(){var e,t;!n&&this.isEnabled()&&R.consentGiven("analytics")&&(R.loadGoogleTag(f.ga.trackingIds[0]),f.ga.crossDomainEnabled&&((e={}).linker={accept_incoming:f.ga.crossDomainAcceptIncoming,domains:f.ga.crossDomainDomains}),f.ga.trackingIds.forEach(function(e,t){var a=f.ga.isDebugEnabled,n="index_"+t,o=Object.assign({},f.config),i,t;for(i in o.debug_mode=!1,o.send_page_view=!f.ga.custom_page_view_event,a)if(a.hasOwnProperty(i)&&a[i]===n){o.debug_mode=!0;break}o.debug_mode||delete o.debug_mode,y(e)&&(f.ga.disableAdvertisingFeatures&&(o.allow_google_signals=!1),f.ga.disableAdvertisingPersonalization)&&(o.allow_ad_personalization_signals=!1),f.ga.hasOwnProperty("additionalConfig")&&f.ga.additionalConfig.hasOwnProperty(e)&&f.ga.additionalConfig[e]&&(o.first_party_collection=f.ga.additionalConfig[e].first_party_collection),f.ga.hasOwnProperty("serverContainerUrls")&&f.ga.serverContainerUrls.hasOwnProperty(e)&&0!=f.ga.serverContainerUrls[e].enable_server_container&&(""!=f.ga.serverContainerUrls[e].server_container_url&&(o.server_container_url=f.ga.serverContainerUrls[e].server_container_url),""!=f.ga.serverContainerUrls[e].transport_url)&&(o.transport_url=f.ga.serverContainerUrls[e].transport_url),f.gdpr.cookiebot_integration_enabled&&"undefined"!=typeof Cookiebot?(t=f.gdpr.cookiebot_analytics_consent_category,f.gdpr.analytics_prior_consent_enabled?!0===Cookiebot.consented&&Cookiebot.consent[t]&&R.gtagPush("config",e,o):Cookiebot.consent[t]&&R.gtagPush("config",e,o)):R.gtagPush("config",e,o)}),n=!0,R.fireStaticEvents("ga"))},fireEvent:function(e,t){return!(!n||!this.isEnabled()||(t.delay=t.delay||0,t.params=t.params||{},t.params.eventID=R.generateUniqueId(t),0===t.delay?g(e,t.params):setTimeout(function(e,t){g(e,t)},1e3*t.delay,e,t.params),0))},onCommentEvent:function(e){this.fireEvent(e.name,e)},onDownloadEvent:function(e){this.fireEvent(e.name,e)},onFormEvent:function(e){this.fireEvent(e.name,e)},onWooAddToCartOnButtonEvent:function(e){var t;f.dynamicEvents.woo_add_to_cart_on_button_click.hasOwnProperty(this.tag())&&(t=R.clone(f.dynamicEvents.woo_add_to_cart_on_button_click[this.tag()]),window.pysWooProductData.hasOwnProperty(e))&&window.pysWooProductData[e].hasOwnProperty("ga")&&(R.copyProperties(window.pysWooProductData[e].ga.params,t.params),this.fireEvent(t.name,t))},onWooAddToCartOnSingleEvent:function(a,e,t,n){if(window.pysWooProductData=window.pysWooProductData||[],f.dynamicEvents.woo_add_to_cart_on_button_click.hasOwnProperty(this.tag())){var i=R.clone(f.dynamicEvents.woo_add_to_cart_on_button_click[this.tag()]);if(t!==R.PRODUCT_VARIABLE||f.ga.wooVariableAsSimple||(a=parseInt(n.find('input[name="variation_id"]').val())),window.pysWooProductData.hasOwnProperty(a)&&window.pysWooProductData[a].hasOwnProperty("ga")){if(R.copyProperties(window.pysWooProductData[a].ga.params,i.params),t===R.PRODUCT_GROUPED){var r=0;if(n.find(".woocommerce-grouped-product-list .qty").each(function(e){var t=D(this).attr("name").replaceAll("quantity[","").replaceAll("]",""),n=parseInt(D(this).val()),o=(isNaN(n)&&(n=0),window.pysWooProductData[a].ga.grouped[t]);
24i.params.items.forEach(function(e,t,a){e.id==o.content_id&&(0<n?e.quantity=n:a.splice(t,1))}),r+=o.price*n}),f.woo.addToCartOnButtonValueEnabled&&"global"!==f.woo.addToCartOnButtonValueOption&&i.params.hasOwnProperty("ecomm_totalvalue")&&(i.params.ecomm_totalvalue=r),0==r)return}else i.params.items[0].quantity=e;f.woo.addToCartOnButtonValueEnabled&&"global"!==f.woo.addToCartOnButtonValueOption&&t!==R.PRODUCT_GROUPED&&i.params.hasOwnProperty("ecomm_totalvalue")&&(i.params.ecomm_totalvalue=i.params.items[0].price*e),this.fireEvent(i.name,i)}}},onWooRemoveFromCartEvent:function(e){this.fireEvent(e.name,e)},onEddAddToCartOnButtonEvent:function(e,t,a){var n,t,t;f.dynamicEvents.edd_add_to_cart_on_button_click.hasOwnProperty(this.tag())&&(n=R.clone(f.dynamicEvents.edd_add_to_cart_on_button_click[this.tag()]),window.pysEddProductData)&&window.pysEddProductData.hasOwnProperty(e)&&(t=t?e+"_"+t:e,window.pysEddProductData[e].hasOwnProperty(t))&&window.pysEddProductData[e][t].hasOwnProperty("ga")&&(R.copyProperties(window.pysEddProductData[e][t].ga.params,n.params),n.params.items[0].quantity=a,this.fireEvent(n.name,n))},onEddRemoveFromCartEvent:function(e){this.fireEvent(e.name,e)},onPageScroll:function(e){this.fireEvent(e.name,e)},onTime:function(e){this.fireEvent(e.name,e)}},f,n;function g(a,e){var n,o;"function"==typeof window.pys_event_data_filter&&window.pys_disable_event_filter(a,"ga")||(n=R.copyProperties(e,{}),o=function(e,t,a){R.hasSendToTarget(e)?(a.send_to=e,f.debug&&console.log("[Google Analytics #"+e+"] "+t,a),R.gtagPush("event",t,a)):f.debug&&console.warn("[Google Analytics] "+t+" skipped: empty tracking ID",{trackingIds:f.ga.trackingIds})},f.ga.trackingIds.forEach(function(e){var t=R.copyProperties(n,{}),t=$(e,a,t);o(e,a,t)}))}function $(e,t,a){return delete a.landing_page,y(e)&&(delete a.traffic_source,delete a.event_category,delete a.event_label,delete a.ecomm_prodid,delete a.ecomm_pagetype,delete a.ecomm_totalvalue,"search"===t)&&(a.search=a.search_term,delete a.search_term,delete a.dynx_itemid,delete a.dynx_pagetype,delete a.dynx_totalvalue),a}function y(e){return 0===e.indexOf("G")}var U=(h=n=!1,b="dataLayer",{tag:function(){return"gtm"},isEnabled:function(){return v.hasOwnProperty("gtm")},disable:function(){h=!1},updateEnhancedConversionData:function(){var e;h&&this.isEnabled()&&v.hasOwnProperty("tracking_analytics")&&v.tracking_analytics.hasOwnProperty("userDataEnable")&&v.tracking_analytics.userDataEnable&&(e=R.getAdvancedFormData(),0<Object.keys(e).length)&&window[b].push({user_data:e})},loadPixel:function(){if(!h&&this.isEnabled()&&R.consentGiven("analytics")){b=R.resolveGtmDataLayerName();for(var e=0,t;e<v.gtm.trackingIds.length;e++){var a=v.gtm.trackingIds[e];if(!v.gtm.gtm_just_data_layer){console.log("[PYS] Google Tag Manager container code loaded"),R.loadGTMScript(a);break}}v.gtm.gtm_just_data_layer&&(console.warn&&console.warn("[PYS] Google Tag Manager container code placement set to OFF !!!"),console.warn&&console.warn("[PYS] Data layer codes are active but GTM container must be loaded using custom coding !!!"),R.pushGTMConsentState(b),0==v.gtm.trackingIds.length)&&R.loadGTMScript(),v.hasOwnProperty("tracking_analytics")&&v.tracking_analytics.hasOwnProperty("userDataEnable")&&v.tracking_analytics.userDataEnable&&(t=R.getAdvancedFormData(),0<Object.keys(t).length)&&window[b].push({user_data:t});var t={},n=(v.user_id&&0!=v.user_id&&(t.user_id=v.user_id),v.gtm.trackingIds);h=!0,R.fireStaticEvents("gtm")}},fireEvent:function(e,t){return!(!h||!this.isEnabled()||(t.delay=t.delay||0,t.params=t.params||{},0===t.delay?H(e,t):setTimeout(function(e,t){H(e,t)},1e3*t.delay,e,t),0))},onCommentEvent:function(e){this.fireEvent(e.name,e)},onDownloadEvent:function(e){this.fireEvent(e.name,e)},onFormEvent:function(e){this.fireEvent(e.name,e)},onWooAddToCartOnButtonEvent:function(e,t=null){var a;v.dynamicEvents.woo_add_to_cart_on_button_click.hasOwnProperty(this.tag())&&(a=R.clone(v.dynamicEvents.woo_add_to_cart_on_button_click[this.tag()]),window.pysWooProductData.hasOwnProperty(e))&&window.pysWooProductData[e].hasOwnProperty("gtm")&&(R.copyProperties(window.pysWooProductData[e].gtm.params,a.params),this.fireEvent(a.name,a))},onWooAddToCartOnSingleEvent:function(a,e,t,n){if(window.pysWooProductData=window.pysWooProductData||[],v.dynamicEvents.woo_add_to_cart_on_button_click.hasOwnProperty(this.tag())){var o=R.clone(v.dynamicEvents.woo_add_to_cart_on_button_click[this.tag()]);if(t!==R.PRODUCT_VARIABLE||v.gtm.wooVariableAsSimple||(a=parseInt(n.find('input[name="variation_id"]').val())),window.pysWooProductData.hasOwnProperty(a)&&window.pysWooProductData[a].hasOwnProperty("gtm")){if(R.copyProperties(window.pysWooProductData[a].gtm.params,o.params),params=o.params.hasOwnProperty("ecommerce")?o.params.ecommerce:o.params,t===R.PRODUCT_GROUPED){var i=0;if(n.find(".woocommerce-grouped-product-list .qty").each(function(e){var t=D(this).attr("name").replaceAll("quantity[","").replaceAll("]",""),n=parseInt(D(this).val()),o=(isNaN(n)&&(n=0),window.pysWooProductData[a].gtm.grouped[t]);
24params.items.forEach(function(e,t,a){e.id==o.content_id&&(0<n?(e.quantity=n,e.price=o.price):a.splice(t,1))}),i+=o.price*n}),v.woo.addToCartOnButtonValueEnabled&&"global"!==v.woo.addToCartOnButtonValueOption&&params.hasOwnProperty("value")&&(params.value=i),0==i)return}else params.items[0].quantity=e;v.woo.addToCartOnButtonValueEnabled&&"global"!==v.woo.addToCartOnButtonValueOption&&t!==R.PRODUCT_GROUPED&&params.hasOwnProperty("value")&&(params.value=params.items[0].price*e),this.fireEvent(o.name,o)}}},onWooRemoveFromCartEvent:function(e){this.fireEvent(e.name,e)},onEddAddToCartOnButtonEvent:function(e,t,a){var n,t,t;v.dynamicEvents.edd_add_to_cart_on_button_click.hasOwnProperty(this.tag())&&(n=R.clone(v.dynamicEvents.edd_add_to_cart_on_button_click[this.tag()]),window.pysEddProductData)&&window.pysEddProductData.hasOwnProperty(e)&&(t=t?e+"_"+t:e,window.pysEddProductData[e].hasOwnProperty(t))&&window.pysEddProductData[e][t].hasOwnProperty("gtm")&&(R.copyProperties(window.pysEddProductData[e][t].gtm.params,n.params),(item=(n.params.hasOwnProperty("ecommerce")?n.params.ecommerce:n.params).items[0]).quantity=a,this.fireEvent(n.name,n))},onEddRemoveFromCartEvent:function(e){this.fireEvent(e.name,e)},onPageScroll:function(e){this.fireEvent(e.name,e)},onTime:function(e){this.fireEvent(e.name,e)}}),v,h,b;function H(e,t){var a,n,o,i,r,s,a;"function"==typeof window.pys_event_data_filter&&window.pys_disable_event_filter(e,"gtm")||(a=t.params,n=t.params,i=Object.values(t.trackingIds),R.copyProperties(R.getRequestParam
24s(),a),r=function(e,t,a,n=null){var o={},i=!v.gtm.gtm_just_data_layer&&0<e.length;if(i)a.send_to=e;else if(!v.gtm.gtm_just_data_layer)return;a.hasOwnProperty("ecommerce")&&(o.ecommerce=a.ecommerce,delete a.ecommerce);var r={...a};[a.manualName,"manualName","triggerType"].forEach(e=>delete r[e]),n&&(!n.hasOwnProperty("hasAutoParam")||n.hasOwnProperty("hasAutoParam")&&n.hasAutoParam)&&(o.automatedParameters=r),a.hasOwnProperty(a.manualName)&&(o[a.manualName]=a[a.manualName],delete a[a.manualName]),["manualName","triggerType"].forEach(e=>{a.hasOwnProperty(e)&&(o[e]=a[e],delete a[e])}),o.manualDataLayer=R.resolveGtmDataLayerName(),o.event=t,v.debug&&(i?console.log("[Google GTM #"+e+"] "+t,o):console.log('[Google GTM push to "'+b+'"] '+t,o)),window[b].push(o)},(a=X(i,e,R.copyProperties(a,{}))).event_id=R.generateUniqueId(t),r(i,e,a,t))}function Z(e){var t={ViewContent:"view_item",AddToCart:"add_to_cart",AddToWishList:"add_to_wishlist",InitiateCheckout:"begin_checkout",Purchase:"purchase",Lead:"generate_lead",CompleteRegistration:"sign_up",AddPaymentInfo:"set_checkout_option"};t.hasOwnProperty(e)}function X(e,t,a){var n=!1;return Array.isArray(e)?n=e.some(K):K(e)&&(n=!0),n&&(delete a.event_category,delete a.event_label,delete a.analytics_storage,delete a.ad_storage,delete a.ad_user_data,delete a.ad_personalization,"search"===t)&&(a.search=a.search_term,delete a.search_term,delete a.dynx_itemid,delete a.dynx_pagetype,delete a.dynx_totalvalue),a}function K(e){return 0===e.indexOf("GTM")}var M=(c=>{let s=!1,d=null,_=null,t=!1;function l(t,a,n,o){if(c.hasOwnProperty("openai")&&c.openai.serverApiEnabled){var i=c.gdpr.all_disabled_by_api||c.gdpr.openai_disabled_by_api||c.gdpr.cookiebot_integration_enabled||c.gdpr.consent_magic_integration_enabled||c.gdpr.cookie_notice_integration_enabled||c.gdpr.cookie_law_info_integration_enabled,e,r,s;if(c.ajaxForServerEvent||i)if(!("static"===a.type||void 0===a.type)||0<(a.delay||0)||c.ajaxForServerStaticEvent||a.hasOwnProperty("ajaxFire")&&a.ajaxFire){var i={data:n},d;a.params&&a.params.custom_event_name&&(i.custom_event_name=a.params.custom_event_name);let e={action:"pys_openai_api_event",pixel:"openai",event:t,event_slug:a.e_id||"",ids:a.pixelIds||c.openai.pixelIds,data:i,url:window.location.href,eventID:o,ajax_event:c.ajax_event};a.hasOwnProperty("woo_order")&&(e.woo_order=a.woo_order),a.hasOwnProperty("edd_order")&&(e.edd_order=a.edd_order),a.hasOwnProperty("order_key")&&a.order_key&&(e.order_key=a.order_key),setTimeout(function(){R.sendServerAjaxRequest(c.ajaxUrl,e)},"page_viewed"===t?500:0)}}}function p(){return c.openai&&c.openai.opt_out||c.gdpr&&c.gdpr.consent_magic_integration_enabled&&"undefined"!=typeof CS_Data&&R.csModeEnabled(CS_Data.cs_openai_opt_out_mode)}let n={contents:["type","amount","currency","contents"],custom:["type","plan_id","amount","currency","contents"],customer_action:["type","amount","currency"],plan_enrollment:["type","plan_id","amount","currency","contents"]},o=["id","name","content_type","quantity","amount","currency"];function i(e){var e="string"==typeof e?Number(e.trim()):e;return"number"==typeof e&&isFinite(e)?Math.round(e):null}function r(e){return"string"==typeof e&&/^[A-Za-z]{3}$/.test(e)?e:null}function u(e){return"string"==typeof e?""===e?null:e:"number"==typeof e&&isFinite(e)?String(e):null}function m(a,e){if(!a||"object"!=typeof a||Array.isArray(a))return null;let n={};return o.forEach(function(e){var t,t,t;null!=a[e]&&""!==a[e]&&("quantity"===e||"amount"===e?null!==(t=i(a[e]))&&(n[e]=t):"currency"===e?null!==(t=r(a.currency))&&(n.currency=t):null!==(t=u(a[e]))&&(n[e]=t))}),!n.hasOwnProperty("amount")||n.hasOwnProperty("currency")||e||delete n.amount,Object.keys(n).length?n:null}function f(t){if(!t||"object"!=typeof t)return{};var e=n[t.type],e,e,e,e;if(!e)return t;let a={};return e.forEach(function(e){null!=t[e]&&""!==t[e]&&(a[e]=t[e])}),a.hasOwnProperty("plan_id")&&(null===(e=u(a.plan_id))?delete a.plan_id:a.plan_id=e),a.hasOwnProperty("currency")&&(null===(e=r(a.currency))?delete a.currency:a.currency=e),a.hasOwnProperty("amount")&&(null!==(e=i(a.amount))&&a.hasOwnProperty("currency")?a.amount=e:delete a.amount),a.hasOwnProperty("contents")&&((e=Array.isArray(a.contents)?a.contents.map(function(e){return m(e,a.hasOwnProperty("currency"))}).filter(function(e){return null!==e}):[]).length?a.contents=e:delete a.contents),a}function a(n,o){if(("function"!=typeof window.pys_event_data_filter||!window.pys_disable_event_filter(n,"openai"))&&"function"==typeof window.oaiq){var i=(o&&o.pixelIds&&o.pixelIds.length?o:c.openai).pixelIds;if(i&&0!==i.length){var r=o.params&&o.params.data?R.clone(o.params.data):{};let t={},e=R.generateUniqueId(o),a=(e&&(t.event_id=e),o.params&&o.params.custom_event_name&&(t.custom_event_name=o.params.custom_event_name),l(n,o,r,e),f(r));p()&&(t.opt_out=!0),c.debug&&console.log("[OpenAI] "+n,a,t,"pixel_ids",i),i.forEac
24h(function(e){oaiq("measureSingle",e,n,a,t)});var o=new CustomEvent("openai_event_sent",{detail:{eventName:n,data:r,options:t,pixel_ids:i}});window.dispatchEvent(o)}}}function g(){return!t&&!c.dynamicDataApplied&&c.dynamicDataUrl}let y=["email_sha256","phone_number_sha256","external_id_sha256","first_name_sha256","last_name_sha256","country","city","region","postal_code"];function v(){let t;try{t=R.getAdvancedFormData()||{}}catch(e){t={}}let a="string"==typeof t.phone?t.phone.trim().replace(/[\s().-]+/g,""):"";if(/^\+?[0-9]+$/.test(a)&&0!==a.indexOf("+0")){var n=0===a.indexOf("+")||0===a.indexOf("00");let e=a.replace(/^\+?0*/,"");n&&0===e.indexOf("1")&&11!==e.length&&(e=""),a=/^[1-9][0-9]{7,14}$/.test(e)?e:""}else a="";var n=function(e){var e;return!("string"!=typeof e||1024<e.length)&&(e=e.replace(/[!-\/:-@\[-`{-~\s]+/g,"").toLowerCase(),/\D/u.test(e))?e:""};return{email:R.AdvancedMatching.normalizeEmail(t.email||""),phone:a,first_name:n(t.first_name||""),last_name:n(t.last_name||"")}}function h(){let n={};if(c.openai.hasOwnProperty("advanced_matching")){let a=c.openai.advanced_matching;y.forEach(function(e){var t=a[e];"string"==typeof t&&0<t.length&&(n[e]=t)})}R.AdvancedMatching.merge(n,{email_sha256:{field:"email",hash:!0},phone_number_sha256:{field:"phone",hash:!0},first_name_sha256:{field:"first_name",hash:!0},last_name_sha256:{field:"last_name",hash:!0}},v());var e=c.send_external_id&&!(c.gdpr&&c.gdpr.externalID_disabled_by_api)&&!(c.cookie&&(c.cookie.disabled_all_cookie||c.cookie.externalID_disabled_by_api));return!n.hasOwnProperty("external_id_sha256")&&e&&"function"==typeof sha256&&Cookies.get("pbid")&&(n.external_id_sha256=sha256(Cookies.get("pbid"))),n}return{tag:function(){return"openai"},isEnabled:function(){return c.hasOwnProperty("openai")},disable:function(){s=!1,"function"==typeof window.oaiq&&oaiq("consent",!1)},loadPixel:function(){if(!s&&this.isEnabled()&&R.consentGiven("openai")){var e=c.openai.pixelIds,a,n,o,i,r;if(e&&0!==e.length)if(g())null===_&&(_=setTimeout(function(){t=!0,window.pys&&window.pys.OpenAI&&window.pys.OpenAI.loadPixel()},3e3));else{null!==_&&(clearTimeout(_),_=null),a=window,n=document,o="script",i="https://bzrcdn.openai.com/sdk/oaiq.min.js",a.oaiq||((r=function(){r.q.push(arguments)}).q=[],a.oaiq=r,(a=n.createElement(o)).async=!0,a.src=i,(i=n.getElementsByTagName(o)[0]).parentNode.insertBefore(a,i));let t=h();0<Object.keys(t).length&&(d=JSON.stringify(t)),e.forEach(function(e){var e={pixelId:e};c.openai.debug&&(e.debug=!0),0<Object.keys(t).length&&(e.user=t),oaiq("init",e)}),oaiq("consent",!0),s=!0,R.fireStaticEvents("openai")}}},refreshAdvancedMatching:function(){if(s&&this.isEnabled()&&"function"==typeof window.oaiq){let t=h();var e,a;0!==Object.keys(t).length&&(e=JSON.stringify(t))!==d&&(d=e,(c.openai.pixelIds||[]).forEach(function(e){oaiq("init",{pixelId:e,user:t})}))}},fireEvent:function(e,t){return!(!s||!this.isEnabled()||(a(e,t),0))},onWooAddToCartOnButtonEvent:function(e){var e,t;c.dynamicEvents.woo_add_to_cart_on_button_click.hasOwnProperty(this.tag())&&window.pysWooProductData&&window.pysWooProductData.hasOwnProperty(e)&&window.pysWooProductData[e].hasOwnProperty(this.tag())&&(e=window.pysWooProductData[e][this.tag()],t=R.clone(c.dynamicEvents.woo_add_to_cart_on_button_click[this.tag()]),R.copyProperties(e.params,t.params),e.hasOwnProperty("pixelIds")&&(t.pixelIds=e.pixelIds),this.fireEvent(t.name,t))},onWooAddToCartOnSingleEvent:function(e,t,a,n,o){var i;c.dynamicEvents.woo_add_to_cart_on_button_click.hasOwnProperty(this.tag())&&window.pysWooProductData&&window.pysWooProductData.hasOwnProperty(e)&&window.pysWooProductData[e].hasOwnProperty(this.tag())&&(i=R.clone(c.dynamicEvents.woo_add_to_cart_on_button_click[this.tag()]),R.copyProperties(window.pysWooProductData[e][this.tag()].params,i.params),t&&i.params&&i.params.data&&Array.isArray(i.params.data.contents)&&i.params.data.contents.forEach(function(e){e.quantity=t}),this.fireEvent(i.name,i))},onEddAddToCartOnButtonEvent:function(e,t,a){var t,n;c.dynamicEvents.edd_add_to_cart_on_button_click.hasOwnProperty(this.tag())&&window.pysEddProductData&&window.pysEddProductData.hasOwnProperty(e)&&window.pysEddProductData[e].hasOwnProperty(t=t?e+"_"+t:e)&&window.pysEddProductData[e][t].hasOwnProperty(this.tag())&&(n=R.clone(c.dynamicEvents.edd_add_to_cart_on_button_click[this.tag()]),R.copyProperties(window.pysEddProductData[e][t][this.tag()].params,n.params),a&&n.params&&n.params.data&&Array.isArray(n.params.data.contents)&&n.params.data.contents.forEac
24h(function(e){e.quantity=a}),this.fireEvent(n.name,n))}}})(v=f=p),w=function e(t){switch(t){case"facebook":return window.pys.Facebook;case"ga":return window.pys.Analytics;case"gtm":return window.pys.GTM;case"bing":return window.pys.Bing;case"pinterest":return window.pys.Pinterest;case"reddit":return window.pys.Reddit;case"openai":return window.pys.OpenAI}};function k(){if(0<D("#pys_late_event").length){var e=D("#pys_late_event").attr("dir");if(e)try{var t=JSON.parse(e)}catch(e){console.warn("Invalid JSON in pys_late_event dir attribute:",e)}else console.warn("pys_late_event dir attribute is undefined or empty");if(t)for(var a in t){var n={};n[t[a].e_id]=[t[a]],p.staticEvents.hasOwnProperty(a)?Object.assign(p.staticEvents[a],n):p.staticEvents[a]=n}}var c=R.setupPinterestObject(),_=R.setupBingObject(),l=R.setupRedditObject(),e=(p.hasOwnProperty("cookie")&&((p.cookie.externalID_disabled_by_api||p.cookie.disabled_all_cookie)&&Cookies.remove("pbid",{path:"/",domain:x()}),(p.cookie.disabled_advanced_form_data_cookie||p.cookie.disabled_all_cookie)&&(Cookies.remove("pys_advanced_form_data",{path:"/",domain:x()}),Cookies.remove("pys_advanced_form_data",{path:"/",domain:""})),(p.cookie.disabled_landing_page_cookie||p.cookie.disabled_all_cookie)&&(Cookies.remove("pys_landing_page",{path:"/",domain:x()}),Cookies.remove("last_pys_landing_page",{path:"/",domain:x()})),(p.cookie.disabled_trafficsource_cookie||p.cookie.disabled_all_cookie)&&(Cookies.remove("pysTrafficSource",{path:"/",domain:x()}),Cookies.remove("last_pysTrafficSource",{path:"/",domain:x()})),(p.cookie.disabled_first_visit_cookie||p.cookie.disabled_all_cookie)&&Cookies.remove("pys_first_visit",{path:"/",domain:x()}),(p.cookie.disabled_utmTerms_cookie||p.cookie.disabled_all_cookie)&&(D.each(R.utmTerms,function(e,t){Cookies.remove("pys_"+t,{path:"/",domain:x()})}),D.each(R.utmTerms,function(e,t){Cookies.remove("last_pys_"+t,{path:"/",domain:x()})})),p.cookie.disabled_utmId_cookie||p.cookie.disabled_all_cookie)&&(D.each(R.utmId,function(e,t){Cookies.remove("pys_"+t,{path:"/",domain:x()})}),D.each(R.utmId,function(e,t){Cookies.remove("last_pys_"+t,{path:"/",domain:x()})})),!1),o,r,i,o,s;p.gdpr.cookie_law_info_integration_enabled&&void 0!==(o=Cookies.get("cookieyes-consent")??Cookies.get("viewed_cookie_policy"))&&(o===Cookies.get("cookieyes-consent")&&"yes"==getCookieYes("analytics")||o===Cookies.get("viewed_cookie_policy")&&"yes"==o)&&(R.manageCookies(),e=!0),e||(p.gdpr.consent_magic_integration_enabled&&"undefined"!=typeof CS_Data?CS_Data.cs_script_cat.pys!=CS_Data.cs_necessary_cat_id&&0!=CS_Data.cs_script_cat.pys&&"yes"!=Cookies.get("cs_enabled_cookie_term"+CS_Data.test_prefix+"_"+CS_Data.cs_script_cat.pys)||R.manageCookies():p.gdpr.cookie_law_info_integration_enabled||R.manageCookies()),R.setupGdprCallbacks(),p.dynamicEvents.hasOwnProperty("automatic_event_scroll")&&(r=function(){var e=D(document).height()-D(window).height(),t=!1;if(p.dynamicEvents.hasOwnProperty("automatic_event_scroll"))for(var a=Object.keys(p.dynamicEvents.automatic_event_scroll),n=0;n<a.length;n++){var o=R.clone(p.dynamicEvents.automatic_event_scroll[a[n]]),i;Math.round(e*o.scroll_percent/100)<D(window).scrollTop()&&("reddit"!==a[n]&&R.copyProperties(R.getRequestParam
24s(),o.params),w(a[n]).onPageScroll(o),t=!0)}t&&D(document).off("scroll",r)},D(document).on("scroll",r)),p.dynamicEvents.hasOwnProperty("automatic_event_time_on_page")&&(i=Object.keys(p.dynamicEvents.automatic_event_time_on_page),o=p.dynamicEvents.automatic_event_time_on_page[i[0]].time_on_page,setTimeout(function(){for(var e=0;e<i.length;e++){var t=R.clone(p.dynamicEvents.automatic_event_time_on_page[i[e]]);"reddit"!==i[e]&&R.copyProperties(R.getRequestParams(),t.params),w(i[e]).onTime(t)}},1e3*o)),p.dynamicEvents.hasOwnProperty("automatic_event_download")&&D(document).onFirst("click",'a, button, input[type="button"], input[type="submit"]',function(e){var t=D(this);if(p.dynamicEvents.hasOwnProperty("automatic_event_download")){var a=!1,n;if(t.is("a")){if("string"!=typeof(n=t.attr("href")))return;var n=n.trim(),o=R.getLinkExtension(n),i=!1;if(0<o.length&&p.dynamicEvents.hasOwnProperty("automatic_event_download"))for(var r=Object.keys(p.dynamicEvents.automatic_event_download),s=0;s<r.length;s++){var d=R.clone(p.dynamicEvents.automatic_event_download[r[s]]),c;d.extensions.includes(o)&&("tiktok"==r[s]||"reddit"==r[s]?w(r[s]).fireEvent(tikEvent.name,d):(p.enable_remove_download_url_param&&(n=I(n)),d.params.download_url=n,d.params.download_type=o,d.params.download_name=R.getLinkFilename(n),w(r[s]).onDownloadEvent(d)),a=!0)}}}}),D.each(p.triggerEventTypes,function(a,e){D.each(e,function(e,t){switch(a){case"url_click":break;case"css_click":R.setupCSSClickEvents(e,t);break;case"css_mouseover":R.setupMouseOverClickEvents(e,t);break;case"scroll_pos":R.setupScrollPosEvents(e,t);break;case"comment":R.setupCommentEvents(e,t)}})}),p.woo.enabled&&(p.dynamicEvents.hasOwnProperty("woo_add_to_cart_on_button_click")&&p.woo.hasOwnProperty("addToCartCatchMethod")&&"add_cart_js"===p.woo.addToCartCatchMethod&&(D(".add_to_cart_button:not(.product_type_variable,.product_type_bundle,.single_add_to_cart_button)").on("click",function(e){var t=D(this).data("product_id"),a;void 0!==t&&(p.dynamicEvents.hasOwnProperty("woo_add_to_cart_on_button_click")&&(a=pys_generate_token(),D.each(p.dynamicEvents.woo_add_to_cart_on_button_click,function(e,t){t.eventID=a;var t=t.hasOwnProperty("custom_event_post_id")?t.custom_event_post_id:t.e_id;S[t]=a})),void 0!==t)&&(F.onWooAddToCartOnButtonEvent(t),W.onWooAddToCartOnButtonEvent(t),U.onWooAddToCartOnButtonEvent(t),c.onWooAddToCartOnButtonEvent(t),_.onWooAddToCartOnButtonEvent(t),l.onWooAddToCartOnButtonEvent(t),M.onWooAddToCartOnButtonEvent(t))}),D("body").onFirst("click","button.single_add_to_cart_button,.single_add_to_cart_button",function(e){var t=D(this),t,a,n,o,n,i,i,r;t.hasClass("disabled")||(t=t.closest("form"),a=R.PRODUCT_SIMPLE,0!==t.length&&(t.hasClass("variations_form")?a=R.PRODUCT_VARIABLE:t.hasClass("bundle_form")?a=R.PRODUCT_BUNDLE:t.hasClass("grouped_form")&&(a=R.PRODUCT_GROUPED),a===R.PRODUCT_GROUPED?(o=1,n=parseInt(t.find('*[name="add-to-cart"]').val())):o=(R.PRODUCT_VARIABLE,n=parseInt(t.find('*[name="add-to-cart"]').val()),(i=t.find('input[name="quantity"]')).length<=0&&(i=t.find('select[name="quantity"]')),parseInt(i.val())),p.dynamicEvents.hasOwnProperty("woo_add_to_cart_on_button_click")&&(r=pys_generate_token(),D.each(p.dynamicEvents.woo_add_to_cart_on_button_click,function(e,t){t.eventID=r;var t=t.hasOwnProperty("custom_event_post_id")?t.custom_event_post_id:t.e_id;S[t]=r})),F.onWooAddToCartOnSingleEvent(n,o,a,t),W.onWooAddToCartOnSingleEvent(n,o,a,t),U.onWooAddToCartOnSingleEvent(n,o,a,t),c.onWooAddToCartOnSingleEvent(n,o,a,!1,t),_.onWooAddToCartOnSingleEvent(n,o,a,!1,t),l.onWooAddToCartOnSingleEvent(n,o,a,!1,t),M.onWooAddToCartOnSingleEvent(n,o,a,!1,t)))})),p.dynamicEvents.hasOwnProperty("woo_remove_from_cart"))&&D("body").on("click",p.woo.removeFromCartSelector,function(e){var t,e=D(e.currentTarget).attr("href"),a,e=new RegExp("[\\?&]remove_item=([^&#]*)").exec(e),e,e;null!==e&&(e=e[1],p.dynamicEvents.woo_remove_from_cart.hasOwnProperty(e))&&(e=p.dynamicEvents.woo_remove_from_cart[e],R.fireEventForAllPixel("onWooRemoveFromCartEvent",e))}),p.edd.enabled&&(p.dynamicEvents.hasOwnProperty("edd_add_to_cart_on_button_click")&&D("form.edd_download_purchase_form .edd-add-to-cart").on("click",function(e){var t=D(this),a=t.closest("form"),n=t.data("variablePrice"),o=t.data("priceMode"),i=[],r=[],s,d;"yes"===n&&"multi"===o?(d=a.find('input[name="download_id"]').val(),D.each(a.find('input[name="edd_options[price_id][]"]:checked'),function(e,t){i.push(d+"_"+D(t).val())}),D.each(i,function(e,t){var t=t.split("_",2);s=a.find('input[name="edd_download_quantity_'+t[1]+'"]').val(),r.push(void 0!==s?s:1)})):(s=("yes"===n&&"single"===o?(d=a.find('input[name="download_id"]').val(),i.push(d+"_"+a.find('input[name="edd_options[price_id][]"]:checked').val())):i.push(t.data("downloadId")),a.find('input[name="edd_download_quantity"]').val()),r.push(void 0!==s?s:1)),D.each(i,function(e,t){var e=parseInt(r[e]),a=t.toString().split("_",2),n;2===a.length&&(t=a[0],n=a[1]),F.onEddAddToCartOnButtonEvent(t,n,e),W.onEddAddToCartOnButtonEvent(t,n,e),U.onEddAddToCartOnButtonEvent(t,n,e),c.onEddAddToCartOnButtonEvent(t,n,e),_.onEddAddToCartOnButtonEvent(t,n,e),l.onEddAddToCartOnButtonEvent(t,n,e),M.onEddAddToCartOnButtonEvent(t,n,e)})}),p.dynamicEvents.hasOwnProperty("edd_remove_from_cart"))&&D("form#edd_checkout_cart_form .edd_cart_remove_item_btn").on("click",function(e){var t=D(this).attr("href"),t,t;t&&(t=t.substring(t.indexOf("=")+1).charAt(0),p.dynamicEvents.edd_remove_from_cart.hasOwnProperty(t))&&(t=p.dynamicEvents.edd_remove_from_cart[t],R.fireEventForAllPixel("onEddRemoveFromCartEvent",t))}
24),p.dynamicEvents.hasOwnProperty("automatic_event_comment")&&D("form.comment-form").on("submit",function(){if(p.dynamicEvents.hasOwnProperty("automatic_event_comment"))for(var e=Object.keys(p.dynamicEvents.automatic_event_comment),t=0;t<e.length;t++){var a=R.clone(p.dynamicEvents.automatic_event_comment[e[t]]);"reddit"!==e[t]&&R.copyProperties(R.getRequestParams(),a.params),w(e[t]).onCommentEvent(a)}}),p.dynamicEvents.hasOwnProperty("automatic_event_form")&&(D(document).onFirst("submit","form",function(e){var t=D(this),a=t.attr("class")||"",n=(t.attr("role")||"").toLowerCase(),o=t.attr("id");if(!(t.hasClass("comment-form")||t.hasClass("search-form")||t.hasClass("woocommerce-ordering")||a.toLowerCase().includes("search")||a.toLowerCase().includes("add-to-cart")||"search"===n||"adminbarsearch"===o||t.hasClass("woocommerce-product-search")||t.hasClass("cart")||t.hasClass("woocommerce-cart-form")||t.hasClass("woocommerce-shipping-calculator")||t.hasClass("checkout")||t.hasClass("checkout_coupon")||t.hasClass("edd_form")||t.hasClass("edd_download_purchase_form")||t.hasClass("wpcf7-form")||t.hasClass("forminator-custom-form")||t.hasClass("forminator_ajax")||t.hasClass("wpforms-form")||t.hasClass("wpforms-ajax-form")||t.parent().hasClass("nf-form-layout")||t.hasClass("frm-fluent-form")||p.enable_success_send_form)){var i={form_id:t.attr("id"),form_class:t.attr("class"),text:t.find('[type="submit"]').is("input")?t.find('[type="submit"]').val():t.find('[type="submit"]').text()};if(p.dynamicEvents.hasOwnProperty("automatic_event_form"))for(var r=Object.keys(p.dynamicEvents.automatic_event_form),s=0;s<r.length;s++){var d=R.clone(p.dynamicEvents.automatic_event_form[r[s]]);"tiktok"===r[s]||"reddit"===r[s]?w(r[s]).fireEvent(d.name,d):(R.copyProperties(i,d.params),R.copyProperties(R.getRequestParam
24s(),d.params),w(r[s]).onFormEvent(d))}}}),document.addEventListener("wpcf7mailsent",function(e){var t=e.detail.contactFormId;C(D(e.target),t)},!1),D(document).on("forminator:form:submit:success",function(e){var t=D(e.target).find('input[name="form_id"]').val();C(D(e.target),t)}),D("form.wpforms-form").on("wpformsAjaxSubmitSuccess",e=>{var t=D(e.target).attr("data-formid");C(D(e.target),t)}),D(document).on("frmFormComplete",function(e,t,a){var t=D(t).find('input[name="form_id"]').val();C(D(e.target),t)}),D(document).onFirst("nfFormSubmitResponse",function(e,t){var t=t.response.data.form_id;C(D(e.target),t)}),D("form.frm-fluent-form").each(function(){var e;D(this).on("fluentform_submission_success",function(e){var t,a=D(this).attr("data-form_id");C(D(e.target),a)})})),R.loadPixels(),R.isCheckoutPage()&&R.addCheckoutFields()}window.pys=window.pys||{},window.pys.Facebook=F,window.pys.Analytics=W,window.pys.GTM=U,window.pys.OpenAI=M,window.pys.Utils=R,window.pys.getPixelBySlag=w,window.pys.setEventUniqueId=function(e,t){S[e]=t},window.getPixelBySlag=w,D(document).ready(function(){p.dynamicDataUrl?fetch(p.dynamicDataUrl,{method:"GET",credentials:"same-origin",cache:"no-store",headers:{Accept:"application/json"}}).then(function(e){return e.ok?e.json():Promise.reject(e.status)}).then(function(e){if(p.ajax_event=e.ajax_event,p.cache_bypass=e.cache_bypass,p.tracking_analytics=e.tracking_analytics,e.gdpr_dynamic&&p.gdpr&&(Object.assign(p.gdpr,e.gdpr_dynamic),null!==e.gdpr_dynamic.analytics_storage_value&&(p.gdpr.analytics_storage.value=e.gdpr_dynamic.analytics_storage_value),null!==e.gdpr_dynamic.ad_storage_value&&(p.gdpr.ad_storage.value=e.gdpr_dynamic.ad_storage_value),null!==e.gdpr_dynamic.ad_user_data_value&&(p.gdpr.ad_user_data.value=e.gdpr_dynamic.ad_user_data_value),null!==e.gdpr_dynamic.ad_personalization_value)&&(p.gdpr.ad_personalization.value=e.gdpr_dynamic.ad_personalization_value),p.cookie=e.cookie,e.pixels)for(var t in e.pixels)if(e.pixels.hasOwnProperty(t)&&p[t])for(var a in e.pixels[t]){var n;e.pixels[t].hasOwnProperty(a)&&((n=p[t][a])&&0!==Object.keys(n).length||(p[t][a]=e.pixels[t][a]))}p.dynamicDataApplied=!0,window.pys&&window.pys.OpenAI&&"function"==typeof window.pys.OpenAI.refreshAdvancedMatching&&window.pys.OpenAI.refreshAdvancedMatching(),k()}).catch(function(e){p.debug&&console.warn("[PYS] dynamic-options fetch failed:",e),p.dynamicDataApplied=!0,k()}):k()});var C=function(e,t){var a={form_id:t,text:e.find('[type="submit"]').is("input")?e.find('[type="submit"]').val():(""!=e.find(".forminator-button-submit").text()?e.find(".forminator-button-submit"):e.find('[type="submit"]')).text()};if(p.dynamicEvents.hasOwnProperty("automatic_event_form"))for(var n=Object.keys(p.dynamicEvents.automatic_event_form),o=0;o<n.length;o++){var i=p.dynamicEvents.automatic_event_form[n[o]];"tiktok"===n[o]||"reddit"===n[o]?w(n[o]).fireEvent(i.name,i):(R.copyProperties(a,i.params),R.copyProperties(R.getRequestParam
24s(),i.params),w(n[o]).onFormEvent(i))}}})(jQuery,pysOptions);
25(t=>{t(function(){var e=navigator.userAgent,a,i=e.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))/i)||[],o="",r="";switch(/trident/i.test(i[0])?o="ie":"Chrome"===i[0]&&null!==(a=e.match(/\b(OPR|Edge)/))&&(o=a[0].replace("OPR","opera")),o=(o=""===o?"standalone"in window.navigator&&!window.navigator.standalone?"uiwebview":i[0]&&""!==i[0]?i[0]:navigator.appName:o).toLowerCase()){case"msie":r="ie";break;case"firefox":r="gecko";break;default:r=o}e.match(/iPhone/)&&(r+=" iphone"),t("body").addClass(r)})})(jQuery);
26(()=>{function o(e,t){return(e=>{if(Array.isArray(e))return e})(e)||((e,t)=>{var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}})(e,t)||((e,t)=>{var r;if(e)return"string"==typeof e?n(e,t):"Map"===(r="Object"===(r={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0})(e,t)||(()=>{throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function i(e){return e.pathname.split("/").filter(Boolean)}function a(e){return(e||"").toLowerCase()}let e=[{type:"phone",schemes:["tel:"]},{type:"email",schemes:["mailto:"]},{type:"sms",schemes:["sms:","smsto:"]},{type:"whatsapp",schemes:["whatsapp:"],hosts:["wa.me","api.whatsapp.com","web.whatsapp.com"],hasRecipient:e=>{var t,r,t;return"wa.me"===e.hostname?(r=(t=o(i(e),2))[0],t=t[1],/^\d+$/.test(r||"")||["message","qr"].includes(a(r))&&!!t):!!e.searchParams.get("phone")}},{type:"messenger",schemes:["fb-messenger:"],hosts:["m.me","messenger.com"],hasRecipient:e=>{var t,r,t;return"m.me"===e.hostname?0<i(e).length:"messenger.com"===e.hostname?(r=(t=o(i(e),2))[0],t=t[1],"t"===a(r)&&!!t):["user-thread","user"].includes(e.hostname)}},{type:"telegram",schemes:["tg:"],hosts:["t.me","telegram.me"],hasRecipient:e=>{var e;return"tg:"===e.protocol?"resolve"===e.hostname&&!!e.searchParams.get("domain"):!!(e=o(i(e),1)[0])&&!e.startsWith("+")&&!["share","joinchat","addstickers","proxy"].includes(a(e))}},{type:"viber",schemes:["viber:"],hasRecipient:e=>["chat","add","pa"].includes(e.hostname)},{type:"signal",schemes:["sgnl:"],hosts:["signal.me"],hasRecipient:e=>"sgnl:"===e.protocol||e.hash.startsWith("#p/")&&3<e.hash.length},{type:"line",schemes:["line:"],hosts:["line.me","page.line.me"],hasRecipient:e=>{var e,e,t,r,n,e;return"page.line.me"===e.hostname?0<i(e).length:(t=(e=o("r"===a((e="line:"===e.protocol?[e.hostname,...i(e)]:i(e))[0])?e.slice(1):e,4))[0],r=e[1],n=e[2],e=e[3],"ti"===a(t)&&"p"===a(r)&&!!n&&!e)}}],u=Object.create(null),p=Object.create(null),h=(e.forEach(t=>{var e,e;null!=(e=t.schemes)&&e.forEach(e=>{u[e]=t}),null!=(e=t.hosts)&&e.forEach(e=>{p[e]=t})}),["sponsored","ugc","nofollow"]);function l(t,e){var r=Object.keys(t),n;return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function m(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach(function(e){c(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function c(e,t,r){var n;(t="symbol"==typeof(n=(e=>{if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive],t;if(void 0===t)return String(e);if("object"!=typeof(t=t.call(e,"string")))return t;throw new TypeError("@@toPrimitive must return a primitive value.")})(n=t))?n:n+"")in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function f(e){return"http:"===e.protocol||"https:"===e.protocol?{transport_type:"beacon"}:{}}let s="a.post-page-numbers";function y(e){var t;try{let r=new URL(e.href);for(let t of["page","paged"]){let e=parseInt(r.searchParams.get(t)||"",10);if(0<e)return e}
26let t=r.pathname.split("/").filter(Boolean).pop()||"";if(/^\d+$/.test(t)){let e=parseInt(t,10);if(0<e)return e}}catch(e){}let r=parseInt((null==(t=e.textContent)?void 0:t.trim())||"",10);return 0<r?r:1}let g="https://player.vimeo.com/api/player.js",b="data-googlesitekit-vimeo-sdk";function d(){return globalThis.Vimeo}function v(o,i){return new Promise((e,t)=>{let r;function n(e){return function(){clearTimeout(r),e(...arguments)}}o.addEventListener("load",n(()=>e()),{once:!0}),o.addEventListener("error",n(()=>t(new Error("Site Kit: failed to load the Vimeo Player SDK script."))),{once:!0}),void 0!==i&&(r=setTimeout(n(()=>t(new Error("Site Kit: timed out waiting for the Vimeo Player SDK script to load."))),i))})}let w=null;function O(t,e){var r=Object.keys(t),n;return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function j(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?O(Object(r),!0).forEach(function(e){P(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function P(e,t,r){var n;(t="symbol"==typeof(n=(e=>{if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive],t;if(void 0===t)return String(e);if("object"!=typeof(t=t.call(e,"string")))return t;throw new TypeError("@@toPrimitive must return a primitive value.")})(n=t))?n:n+"")in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}let k=[10,25,50,75];function E(t,e){var r=Object.keys(t),n;return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function _(e,t,r){var n;(t="symbol"==typeof(n=(e=>{if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive],t;if(void 0===t)return String(e);if("object"!=typeof(t=t.call(e,"string")))return t;throw new TypeError("@@toPrimitive must return a primitive value.")})(n=t))?n:n+"")in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function t(){var e;return function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?E(Object(r),!0).forEach(function(e){_(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({postID:0,isSinglePost:!1,hasVimeoEmbed:!1},(null==(e=globalThis._googlesitekit)?void 0:e.contentEvents)||{})}(async e=>{if(e.hasVimeoEmbed){var t=globalThis.document.querySelectorAll('iframe[src*="player.vimeo.com"]'),r;if(t.length)try{let c=await("function"==typeof(null==(r=d())?void 0:r.Player)?Promise.resolve(r.Player):w=w||(async()=>{var e=globalThis.document.querySelector('script[src^="'.concat(g,'"]')),e,t;e&&!e.hasAttribute(b)?await v(e,1e4):(null!=e&&e.remove(),(e=globalThis.document.createElement("script")).src=g,e.setAttribute(b,""),t=v(e),globalThis.document.head.appendChild(e),await t)})().then(()=>{var e,e=null==(e=d())?void 0:e.Player;if("function"!=typeof e)throw new Error("Site Kit: the Vimeo Player SDK script did not expose Vimeo.Player.");return e}).catch(e=>{throw w=null,e}));await Promise.allSettled(Array.from(t).map(async(o,i)=>{{var o=new c(o),a=i;let e=Promise.all([o.getVideoTitle(),o.getVideoUrl()]).then(e=>{var e=(t=2,(e=>{if(Array.isArray(e))return e})(e=e)||((e,t)=>{var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,s=!1;try{for(i=(r=r.call(e)).next;!(c=(n=i.call(r)).done)&&(l.push(n.value),2!==l.length);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}})(e,2)||((e,t)=>{var r;if(e)return"string"==typeof e?S(e,2):"Map"===(r="Object"===(r={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?S(e,2):void 0})(e,2)||(()=>
26{throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()),e,t;return{video_provider:"vimeo",video_title:e[0],video_url:e[1],video_instance_index:a}});function l(n,o){e.then(e=>{var t,r;null!=(t=globalThis._googlesitekit)&&null!=(r=t.gtagEvent)&&r.call(t,n,j(j({},e),{},{video_percent:o}))}).catch(()=>{})}e.catch(e=>{console.error("Site Kit: failed to fetch this Vimeo video’s title/URL; its engagement events will not be tracked.",e)});let t=!1,r=!1,n=new Set;o.on("play",()=>{t||(t=!0,l("video_start",0))}),o.on("timeupdate",e=>{if(n.size!==k.length){let t=Math.floor(100*e.percent);k.forEach(e=>{t>=e&&!n.has(e)&&(n.add(e),l("video_progress",e))})}}),o.on("ended",()=>{r||(r=!0,l("video_complete",100))}),await e}}))}catch(e){console.error("Site Kit: failed to load the Vimeo Player SDK; video engagement events will not be tracked on this page.",e)}}})(t());try{T=t(),globalThis.document.addEventListener("click",e=>{try{var t,r,n,o;e.target instanceof Element&&(n=e.target.closest("".concat(s,", ").concat("body.single-topic .bbp-pagination-links a.page-numbers")))&&(o=n.matches(s)?"post":"bbpress",null!=(t=globalThis._googlesitekit))&&null!=(r=t.gtagEvent)&&r.call(t,"pagination_click",{pagination_type:o,page_number:y(n),post_id:T.postID,transport_type:"beacon"})}catch(e){console.error("Site Kit: failed to track this pagination click.",e)}})}catch(o){console.error("Site Kit: failed to initialize pagination click tracking.",o)}var T;try{globalThis.document.addEventListener("click",e=>{try{if(e.target instanceof Element){var r=e.target.closest("a[href]");if(r){let t;try{t=new URL(r.href)}catch(e){return}var n=(c=t,c=new URL(c),s="http:"===c.protocol||"https:"===c.protocol,c.hostname=s?c.hostname.replace(/^www\./,""):c.hostname.toLowerCase(),(s=s?p[c.hostname]:u[c.protocol])&&(!s.hasRecipient||s.hasRecipient(c))?s.type:null),o,i,a,l;if(n){null!=(o=globalThis._googlesitekit)&&null!=(i=o.gtagEvent)&&i.call(o,"contact_link_click",m({link_type:n},f(t)))}else{let e=((e,t)=>{if("http:"!==t.protocol&&"https:"!==t.protocol||t.hostname===globalThis.location.hostname)return null;let r=new Set((e.getAttribute("rel")||"").toLowerCase().split(/[\s,]+/).filter(Boolean));return h.filter(e=>r.has(e)).join(" ")||null})(r,t);!e||null!=(a=globalThis._googlesitekit)&&null!=(l=a.gtagEvent)&&l.call(a,"outbound_link_click",m({link_rel:e,link_url:t.href,link_domain:t.hostname},f(t)))}}}}catch(e){console.error("Site Kit: failed to track this link click.",e)}var c,s})}catch(o){console.error("Site Kit: failed to initialize link click tracking.",o)}})();
27!function(){var e={6879:function(e){!function(t){var i=function(e,t,i){"use strict";var n,r;if(function(){var t,i={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(t in r=e.lazySizesConfig||e.lazysizesConfig||{},i)t in r||(r[t]=i[t])}(),!t||!t.getElementsByClassName)return{init:function(){},cfg:r,noSupport:!0};var a=t.documentElement,o=e.HTMLPictureElement,s="addEventListener",u="getAttribute",l=e[s].bind(e),c=e.setTimeout,d=e.requestAnimationFrame||c,f=e.requestIdleCallback,v=/^picture$/i,h=["load","error","lazyincluded","_lazyloaded"],y={},m=Array.prototype.forEach,g=function(e,t){return y[t]||(y[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")),y[t].test(e[u]("class")||"")&&y[t]},p=function(e,t){g(e,t)||e.setAttribute("class",(e[u]("class")||"").trim()+" "+t)},b=function(e,t){var i;(i=g(e,t))&&e.setAttribute("class",(e[u]("class")||"").replace(i," "))},z=function(e,t,i){var n=i?s:"removeEventListener";i&&z(e,t),h.forEach(function(i){e[n](i,t)})},S=function(e,i,r,a,o){var s=t.createEvent("Event");return r||(r={}),r.instance=n,s.initEvent(i,!a,!o),s.detail=r,e.dispatchEvent(s),s},w=function(t,i){var n;!o&&(n=e.picturefill||r.pf)?(i&&i.src&&!t[u]("srcset")&&t.setAttribute("srcset",i.src),n({reevaluate:!0,elements:[t]})):i&&i.src&&(t.src=i.src)},A=function(e,t){return(getComputedStyle(e,null)||{})[t]},E=function(e,t,i){for(i=i||e.offsetWidth;i<r.minSize&&t&&!e._lazysizesWidth;)i=t.offsetWidth,t=t.parentNode;return i},k=(pe=[],be=[],ze=pe,Se=function(){var e=ze;for(ze=pe.length?be:pe,me=!0,ge=!1;e.length;)e.shift()();me=!1},we=function(e,i){me&&!i?e.apply(this,arguments):(ze.push(e),ge||(ge=!0,(t.hidden?c:d)(Se)))},we._lsFlush=Se,we),C=function(e,t){return t?function(){k(e)}:function(){var t=this,i=arguments;k(function(){e.apply(t,i)})}},R=function(e){var t,n=0,a=r.throttleDelay,o=r.ricTimeout,s=function(){t=!1,n=i.now(),e()},u=f&&o>49?function(){f(s,{timeout:o}),o!==r.ricTimeout&&(o=r.ricTimeout)}:C(function(){c(s)},!0);return function(e){var r;(e=!0===e)&&(o=33),t||(t=!0,(r=a-(i.now()-n))<0&&(r=0),e||r<9?u():c(u,r))}},L=function(e){var t,n,r=99,a=function(){t=null,e()},o=function(){var e=i.now()-n;e<r?c(o,r-e):(f||a)(a)};return function(){n=i.now(),t||(t=c(o,r))}},M=(Q=/^img$/i,J=/^iframe$/i,K="onscroll"in e&&!/(gle|ing)bot/.test(navigator.userAgent),X=0,Y=0,Z=0,ee=-1,te=function(e){Z--,(!e||Z<0||!e.target)&&(Z=0)},ie=function(e){return null==H&&(H="hidden"==A(t.body,"visibility")),H||!("hidden"==A(e.parentNode,"visibility")&&"hidden"==A(e,"visibility"))},ne=function(e,i){var n,r=e,o=ie(e);for(U-=i,G+=i,q-=i,$+=i;o&&(r=r.offsetParent)&&r!=t.body&&r!=a;)(o=(A(r,"opacity")||1)>0)&&"visible"!=A(r,"overflow")&&(n=r.getBoundingClientRect(),o=$>n.left&&q<n.right&&G>n.top-1&&U<n.bottom+1);return o},re=function(){var e,i,o,s,l,c,d,f,v,h,y,m,g=n.elements;if((T=r.loadMode)&&Z<8&&(e=g.length)){for(i=0,ee++;i<e;i++)if(g[i]&&!g[i]._lazyRace)if(!K||n.prematureUnveil&&n.prematureUnveil(g[i]))fe(g[i]);else if((f=g[i][u]("data-expand"))&&(c=1*f)||(c=Y),h||(h=!r.expand||r.expand<1?a.clientHeight>500&&a.clientWidth>500?500:370:r.expand,n._defEx=h,y=h*r.expFactor,m=r.hFac,H=null,Y<y&&Z<1&&ee>2&&T>2&&!t.hidden?(Y=y,ee=0):Y=T>1&&ee>1&&Z<6?h:X),v!==c&&(j=innerWidth+c*m,B=innerHeight+c,d=-1*c,v=c),o=g[i].getBoundingClientRect(),(G=o.bottom)>=d&&(U=o.top)<=B&&($=o.right)>=d*m&&(q=o.left)<=j&&(G||$||q||U)&&(r.loadHidden||ie(g[i]))&&(D&&Z<3&&!f&&(T<3||ee<4)||ne(g[i],c))){if(fe(g[i]),l=!0,Z>9)break}else!l&&D&&!s&&Z<4&&ee<4&&T>
272&&(I[0]||r.preloadAfterLoad)&&(I[0]||!f&&(G||$||q||U||"auto"!=g[i][u](r.sizesAttr)))&&(s=I[0]||g[i]);s&&!l&&fe(s)}},ae=R(re),oe=function(e){var t=e.target;t._lazyCache?delete t._lazyCache:(te(e),p(t,r.loadedClass),b(t,r.loadingClass),z(t,ue),S(t,"lazyloaded"))},se=C(oe),ue=function(e){se({target:e.target})},le=function(e,t){var i=e.getAttribute("data-load-mode")||r.iframeLoadMode;0==i?e.contentWindow.location.replace(t):1==i&&(e.src=t)},ce=function(e){var t,i=e[u](r.srcsetAttr);(t=r.customMedia[e[u]("data-media")||e[u]("media")])&&e.setAttribute("media",t),i&&e.setAttribute("srcset",i)},de=C(function(e,t,i,n,a){var o,s,l,d,f,h;(f=S(e,"lazybeforeunveil",t)).defaultPrevented||(n&&(i?p(e,r.autosizesClass):e.setAttribute("sizes",n)),s=e[u](r.srcsetAttr),o=e[u](r.srcAttr),a&&(d=(l=e.parentNode)&&v.test(l.nodeName||"")),h=t.firesLoad||"src"in e&&(s||o||d),f={target:e},p(e,r.loadingClass),h&&(clearTimeout(V),V=c(te,2500),z(e,ue,!0)),d&&m.call(l.getElementsByTagName("source"),ce),s?e.setAttribute("srcset",s):o&&!d&&(J.test(e.nodeName)?le(e,o):e.src=o),a&&(s||d)&&w(e,{src:o})),e._lazyRace&&delete e._lazyRace,b(e,r.lazyClass),k(function(){var t=e.complete&&e.naturalWidth>1;h&&!t||(t&&p(e,r.fastLoadedClass),oe(f),e._lazyCache=!0,c(function(){"_lazyCache"in e&&delete e._lazyCache},9)),"lazy"==e.loading&&Z--},!0)}),fe=function(e){if(!e._lazyRace){var t,i=Q.test(e.nodeName),n=i&&(e[u](r.sizesAttr)||e[u]("sizes")),a="auto"==n;(!a&&D||!i||!e[u]("src")&&!e.srcset||e.complete||g(e,r.errorClass)||!g(e,r.lazyClass))&&(t=S(e,"lazyunveilread").detail,a&&O.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,Z++,de(e,t,a,n,i))}},ve=L(function(){r.loadMode=3,ae()}),he=function(){3==r.loadMode&&(r.loadMode=2),ve()},ye=function(){D||(i.now()-_<999?c(ye,999):(D=!0,r.loadMode=3,ae(),l("scroll",he,!0)))},{_:function(){_=i.now(),n.elements=t.getElementsByClassName(r.lazyClass),I=t.getElementsByClassName(r.lazyClass+" "+r.preloadClass),l("scroll",ae,!0),l("resize",ae,!0),l("pageshow",function(e){if(e.persisted){var i=t.querySelectorAll("."+r.loadingClass);i.length&&i.forEach&&d(function(){i.forEach(function(e){e.complete&&fe(e)})})}}),e.MutationObserver?new MutationObserver(ae).observe(a,{childList:!0,subtree:!0,attributes:!0}):(a[s]("DOMNodeInserted",ae,!0),a[s]("DOMAttrModified",ae,!0),setInterval(ae,999)),l("hashchange",ae,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(e){t[s](e,ae,!0)}),/d$|^c/.test(t.readyState)?ye():(l("load",ye),t[s]("DOMContentLoaded",ae),c(ye,2e4)),n.elements.length?(re(),k._lsFlush()):ae()},checkElems:ae,unveil:fe,_aLSL:he}),O=(F=C(function(e,t,i,n){var r,a,o;if(e._lazysizesWidth=n,n+="px",e.setAttribute("sizes",n),v.test(t.nodeName||""))for(a=0,o=(r=t.getElementsByTagName("source")).length;a<o;a++)r[a].setAttribute("sizes",n);i.detail.dataAttr||w(e,i.detail)}),x=function(e,t,i){var n,r=e.parentNode;r&&(i=E(e,r,i),(n=S(e,"lazybeforesizes",{width:i,dataAttr:!!t})).defaultPrevented||(i=n.detail.width)&&i!==e._lazysizesWidth&&F(e,r,n,i))},W=L(function(){var e,t=P.length;if(t)for(e=0;e<t;e++)x(P[e])}),{_:function(){P=t.getElementsByClassName(r.autosizesClass),l("resize",W)},checkElems:W,updateElem:x}),N=function(){!N.i&&t.getElementsByClassName&&(N.i=!0,O._(),M._())};var P,F,x,W;var I,D,V,T,_,j,B,U,q,$,G,H,Q,J,K,X,Y,Z,ee,te,ie,ne,re,ae,oe,se,ue,le,ce,de,fe,ve,he,ye;var me,ge,pe,be,ze,Se,we;return c(function(){r.init&&N()}),n={cfg:r,autoSizer:O,loader:M,init:N,uP:w,aC:p,rC:b,hC:g,fire:S,gW:E,rAF:k}}(t,t.document,Date);t.lazySizes=i,e.exports&&(e.exports=i)}("undefined"!=typeof window?window:{})}},t={};function i(n){var r=t[n];if(void 0!==r)return r.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,i),a.exports}i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},i.cw=function(e){var t;return function(){if(e){var i=e;e=0,t={exports:{}},i.call(t.exports,t,t.exports)}return t.exports}},i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.dn=function(e){var t=Object.getOwnPropertyDescriptor(e,"name");(!t||!t.writable&&t.configurable)&&Object.defineProperty(e,"name",{value:"default",configurable:!0})},function(){"use strict";var e=i.cw(function(e,i){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,r,a,o,s=[],u=!0,l=!1;try{if(a=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;u=!1}else for(;!(u=(n=a.call(i)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){l=!0,r=e}
27finally{try{if(!u&&null!=i.return&&(o=i.return(),Object(o)!==o))return}finally{if(l)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?a(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i<t;i++)n[i]=e[i];return n}function o(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,t||"default");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}t();var u="smushcdn.com",l="data-original-sizes",c="data-srcset",d=["gif","jpg","jpeg","png","webp"],f="w",v=function(){return e=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.precision,n=void 0===i?0:i,r=t.skipAutoWidth,a=void 0!==r&&r,o=t.cdnBaseURL,s=void 0===o?"":o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.precision=parseInt(n,10),this.precision=isNaN(this.precision)?0:this.precision,this.skipAutoWidth=a,this.cdnBaseURL="string"==typeof s?s.trim():"",this.initEventListeners()},i=[{key:"initEventListeners",value:function(){var e=this;document.addEventListener("lazybeforesizes",function(i){var n;(0,t().G)(null===(n=i.detail)||void 0===n?void 0:n.instance)&&e.maybeAutoResize(i)})}},{key:"maybeAutoResize",value:function(e){var t,i,n,r=e.target,a=null===(t=e.detail)||void 0===t?void 0:t.width;if("IMG"===(null==r?void 0:r.nodeName)&&a)if(null===(i=e.detail)||void 0===i?void 0:i.dataAttr){if(this.isElementEligibleForResizing(r))if(this.shouldRevertToOriginalSizes(r,a))this.revertToOriginalSizesIfNeeded(r)&&e.preventDefault();else{var o=this.triggerEvent(r,"smush:beforeSizes",{resizeWidth:a});if(o.defaultPrevented)this.revertToOriginalSizesIfNeeded(r)&&e.preventDefault();else{a=(null===(n=o.detail)||void 0===n?void 0:n.resizeWidth)||a;var s=this.getDataSrc(r);this.isFromSmushCDN(s)&&(this.resizeImageWithCDN(r,a),this.isChildOfPicture(r)&&this.resizeSourceElements(r.parentNode.querySelectorAll("source"),a))}}}else this.getOriginalSizesAttr(r)||e.preventDefault()}},{key:"shouldAutoResize",value:function(e,t){var i=e.parentNode;if(i&&this.isInlineElement(i)){if("PICTURE"===i.nodeName)return!1;var n=i.clientWidth,r=e.offsetWidth;if(t===n&&n===r)return!1}return!0}},{key:"isInlineElement",value:function(e){if(!e||1!==e.nodeType)return!1;var t=window.getComputedStyle(e).display;return"inline"===t||"inline-block"===t}},{key:"isChildOfPicture",value:function(e){var t;return e&&"PICTURE"===(null==e||null===(t=e.parentNode)||void 0===t?void 0:t.nodeName)}},{key:"resizeSourceElements",value:function(e,t){var i=this;e&&null!=e&&e.length&&e.forEach(function(e){return i.resizeSourceElement(e,t)})}},{key:"resizeSourceElement",value:function(e,t){var i=e.getAttribute(c);if(i){var n=this.parseSrcSet(i);if(n&&n.length)if(1===n.length&&""===n[0].unit)this.resizeNonResponsiveSource(e,n[0].src,t);else{var r=this.getBaseSourceSrcForResize(n,t);this.isFromSmushCDN(r)&&this.updateSrcsetForResize(e,i,r,t,n)}}}},{key:"resizeNonResponsiveSource",value:function(e,t,i){if(this.isFromSmushCDN(t)&&this.isSourceActive(e)){var n=this.getResizedCDNURL(t,i),r=this.getPixelRatio();if(r>1){var a=Math.ceil(i*r),o=this.getResizedCDNURL(t,a)+" "+a+f;n+=" ".concat(i).concat(f,", ").concat(o)}this.updateElementSrcset(e,null,n)}}},{key:"isSourceActive",value:function(e){var t,i=e.getAttribute("media");return!(i&&(null===(t=window)||void 0===t||null===(t=t.matchMedia(i))||void 0===t||!t.matches))}},{key:"getBaseSourceSrcForResize",value:function(e,t){var i=e[0];return f!==i.unit?null:!this.isThumbnail(i.src)||i.value>=t?i.src:null}},{key:"isElementEligibleForResizing",value:function(e){var t=this.getOriginalSizesAttr(e),i=this.getDataSrc(e),n=this.getDataSrcSet(e);return Boolean(t&&i&&n)}},{key:"shouldRevertToOriginalSizes",value:function(e,t){if("auto"===this.getElementWidth(e))return this.shouldSkipAutoWidth();var i=this.getOriginalSizesAttr(e),n=this.getMaxWidthFromSizes(i);return!(!(n&&t>
27n)||this.isChildOfPicture(e))||!this.shouldAutoResize(e,t)}},{key:"triggerEvent",value:function(e,t){var i=new CustomEvent(t,{detail:arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},bubbles:!(arguments.length>3&&void 0!==arguments[3])||arguments[3],cancelable:!(arguments.length>4&&void 0!==arguments[4])||arguments[4]});return e.dispatchEvent(i),i}},{key:"shouldSkipAutoWidth",value:function(){return this.skipAutoWidth}},{key:"resizeImageWithCDN",value:function(e,t){var i=this.getDataSrcSet(e),n=this.getDataSrc(e);if(i&&n){var r=this.parseSrcSet(i),a=this.getBaseImageSrcForResize(n,r,t);this.updateSrcsetForResize(e,i,a,t,r)}}},{key:"updateSrcsetForResize",value:function(e,t,i,n,r){var a=this.updateSrcsetWithTargetWidth(t,i,n,r);a=this.updateSrcsetWithRetinaWidth(a,i,n,r),this.updateElementSrcset(e,t,a)}},{key:"getBaseImageSrcForResize",value:function(e,t,i){if(!this.isThumbnail(e))return e;var n=t.find(function(e){return e.value>=i});return n?n.src:e}},{key:"isThumbnail",value:function(e){return new RegExp("(-\\d+x\\d+)\\.(".concat(d.join("|"),")(?:\\?.+)?$"),"i").test(e)}},{key:"updateSrcsetWithTargetWidth",value:function(e,t,i,n){return this.findSimilarSource(n,i)?e:e+", "+this.getResizedCDNURL(t,i)+" "+i+f}},{key:"updateSrcsetWithRetinaWidth",value:function(e,t,i,n){var r=this.getPixelRatio();if(r<=1)return e;var a=Math.ceil(i*r);return this.findSimilarSource(n,r,"x")||this.findSimilarSource(n,a,f)?e:e+", "+this.getResizedCDNURL(t,a)+" "+a+f}},{key:"updateElementSrcset",value:function(e,t,i){i!==t&&e.setAttribute("data-srcset",i)}},{key:"getPixelRatio",value:function(){return window.devicePixelRatio||1}},{key:"findSimilarSource",value:function(e,t){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.precision;return e.find(function(e){return n===e.unit&&e.value>=t&&i.isFuzzyMatch(e.value,t,r)})}},{key:"getResizedCDNURL",value:function(e,t){var i=this.parseURL(e);if(i){var n=new URLSearchParams(i.search);n.set("size","".concat(t,"x0"));var r=i.origin+i.pathname;return"".concat(r,"?").concat(n.toString())}}},{key:"parseURL",value:function(e){try{return new URL(e)}catch(e){return null}}},{key:"parseSrcSet",value:function(e){var t=this.extractSourcesFromSrcSet(e);return this.sortSources(t)}},{key:"extractSourcesFromSrcSet",value:function(e){return e.split(",").map(function(e){var t=r(e.trim().split(/\s+/),2),i=t[0],n=t[1],a=0,o="";return n&&(n.endsWith(f)?(a=parseInt(n,10),o=f):n.endsWith("x")&&(a=parseFloat(n),o="x")),{markup:e,src:i,value:a,unit:o}})}},{key:"sortSources",value:function(e){return e.sort(function(e,t){return e.value===t.value?0:e.value>t.value?-1:1}),e}},{key:"revertToOriginalSizesIfNeeded",value:function(e){var t=this.getOriginalSizesAttr(e);return!!t&&(e.setAttribute("sizes",t),e.removeAttribute(l),!0)}},{key:"getElementWidth",value:function(e){var t,i=null===(t=e.style)||void 0===t?void 0:t.width;if(i&&"auto"===i.trim())return"auto";var n=window.getComputedStyle(e).width,r=parseInt(n,10);return isNaN(r)?n:r}},{key:"getMaxWidthFromSizes",value:function(e){var t=e.match(/\(max-width:\s*(\d+)px\)\s*100vw,\s*\1px/);return t?parseInt(t[1],10):0}},{key:"getOriginalSizesAttr",value:function(e){return e.getAttribute(l)}},{key:"getDataSrcSet",value:function(e){return e.getAttribute(c)}},{key:"getDataSrc",value:function(e){return e.getAttribute("data-src")}},{key:"isFromSmushCDN",value:function(e){if(!e||!this.cdnBaseURL)return!1;if(e.startsWith(this.cdnBaseURL))return!0;var t=this.parseURL(e);return!(null==t||!t.hostname)&&(t.hostname===u||t.hostname.endsWith(".".concat(u)))}},{key:"isFuzzyMatch",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.abs(e-t)<=i}}],i&&o(e.prototype,i),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,i,n}();!function(e,t){if(null===(e=window.smushLazyLoadOptions)||void 0===e?void 0:e.autoResizingEnabled){var i=(null===(t=window.smushLazyLoadOptions)||void 0===t?void 0:t.autoResizeOptions)||{};i=Object.assign({precision:5,skipAutoWidth:!0},i),new v(i)}}()}),t=i.cw(function(e,t){i.d(t,{G:function(){return n}}),a();var n=function(e){return e===u()()||JSON.stringify((null==e?void 0:e.cfg)||{})===JSON.stringify((null===u()()||void 0===u()()?void 0:u()().cfg)||{})};t.A=u()()}),n=i.cw(function(e,i){t(),document.addEventListener("lazybeforeunveil",function(e){var i;(0,t().G)(null==e||null===(i=e.detail)||void 0===i?void 0:i.instance)&&function(e){var t=e.getAttribute("data-bg-image")||e.getAttribute("data-bg"),i=e.hasAttribute("data-bg-image")?"background-image":"background";if(t){var n,r=e.getAttribute("style")||"",a="".concat(i,": ").concat(t,";"),o=new RegExp("".concat(i,"\\s*:\\s*[^;]+;?"));n=o.test(r)?r.replace(o,a):r.length>0?r.replace(/;$/g,"")+";"+a:a,e.setAttribute("style",n.trim())}}(e.target)})}),r=i.cw(function(e,i){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,t||"default");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}var o,s,u,l,c,d,f;
27t(),s="smush-lazyload-video",u="smush-lazyloaded-video",l="smush-lazyload-autoplay",c="ontouchstart"in window?"touchstart":"pointerdown",d=Number(null===(o=window)||void 0===o?void 0:o.smush_video_render_delay)||0,f=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.shouldDelayVideoRenderingForMobile=this.supportsIntersectionObserver(),this.queuedVideoElements=[],this.isMobileOrSafari=null,this.init()},i=[{key:"init",value:function(){var e=this;document.addEventListener("lazybeforeunveil",function(t){return e.handleVideoLazyLoad(t)}),document.addEventListener(c,function(){return e.enableVideoRenderingForMobile()},{once:!0,passive:!0}),document.addEventListener("DOMContentLoaded",function(){d<=0?document.querySelector(".".concat(s,".").concat(l))&&e.enableVideoRenderingForMobile():setTimeout(function(){return e.enableVideoRenderingForMobile()},d)})}},{key:"handleVideoLazyLoad",value:function(e){var i,n=e.target;(0,t().G)(null==e||null===(i=e.detail)||void 0===i?void 0:i.instance)&&n.classList.contains(s)&&(this.handleButtonPlay(n),this.maybePrepareVideoForPlay(n))}},{key:"handleButtonPlay",value:function(e){var t=this,i=e.querySelector(".".concat("smush-play-btn"));if(i){var n=function(){return t.loadIframeVideoWithAutoPlay(e)};i.addEventListener("click",n),i.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),n())})}else{var r;this.loadIframeVideo(e),null===(r=window.console)||void 0===r||r.warning("Missing play button [.smush-play-btn] for video element:",e)}}},{key:"maybePrepareVideoForPlay",value:function(e){var t=e.classList.contains(l);this.shouldPrepareIframeForPlay()?this.maybePrepareVideoForMobileAndSafari(e,t):t&&this.loadIframeVideoWithAutoPlay(e)}},{key:"enableVideoRenderingForMobile",value:function(){this.shouldDelayVideoRenderingForMobile&&(this.shouldDelayVideoRenderingForMobile=!1,this.maybeObserveQueuedVideoElements())}},{key:"supportsIntersectionObserver",value:function(){return"IntersectionObserver"in window}},{key:"maybeObserveQueuedVideoElements",value:function(){this.queuedVideoElements.length&&this.observeQueuedVideoElements()}},{key:"observeQueuedVideoElements",value:function(){var e=this,t=new IntersectionObserver(function(i){i.forEach(function(i){if(i.isIntersecting){var n=i.target;e.loadIframeVideo(n),t.unobserve(n)}})},{rootMargin:"0px 0px 200px 0px",threshold:.1});this.queuedVideoElements.forEach(function(e){t.observe(e)})}},{key:"maybePrepareVideoForMobileAndSafari",value:function(e,t){this.shouldDelayVideoRenderingForMobile?this.queuedVideoElements.push(e):this.loadIframeVideo(e,t)}},{key:"shouldPrepareIframeForPlay",value:function(){return null===this.isMobileOrSafari&&(this.isMobileOrSafari=this.checkIfMobileOrSafari()),this.isMobileOrSafari}},{key:"checkIfMobileOrSafari",value:function(){var e=navigator.userAgent;return e.includes("Mobi")||e.includes("Safari")&&!e.includes("Chrome")}},{key:"loadIframeVideo",value:function(e){var t,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e.classList.contains(u)){e.classList.add(u,"loading");var n=e.querySelector("iframe");if(n){var r=null===(t=n.dataset)||void 0===t?void 0:t.src;if(r){if(i){var a=new URL(r);a.searchParams.set("autoplay","1"),a.searchParams.set("playsinline","1"),r=a.toString()}var o=n.getAttribute("allow")||"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture";o.includes("autoplay")||(o+="; autoplay"),n.setAttribute("allow",o),n.setAttribute("allowFullscreen","true"),n.setAttribute("src",r),e.classList.remove("loading")}else{var s;null===(s=window.console)||void 0===s||s.error("Missing data-src attribute for iframe:",n)}}else{var l;null===(l=window.console)||void 0===l||l.error("Missing iframe element in video wrapper:",e)}}}},{key:"loadIframeVideoWithAutoPlay",value:function(e){this.loadIframeVideo(e,!0)}}],i&&r(e.prototype,i),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,i,n}(),new f}),a=function(){return i(6879)},o=window.lazySizesConfig||null;o&&delete window.lazySizesConfig;var s=function(){o?window.lazySizesConfig=o:"lazySizesConfig"in window&&delete window.lazySizesConfig};function u(){return u.c||(u.c=i.n(a()))}
27i.dn(s),t(),n(),r(),e(),t().A.init(),s()}()}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.