/home/bonphmya/topcontenedor.com/wp-content/themes/digitaz/assets/js/vendor/jquery.min.js
!function($){function e(t,o){function e(t,o,s){var i={},e=t[0].style;s.forEach(function(t){i[t]=void 0!==e[t]?e[t]:""}),t.data("css-backup-"+o,i)}function n(t,o,s){var i=getComputedStyle(t[0]),e=parseFloat(i[o]),n="height"===o?["top","bottom"]:["left","right"],o=[];return"border-box"!==i.boxSizing&&o.push("border","padding"),s&&o.push("margin"),o.forEach(function(o){n.forEach(function(t){e+=parseFloat(i[o+"-"+t])})}),e}var r,c,i=!1,a=!1,s=!1,f={},p={to:"top",offset:0,effectsOffset:0,parent:!1,classes:{sticky:"sticky",stickyActive:"sticky-active",stickyEffects:"sticky-effects",spacer:"sticky-spacer"}},m=function(t,o){return t.data("css-backup-"+o)},l=function(){e(r,"unsticky",["position","width","margin-top","margin-bottom","top","bottom"]);var t={position:"fixed",width:n(r,"width"),marginTop:0,marginBottom:0};t[c.to]=c.offset,t["top"===c.to?"bottom":"top"]="",r.css(t).addClass(c.classes.stickyActive)},d=function(){r.css(m(r,"unsticky")).removeClass(c.classes.stickyActive)},u=function(t){var o=f.$window.scrollTop(),s=n(t,"height"),i=innerHeight,o=t.offset().top-o,i=o-i;return{top:{fromTop:o,fromBottom:i},bottom:{fromTop:o+s,fromBottom:i+s}}},y=function(){f.$spacer=r.clone().addClass(c.classes.spacer).css({visibility:"hidden",transition:"none",animation:"none"}),r.after(f.$spacer),l(),i=!0,r.trigger("sticky:stick")},h=function(){d(),f.$spacer.remove(),i=!1,r.trigger("sticky:unstick")},k=function(){var t,o,s=u(r),i="top"===c.to;a?(i?s.top.fromTop>c.offset:s.bottom.fromBottom<-c.offset)&&(f.$parent.css(m(f.$parent,"childNotFollowing")),r.css(m(r,"notFollowing")),a=!1):(t=u(f.$parent),o=getComputedStyle(f.$parent[0]),o=parseFloat(o[i?"borderBottomWidth":"borderTopWidth"]),o=i?t.bottom.fromTop-o:t.top.fromBottom+o,(i?o<=s.bottom.fromTop:o>=s.top.fromBottom)&&function(){e(f.$parent,"childNotFollowing",["position"]),f.$parent.css("position","relative"),e(r,"notFollowing",["position","top","bottom"]);var t={position:"absolute"};t[c.to]="",t["top"===c.to?"bottom":"top"]=0,r.css(t),a=!0}())},g=function(t){s&&-t<c.effectsOffset?(r.removeClass(c.classes.stickyEffects),s=!1):!s&&-t>=c.effectsOffset&&(r.addClass(c.classes.stickyEffects),s=!0)},v=function(){var t,o,s=c.offset;i?(o=u(f.$spacer),t="top"===c.to?o.top.fromTop-s:-o.bottom.fromBottom-s,c.parent&&k(),0<t&&h()):(o=u(r),(t="top"===c.to?o.top.fromTop-s:-o.bottom.fromBottom-s)<=0&&(y(),c.parent&&k())),g(t)},b=function(){v()},w=function(){i&&(d(),l(),c.parent&&(a=!1,k()))};this.destroy=function(){i&&h(),f.$window.off("scroll",b).off("resize",w),r.removeClass(c.classes.sticky)},c=jQuery.extend(!0,p,o),r=$(t).addClass(c.classes.sticky),f.$window=$(window),c.parent&&("parent"===c.parent?f.$parent=r.parent():f.$parent=r.closest(c.parent)),f.$window.on({scroll:b,resize:w}),v()}$.fn.sticky=function(s){var i="string"==typeof s;return this.each(function(){var t=$(this);if(i){var o=t.data("sticky");if(!o)throw Error("Trying to perform the `"+s+"` method prior to initialization");if(!o[s])throw ReferenceError("Method `"+s+"` not found in sticky instance");o[s].apply(o,Array.prototype.slice.call(arguments,1)),"destroy"===s&&t.removeData("sticky")}else t.data("sticky",new e(this,s))}),this},window.Sticky=e}(jQuery);