
!function(){var e={283:function(e,t,n){"use strict";n.d(t,{M:function(){return r},X:function(){return l}});const o=async(e,t,n,o)=>{var l,r;const i=null===(l=window)||void 0===l||null===(r=l.swellVars)||void 0===r?void 0:r.restUrl;void 0!==i&&fetch(i+e,t).then((e=>{if(e.ok)return e.json();throw new TypeError(`Failed callRestApi: ${e.status}`)})).then((e=>{n&&n(e)})).catch((n=>{console.error(n),console.error("route:"+e,t),o&&o()}))},l=async(e,t,n=undefined,l=undefined)=>{const r=new URLSearchParams;Object.keys(t).forEach((e=>{r.append(e,t[e])})),o(e,{method:"POST",body:r},n,l)},r=async(e,t,n=undefined,l=undefined)=>{const r=new URLSearchParams;Object.keys(t).forEach((e=>{r.append(e,t[e])}));const i=r.toString();o(`${e}?${i}`,{method:"GET"},n,l)}},614:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var o=n(507),l=n(354);const r={pageTop(){(0,l.l)(0,0)},toggleMenu(){"opened"===document.documentElement.getAttribute("data-spmenu")?document.documentElement.setAttribute("data-spmenu","closed"):document.documentElement.setAttribute("data-spmenu","opened")},toggleSearch(){const e=document.getElementById("search_modal");if(null===e)return!1;e.classList.contains("is-opened")?e.classList.remove("is-opened"):(e.classList.add("is-opened"),setTimeout((()=>{e.querySelector('[name="s"]').focus()}),250))},toggleIndex(){const e=document.getElementById("index_modal");null!==e&&e.classList.toggle("is-opened")},toggleAccordion(){},toggleSubmenu(e){const t=e.currentTarget,n=t.parentNode.nextElementSibling;t.classList.toggle("is-opened"),n.classList.toggle("is-opened"),e.stopPropagation()},tabControl(e){const t=e.currentTarget,n="true"===t.getAttribute("aria-selected");if(0===e.clientX||t.blur(),n)return;const o=t.getAttribute("aria-controls"),l=document.getElementById(o);if(null===l)return;const r=t.closest('[role="tablist"]').querySelector('.c-tabList__item [aria-selected="true"]'),i=r.getAttribute("aria-controls"),s=document.getElementById(i);t.setAttribute("aria-selected","true"),r.setAttribute("aria-selected","false"),l.setAttribute("aria-hidden","false"),s.setAttribute("aria-hidden","true")},scrollToContent(){const e=document.querySelector("#main_visual + *");e&&(0,l.l)(e,o.Z8-8)},clickLink(e){const t=e.currentTarget.querySelector("a");"mousedown"===e.type?1===e.button&&window.open(t.getAttribute("href")):(t.onclick=e=>(e.stopPropagation(),!0),t.click())}};function i(e){e.querySelectorAll("[data-onclick]").forEach((e=>{const t=e.getAttribute("data-onclick"),n=r[t];e.addEventListener("click",(function(e){e.preventDefault(),n(e)}))})),e.querySelectorAll('[data-onclick="clickLink"]').forEach((e=>{e.addEventListener("mousedown",(e=>r.clickLink(e)))}))}},754:function(e,t){"use strict";t.Z={bodyWrap:null,header:null,gnav:null,fixHeader:null,content:null,mainContent:null,sidebar:null,spMenu:null,mainVisual:null,postSlider:null,fixBottomMenu:null,fixSidebar:null,wpadminbar:null}},507:function(e,t,n){"use strict";n.d(t,{M_:function(){return p},QW:function(){return w},Ro:function(){return i},Z8:function(){return u},ls:function(){return m},tq:function(){return c},ua:function(){return f},wR:function(){return d}});var o=n(754);let l=0,r=0,i=!1,s=!1,c=!1,d=!1,u=0,a=window.swellVars.isFixHeadSP;const f=navigator.userAgent.toLowerCase(),m=()=>{i=959<window.innerWidth,c=600>window.innerWidth,s=!i,d=!c},p=()=>{const e=window.innerWidth-document.body.clientWidth;document.documentElement.style.setProperty("--swl-scrollbar_width",e+"px")},w=()=>{var e,t,n;null!==(e=o.Z.header)&&(l=e.offsetHeight,document.documentElement.style.setProperty("--swl-headerH",l+"px")),null!==(t=o.Z.fixHeader)&&(r=t.offsetHeight,document.documentElement.style.setProperty("--swl-fix_headerH",r+"px")),n=o.Z.wpadminbar,u=0,i?u+=r:!i&&a&&(u+=l),null!==n&&(u+=n.offsetHeight),document.documentElement.style.setProperty("--swl-offset_y",u+"px"),u+=8}},290:function(e,t,n){"use strict";n.d(t,{F:function(){return u}});var o=n(754),l=n(614),r=n(354),i=n(283);let s=0,c=0;const d=(e,t)=>{const n=document.getElementById(e);if(!n)return;const d={placement:e};if("post_id"===t){if(null===o.Z.content)return void console.error('Not found "#content".');const e=o.Z.content.getAttribute("data-postid");if(!e)return void console.error('Not found "data-postid".');d.post_id=e}(0,i.M)("swell-lazyload-contents",d,(e=>{const t=document.createDocumentFragment(),o=document.createElement("div");for(o.innerHTML=e;o.firstChild;)t.appendChild(o.firstChild);(e=>{const t=e.querySelectorAll('select[name="cat"]');0<t.length&&t.forEach((e=>{!function(){const t=e.parentNode;if(null===t)return;const n=t.nextElementSibling;null!==n&&t.parentNode.removeChild(n)}()}));const n=e.querySelectorAll('select[name="archive-dropdown"]');0<n.length&&n.forEach((e=>{!function(){const t=e.nextElementSibling;null!==t&&e.parentNode.removeChild(t)}()}))})(t),[].map.call(t.querySelectorAll("script"),(function(e){const n=e.parentElement||t,o=document.createElement("script");e.src?o.src=e.src:o.textContent=e.textContent,n.replaceChild(o,e)})),n.innerHTML="",n.appendChild(t),(e=>{const t=e.querySelectorAll('select[name="cat"]');0<t.length&&t.forEach((e=>{const t="ajaxed-cat-dropdown-"+s++;e.setAttribute("id",t),e.addEventListener("change",(t=>{0<e.options[e.selectedIndex].value&&e.parentNode.submit()}))}));const n=e.querySelectorAll('select[name="archive-dropdown"]');0<n.length&&n.forEach((e=>{const t="ajaxed-archive-dropdown-"+c++;e.setAttribute("id",t),e.addEventListener("change",(t=>{""!==e.options[e.selectedIndex].value&&(document.location.href=e.options[e.selectedIndex].value)}))}))})(n),(0,l.Z)(n),(0,r.B)(n)}))},u=()=>{var e,t;null!==(e=window.swellVars)&&void 0!==e&&e.useAjaxAfterPost&&d("after_article","post_id"),null!==(t=window.swellVars)&&void 0!==t&&t.useAjaxFooter&&(d("before_footer_widget",""),d("footer",""))}},595:function(){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){let t=this;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null})},853:function(e,t,n){"use strict";n.d(t,{J:function(){return r}});var o=n(754),l=n(283);const r=()=>{var e;if(null===o.Z.content)return;if(null===(e=window.swellVars)||void 0===e||!e.usePvCount)return;const t=o.Z.content.getAttribute("data-postid");if(!t)return;if(!o.Z.content.getAttribute("data-pvct"))return;const n={postid:t};(0,l.X)("swell-ct-pv",n)}},41:function(e,t,n){"use strict";function o(e){e.header=document.getElementById("header"),e.bodyWrap=document.getElementById("body_wrap"),e.fixHeader=document.getElementById("fix_header"),e.gnav=document.getElementById("gnav"),e.spMenu=document.getElementById("sp_menu"),e.wpadminbar=document.getElementById("wpadminbar"),e.content=document.getElementById("content")||document.getElementById("lp-content"),e.mainContent=document.getElementById("main_content"),e.sidebar=document.getElementById("sidebar"),e.fixBottomMenu=document.getElementById("fix_bottom_menu"),e.fixSidebar=document.getElementById("fix_sidebar")}n.d(t,{Z:function(){return o}})},581:function(e,t,n){"use strict";function o(e){1<e.querySelectorAll(".c-widget").length&&e.classList.add("-multiple")}n.d(t,{Z:function(){return o}})},703:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(754);const l=e=>{if(null===e)return;const t=window.location.pathname,n=window.location.origin+t,o=e.querySelectorAll(".c-gnav > li");for(let e=0;e<o.length;e++){var l,r;const t=o[e],i=t.querySelector("a");if(null===i)continue;const s=i.getAttribute("href");t.classList.contains("-current")&&t.classList.remove("-current"),n===s&&(null===(l=window)||void 0===l||null===(r=l.swellVars)||void 0===r?void 0:r.siteUrl)!==s&&t.classList.add("-current")}};function r(){l(o.Z.gnav),l(o.Z.fixHeader)}},548:function(e,t,n){"use strict";n.d(t,{B:function(){return r},D:function(){return l}});var o=n(507);function l(){let e="";o.wR?e="data-tab-style":o.tq&&(e="data-mobile-style");const t=document.querySelectorAll(`[${e}]`);for(let n=0;n<t.length;n++){const o=t[n],l=o.getAttribute(e);o.setAttribute("style",l)}e=o.Ro?"data-pc-style":"data-sp-style";const n=document.querySelectorAll(`[${e}]`);for(let t=0;t<n.length;t++){const o=n[t],l=o.getAttribute(e);o.setAttribute("style",l)}}function r(){document.querySelectorAll('.wp-block-table.td_to_th_, .wp-block-table[data-cell1-fixed], table[style*="--swl-cell1-width"]').forEach((e=>{const t=e.querySelectorAll("tbody tr > :first-child, tbody tr:empty");let n=0;t.forEach((e=>{if("tr"===e.tagName)n>0&&n--;else if(n>0)n--,e.classList.add("-no1");else{const t=e.rowSpan||1;t>1&&(n=t-1)}}))}))}},14:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(754);function l(e,t){let n=e.innerHTML;const o=t.join("|")||"";n=n.replace(/<noscript>.*<\/noscript>/gim,"");const l=new RegExp("(?!<\\/?("+o+")(>|\\s[^>]*>))<(\"[^\"]*\"|\\'[^\\']*\\'|[^\\'\">])*>","gim");n=n.replace(l,"");const r=e.querySelector(".mininote");if(null!==r){const e=r.textContent;n=n.replace(e,`<span class="mininote">${e}</span>`)}return n}function r(){var e,t,n,r,i,s;if(void 0===window.swellVars)return;const c=o.Z.bodyWrap;if(null===c)return;const d=o.Z.mainContent;if(null===d)return;if(null!==d.querySelector(".p-toc.-called-from-sc")&&c.classList.remove("-index-off"),c.classList.contains("-index-off"))return;const u=document.querySelectorAll(".p-toc");if(1>u.length)return;const a=d.querySelector(".l-mainContent__inner > .post_content")||d.querySelector(".p-termContent > .post_content")||d.querySelector(".p-authorContent > .post_content"),f=(null===(e=window.swellVars)||void 0===e?void 0:e.tocListTag)||"ol",m=(null===(t=window.swellVars)||void 0===t?void 0:t.tocTarget)||"h3";let p=parseInt(null===(n=window.swellVars)||void 0===n?void 0:n.tocMinnum)||2,w=[];null!==a&&("h2"===m?w=a.querySelectorAll("h2"):"h3"===m?w=a.querySelectorAll("h2, h3"):"h4"===m?w=a.querySelectorAll("h2, h3, h4"):"h5"===m&&(w=a.querySelectorAll("h2, h3, h4, h5")));const h=function(e,t=".current"){if(!e)return null;const n=e.querySelector(t);if(!n)return null;const o={},l=n.nextElementSibling;if(l){const e=l.getAttribute("href");o.next=e}const r=n.previousElementSibling;if(r){const e=r.getAttribute("href");o.prev=e}return o}(d.querySelector(".c-pagination.-post"));if(null!==h&&(p-=1),p>w.length)return void function(){const e=o.Z.bodyWrap;if(null===e)return;e.classList.add("-index-off");const t=o.Z.mainContent;if(null===t)return;const n=t.querySelector(".swell-block-fullWide .p-toc");n&&n.parentNode.removeChild(n);const l=t.querySelector(".swell-block-fullWide .w-beforeToc");l&&l.parentNode.removeChild(l)}();const g=(null===(r=window.swellVars)||void 0===r?void 0:r.tocOmitType)||"",v=Number((null===(i=window.swellVars)||void 0===i?void 0:i.tocOmitNum)||0);let y=g&&v+1<w.length;const{listHtml:b,isOmitted:E}=function({hTags:e,ignoreClasses:t,idPrefix:n="toc-",listTag:o="ol",arrowedTags:r=["ruby","rp","rb","rt"],childClass:i="",linkClass:s="",prevLink:c="",nextLink:d="",omitType:u,omitNum:a=5}){let f=!1,m=2,p="";var w;c&&(p+=`<li class="__pn __prev"><a href="${c}" class="__pn__link">${(null===(w=window.swellVars)||void 0===w?void 0:w.tocPrevText)||"前のページへ"}</a></li>`);let h=1,g=1;for(let c=0;c<e.length;c++){const d=e[c];let w="";if(0===d.offsetHeight)continue;d.hasAttribute("id")?w=d.getAttribute("id"):(w=n+c,d.setAttribute("id",w));let v=!1;for(let e=0;e<t.length;e++){const n=t[e];d.classList.contains(n)&&(v=!0)}if(v)continue;const y=l(d,r);let b=0;const E=d.tagName.toLowerCase();if("h2"===E?b=2:"h3"===E?b=3:"h4"===E?b=4:"h5"===E&&(b=5),0===b)continue;if(""===p&&2!==b)continue;if(1<b-m)continue;if(m<b)m++,p=p.slice(0,-5),p+=`<${o} class="${i}" data-level="${m}">`;else if(m>b)for(;m>b;)p+=`</${o}></li>`,m--;let x="";""===u?x="":"nest"===u&&2<m?f=!0:"ct"===u&&a<h?(x=' data-omit="1"',f=!0):"both"===u&&(2===m&&a<g?x=' data-omit="1"':2<m&&g--,a<h&&(f=!0)),p+=`<li${x}><a href="#${w}" class="${s}">${y}</a></li>`,h++,g++}if(!p)return{listHtml:null,isOmitted:!1};for("nest"===u&&a>=h&&(f=!1);m>1;)p+=`</${o}></li>`,m--;var v;d&&(p+=`<li class="__pn __next"><a href="${d}" class="__pn__link">${(null===(v=window.swellVars)||void 0===v?void 0:v.tocNextText)||"次のページへ"}</a></li>`);return{listHtml:p,isOmitted:f}}({hTags:w,ignoreClasses:["p-postList__title","swl-toc-off"],idPrefix:"index_id",listTag:f,childClass:"p-toc__childList",linkClass:"p-toc__link",prevLink:(null==h?void 0:h.prev)||"",nextLink:(null==h?void 0:h.next)||"",omitType:y?g:"",omitNum:v});if(!b)return void c.classList.add("-index-off");y=E;const x=document.createElement(f);x.classList.add("p-toc__list","is-style-index"),x.setAttribute("data-level","2"),x.innerHTML=b;const _=(null===(s=window.swellVars)||void 0===s?void 0:s.tocAdPosition)||"before",A=d.querySelector(".p-toc");y&&A&&(A.setAttribute("data-omit",g),A.classList.add("is-omitted"));for(let e=0;e<u.length;e++){const t=u[e];t.appendChild(x.cloneNode(!0));const n=t.parentNode;if(n.classList.contains("swell-block-fullWide__inner")){const e=n.parentNode;e.parentNode.insertBefore(t,e);const o=e.querySelector(".w-beforeToc");null!==o&&("before"===_?t.parentNode.insertBefore(o,t):t.parentNode.insertBefore(o,t.nextSibling))}}if(y){var S,L;const e=(null===(S=window.swellVars)||void 0===S?void 0:S.tocCloseText)||"Close",t=(null===(L=window.swellVars)||void 0===L?void 0:L.tocOpenText)||"Open",n="nest"===g?A.querySelector(".p-toc__ttl"):A;if(n){const o=document.createElement("button");o.classList.add("p-toc__expandBtn"),o.innerHTML=t,n.appendChild(o),o.addEventListener("click",(()=>{A.classList.contains("is-expanded")?(A.classList.add("is-omitted"),A.classList.remove("is-expanded"),o.innerHTML=t):(A.classList.remove("is-omitted"),A.classList.add("is-expanded"),o.innerHTML=e)}))}}}},354:function(e,t,n){"use strict";n.d(t,{B:function(){return r},l:function(){return l}});var o=n(507);function l(e,t){var n;const o=window.scrollY;let l=0;if(Number.isInteger(e))l=e;else{const n=e.getBoundingClientRect();l=n.top+o-t,l<0&&(l=0)}if(null===(n=window.swellVars)||void 0===n?void 0:n.offSmoothScroll)return void window.scrollTo(0,l);let r=null,i=500;const s=Math.abs(l-o);1e4<s?i=1500:5e3<s?i=1e3:1e3<s&&(i=750);const c=e=>{const t=e-r,n=Math.min(1,t/i),s=o+(l-o)*(d=n,1-Math.pow(1-d,3));var d;window.scrollTo(0,s),n<1&&requestAnimationFrame(c)};r=performance.now(),c(r)}function r(e){(e||document).querySelectorAll('a[href*="#"]').forEach((e=>{if("_blank"===e.getAttribute("target"))return;const t=e.getAttribute("href"),n=t.split("#");if(n.length>2)return;const r=n[0],i=n[1],s=""===r,c=window.location.origin+window.location.pathname;(s||r===c)&&e.addEventListener("click",(function(e){const n=document.getElementById(i);if(!n)return!0;e.preventDefault(),window.history.pushState({},"",t),l(n,o.Z8),document.documentElement.setAttribute("data-spmenu","closed");const r=document.getElementById("index_modal");null!==r&&r.classList.remove("is-opened")}))}))}}},t={};function n(o){var l=t[o];if(void 0!==l)return l.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";n(595);var e=n(754),t=n(41),o=n(507);var l=n(14),r=n(581),i=n(703),s=n(548);function c(){null!==e.Z.fixBottomMenu&&(e=>{const t=document.getElementById("footer");if(null!==t)if(o.Ro)t.style.paddingBottom="0";else{const n=e.offsetHeight;t.style.paddingBottom=n+"px"}})(e.Z.fixBottomMenu),(0,s.D)()}var d=n(614),u=n(354),a=n(853),f=n(290);-1!==o.ua.indexOf("fb")&&300>window.innerHeight&&location.reload(),(0,o.ls)();const m=location.hash;window.onpageshow=function(e){e.persisted},document.addEventListener("DOMContentLoaded",(function(){(0,t.Z)(e.Z),(0,o.QW)(),(0,o.M_)(),window.objectFitImages&&window.objectFitImages(),c(),(0,i.Z)(),(0,l.Z)(),(0,d.Z)(document),function(){if(!window.IntersectionObserver||!("isIntersecting"in IntersectionObserverEntry.prototype))return;const e=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting?document.documentElement.setAttribute("data-scrolled","false"):document.documentElement.setAttribute("data-scrolled","true")}))}),{root:null,rootMargin:"0px",threshold:0}),t=document.querySelector(".l-scrollObserver");e.observe(t)}(),(0,s.B)()})),window.addEventListener("load",(function(){if(document.documentElement.setAttribute("data-loaded","true"),(0,o.QW)(),null!==e.Z.fixSidebar&&(0,r.Z)(e.Z.fixSidebar),(0,u.B)(),m){const e=m.replace("#",""),t=document.getElementById(e);null!==t&&(0,u.l)(t,o.Z8)}(0,a.J)(),(0,f.F)()})),window.addEventListener("orientationchange",(function(){setTimeout((()=>{(0,o.ls)(),(0,o.QW)(),c()}),10)})),window.addEventListener("resize",(function(){setTimeout((()=>{(0,o.ls)(),(0,o.QW)(),(0,o.M_)(),c()}),5)}))}()}();



!function(n){var t={};function r(e){if(t[e])return t[e].exports;var u=t[e]={i:e,l:!1,exports:{}};return n[e].call(u.exports,u,u.exports,r),u.l=!0,u.exports}r.m=n,r.c=t,r.d=function(n,t,e){r.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:e})},r.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,t){if(1&t&&(n=r(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var u in n)r.d(e,u,function(t){return n[t]}.bind(null,u));return e},r.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(t,"a",t),t},r.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},r.p="",r(r.s=2)}([function(n,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"==typeof window&&(r=window)}n.exports=r},function(n,t,r){(function(n,r){(function(){var e="Expected a function",u="__lodash_placeholder__",i=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],o="[object Arguments]",f="[object Array]",a="[object Boolean]",c="[object Date]",l="[object Error]",s="[object Function]",v="[object GeneratorFunction]",h="[object Map]",p="[object Number]",d="[object Object]",_="[object RegExp]",g="[object Set]",y="[object String]",b="[object Symbol]",w="[object WeakMap]",m="[object ArrayBuffer]",x="[object DataView]",j="[object Float32Array]",A="[object Float64Array]",O="[object Int8Array]",k="[object Int16Array]",E="[object Int32Array]",I="[object Uint8Array]",R="[object Uint16Array]",S="[object Uint32Array]",z=/\b__p \+= '';/g,C=/\b(__p \+=) '' \+/g,L=/(__e\(.*?\)|\b__t\)) \+\n'';/g,W=/&(?:amp|lt|gt|quot|#39);/g,U=/[&<>"']/g,T=RegExp(W.source),B=RegExp(U.source),M=/<%-([\s\S]+?)%>/g,D=/<%([\s\S]+?)%>/g,P=/<%=([\s\S]+?)%>/g,$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,N=/^\w*$/,F=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,q=/[\\^$.*+?()[\]{}|]/g,Z=RegExp(q.source),K=/^\s+/,V=/\s/,G=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,H=/\{\n\/\* \[wrapped with (.+)\] \*/,J=/,? & /,Y=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Q=/[()=,{}\[\]\/\s]/,X=/\\(\\)?/g,nn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,tn=/\w*$/,rn=/^[-+]0x[0-9a-f]+$/i,en=/^0b[01]+$/i,un=/^\[object .+?Constructor\]$/,on=/^0o[0-7]+$/i,fn=/^(?:0|[1-9]\d*)$/,an=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,cn=/($^)/,ln=/['\n\r\u2028\u2029\\]/g,sn="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",vn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",hn="[\\ud800-\\udfff]",pn="["+vn+"]",dn="["+sn+"]",_n="\\d+",gn="[\\u2700-\\u27bf]",yn="[a-z\\xdf-\\xf6\\xf8-\\xff]",bn="[^\\ud800-\\udfff"+vn+_n+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",wn="\\ud83c[\\udffb-\\udfff]",mn="[^\\ud800-\\udfff]",xn="(?:\\ud83c[\\udde6-\\uddff]){2}",jn="[\\ud800-\\udbff][\\udc00-\\udfff]",An="[A-Z\\xc0-\\xd6\\xd8-\\xde]",On="(?:"+yn+"|"+bn+")",kn="(?:"+An+"|"+bn+")",En="(?:"+dn+"|"+wn+")"+"?",In="[\\ufe0e\\ufe0f]?"+En+("(?:\\u200d(?:"+[mn,xn,jn].join("|")+")[\\ufe0e\\ufe0f]?"+En+")*"),Rn="(?:"+[gn,xn,jn].join("|")+")"+In,Sn="(?:"+[mn+dn+"?",dn,xn,jn,hn].join("|")+")",zn=RegExp("['’]","g"),Cn=RegExp(dn,"g"),Ln=RegExp(wn+"(?="+wn+")|"+Sn+In,"g"),Wn=RegExp([An+"?"+yn+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[pn,An,"$"].join("|")+")",kn+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[pn,An+On,"$"].join("|")+")",An+"?"+On+"+(?:['’](?:d|ll|m|re|s|t|ve))?",An+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",_n,Rn].join("|"),"g"),Un=RegExp("[\\u200d\\ud800-\\udfff"+sn+"\\ufe0e\\ufe0f]"),Tn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Bn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Mn=-1,Dn={};Dn[j]=Dn[A]=Dn[O]=Dn[k]=Dn[E]=Dn[I]=Dn["[object Uint8ClampedArray]"]=Dn[R]=Dn[S]=!0,Dn[o]=Dn[f]=Dn[m]=Dn[a]=Dn[x]=Dn[c]=Dn[l]=Dn[s]=Dn[h]=Dn[p]=Dn[d]=Dn[_]=Dn[g]=Dn[y]=Dn[w]=!1;var Pn={};Pn[o]=Pn[f]=Pn[m]=Pn[x]=Pn[a]=Pn[c]=Pn[j]=Pn[A]=Pn[O]=Pn[k]=Pn[E]=Pn[h]=Pn[p]=Pn[d]=Pn[_]=Pn[g]=Pn[y]=Pn[b]=Pn[I]=Pn["[object Uint8ClampedArray]"]=Pn[R]=Pn[S]=!0,Pn[l]=Pn[s]=Pn[w]=!1;var $n={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Nn=parseFloat,Fn=parseInt,qn="object"==typeof n&&n&&n.Object===Object&&n,Zn="object"==typeof self&&self&&self.Object===Object&&self,Kn=qn||Zn||Function("return this")(),Vn=t&&!t.nodeType&&t,Gn=Vn&&"object"==typeof r&&r&&!r.nodeType&&r,Hn=Gn&&Gn.exports===Vn,Jn=Hn&&qn.process,Yn=function(){try{var n=Gn&&Gn.require&&Gn.require("util").types;return n||Jn&&Jn.binding&&Jn.binding("util")}catch(n){}}(),Qn=Yn&&Yn.isArrayBuffer,Xn=Yn&&Yn.isDate,nt=Yn&&Yn.isMap,tt=Yn&&Yn.isRegExp,rt=Yn&&Yn.isSet,et=Yn&&Yn.isTypedArray;function ut(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function it(n,t,r,e){for(var u=-1,i=null==n?0:n.length;++u<i;){var o=n[u];t(e,o,r(o),n)}return e}function ot(n,t){for(var r=-1,e=null==n?0:n.length;++r<e&&!1!==t(n[r],r,n););return n}function ft(n,t){for(var r=null==n?0:n.length;r--&&!1!==t(n[r],r,n););return n}function at(n,t){for(var r=-1,e=null==n?0:n.length;++r<e;)if(!t(n[r],r,n))return!1;return!0}function ct(n,t){for(var r=-1,e=null==n?0:n.length,u=0,i=[];++r<e;){var o=n[r];t(o,r,n)&&(i[u++]=o)}return i}function lt(n,t){return!!(null==n?0:n.length)&&wt(n,t,0)>-1}function st(n,t,r){for(var e=-1,u=null==n?0:n.length;++e<u;)if(r(t,n[e]))return!0;return!1}function vt(n,t){for(var r=-1,e=null==n?0:n.length,u=Array(e);++r<e;)u[r]=t(n[r],r,n);return u}function ht(n,t){for(var r=-1,e=t.length,u=n.length;++r<e;)n[u+r]=t[r];return n}function pt(n,t,r,e){var u=-1,i=null==n?0:n.length;for(e&&i&&(r=n[++u]);++u<i;)r=t(r,n[u],u,n);return r}function dt(n,t,r,e){var u=null==n?0:n.length;for(e&&u&&(r=n[--u]);u--;)r=t(r,n[u],u,n);return r}function _t(n,t){for(var r=-1,e=null==n?0:n.length;++r<e;)if(t(n[r],r,n))return!0;return!1}var gt=At("length");function yt(n,t,r){var e;return r(n,(function(n,r,u){if(t(n,r,u))return e=r,!1})),e}function bt(n,t,r,e){for(var u=n.length,i=r+(e?1:-1);e?i--:++i<u;)if(t(n[i],i,n))return i;return-1}function wt(n,t,r){return t==t?function(n,t,r){var e=r-1,u=n.length;for(;++e<u;)if(n[e]===t)return e;return-1}(n,t,r):bt(n,xt,r)}function mt(n,t,r,e){for(var u=r-1,i=n.length;++u<i;)if(e(n[u],t))return u;return-1}function xt(n){return n!=n}function jt(n,t){var r=null==n?0:n.length;return r?Et(n,t)/r:NaN}function At(n){return function(t){return null==t?void 0:t[n]}}function Ot(n){return function(t){return null==n?void 0:n[t]}}function kt(n,t,r,e,u){return u(n,(function(n,u,i){r=e?(e=!1,n):t(r,n,u,i)})),r}function Et(n,t){for(var r,e=-1,u=n.length;++e<u;){var i=t(n[e]);void 0!==i&&(r=void 0===r?i:r+i)}return r}function It(n,t){for(var r=-1,e=Array(n);++r<n;)e[r]=t(r);return e}function Rt(n){return n?n.slice(0,Vt(n)+1).replace(K,""):n}function St(n){return function(t){return n(t)}}function zt(n,t){return vt(t,(function(t){return n[t]}))}function Ct(n,t){return n.has(t)}function Lt(n,t){for(var r=-1,e=n.length;++r<e&&wt(t,n[r],0)>-1;);return r}function Wt(n,t){for(var r=n.length;r--&&wt(t,n[r],0)>-1;);return r}function Ut(n,t){for(var r=n.length,e=0;r--;)n[r]===t&&++e;return e}var Tt=Ot({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"}),Bt=Ot({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Mt(n){return"\\"+$n[n]}function Dt(n){return Un.test(n)}function Pt(n){var t=-1,r=Array(n.size);return n.forEach((function(n,e){r[++t]=[e,n]})),r}function $t(n,t){return function(r){return n(t(r))}}function Nt(n,t){for(var r=-1,e=n.length,i=0,o=[];++r<e;){var f=n[r];f!==t&&f!==u||(n[r]=u,o[i++]=r)}return o}function Ft(n){var t=-1,r=Array(n.size);return n.forEach((function(n){r[++t]=n})),r}function qt(n){var t=-1,r=Array(n.size);return n.forEach((function(n){r[++t]=[n,n]})),r}function Zt(n){return Dt(n)?function(n){var t=Ln.lastIndex=0;for(;Ln.test(n);)++t;return t}(n):gt(n)}function Kt(n){return Dt(n)?function(n){return n.match(Ln)||[]}(n):function(n){return n.split("")}(n)}function Vt(n){for(var t=n.length;t--&&V.test(n.charAt(t)););return t}var Gt=Ot({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Ht=function n(t){var r,V=(t=null==t?Kn:Ht.defaults(Kn.Object(),t,Ht.pick(Kn,Bn))).Array,sn=t.Date,vn=t.Error,hn=t.Function,pn=t.Math,dn=t.Object,_n=t.RegExp,gn=t.String,yn=t.TypeError,bn=V.prototype,wn=hn.prototype,mn=dn.prototype,xn=t["__core-js_shared__"],jn=wn.toString,An=mn.hasOwnProperty,On=0,kn=(r=/[^.]+$/.exec(xn&&xn.keys&&xn.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",En=mn.toString,In=jn.call(dn),Rn=Kn._,Sn=_n("^"+jn.call(An).replace(q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ln=Hn?t.Buffer:void 0,Un=t.Symbol,$n=t.Uint8Array,qn=Ln?Ln.allocUnsafe:void 0,Zn=$t(dn.getPrototypeOf,dn),Vn=dn.create,Gn=mn.propertyIsEnumerable,Jn=bn.splice,Yn=Un?Un.isConcatSpreadable:void 0,gt=Un?Un.iterator:void 0,Ot=Un?Un.toStringTag:void 0,Jt=function(){try{var n=ni(dn,"defineProperty");return n({},"",{}),n}catch(n){}}(),Yt=t.clearTimeout!==Kn.clearTimeout&&t.clearTimeout,Qt=sn&&sn.now!==Kn.Date.now&&sn.now,Xt=t.setTimeout!==Kn.setTimeout&&t.setTimeout,nr=pn.ceil,tr=pn.floor,rr=dn.getOwnPropertySymbols,er=Ln?Ln.isBuffer:void 0,ur=t.isFinite,ir=bn.join,or=$t(dn.keys,dn),fr=pn.max,ar=pn.min,cr=sn.now,lr=t.parseInt,sr=pn.random,vr=bn.reverse,hr=ni(t,"DataView"),pr=ni(t,"Map"),dr=ni(t,"Promise"),_r=ni(t,"Set"),gr=ni(t,"WeakMap"),yr=ni(dn,"create"),br=gr&&new gr,wr={},mr=Ei(hr),xr=Ei(pr),jr=Ei(dr),Ar=Ei(_r),Or=Ei(gr),kr=Un?Un.prototype:void 0,Er=kr?kr.valueOf:void 0,Ir=kr?kr.toString:void 0;function Rr(n){if(Zo(n)&&!Wo(n)&&!(n instanceof Lr)){if(n instanceof Cr)return n;if(An.call(n,"__wrapped__"))return Ii(n)}return new Cr(n)}var Sr=function(){function n(){}return function(t){if(!qo(t))return{};if(Vn)return Vn(t);n.prototype=t;var r=new n;return n.prototype=void 0,r}}();function zr(){}function Cr(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function Lr(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Wr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function Ur(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function Tr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function Br(n){var t=-1,r=null==n?0:n.length;for(this.__data__=new Tr;++t<r;)this.add(n[t])}function Mr(n){var t=this.__data__=new Ur(n);this.size=t.size}function Dr(n,t){var r=Wo(n),e=!r&&Lo(n),u=!r&&!e&&Mo(n),i=!r&&!e&&!u&&Xo(n),o=r||e||u||i,f=o?It(n.length,gn):[],a=f.length;for(var c in n)!t&&!An.call(n,c)||o&&("length"==c||u&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||fi(c,a))||f.push(c);return f}function Pr(n){var t=n.length;return t?n[Be(0,t-1)]:void 0}function $r(n,t){return Ai(yu(n),Jr(t,0,n.length))}function Nr(n){return Ai(yu(n))}function Fr(n,t,r){(void 0!==r&&!So(n[t],r)||void 0===r&&!(t in n))&&Gr(n,t,r)}function qr(n,t,r){var e=n[t];An.call(n,t)&&So(e,r)&&(void 0!==r||t in n)||Gr(n,t,r)}function Zr(n,t){for(var r=n.length;r--;)if(So(n[r][0],t))return r;return-1}function Kr(n,t,r,e){return te(n,(function(n,u,i){t(e,n,r(n),i)})),e}function Vr(n,t){return n&&bu(t,xf(t),n)}function Gr(n,t,r){"__proto__"==t&&Jt?Jt(n,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[t]=r}function Hr(n,t){for(var r=-1,e=t.length,u=V(e),i=null==n;++r<e;)u[r]=i?void 0:gf(n,t[r]);return u}function Jr(n,t,r){return n==n&&(void 0!==r&&(n=n<=r?n:r),void 0!==t&&(n=n>=t?n:t)),n}function Yr(n,t,r,e,u,i){var f,l=1&t,w=2&t,z=4&t;if(r&&(f=u?r(n,e,u,i):r(n)),void 0!==f)return f;if(!qo(n))return n;var C=Wo(n);if(C){if(f=function(n){var t=n.length,r=new n.constructor(t);t&&"string"==typeof n[0]&&An.call(n,"index")&&(r.index=n.index,r.input=n.input);return r}(n),!l)return yu(n,f)}else{var L=ei(n),W=L==s||L==v;if(Mo(n))return vu(n,l);if(L==d||L==o||W&&!u){if(f=w||W?{}:ii(n),!l)return w?function(n,t){return bu(n,ri(n),t)}(n,function(n,t){return n&&bu(t,jf(t),n)}(f,n)):function(n,t){return bu(n,ti(n),t)}(n,Vr(f,n))}else{if(!Pn[L])return u?n:{};f=function(n,t,r){var e=n.constructor;switch(t){case m:return hu(n);case a:case c:return new e(+n);case x:return function(n,t){var r=t?hu(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.byteLength)}(n,r);case j:case A:case O:case k:case E:case I:case"[object Uint8ClampedArray]":case R:case S:return pu(n,r);case h:return new e;case p:case y:return new e(n);case _:return function(n){var t=new n.constructor(n.source,tn.exec(n));return t.lastIndex=n.lastIndex,t}(n);case g:return new e;case b:return u=n,Er?dn(Er.call(u)):{}}var u}(n,L,l)}}i||(i=new Mr);var U=i.get(n);if(U)return U;i.set(n,f),Jo(n)?n.forEach((function(e){f.add(Yr(e,t,r,e,n,i))})):Ko(n)&&n.forEach((function(e,u){f.set(u,Yr(e,t,r,u,n,i))}));var T=C?void 0:(z?w?Vu:Ku:w?jf:xf)(n);return ot(T||n,(function(e,u){T&&(e=n[u=e]),qr(f,u,Yr(e,t,r,u,n,i))})),f}function Qr(n,t,r){var e=r.length;if(null==n)return!e;for(n=dn(n);e--;){var u=r[e],i=t[u],o=n[u];if(void 0===o&&!(u in n)||!i(o))return!1}return!0}function Xr(n,t,r){if("function"!=typeof n)throw new yn(e);return wi((function(){n.apply(void 0,r)}),t)}function ne(n,t,r,e){var u=-1,i=lt,o=!0,f=n.length,a=[],c=t.length;if(!f)return a;r&&(t=vt(t,St(r))),e?(i=st,o=!1):t.length>=200&&(i=Ct,o=!1,t=new Br(t));n:for(;++u<f;){var l=n[u],s=null==r?l:r(l);if(l=e||0!==l?l:0,o&&s==s){for(var v=c;v--;)if(t[v]===s)continue n;a.push(l)}else i(t,s,e)||a.push(l)}return a}Rr.templateSettings={escape:M,evaluate:D,interpolate:P,variable:"",imports:{_:Rr}},Rr.prototype=zr.prototype,Rr.prototype.constructor=Rr,Cr.prototype=Sr(zr.prototype),Cr.prototype.constructor=Cr,Lr.prototype=Sr(zr.prototype),Lr.prototype.constructor=Lr,Wr.prototype.clear=function(){this.__data__=yr?yr(null):{},this.size=0},Wr.prototype.delete=function(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t},Wr.prototype.get=function(n){var t=this.__data__;if(yr){var r=t[n];return"__lodash_hash_undefined__"===r?void 0:r}return An.call(t,n)?t[n]:void 0},Wr.prototype.has=function(n){var t=this.__data__;return yr?void 0!==t[n]:An.call(t,n)},Wr.prototype.set=function(n,t){var r=this.__data__;return this.size+=this.has(n)?0:1,r[n]=yr&&void 0===t?"__lodash_hash_undefined__":t,this},Ur.prototype.clear=function(){this.__data__=[],this.size=0},Ur.prototype.delete=function(n){var t=this.__data__,r=Zr(t,n);return!(r<0)&&(r==t.length-1?t.pop():Jn.call(t,r,1),--this.size,!0)},Ur.prototype.get=function(n){var t=this.__data__,r=Zr(t,n);return r<0?void 0:t[r][1]},Ur.prototype.has=function(n){return Zr(this.__data__,n)>-1},Ur.prototype.set=function(n,t){var r=this.__data__,e=Zr(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this},Tr.prototype.clear=function(){this.size=0,this.__data__={hash:new Wr,map:new(pr||Ur),string:new Wr}},Tr.prototype.delete=function(n){var t=Qu(this,n).delete(n);return this.size-=t?1:0,t},Tr.prototype.get=function(n){return Qu(this,n).get(n)},Tr.prototype.has=function(n){return Qu(this,n).has(n)},Tr.prototype.set=function(n,t){var r=Qu(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this},Br.prototype.add=Br.prototype.push=function(n){return this.__data__.set(n,"__lodash_hash_undefined__"),this},Br.prototype.has=function(n){return this.__data__.has(n)},Mr.prototype.clear=function(){this.__data__=new Ur,this.size=0},Mr.prototype.delete=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},Mr.prototype.get=function(n){return this.__data__.get(n)},Mr.prototype.has=function(n){return this.__data__.has(n)},Mr.prototype.set=function(n,t){var r=this.__data__;if(r instanceof Ur){var e=r.__data__;if(!pr||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new Tr(e)}return r.set(n,t),this.size=r.size,this};var te=xu(ce),re=xu(le,!0);function ee(n,t){var r=!0;return te(n,(function(n,e,u){return r=!!t(n,e,u)})),r}function ue(n,t,r){for(var e=-1,u=n.length;++e<u;){var i=n[e],o=t(i);if(null!=o&&(void 0===f?o==o&&!Qo(o):r(o,f)))var f=o,a=i}return a}function ie(n,t){var r=[];return te(n,(function(n,e,u){t(n,e,u)&&r.push(n)})),r}function oe(n,t,r,e,u){var i=-1,o=n.length;for(r||(r=oi),u||(u=[]);++i<o;){var f=n[i];t>0&&r(f)?t>1?oe(f,t-1,r,e,u):ht(u,f):e||(u[u.length]=f)}return u}var fe=ju(),ae=ju(!0);function ce(n,t){return n&&fe(n,t,xf)}function le(n,t){return n&&ae(n,t,xf)}function se(n,t){return ct(t,(function(t){return $o(n[t])}))}function ve(n,t){for(var r=0,e=(t=au(t,n)).length;null!=n&&r<e;)n=n[ki(t[r++])];return r&&r==e?n:void 0}function he(n,t,r){var e=t(n);return Wo(n)?e:ht(e,r(n))}function pe(n){return null==n?void 0===n?"[object Undefined]":"[object Null]":Ot&&Ot in dn(n)?function(n){var t=An.call(n,Ot),r=n[Ot];try{n[Ot]=void 0;var e=!0}catch(n){}var u=En.call(n);e&&(t?n[Ot]=r:delete n[Ot]);return u}(n):function(n){return En.call(n)}(n)}function de(n,t){return n>t}function _e(n,t){return null!=n&&An.call(n,t)}function ge(n,t){return null!=n&&t in dn(n)}function ye(n,t,r){for(var e=r?st:lt,u=n[0].length,i=n.length,o=i,f=V(i),a=1/0,c=[];o--;){var l=n[o];o&&t&&(l=vt(l,St(t))),a=ar(l.length,a),f[o]=!r&&(t||u>=120&&l.length>=120)?new Br(o&&l):void 0}l=n[0];var s=-1,v=f[0];n:for(;++s<u&&c.length<a;){var h=l[s],p=t?t(h):h;if(h=r||0!==h?h:0,!(v?Ct(v,p):e(c,p,r))){for(o=i;--o;){var d=f[o];if(!(d?Ct(d,p):e(n[o],p,r)))continue n}v&&v.push(p),c.push(h)}}return c}function be(n,t,r){var e=null==(n=_i(n,t=au(t,n)))?n:n[ki(Di(t))];return null==e?void 0:ut(e,n,r)}function we(n){return Zo(n)&&pe(n)==o}function me(n,t,r,e,u){return n===t||(null==n||null==t||!Zo(n)&&!Zo(t)?n!=n&&t!=t:function(n,t,r,e,u,i){var s=Wo(n),v=Wo(t),w=s?f:ei(n),j=v?f:ei(t),A=(w=w==o?d:w)==d,O=(j=j==o?d:j)==d,k=w==j;if(k&&Mo(n)){if(!Mo(t))return!1;s=!0,A=!1}if(k&&!A)return i||(i=new Mr),s||Xo(n)?qu(n,t,r,e,u,i):function(n,t,r,e,u,i,o){switch(r){case x:if(n.byteLength!=t.byteLength||n.byteOffset!=t.byteOffset)return!1;n=n.buffer,t=t.buffer;case m:return!(n.byteLength!=t.byteLength||!i(new $n(n),new $n(t)));case a:case c:case p:return So(+n,+t);case l:return n.name==t.name&&n.message==t.message;case _:case y:return n==t+"";case h:var f=Pt;case g:var s=1&e;if(f||(f=Ft),n.size!=t.size&&!s)return!1;var v=o.get(n);if(v)return v==t;e|=2,o.set(n,t);var d=qu(f(n),f(t),e,u,i,o);return o.delete(n),d;case b:if(Er)return Er.call(n)==Er.call(t)}return!1}(n,t,w,r,e,u,i);if(!(1&r)){var E=A&&An.call(n,"__wrapped__"),I=O&&An.call(t,"__wrapped__");if(E||I){var R=E?n.value():n,S=I?t.value():t;return i||(i=new Mr),u(R,S,r,e,i)}}if(!k)return!1;return i||(i=new Mr),function(n,t,r,e,u,i){var o=1&r,f=Ku(n),a=f.length,c=Ku(t).length;if(a!=c&&!o)return!1;var l=a;for(;l--;){var s=f[l];if(!(o?s in t:An.call(t,s)))return!1}var v=i.get(n),h=i.get(t);if(v&&h)return v==t&&h==n;var p=!0;i.set(n,t),i.set(t,n);var d=o;for(;++l<a;){s=f[l];var _=n[s],g=t[s];if(e)var y=o?e(g,_,s,t,n,i):e(_,g,s,n,t,i);if(!(void 0===y?_===g||u(_,g,r,e,i):y)){p=!1;break}d||(d="constructor"==s)}if(p&&!d){var b=n.constructor,w=t.constructor;b==w||!("constructor"in n)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(p=!1)}return i.delete(n),i.delete(t),p}(n,t,r,e,u,i)}(n,t,r,e,me,u))}function xe(n,t,r,e){var u=r.length,i=u,o=!e;if(null==n)return!i;for(n=dn(n);u--;){var f=r[u];if(o&&f[2]?f[1]!==n[f[0]]:!(f[0]in n))return!1}for(;++u<i;){var a=(f=r[u])[0],c=n[a],l=f[1];if(o&&f[2]){if(void 0===c&&!(a in n))return!1}else{var s=new Mr;if(e)var v=e(c,l,a,n,t,s);if(!(void 0===v?me(l,c,3,e,s):v))return!1}}return!0}function je(n){return!(!qo(n)||(t=n,kn&&kn in t))&&($o(n)?Sn:un).test(Ei(n));var t}function Ae(n){return"function"==typeof n?n:null==n?Gf:"object"==typeof n?Wo(n)?Se(n[0],n[1]):Re(n):ea(n)}function Oe(n){if(!vi(n))return or(n);var t=[];for(var r in dn(n))An.call(n,r)&&"constructor"!=r&&t.push(r);return t}function ke(n){if(!qo(n))return function(n){var t=[];if(null!=n)for(var r in dn(n))t.push(r);return t}(n);var t=vi(n),r=[];for(var e in n)("constructor"!=e||!t&&An.call(n,e))&&r.push(e);return r}function Ee(n,t){return n<t}function Ie(n,t){var r=-1,e=To(n)?V(n.length):[];return te(n,(function(n,u,i){e[++r]=t(n,u,i)})),e}function Re(n){var t=Xu(n);return 1==t.length&&t[0][2]?pi(t[0][0],t[0][1]):function(r){return r===n||xe(r,n,t)}}function Se(n,t){return ci(n)&&hi(t)?pi(ki(n),t):function(r){var e=gf(r,n);return void 0===e&&e===t?yf(r,n):me(t,e,3)}}function ze(n,t,r,e,u){n!==t&&fe(t,(function(i,o){if(u||(u=new Mr),qo(i))!function(n,t,r,e,u,i,o){var f=yi(n,r),a=yi(t,r),c=o.get(a);if(c)return void Fr(n,r,c);var l=i?i(f,a,r+"",n,t,o):void 0,s=void 0===l;if(s){var v=Wo(a),h=!v&&Mo(a),p=!v&&!h&&Xo(a);l=a,v||h||p?Wo(f)?l=f:Bo(f)?l=yu(f):h?(s=!1,l=vu(a,!0)):p?(s=!1,l=pu(a,!0)):l=[]:Go(a)||Lo(a)?(l=f,Lo(f)?l=af(f):qo(f)&&!$o(f)||(l=ii(a))):s=!1}s&&(o.set(a,l),u(l,a,e,i,o),o.delete(a));Fr(n,r,l)}(n,t,o,r,ze,e,u);else{var f=e?e(yi(n,o),i,o+"",n,t,u):void 0;void 0===f&&(f=i),Fr(n,o,f)}}),jf)}function Ce(n,t){var r=n.length;if(r)return fi(t+=t<0?r:0,r)?n[t]:void 0}function Le(n,t,r){t=t.length?vt(t,(function(n){return Wo(n)?function(t){return ve(t,1===n.length?n[0]:n)}:n})):[Gf];var e=-1;return t=vt(t,St(Yu())),function(n,t){var r=n.length;for(n.sort(t);r--;)n[r]=n[r].value;return n}(Ie(n,(function(n,r,u){return{criteria:vt(t,(function(t){return t(n)})),index:++e,value:n}})),(function(n,t){return function(n,t,r){var e=-1,u=n.criteria,i=t.criteria,o=u.length,f=r.length;for(;++e<o;){var a=du(u[e],i[e]);if(a){if(e>=f)return a;var c=r[e];return a*("desc"==c?-1:1)}}return n.index-t.index}(n,t,r)}))}function We(n,t,r){for(var e=-1,u=t.length,i={};++e<u;){var o=t[e],f=ve(n,o);r(f,o)&&Ne(i,au(o,n),f)}return i}function Ue(n,t,r,e){var u=e?mt:wt,i=-1,o=t.length,f=n;for(n===t&&(t=yu(t)),r&&(f=vt(n,St(r)));++i<o;)for(var a=0,c=t[i],l=r?r(c):c;(a=u(f,l,a,e))>-1;)f!==n&&Jn.call(f,a,1),Jn.call(n,a,1);return n}function Te(n,t){for(var r=n?t.length:0,e=r-1;r--;){var u=t[r];if(r==e||u!==i){var i=u;fi(u)?Jn.call(n,u,1):nu(n,u)}}return n}function Be(n,t){return n+tr(sr()*(t-n+1))}function Me(n,t){var r="";if(!n||t<1||t>9007199254740991)return r;do{t%2&&(r+=n),(t=tr(t/2))&&(n+=n)}while(t);return r}function De(n,t){return mi(di(n,t,Gf),n+"")}function Pe(n){return Pr(zf(n))}function $e(n,t){var r=zf(n);return Ai(r,Jr(t,0,r.length))}function Ne(n,t,r,e){if(!qo(n))return n;for(var u=-1,i=(t=au(t,n)).length,o=i-1,f=n;null!=f&&++u<i;){var a=ki(t[u]),c=r;if("__proto__"===a||"constructor"===a||"prototype"===a)return n;if(u!=o){var l=f[a];void 0===(c=e?e(l,a,f):void 0)&&(c=qo(l)?l:fi(t[u+1])?[]:{})}qr(f,a,c),f=f[a]}return n}var Fe=br?function(n,t){return br.set(n,t),n}:Gf,qe=Jt?function(n,t){return Jt(n,"toString",{configurable:!0,enumerable:!1,value:Zf(t),writable:!0})}:Gf;function Ze(n){return Ai(zf(n))}function Ke(n,t,r){var e=-1,u=n.length;t<0&&(t=-t>u?0:u+t),(r=r>u?u:r)<0&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0;for(var i=V(u);++e<u;)i[e]=n[e+t];return i}function Ve(n,t){var r;return te(n,(function(n,e,u){return!(r=t(n,e,u))})),!!r}function Ge(n,t,r){var e=0,u=null==n?e:n.length;if("number"==typeof t&&t==t&&u<=2147483647){for(;e<u;){var i=e+u>>>1,o=n[i];null!==o&&!Qo(o)&&(r?o<=t:o<t)?e=i+1:u=i}return u}return He(n,t,Gf,r)}function He(n,t,r,e){var u=0,i=null==n?0:n.length;if(0===i)return 0;for(var o=(t=r(t))!=t,f=null===t,a=Qo(t),c=void 0===t;u<i;){var l=tr((u+i)/2),s=r(n[l]),v=void 0!==s,h=null===s,p=s==s,d=Qo(s);if(o)var _=e||p;else _=c?p&&(e||v):f?p&&v&&(e||!h):a?p&&v&&!h&&(e||!d):!h&&!d&&(e?s<=t:s<t);_?u=l+1:i=l}return ar(i,4294967294)}function Je(n,t){for(var r=-1,e=n.length,u=0,i=[];++r<e;){var o=n[r],f=t?t(o):o;if(!r||!So(f,a)){var a=f;i[u++]=0===o?0:o}}return i}function Ye(n){return"number"==typeof n?n:Qo(n)?NaN:+n}function Qe(n){if("string"==typeof n)return n;if(Wo(n))return vt(n,Qe)+"";if(Qo(n))return Ir?Ir.call(n):"";var t=n+"";return"0"==t&&1/n==-1/0?"-0":t}function Xe(n,t,r){var e=-1,u=lt,i=n.length,o=!0,f=[],a=f;if(r)o=!1,u=st;else if(i>=200){var c=t?null:Mu(n);if(c)return Ft(c);o=!1,u=Ct,a=new Br}else a=t?[]:f;n:for(;++e<i;){var l=n[e],s=t?t(l):l;if(l=r||0!==l?l:0,o&&s==s){for(var v=a.length;v--;)if(a[v]===s)continue n;t&&a.push(s),f.push(l)}else u(a,s,r)||(a!==f&&a.push(s),f.push(l))}return f}function nu(n,t){return null==(n=_i(n,t=au(t,n)))||delete n[ki(Di(t))]}function tu(n,t,r,e){return Ne(n,t,r(ve(n,t)),e)}function ru(n,t,r,e){for(var u=n.length,i=e?u:-1;(e?i--:++i<u)&&t(n[i],i,n););return r?Ke(n,e?0:i,e?i+1:u):Ke(n,e?i+1:0,e?u:i)}function eu(n,t){var r=n;return r instanceof Lr&&(r=r.value()),pt(t,(function(n,t){return t.func.apply(t.thisArg,ht([n],t.args))}),r)}function uu(n,t,r){var e=n.length;if(e<2)return e?Xe(n[0]):[];for(var u=-1,i=V(e);++u<e;)for(var o=n[u],f=-1;++f<e;)f!=u&&(i[u]=ne(i[u]||o,n[f],t,r));return Xe(oe(i,1),t,r)}function iu(n,t,r){for(var e=-1,u=n.length,i=t.length,o={};++e<u;){var f=e<i?t[e]:void 0;r(o,n[e],f)}return o}function ou(n){return Bo(n)?n:[]}function fu(n){return"function"==typeof n?n:Gf}function au(n,t){return Wo(n)?n:ci(n,t)?[n]:Oi(cf(n))}var cu=De;function lu(n,t,r){var e=n.length;return r=void 0===r?e:r,!t&&r>=e?n:Ke(n,t,r)}var su=Yt||function(n){return Kn.clearTimeout(n)};function vu(n,t){if(t)return n.slice();var r=n.length,e=qn?qn(r):new n.constructor(r);return n.copy(e),e}function hu(n){var t=new n.constructor(n.byteLength);return new $n(t).set(new $n(n)),t}function pu(n,t){var r=t?hu(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}function du(n,t){if(n!==t){var r=void 0!==n,e=null===n,u=n==n,i=Qo(n),o=void 0!==t,f=null===t,a=t==t,c=Qo(t);if(!f&&!c&&!i&&n>t||i&&o&&a&&!f&&!c||e&&o&&a||!r&&a||!u)return 1;if(!e&&!i&&!c&&n<t||c&&r&&u&&!e&&!i||f&&r&&u||!o&&u||!a)return-1}return 0}function _u(n,t,r,e){for(var u=-1,i=n.length,o=r.length,f=-1,a=t.length,c=fr(i-o,0),l=V(a+c),s=!e;++f<a;)l[f]=t[f];for(;++u<o;)(s||u<i)&&(l[r[u]]=n[u]);for(;c--;)l[f++]=n[u++];return l}function gu(n,t,r,e){for(var u=-1,i=n.length,o=-1,f=r.length,a=-1,c=t.length,l=fr(i-f,0),s=V(l+c),v=!e;++u<l;)s[u]=n[u];for(var h=u;++a<c;)s[h+a]=t[a];for(;++o<f;)(v||u<i)&&(s[h+r[o]]=n[u++]);return s}function yu(n,t){var r=-1,e=n.length;for(t||(t=V(e));++r<e;)t[r]=n[r];return t}function bu(n,t,r,e){var u=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var f=t[i],a=e?e(r[f],n[f],f,r,n):void 0;void 0===a&&(a=n[f]),u?Gr(r,f,a):qr(r,f,a)}return r}function wu(n,t){return function(r,e){var u=Wo(r)?it:Kr,i=t?t():{};return u(r,n,Yu(e,2),i)}}function mu(n){return De((function(t,r){var e=-1,u=r.length,i=u>1?r[u-1]:void 0,o=u>2?r[2]:void 0;for(i=n.length>3&&"function"==typeof i?(u--,i):void 0,o&&ai(r[0],r[1],o)&&(i=u<3?void 0:i,u=1),t=dn(t);++e<u;){var f=r[e];f&&n(t,f,e,i)}return t}))}function xu(n,t){return function(r,e){if(null==r)return r;if(!To(r))return n(r,e);for(var u=r.length,i=t?u:-1,o=dn(r);(t?i--:++i<u)&&!1!==e(o[i],i,o););return r}}function ju(n){return function(t,r,e){for(var u=-1,i=dn(t),o=e(t),f=o.length;f--;){var a=o[n?f:++u];if(!1===r(i[a],a,i))break}return t}}function Au(n){return function(t){var r=Dt(t=cf(t))?Kt(t):void 0,e=r?r[0]:t.charAt(0),u=r?lu(r,1).join(""):t.slice(1);return e[n]()+u}}function Ou(n){return function(t){return pt(Nf(Wf(t).replace(zn,"")),n,"")}}function ku(n){return function(){var t=arguments;switch(t.length){case 0:return new n;case 1:return new n(t[0]);case 2:return new n(t[0],t[1]);case 3:return new n(t[0],t[1],t[2]);case 4:return new n(t[0],t[1],t[2],t[3]);case 5:return new n(t[0],t[1],t[2],t[3],t[4]);case 6:return new n(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new n(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Sr(n.prototype),e=n.apply(r,t);return qo(e)?e:r}}function Eu(n){return function(t,r,e){var u=dn(t);if(!To(t)){var i=Yu(r,3);t=xf(t),r=function(n){return i(u[n],n,u)}}var o=n(t,r,e);return o>-1?u[i?t[o]:o]:void 0}}function Iu(n){return Zu((function(t){var r=t.length,u=r,i=Cr.prototype.thru;for(n&&t.reverse();u--;){var o=t[u];if("function"!=typeof o)throw new yn(e);if(i&&!f&&"wrapper"==Hu(o))var f=new Cr([],!0)}for(u=f?u:r;++u<r;){var a=Hu(o=t[u]),c="wrapper"==a?Gu(o):void 0;f=c&&li(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?f[Hu(c[0])].apply(f,c[3]):1==o.length&&li(o)?f[a]():f.thru(o)}return function(){var n=arguments,e=n[0];if(f&&1==n.length&&Wo(e))return f.plant(e).value();for(var u=0,i=r?t[u].apply(this,n):e;++u<r;)i=t[u].call(this,i);return i}}))}function Ru(n,t,r,e,u,i,o,f,a,c){var l=128&t,s=1&t,v=2&t,h=24&t,p=512&t,d=v?void 0:ku(n);return function _(){for(var g=arguments.length,y=V(g),b=g;b--;)y[b]=arguments[b];if(h)var w=Ju(_),m=Ut(y,w);if(e&&(y=_u(y,e,u,h)),i&&(y=gu(y,i,o,h)),g-=m,h&&g<c){var x=Nt(y,w);return Tu(n,t,Ru,_.placeholder,r,y,x,f,a,c-g)}var j=s?r:this,A=v?j[n]:n;return g=y.length,f?y=gi(y,f):p&&g>1&&y.reverse(),l&&a<g&&(y.length=a),this&&this!==Kn&&this instanceof _&&(A=d||ku(A)),A.apply(j,y)}}function Su(n,t){return function(r,e){return function(n,t,r,e){return ce(n,(function(n,u,i){t(e,r(n),u,i)})),e}(r,n,t(e),{})}}function zu(n,t){return function(r,e){var u;if(void 0===r&&void 0===e)return t;if(void 0!==r&&(u=r),void 0!==e){if(void 0===u)return e;"string"==typeof r||"string"==typeof e?(r=Qe(r),e=Qe(e)):(r=Ye(r),e=Ye(e)),u=n(r,e)}return u}}function Cu(n){return Zu((function(t){return t=vt(t,St(Yu())),De((function(r){var e=this;return n(t,(function(n){return ut(n,e,r)}))}))}))}function Lu(n,t){var r=(t=void 0===t?" ":Qe(t)).length;if(r<2)return r?Me(t,n):t;var e=Me(t,nr(n/Zt(t)));return Dt(t)?lu(Kt(e),0,n).join(""):e.slice(0,n)}function Wu(n){return function(t,r,e){return e&&"number"!=typeof e&&ai(t,r,e)&&(r=e=void 0),t=ef(t),void 0===r?(r=t,t=0):r=ef(r),function(n,t,r,e){for(var u=-1,i=fr(nr((t-n)/(r||1)),0),o=V(i);i--;)o[e?i:++u]=n,n+=r;return o}(t,r,e=void 0===e?t<r?1:-1:ef(e),n)}}function Uu(n){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=ff(t),r=ff(r)),n(t,r)}}function Tu(n,t,r,e,u,i,o,f,a,c){var l=8&t;t|=l?32:64,4&(t&=~(l?64:32))||(t&=-4);var s=[n,t,u,l?i:void 0,l?o:void 0,l?void 0:i,l?void 0:o,f,a,c],v=r.apply(void 0,s);return li(n)&&bi(v,s),v.placeholder=e,xi(v,n,t)}function Bu(n){var t=pn[n];return function(n,r){if(n=ff(n),(r=null==r?0:ar(uf(r),292))&&ur(n)){var e=(cf(n)+"e").split("e");return+((e=(cf(t(e[0]+"e"+(+e[1]+r)))+"e").split("e"))[0]+"e"+(+e[1]-r))}return t(n)}}var Mu=_r&&1/Ft(new _r([,-0]))[1]==1/0?function(n){return new _r(n)}:Xf;function Du(n){return function(t){var r=ei(t);return r==h?Pt(t):r==g?qt(t):function(n,t){return vt(t,(function(t){return[t,n[t]]}))}(t,n(t))}}function Pu(n,t,r,i,o,f,a,c){var l=2&t;if(!l&&"function"!=typeof n)throw new yn(e);var s=i?i.length:0;if(s||(t&=-97,i=o=void 0),a=void 0===a?a:fr(uf(a),0),c=void 0===c?c:uf(c),s-=o?o.length:0,64&t){var v=i,h=o;i=o=void 0}var p=l?void 0:Gu(n),d=[n,t,r,i,o,v,h,f,a,c];if(p&&function(n,t){var r=n[1],e=t[1],i=r|e,o=i<131,f=128==e&&8==r||128==e&&256==r&&n[7].length<=t[8]||384==e&&t[7].length<=t[8]&&8==r;if(!o&&!f)return n;1&e&&(n[2]=t[2],i|=1&r?0:4);var a=t[3];if(a){var c=n[3];n[3]=c?_u(c,a,t[4]):a,n[4]=c?Nt(n[3],u):t[4]}(a=t[5])&&(c=n[5],n[5]=c?gu(c,a,t[6]):a,n[6]=c?Nt(n[5],u):t[6]);(a=t[7])&&(n[7]=a);128&e&&(n[8]=null==n[8]?t[8]:ar(n[8],t[8]));null==n[9]&&(n[9]=t[9]);n[0]=t[0],n[1]=i}(d,p),n=d[0],t=d[1],r=d[2],i=d[3],o=d[4],!(c=d[9]=void 0===d[9]?l?0:n.length:fr(d[9]-s,0))&&24&t&&(t&=-25),t&&1!=t)_=8==t||16==t?function(n,t,r){var e=ku(n);return function u(){for(var i=arguments.length,o=V(i),f=i,a=Ju(u);f--;)o[f]=arguments[f];var c=i<3&&o[0]!==a&&o[i-1]!==a?[]:Nt(o,a);if((i-=c.length)<r)return Tu(n,t,Ru,u.placeholder,void 0,o,c,void 0,void 0,r-i);var l=this&&this!==Kn&&this instanceof u?e:n;return ut(l,this,o)}}(n,t,c):32!=t&&33!=t||o.length?Ru.apply(void 0,d):function(n,t,r,e){var u=1&t,i=ku(n);return function t(){for(var o=-1,f=arguments.length,a=-1,c=e.length,l=V(c+f),s=this&&this!==Kn&&this instanceof t?i:n;++a<c;)l[a]=e[a];for(;f--;)l[a++]=arguments[++o];return ut(s,u?r:this,l)}}(n,t,r,i);else var _=function(n,t,r){var e=1&t,u=ku(n);return function t(){var i=this&&this!==Kn&&this instanceof t?u:n;return i.apply(e?r:this,arguments)}}(n,t,r);return xi((p?Fe:bi)(_,d),n,t)}function $u(n,t,r,e){return void 0===n||So(n,mn[r])&&!An.call(e,r)?t:n}function Nu(n,t,r,e,u,i){return qo(n)&&qo(t)&&(i.set(t,n),ze(n,t,void 0,Nu,i),i.delete(t)),n}function Fu(n){return Go(n)?void 0:n}function qu(n,t,r,e,u,i){var o=1&r,f=n.length,a=t.length;if(f!=a&&!(o&&a>f))return!1;var c=i.get(n),l=i.get(t);if(c&&l)return c==t&&l==n;var s=-1,v=!0,h=2&r?new Br:void 0;for(i.set(n,t),i.set(t,n);++s<f;){var p=n[s],d=t[s];if(e)var _=o?e(d,p,s,t,n,i):e(p,d,s,n,t,i);if(void 0!==_){if(_)continue;v=!1;break}if(h){if(!_t(t,(function(n,t){if(!Ct(h,t)&&(p===n||u(p,n,r,e,i)))return h.push(t)}))){v=!1;break}}else if(p!==d&&!u(p,d,r,e,i)){v=!1;break}}return i.delete(n),i.delete(t),v}function Zu(n){return mi(di(n,void 0,Wi),n+"")}function Ku(n){return he(n,xf,ti)}function Vu(n){return he(n,jf,ri)}var Gu=br?function(n){return br.get(n)}:Xf;function Hu(n){for(var t=n.name+"",r=wr[t],e=An.call(wr,t)?r.length:0;e--;){var u=r[e],i=u.func;if(null==i||i==n)return u.name}return t}function Ju(n){return(An.call(Rr,"placeholder")?Rr:n).placeholder}function Yu(){var n=Rr.iteratee||Hf;return n=n===Hf?Ae:n,arguments.length?n(arguments[0],arguments[1]):n}function Qu(n,t){var r,e,u=n.__data__;return("string"==(e=typeof(r=t))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==r:null===r)?u["string"==typeof t?"string":"hash"]:u.map}function Xu(n){for(var t=xf(n),r=t.length;r--;){var e=t[r],u=n[e];t[r]=[e,u,hi(u)]}return t}function ni(n,t){var r=function(n,t){return null==n?void 0:n[t]}(n,t);return je(r)?r:void 0}var ti=rr?function(n){return null==n?[]:(n=dn(n),ct(rr(n),(function(t){return Gn.call(n,t)})))}:oa,ri=rr?function(n){for(var t=[];n;)ht(t,ti(n)),n=Zn(n);return t}:oa,ei=pe;function ui(n,t,r){for(var e=-1,u=(t=au(t,n)).length,i=!1;++e<u;){var o=ki(t[e]);if(!(i=null!=n&&r(n,o)))break;n=n[o]}return i||++e!=u?i:!!(u=null==n?0:n.length)&&Fo(u)&&fi(o,u)&&(Wo(n)||Lo(n))}function ii(n){return"function"!=typeof n.constructor||vi(n)?{}:Sr(Zn(n))}function oi(n){return Wo(n)||Lo(n)||!!(Yn&&n&&n[Yn])}function fi(n,t){var r=typeof n;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&fn.test(n))&&n>-1&&n%1==0&&n<t}function ai(n,t,r){if(!qo(r))return!1;var e=typeof t;return!!("number"==e?To(r)&&fi(t,r.length):"string"==e&&t in r)&&So(r[t],n)}function ci(n,t){if(Wo(n))return!1;var r=typeof n;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=n&&!Qo(n))||(N.test(n)||!$.test(n)||null!=t&&n in dn(t))}function li(n){var t=Hu(n),r=Rr[t];if("function"!=typeof r||!(t in Lr.prototype))return!1;if(n===r)return!0;var e=Gu(r);return!!e&&n===e[0]}(hr&&ei(new hr(new ArrayBuffer(1)))!=x||pr&&ei(new pr)!=h||dr&&"[object Promise]"!=ei(dr.resolve())||_r&&ei(new _r)!=g||gr&&ei(new gr)!=w)&&(ei=function(n){var t=pe(n),r=t==d?n.constructor:void 0,e=r?Ei(r):"";if(e)switch(e){case mr:return x;case xr:return h;case jr:return"[object Promise]";case Ar:return g;case Or:return w}return t});var si=xn?$o:fa;function vi(n){var t=n&&n.constructor;return n===("function"==typeof t&&t.prototype||mn)}function hi(n){return n==n&&!qo(n)}function pi(n,t){return function(r){return null!=r&&(r[n]===t&&(void 0!==t||n in dn(r)))}}function di(n,t,r){return t=fr(void 0===t?n.length-1:t,0),function(){for(var e=arguments,u=-1,i=fr(e.length-t,0),o=V(i);++u<i;)o[u]=e[t+u];u=-1;for(var f=V(t+1);++u<t;)f[u]=e[u];return f[t]=r(o),ut(n,this,f)}}function _i(n,t){return t.length<2?n:ve(n,Ke(t,0,-1))}function gi(n,t){for(var r=n.length,e=ar(t.length,r),u=yu(n);e--;){var i=t[e];n[e]=fi(i,r)?u[i]:void 0}return n}function yi(n,t){if(("constructor"!==t||"function"!=typeof n[t])&&"__proto__"!=t)return n[t]}var bi=ji(Fe),wi=Xt||function(n,t){return Kn.setTimeout(n,t)},mi=ji(qe);function xi(n,t,r){var e=t+"";return mi(n,function(n,t){var r=t.length;if(!r)return n;var e=r-1;return t[e]=(r>1?"& ":"")+t[e],t=t.join(r>2?", ":" "),n.replace(G,"{\n/* [wrapped with "+t+"] */\n")}(e,function(n,t){return ot(i,(function(r){var e="_."+r[0];t&r[1]&&!lt(n,e)&&n.push(e)})),n.sort()}(function(n){var t=n.match(H);return t?t[1].split(J):[]}(e),r)))}function ji(n){var t=0,r=0;return function(){var e=cr(),u=16-(e-r);if(r=e,u>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(void 0,arguments)}}function Ai(n,t){var r=-1,e=n.length,u=e-1;for(t=void 0===t?e:t;++r<t;){var i=Be(r,u),o=n[i];n[i]=n[r],n[r]=o}return n.length=t,n}var Oi=function(n){var t=Ao(n,(function(n){return 500===r.size&&r.clear(),n})),r=t.cache;return t}((function(n){var t=[];return 46===n.charCodeAt(0)&&t.push(""),n.replace(F,(function(n,r,e,u){t.push(e?u.replace(X,"$1"):r||n)})),t}));function ki(n){if("string"==typeof n||Qo(n))return n;var t=n+"";return"0"==t&&1/n==-1/0?"-0":t}function Ei(n){if(null!=n){try{return jn.call(n)}catch(n){}try{return n+""}catch(n){}}return""}function Ii(n){if(n instanceof Lr)return n.clone();var t=new Cr(n.__wrapped__,n.__chain__);return t.__actions__=yu(n.__actions__),t.__index__=n.__index__,t.__values__=n.__values__,t}var Ri=De((function(n,t){return Bo(n)?ne(n,oe(t,1,Bo,!0)):[]})),Si=De((function(n,t){var r=Di(t);return Bo(r)&&(r=void 0),Bo(n)?ne(n,oe(t,1,Bo,!0),Yu(r,2)):[]})),zi=De((function(n,t){var r=Di(t);return Bo(r)&&(r=void 0),Bo(n)?ne(n,oe(t,1,Bo,!0),void 0,r):[]}));function Ci(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:uf(r);return u<0&&(u=fr(e+u,0)),bt(n,Yu(t,3),u)}function Li(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=e-1;return void 0!==r&&(u=uf(r),u=r<0?fr(e+u,0):ar(u,e-1)),bt(n,Yu(t,3),u,!0)}function Wi(n){return(null==n?0:n.length)?oe(n,1):[]}function Ui(n){return n&&n.length?n[0]:void 0}var Ti=De((function(n){var t=vt(n,ou);return t.length&&t[0]===n[0]?ye(t):[]})),Bi=De((function(n){var t=Di(n),r=vt(n,ou);return t===Di(r)?t=void 0:r.pop(),r.length&&r[0]===n[0]?ye(r,Yu(t,2)):[]})),Mi=De((function(n){var t=Di(n),r=vt(n,ou);return(t="function"==typeof t?t:void 0)&&r.pop(),r.length&&r[0]===n[0]?ye(r,void 0,t):[]}));function Di(n){var t=null==n?0:n.length;return t?n[t-1]:void 0}var Pi=De($i);function $i(n,t){return n&&n.length&&t&&t.length?Ue(n,t):n}var Ni=Zu((function(n,t){var r=null==n?0:n.length,e=Hr(n,t);return Te(n,vt(t,(function(n){return fi(n,r)?+n:n})).sort(du)),e}));function Fi(n){return null==n?n:vr.call(n)}var qi=De((function(n){return Xe(oe(n,1,Bo,!0))})),Zi=De((function(n){var t=Di(n);return Bo(t)&&(t=void 0),Xe(oe(n,1,Bo,!0),Yu(t,2))})),Ki=De((function(n){var t=Di(n);return t="function"==typeof t?t:void 0,Xe(oe(n,1,Bo,!0),void 0,t)}));function Vi(n){if(!n||!n.length)return[];var t=0;return n=ct(n,(function(n){if(Bo(n))return t=fr(n.length,t),!0})),It(t,(function(t){return vt(n,At(t))}))}function Gi(n,t){if(!n||!n.length)return[];var r=Vi(n);return null==t?r:vt(r,(function(n){return ut(t,void 0,n)}))}var Hi=De((function(n,t){return Bo(n)?ne(n,t):[]})),Ji=De((function(n){return uu(ct(n,Bo))})),Yi=De((function(n){var t=Di(n);return Bo(t)&&(t=void 0),uu(ct(n,Bo),Yu(t,2))})),Qi=De((function(n){var t=Di(n);return t="function"==typeof t?t:void 0,uu(ct(n,Bo),void 0,t)})),Xi=De(Vi);var no=De((function(n){var t=n.length,r=t>1?n[t-1]:void 0;return r="function"==typeof r?(n.pop(),r):void 0,Gi(n,r)}));function to(n){var t=Rr(n);return t.__chain__=!0,t}function ro(n,t){return t(n)}var eo=Zu((function(n){var t=n.length,r=t?n[0]:0,e=this.__wrapped__,u=function(t){return Hr(t,n)};return!(t>1||this.__actions__.length)&&e instanceof Lr&&fi(r)?((e=e.slice(r,+r+(t?1:0))).__actions__.push({func:ro,args:[u],thisArg:void 0}),new Cr(e,this.__chain__).thru((function(n){return t&&!n.length&&n.push(void 0),n}))):this.thru(u)}));var uo=wu((function(n,t,r){An.call(n,r)?++n[r]:Gr(n,r,1)}));var io=Eu(Ci),oo=Eu(Li);function fo(n,t){return(Wo(n)?ot:te)(n,Yu(t,3))}function ao(n,t){return(Wo(n)?ft:re)(n,Yu(t,3))}var co=wu((function(n,t,r){An.call(n,r)?n[r].push(t):Gr(n,r,[t])}));var lo=De((function(n,t,r){var e=-1,u="function"==typeof t,i=To(n)?V(n.length):[];return te(n,(function(n){i[++e]=u?ut(t,n,r):be(n,t,r)})),i})),so=wu((function(n,t,r){Gr(n,r,t)}));function vo(n,t){return(Wo(n)?vt:Ie)(n,Yu(t,3))}var ho=wu((function(n,t,r){n[r?0:1].push(t)}),(function(){return[[],[]]}));var po=De((function(n,t){if(null==n)return[];var r=t.length;return r>1&&ai(n,t[0],t[1])?t=[]:r>2&&ai(t[0],t[1],t[2])&&(t=[t[0]]),Le(n,oe(t,1),[])})),_o=Qt||function(){return Kn.Date.now()};function go(n,t,r){return t=r?void 0:t,Pu(n,128,void 0,void 0,void 0,void 0,t=n&&null==t?n.length:t)}function yo(n,t){var r;if("function"!=typeof t)throw new yn(e);return n=uf(n),function(){return--n>0&&(r=t.apply(this,arguments)),n<=1&&(t=void 0),r}}var bo=De((function(n,t,r){var e=1;if(r.length){var u=Nt(r,Ju(bo));e|=32}return Pu(n,e,t,r,u)})),wo=De((function(n,t,r){var e=3;if(r.length){var u=Nt(r,Ju(wo));e|=32}return Pu(t,e,n,r,u)}));function mo(n,t,r){var u,i,o,f,a,c,l=0,s=!1,v=!1,h=!0;if("function"!=typeof n)throw new yn(e);function p(t){var r=u,e=i;return u=i=void 0,l=t,f=n.apply(e,r)}function d(n){return l=n,a=wi(g,t),s?p(n):f}function _(n){var r=n-c;return void 0===c||r>=t||r<0||v&&n-l>=o}function g(){var n=_o();if(_(n))return y(n);a=wi(g,function(n){var r=t-(n-c);return v?ar(r,o-(n-l)):r}(n))}function y(n){return a=void 0,h&&u?p(n):(u=i=void 0,f)}function b(){var n=_o(),r=_(n);if(u=arguments,i=this,c=n,r){if(void 0===a)return d(c);if(v)return su(a),a=wi(g,t),p(c)}return void 0===a&&(a=wi(g,t)),f}return t=ff(t)||0,qo(r)&&(s=!!r.leading,o=(v="maxWait"in r)?fr(ff(r.maxWait)||0,t):o,h="trailing"in r?!!r.trailing:h),b.cancel=function(){void 0!==a&&su(a),l=0,u=c=i=a=void 0},b.flush=function(){return void 0===a?f:y(_o())},b}var xo=De((function(n,t){return Xr(n,1,t)})),jo=De((function(n,t,r){return Xr(n,ff(t)||0,r)}));function Ao(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new yn(e);var r=function(){var e=arguments,u=t?t.apply(this,e):e[0],i=r.cache;if(i.has(u))return i.get(u);var o=n.apply(this,e);return r.cache=i.set(u,o)||i,o};return r.cache=new(Ao.Cache||Tr),r}function Oo(n){if("function"!=typeof n)throw new yn(e);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}Ao.Cache=Tr;var ko=cu((function(n,t){var r=(t=1==t.length&&Wo(t[0])?vt(t[0],St(Yu())):vt(oe(t,1),St(Yu()))).length;return De((function(e){for(var u=-1,i=ar(e.length,r);++u<i;)e[u]=t[u].call(this,e[u]);return ut(n,this,e)}))})),Eo=De((function(n,t){return Pu(n,32,void 0,t,Nt(t,Ju(Eo)))})),Io=De((function(n,t){return Pu(n,64,void 0,t,Nt(t,Ju(Io)))})),Ro=Zu((function(n,t){return Pu(n,256,void 0,void 0,void 0,t)}));function So(n,t){return n===t||n!=n&&t!=t}var zo=Uu(de),Co=Uu((function(n,t){return n>=t})),Lo=we(function(){return arguments}())?we:function(n){return Zo(n)&&An.call(n,"callee")&&!Gn.call(n,"callee")},Wo=V.isArray,Uo=Qn?St(Qn):function(n){return Zo(n)&&pe(n)==m};function To(n){return null!=n&&Fo(n.length)&&!$o(n)}function Bo(n){return Zo(n)&&To(n)}var Mo=er||fa,Do=Xn?St(Xn):function(n){return Zo(n)&&pe(n)==c};function Po(n){if(!Zo(n))return!1;var t=pe(n);return t==l||"[object DOMException]"==t||"string"==typeof n.message&&"string"==typeof n.name&&!Go(n)}function $o(n){if(!qo(n))return!1;var t=pe(n);return t==s||t==v||"[object AsyncFunction]"==t||"[object Proxy]"==t}function No(n){return"number"==typeof n&&n==uf(n)}function Fo(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=9007199254740991}function qo(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function Zo(n){return null!=n&&"object"==typeof n}var Ko=nt?St(nt):function(n){return Zo(n)&&ei(n)==h};function Vo(n){return"number"==typeof n||Zo(n)&&pe(n)==p}function Go(n){if(!Zo(n)||pe(n)!=d)return!1;var t=Zn(n);if(null===t)return!0;var r=An.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&jn.call(r)==In}var Ho=tt?St(tt):function(n){return Zo(n)&&pe(n)==_};var Jo=rt?St(rt):function(n){return Zo(n)&&ei(n)==g};function Yo(n){return"string"==typeof n||!Wo(n)&&Zo(n)&&pe(n)==y}function Qo(n){return"symbol"==typeof n||Zo(n)&&pe(n)==b}var Xo=et?St(et):function(n){return Zo(n)&&Fo(n.length)&&!!Dn[pe(n)]};var nf=Uu(Ee),tf=Uu((function(n,t){return n<=t}));function rf(n){if(!n)return[];if(To(n))return Yo(n)?Kt(n):yu(n);if(gt&&n[gt])return function(n){for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r}(n[gt]());var t=ei(n);return(t==h?Pt:t==g?Ft:zf)(n)}function ef(n){return n?(n=ff(n))===1/0||n===-1/0?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}function uf(n){var t=ef(n),r=t%1;return t==t?r?t-r:t:0}function of(n){return n?Jr(uf(n),0,4294967295):0}function ff(n){if("number"==typeof n)return n;if(Qo(n))return NaN;if(qo(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=qo(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=Rt(n);var r=en.test(n);return r||on.test(n)?Fn(n.slice(2),r?2:8):rn.test(n)?NaN:+n}function af(n){return bu(n,jf(n))}function cf(n){return null==n?"":Qe(n)}var lf=mu((function(n,t){if(vi(t)||To(t))bu(t,xf(t),n);else for(var r in t)An.call(t,r)&&qr(n,r,t[r])})),sf=mu((function(n,t){bu(t,jf(t),n)})),vf=mu((function(n,t,r,e){bu(t,jf(t),n,e)})),hf=mu((function(n,t,r,e){bu(t,xf(t),n,e)})),pf=Zu(Hr);var df=De((function(n,t){n=dn(n);var r=-1,e=t.length,u=e>2?t[2]:void 0;for(u&&ai(t[0],t[1],u)&&(e=1);++r<e;)for(var i=t[r],o=jf(i),f=-1,a=o.length;++f<a;){var c=o[f],l=n[c];(void 0===l||So(l,mn[c])&&!An.call(n,c))&&(n[c]=i[c])}return n})),_f=De((function(n){return n.push(void 0,Nu),ut(Of,void 0,n)}));function gf(n,t,r){var e=null==n?void 0:ve(n,t);return void 0===e?r:e}function yf(n,t){return null!=n&&ui(n,t,ge)}var bf=Su((function(n,t,r){null!=t&&"function"!=typeof t.toString&&(t=En.call(t)),n[t]=r}),Zf(Gf)),wf=Su((function(n,t,r){null!=t&&"function"!=typeof t.toString&&(t=En.call(t)),An.call(n,t)?n[t].push(r):n[t]=[r]}),Yu),mf=De(be);function xf(n){return To(n)?Dr(n):Oe(n)}function jf(n){return To(n)?Dr(n,!0):ke(n)}var Af=mu((function(n,t,r){ze(n,t,r)})),Of=mu((function(n,t,r,e){ze(n,t,r,e)})),kf=Zu((function(n,t){var r={};if(null==n)return r;var e=!1;t=vt(t,(function(t){return t=au(t,n),e||(e=t.length>1),t})),bu(n,Vu(n),r),e&&(r=Yr(r,7,Fu));for(var u=t.length;u--;)nu(r,t[u]);return r}));var Ef=Zu((function(n,t){return null==n?{}:function(n,t){return We(n,t,(function(t,r){return yf(n,r)}))}(n,t)}));function If(n,t){if(null==n)return{};var r=vt(Vu(n),(function(n){return[n]}));return t=Yu(t),We(n,r,(function(n,r){return t(n,r[0])}))}var Rf=Du(xf),Sf=Du(jf);function zf(n){return null==n?[]:zt(n,xf(n))}var Cf=Ou((function(n,t,r){return t=t.toLowerCase(),n+(r?Lf(t):t)}));function Lf(n){return $f(cf(n).toLowerCase())}function Wf(n){return(n=cf(n))&&n.replace(an,Tt).replace(Cn,"")}var Uf=Ou((function(n,t,r){return n+(r?"-":"")+t.toLowerCase()})),Tf=Ou((function(n,t,r){return n+(r?" ":"")+t.toLowerCase()})),Bf=Au("toLowerCase");var Mf=Ou((function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}));var Df=Ou((function(n,t,r){return n+(r?" ":"")+$f(t)}));var Pf=Ou((function(n,t,r){return n+(r?" ":"")+t.toUpperCase()})),$f=Au("toUpperCase");function Nf(n,t,r){return n=cf(n),void 0===(t=r?void 0:t)?function(n){return Tn.test(n)}(n)?function(n){return n.match(Wn)||[]}(n):function(n){return n.match(Y)||[]}(n):n.match(t)||[]}var Ff=De((function(n,t){try{return ut(n,void 0,t)}catch(n){return Po(n)?n:new vn(n)}})),qf=Zu((function(n,t){return ot(t,(function(t){t=ki(t),Gr(n,t,bo(n[t],n))})),n}));function Zf(n){return function(){return n}}var Kf=Iu(),Vf=Iu(!0);function Gf(n){return n}function Hf(n){return Ae("function"==typeof n?n:Yr(n,1))}var Jf=De((function(n,t){return function(r){return be(r,n,t)}})),Yf=De((function(n,t){return function(r){return be(n,r,t)}}));function Qf(n,t,r){var e=xf(t),u=se(t,e);null!=r||qo(t)&&(u.length||!e.length)||(r=t,t=n,n=this,u=se(t,xf(t)));var i=!(qo(r)&&"chain"in r&&!r.chain),o=$o(n);return ot(u,(function(r){var e=t[r];n[r]=e,o&&(n.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=n(this.__wrapped__),u=r.__actions__=yu(this.__actions__);return u.push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,ht([this.value()],arguments))})})),n}function Xf(){}var na=Cu(vt),ta=Cu(at),ra=Cu(_t);function ea(n){return ci(n)?At(ki(n)):function(n){return function(t){return ve(t,n)}}(n)}var ua=Wu(),ia=Wu(!0);function oa(){return[]}function fa(){return!1}var aa=zu((function(n,t){return n+t}),0),ca=Bu("ceil"),la=zu((function(n,t){return n/t}),1),sa=Bu("floor");var va,ha=zu((function(n,t){return n*t}),1),pa=Bu("round"),da=zu((function(n,t){return n-t}),0);return Rr.after=function(n,t){if("function"!=typeof t)throw new yn(e);return n=uf(n),function(){if(--n<1)return t.apply(this,arguments)}},Rr.ary=go,Rr.assign=lf,Rr.assignIn=sf,Rr.assignInWith=vf,Rr.assignWith=hf,Rr.at=pf,Rr.before=yo,Rr.bind=bo,Rr.bindAll=qf,Rr.bindKey=wo,Rr.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return Wo(n)?n:[n]},Rr.chain=to,Rr.chunk=function(n,t,r){t=(r?ai(n,t,r):void 0===t)?1:fr(uf(t),0);var e=null==n?0:n.length;if(!e||t<1)return[];for(var u=0,i=0,o=V(nr(e/t));u<e;)o[i++]=Ke(n,u,u+=t);return o},Rr.compact=function(n){for(var t=-1,r=null==n?0:n.length,e=0,u=[];++t<r;){var i=n[t];i&&(u[e++]=i)}return u},Rr.concat=function(){var n=arguments.length;if(!n)return[];for(var t=V(n-1),r=arguments[0],e=n;e--;)t[e-1]=arguments[e];return ht(Wo(r)?yu(r):[r],oe(t,1))},Rr.cond=function(n){var t=null==n?0:n.length,r=Yu();return n=t?vt(n,(function(n){if("function"!=typeof n[1])throw new yn(e);return[r(n[0]),n[1]]})):[],De((function(r){for(var e=-1;++e<t;){var u=n[e];if(ut(u[0],this,r))return ut(u[1],this,r)}}))},Rr.conforms=function(n){return function(n){var t=xf(n);return function(r){return Qr(r,n,t)}}(Yr(n,1))},Rr.constant=Zf,Rr.countBy=uo,Rr.create=function(n,t){var r=Sr(n);return null==t?r:Vr(r,t)},Rr.curry=function n(t,r,e){var u=Pu(t,8,void 0,void 0,void 0,void 0,void 0,r=e?void 0:r);return u.placeholder=n.placeholder,u},Rr.curryRight=function n(t,r,e){var u=Pu(t,16,void 0,void 0,void 0,void 0,void 0,r=e?void 0:r);return u.placeholder=n.placeholder,u},Rr.debounce=mo,Rr.defaults=df,Rr.defaultsDeep=_f,Rr.defer=xo,Rr.delay=jo,Rr.difference=Ri,Rr.differenceBy=Si,Rr.differenceWith=zi,Rr.drop=function(n,t,r){var e=null==n?0:n.length;return e?Ke(n,(t=r||void 0===t?1:uf(t))<0?0:t,e):[]},Rr.dropRight=function(n,t,r){var e=null==n?0:n.length;return e?Ke(n,0,(t=e-(t=r||void 0===t?1:uf(t)))<0?0:t):[]},Rr.dropRightWhile=function(n,t){return n&&n.length?ru(n,Yu(t,3),!0,!0):[]},Rr.dropWhile=function(n,t){return n&&n.length?ru(n,Yu(t,3),!0):[]},Rr.fill=function(n,t,r,e){var u=null==n?0:n.length;return u?(r&&"number"!=typeof r&&ai(n,t,r)&&(r=0,e=u),function(n,t,r,e){var u=n.length;for((r=uf(r))<0&&(r=-r>u?0:u+r),(e=void 0===e||e>u?u:uf(e))<0&&(e+=u),e=r>e?0:of(e);r<e;)n[r++]=t;return n}(n,t,r,e)):[]},Rr.filter=function(n,t){return(Wo(n)?ct:ie)(n,Yu(t,3))},Rr.flatMap=function(n,t){return oe(vo(n,t),1)},Rr.flatMapDeep=function(n,t){return oe(vo(n,t),1/0)},Rr.flatMapDepth=function(n,t,r){return r=void 0===r?1:uf(r),oe(vo(n,t),r)},Rr.flatten=Wi,Rr.flattenDeep=function(n){return(null==n?0:n.length)?oe(n,1/0):[]},Rr.flattenDepth=function(n,t){return(null==n?0:n.length)?oe(n,t=void 0===t?1:uf(t)):[]},Rr.flip=function(n){return Pu(n,512)},Rr.flow=Kf,Rr.flowRight=Vf,Rr.fromPairs=function(n){for(var t=-1,r=null==n?0:n.length,e={};++t<r;){var u=n[t];e[u[0]]=u[1]}return e},Rr.functions=function(n){return null==n?[]:se(n,xf(n))},Rr.functionsIn=function(n){return null==n?[]:se(n,jf(n))},Rr.groupBy=co,Rr.initial=function(n){return(null==n?0:n.length)?Ke(n,0,-1):[]},Rr.intersection=Ti,Rr.intersectionBy=Bi,Rr.intersectionWith=Mi,Rr.invert=bf,Rr.invertBy=wf,Rr.invokeMap=lo,Rr.iteratee=Hf,Rr.keyBy=so,Rr.keys=xf,Rr.keysIn=jf,Rr.map=vo,Rr.mapKeys=function(n,t){var r={};return t=Yu(t,3),ce(n,(function(n,e,u){Gr(r,t(n,e,u),n)})),r},Rr.mapValues=function(n,t){var r={};return t=Yu(t,3),ce(n,(function(n,e,u){Gr(r,e,t(n,e,u))})),r},Rr.matches=function(n){return Re(Yr(n,1))},Rr.matchesProperty=function(n,t){return Se(n,Yr(t,1))},Rr.memoize=Ao,Rr.merge=Af,Rr.mergeWith=Of,Rr.method=Jf,Rr.methodOf=Yf,Rr.mixin=Qf,Rr.negate=Oo,Rr.nthArg=function(n){return n=uf(n),De((function(t){return Ce(t,n)}))},Rr.omit=kf,Rr.omitBy=function(n,t){return If(n,Oo(Yu(t)))},Rr.once=function(n){return yo(2,n)},Rr.orderBy=function(n,t,r,e){return null==n?[]:(Wo(t)||(t=null==t?[]:[t]),Wo(r=e?void 0:r)||(r=null==r?[]:[r]),Le(n,t,r))},Rr.over=na,Rr.overArgs=ko,Rr.overEvery=ta,Rr.overSome=ra,Rr.partial=Eo,Rr.partialRight=Io,Rr.partition=ho,Rr.pick=Ef,Rr.pickBy=If,Rr.property=ea,Rr.propertyOf=function(n){return function(t){return null==n?void 0:ve(n,t)}},Rr.pull=Pi,Rr.pullAll=$i,Rr.pullAllBy=function(n,t,r){return n&&n.length&&t&&t.length?Ue(n,t,Yu(r,2)):n},Rr.pullAllWith=function(n,t,r){return n&&n.length&&t&&t.length?Ue(n,t,void 0,r):n},Rr.pullAt=Ni,Rr.range=ua,Rr.rangeRight=ia,Rr.rearg=Ro,Rr.reject=function(n,t){return(Wo(n)?ct:ie)(n,Oo(Yu(t,3)))},Rr.remove=function(n,t){var r=[];if(!n||!n.length)return r;var e=-1,u=[],i=n.length;for(t=Yu(t,3);++e<i;){var o=n[e];t(o,e,n)&&(r.push(o),u.push(e))}return Te(n,u),r},Rr.rest=function(n,t){if("function"!=typeof n)throw new yn(e);return De(n,t=void 0===t?t:uf(t))},Rr.reverse=Fi,Rr.sampleSize=function(n,t,r){return t=(r?ai(n,t,r):void 0===t)?1:uf(t),(Wo(n)?$r:$e)(n,t)},Rr.set=function(n,t,r){return null==n?n:Ne(n,t,r)},Rr.setWith=function(n,t,r,e){return e="function"==typeof e?e:void 0,null==n?n:Ne(n,t,r,e)},Rr.shuffle=function(n){return(Wo(n)?Nr:Ze)(n)},Rr.slice=function(n,t,r){var e=null==n?0:n.length;return e?(r&&"number"!=typeof r&&ai(n,t,r)?(t=0,r=e):(t=null==t?0:uf(t),r=void 0===r?e:uf(r)),Ke(n,t,r)):[]},Rr.sortBy=po,Rr.sortedUniq=function(n){return n&&n.length?Je(n):[]},Rr.sortedUniqBy=function(n,t){return n&&n.length?Je(n,Yu(t,2)):[]},Rr.split=function(n,t,r){return r&&"number"!=typeof r&&ai(n,t,r)&&(t=r=void 0),(r=void 0===r?4294967295:r>>>0)?(n=cf(n))&&("string"==typeof t||null!=t&&!Ho(t))&&!(t=Qe(t))&&Dt(n)?lu(Kt(n),0,r):n.split(t,r):[]},Rr.spread=function(n,t){if("function"!=typeof n)throw new yn(e);return t=null==t?0:fr(uf(t),0),De((function(r){var e=r[t],u=lu(r,0,t);return e&&ht(u,e),ut(n,this,u)}))},Rr.tail=function(n){var t=null==n?0:n.length;return t?Ke(n,1,t):[]},Rr.take=function(n,t,r){return n&&n.length?Ke(n,0,(t=r||void 0===t?1:uf(t))<0?0:t):[]},Rr.takeRight=function(n,t,r){var e=null==n?0:n.length;return e?Ke(n,(t=e-(t=r||void 0===t?1:uf(t)))<0?0:t,e):[]},Rr.takeRightWhile=function(n,t){return n&&n.length?ru(n,Yu(t,3),!1,!0):[]},Rr.takeWhile=function(n,t){return n&&n.length?ru(n,Yu(t,3)):[]},Rr.tap=function(n,t){return t(n),n},Rr.throttle=function(n,t,r){var u=!0,i=!0;if("function"!=typeof n)throw new yn(e);return qo(r)&&(u="leading"in r?!!r.leading:u,i="trailing"in r?!!r.trailing:i),mo(n,t,{leading:u,maxWait:t,trailing:i})},Rr.thru=ro,Rr.toArray=rf,Rr.toPairs=Rf,Rr.toPairsIn=Sf,Rr.toPath=function(n){return Wo(n)?vt(n,ki):Qo(n)?[n]:yu(Oi(cf(n)))},Rr.toPlainObject=af,Rr.transform=function(n,t,r){var e=Wo(n),u=e||Mo(n)||Xo(n);if(t=Yu(t,4),null==r){var i=n&&n.constructor;r=u?e?new i:[]:qo(n)&&$o(i)?Sr(Zn(n)):{}}return(u?ot:ce)(n,(function(n,e,u){return t(r,n,e,u)})),r},Rr.unary=function(n){return go(n,1)},Rr.union=qi,Rr.unionBy=Zi,Rr.unionWith=Ki,Rr.uniq=function(n){return n&&n.length?Xe(n):[]},Rr.uniqBy=function(n,t){return n&&n.length?Xe(n,Yu(t,2)):[]},Rr.uniqWith=function(n,t){return t="function"==typeof t?t:void 0,n&&n.length?Xe(n,void 0,t):[]},Rr.unset=function(n,t){return null==n||nu(n,t)},Rr.unzip=Vi,Rr.unzipWith=Gi,Rr.update=function(n,t,r){return null==n?n:tu(n,t,fu(r))},Rr.updateWith=function(n,t,r,e){return e="function"==typeof e?e:void 0,null==n?n:tu(n,t,fu(r),e)},Rr.values=zf,Rr.valuesIn=function(n){return null==n?[]:zt(n,jf(n))},Rr.without=Hi,Rr.words=Nf,Rr.wrap=function(n,t){return Eo(fu(t),n)},Rr.xor=Ji,Rr.xorBy=Yi,Rr.xorWith=Qi,Rr.zip=Xi,Rr.zipObject=function(n,t){return iu(n||[],t||[],qr)},Rr.zipObjectDeep=function(n,t){return iu(n||[],t||[],Ne)},Rr.zipWith=no,Rr.entries=Rf,Rr.entriesIn=Sf,Rr.extend=sf,Rr.extendWith=vf,Qf(Rr,Rr),Rr.add=aa,Rr.attempt=Ff,Rr.camelCase=Cf,Rr.capitalize=Lf,Rr.ceil=ca,Rr.clamp=function(n,t,r){return void 0===r&&(r=t,t=void 0),void 0!==r&&(r=(r=ff(r))==r?r:0),void 0!==t&&(t=(t=ff(t))==t?t:0),Jr(ff(n),t,r)},Rr.clone=function(n){return Yr(n,4)},Rr.cloneDeep=function(n){return Yr(n,5)},Rr.cloneDeepWith=function(n,t){return Yr(n,5,t="function"==typeof t?t:void 0)},Rr.cloneWith=function(n,t){return Yr(n,4,t="function"==typeof t?t:void 0)},Rr.conformsTo=function(n,t){return null==t||Qr(n,t,xf(t))},Rr.deburr=Wf,Rr.defaultTo=function(n,t){return null==n||n!=n?t:n},Rr.divide=la,Rr.endsWith=function(n,t,r){n=cf(n),t=Qe(t);var e=n.length,u=r=void 0===r?e:Jr(uf(r),0,e);return(r-=t.length)>=0&&n.slice(r,u)==t},Rr.eq=So,Rr.escape=function(n){return(n=cf(n))&&B.test(n)?n.replace(U,Bt):n},Rr.escapeRegExp=function(n){return(n=cf(n))&&Z.test(n)?n.replace(q,"\\$&"):n},Rr.every=function(n,t,r){var e=Wo(n)?at:ee;return r&&ai(n,t,r)&&(t=void 0),e(n,Yu(t,3))},Rr.find=io,Rr.findIndex=Ci,Rr.findKey=function(n,t){return yt(n,Yu(t,3),ce)},Rr.findLast=oo,Rr.findLastIndex=Li,Rr.findLastKey=function(n,t){return yt(n,Yu(t,3),le)},Rr.floor=sa,Rr.forEach=fo,Rr.forEachRight=ao,Rr.forIn=function(n,t){return null==n?n:fe(n,Yu(t,3),jf)},Rr.forInRight=function(n,t){return null==n?n:ae(n,Yu(t,3),jf)},Rr.forOwn=function(n,t){return n&&ce(n,Yu(t,3))},Rr.forOwnRight=function(n,t){return n&&le(n,Yu(t,3))},Rr.get=gf,Rr.gt=zo,Rr.gte=Co,Rr.has=function(n,t){return null!=n&&ui(n,t,_e)},Rr.hasIn=yf,Rr.head=Ui,Rr.identity=Gf,Rr.includes=function(n,t,r,e){n=To(n)?n:zf(n),r=r&&!e?uf(r):0;var u=n.length;return r<0&&(r=fr(u+r,0)),Yo(n)?r<=u&&n.indexOf(t,r)>-1:!!u&&wt(n,t,r)>-1},Rr.indexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:uf(r);return u<0&&(u=fr(e+u,0)),wt(n,t,u)},Rr.inRange=function(n,t,r){return t=ef(t),void 0===r?(r=t,t=0):r=ef(r),function(n,t,r){return n>=ar(t,r)&&n<fr(t,r)}(n=ff(n),t,r)},Rr.invoke=mf,Rr.isArguments=Lo,Rr.isArray=Wo,Rr.isArrayBuffer=Uo,Rr.isArrayLike=To,Rr.isArrayLikeObject=Bo,Rr.isBoolean=function(n){return!0===n||!1===n||Zo(n)&&pe(n)==a},Rr.isBuffer=Mo,Rr.isDate=Do,Rr.isElement=function(n){return Zo(n)&&1===n.nodeType&&!Go(n)},Rr.isEmpty=function(n){if(null==n)return!0;if(To(n)&&(Wo(n)||"string"==typeof n||"function"==typeof n.splice||Mo(n)||Xo(n)||Lo(n)))return!n.length;var t=ei(n);if(t==h||t==g)return!n.size;if(vi(n))return!Oe(n).length;for(var r in n)if(An.call(n,r))return!1;return!0},Rr.isEqual=function(n,t){return me(n,t)},Rr.isEqualWith=function(n,t,r){var e=(r="function"==typeof r?r:void 0)?r(n,t):void 0;return void 0===e?me(n,t,void 0,r):!!e},Rr.isError=Po,Rr.isFinite=function(n){return"number"==typeof n&&ur(n)},Rr.isFunction=$o,Rr.isInteger=No,Rr.isLength=Fo,Rr.isMap=Ko,Rr.isMatch=function(n,t){return n===t||xe(n,t,Xu(t))},Rr.isMatchWith=function(n,t,r){return r="function"==typeof r?r:void 0,xe(n,t,Xu(t),r)},Rr.isNaN=function(n){return Vo(n)&&n!=+n},Rr.isNative=function(n){if(si(n))throw new vn("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return je(n)},Rr.isNil=function(n){return null==n},Rr.isNull=function(n){return null===n},Rr.isNumber=Vo,Rr.isObject=qo,Rr.isObjectLike=Zo,Rr.isPlainObject=Go,Rr.isRegExp=Ho,Rr.isSafeInteger=function(n){return No(n)&&n>=-9007199254740991&&n<=9007199254740991},Rr.isSet=Jo,Rr.isString=Yo,Rr.isSymbol=Qo,Rr.isTypedArray=Xo,Rr.isUndefined=function(n){return void 0===n},Rr.isWeakMap=function(n){return Zo(n)&&ei(n)==w},Rr.isWeakSet=function(n){return Zo(n)&&"[object WeakSet]"==pe(n)},Rr.join=function(n,t){return null==n?"":ir.call(n,t)},Rr.kebabCase=Uf,Rr.last=Di,Rr.lastIndexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=e;return void 0!==r&&(u=(u=uf(r))<0?fr(e+u,0):ar(u,e-1)),t==t?function(n,t,r){for(var e=r+1;e--;)if(n[e]===t)return e;return e}(n,t,u):bt(n,xt,u,!0)},Rr.lowerCase=Tf,Rr.lowerFirst=Bf,Rr.lt=nf,Rr.lte=tf,Rr.max=function(n){return n&&n.length?ue(n,Gf,de):void 0},Rr.maxBy=function(n,t){return n&&n.length?ue(n,Yu(t,2),de):void 0},Rr.mean=function(n){return jt(n,Gf)},Rr.meanBy=function(n,t){return jt(n,Yu(t,2))},Rr.min=function(n){return n&&n.length?ue(n,Gf,Ee):void 0},Rr.minBy=function(n,t){return n&&n.length?ue(n,Yu(t,2),Ee):void 0},Rr.stubArray=oa,Rr.stubFalse=fa,Rr.stubObject=function(){return{}},Rr.stubString=function(){return""},Rr.stubTrue=function(){return!0},Rr.multiply=ha,Rr.nth=function(n,t){return n&&n.length?Ce(n,uf(t)):void 0},Rr.noConflict=function(){return Kn._===this&&(Kn._=Rn),this},Rr.noop=Xf,Rr.now=_o,Rr.pad=function(n,t,r){n=cf(n);var e=(t=uf(t))?Zt(n):0;if(!t||e>=t)return n;var u=(t-e)/2;return Lu(tr(u),r)+n+Lu(nr(u),r)},Rr.padEnd=function(n,t,r){n=cf(n);var e=(t=uf(t))?Zt(n):0;return t&&e<t?n+Lu(t-e,r):n},Rr.padStart=function(n,t,r){n=cf(n);var e=(t=uf(t))?Zt(n):0;return t&&e<t?Lu(t-e,r)+n:n},Rr.parseInt=function(n,t,r){return r||null==t?t=0:t&&(t=+t),lr(cf(n).replace(K,""),t||0)},Rr.random=function(n,t,r){if(r&&"boolean"!=typeof r&&ai(n,t,r)&&(t=r=void 0),void 0===r&&("boolean"==typeof t?(r=t,t=void 0):"boolean"==typeof n&&(r=n,n=void 0)),void 0===n&&void 0===t?(n=0,t=1):(n=ef(n),void 0===t?(t=n,n=0):t=ef(t)),n>t){var e=n;n=t,t=e}if(r||n%1||t%1){var u=sr();return ar(n+u*(t-n+Nn("1e-"+((u+"").length-1))),t)}return Be(n,t)},Rr.reduce=function(n,t,r){var e=Wo(n)?pt:kt,u=arguments.length<3;return e(n,Yu(t,4),r,u,te)},Rr.reduceRight=function(n,t,r){var e=Wo(n)?dt:kt,u=arguments.length<3;return e(n,Yu(t,4),r,u,re)},Rr.repeat=function(n,t,r){return t=(r?ai(n,t,r):void 0===t)?1:uf(t),Me(cf(n),t)},Rr.replace=function(){var n=arguments,t=cf(n[0]);return n.length<3?t:t.replace(n[1],n[2])},Rr.result=function(n,t,r){var e=-1,u=(t=au(t,n)).length;for(u||(u=1,n=void 0);++e<u;){var i=null==n?void 0:n[ki(t[e])];void 0===i&&(e=u,i=r),n=$o(i)?i.call(n):i}return n},Rr.round=pa,Rr.runInContext=n,Rr.sample=function(n){return(Wo(n)?Pr:Pe)(n)},Rr.size=function(n){if(null==n)return 0;if(To(n))return Yo(n)?Zt(n):n.length;var t=ei(n);return t==h||t==g?n.size:Oe(n).length},Rr.snakeCase=Mf,Rr.some=function(n,t,r){var e=Wo(n)?_t:Ve;return r&&ai(n,t,r)&&(t=void 0),e(n,Yu(t,3))},Rr.sortedIndex=function(n,t){return Ge(n,t)},Rr.sortedIndexBy=function(n,t,r){return He(n,t,Yu(r,2))},Rr.sortedIndexOf=function(n,t){var r=null==n?0:n.length;if(r){var e=Ge(n,t);if(e<r&&So(n[e],t))return e}return-1},Rr.sortedLastIndex=function(n,t){return Ge(n,t,!0)},Rr.sortedLastIndexBy=function(n,t,r){return He(n,t,Yu(r,2),!0)},Rr.sortedLastIndexOf=function(n,t){if(null==n?0:n.length){var r=Ge(n,t,!0)-1;if(So(n[r],t))return r}return-1},Rr.startCase=Df,Rr.startsWith=function(n,t,r){return n=cf(n),r=null==r?0:Jr(uf(r),0,n.length),t=Qe(t),n.slice(r,r+t.length)==t},Rr.subtract=da,Rr.sum=function(n){return n&&n.length?Et(n,Gf):0},Rr.sumBy=function(n,t){return n&&n.length?Et(n,Yu(t,2)):0},Rr.template=function(n,t,r){var e=Rr.templateSettings;r&&ai(n,t,r)&&(t=void 0),n=cf(n),t=vf({},t,e,$u);var u,i,o=vf({},t.imports,e.imports,$u),f=xf(o),a=zt(o,f),c=0,l=t.interpolate||cn,s="__p += '",v=_n((t.escape||cn).source+"|"+l.source+"|"+(l===P?nn:cn).source+"|"+(t.evaluate||cn).source+"|$","g"),h="//# sourceURL="+(An.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Mn+"]")+"\n";n.replace(v,(function(t,r,e,o,f,a){return e||(e=o),s+=n.slice(c,a).replace(ln,Mt),r&&(u=!0,s+="' +\n__e("+r+") +\n'"),f&&(i=!0,s+="';\n"+f+";\n__p += '"),e&&(s+="' +\n((__t = ("+e+")) == null ? '' : __t) +\n'"),c=a+t.length,t})),s+="';\n";var p=An.call(t,"variable")&&t.variable;if(p){if(Q.test(p))throw new vn("Invalid `variable` option passed into `_.template`")}else s="with (obj) {\n"+s+"\n}\n";s=(i?s.replace(z,""):s).replace(C,"$1").replace(L,"$1;"),s="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(u?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+s+"return __p\n}";var d=Ff((function(){return hn(f,h+"return "+s).apply(void 0,a)}));if(d.source=s,Po(d))throw d;return d},Rr.times=function(n,t){if((n=uf(n))<1||n>9007199254740991)return[];var r=4294967295,e=ar(n,4294967295);n-=4294967295;for(var u=It(e,t=Yu(t));++r<n;)t(r);return u},Rr.toFinite=ef,Rr.toInteger=uf,Rr.toLength=of,Rr.toLower=function(n){return cf(n).toLowerCase()},Rr.toNumber=ff,Rr.toSafeInteger=function(n){return n?Jr(uf(n),-9007199254740991,9007199254740991):0===n?n:0},Rr.toString=cf,Rr.toUpper=function(n){return cf(n).toUpperCase()},Rr.trim=function(n,t,r){if((n=cf(n))&&(r||void 0===t))return Rt(n);if(!n||!(t=Qe(t)))return n;var e=Kt(n),u=Kt(t);return lu(e,Lt(e,u),Wt(e,u)+1).join("")},Rr.trimEnd=function(n,t,r){if((n=cf(n))&&(r||void 0===t))return n.slice(0,Vt(n)+1);if(!n||!(t=Qe(t)))return n;var e=Kt(n);return lu(e,0,Wt(e,Kt(t))+1).join("")},Rr.trimStart=function(n,t,r){if((n=cf(n))&&(r||void 0===t))return n.replace(K,"");if(!n||!(t=Qe(t)))return n;var e=Kt(n);return lu(e,Lt(e,Kt(t))).join("")},Rr.truncate=function(n,t){var r=30,e="...";if(qo(t)){var u="separator"in t?t.separator:u;r="length"in t?uf(t.length):r,e="omission"in t?Qe(t.omission):e}var i=(n=cf(n)).length;if(Dt(n)){var o=Kt(n);i=o.length}if(r>=i)return n;var f=r-Zt(e);if(f<1)return e;var a=o?lu(o,0,f).join(""):n.slice(0,f);if(void 0===u)return a+e;if(o&&(f+=a.length-f),Ho(u)){if(n.slice(f).search(u)){var c,l=a;for(u.global||(u=_n(u.source,cf(tn.exec(u))+"g")),u.lastIndex=0;c=u.exec(l);)var s=c.index;a=a.slice(0,void 0===s?f:s)}}else if(n.indexOf(Qe(u),f)!=f){var v=a.lastIndexOf(u);v>-1&&(a=a.slice(0,v))}return a+e},Rr.unescape=function(n){return(n=cf(n))&&T.test(n)?n.replace(W,Gt):n},Rr.uniqueId=function(n){var t=++On;return cf(n)+t},Rr.upperCase=Pf,Rr.upperFirst=$f,Rr.each=fo,Rr.eachRight=ao,Rr.first=Ui,Qf(Rr,(va={},ce(Rr,(function(n,t){An.call(Rr.prototype,t)||(va[t]=n)})),va),{chain:!1}),Rr.VERSION="4.17.21",ot(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(n){Rr[n].placeholder=Rr})),ot(["drop","take"],(function(n,t){Lr.prototype[n]=function(r){r=void 0===r?1:fr(uf(r),0);var e=this.__filtered__&&!t?new Lr(this):this.clone();return e.__filtered__?e.__takeCount__=ar(r,e.__takeCount__):e.__views__.push({size:ar(r,4294967295),type:n+(e.__dir__<0?"Right":"")}),e},Lr.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}})),ot(["filter","map","takeWhile"],(function(n,t){var r=t+1,e=1==r||3==r;Lr.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:Yu(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}})),ot(["head","last"],(function(n,t){var r="take"+(t?"Right":"");Lr.prototype[n]=function(){return this[r](1).value()[0]}})),ot(["initial","tail"],(function(n,t){var r="drop"+(t?"":"Right");Lr.prototype[n]=function(){return this.__filtered__?new Lr(this):this[r](1)}})),Lr.prototype.compact=function(){return this.filter(Gf)},Lr.prototype.find=function(n){return this.filter(n).head()},Lr.prototype.findLast=function(n){return this.reverse().find(n)},Lr.prototype.invokeMap=De((function(n,t){return"function"==typeof n?new Lr(this):this.map((function(r){return be(r,n,t)}))})),Lr.prototype.reject=function(n){return this.filter(Oo(Yu(n)))},Lr.prototype.slice=function(n,t){n=uf(n);var r=this;return r.__filtered__&&(n>0||t<0)?new Lr(r):(n<0?r=r.takeRight(-n):n&&(r=r.drop(n)),void 0!==t&&(r=(t=uf(t))<0?r.dropRight(-t):r.take(t-n)),r)},Lr.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Lr.prototype.toArray=function(){return this.take(4294967295)},ce(Lr.prototype,(function(n,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),e=/^(?:head|last)$/.test(t),u=Rr[e?"take"+("last"==t?"Right":""):t],i=e||/^find/.test(t);u&&(Rr.prototype[t]=function(){var t=this.__wrapped__,o=e?[1]:arguments,f=t instanceof Lr,a=o[0],c=f||Wo(t),l=function(n){var t=u.apply(Rr,ht([n],o));return e&&s?t[0]:t};c&&r&&"function"==typeof a&&1!=a.length&&(f=c=!1);var s=this.__chain__,v=!!this.__actions__.length,h=i&&!s,p=f&&!v;if(!i&&c){t=p?t:new Lr(this);var d=n.apply(t,o);return d.__actions__.push({func:ro,args:[l],thisArg:void 0}),new Cr(d,s)}return h&&p?n.apply(this,o):(d=this.thru(l),h?e?d.value()[0]:d.value():d)})})),ot(["pop","push","shift","sort","splice","unshift"],(function(n){var t=bn[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|shift)$/.test(n);Rr.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(Wo(u)?u:[],n)}return this[r]((function(r){return t.apply(Wo(r)?r:[],n)}))}})),ce(Lr.prototype,(function(n,t){var r=Rr[t];if(r){var e=r.name+"";An.call(wr,e)||(wr[e]=[]),wr[e].push({name:t,func:r})}})),wr[Ru(void 0,2).name]=[{name:"wrapper",func:void 0}],Lr.prototype.clone=function(){var n=new Lr(this.__wrapped__);return n.__actions__=yu(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=yu(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=yu(this.__views__),n},Lr.prototype.reverse=function(){if(this.__filtered__){var n=new Lr(this);n.__dir__=-1,n.__filtered__=!0}else(n=this.clone()).__dir__*=-1;return n},Lr.prototype.value=function(){var n=this.__wrapped__.value(),t=this.__dir__,r=Wo(n),e=t<0,u=r?n.length:0,i=function(n,t,r){var e=-1,u=r.length;for(;++e<u;){var i=r[e],o=i.size;switch(i.type){case"drop":n+=o;break;case"dropRight":t-=o;break;case"take":t=ar(t,n+o);break;case"takeRight":n=fr(n,t-o)}}return{start:n,end:t}}(0,u,this.__views__),o=i.start,f=i.end,a=f-o,c=e?f:o-1,l=this.__iteratees__,s=l.length,v=0,h=ar(a,this.__takeCount__);if(!r||!e&&u==a&&h==a)return eu(n,this.__actions__);var p=[];n:for(;a--&&v<h;){for(var d=-1,_=n[c+=t];++d<s;){var g=l[d],y=g.iteratee,b=g.type,w=y(_);if(2==b)_=w;else if(!w){if(1==b)continue n;break n}}p[v++]=_}return p},Rr.prototype.at=eo,Rr.prototype.chain=function(){return to(this)},Rr.prototype.commit=function(){return new Cr(this.value(),this.__chain__)},Rr.prototype.next=function(){void 0===this.__values__&&(this.__values__=rf(this.value()));var n=this.__index__>=this.__values__.length;return{done:n,value:n?void 0:this.__values__[this.__index__++]}},Rr.prototype.plant=function(n){for(var t,r=this;r instanceof zr;){var e=Ii(r);e.__index__=0,e.__values__=void 0,t?u.__wrapped__=e:t=e;var u=e;r=r.__wrapped__}return u.__wrapped__=n,t},Rr.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof Lr){var t=n;return this.__actions__.length&&(t=new Lr(this)),(t=t.reverse()).__actions__.push({func:ro,args:[Fi],thisArg:void 0}),new Cr(t,this.__chain__)}return this.thru(Fi)},Rr.prototype.toJSON=Rr.prototype.valueOf=Rr.prototype.value=function(){return eu(this.__wrapped__,this.__actions__)},Rr.prototype.first=Rr.prototype.head,gt&&(Rr.prototype[gt]=function(){return this}),Rr}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(Kn._=Ht,define((function(){return Ht}))):Gn?((Gn.exports=Ht)._=Ht,Vn._=Ht):Kn._=Ht}).call(this)}).call(this,r(0),r(3)(n))},function(n,t,r){"use strict";r.r(t),function(n){var t=r(1);!function(){function r(){if(!n.wp_consent_type&&!n.wp_fallback_consent_type)return;const r={};let e=!1;Object.entries(n._googlesitekitConsentCategoryMap).forEach(([t,u])=>{n.wp_has_consent&&n.wp_has_consent(t)&&(u.forEach(n=>{r[n]="granted"}),e=e||!!u.length)}),e&&!Object(t.isEqual)(r,n._googlesitekitConsents)&&(n.gtag("consent","update",r),n._googlesitekitConsents=r)}n.document.addEventListener("wp_listen_for_consent_change",(function(t){if(t.detail){const r={};let e=!1;Object.keys(t.detail).forEach(u=>{if(n._googlesitekitConsentCategoryMap[u]){const i="allow"===t.detail[u]?"granted":"denied",o=n._googlesitekitConsentCategoryMap[u];o.forEach(n=>{r[n]=i}),e=!!o.length}}),e&&n.gtag("consent","update",r)}})),n.document.addEventListener("wp_consent_type_defined",r),n.document.addEventListener("DOMContentLoaded",(function(){n.waitfor_consent_hook||r()}))}()}.call(this,r(0))},function(n,t){n.exports=function(n){return n.webpackPolyfill||(n.deprecate=function(){},n.paths=[],n.children||(n.children=[]),Object.defineProperty(n,"loaded",{enumerable:!0,get:function(){return n.l}}),Object.defineProperty(n,"id",{enumerable:!0,get:function(){return n.i}}),n.webpackPolyfill=1),n}}]);



"use strict";window.wp_fallback_consent_type=consent_api.consent_type;window.waitfor_consent_hook=consent_api.waitfor_consent_hook;function wp_has_consent(category){var consent_type;if(typeof window.wp_consent_type!=="undefined"){consent_type=window.wp_consent_type}else{consent_type=window.wp_fallback_consent_type}var has_consent_level=false;var cookie_value=consent_api_get_cookie(consent_api.cookie_prefix+"_"+category);if(!consent_type){has_consent_level=true}else if(consent_type.indexOf("optout")!==-1&&cookie_value===""){has_consent_level=true}else{has_consent_level=cookie_value==="allow"}return has_consent_level}function consent_api_set_cookie(name,value){var secure=";secure";var days=consent_api.cookie_expiration;var date=new Date;date.setTime(date.getTime()+days*24*60*60*1e3);var expires=";expires="+date.toGMTString();if(window.location.protocol!=="https:")secure="";document.cookie=name+"="+value+secure+expires+";path=/"}function consent_api_get_cookie(name){name=name+"=";var cookies=window.document.cookie.split(";");for(var i=0;i<cookies.length;i++){var cookie=cookies[i].trim();if(cookie.indexOf(name)==0)return cookie.substring(name.length,cookie.length)}return""}function wp_set_consent(category,value){var event;if(value!=="allow"&&value!=="deny")return;var previous_value=consent_api_get_cookie(consent_api.cookie_prefix+"_"+category);consent_api_set_cookie(consent_api.cookie_prefix+"_"+category,value);if(previous_value===value)return;var changedConsentCategory=[];changedConsentCategory[category]=value;try{event=new CustomEvent("wp_listen_for_consent_change",{detail:changedConsentCategory})}catch(err){event=document.createEvent("Event");event.initEvent("wp_listen_for_consent_change",true,true);event.detail=changedConsentCategory}document.dispatchEvent(event)};



var sbi_js_exists = void 0 !== sbi_js_exists; sbi_js_exists || (!function (e) { function i() { this.feeds = {}, this.options = sb_instagram_js_options } function s(e, i, s) { this.el = e, this.index = i, this.settings = s, this.minImageWidth = 0, this.imageResolution = 150, this.resizedImages = {}, this.needsResizing = [], this.outOfPages = !1, this.page = 1, this.isInitialized = !1 } function t(i, s) { e.ajax({ url: sbiajaxurl, type: "post", data: i, success: s }) } i.prototype = { createPage: function (i, s) { void 0 !== sb_instagram_js_options.ajax_url && void 0 === window.sbiajaxurl && (window.sbiajaxurl = sb_instagram_js_options.ajax_url), (void 0 === window.sbiajaxurl || -1 === window.sbiajaxurl.indexOf(window.location.hostname)) && (window.sbiajaxurl = location.protocol + "//" + window.location.hostname + "/wp-admin/admin-ajax.php"), e("#sbi-builder-app").length && void 0 === window.sbiresizedImages && e(".sbi_resized_image_data").length && void 0 !== e(".sbi_resized_image_data").attr("data-resized") && 0 === e(".sbi_resized_image_data").attr("data-resized").indexOf('{"') && (window.sbiresizedImages = JSON.parse(e(".sbi_resized_image_data").attr("data-resized")), e(".sbi_resized_image_data").remove()), e(".sbi_no_js_error_message").remove(), e(".sbi_no_js").removeClass("sbi_no_js"), i(s) }, createFeeds: function (i) { i.whenFeedsCreated(e(".sbi").each(function (i) { e(this).attr("data-sbi-index", i + 1); var a = e(this), n = void 0 !== a.attr("data-sbi-flags") ? a.attr("data-sbi-flags").split(",") : [], o = void 0 !== a.attr("data-options") ? JSON.parse(a.attr("data-options")) : {}; n.indexOf("testAjax") > -1 && (window.sbi.triggeredTest = !0, t({ action: "sbi_on_ajax_test_trigger" }, function (e) { console.log("did test") })); var r, d, l, c = { cols: a.attr("data-cols"), colsmobile: void 0 !== a.attr("data-colsmobile") && "same" !== a.attr("data-colsmobile") ? a.attr("data-colsmobile") : a.attr("data-cols"), colstablet: void 0 !== a.attr("data-colstablet") && "same" !== a.attr("data-colstablet") ? a.attr("data-colstablet") : a.attr("data-cols"), num: a.attr("data-num"), imgRes: a.attr("data-res"), feedID: a.attr("data-feedid"), postID: void 0 !== a.attr("data-postid") ? a.attr("data-postid") : "unknown", shortCodeAtts: a.attr("data-shortcode-atts"), resizingEnabled: -1 === n.indexOf("resizeDisable"), imageLoadEnabled: -1 === n.indexOf("imageLoadDisable"), debugEnabled: n.indexOf("debug") > -1, favorLocal: n.indexOf("favorLocal") > -1, ajaxPostLoad: n.indexOf("ajaxPostLoad") > -1, gdpr: n.indexOf("gdpr") > -1, overrideBlockCDN: n.indexOf("overrideBlockCDN") > -1, consentGiven: !1, locator: n.indexOf("locator") > -1, autoMinRes: 1, general: o }; window.sbi.feeds[i] = (r = this, d = i, l = c, new s(r, d, l)), window.sbi.feeds[i].setResizedImages(), window.sbi.feeds[i].init(); var h = jQuery.Event("sbiafterfeedcreate"); h.feed = window.sbi.feeds[i], jQuery(window).trigger(h) })) }, afterFeedsCreated: function () { e(".sb_instagram_header").each(function () { var i = e(this); i.find(".sbi_header_link").on("mouseenter mouseleave", function (e) { switch (e.type) { case "mouseenter": i.find(".sbi_header_img_hover").addClass("sbi_fade_in"); break; case "mouseleave": i.find(".sbi_header_img_hover").removeClass("sbi_fade_in") } }) }) }, encodeHTML: function (e) { if (void 0 === e) return ""; var i = e.replace(/(>)/g, "&gt;"), i = i.replace(/(<)/g, "&lt;"); return (i = i.replace(/(&lt;br\/&gt;)/g, "<br>")).replace(/(&lt;br&gt;)/g, "<br>") }, urlDetect: function (e) { return e.match(/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g) } }, s.prototype = { init: function () { var i, s = this; s.settings.consentGiven = s.checkConsent(), e(this.el).find(".sbi_photo").parent("p").length && e(this.el).addClass("sbi_no_autop"), e(this.el).find("#sbi_mod_error").length && e(this.el).prepend(e(this.el).find("#sbi_mod_error")), this.settings.ajaxPostLoad ? this.getNewPostSet() : this.afterInitialImagesLoaded(); var t = (i = 0, function (e, s) { clearTimeout(i), i = setTimeout(e, s) }); jQuery(window).on("resize", function () { t(function () { s.afterResize() }, 500) }), e(this.el).find(".sbi_item").each(function () { s.lazyLoadCheck(e(this)) }) }, initLayout: function () { }, afterInitialImagesLoaded: function () { this.initLayout(), this.loadMoreButtonInit(), this.hideExtraImagesForWidth(), this.beforeNewImagesRevealed(), this.revealNewImages(), this.afterNewImagesRevealed() }, afterResize: function () { this.setImageHeight(), this.setImageResolution(), this.maybeRaiseImageResolution(), this.setImageSizeClass() }, afterLoadMoreClicked: function (e) { e.find(".sbi_loader").removeClass("sbi_hidden"), e.find(".sbi_btn_text").addClass("sbi_hidden"), e.closest(".sbi").find(".sbi_num_diff_hide").addClass("sbi_transition").removeClass("sbi_num_diff_hide") }, afterNewImagesLoaded: function () { var i = e(this.el), s = this; this.beforeNewImagesRevealed(), this.revealNewImages(), this.afterNewImagesRevealed(), setTimeout(function () { i.find(".sbi_loader").addClass("sbi_hidden"), i.find(".sbi_btn_text").removeClass("sbi_hidden"), s.maybeRaiseImageResolution() }, 500) }, beforeNewImagesRevealed: function () { this.setImageHeight(), this.maybeRaiseImageResolution(!0), this.setImageSizeClass() }, revealNewImages: function () { var i = e(this.el); i.find(".sbi-screenreader").each(function () { e(this).find("img").remove() }), "function" == typeof sbi_custom_js && setTimeout(function () { sbi_custom_js() }, 100), i.find(".sbi_item").each(function (e) { jQuery(this).find(".sbi_photo").on("mouseenter mouseleave", function (e) { switch (e.type) { case "mouseenter": jQuery(this).fadeTo(200, .85); break; case "mouseleave": jQuery(this).stop().fadeTo(500, 1) } }) }), setTimeout(function () { jQuery("#sbi_images .sbi_item.sbi_new").removeClass("sbi_new"); var e = 10; i.find(".sbi_transition").each(function () { var i = jQuery(this); setTimeout(function () { i.removeClass("sbi_transition") }, e), e += 10 }) }, 500) }, lazyLoadCheck: function (i) { if (i.find(".sbi_photo").length && !i.closest(".sbi").hasClass("sbi-no-ll-check")) { var s = this.getImageUrls(i), t = void 0 !== s[640] ? s[640] : i.find(".sbi_photo").attr("data-full-res"); !(!this.settings.consentGiven && t.indexOf("scontent") > -1) && i.find(".sbi_photo img").each(function () { t && void 0 !== e(this).attr("data-src") && e(this).attr("data-src", t), t && void 0 !== e(this).attr("data-orig-src") && e(this).attr("data-orig-src", t), e(this).on("load", function () { !e(this).hasClass("sbi-replaced") && e(this).attr("src").indexOf("placeholder") > -1 && (e(this).addClass("sbi-replaced"), t && (e(this).attr("src", t), e(this).closest(".sbi_imgLiquid_bgSize").length && e(this).closest(".sbi_imgLiquid_bgSize").css("background-image", "url(" + t + ")"))) }) }) } }, afterNewImagesRevealed: function () { this.listenForVisibilityChange(), this.sendNeedsResizingToServer(), this.settings.imageLoadEnabled || e(".sbi_no_resraise").removeClass("sbi_no_resraise"); var i = e.Event("sbiafterimagesloaded"); i.el = e(this.el), e(window).trigger(i) }, setResizedImages: function () { e(this.el).find(".sbi_resized_image_data").length && void 0 !== e(this.el).find(".sbi_resized_image_data").attr("data-resized") && 0 === e(this.el).find(".sbi_resized_image_data").attr("data-resized").indexOf('{"') ? (this.resizedImages = JSON.parse(e(this.el).find(".sbi_resized_image_data").attr("data-resized")), e(this.el).find(".sbi_resized_image_data").remove()) : void 0 !== window.sbiresizedImages && (this.resizedImages = window.sbiresizedImages) }, sendNeedsResizingToServer: function () { var i = this, s = e(this.el); if (i.needsResizing.length > 0 && i.settings.resizingEnabled) { var a = e(this.el).find(".sbi_item").length, n = void 0 !== i.settings.general.cache_all && i.settings.general.cache_all, o = ""; if (void 0 !== s.attr("data-locatornonce") && (o = s.attr("data-locatornonce")), e("#sbi-builder-app").length) { if (void 0 !== window.sbiresizeTriggered && window.sbiresizeTriggered) return; window.sbiresizeTriggered = !0 } var r = { action: "sbi_resized_images_submit", needs_resizing: i.needsResizing, offset: a, feed_id: i.settings.feedID, atts: i.settings.shortCodeAtts, location: i.locationGuess(), post_id: i.settings.postID, cache_all: n, locator_nonce: o }, d = function (s) { var t = s; for (var a in "object" != typeof s && 0 === s.trim().indexOf("{") && (t = JSON.parse(s.trim())), i.settings.debugEnabled && console.log(t), t) t.hasOwnProperty(a) && (i.resizedImages[a] = t[a]); i.maybeRaiseImageResolution(), setTimeout(function () { i.afterResize() }, 500), e("#sbi-builder-app").length && (window.sbiresizeTriggered = !1) }; t(r, d) } else if (i.settings.locator) { var o = ""; void 0 !== s.attr("data-locatornonce") && (o = s.attr("data-locatornonce")); var r = { action: "sbi_do_locator", feed_id: i.settings.feedID, atts: i.settings.shortCodeAtts, location: i.locationGuess(), post_id: i.settings.postID, locator_nonce: o }, d = function (e) { }; t(r, d) } }, loadMoreButtonInit: function () { var i = e(this.el), s = this; i.find("#sbi_load .sbi_load_btn").off().on("click", function () { s.afterLoadMoreClicked(jQuery(this)), s.getNewPostSet() }) }, getNewPostSet: function () { var i = e(this.el), s = this; s.page++; var a, n = ""; void 0 !== i.attr("data-locatornonce") && (n = i.attr("data-locatornonce")), t({ action: "sbi_load_more_clicked", offset: i.find(".sbi_item").length, page: s.page, feed_id: s.settings.feedID, atts: s.settings.shortCodeAtts, location: s.locationGuess(), post_id: s.settings.postID, current_resolution: s.imageResolution, locator_nonce: n }, function (t) { var a = t; "object" != typeof t && 0 === t.trim().indexOf("{") && (a = JSON.parse(t.trim())), s.settings.debugEnabled && console.log(a), s.appendNewPosts(a.html), s.addResizedImages(a.resizedImages), s.settings.ajaxPostLoad ? (s.settings.ajaxPostLoad = !1, s.afterInitialImagesLoaded()) : s.afterNewImagesLoaded(), a.feedStatus.shouldPaginate ? s.outOfPages = !1 : (s.outOfPages = !0, i.find(".sbi_load_btn").hide()), e(".sbi_no_js").removeClass("sbi_no_js") }) }, appendNewPosts: function (i) { var s = e(this.el); s.find("#sbi_images .sbi_item").length ? s.find("#sbi_images .sbi_item").last().after(i) : s.find("#sbi_images").append(i) }, addResizedImages: function (e) { for (var i in e) this.resizedImages[i] = e[i] }, setImageHeight: function () { var i = e(this.el), s = i.find(".sbi_photo").eq(0).innerWidth(), t = this.getColumnCount(), a = i.find("#sbi_images").innerWidth() - i.find("#sbi_images").width(), n = a / 2; sbi_photo_width_manual = i.find("#sbi_images").width() / t - a, i.find(".sbi_photo").css("height", s), i.find(".sbi-owl-nav").length && setTimeout(function () { var e = 2; i.find(".sbi_owl2row-item").length && (e = 1); var s = i.find(".sbi_photo").eq(0).innerWidth() / e; s += parseInt(n) * (2 + (2 - e)), i.find(".sbi-owl-nav div").css("top", s) }, 100) }, maybeRaiseSingleImageResolution: function (i, s, t) { var a = this, n = a.getImageUrls(i), o = i.find(".sbi_photo img").attr("src"), r = 150, d = i.find("img").get(0), l = o === window.sbi.options.placeholder ? 1 : d.naturalWidth / d.naturalHeight, t = void 0 !== t && t; if (!(i.hasClass("sbi_no_resraise") || i.hasClass("sbi_had_error") || i.find(".sbi_link_area").length && i.find(".sbi_link_area").hasClass("sbi_had_error"))) { if (n.length < 1) { i.find(".sbi_link_area").length && i.find(".sbi_link_area").attr("href", window.sbi.options.placeholder.replace("placeholder.png", "thumb-placeholder.png")); return } (i.find(".sbi_link_area").length && i.find(".sbi_link_area").attr("href") === window.sbi.options.placeholder.replace("placeholder.png", "thumb-placeholder.png") || !a.settings.consentGiven) && i.find(".sbi_link_area").attr("href", n[n.length - 1]), void 0 !== n[640] && i.find(".sbi_photo").attr("data-full-res", n[640]), e.each(n, function (e, i) { i === o && (r = parseInt(e), t = !1) }); var c = 640; switch (a.settings.imgRes) { case "thumb": c = 150; break; case "medium": c = 320; break; case "full": c = 640; break; default: var h = Math.max(a.settings.autoMinRes, i.find(".sbi_photo").innerWidth()), g = a.getBestResolutionForAuto(h, l, i); switch (g) { case 320: c = 320; break; case 150: c = 150 } }if (c > r || o === window.sbi.options.placeholder || t) { if (a.settings.debugEnabled) { var f = o === window.sbi.options.placeholder ? "was placeholder" : "too small"; console.log("rais res for " + o, f) } var b = n[c].split("?ig_cache_key")[0]; if (o !== b && i.find(".sbi_photo img").attr("src", b), r = c, "auto" === a.settings.imgRes) { var u = !1; i.find(".sbi_photo img").on("load", function () { var s = e(this), t = s.get(0).naturalWidth / s.get(0).naturalHeight; if (1e3 !== s.get(0).naturalWidth && t > l && !u) { switch (a.settings.debugEnabled && console.log("rais res again for aspect ratio change " + o), u = !0, h = i.find(".sbi_photo").innerWidth(), g = a.getBestResolutionForAuto(h, t, i), c = 640, g) { case 320: c = 320; break; case 150: c = 150 }c > r && (b = n[c].split("?ig_cache_key")[0], s.attr("src", b)), ("masonry" === a.layout || "highlight" === a.layout) && (e(a.el).find("#sbi_images").smashotope(a.isotopeArgs), setTimeout(function () { e(a.el).find("#sbi_images").smashotope(a.isotopeArgs) }, 500)) } else if (a.settings.debugEnabled) { var d = u ? "already checked" : "no aspect ratio change"; console.log("not raising res for replacement  " + o, d) } }) } } i.find("img").on("error", function () { if (e(this).hasClass("sbi_img_error")) console.log("unfixed error " + e(this).attr("src")); else { if (e(this).addClass("sbi_img_error"), !(e(this).attr("src").indexOf("media/?size=") > -1 || e(this).attr("src").indexOf("cdninstagram") > -1 || e(this).attr("src").indexOf("fbcdn") > -1) && a.settings.consentGiven) { if ("undefined" !== e(this).closest(".sbi_photo").attr("data-img-src-set")) { var i = JSON.parse(e(this).closest(".sbi_photo").attr("data-img-src-set").replace(/\\\//g, "/")); void 0 !== i.d && (e(this).attr("src", i.d), e(this).closest(".sbi_item").addClass("sbi_had_error").find(".sbi_link_area").attr("href", i[640]).addClass("sbi_had_error")) } } else { a.settings.favorLocal = !0; var i = a.getImageUrls(e(this).closest(".sbi_item")); void 0 !== i[640] && (e(this).attr("src", i[640]), e(this).closest(".sbi_item").addClass("sbi_had_error").find(".sbi_link_area").attr("href", i[640]).addClass("sbi_had_error")) } setTimeout(function () { a.afterResize() }, 1500) } }) } }, maybeRaiseImageResolution: function (i) { var s = this, t = !s.isInitialized; e(s.el).find(void 0 !== i && !0 === i ? ".sbi_item.sbi_new" : ".sbi_item").each(function (i) { !e(this).hasClass("sbi_num_diff_hide") && e(this).find(".sbi_photo").length && void 0 !== e(this).find(".sbi_photo").attr("data-img-src-set") && s.maybeRaiseSingleImageResolution(e(this), i, t) }), s.isInitialized = !0 }, getBestResolutionForAuto: function (i, s, t) { (isNaN(s) || s < 1) && (s = 1); var a = 10 * Math.ceil(i * s / 10), n = [150, 320, 640]; if (t.hasClass("sbi_highlighted") && (a *= 2), -1 === n.indexOf(parseInt(a))) { var o = !1; e.each(n, function (e, i) { i > parseInt(a) && !o && (a = i, o = !0) }) } return a }, hideExtraImagesForWidth: function () { if ("carousel" !== this.layout) { var i = e(this.el), s = void 0 !== i.attr("data-num") && "" !== i.attr("data-num") ? parseInt(i.attr("data-num")) : 1, t = void 0 !== i.attr("data-nummobile") && "" !== i.attr("data-nummobile") ? parseInt(i.attr("data-nummobile")) : s; 480 > e(window).width() || "mobile" === window.sbi_preview_device ? t < i.find(".sbi_item").length && i.find(".sbi_item").slice(t - i.find(".sbi_item").length).addClass("sbi_num_diff_hide") : s < i.find(".sbi_item").length && i.find(".sbi_item").slice(s - i.find(".sbi_item").length).addClass("sbi_num_diff_hide") } }, setImageSizeClass: function () { var i = e(this.el); i.removeClass("sbi_small sbi_medium"); var s = i.innerWidth(), t = parseInt(i.find("#sbi_images").outerWidth() - i.find("#sbi_images").width()) / 2, a = this.getColumnCount(), n = (s - t * (a + 2)) / a; n > 120 && n < 240 ? i.addClass("sbi_medium") : n <= 120 && i.addClass("sbi_small") }, setMinImageWidth: function () { e(this.el).find(".sbi_item .sbi_photo").first().length ? this.minImageWidth = e(this.el).find(".sbi_item .sbi_photo").first().innerWidth() : this.minImageWidth = 150 }, setImageResolution: function () { if ("auto" === this.settings.imgRes) this.imageResolution = "auto"; else switch (this.settings.imgRes) { case "thumb": this.imageResolution = 150; break; case "medium": this.imageResolution = 320; break; default: this.imageResolution = 640 } }, getImageUrls: function (e) { var i = JSON.parse(e.find(".sbi_photo").attr("data-img-src-set").replace(/\\\//g, "/")), s = e.attr("id").replace("sbi_", ""); if (this.settings.consentGiven || this.settings.overrideBlockCDN || (i = []), void 0 !== this.resizedImages[s] && "video" !== this.resizedImages[s] && "pending" !== this.resizedImages[s] && "error" !== this.resizedImages[s].id && "video" !== this.resizedImages[s].id && "pending" !== this.resizedImages[s].id) { if (void 0 !== this.resizedImages[s].sizes) { var t = [], a = void 0 !== this.resizedImages[s].extension ? this.resizedImages[s].extension : ".jpg"; void 0 !== this.resizedImages[s].sizes.full && (i[640] = sb_instagram_js_options.resized_url + this.resizedImages[s].id + "full" + a, t.push(640)), void 0 !== this.resizedImages[s].sizes.low && (i[320] = sb_instagram_js_options.resized_url + this.resizedImages[s].id + "low" + a, t.push(320)), void 0 !== this.resizedImages[s].sizes.thumb && (t.push(150), i[150] = sb_instagram_js_options.resized_url + this.resizedImages[s].id + "thumb" + a), this.settings.favorLocal && (-1 === t.indexOf(640) && t.indexOf(320) > -1 && (i[640] = sb_instagram_js_options.resized_url + this.resizedImages[s].id + "low" + a), -1 === t.indexOf(320) && (t.indexOf(640) > -1 ? i[320] = sb_instagram_js_options.resized_url + this.resizedImages[s].id + "full" + a : t.indexOf(150) > -1 && (i[320] = sb_instagram_js_options.resized_url + this.resizedImages[s].id + "thumb" + a)), -1 === t.indexOf(150) && (t.indexOf(320) > -1 ? i[150] = sb_instagram_js_options.resized_url + this.resizedImages[s].id + "low" + a : t.indexOf(640) > -1 && (i[150] = sb_instagram_js_options.resized_url + this.resizedImages[s].id + "full" + a))) } } else (void 0 === this.resizedImages[s] || void 0 !== this.resizedImages[s].id && "pending" !== this.resizedImages[s].id && "error" !== this.resizedImages[s].id) && this.addToNeedsResizing(s); return i }, getAvatarUrl: function (e, i) { if ("" === e) return ""; var s = this.settings.general.avatars, i = void 0 !== i ? i : "local"; return "local" === i ? void 0 !== s["LCL" + e] && 1 === parseInt(s["LCL" + e]) ? sb_instagram_js_options.resized_url + e + ".jpg" : void 0 !== s[e] ? s[e] : "" : void 0 !== s[e] ? s[e] : void 0 !== s["LCL" + e] && 1 === parseInt(s["LCL" + e]) ? sb_instagram_js_options.resized_url + e + ".jpg" : "" }, addToNeedsResizing: function (e) { -1 === this.needsResizing.indexOf(e) && this.needsResizing.push(e) }, listenForVisibilityChange: function () { var i, s, t, a = this; i = jQuery, s = { callback: function () { }, runOnLoad: !0, frequency: 100, sbiPreviousVisibility: null }, (t = {}).sbiCheckVisibility = function (e, i) { if (jQuery.contains(document, e[0])) { var s = i.sbiPreviousVisibility, a = e.is(":visible"); i.sbiPreviousVisibility = a, null == s ? i.runOnLoad && i.callback(e, a) : s !== a && i.callback(e, a), setTimeout(function () { t.sbiCheckVisibility(e, i) }, i.frequency) } }, i.fn.sbiVisibilityChanged = function (e) { var a = i.extend({}, s, e); return this.each(function () { t.sbiCheckVisibility(i(this), a) }) }, "function" == typeof e(this.el).filter(":hidden").sbiVisibilityChanged && e(this.el).filter(":hidden").sbiVisibilityChanged({ callback: function (e, i) { a.afterResize() }, runOnLoad: !1 }) }, getColumnCount: function () { var i = e(this.el), s = this.settings.cols, t = this.settings.colsmobile, a = this.settings.colstablet, n = s; return sbiWindowWidth = window.innerWidth, i.hasClass("sbi_mob_col_auto") ? (sbiWindowWidth < 640 && parseInt(s) > 2 && 7 > parseInt(s) && (n = 2), sbiWindowWidth < 640 && parseInt(s) > 6 && 11 > parseInt(s) && (n = 4), sbiWindowWidth <= 480 && parseInt(s) > 2 && (n = 1)) : sbiWindowWidth > 480 && sbiWindowWidth <= 800 ? n = a : sbiWindowWidth <= 480 && (n = t), parseInt(n) }, checkConsent: function () { if (this.settings.consentGiven || !this.settings.gdpr) return !0; if (void 0 !== window.cookieyes) void 0 !== window.cookieyes._ckyConsentStore.get && (this.settings.consentGiven = "yes" === window.cookieyes._ckyConsentStore.get("functional")); else if ("undefined" != typeof CLI_Cookie) null !== CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME) && (null !== CLI_Cookie.read("cookielawinfo-checkbox-non-necessary") && (this.settings.consentGiven = "yes" === CLI_Cookie.read("cookielawinfo-checkbox-non-necessary")), null !== CLI_Cookie.read("cookielawinfo-checkbox-necessary") && (this.settings.consentGiven = "yes" === CLI_Cookie.read("cookielawinfo-checkbox-necessary"))); else if (void 0 !== window.cnArgs) { var e = ("; " + document.cookie).split("; cookie_notice_accepted="); if (2 === e.length) { var i = e.pop().split(";").shift(); this.settings.consentGiven = "true" === i } } else void 0 !== window.cookieconsent ? this.settings.consentGiven = "allow" === function e(i) { for (var s = i + "=", t = window.document.cookie.split(";"), a = 0; a < t.length; a++) { var n = t[a].trim(); if (0 == n.indexOf(s)) return n.substring(s.length, n.length) } return "" }("complianz_consent_status") : void 0 !== window.Cookiebot ? this.settings.consentGiven = Cookiebot.consented : void 0 !== window.BorlabsCookie && (this.settings.consentGiven = void 0 !== window.BorlabsCookie.Consents ? window.BorlabsCookie.Consents.hasConsent("instagram") : window.BorlabsCookie.checkCookieConsent("instagram")); var s = jQuery.Event("sbicheckconsent"); return s.feed = this, jQuery(window).trigger(s), this.settings.consentGiven }, afterConsentToggled: function () { if (this.checkConsent()) { var e = this; e.maybeRaiseImageResolution(), setTimeout(function () { e.afterResize() }, 500) } }, locationGuess: function () { var i = e(this.el), s = "content"; return i.closest("footer").length ? s = "footer" : i.closest(".header").length || i.closest("header").length ? s = "header" : (i.closest(".sidebar").length || i.closest("aside").length) && (s = "sidebar"), s } }, window.sbi_init = function () { window.sbi = new i, window.sbi.createPage(window.sbi.createFeeds, { whenFeedsCreated: window.sbi.afterFeedsCreated }) } }(jQuery), jQuery(document).ready(function (e) { void 0 === window.sb_instagram_js_options && (window.sb_instagram_js_options = { font_method: "svg", resized_url: location.protocol + "//" + window.location.hostname + "/wp-content/uploads/sb-instagram-feed-images/", placeholder: location.protocol + "//" + window.location.hostname + "/wp-content/plugins/instagram-feed/img/placeholder.png" }), void 0 !== window.sb_instagram_js_options.resized_url && -1 === window.sb_instagram_js_options.resized_url.indexOf(location.protocol) && ("http:" === location.protocol ? window.sb_instagram_js_options.resized_url = window.sb_instagram_js_options.resized_url.replace("https:", "http:") : window.sb_instagram_js_options.resized_url = window.sb_instagram_js_options.resized_url.replace("http:", "https:")), sbi_init(), e("#cookie-notice a").on("click", function () { setTimeout(function () { e.each(window.sbi.feeds, function (e) { window.sbi.feeds[e].afterConsentToggled() }) }, 1e3) }), e("#cookie-law-info-bar a").on("click", function () { setTimeout(function () { e.each(window.sbi.feeds, function (e) { window.sbi.feeds[e].afterConsentToggled() }) }, 1e3) }), e(".cli-user-preference-checkbox, .cky-notice button").on("click", function () { setTimeout(function () { e.each(window.sbi.feeds, function (e) { window.sbi.feeds[e].checkConsent(), window.sbi.feeds[e].afterConsentToggled() }) }, 1e3) }), e(window).on("CookiebotOnAccept", function (i) { e.each(window.sbi.feeds, function (e) { window.sbi.feeds[e].settings.consentGiven = !0, window.sbi.feeds[e].afterConsentToggled() }) }), e(document).on("cmplzAcceptAll", function (i) { e.each(window.sbi.feeds, function (e) { window.sbi.feeds[e].settings.consentGiven = !0, window.sbi.feeds[e].afterConsentToggled() }) }), e(document).on("cmplzRevoke", function (i) { e.each(window.sbi.feeds, function (e) { window.sbi.feeds[e].settings.consentGiven = !1, window.sbi.feeds[e].afterConsentToggled() }) }), e(document).on("borlabs-cookie-consent-saved", function (i) { e.each(window.sbi.feeds, function (e) { window.sbi.feeds[e].settings.consentGiven = !1, window.sbi.feeds[e].afterConsentToggled() }) }) }));



/*! 
 * lazysizes - v5.2.2
 * Source: https://github.com/aFarkas/lazysizes/blob/gh-pages/lazysizes.js
 */
!function(e){var t=function(u,k,d){"use strict";var F,D;if(function(){var e;var t={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:true,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:true,ricTimeout:0,throttleDelay:125};D=u.lazySizesConfig||u.lazysizesConfig||{};for(e in t){if(!(e in D)){D[e]=t[e]}}}(),!k||!k.getElementsByClassName){return{init:function(){},cfg:D,noSupport:true}}var I=k.documentElement,a=u.HTMLPictureElement,$="addEventListener",O="getAttribute",H=u[$].bind(u),P=u.setTimeout,j=u.requestAnimationFrame||P,s=u.requestIdleCallback,J=/^picture$/i,r=["load","error","lazyincluded","_lazyloaded"],i={},U=Array.prototype.forEach,Q=function(e,t){if(!i[t]){i[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")}return i[t].test(e[O]("class")||"")&&i[t]},Z=function(e,t){if(!Q(e,t)){e.setAttribute("class",(e[O]("class")||"").trim()+" "+t)}},G=function(e,t){var i;if(i=Q(e,t)){e.setAttribute("class",(e[O]("class")||"").replace(i," "))}},K=function(t,i,e){var a=e?$:"removeEventListener";if(e){K(t,i)}r.forEach(function(e){t[a](e,i)})},V=function(e,t,i,a,r){var n=k.createEvent("Event");if(!i){i={}}i.instance=F;n.initEvent(t,!a,!r);n.detail=i;e.dispatchEvent(n);return n},X=function(e,t){var i;if(!a&&(i=u.picturefill||D.pf)){if(t&&t.src&&!e[O]("srcset")){e.setAttribute("srcset",t.src)}i({reevaluate:true,elements:[e]})}else if(t&&t.src){e.src=t.src}},Y=function(e,t){return(getComputedStyle(e,null)||{})[t]},o=function(e,t,i){i=i||e.offsetWidth;while(i<D.minSize&&t&&!e._lazysizesWidth){i=t.offsetWidth;t=t.parentNode}return i},ee=function(){var i,a;var t=[];var r=[];var n=t;var o=function(){var e=n;n=t.length?r:t;i=true;a=false;while(e.length){e.shift()()}i=false};var e=function(e,t){if(i&&!t){e.apply(this,arguments)}else{n.push(e);if(!a){a=true;(k.hidden?P:j)(o)}}};e._lsFlush=o;return e}(),te=function(i,e){return e?function(){ee(i)}:function(){var e=this;var t=arguments;ee(function(){i.apply(e,t)})}},ie=function(e){var i;var a=0;var r=D.throttleDelay;var n=D.ricTimeout;var t=function(){i=false;a=d.now();e()};var o=s&&n>49?function(){s(t,{timeout:n});if(n!==D.ricTimeout){n=D.ricTimeout}}:te(function(){P(t)},true);return function(e){var t;if(e=e===true){n=33}if(i){return}i=true;t=r-(d.now()-a);if(t<0){t=0}if(e||t<9){o()}else{P(o,t)}}},ae=function(e){var t,i;var a=99;var r=function(){t=null;e()};var n=function(){var e=d.now()-i;if(e<a){P(n,a-e)}else{(s||r)(r)}};return function(){i=d.now();if(!t){t=P(n,a)}}},e=function(){var v,m,f,y,e;var g,h,p,z,b,A,E;var n=/^img$/i;var c=/^iframe$/i;var C="onscroll"in u&&!/(gle|ing)bot/.test(navigator.userAgent);var w=0;var _=0;var L=0;var N=-1;var M=function(e){L--;if(!e||L<0||!e.target){L=0}};var R=function(e){if(E==null){E=Y(k.body,"visibility")=="hidden"}return E||!(Y(e.parentNode,"visibility")=="hidden"&&Y(e,"visibility")=="hidden")};var x=function(e,t){var i;var a=e;var r=R(e);p-=t;A+=t;z-=t;b+=t;while(r&&(a=a.offsetParent)&&a!=k.body&&a!=I){r=(Y(a,"opacity")||1)>0;if(r&&Y(a,"overflow")!="visible"){i=a.getBoundingClientRect();r=b>i.left&&z<i.right&&A>i.top-1&&p<i.bottom+1}}return r};var t=function(){var e,t,i,a,r,n,o,s,l,u,d,f;var c=F.elements;if((y=D.loadMode)&&L<8&&(e=c.length)){t=0;N++;for(;t<e;t++){if(!c[t]||c[t]._lazyRace){continue}if(!C||F.prematureUnveil&&F.prematureUnveil(c[t])){q(c[t]);continue}if(!(s=c[t][O]("data-expand"))||!(n=s*1)){n=_}if(!u){u=!D.expand||D.expand<1?I.clientHeight>500&&I.clientWidth>500?500:370:D.expand;F._defEx=u;d=u*D.expFactor;f=D.hFac;E=null;if(_<d&&L<1&&N>2&&y>2&&!k.hidden){_=d;N=0}else if(y>1&&N>1&&L<6){_=u}else{_=w}}if(l!==n){g=innerWidth+n*f;h=innerHeight+n;o=n*-1;l=n}i=c[t].getBoundingClientRect();if((A=i.bottom)>=o&&(p=i.top)<=h&&(b=i.right)>=o*f&&(z=i.left)<=g&&(A||b||z||p)&&(D.loadHidden||R(c[t]))&&(m&&L<3&&!s&&(y<3||N<4)||x(c[t],n))){q(c[t]);r=true;if(L>9){break}}else if(!r&&m&&!a&&L<4&&N<4&&y>2&&(v[0]||D.preloadAfterLoad)&&(v[0]||!s&&(A||b||z||p||c[t][O](D.sizesAttr)!="auto"))){a=v[0]||c[t]}}if(a&&!r){q(a)}}};var i=ie(t);var S=function(e){var t=e.target;if(t._lazyCache){delete t._lazyCache;return}M(e);Z(t,D.loadedClass);G(t,D.loadingClass);K(t,T);V(t,"lazyloaded")};var a=te(S);var T=function(e){a({target:e.target})};var W=function(t,i){try{t.contentWindow.location.replace(i)}catch(e){t.src=i}};var B=function(e){var t;var i=e[O](D.srcsetAttr);if(t=D.customMedia[e[O]("data-media")||e[O]("media")]){e.setAttribute("media",t)}if(i){e.setAttribute("srcset",i)}};var o=te(function(t,e,i,a,r){var n,o,s,l,u,d;if(!(u=V(t,"lazybeforeunveil",e)).defaultPrevented){if(a){if(i){Z(t,D.autosizesClass)}else{t.setAttribute("sizes",a)}}o=t[O](D.srcsetAttr);n=t[O](D.srcAttr);if(r){s=t.parentNode;l=s&&J.test(s.nodeName||"")}d=e.firesLoad||"src"in t&&(o||n||l);u={target:t};Z(t,D.loadingClass);if(d){clearTimeout(f);f=P(M,2500);K(t,T,true)}if(l){U.call(s.getElementsByTagName("source"),B)}if(o){t.setAttribute("srcset",o)}else if(n&&!l){if(c.test(t.nodeName)){W(t,n)}else{t.src=n}}if(r&&(o||l)){X(t,{src:n})}}if(t._lazyRace){delete t._lazyRace}G(t,D.lazyClass);ee(function(){var e=t.complete&&t.naturalWidth>1;if(!d||e){if(e){Z(t,"ls-is-cached")}S(u);t._lazyCache=true;P(function(){if("_lazyCache"in t){delete t._lazyCache}},9)}if(t.loading=="lazy"){L--}},true)});var q=function(e){if(e._lazyRace){return}var t;var i=n.test(e.nodeName);var a=i&&(e[O](D.sizesAttr)||e[O]("sizes"));var r=a=="auto";if((r||!m)&&i&&(e[O]("src")||e.srcset)&&!e.complete&&!Q(e,D.errorClass)&&Q(e,D.lazyClass)){return}t=V(e,"lazyunveilread").detail;if(r){re.updateElem(e,true,e.offsetWidth)}e._lazyRace=true;L++;o(e,t,r,a,i)};var r=ae(function(){D.loadMode=3;i()});var s=function(){if(D.loadMode==3){D.loadMode=2}r()};var l=function(){if(m){return}if(d.now()-e<999){P(l,999);return}m=true;D.loadMode=3;i();H("scroll",s,true)};return{_:function(){e=d.now();F.elements=k.getElementsByClassName(D.lazyClass);v=k.getElementsByClassName(D.lazyClass+" "+D.preloadClass);H("scroll",i,true);H("resize",i,true);H("pageshow",function(e){if(e.persisted){var t=k.querySelectorAll("."+D.loadingClass);if(t.length&&t.forEach){j(function(){t.forEach(function(e){if(e.complete){q(e)}})})}}});if(u.MutationObserver){new MutationObserver(i).observe(I,{childList:true,subtree:true,attributes:true})}else{I[$]("DOMNodeInserted",i,true);I[$]("DOMAttrModified",i,true);setInterval(i,999)}H("hashchange",i,true);["focus","mouseover","click","load","transitionend","animationend"].forEach(function(e){k[$](e,i,true)});if(/d$|^c/.test(k.readyState)){l()}else{H("load",l);k[$]("DOMContentLoaded",i);P(l,2e4)}if(F.elements.length){t();ee._lsFlush()}else{i()}},checkElems:i,unveil:q,_aLSL:s}}(),re=function(){var i;var n=te(function(e,t,i,a){var r,n,o;e._lazysizesWidth=a;a+="px";e.setAttribute("sizes",a);if(J.test(t.nodeName||"")){r=t.getElementsByTagName("source");for(n=0,o=r.length;n<o;n++){r[n].setAttribute("sizes",a)}}if(!i.detail.dataAttr){X(e,i.detail)}});var a=function(e,t,i){var a;var r=e.parentNode;if(r){i=o(e,r,i);a=V(e,"lazybeforesizes",{width:i,dataAttr:!!t});if(!a.defaultPrevented){i=a.detail.width;if(i&&i!==e._lazysizesWidth){n(e,r,a,i)}}}};var e=function(){var e;var t=i.length;if(t){e=0;for(;e<t;e++){a(i[e])}}};var t=ae(e);return{_:function(){i=k.getElementsByClassName(D.autosizesClass);H("resize",t)},checkElems:t,updateElem:a}}(),t=function(){if(!t.i&&k.getElementsByClassName){t.i=true;re._();e._()}};return P(function(){D.init&&t()}),F={cfg:D,autoSizer:re,loader:e,init:t,uP:X,aC:Z,rC:G,hC:Q,fire:V,gW:o,rAF:ee}}(e,e.document,Date);e.lazySizes=t,"object"==typeof module&&module.exports&&(module.exports=t)}("undefined"!=typeof window?window:{}),
/*! 
 * lazysizes - v5.2.2
 * Source: https://github.com/aFarkas/lazysizes/blob/gh-pages/plugins/aspectratio/ls.aspectratio.js
 */
function(e,t){var i=function(){t(e.lazySizes),e.removeEventListener("lazyunveilread",i,!0)};t=t.bind(null,e,e.document),"object"==typeof module&&module.exports?t(require("lazysizes")):"function"==typeof define&&define.amd?define(["lazysizes"],t):e.lazySizes?i():e.addEventListener("lazyunveilread",i,!0)}(window,function(n,o,e){"use strict";var s,t,i,a,l,u,r,d,f,c,v,m,y;function g(){this.ratioElems=o.getElementsByClassName("lazyaspectratio"),this._setupEvents(),this.processImages()}n.addEventListener&&(s=Array.prototype.forEach,l=/^picture$/i,r="img["+(u="data-aspectratio")+"]",d=function(e){return n.matchMedia?(d=function(e){return!e||(matchMedia(e)||{}).matches})(e):n.Modernizr&&Modernizr.mq?!e||Modernizr.mq(e):!e},f=e.aC,c=e.rC,v=e.cfg,g.prototype={_setupEvents:function(){function t(e){e.naturalWidth<36?a.addAspectRatio(e,!0):a.removeAspectRatio(e,!0)}function e(){a.processImages()}var i,a=this;function r(){s.call(a.ratioElems,t)}o.addEventListener("load",function(e){e.target.getAttribute&&e.target.getAttribute(u)&&t(e.target)},!0),addEventListener("resize",function(){clearTimeout(i),i=setTimeout(r,99)}),o.addEventListener("DOMContentLoaded",e),addEventListener("load",e)},processImages:function(e){for(var t=("length"in(e=e||o)&&!e.nodeName?e:e.querySelectorAll(r)),i=0;i<t.length;i++)36<t[i].naturalWidth?this.removeAspectRatio(t[i]):this.addAspectRatio(t[i])},getSelectedRatio:function(e){var t,i,a,r,n,o=e.parentNode;if(o&&l.test(o.nodeName||""))for(t=0,i=(a=o.getElementsByTagName("source")).length;t<i;t++)if(r=a[t].getAttribute("data-media")||a[t].getAttribute("media"),v.customMedia[r]&&(r=v.customMedia[r]),d(r)){n=a[t].getAttribute(u);break}return n||e.getAttribute(u)||""},parseRatio:(m=/^\s*([+\d\.]+)(\s*[\/x]\s*([+\d\.]+))?\s*$/,y={},function(e){var t;return!y[e]&&(t=e.match(m))&&(t[3]?y[e]=t[1]/t[3]:y[e]=+t[1]),y[e]}),addAspectRatio:function(e,t){var i,a=e.offsetWidth,r=e.offsetHeight;t||f(e,"lazyaspectratio"),a<36&&r<=0?(a||r&&n.console)&&console.log("Define width or height of image, so we can calculate the other dimension"):(i=this.getSelectedRatio(e),(i=this.parseRatio(i))&&(a?e.style.height=a/i+"px":e.style.width=r*i+"px"))},removeAspectRatio:function(e){c(e,"lazyaspectratio"),e.style.height="",e.style.width="",e.removeAttribute(u)}},(i=function(){(a=n.jQuery||n.Zepto||n.shoestring||n.$)&&a.fn&&!a.fn.imageRatio&&a.fn.filter&&a.fn.add&&a.fn.find?a.fn.imageRatio=function(){return t.processImages(this.find(r).add(this.filter(r))),this}:a=!1})(),setTimeout(i),t=new g,n.imageRatio=t,"object"==typeof module&&module.exports?module.exports=t:"function"==typeof define&&define.amd&&define(t))}),
/*! 
 * lazysizes - v5.2.2
 * Source: https://github.com/aFarkas/lazysizes/blob/gh-pages/plugins/unveilhooks/ls.unveilhooks.js
 */
function(e,t){var i=function(){t(e.lazySizes),e.removeEventListener("lazyunveilread",i,!0)};t=t.bind(null,e,e.document),"object"==typeof module&&module.exports?t(require("lazysizes")):"function"==typeof define&&define.amd?define(["lazysizes"],t):e.lazySizes?i():e.addEventListener("lazyunveilread",i,!0)}(window,function(e,r,n){"use strict";var o,s,l={};function u(e,t){var i,a;l[e]||(i=r.createElement(t?"link":"script"),a=r.getElementsByTagName("script")[0],t?(i.rel="stylesheet",i.href=e):i.src=e,l[e]=!0,l[i.src||i.href]=!0,a.parentNode.insertBefore(i,a))}r.addEventListener&&(o=function(e,t){var i=r.createElement("img");i.onload=function(){i.onload=null,i.onerror=null,i=null,t()},i.onerror=i.onload,i.src=e,i&&i.complete&&i.onload&&i.onload()},addEventListener("lazybeforeunveil",function(e){var t,i,a;if(e.detail.instance==n&&!e.defaultPrevented){var r=e.target;if("none"==r.preload&&(r.preload=r.getAttribute("data-preload")||"auto"),null!=r.getAttribute("data-autoplay"))if(r.getAttribute("data-expand")&&!r.autoplay)try{r.play()}catch(e){}else requestAnimationFrame(function(){r.setAttribute("data-expand","-10"),n.aC(r,n.cfg.lazyClass)});(t=r.getAttribute("data-link"))&&u(t,!0),(t=r.getAttribute("data-script"))&&u(t),(t=r.getAttribute("data-require"))&&(n.cfg.requireJs?n.cfg.requireJs([t]):u(t)),(i=r.getAttribute("data-bg"))&&(e.detail.firesLoad=!0,o(i,function(){r.style.backgroundImage="url("+(s.test(i)?JSON.stringify(i):i)+")",e.detail.firesLoad=!1,n.fire(r,"_lazyloaded",{},!0,!0)})),(a=r.getAttribute("data-poster"))&&(e.detail.firesLoad=!0,o(a,function(){r.poster=a,e.detail.firesLoad=!1,n.fire(r,"_lazyloaded",{},!0,!0)}))}},!(s=/\(|\)|\s|'/)))});



!function(){"use strict";function e(e,t){var n;const o=window.scrollY;let r=0;if(Number.isInteger(e))r=e;else{const n=e.getBoundingClientRect();r=n.top+o-t,r<0&&(r=0)}if(null===(n=window.swellVars)||void 0===n?void 0:n.offSmoothScroll)return void window.scrollTo(0,r);let i=null,c=500;const s=Math.abs(r-o);1e4<s?c=1500:5e3<s?c=1e3:1e3<s&&(c=750);const l=e=>{const t=e-i,n=Math.min(1,t/c),s=o+(r-o)*(a=n,1-Math.pow(1-a,3));var a;window.scrollTo(0,s),n<1&&requestAnimationFrame(l)};i=performance.now(),l(i)}window.swellVars.isFixHeadSP,navigator.userAgent.toLowerCase();const t={pageTop(){e(0,0)},toggleMenu(){"opened"===document.documentElement.getAttribute("data-spmenu")?document.documentElement.setAttribute("data-spmenu","closed"):document.documentElement.setAttribute("data-spmenu","opened")},toggleSearch(){const e=document.getElementById("search_modal");if(null===e)return!1;e.classList.contains("is-opened")?e.classList.remove("is-opened"):(e.classList.add("is-opened"),setTimeout((()=>{e.querySelector('[name="s"]').focus()}),250))},toggleIndex(){const e=document.getElementById("index_modal");null!==e&&e.classList.toggle("is-opened")},toggleAccordion(){},toggleSubmenu(e){const t=e.currentTarget,n=t.parentNode.nextElementSibling;t.classList.toggle("is-opened"),n.classList.toggle("is-opened"),e.stopPropagation()},tabControl(e){const t=e.currentTarget,n="true"===t.getAttribute("aria-selected");if(0===e.clientX||t.blur(),n)return;const o=t.getAttribute("aria-controls"),r=document.getElementById(o);if(null===r)return;const i=t.closest('[role="tablist"]').querySelector('.c-tabList__item [aria-selected="true"]'),c=i.getAttribute("aria-controls"),s=document.getElementById(c);t.setAttribute("aria-selected","true"),i.setAttribute("aria-selected","false"),r.setAttribute("aria-hidden","false"),s.setAttribute("aria-hidden","true")},scrollToContent(){const t=document.querySelector("#main_visual + *");t&&e(t,-8)},clickLink(e){const t=e.currentTarget.querySelector("a");"mousedown"===e.type?1===e.button&&window.open(t.getAttribute("href")):(t.onclick=e=>(e.stopPropagation(),!0),t.click())}};document.addEventListener("DOMContentLoaded",(function(){!function(){const e=document.getElementById("header");if(null===e)return;const n=document.getElementById("fix_header");if(null!==n){if(e.classList.contains("-series")){const r=e.querySelector(".w-header"),i=n.querySelector(".l-fixHeader__inner");if(r&&i){const e=r.cloneNode(!0);i.appendChild(e),(o=i.querySelector(".w-header")).querySelectorAll("[data-onclick]").forEach((e=>{const n=e.getAttribute("data-onclick"),o=t[n];e.addEventListener("click",(function(e){e.preventDefault(),o(e)}))})),o.querySelectorAll('[data-onclick="clickLink"]').forEach((e=>{e.addEventListener("mousedown",(e=>t.clickLink(e)))}))}}var o;setTimeout((()=>{n.setAttribute("data-ready","1")}),250)}}()}))}();



/*!
 * Luminous v2.3.4
 * Copyright 2015-2021, Zebrafish Labs
 * Licensed under BSD-2 (https://github.com/imgix/luminous/blob/main/LICENSE.md)
 */
var l="function"==typeof Object.defineProperties?Object.defineProperty:function(t,i,e){t!=Array.prototype&&t!=Object.prototype&&(t[i]=e.value)},n="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;function p(){p=function(){},n.Symbol||(n.Symbol=q)}var r=0;function q(t){return"jscomp_symbol_"+(t||"")+r++}for(var t=n,u=["Object","assign"],v=0;v<u.length-1;v++){var x=u[v];x in t||(t[x]={}),t=t[x]}var A=u[u.length-1],B=t[A],C=B||function(t,i){for(var e=1;e<arguments.length;e++){var n=arguments[e];if(n)for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t};C!=B&&null!=C&&l(t,A,{configurable:!0,writable:!0,value:C}),function(t){function i(n){if(e[n])return e[n].K;var o=e[n]={la:n,ga:!1,K:{}};return t[n].call(o.K,o,o.K,i),o.ga=!0,o.K}var e={};i.m=t,i.f=e,i.a=function(t,e,n){i.b(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){p(),p(),"undefined"!=typeof Symbol&&Symbol.toStringTag&&(p(),Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})),Object.defineProperty(t,"__esModule",{value:!0})},i.l=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.da)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.a(n,o,function(i){return t[i]}.bind(null,o));return n},i.g=function(t){var e=t&&t.da?function(){return t.default}:function(){return t};return i.a(e,"a",e),e},i.b=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},i.h="",i(i.u=0)}([function(t,i,e){function n(t,i,e){i=void 0===i?{}:i,e=void 0===e?{}:e,this.g=Object.assign({},{ka:!0},i),this.a=t,this.b=e,this.b._gallery=this,this.b._arrowNavigation=this.g.arrowNavigation,this.h()}function o(t,i){if(i=void 0===i?{}:i,this.j=this.j.bind(this),this.open=this.open.bind(this),this.close=this.close.bind(this),this.g=this.g.bind(this),this.h=!1,this.b=t,!h(this.b))throw new TypeError("`new Luminous` requires a DOM element as its first argument.");t=document,"getRootNode"in this.b&&(t=this.b.getRootNode()),t=i.appendToNode||(t===document?document.body:t),this.a={B:i.namespace||null,v:i.sourceAttribute||"href",caption:i.caption||null,$:i.openTrigger||"click",s:i.closeTrigger||"click",Z:!("closeWithEscape"in i)||!!i.closeWithEscape,Y:i.closeOnScroll||!1,w:null==i.showCloseButton||i.showCloseButton,ea:t,X:i.appendToSelector||null,ia:i.onOpen||null,D:i.onClose||null,A:i.includeImgixJSClass||!1,fa:!("injectBaseStyles"in i)||!!i.injectBaseStyles,i:i._gallery||null,o:i._arrowNavigation||null},i=document.body,t&&"getRootNode"in t&&(i=t.getRootNode()),this.a.fa&&(i&&i!==document||(i=document.head),i.querySelector(".lum-base-styles")||((t=document.createElement("style")).type="text/css",t.classList.add("lum-base-styles"),t.appendChild(document.createTextNode("@keyframes lum-noop{0%{zoom:1}}.lum-lightbox{position:fixed;display:none;top:0;right:0;bottom:0;left:0}.lum-lightbox.lum-open{display:block}.lum-lightbox.lum-closing,.lum-lightbox.lum-opening{animation:lum-noop 1ms}.lum-lightbox-inner{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden}.lum-lightbox-loader{display:none}.lum-lightbox-inner img{max-width:100%;max-height:100%}.lum-lightbox-image-wrapper{vertical-align:middle;display:table-cell;text-align:center}")),i.insertBefore(t,i.firstChild))),this.m(),this.l()}function s(t){t=void 0===t?{}:t,this.g=this.g.bind(this),this.I=this.I.bind(this),this.J=this.J.bind(this),this.L=this.L.bind(this),this.u=this.u.bind(this),this.N=this.N.bind(this),this.M=this.M.bind(this);var i=t,e=void 0===i.B?null:i.B,n=void 0===i.C?l():i.C,o=void 0===i.F?l():i.F,s=void 0===i.v?l():i.v;if(this.a={B:e,C:n,F:o,v:s,caption:void 0===i.caption?null:i.caption,A:void 0!==i.A&&i.A,i:void 0===i.i?null:i.i,o:void 0===i.o?null:i.o,w:void 0===i.w||i.w,D:t.D,s:void 0===i.s?"click":i.s},!h(this.a.C))throw new TypeError("`new Lightbox` requires a DOM element passed as `parentEl`.");this.h=this.a.F,this.R=this.b("open"),this.W=this.b("opening"),this.T=this.b("closing"),this.U=this.V=!1}function h(t){return!!(p&&t instanceof ShadowRoot)||(c?t instanceof HTMLElement:t&&"object"==typeof t&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName)}function a(t,i){i.forEach((function(i){t.classList.add(i)}))}function r(t,i){i.forEach((function(i){t.classList.remove(i)}))}function l(){throw Error("Missing parameter")}e.r(i);var c="object"==typeof HTMLElement,p="undefined"!=typeof ShadowRoot,u="undefined"!=typeof document&&"animation"in document.createElement("div").style;s.prototype.M=function(t){t&&"function"==typeof t.preventDefault&&t.preventDefault(),(t=this.a.D)&&"function"==typeof t&&t()},s.prototype.aa=function(){this.c.addEventListener(this.a.s,this.M),this.G&&this.G.addEventListener("click",this.M)},s.prototype.b=function(t){var i=["lum-"+t],e=this.a.B;return e&&i.push(e+"-"+t),i},s.prototype.ba=function(){this.c=document.createElement("div"),a(this.c,this.b("lightbox")),this.f=document.createElement("div"),a(this.f,this.b("lightbox-inner")),this.c.appendChild(this.f);var t=document.createElement("div");a(t,this.b("lightbox-loader")),this.f.appendChild(t),this.H=document.createElement("div"),a(this.H,this.b("lightbox-image-wrapper")),this.f.appendChild(this.H),a(t=document.createElement("span"),this.b("lightbox-position-helper")),this.H.appendChild(t),this.m=document.createElement("img"),a(this.m,this.b("img")),t.appendChild(this.m),this.l=document.createElement("p"),a(this.l,this.b("lightbox-caption")),t.appendChild(this.l),this.a.w&&(this.G=document.createElement("div"),a(this.G,this.b("close-button")),this.c.appendChild(this.G)),this.a.i&&this.ca(),this.a.C.appendChild(this.c),this.P(),this.O(),this.a.A&&this.m.classList.add("imgix-fluid")},s.prototype.ca=function(){this.S("previous",this.J),this.S("next",this.I)},s.prototype.S=function(t,i){var e=document.createElement("button");this[t+"Button"]=e,e.innerText=t,a(e,this.b(t+"-button")),a(e,this.b("gallery-button")),this.f.appendChild(e),e.addEventListener("click",(function(t){t.stopPropagation(),i()}),!1)},s.prototype.g=function(){var t=this.H.style;t.width=this.f.clientWidth+"px",t.maxWidth=this.f.clientWidth+"px",t.height=this.f.clientHeight-this.l.clientHeight+"px",t.maxHeight=this.f.clientHeight-this.l.clientHeight+"px"},s.prototype.O=function(){var t=typeof this.a.caption,i="";"string"===t?i=this.a.caption:"function"===t&&(i=this.a.caption(this.h)),this.l.innerHTML=i},s.prototype.P=function(){var t=this,i=this.h.getAttribute(this.a.v);if(!i)throw Error("No image URL was found in the "+this.a.v+" attribute of the trigger.");var e=this.b("loading");this.V||a(this.c,e),this.m.onload=function(){r(t.c,e),t.V=!0},this.m.setAttribute("src",i)},s.prototype.N=function(t){37==t.keyCode?this.J():39==t.keyCode&&this.I()},s.prototype.I=function(){this.a.i&&(this.h=this.a.i.ha(this.h),this.P(),this.O(),this.g())},s.prototype.J=function(){this.a.i&&(this.h=this.a.i.ja(this.h),this.P(),this.O(),this.g())},s.prototype.open=function(){this.U||(this.ba(),this.aa(),this.U=!0),this.h=this.a.F,this.P(),this.O(),a(this.c,this.R),this.g(),window.addEventListener("resize",this.g,!1),this.a.o&&window.addEventListener("keydown",this.N,!1),u&&(this.c.addEventListener("animationend",this.L,!1),a(this.c,this.W))},s.prototype.close=function(){window.removeEventListener("resize",this.g,!1),this.a.o&&window.removeEventListener("keydown",this.N,!1),u?(this.c.addEventListener("animationend",this.u,!1),a(this.c,this.T)):r(this.c,this.R)},s.prototype.L=function(){this.c.removeEventListener("animationend",this.L,!1),r(this.c,this.W)},s.prototype.u=function(){this.c.removeEventListener("animationend",this.u,!1),r(this.c,this.R),r(this.c,this.T)},s.prototype.j=function(){this.c&&this.a.C.removeChild(this.c)},o.prototype.open=function(t){t&&"function"==typeof t.preventDefault&&t.preventDefault(),this.f.open(),this.a.Y&&window.addEventListener("scroll",this.close,!1),(t=this.a.ia)&&"function"==typeof t&&t(),this.h=!0},o.prototype.close=function(){this.a.Y&&window.removeEventListener("scroll",this.close,!1),this.f.close();var t=this.a.D;t&&"function"==typeof t&&t(),this.h=!1},o.prototype.m=function(){var t=this.a.ea;this.a.X&&(t=document.querySelector(this.a.X)),this.f=new s({B:this.a.B,C:t,F:this.b,v:this.a.v,caption:this.a.caption,A:this.a.A,w:this.a.w,i:this.a.i,o:this.a.o,s:this.a.s,D:this.close})},o.prototype.l=function(){this.b.addEventListener(this.a.$,this.open,!1),this.a.Z&&window.addEventListener("keyup",this.g,!1)},o.prototype.u=function(){this.b.removeEventListener(this.a.$,this.open,!1),this.f.c&&this.f.c.removeEventListener(this.a.s,this.close,!1),this.a.Z&&window.removeEventListener("keyup",this.g,!1)},o.prototype.g=function(t){this.h&&27===t.keyCode&&this.close()},o.prototype.j=function(){this.u(),this.f.j()},o.prototype.open=o.prototype.open,o.prototype.close=o.prototype.close,o.prototype.destroy=o.prototype.j,n.prototype.h=function(){this.f=[];for(var t=this.a.length,i=0;i<t;i++){var e=new o(this.a[i],this.b);this.f.push(e)}},n.prototype.ha=function(t){return(t=Array.prototype.indexOf.call(this.a,t)+1)>=this.a.length?this.a[0]:this.a[t]},n.prototype.ja=function(t){return 0>(t=Array.prototype.indexOf.call(this.a,t)-1)?this.a[this.a.length-1]:this.a[t]},n.prototype.j=function(){this.f.forEach((function(t){return t.j()}))},n.prototype.destroy=n.prototype.j,window.LuminousGallery=n,window.Luminous=o}]);



!function(){const t=t=>{if("off"===t.getAttribute("data-luminous"))return!1;if("A"===t.parentNode.tagName)return t.setAttribute("data-luminous","off"),!1;if(-1!==t.className.indexOf("luminous"))return!1;let o=t.getAttribute("data-src");if(o||(o=t.getAttribute("src")),!o)return!1;const u=o.replace(/-[0-9]*x[0-9]*\./,".");return t.setAttribute("data-luminous",u),t.classList.add("luminous"),!0};function o(){window.LuminousGallery&&window.LuminousGallery&&(function(){const t=document.querySelectorAll(".u-lb-off img, img.u-lb-off, img.-no-lb");1>t.length||t.forEach((t=>{t.setAttribute("data-luminous","off")}))}(),(()=>{const o=document.querySelectorAll(".post_content .wp-block-gallery:not(.u-lb-off)");1>o.length||o.forEach((o=>{const u=[...o.querySelectorAll("img")],e=[];u.forEach((o=>{t(o)&&e.push(o)})),0<e.length&&new LuminousGallery(e,{arrowNavigation:!0},{sourceAttribute:"data-luminous"})}))})(),function(){var o;let u=".u-lb-on img, img.u-lb-on ";"1"===(null===(o=window.swlLuminousVars)||void 0===o?void 0:o.postImg)&&(u+=", .post_content .wp-block-image:not(.u-lb-off) img");const e=document.querySelectorAll(u);1>e.length||e.forEach((o=>{t(o)&&new Luminous(o,{sourceAttribute:"data-luminous"})}))}())}o(),window.SWELLHOOK&&window.SWELLHOOK.barbaAfter.add(o)}();



/*! jQuery Validation Plugin - v1.20.1 - 6/13/2024
 * https://jqueryvalidation.org/
 * Copyright (c) 2024 Jörn Zaefferer; Licensed MIT */
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){a.extend(a.fn,{validate:function(b){if(!this.length)return void(b&&b.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing."));var c=a.data(this[0],"validator");return c?c:(this.attr("novalidate","novalidate"),c=new a.validator(b,this[0]),a.data(this[0],"validator",c),c.settings.onsubmit&&(this.on("click.validate",":submit",function(b){c.submitButton=b.currentTarget,a(this).hasClass("cancel")&&(c.cancelSubmit=!0),void 0!==a(this).attr("formnovalidate")&&(c.cancelSubmit=!0)}),this.on("submit.validate",function(b){function d(){var d,e;return c.submitButton&&(c.settings.submitHandler||c.formSubmitted)&&(d=a("<input type='hidden'/>").attr("name",c.submitButton.name).val(a(c.submitButton).val()).appendTo(c.currentForm)),!(c.settings.submitHandler&&!c.settings.debug)||(e=c.settings.submitHandler.call(c,c.currentForm,b),d&&d.remove(),void 0!==e&&e)}return c.settings.debug&&b.preventDefault(),c.cancelSubmit?(c.cancelSubmit=!1,d()):c.form()?c.pendingRequest?(c.formSubmitted=!0,!1):d():(c.focusInvalid(),!1)})),c)},valid:function(){var b,c,d;return a(this[0]).is("form")?b=this.validate().form():(d=[],b=!0,c=a(this[0].form).validate(),this.each(function(){b=c.element(this)&&b,b||(d=d.concat(c.errorList))}),c.errorList=d),b},rules:function(b,c){var d,e,f,g,h,i,j=this[0],k="undefined"!=typeof this.attr("contenteditable")&&"false"!==this.attr("contenteditable");if(null!=j&&(!j.form&&k&&(j.form=this.closest("form")[0],j.name=this.attr("name")),null!=j.form)){if(b)switch(d=a.data(j.form,"validator").settings,e=d.rules,f=a.validator.staticRules(j),b){case"add":a.extend(f,a.validator.normalizeRule(c)),delete f.messages,e[j.name]=f,c.messages&&(d.messages[j.name]=a.extend(d.messages[j.name],c.messages));break;case"remove":return c?(i={},a.each(c.split(/\s/),function(a,b){i[b]=f[b],delete f[b]}),i):(delete e[j.name],f)}return g=a.validator.normalizeRules(a.extend({},a.validator.classRules(j),a.validator.attributeRules(j),a.validator.dataRules(j),a.validator.staticRules(j)),j),g.required&&(h=g.required,delete g.required,g=a.extend({required:h},g)),g.remote&&(h=g.remote,delete g.remote,g=a.extend(g,{remote:h})),g}}});var b=function(a){return a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};a.extend(a.expr.pseudos||a.expr[":"],{blank:function(c){return!b(""+a(c).val())},filled:function(c){var d=a(c).val();return null!==d&&!!b(""+d)},unchecked:function(b){return!a(b).prop("checked")}}),a.validator=function(b,c){this.settings=a.extend(!0,{},a.validator.defaults,b),this.currentForm=c,this.init()},a.validator.format=function(b,c){return 1===arguments.length?function(){var c=a.makeArray(arguments);return c.unshift(b),a.validator.format.apply(this,c)}:void 0===c?b:(arguments.length>2&&c.constructor!==Array&&(c=a.makeArray(arguments).slice(1)),c.constructor!==Array&&(c=[c]),a.each(c,function(a,c){b=b.replace(new RegExp("\\{"+a+"\\}","g"),function(){return c})}),b)},a.extend(a.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:a([]),errorLabelContainer:a([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(a){this.lastActive=a,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,a,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(a)))},onfocusout:function(a){this.checkable(a)||!(a.name in this.submitted)&&this.optional(a)||this.element(a)},onkeyup:function(b,c){var d=[16,17,18,20,35,36,37,38,39,40,45,144,225];9===c.which&&""===this.elementValue(b)||a.inArray(c.keyCode,d)!==-1||(b.name in this.submitted||b.name in this.invalid)&&this.element(b)},onclick:function(a){a.name in this.submitted?this.element(a):a.parentNode.name in this.submitted&&this.element(a.parentNode)},highlight:function(b,c,d){"radio"===b.type?this.findByName(b.name).addClass(c).removeClass(d):a(b).addClass(c).removeClass(d)},unhighlight:function(b,c,d){"radio"===b.type?this.findByName(b.name).removeClass(c).addClass(d):a(b).removeClass(c).addClass(d)}},setDefaults:function(b){a.extend(a.validator.defaults,b)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:a.validator.format("Please enter no more than {0} characters."),minlength:a.validator.format("Please enter at least {0} characters."),rangelength:a.validator.format("Please enter a value between {0} and {1} characters long."),range:a.validator.format("Please enter a value between {0} and {1}."),max:a.validator.format("Please enter a value less than or equal to {0}."),min:a.validator.format("Please enter a value greater than or equal to {0}."),step:a.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){function b(b){var c="undefined"!=typeof a(this).attr("contenteditable")&&"false"!==a(this).attr("contenteditable");if(!this.form&&c&&(this.form=a(this).closest("form")[0],this.name=a(this).attr("name")),d===this.form){var e=a.data(this.form,"validator"),f="on"+b.type.replace(/^validate/,""),g=e.settings;g[f]&&!a(this).is(g.ignore)&&g[f].call(e,this,b)}}this.labelContainer=a(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||a(this.currentForm),this.containers=a(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var c,d=this.currentForm,e=this.groups={};a.each(this.settings.groups,function(b,c){"string"==typeof c&&(c=c.split(/\s/)),a.each(c,function(a,c){e[c]=b})}),c=this.settings.rules,a.each(c,function(b,d){c[b]=a.validator.normalizeRule(d)}),a(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], [type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox'], [contenteditable], [type='button']",b).on("click.validate","select, option, [type='radio'], [type='checkbox']",b),this.settings.invalidHandler&&a(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),a.extend(this.submitted,this.errorMap),this.invalid=a.extend({},this.errorMap),this.valid()||a(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var a=0,b=this.currentElements=this.elements();b[a];a++)this.check(b[a]);return this.valid()},element:function(b){var c,d,e=this.clean(b),f=this.validationTargetFor(e),g=this,h=!0;return void 0===f?delete this.invalid[e.name]:(this.prepareElement(f),this.currentElements=a(f),d=this.groups[f.name],d&&a.each(this.groups,function(a,b){b===d&&a!==f.name&&(e=g.validationTargetFor(g.clean(g.findByName(a))),e&&e.name in g.invalid&&(g.currentElements.push(e),h=g.check(e)&&h))}),c=this.check(f)!==!1,h=h&&c,c?this.invalid[f.name]=!1:this.invalid[f.name]=!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),a(b).attr("aria-invalid",!c)),h},showErrors:function(b){if(b){var c=this;a.extend(this.errorMap,b),this.errorList=a.map(this.errorMap,function(a,b){return{message:a,element:c.findByName(b)[0]}}),this.successList=a.grep(this.successList,function(a){return!(a.name in b)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){a.fn.resetForm&&a(this.currentForm).resetForm(),this.invalid={},this.submitted={},this.prepareForm(),this.hideErrors();var b=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(b)},resetElements:function(a){var b;if(this.settings.unhighlight)for(b=0;a[b];b++)this.settings.unhighlight.call(this,a[b],this.settings.errorClass,""),this.findByName(a[b].name).removeClass(this.settings.validClass);else a.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(a){var b,c=0;for(b in a)void 0!==a[b]&&null!==a[b]&&a[b]!==!1&&c++;return c},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(a){a.not(this.containers).text(""),this.addWrapper(a).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{a(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").trigger("focus").trigger("focusin")}catch(b){}},findLastActive:function(){var b=this.lastActive;return b&&1===a.grep(this.errorList,function(a){return a.element.name===b.name}).length&&b},elements:function(){var b=this,c={};return a(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var d=this.name||a(this).attr("name"),e="undefined"!=typeof a(this).attr("contenteditable")&&"false"!==a(this).attr("contenteditable");return!d&&b.settings.debug&&window.console&&console.error("%o has no name assigned",this),e&&(this.form=a(this).closest("form")[0],this.name=d),this.form===b.currentForm&&(!(d in c||!b.objectLength(a(this).rules()))&&(c[d]=!0,!0))})},clean:function(b){return a(b)[0]},errors:function(){var b=this.settings.errorClass.split(" ").join(".");return a(this.settings.errorElement+"."+b,this.errorContext)},resetInternals:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=a([]),this.toHide=a([])},reset:function(){this.resetInternals(),this.currentElements=a([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(a){this.reset(),this.toHide=this.errorsFor(a)},elementValue:function(b){var c,d,e=a(b),f=b.type,g="undefined"!=typeof e.attr("contenteditable")&&"false"!==e.attr("contenteditable");return"radio"===f||"checkbox"===f?this.findByName(b.name).filter(":checked").val():"number"===f&&"undefined"!=typeof b.validity?b.validity.badInput?"NaN":e.val():(c=g?e.text():e.val(),"file"===f?"C:\\fakepath\\"===c.substr(0,12)?c.substr(12):(d=c.lastIndexOf("/"),d>=0?c.substr(d+1):(d=c.lastIndexOf("\\"),d>=0?c.substr(d+1):c)):"string"==typeof c?c.replace(/\r/g,""):c)},check:function(b){b=this.validationTargetFor(this.clean(b));var c,d,e,f,g=a(b).rules(),h=a.map(g,function(a,b){return b}).length,i=!1,j=this.elementValue(b);this.abortRequest(b),"function"==typeof g.normalizer?f=g.normalizer:"function"==typeof this.settings.normalizer&&(f=this.settings.normalizer),f&&(j=f.call(b,j),delete g.normalizer);for(d in g){e={method:d,parameters:g[d]};try{if(c=a.validator.methods[d].call(this,j,b,e.parameters),"dependency-mismatch"===c&&1===h){i=!0;continue}if(i=!1,"pending"===c)return void(this.toHide=this.toHide.not(this.errorsFor(b)));if(!c)return this.formatAndAdd(b,e),!1}catch(k){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+b.id+", check the '"+e.method+"' method.",k),k instanceof TypeError&&(k.message+=".  Exception occurred when checking element "+b.id+", check the '"+e.method+"' method."),k}}if(!i)return this.objectLength(g)&&this.successList.push(b),!0},customDataMessage:function(b,c){return a(b).data("msg"+c.charAt(0).toUpperCase()+c.substring(1).toLowerCase())||a(b).data("msg")},customMessage:function(a,b){var c=this.settings.messages[a];return c&&(c.constructor===String?c:c[b])},findDefined:function(){for(var a=0;a<arguments.length;a++)if(void 0!==arguments[a])return arguments[a]},defaultMessage:function(b,c){"string"==typeof c&&(c={method:c});var d=this.findDefined(this.customMessage(b.name,c.method),this.customDataMessage(b,c.method),!this.settings.ignoreTitle&&b.title||void 0,a.validator.messages[c.method],"<strong>Warning: No message defined for "+b.name+"</strong>"),e=/\$?\{(\d+)\}/g;return"function"==typeof d?d=d.call(this,c.parameters,b):e.test(d)&&(d=a.validator.format(d.replace(e,"{$1}"),c.parameters)),d},formatAndAdd:function(a,b){var c=this.defaultMessage(a,b);this.errorList.push({message:c,element:a,method:b.method}),this.errorMap[a.name]=c,this.submitted[a.name]=c},addWrapper:function(a){return this.settings.wrapper&&(a=a.add(a.parent(this.settings.wrapper))),a},defaultShowErrors:function(){var a,b,c;for(a=0;this.errorList[a];a++)c=this.errorList[a],this.settings.highlight&&this.settings.highlight.call(this,c.element,this.settings.errorClass,this.settings.validClass),this.showLabel(c.element,c.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(a=0;this.successList[a];a++)this.showLabel(this.successList[a]);if(this.settings.unhighlight)for(a=0,b=this.validElements();b[a];a++)this.settings.unhighlight.call(this,b[a],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return a(this.errorList).map(function(){return this.element})},showLabel:function(b,c){var d,e,f,g,h=this.errorsFor(b),i=this.idOrName(b),j=a(b).attr("aria-describedby");h.length?(h.removeClass(this.settings.validClass).addClass(this.settings.errorClass),this.settings&&this.settings.escapeHtml?h.text(c||""):h.html(c||"")):(h=a("<"+this.settings.errorElement+">").attr("id",i+"-error").addClass(this.settings.errorClass),this.settings&&this.settings.escapeHtml?h.text(c||""):h.html(c||""),d=h,this.settings.wrapper&&(d=h.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(d):this.settings.errorPlacement?this.settings.errorPlacement.call(this,d,a(b)):d.insertAfter(b),h.is("label")?h.attr("for",i):0===h.parents("label[for='"+this.escapeCssMeta(i)+"']").length&&(f=h.attr("id"),j?j.match(new RegExp("\\b"+this.escapeCssMeta(f)+"\\b"))||(j+=" "+f):j=f,a(b).attr("aria-describedby",j),e=this.groups[b.name],e&&(g=this,a.each(g.groups,function(b,c){c===e&&a("[name='"+g.escapeCssMeta(b)+"']",g.currentForm).attr("aria-describedby",h.attr("id"))})))),!c&&this.settings.success&&(h.text(""),"string"==typeof this.settings.success?h.addClass(this.settings.success):this.settings.success(h,b)),this.toShow=this.toShow.add(h)},errorsFor:function(b){var c=this.escapeCssMeta(this.idOrName(b)),d=a(b).attr("aria-describedby"),e="label[for='"+c+"'], label[for='"+c+"'] *";return d&&(e=e+", #"+this.escapeCssMeta(d).replace(/\s+/g,", #")),this.errors().filter(e)},escapeCssMeta:function(a){return void 0===a?"":a.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(a){return this.groups[a.name]||(this.checkable(a)?a.name:a.id||a.name)},validationTargetFor:function(b){return this.checkable(b)&&(b=this.findByName(b.name)),a(b).not(this.settings.ignore)[0]},checkable:function(a){return/radio|checkbox/i.test(a.type)},findByName:function(b){return a(this.currentForm).find("[name='"+this.escapeCssMeta(b)+"']")},getLength:function(b,c){switch(c.nodeName.toLowerCase()){case"select":return a("option:selected",c).length;case"input":if(this.checkable(c))return this.findByName(c.name).filter(":checked").length}return b.length},depend:function(a,b){return!this.dependTypes[typeof a]||this.dependTypes[typeof a](a,b)},dependTypes:{"boolean":function(a){return a},string:function(b,c){return!!a(b,c.form).length},"function":function(a,b){return a(b)}},optional:function(b){var c=this.elementValue(b);return!a.validator.methods.required.call(this,c,b)&&"dependency-mismatch"},elementAjaxPort:function(a){return"validate"+a.name},startRequest:function(b){this.pending[b.name]||(this.pendingRequest++,a(b).addClass(this.settings.pendingClass),this.pending[b.name]=!0)},stopRequest:function(b,c){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[b.name],a(b).removeClass(this.settings.pendingClass),c&&0===this.pendingRequest&&this.formSubmitted&&this.form()&&0===this.pendingRequest?(a(this.currentForm).trigger("submit"),this.submitButton&&a("input:hidden[name='"+this.submitButton.name+"']",this.currentForm).remove(),this.formSubmitted=!1):!c&&0===this.pendingRequest&&this.formSubmitted&&(a(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},abortRequest:function(b){var c;this.pending[b.name]&&(c=this.elementAjaxPort(b),a.ajaxAbort(c),this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[b.name],a(b).removeClass(this.settings.pendingClass))},previousValue:function(b,c){return c="string"==typeof c&&c||"remote",a.data(b,"previousValue")||a.data(b,"previousValue",{old:null,valid:!0,message:this.defaultMessage(b,{method:c})})},destroy:function(){this.resetForm(),a(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur").find(".validate-lessThan-blur").off(".validate-lessThan").removeClass("validate-lessThan-blur").find(".validate-lessThanEqual-blur").off(".validate-lessThanEqual").removeClass("validate-lessThanEqual-blur").find(".validate-greaterThanEqual-blur").off(".validate-greaterThanEqual").removeClass("validate-greaterThanEqual-blur").find(".validate-greaterThan-blur").off(".validate-greaterThan").removeClass("validate-greaterThan-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(b,c){b.constructor===String?this.classRuleSettings[b]=c:a.extend(this.classRuleSettings,b)},classRules:function(b){var c={},d=a(b).attr("class");return d&&a.each(d.split(" "),function(){this in a.validator.classRuleSettings&&a.extend(c,a.validator.classRuleSettings[this])}),c},normalizeAttributeRule:function(a,b,c,d){/min|max|step/.test(c)&&(null===b||/number|range|text/.test(b))&&(d=Number(d),isNaN(d)&&(d=void 0)),d||0===d?a[c]=d:b===c&&"range"!==b&&(a["date"===b?"dateISO":c]=!0)},attributeRules:function(b){var c,d,e={},f=a(b),g=b.getAttribute("type");for(c in a.validator.methods)"required"===c?(d=b.getAttribute(c),""===d&&(d=!0),d=!!d):d=f.attr(c),this.normalizeAttributeRule(e,g,c,d);return e.maxlength&&/-1|2147483647|524288/.test(e.maxlength)&&delete e.maxlength,e},dataRules:function(b){var c,d,e={},f=a(b),g=b.getAttribute("type");for(c in a.validator.methods)d=f.data("rule"+c.charAt(0).toUpperCase()+c.substring(1).toLowerCase()),""===d&&(d=!0),this.normalizeAttributeRule(e,g,c,d);return e},staticRules:function(b){var c={},d=a.data(b.form,"validator");return d.settings.rules&&(c=a.validator.normalizeRule(d.settings.rules[b.name])||{}),c},normalizeRules:function(b,c){return a.each(b,function(d,e){if(e===!1)return void delete b[d];if(e.param||e.depends){var f=!0;switch(typeof e.depends){case"string":f=!!a(e.depends,c.form).length;break;case"function":f=e.depends.call(c,c)}f?b[d]=void 0===e.param||e.param:(a.data(c.form,"validator").resetElements(a(c)),delete b[d])}}),a.each(b,function(a,d){b[a]="function"==typeof d&&"normalizer"!==a?d(c):d}),a.each(["minlength","maxlength"],function(){b[this]&&(b[this]=Number(b[this]))}),a.each(["rangelength","range"],function(){var a;b[this]&&(Array.isArray(b[this])?b[this]=[Number(b[this][0]),Number(b[this][1])]:"string"==typeof b[this]&&(a=b[this].replace(/[\[\]]/g,"").split(/[\s,]+/),b[this]=[Number(a[0]),Number(a[1])]))}),a.validator.autoCreateRanges&&(null!=b.min&&null!=b.max&&(b.range=[b.min,b.max],delete b.min,delete b.max),null!=b.minlength&&null!=b.maxlength&&(b.rangelength=[b.minlength,b.maxlength],delete b.minlength,delete b.maxlength)),b},normalizeRule:function(b){if("string"==typeof b){var c={};a.each(b.split(/\s/),function(){c[this]=!0}),b=c}return b},addMethod:function(b,c,d){a.validator.methods[b]=c,a.validator.messages[b]=void 0!==d?d:a.validator.messages[b],c.length<3&&a.validator.addClassRules(b,a.validator.normalizeRule(b))},methods:{required:function(b,c,d){if(!this.depend(d,c))return"dependency-mismatch";if("select"===c.nodeName.toLowerCase()){var e=a(c).val();return e&&e.length>0}return this.checkable(c)?this.getLength(b,c)>0:void 0!==b&&null!==b&&b.length>0},email:function(a,b){return this.optional(b)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(a)},url:function(a,b){return this.optional(b)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:(?:[^\]\[?\/<~#`!@$^&*()+=}|:";',>{ ]|%[0-9A-Fa-f]{2})+(?::(?:[^\]\[?\/<~#`!@$^&*()+=}|:";',>{ ]|%[0-9A-Fa-f]{2})*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(a)},date:function(){var a=!1;return function(b,c){return a||(a=!0,this.settings.debug&&window.console&&console.warn("The `date` method is deprecated and will be removed in version '2.0.0'.\nPlease don't use it, since it relies on the Date constructor, which\nbehaves very differently across browsers and locales. Use `dateISO`\ninstead or one of the locale specific methods in `localizations/`\nand `additional-methods.js`.")),this.optional(c)||!/Invalid|NaN/.test(new Date(b).toString())}}(),dateISO:function(a,b){return this.optional(b)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(a)},number:function(a,b){return this.optional(b)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(a)},digits:function(a,b){return this.optional(b)||/^\d+$/.test(a)},minlength:function(a,b,c){var d=Array.isArray(a)?a.length:this.getLength(a,b);return this.optional(b)||d>=c},maxlength:function(a,b,c){var d=Array.isArray(a)?a.length:this.getLength(a,b);return this.optional(b)||d<=c},rangelength:function(a,b,c){var d=Array.isArray(a)?a.length:this.getLength(a,b);return this.optional(b)||d>=c[0]&&d<=c[1]},min:function(a,b,c){return this.optional(b)||a>=c},max:function(a,b,c){return this.optional(b)||a<=c},range:function(a,b,c){return this.optional(b)||a>=c[0]&&a<=c[1]},step:function(b,c,d){var e,f=a(c).attr("type"),g="Step attribute on input type "+f+" is not supported.",h=["text","number","range"],i=new RegExp("\\b"+f+"\\b"),j=f&&!i.test(h.join()),k=function(a){var b=(""+a).match(/(?:\.(\d+))?$/);return b&&b[1]?b[1].length:0},l=function(a){return Math.round(a*Math.pow(10,e))},m=!0;if(j)throw new Error(g);return e=k(d),(k(b)>e||l(b)%l(d)!==0)&&(m=!1),this.optional(c)||m},equalTo:function(b,c,d){var e=a(d);return this.settings.onfocusout&&e.not(".validate-equalTo-blur").length&&e.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){a(c).valid()}),b===e.val()},remote:function(b,c,d,e){if(this.optional(c))return"dependency-mismatch";e="string"==typeof e&&e||"remote";var f,g,h,i=this.previousValue(c,e);return this.settings.messages[c.name]||(this.settings.messages[c.name]={}),i.originalMessage=i.originalMessage||this.settings.messages[c.name][e],this.settings.messages[c.name][e]=i.message,d="string"==typeof d&&{url:d}||d,h=a.param(a.extend({data:b},d.data)),null!==i.valid&&i.old===h?i.valid:(i.old=h,i.valid=null,f=this,this.startRequest(c),g={},g[c.name]=b,a.ajax(a.extend(!0,{mode:"abort",port:this.elementAjaxPort(c),dataType:"json",data:g,context:f.currentForm,success:function(a){var d,g,h,j=a===!0||"true"===a;f.settings.messages[c.name][e]=i.originalMessage,j?(h=f.formSubmitted,f.toHide=f.errorsFor(c),f.formSubmitted=h,f.successList.push(c),f.invalid[c.name]=!1,f.showErrors()):(d={},g=a||f.defaultMessage(c,{method:e,parameters:b}),d[c.name]=i.message=g,f.invalid[c.name]=!0,f.showErrors(d)),i.valid=j,f.stopRequest(c,j)}},d)),"pending")}}});var c,d={};return a.ajaxPrefilter?a.ajaxPrefilter(function(b,c,e){var f=b.port;"abort"===b.mode&&(a.ajaxAbort(f),d[f]=e)}):(c=a.ajax,a.ajax=function(b){var e=("mode"in b?b:a.ajaxSettings).mode,f=("port"in b?b:a.ajaxSettings).port;return"abort"===e?(a.ajaxAbort(f),d[f]=c.apply(this,arguments),d[f]):c.apply(this,arguments)}),a.ajaxAbort=function(a){d[a]&&(d[a].abort(),delete d[a])},a});



/*! mailcheck v1.1.2 @licence MIT */var Mailcheck={domainThreshold:2,secondLevelThreshold:2,topLevelThreshold:2,defaultDomains:["msn.com","bellsouth.net","telus.net","comcast.net","optusnet.com.au","earthlink.net","qq.com","sky.com","icloud.com","mac.com","sympatico.ca","googlemail.com","att.net","xtra.co.nz","web.de","cox.net","gmail.com","ymail.com","aim.com","rogers.com","verizon.net","rocketmail.com","google.com","optonline.net","sbcglobal.net","aol.com","me.com","btinternet.com","charter.net","shaw.ca"],defaultSecondLevelDomains:["yahoo","hotmail","mail","live","outlook","gmx"],defaultTopLevelDomains:["com","com.au","com.tw","ca","co.nz","co.uk","de","fr","it","ru","net","org","edu","gov","jp","nl","kr","se","eu","ie","co.il","us","at","be","dk","hk","es","gr","ch","no","cz","in","net","net.au","info","biz","mil","co.jp","sg","hu","uk"],run:function(a){a.domains=a.domains||Mailcheck.defaultDomains,a.secondLevelDomains=a.secondLevelDomains||Mailcheck.defaultSecondLevelDomains,a.topLevelDomains=a.topLevelDomains||Mailcheck.defaultTopLevelDomains,a.distanceFunction=a.distanceFunction||Mailcheck.sift4Distance;var b=function(a){return a},c=a.suggested||b,d=a.empty||b,e=Mailcheck.suggest(Mailcheck.encodeEmail(a.email),a.domains,a.secondLevelDomains,a.topLevelDomains,a.distanceFunction);return e?c(e):d()},suggest:function(a,b,c,d,e){a=a.toLowerCase();var f=this.splitEmail(a);if(c&&d&&-1!==c.indexOf(f.secondLevelDomain)&&-1!==d.indexOf(f.topLevelDomain))return!1;var g=this.findClosestDomain(f.domain,b,e,this.domainThreshold);if(g)return g==f.domain?!1:{address:f.address,domain:g,full:f.address+"@"+g};var h=this.findClosestDomain(f.secondLevelDomain,c,e,this.secondLevelThreshold),i=this.findClosestDomain(f.topLevelDomain,d,e,this.topLevelThreshold);if(f.domain){g=f.domain;var j=!1;if(h&&h!=f.secondLevelDomain&&(g=g.replace(f.secondLevelDomain,h),j=!0),i&&i!=f.topLevelDomain&&""!==f.secondLevelDomain&&(g=g.replace(new RegExp(f.topLevelDomain+"$"),i),j=!0),j)return{address:f.address,domain:g,full:f.address+"@"+g}}return!1},findClosestDomain:function(a,b,c,d){d=d||this.topLevelThreshold;var e,f=1/0,g=null;if(!a||!b)return!1;c||(c=this.sift4Distance);for(var h=0;h<b.length;h++){if(a===b[h])return a;e=c(a,b[h]),f>e&&(f=e,g=b[h])}return d>=f&&null!==g?g:!1},sift4Distance:function(a,b,c){if(void 0===c&&(c=5),!a||!a.length)return b?b.length:0;if(!b||!b.length)return a.length;for(var d=a.length,e=b.length,f=0,g=0,h=0,i=0,j=0,k=[];d>f&&e>g;){if(a.charAt(f)==b.charAt(g)){i++;for(var l=!1,m=0;m<k.length;){var n=k[m];if(f<=n.c1||g<=n.c2){l=Math.abs(g-f)>=Math.abs(n.c2-n.c1),l?j++:n.trans||(n.trans=!0,j++);break}f>n.c2&&g>n.c1?k.splice(m,1):m++}k.push({c1:f,c2:g,trans:l})}else{h+=i,i=0,f!=g&&(f=g=Math.min(f,g));for(var o=0;c>o&&(d>f+o||e>g+o);o++){if(d>f+o&&a.charAt(f+o)==b.charAt(g)){f+=o-1,g--;break}if(e>g+o&&a.charAt(f)==b.charAt(g+o)){f--,g+=o-1;break}}}f++,g++,(f>=d||g>=e)&&(h+=i,i=0,f=g=Math.min(f,g))}return h+=i,Math.round(Math.max(d,e)-h+j)},splitEmail:function(a){a=null!==a?a.replace(/^\s*/,"").replace(/\s*$/,""):null;var b=a.split("@");if(b.length<2)return!1;for(var c=0;c<b.length;c++)if(""===b[c])return!1;var d=b.pop(),e=d.split("."),f="",g="";if(0===e.length)return!1;if(1==e.length)g=e[0];else{f=e[0];for(var h=1;h<e.length;h++)g+=e[h]+".";g=g.substring(0,g.length-1)}return{topLevelDomain:g,secondLevelDomain:f,domain:d,address:b.join("@")}},encodeEmail:function(a){var b=encodeURI(a);return b=b.replace("%20"," ").replace("%25","%").replace("%5E","^").replace("%60","`").replace("%7B","{").replace("%7C","|").replace("%7D","}")}};"undefined"!=typeof module&&module.exports&&(module.exports=Mailcheck),"function"==typeof define&&define.amd&&define("mailcheck",[],function(){return Mailcheck}),"undefined"!=typeof window&&window.jQuery&&!function(a){a.fn.mailcheck=function(a){var b=this;if(a.suggested){var c=a.suggested;a.suggested=function(a){c(b,a)}}if(a.empty){var d=a.empty;a.empty=function(){d.call(null,b)}}a.email=this.val(),Mailcheck.run(a)}}(jQuery);



"use strict";var punycode=new function(){this.utf16={decode:function(r){for(var e,o,t=[],n=0,f=r.length;n<f;){if(55296==(63488&(e=r.charCodeAt(n++)))){if(o=r.charCodeAt(n++),55296!=(64512&e)||56320!=(64512&o))throw new RangeError("UTF-16(decode): Illegal UTF-16 sequence");e=((1023&e)<<10)+(1023&o)+65536}t.push(e)}return t},encode:function(r){for(var e,o=[],t=0,n=r.length;t<n;){if(55296==(63488&(e=r[t++])))throw new RangeError("UTF-16(encode): Illegal UTF-16 value");65535<e&&(e-=65536,o.push(String.fromCharCode(e>>>10&1023|55296)),e=56320|1023&e),o.push(String.fromCharCode(e))}return o.join("")}};var v=36,A=2147483647;this.decode=function(r,e){var o,t,n,f,h,a,i,c,l=[],u=[],d=r.length,s=128,g=0,C=72,p=r.lastIndexOf("-");for(p<0&&(p=0),t=0;t<p;++t){if(e&&(u[l.length]=r.charCodeAt(t)-65<26),128<=r.charCodeAt(t))throw new RangeError("Illegal input >= 0x80");l.push(r.charCodeAt(t))}for(n=0<p?p+1:0;n<d;){for(f=g,h=1,a=v;;a+=v){if(d<=n)return;if(c=r.charCodeAt(n++),v<=(c=c-48<10?c-22:c-65<26?c-65:c-97<26?c-97:v))return;if(c>Math.floor((A-g)/h))return;if(g+=c*h,c<(c=a<=C?1:C+26<=a?26:a-C))break;if(h>Math.floor(A/(v-c)))return;h*=v-c}if(C=function(r,e,o){var t;for(r=o?Math.floor(r/700):r>>1,r+=Math.floor(r/e),t=0;455<r;t+=v)r=Math.floor(r/35);return Math.floor(t+36*r/(r+38))}(g-f,o=l.length+1,0===f),Math.floor(g/o)>A-s)return;s+=Math.floor(g/o),g%=o,e&&u.splice(g,0,r.charCodeAt(n-1)-65<26),l.splice(g,0,s),g++}if(e)for(g=0,i=l.length;g<i;g++)u[g]&&(l[g]=String.fromCharCode(l[g]).toUpperCase().charCodeAt(0));return this.utf16.encode(l)},this.toUnicode=function(r){for(var e=r.split("."),o=[],t=0;t<e.length;++t){var n=e[t];o.push(n.match(/^xn--/)?punycode.decode(n.slice(4)):n)}return o.join(".")}};



"use strict";const WPFormsUtils=window.WPFormsUtils||function(e){const s={triggerEvent:function(r,t,o=[]){t=new e.Event(t);return r.trigger(t,o),t},debounce:function(e,s,l){var n;return function(){var r=this,t=arguments,o=l&&!n;clearTimeout(n),n=setTimeout(function(){n=null,l||e.apply(r,t)},s),o&&e.apply(r,t)}},cssColorsUtils:{isTransparentColor(r,t=.33){r=s.cssColorsUtils.getColorAsRGBArray(r);return Number(r?.[3])<=t},getColorAsRGBArray(r){if(!s.cssColorsUtils.isValidColor(r))return!1;r="transparent"===(r=r.replace(/^#/,"").replaceAll(" ",""))?"rgba(0,0,0,0)":r;let t;return r.match(/[0-9a-f]{6,8}$/gi)?(t=r.match(/\w\w/g).map(r=>parseInt(r,16)))[3]=t[3]||0===t[3]?(t[3]/255).toFixed(2):1:t=r.split("(")[1].split(")")[0].split(","),t},isValidColor(r){var t=(new Option).style;return t.color=r,""!==t.color},getContrastColor(r){var r=s.cssColorsUtils.getColorAsRGBArray(r),t=r.reduce((r,t)=>r+t,0);return Math.round(t/3*(r[3]??1))<128?"#ffffff":"#000000"},getColorWithOpacity(r,t){r=r.trim();var o=s.cssColorsUtils.getColorAsRGBArray(r);if(!o)return r;t=t&&0!==t.length?t.toString():"1";r=4===o.length?parseFloat(o[3]):1,t=parseFloat(t)*r;return`rgba(${o[0]},${o[1]},${o[2]},${t})`.replace(/\s+/g,"")}}};return s}((document,window,jQuery));



var wpforms=window.wpforms||function(s,p,d){const l={cache:{},isUpdatingToken:!1,init(){d(l.ready),d(p).on("load",function(){"function"==typeof d.ready.then?d.ready.then(l.load):l.load()}),l.bindUIActions(),l.bindOptinMonster()},ready(){l.clearUrlQuery(),l.setUserIdentifier(),l.loadValidation(),l.loadHoneypot(),l.loadDatePicker(),l.loadTimePicker(),l.loadInputMask(),l.loadSmartPhoneField(),l.loadPayments(),l.loadMailcheck(),l.loadChoicesJS(),l.initTokenUpdater(),l.restoreSubmitButtonOnEventPersisted(),l.bindSmartPhoneField(),l.bindChoicesJS(),d(".wpforms-randomize").each(function(){for(var e=d(this),t=e.children();t.length;)e.append(t.splice(Math.floor(Math.random()*t.length),1)[0])}),d(".wpforms-page-button").prop("disabled",!1),l.initFormsStartTime(),d(s).trigger("wpformsReady"),d(".wpforms-smart-phone-field").each(function(){var e=d(this);l.fixPhoneFieldSnippets(e)})},load(){},clearUrlQuery(){var e=p.location;let t=e.search;-1!==t.indexOf("wpforms_form_id=")&&(t=t.replace(/([&?]wpforms_form_id=[0-9]*$|wpforms_form_id=[0-9]*&|[?&]wpforms_form_id=[0-9]*(?=#))/,""),history.replaceState({},null,e.origin+e.pathname+t))},loadHoneypot(){d(".wpforms-form").each(function(){const e=d(this),t=e.data("formid"),r=[],a=[];var o,i,s,n;void 0!==wpforms_settings.hn_data[t]&&(d(`#wpforms-form-${t} .wpforms-field`).each(function(){var e=d(this);r.push(e.data("field-id")),a.push(e.find(".wpforms-field-label").text())}),o=l.getHoneypotRandomLabel(a.join(" ").split(" ")),i=l.getHoneypotFieldId(r),n=r[Math.floor(Math.random()*r.length)],s=`wpforms-${t}-field_`+i,d(`#wpforms-${t}-field_${n}-container`,e).before(`
						<div id="${s}-container" class="wpforms-field wpforms-field-text" data-field-type="text" data-field-id="${i}" style="position: absolute !important; overflow: hidden !important; display: inline !important; height: 1px !important; width: 1px !important; z-index: -1000 !important; padding: 0 !important;">
							<label class="wpforms-field-label" for="${s}" aria-hidden="true" style="counter-increment: none;">${o}</label>
							<input type="text" id="${s}" class="wpforms-field-medium" name="wpforms[fields][${i}]" aria-hidden="true" style="visibility: hidden;" tabindex="-1">
						</div>`),(n=d(`#wpforms-${t}-field_${wpforms_settings.hn_data[t]}-container`,e)).find("input").attr({tabindex:"-1","aria-hidden":"true"}),n.find("label").attr("aria-hidden","true"))})},getHoneypotRandomLabel(t){let r="";for(let e=0;e<3;e++)r+=t[Math.floor(Math.random()*t.length)]+" ";return r.trim()},getHoneypotFieldId(t){var r=Math.max(...t);let a=0;for(let e=1;e<r;e++)if(!t.includes(e)){a=e;break}return a=a||r+1},loadValidation(){void 0!==d.fn.validate&&(d(".wpforms-input-temp-name").each(function(e,t){var r=Math.floor(9999*Math.random())+1;d(this).attr("name","wpf-temp-"+r)}),d(s).on("change",".wpforms-validate input[type=url]",function(){var e=d(this).val();if(!e)return!1;"http://"!==e.substr(0,7)&&"https://"!==e.substr(0,8)&&d(this).val("https://"+e)}),d.validator.messages.required=wpforms_settings.val_required,d.validator.messages.url=wpforms_settings.val_url,d.validator.messages.email=wpforms_settings.val_email,d.validator.messages.number=wpforms_settings.val_number,void 0!==d.fn.payment&&d.validator.addMethod("creditcard",function(e,t){e=d.payment.validateCardNumber(e);return this.optional(t)||e},wpforms_settings.val_creditcard),d.validator.addMethod("extension",function(e,t,r){return r="string"==typeof r?r.replace(/,/g,"|"):"png|jpe?g|gif",this.optional(t)||e.match(new RegExp("\\.("+r+")$","i"))},wpforms_settings.val_fileextension),d.validator.addMethod("maxsize",function(e,t,r){var a=r,r=this.optional(t);let o,i;if(r)return r;if(t.files&&t.files.length)for(o=0,i=t.files.length;o<i;o++)if(t.files[o].size>a)return!1;return!0},wpforms_settings.val_filesize),d.validator.addMethod("step",function(e,t,r){i=r;const a=Math.floor(i)!==i&&i.toString().split(".")[1].length||0;function o(e){return Math.round(e*Math.pow(10,a))}var i=o(d(t).attr("min"));return e=o(e)-i,this.optional(t)||o(e)%o(r)==0}),d.validator.methods.email=function(e,t){return this.optional(t)||function(e){if("string"!=typeof e)return!1;var t=e.indexOf("@",1);if(e.length<6||254<e.length||-1===t)return!1;if(-1!==e.indexOf("@",t+1))return!1;var[t,e]=e.split("@");if(!t||!e)return!1;if(!/^[a-zA-Z0-9!#$%&'*+/=?^_`{|}~.-]+$/.test(t)||63<t.length)return!1;if(/\.{2,}/.test(e)||e.trim(" \t\n\r\0\v.")!==e)return!1;t=e.split(".");if(t.length<2)return!1;var r=/^[a-z0-9-]+$/i;for(const a of t)if(63<a.length||a.trim(" \t\n\r\0\v-")!==a||!r.test(a))return!1;return!0}(e)},d.validator.addMethod("restricted-email",function(e,t){var r=d(t);return!r.val().length||(r=r.closest(".wpforms-form").data("formid"),Object.prototype.hasOwnProperty.call(l.cache,r)&&Object.prototype.hasOwnProperty.call(l.cache[r],"restrictedEmailValidation")&&Object.prototype.hasOwnProperty.call(l.cache[r].restrictedEmailValidation,e)?l.cache[r].restrictedEmailValidation[e]:(l.restrictedEmailRequest(t,e),"pending"))},wpforms_settings.val_email_restricted),d.validator.addMethod("confirm",function(e,t,r){t=d(t).closest(".wpforms-field");return d(t.find("input")[0]).val()===d(t.find("input")[1]).val()},wpforms_settings.val_confirm),d.validator.addMethod("required-payment",function(e,t){return 0<l.amountSanitize(e)},wpforms_settings.val_requiredpayment),d.validator.addMethod("time12h",function(e,t){return this.optional(t)||/^((0?[1-9]|1[012])(:[0-5]\d){1,2}(\ ?[AP]M))$/i.test(e)},wpforms_settings.val_time12h),d.validator.addMethod("time24h",function(e,t){return this.optional(t)||/^(([0-1]?[0-9])|([2][0-3])):([0-5]?[0-9])(\ ?[AP]M)?$/i.test(e)},wpforms_settings.val_time24h),d.validator.addMethod("turnstile",function(e){return e},wpforms_settings.val_turnstile_fail_msg),d.validator.addMethod("time-limit",function(e,t){var t=d(t),r=t.data("min-time");return void 0===r||!(t.prop("required")||!l.empty(e))||(t=t.data("max-time"),l.compareTimesGreaterThan(t,r)?l.compareTimesGreaterThan(e,r)&&l.compareTimesGreaterThan(t,e):l.compareTimesGreaterThan(e,r)&&l.compareTimesGreaterThan(e,t)||l.compareTimesGreaterThan(r,e)&&l.compareTimesGreaterThan(t,e))},function(e,t){t=d(t);let r=t.data("min-time"),a=t.data("max-time");return r=r.replace(/^00:([0-9]{2})pm$/,"12:$1pm"),a=a.replace(/^00:([0-9]{2})pm$/,"12:$1pm"),r=r.replace(/(am|pm)/g," $1").toUpperCase(),a=a.replace(/(am|pm)/g," $1").toUpperCase(),wpforms_settings.val_time_limit.replace("{minTime}",r).replace("{maxTime}",a)}),d.validator.addMethod("check-limit",function(e,t){var t=d(t).closest("ul"),r=parseInt(t.attr("data-choice-limit")||0,10);return 0===r||t.find('input[type="checkbox"]:checked').length<=r},function(e,t){t=parseInt(d(t).closest("ul").attr("data-choice-limit")||0,10);return wpforms_settings.val_checklimit.replace("{#}",t)}),void 0!==p.intlTelInput&&d.validator.addMethod("smart-phone-field",function(e,t){var r;return!e.match(/[^\d()\-+\s]/)&&(e=p.intlTelInputGlobals?.getInstance(t),r=d(t).triggerHandler("validate"),this.optional(t)||e?.isValidNumberPrecise()||r)},wpforms_settings.val_phone),d.validator.addMethod("inputmask-incomplete",function(e,t){return 0===e.length||void 0===d.fn.inputmask||d(t).inputmask("isComplete")},wpforms_settings.val_inputmask_incomplete),d.validator.addMethod("required-positive-number",function(e,t){return 0<l.amountSanitize(e)},wpforms_settings.val_number_positive),d.validator.addMethod("required-minimum-price",function(e,t,r){t=d(t);return""===e&&!t.hasClass("wpforms-field-required")||Number(l.amountSanitize(l.amountFormat(r)))<=Number(l.amountSanitize(e))},wpforms_settings.val_minimum_price),d.validator.addMethod("us-phone-field",function(e,t){return!e.match(/[^\d()\-+\s]/)&&(this.optional(t)||10===e.replace(/[^\d]/g,"").length)},wpforms_settings.val_phone),d.validator.addMethod("int-phone-field",function(e,t){return!e.match(/[^\d()\-+\s]/)&&(this.optional(t)||0<e.replace(/[^\d]/g,"").length)},wpforms_settings.val_phone),d.validator.addMethod("password-strength",function(e,t){var r=d(t),t=WPFormsPasswordField.passwordStrength(e,t);return""===e&&!r.hasClass("wpforms-field-required")||t>=Number(r.data("password-strength-level"))},wpforms_settings.val_password_strength),d(".wpforms-validate").each(function(){var e=d(this),t=e.data("formid");let r;r=void 0!==p["wpforms_"+t]&&p["wpforms_"+t].hasOwnProperty("validate")?p["wpforms_"+t].validate:"undefined"!=typeof wpforms_validate?wpforms_validate:{errorElement:l.isModernMarkupEnabled()?"em":"label",errorClass:"wpforms-error",validClass:"wpforms-valid",ignore:":hidden:not(textarea.wp-editor-area), .wpforms-conditional-hide textarea.wp-editor-area",ignoreTitle:!0,errorPlacement(e,t){l.isLikertScaleField(t)?(t.closest("table").hasClass("single-row")?t.closest(".wpforms-field"):t.closest("tr").find("th")).append(e):l.isWrappedField(t)?t.closest(".wpforms-field").append(e):l.isDateTimeField(t)?l.dateTimeErrorPlacement(t,e):l.isFieldInColumn(t)||l.isFieldHasHint(t)?t.parent().append(e):l.isLeadFormsSelect(t)?t.parent().parent().append(e):t.hasClass("wp-editor-area")?t.parent().parent().parent().append(e):e.insertAfter(t),l.isModernMarkupEnabled()&&e.attr({role:"alert","aria-label":wpforms_settings.errorMessagePrefix,for:""})},highlight(e,t,r){var a=d(e),o=a.closest(".wpforms-field"),i=a.attr("name");("radio"===a.attr("type")||"checkbox"===a.attr("type")?o.find('input[name="'+i+'"]'):a).addClass(t).removeClass(r),"password"===a.attr("type")&&""===a.val().trim()&&p.WPFormsPasswordField&&a.data("rule-password-strength")&&a.hasClass("wpforms-field-required")&&WPFormsPasswordField.passwordStrength("",e),o.addClass("wpforms-has-error")},unhighlight(e,t,r){var e=d(e),a=e.closest(".wpforms-field"),o=e.attr("name");("radio"===e.attr("type")||"checkbox"===e.attr("type")?a.find('input[name="'+o+'"]'):e).addClass(r).removeClass(t),a.find(":input.wpforms-error,[data-dz-errormessage]:not(:empty)").length||a.removeClass("wpforms-has-error"),l.isModernMarkupEnabled()&&e.parent().find("em.wpforms-error").remove()},submitHandler(s){function n(e,t){let r="label",a="";l.isModernMarkupEnabled()&&(r="em",a='role="alert"');var o=`<${r} id="wpforms-field_recaptcha-error" class="wpforms-error" ${a}> ${wpforms_settings.val_recaptcha_fail_msg}</${r}>`;e.find(".wpforms-recaptcha-container").append(o),l.restoreSubmitButton(e,t)}function e(){const e=d(s),t=e.closest(".wpforms-container"),r=e.find(".wpforms-submit"),a=r.data("captchaInvalid"),o=r.data("alt-text"),i=r.get(0).recaptchaID;return e.data("token")&&0===d(".wpforms-token",e).length&&d('<input type="hidden" class="wpforms-token" name="wpforms[token]" />').val(e.data("token")).appendTo(e),e.find("#wpforms-field_recaptcha-error").remove(),r.prop("disabled",!0),WPFormsUtils.triggerEvent(e,"wpformsFormSubmitButtonDisable",[e,r]),o&&r.text(o),a?n(e,t):l.empty(i)&&0!==i?(d(".wpforms-input-temp-name").removeAttr("name"),void l.formSubmit(e)):(grecaptcha.execute(i).then(null,function(){grecaptcha.getResponse()||n(e,t)}),!1)}return"function"==typeof wpformsRecaptchaV3Execute?wpformsRecaptchaV3Execute(e):e()},invalidHandler(e,t){void 0!==t.errorList[0]&&l.scrollToError(d(t.errorList[0].element))},onkeyup:WPFormsUtils.debounce(function(e,t){d(e).hasClass("wpforms-novalidate-onkeyup")||9===t.which&&""===this.elementValue(e)||-1!==d.inArray(t.keyCode,[16,17,18,20,35,36,37,38,39,40,45,144,225])||(e.name in this.submitted||e.name in this.invalid)&&this.element(e)},1e3),onfocusout:function(e){let t=!1;d(e).hasClass("wpforms-novalidate-onkeyup")&&!e.value&&(t=!0),this.checkable(e)||!(e.name in this.submitted)&&this.optional(e)||(t=!0),(t=d(e).data("server-error")?!1:t)&&this.element(e)},onclick(e){let t=!1;var r=(e||{}).type;let a=d(e);-1<["checkbox","radio"].indexOf(r)&&((a=a.hasClass("wpforms-likert-scale-option")?a.closest("tr"):a.closest(".wpforms-field")).find("label.wpforms-error, em.wpforms-error").remove(),t=!0),t&&this.element(e)}},e.validate(r)}))},restrictedEmailRequest(r,a){var e=d(r),t=e.closest("form");const o=t.data("validator"),i=t.data("formid");t=e.closest(".wpforms-field").data("field-id");l.cache[i]=l.cache[i]||{},o.startRequest(r),d.post({url:wpforms_settings.ajaxurl,type:"post",data:{action:"wpforms_restricted_email",form_id:i,field_id:t,email:a},dataType:"json",success(e){var t={},e=e.success&&e.data;e||(t[r.name]=wpforms_settings.val_email_restricted,o.showErrors(t)),l.cache[i].restrictedEmailValidation=l.cache[i].restrictedEmailValidation||[],Object.prototype.hasOwnProperty.call(l.cache[i].restrictedEmailValidation,a)||(l.cache[i].restrictedEmailValidation[a]=e),o.stopRequest(r,e)}})},isFieldInColumn(e){return e.parent().hasClass("wpforms-one-half")||e.parent().hasClass("wpforms-two-fifths")||e.parent().hasClass("wpforms-one-fifth")},isFieldHasHint(e){return 0<e.nextAll(".wpforms-field-sublabel, .wpforms-field-description, .wpforms-field-limit-text, .wpforms-pass-strength-result").length},isDateTimeField(e){return e.hasClass("wpforms-timepicker")||e.hasClass("wpforms-datepicker")||e.is("select")&&e.attr("class").match(/date-month|date-day|date-year/)},isWrappedField(e){return"checkbox"===e.attr("type")||"radio"===e.attr("type")||"range"===e.attr("type")||"select"===e.is("select")||1===e.data("is-wrapped-field")||e.parent().hasClass("iti")||e.hasClass("wpforms-validation-group-member")||e.hasClass("choicesjs-select")||e.hasClass("wpforms-net-promoter-score-option")||e.hasClass("wpforms-field-payment-coupon-input")},isLikertScaleField(e){return e.hasClass("wpforms-likert-scale-option")},isLeadFormsSelect(e){return e.parent().hasClass("wpforms-lead-forms-select")},isCoupon(e){return console.warn('WARNING! Function "wpforms.isCoupon( element )" has been deprecated'),e.closest(".wpforms-field").hasClass("wpforms-field-payment-coupon")},dateTimeErrorPlacement(e,t){var r=e.closest(".wpforms-field-row-block, .wpforms-field-date-time");r.length?r.find("label.wpforms-error, em.wpforms-error").length||r.append(t):e.closest(".wpforms-field").append(t)},loadDatePicker(e){void 0!==d.fn.flatpickr&&(e=e?.length?e:d(s)).find(".wpforms-datepicker-wrap").each(function(){const a=d(this),e=a.find("input"),t=a.closest(".wpforms-form"),r=t.data("formid"),o=a.closest(".wpforms-field").data("field-id");let i;var s;!(i=void 0!==p["wpforms_"+r+"_"+o]&&p["wpforms_"+r+"_"+o].hasOwnProperty("datepicker")?p["wpforms_"+r+"_"+o].datepicker:void 0!==p["wpforms_"+r]&&p["wpforms_"+r].hasOwnProperty("datepicker")?p["wpforms_"+r].datepicker:"undefined"!=typeof wpforms_datepicker?wpforms_datepicker:{disableMobile:!0}).hasOwnProperty("locale")&&"undefined"!=typeof wpforms_settings&&wpforms_settings.hasOwnProperty("locale")&&(i.locale=wpforms_settings.locale),i.wrap=!0,i.dateFormat=e.data("date-format"),1===e.data("disable-past-dates")&&(i.minDate="today",1===e.data("disable-todays-date"))&&(s=new Date,i.minDate=s.setDate(s.getDate()+1));let n=e.data("limit-days");const l=["sun","mon","tue","wed","thu","fri","sat"];n&&""!==n&&(n=n.split(","),i.disable=[function(e){for(const t in n)if(l.indexOf(n[t])===e.getDay())return!1;return!0}]),i.onChange=function(e,t,r){a.find(".wpforms-datepicker-clear").css("display",""===t?"none":"block")},a.flatpickr(i)})},loadTimePicker(e){void 0!==d.fn.timepicker&&(e=e?.length?e:d(s)).find(".wpforms-timepicker").each(function(){var e=d(this),t=e.closest(".wpforms-form").data("formid"),r=e.closest(".wpforms-field").data("field-id");let a;a=void 0!==p["wpforms_"+t+"_"+r]&&p["wpforms_"+t+"_"+r].hasOwnProperty("timepicker")?p["wpforms_"+t+"_"+r].timepicker:void 0!==p["wpforms_"+t]&&p["wpforms_"+t].hasOwnProperty("timepicker")?p["wpforms_"+t].timepicker:"undefined"!=typeof wpforms_timepicker?wpforms_timepicker:{scrollDefault:"now",forceRoundTime:!0};r=e.val();e.timepicker(a),r&&(e.val(r),e.trigger("changeTime"))})},loadInputMask(e){void 0!==d.fn.inputmask&&(e=e?.length?e:d(s)).find(".wpforms-masked-input").inputmask({rightAlign:!1})},fixPhoneFieldSnippets(t){t.siblings('input[type="hidden"]').each(function(){var e;d(this).attr("name").includes("function")&&(e=(e=t.data("plugin_intlTelInput")).d||e.options)&&(p.intlTelInputGlobals.getInstance(t[0]).destroy(),e.initialCountry=e.initialCountry.toLowerCase(),e.onlyCountries=e.onlyCountries.map(e=>e.toLowerCase()),e.preferredCountries=e.preferredCountries.map(e=>e.toLowerCase()),p.intlTelInput(t[0],e),t.siblings('input[type="hidden"]').each(function(){var e=d(this);e.attr("name",e.attr("name").replace("wpf-temp-",""))}))})},loadSmartPhoneField(e){if(void 0!==p.intlTelInput){const a={countrySearch:!1,fixDropdownWidth:!1,preferredCountries:["us","gb"],countryListAriaLabel:wpforms_settings.country_list_label};let t;var r;if(wpforms_settings.gdpr||(a.geoIpLookup=l.currentIpToCountry),wpforms_settings.gdpr&&(r=l.mapLanguageToIso(this.getFirstBrowserLanguage()),t=-1<r.indexOf("-")?r.split("-").pop():r),t){let e=p.intlTelInputGlobals.getCountryData();e=e.filter(function(e){return e.iso2===t.toLowerCase()}),t=e.length?t:""}a.initialCountry=wpforms_settings.gdpr&&t?t.toLowerCase():"auto",(e=e?.length?e:d(s)).find(".wpforms-smart-phone-field").each(function(e,t){const r=d(t);if(r.parents(".elementor-location-popup").is(":hidden"))return!1;if("object"!=typeof r.data("plugin_intlTelInput")){a.hiddenInput=function(e){return{phone:e}},a.utilsScript=wpforms_settings.wpforms_plugin_url+"assets/pro/lib/intl-tel-input/module.intl-tel-input-utils.min.js";let e=p.intlTelInput(r.get(0),a);r.on("validate",function(){return e.isValidNumber(e.getNumber())}),r.data("plugin_intlTelInput",e),d.fn.extend({intlTelInput(e){var t=d(this);if("destroy"!==e)return p.intlTelInput(t.get(0),e);p.intlTelInputGlobals.getInstance(t[0]).destroy()}}),r.attr("name","wpf-temp-"+r.attr("name")),r.addClass("wpforms-input-temp-name"),r.on("blur input",function(){e=p.intlTelInputGlobals.getInstance(r[0]),r.siblings('input[type="hidden"]').val(e.getNumber())})}})}},bindSmartPhoneField(){d(".wpforms-form").on("wpformsBeforeFormSubmit",function(){d(this).find(".wpforms-smart-phone-field").trigger("input")})},loadPayments(){d(".wpforms-payment-total").each(function(e,t){l.amountTotal(this)}),void 0!==d.fn.payment&&(d(".wpforms-field-credit-card-cardnumber").payment("formatCardNumber"),d(".wpforms-field-credit-card-cardcvc").payment("formatCardCVC"))},loadMailcheck(){wpforms_settings.mailcheck_enabled&&void 0!==d.fn.mailcheck&&(0<wpforms_settings.mailcheck_domains.length&&(Mailcheck.defaultDomains=Mailcheck.defaultDomains.concat(wpforms_settings.mailcheck_domains)),0<wpforms_settings.mailcheck_toplevel_domains.length&&(Mailcheck.defaultTopLevelDomains=Mailcheck.defaultTopLevelDomains.concat(wpforms_settings.mailcheck_toplevel_domains)),d(s).on("blur",".wpforms-field-email input",function(){const e=d(this),o=e.attr("id");e.mailcheck({suggested(e,t){t.full=t.full.replace(/%(?![0-9][0-9a-fA-F]+)/g,"%25"),t.address=t.address.replace(/%(?![0-9][0-9a-fA-F]+)/g,"%25"),t.domain=t.domain.replace(/%(?![0-9][0-9a-fA-F]+)/g,"%25"),t.address.match(/^xn--/)&&(t.full=punycode.toUnicode(decodeURI(t.full)),r=t.full.split("@"),t.address=r[0],t.domain=r[1]),t.domain.match(/^xn--/)&&(t.domain=punycode.toUnicode(decodeURI(t.domain)));var r=decodeURI(t.address).replaceAll(/[<>'"()/\\|:;=@%&\s]/gi,"").substr(0,64),a=decodeURI(t.domain).replaceAll(/[<>'"()/\\|:;=@%&+_\s]/gi,"");t='<a href="#" class="mailcheck-suggestion" data-id="'+o+'" title="'+wpforms_settings.val_email_suggestion_title+'">'+r+"@"+a+"</a>",t=wpforms_settings.val_email_suggestion.replace("{suggestion}",t),e.closest(".wpforms-field").find("#"+o+"_suggestion").remove(),e.parent().append('<label class="wpforms-error mailcheck-error" id="'+o+'_suggestion">'+t+"</label>")},empty(){d("#"+o+"_suggestion").remove()}})}),d(s).on("click",".wpforms-field-email .mailcheck-suggestion",function(e){var t=d(this),r=t.closest(".wpforms-field"),a=t.data("id");e.preventDefault(),r.find("#"+a).val(t.text()),t.parent().remove()}))},loadChoicesJS(i){"function"==typeof p.Choices&&(i=i?.length?i:d(s)).find(".wpforms-field-select-style-modern .choicesjs-select, .wpforms-field-payment-select .choicesjs-select").each(function(e,t){var r,a,o;d(t).data("choicesjs")||WPFormsUtils.triggerEvent(i,"wpformsBeforeLoadElementChoices",[t]).isDefaultPrevented()||(r=p.wpforms_choicesjs_config||{},a=d(t).data("search-enabled"),o=d(t).data("remove-items-enabled"),r.searchEnabled=void 0===a||a,r.removeItems=void 0===o||o,r.removeItemButton=r.removeItems,r.searchEnabled=void 0===a||a,r.allowHTML=!0,r.callbackOnInit=function(){const t=this,r=d(t.passedElement.element),a=d(t.input.element),e=r.data("size-class");r.removeAttr("hidden").addClass(t.config.classNames.input+"--hidden"),e&&d(t.containerOuter.element).addClass(e),r.prop("multiple")&&(a.data("placeholder",a.attr("placeholder")).css("width","auto"),t.getValue(!0).length&&a.removeAttr("placeholder"),a.css("width","1ch")),r.on("change",function(){r.prop("multiple")&&(t.getValue(!0).length?a.removeAttr("placeholder"):a.attr("placeholder",a.data("placeholder")).css("width","auto"));var e=r.closest("form").data("validator");e&&e.element(r)})},r.callbackOnCreateTemplates=function(){const r=d(this.passedElement.element);return{option(e){var t=Choices.defaults.templates.option.call(this,e);return void 0!==e.placeholder&&!0===e.placeholder&&t.classList.add("placeholder"),r.hasClass("wpforms-payment-price")&&void 0!==e.customProperties&&null!==e.customProperties&&(t.dataset.amount=e.customProperties),t}}},d(t).data("choicesjs",new Choices(t,r)))})},bindChoicesJS(){d(s).on("click",".choices",function(e){var t=d(this),r=t.find("select").data("choicesjs");r&&t.hasClass("is-open")&&(e.target.classList.contains("choices__inner")||e.target.classList.contains("choices__arrow"))&&r.hideDropdown()})},bindUIActions(){var e=d(s);e.on("click",".wpforms-page-button",function(e){e.preventDefault(),l.pagebreakNav(this)}),e.on("change input",".wpforms-payment-price",function(){l.amountTotal(this,!0)}),e.on("change input","select.wpforms-payment-quantity",function(){l.amountTotal(this,!0),l.updateOrderSummaryItemQuantity(d(this))}),e.on("input",".wpforms-payment-user-input",function(){var e=d(this),t=e.val();e.val(t.replace(/[^0-9.,]/g,""))}),e.on("focusout",".wpforms-payment-user-input",function(){var e=d(this),t=e.val();if(!t)return t;t=l.amountSanitize(t),t=l.amountFormat(t);e.val(t)}),e.on("wpformsProcessConditionals",function(e,t){l.amountTotal(t,!0)}),e.on("wpformsProcessConditionalsField",function(e,t,r){l.updateOrderSummaryItems(d("#wpforms-form-"+t),d(`#wpforms-${t}-field_`+r),"")}),e.on("mouseenter",".wpforms-field-rating-item",function(){d(this).parent().find(".wpforms-field-rating-item").removeClass("selected hover"),d(this).prevAll().addBack().addClass("hover")}).on("mouseleave",".wpforms-field-rating-item",function(){d(this).parent().find(".wpforms-field-rating-item").removeClass("selected hover"),d(this).parent().find("input:checked").parent().prevAll().addBack().addClass("selected")}),d(s).on("change",".wpforms-field-rating-item input",function(){var e=d(this),t=e.closest(".wpforms-field-rating-items").find(".wpforms-field-rating-item");e.focus(),t.removeClass("hover selected"),e.parent().prevAll().addBack().addClass("selected")}),d(function(){d(".wpforms-field-rating-item input:checked").trigger("change")}),e.on("keydown",".wpforms-image-choices-item label",function(e){var t=d(this);if(t.closest(".wpforms-field").hasClass("wpforms-conditional-hide"))return e.preventDefault(),!1;32===e.keyCode&&(t.find("input").trigger("click"),e.preventDefault())}),p.document.documentMode&&e.on("click",".wpforms-image-choices-item img",function(){d(this).closest("label").find("input").trigger("click")}),e.on("change",".wpforms-field-checkbox input, .wpforms-field-radio input, .wpforms-field-payment-multiple input, .wpforms-field-payment-checkbox input, .wpforms-field-gdpr-checkbox input",function(e){var t=d(this);if(t.closest(".wpforms-field").hasClass("wpforms-conditional-hide"))return e.preventDefault(),!1;switch(t.attr("type")){case"radio":t.closest("ul").find("li").removeClass("wpforms-selected").find("input[type=radio]").removeProp("checked"),t.prop("checked",!0).closest("li").addClass("wpforms-selected");break;case"checkbox":t.is(":checked")?(t.closest("li").addClass("wpforms-selected"),t.prop("checked",!0)):(t.closest("li").removeClass("wpforms-selected"),t.prop("checked",!1))}}),e.on("input",".wpforms-field-file-upload",function(){var e=d(this),t=e.closest("form.wpforms-form").find('.wpforms-field-file-upload input:not(".dropzone-input")');let a=0,r=Number(wpforms_settings.post_max_size),o='<div class="wpforms-error-container-post_max_size">'+wpforms_settings.val_post_max_size+"</div>";e=e.closest("form.wpforms-form").find(".wpforms-submit-container");let i=e.find("button.wpforms-submit"),s=e.prev();var n=i.closest("form"),l=n.find(".wpforms-page-next:visible");0!==n.find(".wpforms-page-indicator").length&&0!==l.length&&(i=l),t.each(function(){var e=d(this);let t=0;for(var r=e[0].files.length;t<r;t++)a+=e[0].files[t].size}),a<r?(s.find(".wpforms-error-container-post_max_size").remove(),i.prop("disabled",!1),WPFormsUtils.triggerEvent(n,"wpformsFormSubmitButtonRestore",[n,i]),WPFormsUtils.triggerEvent(n,"wpformsCombinedUploadsSizeOk",[n,s])):(a=Number((a/1048576).toFixed(3)),r=Number((r/1048576).toFixed(3)),o=o.replace(/{totalSize}/,a).replace(/{maxSize}/,r),s.hasClass("wpforms-error-container")?(s.find(".wpforms-error-container-post_max_size").remove(),s.append(o)):(e.before('<div class="wpforms-error-container">{errorMsg}</div>'.replace(/{errorMsg}/,o)),s=e.prev()),i.prop("disabled",!0),WPFormsUtils.triggerEvent(n,"wpformsFormSubmitButtonDisable",[n,i]),WPFormsUtils.triggerEvent(n,"wpformsCombinedUploadsSizeError",[n,s]))}),e.on("change input",".wpforms-field-number-slider input[type=range]",function(e){var t=d(e.target).siblings(".wpforms-field-number-slider-hint");t.html(t.data("hint").replaceAll("{value}","<b>"+e.target.value+"</b>"))}),e.on("keydown",".wpforms-form input",function(e){var t,r;13!==e.keyCode||0===(r=(t=d(this)).closest(".wpforms-page")).length||["text","tel","number","email","url","radio","checkbox"].indexOf(t.attr("type"))<0||(t.hasClass("wpforms-datepicker")&&t.flatpickr("close"),e.preventDefault(),(r.hasClass("last")?r.closest(".wpforms-form").find(".wpforms-submit"):r.find(".wpforms-page-next")).trigger("click"))}),e.on("keypress",".wpforms-field-number input",function(e){return/^[-0-9.]+$/.test(String.fromCharCode(e.keyCode||e.which))}),e.one("input",".wpforms-field input, .wpforms-field textarea, .wpforms-field select",l.formChanged).one("change",".wpforms-field-select-style-modern, .wpforms-timepicker",l.formChanged).one("focus",".dropzone-input",l.formChanged).one("click touchstart",".wpforms-signature-canvas",l.formChanged).one("wpformsRichTextContentChange",l.richTextContentChanged),d("form.wpforms-form").on("wpformsBeforePageChange",l.skipEmptyPages)},skipEmptyPages(e,t,r,a){var o=l.findNonEmptyPage(t,r,a);o!==t&&(e.preventDefault(),1===o&&"prev"===a?(e=r.find(".wpforms-page-2"),a=r.find(".wpforms-page-"+t),t=(e.find(".wpforms-page-prev").length?e:a).find(".wpforms-page-prev"),wpforms.navigateToPage(t,"prev",2,r,e)):(t=r.find(".wpforms-page-"+(a=o-1)),wpforms.navigateToPage(t.find(".wpforms-page-next"),"next",a,r,t)))},findNonEmptyPage(e,t,r){let a=e;for(;l.isEmptyPage(t,a);)"prev"===r?a--:a++;return a},isEmptyPage(e,t){return 1!==t&&!(e=e.find(".wpforms-page-"+t)).hasClass("last")&&(t=e.find(".wpforms-field:not(.wpforms-field-pagebreak):not(.wpforms-field-hidden)"),e.find(".wpforms-conditional-hide").length===t.length)},formChanged(e){var t=d(this).closest(".wpforms-form");l.maybeSetStartTime(t)},richTextContentChanged(e,t,r){r=r.getContainer(),r=d(r).closest(".wpforms-form");l.maybeSetStartTime(r)},initFormsStartTime(){d(".wpforms-form").each(function(){l.maybeSetStartTime(d(this))})},maybeSetStartTime(e){e.data("start_timestamp")||e.data("start_timestamp",Date.now())},entryPreviewFieldPageChange(e,t,r){console.warn("WARNING! Obsolete function called. Function wpforms.entryPreviewFieldPageChange has been deprecated, please use the WPFormsEntryPreview.pageChange function instead!"),WPFormsEntryPreview.pageChange(e,t,r)},entryPreviewFieldUpdate(e,t){console.warn("WARNING! Obsolete function called. Function wpforms.entryPreviewFieldUpdate has been deprecated, please use the WPFormsEntryPreview.update function instead!"),WPFormsEntryPreview.update(e,t)},scrollToError(e){if(0!==e.length){let t=e.find(".wpforms-field.wpforms-has-error");0!==(t=0===t.length?e.closest(".wpforms-field"):t).length&&void 0!==(e=t.offset())&&l.animateScrollTop(e.top-75,750).done(function(){var e=t.find(".wpforms-error").first();"function"==typeof e.focus&&e.trigger("focus")})}},pagebreakNav(e){const t=d(e),r=t.data("action"),a=t.data("page"),o=t.closest(".wpforms-form"),i=o.find(".wpforms-page-"+a);l.saveTinyMCE(),"next"===r&&void 0!==d.fn.validate?l.checkForInvalidFields(o,i,function(){l.navigateToPage(t,r,a,o,i)}):"prev"!==r&&"next"!==r||l.navigateToPage(t,r,a,o,i)},checkForInvalidFields(e,t,r){var a=e.data("validator");if(a)if(0<a.pendingRequest)setTimeout(function(){l.checkForInvalidFields(e,t,r)},800);else{let a=!0;t.find(":input").each(function(e,t){var r=d(t);!r.attr("name")||r.hasClass("wpforms-field-skip-validation")||d(t).valid()||(a=!1)}),a?r():l.scrollToError(t)}},navigateToPage(t,r,a,o,e){if(!t.hasClass("wpforms-disabled")){let e=a;"next"===r?e+=1:"prev"===r&&--e,WPFormsUtils.triggerEvent(t,"wpformsBeforePageChange",[e,o,r]).isDefaultPrevented()||(o.find(".wpforms-page").hide(),(a=o.find(".wpforms-page-"+e)).show(),l.toggleReCaptchaAndSubmitDisplay(o,r,a),l.checkTurnstileVisibility(o),(a=l.getPageScroll(o))&&l.animateScrollTop(o.offset().top-a,750,null),t.trigger("wpformsPageChange",[e,o,r]),l.manipulateIndicator(e,o))}},toggleReCaptchaAndSubmitDisplay(e,t,r){var a=e.find(".wpforms-submit-container"),e=e.find(".wpforms-recaptcha-container");"next"===t&&r.hasClass("last")?(e.show(),a.show()):"prev"===t&&(e.hide(),a.hide())},checkTurnstileVisibility(e){var t,e=e.find(".wpforms-recaptcha-container");e.hasClass("wpforms-is-turnstile")&&(t=e.find(".g-recaptcha").height(),0===parseInt(t,10)?e.addClass("wpforms-is-turnstile-invisible"):e.removeClass("wpforms-is-turnstile-invisible"))},getPageScroll(e){return!1!==p.wpforms_pageScroll&&(l.empty(p.wpform_pageScroll)?0!==e.find(".wpforms-page-indicator").data("scroll")&&75:p.wpform_pageScroll)},manipulateIndicator(e,t){var r,a=t.find(".wpforms-page-indicator");a&&("connector"===(r=a.data("indicator"))||"circles"===r?l.manipulateConnectorAndCirclesIndicator(a,r,e):"progress"===r&&l.manipulateProgressIndicator(a,t,e))},manipulateConnectorAndCirclesIndicator(e,t,r){var a=e.data("indicator-color");e.find(".wpforms-page-indicator-page").removeClass("active"),e.find(".wpforms-page-indicator-page-"+r).addClass("active"),e.find(".wpforms-page-indicator-page-number").removeAttr("style"),e.find(".active .wpforms-page-indicator-page-number").css("background-color",a),"connector"===t&&(e.find(".wpforms-page-indicator-page-triangle").removeAttr("style"),e.find(".active .wpforms-page-indicator-page-triangle").css("border-top-color",a))},manipulateProgressIndicator(e,t,r){var a=e.find(".wpforms-page-indicator-page-title"),o=e.find(".wpforms-page-indicator-page-title-sep"),t=r/t.find(".wpforms-page").length*100;e.find(".wpforms-page-indicator-page-progress").css("width",t+"%"),e.find(".wpforms-page-indicator-steps-current").text(r),a.data("page-"+r+"-title")?(a.css("display","inline").text(a.data("page-"+r+"-title")),o.css("display","inline")):(a.css("display","none"),o.css("display","none"))},bindOptinMonster(){s.addEventListener("om.Campaign.load",function(e){l.ready(),l.optinMonsterRecaptchaReset(e.detail.Campaign.data.id)}),s.addEventListener("om.Campaign.afterShow",function(e){"undefined"!=typeof WPFormsRepeaterField&&WPFormsRepeaterField.ready()}),d(s).on("OptinMonsterOnShow",function(e,t,r){l.ready(),l.optinMonsterRecaptchaReset(t.optin),"undefined"!=typeof WPFormsRepeaterField&&WPFormsRepeaterField.ready()})},optinMonsterRecaptchaReset(e){var e=d("#om-"+e).find(".wpforms-form"),t=e.find(".wpforms-recaptcha-container"),r=e.find(".g-recaptcha");if(e.length&&r.length){const a=r.attr("data-sitekey"),o="recaptcha-"+Date.now(),i=t.hasClass("wpforms-is-hcaptcha")?hcaptcha:grecaptcha;r.remove(),t.prepend('<div class="g-recaptcha" id="'+o+'" data-sitekey="'+a+'"></div>'),i.render(o,{sitekey:a,callback(){wpformsRecaptchaCallback(d("#"+o))}})}},amountTotal(e,t){t=t||!1;const r=d(e).closest(".wpforms-form"),a=l.amountTotalCalc(r),o=l.amountFormatSymbol(a);r.find(".wpforms-payment-total").each(function(){"hidden"===d(this).attr("type")||"text"===d(this).attr("type")?(d(this).val(o),"text"===d(this).attr("type")&&t&&r.data("validator")&&d(this).valid()):d(this).text(o)}),l.updateOrderSummaryItems(r,d(e),o)},updateOrderSummaryItems(t,e,r){t.find(".wpforms-order-summary-preview").each(function(){const e=d(this);""!==r&&e.find(".wpforms-order-summary-preview-total .wpforms-order-summary-item-price").text(r),t.find(".wpforms-payment-price").each(function(){l.updateOrderSummaryItem(d(this),e)})})},updateOrderSummaryItem(e,t){if(e.hasClass("wpforms-payment-price")){const o=e.closest(".wpforms-field"),i=o.data("field-id"),s=e.prop("type"),n="block"===o.css("display");var r,a;"checkbox"===s||"radio"===s||"select-one"===s?t.find(`tr[data-field="${i}"]`).each(function(){var e=d(this).data("choice"),e="select-one"===s?e===parseInt(o.find("select").val(),10):o.find(`input[value="${e}"]`).is(":checked");d(this).toggle(n&&e)}):(r=t.find(`tr[data-field="${i}"]`),a=e.val(),r.find(".wpforms-order-summary-item-price").text(l.amountFormatSymbol(l.amountSanitize(a))),r.toggle(n)),o.hasClass("wpforms-payment-quantities-enabled")?l.updateOrderSummaryItemQuantity(e):(l.updateSummaryPriceWidth(t),l.toggleSummaryPlaceholder(t))}},updateOrderSummaryItemQuantity(e){const t=e.closest(".wpforms-field"),a=t.find("input.wpforms-payment-price, select.wpforms-payment-price"),r=e.closest(".wpforms-form"),o=t.data("field-id"),i=l.getPaymentFieldQuantity(a),s=l.getPaymentFieldAmount(a),n=a.prop("type");r.find(".wpforms-order-summary-preview").each(function(){var e,t=d(this);let r;(r="checkbox"===n||"radio"===n||"select-one"===n?(e=a.val(),t.find(`tr[data-field="${o}"][data-choice="${e}"]`)):t.find(`tr[data-field="${o}"]`)).toggle(0<i),r.find(".wpforms-order-summary-item-quantity").text(i),r.find(".wpforms-order-summary-item-price").text(l.amountFormatSymbol(s*i)),l.updateSummaryPriceWidth(t),l.toggleSummaryPlaceholder(t)})},updateSummaryPriceWidth(e){var t=Math.max(e.find(".wpforms-order-summary-preview-coupon-total .wpforms-order-summary-item-price").text().length,e.find(".wpforms-order-summary-preview-total .wpforms-order-summary-item-price").text().length+3);e.find(".wpforms-order-summary-item-price").css("width",t+"ch")},toggleSummaryPlaceholder(e){var t=e.find(".wpforms-order-summary-placeholder");let r=!0;e.find(".wpforms-order-summary-field").each(function(){if("none"!==d(this).css("display"))return r=!1}),t.toggle(r)},amountTotalCalc(e){let r=0;d(".wpforms-payment-price",e).each(function(){var e,t=d(this);t.closest(".wpforms-field-payment-single").hasClass("wpforms-conditional-hide")||(e=l.getPaymentFieldAmount(t))&&(r=Number(r)+e*l.getPaymentFieldQuantity(t))});var t=d(s),a=WPFormsUtils.triggerEvent(t,"wpformsAmountTotalCalculate",[e,r]);return r=void 0!==a.result&&0<=a.result?a.result:r,WPFormsUtils.triggerEvent(t,"wpformsAmountTotalCalculated",[e,r]),r},getPaymentFieldAmount(e){var t=e.attr("type");return"text"===t||"hidden"===t?Number(l.amountSanitize(e.val())):"radio"!==t&&"checkbox"!==t||!e.is(":checked")?e.is("select")&&0<e.find("option:selected").length&&e.find("option:selected").data("amount")?Number(l.amountSanitize(e.find("option:selected").data("amount"))):0:Number(l.amountSanitize(e.data("amount")))},getPaymentFieldQuantity(e){e=e.attr("id"),e=d(`#${e}-quantity`);return e.length?Number(e.val()):1},amountSanitize(e){var t=l.getCurrency();return e=e.toString().replace(t.symbol,"").replace(/[^0-9.,]/g,""),","===t.decimal_sep?("."===t.thousands_sep&&-1!==e.indexOf(t.thousands_sep)?e=e.replace(new RegExp("\\"+t.thousands_sep,"g"),""):""===t.thousands_sep&&-1!==e.indexOf(".")&&(e=e.replace(/\./g,"")),e=e.replace(t.decimal_sep,".")):","===t.thousands_sep&&-1!==e.indexOf(t.thousands_sep)&&(e=e.replace(new RegExp("\\"+t.thousands_sep,"g"),"")),l.numberFormat(e,t.decimals,".","")},amountFormat(e){var t,r=l.getCurrency();return e=String(e),","===r.decimal_sep&&-1!==e.indexOf(r.decimal_sep)&&(t=e.indexOf(r.decimal_sep),e=e.substr(0,t)+"."+e.substr(t+1,e.length-1)),","===r.thousands_sep&&-1!==e.indexOf(r.thousands_sep)&&(e=e.replace(/,/g,"")),l.empty(e)&&(e=0),l.numberFormat(e,r.decimals,r.decimal_sep,r.thousands_sep)},amountFormatSymbol(e){var t=l.getCurrency(),e=l.amountFormat(e);return"left"===t.symbol_pos?t.symbol+e:e+" "+t.symbol},getCurrency(){var e={code:"USD",thousands_sep:",",decimals:2,decimal_sep:".",symbol:"$",symbol_pos:"left"};return void 0!==wpforms_settings.currency_code&&(e.code=wpforms_settings.currency_code),void 0!==wpforms_settings.currency_thousands&&(e.thousands_sep=wpforms_settings.currency_thousands),void 0!==wpforms_settings.currency_decimals&&(e.decimals=wpforms_settings.currency_decimals),void 0!==wpforms_settings.currency_decimal&&(e.decimal_sep=wpforms_settings.currency_decimal),void 0!==wpforms_settings.currency_symbol&&(e.symbol=wpforms_settings.currency_symbol),void 0!==wpforms_settings.currency_symbol_pos&&(e.symbol_pos=wpforms_settings.currency_symbol_pos),e},numberFormat(e,t,r,a){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var o,i,e=isFinite(+e)?+e:0,t=isFinite(+t)?Math.abs(t):0,a=void 0===a?",":a,r=void 0===r?".":r,s=(t?(s=e,o=t,i=Math.pow(10,o),""+(Math.round(s*i)/i).toFixed(o)):""+Math.round(e)).split(".");return 3<s[0].length&&(s[0]=s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,a)),(s[1]||"").length<t&&(s[1]=s[1]||"",s[1]+=new Array(t-s[1].length+1).join("0")),s.join(r)},empty(e){var t;let r,a;var o=[void 0,null,!1,0,"","0"];for(a=0,t=o.length;a<t;a++)if(e===o[a])return!0;if("object"!=typeof e)return!1;for(r in e)if(e.hasOwnProperty(r))return!1;return!0},setUserIdentifier(){if((!p.hasRequiredConsent&&"undefined"!=typeof wpforms_settings&&wpforms_settings.uuid_cookie||p.hasRequiredConsent&&p.hasRequiredConsent())&&!l.getCookie("_wpfuuid")){var t=new Array(36),r="0123456789abcdef";for(let e=0;e<36;e++)t[e]=r.substr(Math.floor(16*Math.random()),1);t[14]="4",t[19]=r.substr(3&t[19]|8,1),t[8]=t[13]=t[18]=t[23]="-";var e=t.join("");l.createCookie("_wpfuuid",e,3999)}},createCookie(e,t,r){let a="",o="";var i;wpforms_settings.is_ssl&&(o=";secure"),a=r?-1===r?"":((i=new Date).setTime(i.getTime()+24*r*60*60*1e3),";expires="+i.toGMTString()):";expires=Thu, 01 Jan 1970 00:00:01 GMT",s.cookie=e+"="+t+a+";path=/;samesite=strict"+o},getCookie(e){var r=e+"=",a=s.cookie.split(";");for(let t=0;t<a.length;t++){let e=a[t];for(;" "===e.charAt(0);)e=e.substring(1,e.length);if(0===e.indexOf(r))return e.substring(r.length,e.length)}return null},removeCookie(e){l.createCookie(e,"",-1)},getFirstBrowserLanguage(){var e=p.navigator,t=["language","browserLanguage","systemLanguage","userLanguage"];let r,a;if(Array.isArray(e.languages))for(r=0;r<e.languages.length;r++)if((a=e.languages[r])&&a.length)return a;for(r=0;r<t.length;r++)if((a=e[t[r]])&&a.length)return a;return""},mapLanguageToIso(e){return{ar:"ar-SA",bg:"bg-BG",ca:"ca-ES",cs:"cs-CZ",da:"da-DK",de:"de-DE",el:"el-GR",en:"en-US",es:"es-ES",fi:"fi-FI",fr:"fr-FR",he:"he-IL",hi:"hi-IN",hr:"hr-HR",hu:"hu-HU",id:"id-ID",it:"it-IT",ja:"ja-JP",ko:"ko-KR",lt:"lt-LT",lv:"lv-LV",ms:"ms-MY",nl:"nl-NL",no:"nb-NO",pl:"pl-PL",pt:"pt-PT",ro:"ro-RO",ru:"ru-RU",sk:"sk-SK",sl:"sl-SI",sr:"sr-RS",sv:"sv-SE",th:"th-TH",tr:"tr-TR",uk:"uk-UA",vi:"vi-VN",zh:"zh-CN"}[e]||e},currentIpToCountry(r){if(wpforms_settings.country)r(wpforms_settings.country);else{const t=function(){d.get("https://ipapi.co/jsonp",function(){},"jsonp").always(function(e){let t=e?.country?e.country:"";t||(e=l.getFirstBrowserLanguage(),t=-1<e.indexOf("-")?e.split("-").pop():""),r(t)})};d.get("https://geo.wpforms.com/v3/geolocate/json").done(function(e){e&&e.country_iso?r(e.country_iso):t()}).fail(function(e){t()})}},formSubmit(e){e instanceof jQuery||(e=d(e)),l.saveTinyMCE(),WPFormsUtils.triggerEvent(e,"wpformsBeforeFormSubmit",[e]).isDefaultPrevented()?l.restoreSubmitButton(e,e.closest(".wpforms-container")):e.hasClass("wpforms-ajax-form")&&"undefined"!=typeof FormData?l.formSubmitAjax(e):l.formSubmitNormal(e)},restoreSubmitButton(e,t){var r=e.find(".wpforms-submit"),a=r.data("submit-text");a&&r.text(a),r.prop("disabled",!1),WPFormsUtils.triggerEvent(e,"wpformsFormSubmitButtonRestore",[e,r]),t.css("opacity",""),e.find(".wpforms-submit-spinner").hide()},formSubmitNormal(e){var t,r;e.length&&(r=(t=e.find(".wpforms-submit")).get(0).recaptchaID,l.empty(r)&&0!==r||(t.get(0).recaptchaID=!1),e.append('<input type="hidden" name="start_timestamp" value="'+e.data("start_timestamp")+'">'),e.append('<input type="hidden" name="end_timestamp" value="'+Date.now()+'">'),e.get(0).submit())},formHasCaptcha(e){return!(!e||!e.length||"undefined"==typeof hcaptcha&&"undefined"==typeof grecaptcha&&"undefined"==typeof turnstile)&&(e=e.find(".wpforms-recaptcha-container"),Boolean(e.length))},resetFormRecaptcha(r){if(l.formHasCaptcha(r)){var a=r.find(".wpforms-recaptcha-container");let e,t;e=a.hasClass("wpforms-is-hcaptcha")?hcaptcha:a.hasClass("wpforms-is-turnstile")?turnstile:grecaptcha,t=r.find(".wpforms-submit").get(0).recaptchaID,l.empty(t)&&0!==t&&(t=r.find(".g-recaptcha").data("recaptcha-id")),l.empty(t)&&0!==t||e.reset(t)}},consoleLogAjaxError(e){e?console.error("WPForms AJAX submit error:\n%s",e):console.error("WPForms AJAX submit error")},displayFormAjaxErrors(e,t){"string"==typeof t?l.displayFormAjaxGeneralErrors(e,t):(t=t&&"errors"in t?t.errors:null,l.empty(t)||l.empty(t.general)&&l.empty(t.field)?l.consoleLogAjaxError():(l.empty(t.general)||l.displayFormAjaxGeneralErrors(e,t.general),l.empty(t.field)||l.displayFormAjaxFieldErrors(e,t.field)))},displayFormAjaxGeneralErrors(e,t){var r,a;e&&e.length&&(l.empty(t)||(l.isModernMarkupEnabled()&&e.attr({"aria-invalid":"true","aria-errormessage":""}),"string"==typeof t?(a=l.isModernMarkupEnabled()?' role="alert"':"",r=l.isModernMarkupEnabled()?`<span class="wpforms-hidden">${wpforms_settings.formErrorMessagePrefix}</span>`:"",e.find(".wpforms-submit-container").before(`<div class="wpforms-error-container"${a}>${r}${t}</div>`),l.setCurrentPage(e,{})):(a=e.data("formid"),l.printGeneralErrors(e,t,a))))},printGeneralErrors(o,e,i){d.each(e,function(e,t){switch(e){case"header":o.prepend(t);break;case"footer":r=t,0===o.find(".wpforms-page-indicator").length?o.find(".wpforms-submit-container").before(r):o.find(".wpforms-page-1").append(r);break;case"recaptcha":r=t,o.find(".wpforms-recaptcha-container").append(r)}var r,a;l.isModernMarkupEnabled()&&(a=o.attr("aria-errormessage")||"",o.attr("aria-errormessage",a+` wpforms-${i}-${e}-error`))}),o.find(".wpforms-error-container").length&&l.animateScrollTop(o.find(".wpforms-error-container").first().offset().top-100)},clearFormAjaxGeneralErrors(e){e.find(".wpforms-error-container").remove(),e.find("#wpforms-field_recaptcha-error").remove(),l.isModernMarkupEnabled()&&e.attr({"aria-invalid":"false","aria-errormessage":""})},displayFormAjaxFieldErrors(r,e){var t;r&&r.length&&(l.empty(e)||(t=r.data("validator"))&&(e=l.splitFieldErrors(e),d.each(e,function(e,t){d('[name="'+e+'"]',r).attr("data-server-error",t)}),t.showErrors(e),l.formHasCaptcha(r)||t.focusInvalid()))},splitFieldErrors:i=>(d.each(i,function(o,e){"string"!=typeof e&&d.each(e,function(e,t){var r=o.split("[").pop().replace("]",""),a=o.replace("["+r+"]","");r===e?i[o]=t:"string"==typeof e&&isNaN(e)&&(i[a+"["+e+"]"]=t)})}),i),formSubmitAjax:a=>{if(!a.length)return d.Deferred().reject();const r=a.closest(".wpforms-container"),e=a.find(".wpforms-submit-spinner");let t;r.css("opacity",.6),e.show(),l.clearFormAjaxGeneralErrors(a);var o=new FormData(a.get(0)),o=(o.append("action","wpforms_submit"),o.append("start_timestamp",a.data("start_timestamp")),o.append("end_timestamp",Date.now()),{type:"post",dataType:"json",url:wpforms_settings.ajaxurl,data:o,cache:!1,contentType:!1,processData:!1});return o.success=function(e){e?e.data&&e.data.action_required?a.trigger("wpformsAjaxSubmitActionRequired",e):e.success?(a.trigger("wpformsAjaxSubmitSuccess",e),e.data&&(e.data.redirect_url?(a.trigger("wpformsAjaxSubmitBeforeRedirect",e),p.location=e.data.redirect_url):e.data.confirmation&&(r.html(e.data.confirmation),t=r.find("div.wpforms-confirmation-scroll"),r.trigger("wpformsAjaxSubmitSuccessConfirmation",e),t.length)&&l.animateScrollTop(t.offset().top-100))):(l.resetFormRecaptcha(a),l.displayFormAjaxErrors(a,e.data),a.trigger("wpformsAjaxSubmitFailed",e),l.setCurrentPage(a,e.data)):l.consoleLogAjaxError()},o.error=function(e,t,r){l.consoleLogAjaxError(r),a.trigger("wpformsAjaxSubmitError",[e,t,r])},o.complete=function(e,t){e.responseJSON&&e.responseJSON.data&&(e.responseJSON.data.action_required||"success"===t&&e.responseJSON.data.redirect_url)||(l.restoreSubmitButton(a,r),a.trigger("wpformsAjaxSubmitCompleted",[e,t]))},WPFormsUtils.triggerEvent(a,"wpformsAjaxBeforeSubmit",[a]).isDefaultPrevented()?(l.restoreSubmitButton(a,r),d.Deferred().reject()):d.ajax(o)},setCurrentPage(r,a){if(0!==r.find(".wpforms-page-indicator").length){const i=[];if(r.find(".wpforms-page").each(function(e,t){if(1<=d(t).find(".wpforms-has-error").length)return i.push(d(t))}),0!==i.length||void 0===a.errors||void 0===a.errors.general||void 0!==a.errors.general.footer||void 0===a.errors.general.recaptcha){var o=0<i.length?i[0]:r.find(".wpforms-page-1");let e,t="prev";1===o.data("page")||void 0!==a.errors&&void 0!==a.errors.general.footer?e=r.find(".wpforms-page-1").next():(e=0!==o.next().length?o.next():o.prev(),t=0!==o.next().length?"prev":"next");a=e.find(".wpforms-page-next"),o=e.data("page");l.navigateToPage(a,t,o,r,d(".wpforms-page-"+o))}}},animateScrollTop(e,t,r){return t=t||1e3,r="function"==typeof r?r:function(){},d("html, body").animate({scrollTop:parseInt(e,10)},{duration:t,complete:r}).promise()},saveTinyMCE(){"undefined"!=typeof tinyMCE&&tinyMCE.triggerSave()},isFunction(e){return!!(e&&e.constructor&&e.call&&e.apply)},compareTimesGreaterThan(e,t){e=e.replace(/(am|pm)/g," $1").toUpperCase(),t=t.replace(/(am|pm)/g," $1").toUpperCase();e=Date.parse("01 Jan 2021 "+e);return Date.parse("01 Jan 2021 "+t)<=e},isModernMarkupEnabled(){return!!wpforms_settings.isModernMarkupEnabled},initTokenUpdater(){d(".wpforms-form").on("focusin",function(e){var t=d(e.target.closest("form")),r=Date.now();this.needsTokenUpdate(r,t)&&this.updateToken(r,t,e)}.bind(this))},needsTokenUpdate(e,t){return e-1e3*(t.attr("data-token-time")||0)>=1e3*wpforms_settings.token_cache_lifetime&&!this.isUpdatingToken},updateToken(t,r,a){var e=r.data("formid");const o=r.find(".wpforms-submit");this.isUpdatingToken=!0,o.prop("disabled",!0),d.post(wpforms_settings.ajaxurl,{action:"wpforms_get_token",formId:e}).done(function(e){e.success?(r.attr("data-token-time",t),r.attr("data-token",e.data.token),o.prop("disabled",!1),a.target===o[0]&&o.trigger("click")):console.error("Failed to update token: ",e)}).fail(function(e,t,r){console.error("AJAX request failed: ",t,r)}).always(function(){this.isUpdatingToken=!1,o.prop("disabled",!1)}.bind(this))},restoreSubmitButtonOnEventPersisted(){p.onpageshow=function(e){e.persisted&&d(".wpforms-form").each(function(){var e=d(this);l.restoreSubmitButton(e,e.closest(".wpforms-container"))})}}};return l}(document,window,jQuery);wpforms.init();



var WPForms=window.WPForms||{};WPForms.FrontendModern=WPForms.FrontendModern||function(i,o){const a={init(){o(a.ready),a.bindOptinMonster()},ready(){a.updateGBBlockAccentColors(),a.initPageBreakButtons(),a.initButtonStyle(),a.events()},events(){o(i).on("wpforms_elementor_form_fields_initialized",a.initPageBreakButtons),o("form.wpforms-form").on("wpformsCombinedUploadsSizeError",a.combinedUploadsSizeError).on("wpformsFormSubmitButtonDisable",a.formSubmitButtonDisable).on("wpformsFormSubmitButtonRestore",a.formSubmitButtonRestore).on("wpformsPageChange",a.pageChange),o("form.wpforms-form .wpforms-submit").on("keydown click",a.disabledButtonPress),o(i).on("focus",".wpforms-render-modern .wpforms-timepicker",a.updateTimepickerDropdown),o(i).on("focusout",".wpforms-render-modern .wpforms-timepicker",a.resetTimepickerDropdown)},bindOptinMonster(){i.addEventListener("om.Campaign.load",function(){a.ready()}),o(i).on("OptinMonsterOnShow",function(){a.ready()})},updateTimepickerDropdown(){const e=a.getCssVars(o(this));setTimeout(function(){var r=o(".ui-timepicker-wrapper .ui-timepicker-list");r.css("background",e["field-menu-color"]),r.find("li").css("color",e["field-text-color"]),r.find(".ui-timepicker-selected").css("background",e["button-background-color"]).css("color",e["button-text-color"])},0)},resetTimepickerDropdown(){setTimeout(function(){o(".ui-timepicker-wrapper .ui-timepicker-list").find(":not(.ui-timepicker-selected)").attr("style","")},0)},initButtonStyle(){o(".wpforms-block.wpforms-container-full, .elementor-widget-wpforms .wpforms-container-full").each(function(){var r=o(this),e=getComputedStyle(r.get(0)),e=a.getCssVar(e,"--wpforms-button-background-color-alt");a.isTransparentColor(e)&&r.find("button.wpforms-submit").addClass("wpforms-opacity-hover")})},isTransparentColor(r){r=a.getColorAsRGBArray(r);return Number(r?.[3])<=.33},updateGBBlockAccentColors(){o(".wpforms-block.wpforms-container-full, .elementor-widget-wpforms .wpforms-container-full").each(function(){var r=o(this);a.updateGBBlockPageIndicatorColor(r),a.updateGBBlockIconChoicesColor(r),a.updateGBBlockRatingColor(r)})},updateGBBlockPageIndicatorColor(r){var r=r.find(".wpforms-page-indicator"),e=r.find(".wpforms-page-indicator-page-progress, .wpforms-page-indicator-page.active .wpforms-page-indicator-page-number"),o=e.find(".wpforms-page-indicator-page-triangle");r.data("indicator-color","var( --wpforms-page-break-color )"),e.css("background-color","var( --wpforms-page-break-color )"),o.css("border-top-color","var( --wpforms-page-break-color )")},updateGBBlockIconChoicesColor(r){r.find(".wpforms-icon-choices").css("--wpforms-icon-choices-color","var( --wpforms-button-background-color )")},updateGBBlockRatingColor(r){r.find(".wpforms-field-rating-item svg").css("color","var( --wpforms-page-break-color, var( --wpforms-button-background-color ) )")},initPageBreakButtons(){o(".wpforms-page-button").removeClass("wpforms-disabled").attr("aria-disabled","false").attr("aria-describedby","")},combinedUploadsSizeError(r,e,o){var t=e.data("formid"),s=e.attr("aria-errormessage")||"",t=`wpforms-${t}-footer-error`,i=e.find(".wpforms-submit");e.attr({"aria-invalid":"true","aria-errormessage":s+" "+t}),o.attr({role:"alert",id:t}),o.find("> .wpforms-hidden:first-child").remove(),o.prepend(`<span class="wpforms-hidden">${wpforms_settings.formErrorMessagePrefix}</span>`),i.attr("aria-describedby",t)},combinedUploadsSizeOk(r,e,o){console.warn('WARNING! Function "WPForms.FrontendModern( e, $form, $errorCnt )" has been deprecated, please use the new "formSubmitButtonDisable: function( e, $form, $submitBtn )" function instead!'),e.find(".wpforms-submit").removeClass("wpforms-disabled").attr("aria-disabled","false").attr("aria-describedby","")},formSubmitButtonDisable(r,e,o){e=e.attr("id")+"-submit-btn-disabled";o.before(`<div class="wpforms-hidden" id="${e}">${wpforms_settings.submitBtnDisabled}</div>`),o.prop("disabled",!1).addClass("wpforms-disabled").attr("aria-disabled","true").attr("aria-describedby",e)},formSubmitButtonRestore(r,e,o){var t=e.attr("id")+"-submit-btn-disabled";e.find("#"+t).remove(),o.removeClass("wpforms-disabled").attr("aria-disabled","false").attr("aria-describedby","")},disabledButtonPress(r){!o(this).hasClass("wpforms-disabled")||"Enter"!==r.key&&"click"!==r.type||(r.preventDefault(),r.stopPropagation())},pageChange(r,o,t){var s=t.find(".wpforms-page-indicator");if(wpforms_settings.indicatorStepsPattern&&s.length){t=t.find(".wpforms-page").length;let r=wpforms_settings.indicatorStepsPattern,e;r=r.replace("{current}",o).replace("{total}",t),e=s.hasClass("progress")?s.find(".wpforms-page-indicator-page-title").data(`page-${o}-title`):s.find(`.wpforms-page-indicator-page-${o} .wpforms-page-indicator-page-title`).text(),r=e?e+". "+r:r,s.attr("aria-valuenow",o),a.screenReaderAnnounce(r,"polite")}},screenReaderAnnounce(r,e){var o=i.createElement("div"),t="wpforms-screen-reader-announce-"+Date.now();o.setAttribute("id",t),o.setAttribute("aria-live",e||"polite"),o.classList.add("wpforms-screen-reader-announce");const s=i.body.appendChild(o);setTimeout(function(){s.innerHTML=r},100),setTimeout(function(){i.body.removeChild(s)},1e3)},getColorWithOpacity(r,e){return WPFormsUtils.cssColorsUtils.getColorWithOpacity(r,e)},getSolidColor(r){r=r.trim();var e=a.getColorAsRGBArray(r);return e?`rgb(${e[0]},${e[1]},${e[2]})`:r},isValidColor(r){return WPFormsUtils.cssColorsUtils.isValidColor(r)},getColorAsRGBArray(r){return WPFormsUtils.cssColorsUtils.getColorAsRGBArray(r)},getCssVar(r,e){if(!r||"function"!=typeof r.getPropertyValue)return null;let o=r.getPropertyValue(e).trim();return o=e.includes("color")?o.replace(/\s/g,""):o},getCssVars(r){if(!r||!r.length)return null;var r=r.hasClass("wpforms-container")?r:r.closest(".wpforms-container"),e=getComputedStyle(r.get(0)),o=wpforms_settings.css_vars,t={};for(let r=0;r<o.length;r++)t[o[r]]=a.getCssVar(e,"--wpforms-"+o[r]);return t}};return a}(document,(window,jQuery)),WPForms.FrontendModern.init();


