File: /disk001/machen/www/support/wp-content/themes/wp-moose/dist/js/app.min.js
(()=>{var t={658:(t,e,i)=>{var o,s,n;s=[i(311)],o=function(t){var e=Array.prototype.slice,i=Array.prototype.splice,o={topSpacing:0,bottomSpacing:0,className:"is-sticky",wrapperClassName:"sticky-wrapper",center:!1,getWidthFrom:"",widthFromWrapper:!0,responsiveWidth:!1,zIndex:"auto"},s=t(window),n=t(document),r=[],a=s.height(),c=function(){for(var e=s.scrollTop(),i=n.height(),o=i-a,c=e>o?o-e:0,p=0,d=r.length;p<d;p++){var l=r[p],u=l.stickyWrapper.offset().top-l.topSpacing-c;if(l.stickyWrapper.css("height",l.stickyElement.outerHeight()),e<=u)null!==l.currentTop&&(l.stickyElement.css({width:"",position:"",top:"","z-index":""}),l.stickyElement.parent().removeClass(l.className),l.stickyElement.trigger("sticky-end",[l]),l.currentTop=null);else{var h,f=i-l.stickyElement.outerHeight()-l.topSpacing-l.bottomSpacing-e-c;f<0?f+=l.topSpacing:f=l.topSpacing,l.currentTop!==f&&(l.getWidthFrom?h=t(l.getWidthFrom).width()||null:l.widthFromWrapper&&(h=l.stickyWrapper.width()),null==h&&(h=l.stickyElement.width()),l.stickyElement.css("width",h).css("position","fixed").css("top",f).css("z-index",l.zIndex),l.stickyElement.parent().addClass(l.className),null===l.currentTop?l.stickyElement.trigger("sticky-start",[l]):l.stickyElement.trigger("sticky-update",[l]),l.currentTop===l.topSpacing&&l.currentTop>f||null===l.currentTop&&f<l.topSpacing?l.stickyElement.trigger("sticky-bottom-reached",[l]):null!==l.currentTop&&f===l.topSpacing&&l.currentTop<f&&l.stickyElement.trigger("sticky-bottom-unreached",[l]),l.currentTop=f);var g=l.stickyWrapper.parent();l.stickyElement.offset().top+l.stickyElement.outerHeight()>=g.offset().top+g.outerHeight()&&l.stickyElement.offset().top<=l.topSpacing?l.stickyElement.css("position","absolute").css("top","").css("bottom",0).css("z-index",""):l.stickyElement.css("position","fixed").css("top",f).css("bottom","").css("z-index",l.zIndex)}}},p=function(){a=s.height();for(var e=0,i=r.length;e<i;e++){var o=r[e],n=null;o.getWidthFrom?o.responsiveWidth&&(n=t(o.getWidthFrom).width()):o.widthFromWrapper&&(n=o.stickyWrapper.width()),null!=n&&o.stickyElement.css("width",n)}},d={init:function(e){var i=t.extend({},o,e);return this.each((function(){var e=t(this),s=e.attr("id"),n=s?s+"-"+o.wrapperClassName:o.wrapperClassName,a=t("<div></div>").attr("id",n).addClass(i.wrapperClassName);e.wrapAll(a);var c=e.parent();i.center&&c.css({width:e.outerWidth(),marginLeft:"auto",marginRight:"auto"}),"right"===e.css("float")&&e.css({float:"none"}).parent().css({float:"right"}),i.stickyElement=e,i.stickyWrapper=c,i.currentTop=null,r.push(i),d.setWrapperHeight(this),d.setupChangeListeners(this)}))},setWrapperHeight:function(e){var i=t(e),o=i.parent();o&&o.css("height",i.outerHeight())},setupChangeListeners:function(t){window.MutationObserver?new window.MutationObserver((function(e){(e[0].addedNodes.length||e[0].removedNodes.length)&&d.setWrapperHeight(t)})).observe(t,{subtree:!0,childList:!0}):(t.addEventListener("DOMNodeInserted",(function(){d.setWrapperHeight(t)}),!1),t.addEventListener("DOMNodeRemoved",(function(){d.setWrapperHeight(t)}),!1))},update:c,unstick:function(e){return this.each((function(){for(var e=this,o=t(e),s=-1,n=r.length;n-- >0;)r[n].stickyElement.get(0)===e&&(i.call(r,n,1),s=n);-1!==s&&(o.unwrap(),o.css({width:"",position:"",top:"",float:"","z-index":""}))}))}};window.addEventListener?(window.addEventListener("scroll",c,!1),window.addEventListener("resize",p,!1)):window.attachEvent&&(window.attachEvent("onscroll",c),window.attachEvent("onresize",p)),t.fn.sticky=function(i){return d[i]?d[i].apply(this,e.call(arguments,1)):"object"!=typeof i&&i?void t.error("Method "+i+" does not exist on jQuery.sticky"):d.init.apply(this,arguments)},t.fn.unstick=function(i){return d[i]?d[i].apply(this,e.call(arguments,1)):"object"!=typeof i&&i?void t.error("Method "+i+" does not exist on jQuery.sticky"):d.unstick.apply(this,arguments)},t((function(){setTimeout(c,0)}))},void 0===(n="function"==typeof o?o.apply(e,s):o)||(t.exports=n)},311:t=>{"use strict";t.exports=jQuery}},e={};function i(o){var s=e[o];if(void 0!==s)return s.exports;var n=e[o]={exports:{}};return t[o](n,n.exports,i),n.exports}i(658),jQuery.extend(jQuery.expr[":"],{focusable:function(t){return jQuery(t).is("a, button, :input, [tabindex]")}}),jQuery((function(t){"use strict";var e={init:function(){var e=this;t('[data-toggle="collapse"]').each((function(){t(this).on("click",(function(){e.collapse(t(this))}))})),t('[data-toggle="toggle"]').each((function(){t(this).on("click",(function(){e.toggle(t(this))}))}))},toggle:function(e){var i=t(e.data("toggle-target")),o=t(e.data("toggle-show-focus")),s=t(e.data("toggle-hidden-focus"));i.fadeToggle(300).toggleClass("hidden"),i.hasClass("hidden")?s&&s.eq(0)&&s.eq(0).focus():o&&o.eq(0)&&o.eq(0).focus()},collapse:function(e){var i=e.attr("aria-expanded"),o=t(e.data("toggle-target"));i="false"!==i?"false":"true",o.attr("aria-expanded",i),e.attr("aria-expanded",i),o.toggle(300,(function(){t("[data-sticky]").each((function(){t(this).sticky("update")}))}))}},i=function(){t("[data-sticky]").each((function(){var e=Number(t(this).data("sticky")),i=Number(t(this).data("sticky-z-index")),o=t(this).data("sticky-class");t(this).sticky({topSpacing:e,className:o,zIndex:i})}))},o=function(){var e=t("#scroll-top");t(window).on("scroll",(function(){t(this).scrollTop()>100?e.fadeIn():e.fadeOut()})),e.on("click",(function(){return t("html, body").scrollTop(0),!1}))},s=function(){t("[data-redirect-focus]").each((function(){var e=t(this),i=e.find(":focusable"),o=i.last(),s=i.first(),n=t(e.data("redirect-focus"));n.on("keydown",(function(t){e.is(":visible")&&(9!==t.which||t.shiftKey||(t.preventDefault(),s.focus()),9===t.which&&t.shiftKey&&(t.preventDefault(),o.focus()))})),o.on("keydown",(function(t){9===t.which&&!t.shiftKey&&n.is(":visible")&&n.is(":visible")&&(t.preventDefault(),n.focus())})),s.on("keydown",(function(t){9===t.which&&t.shiftKey&&n.is(":visible")&&(t.preventDefault(),n.focus())}))}))},n=function(){t(".wp-moose-theme-notice").on("click",".wp-moose-notice-dismiss",(function(){var e=t(this).parents(".notice.is-dismissible"),i=e.attr("data-dismiss-url");i&&t.ajax({url:i,complete:function(){e.hide()}})}))},r={init:function(){t("[data-wp-moose-particles]").each((function(){var e=t(this),i=r.overrideConfig(e,JSON.parse(e.attr("data-wp-moose-particles")));particlesJS(e.attr("id"),i)}))},overrideConfig:function(t,e){var i=t.data("wp-moose-detect-on"),o=t.data("wp-moose-quantity"),s=t.data("wp-moose-color"),n=t.data("wp-moose-opacity"),r=t.data("wp-moose-speed"),a=t.data("wp-moose-shape"),c=t.data("wp-moose-size");return""!==i&&void 0!==i&&(e.interactivity.detect_on=i),""!==c&&void 0!==c&&0!=c&&(e.particles.size.value=c),""!==o&&void 0!==o&&0!=o&&(e.particles.number.value=o),""!==n&&void 0!==n&&0!=n&&t.css("opacity",n),""!==s&&void 0!==s&&(e.particles.color.value=s,e.particles.line_linked.color=s),""!==a&&void 0!==a&&(e.particles.shape.type=a),""!==r&&void 0!==r&&0!=r&&(e.particles.move.speed=r),e}};({init:function(){t(".wp-moose-preloader-wrap").length&&(t(document).ready(this.hidePreloader),t("body").hasClass("elementor-editor-active")&&setTimeout(this.hidePreloader,300))},hidePreloader:function(){t(".wp-moose-preloader-wrap > div").fadeOut(600),t(".wp-moose-preloader-wrap").fadeOut(1500)}}).init(),e.init(),i(),o(),s(),n(),r.init()}))})();