(function(){var t=[].slice,n;(function(i,r){var u;return u=function(){function t(n){this.data_attribute="data-intro";this.chardinCssClasses=["chardinjs-helper-layer","chardinjs-show-element","chardinjs-relative-position"];this.$el=i(n);this.sequenced=this.$el.data("chardin-sequenced")?!0:!1;this.sequencedItems=this._getSequencedElements();this.sequenceIdx=0;this.active=!1;this.timeOut=null;this.isAuto=this.$el.data("chardin-auto")?!0:!1;this.delayTime=this.$el.data("chardin-delay")||2e3;i(r).resize(function(n){return function(){return n.refresh()}}(this))}return t.prototype.start=function(){var i,n,r,t;if(this._overlay_visible())return!1;if(this._add_overlay_layer(),this.sequenced)this.sequenceIdx=0,this._show_sequenced_element();else for(t=this.$el.find("*["+this.data_attribute+"]:visible"),n=0,r=t.length;n1)for(r=t.split(" ").filter(function(n){return n.length!==0}),i=0,f=r.length;i-1)return this.chardinCssClasses.push(n)},t.prototype._getStyle=function(n,t,i){return r.getComputedStyle?r.getComputedStyle(n,i).getPropertyValue(t):n.currentStyle[t]},t.prototype._place_tooltip=function(n,t){var u,s,r,f,h,c,l,e,o;o=this._get_offset(t);t.style.top=null;t.style.right=null;t.style.bottom=null;t.style.left=null;r=this._get_position(n);switch(r){case"top":case"bottom":return f=this._get_offset(n),c=f.width,my_width=parseFloat(this._getStyle(t,"width")),t.style.left=""+(c/2*this._get_position_offset(n)-o.width/2)+"px",my_width&&i(t).width(my_width),t.style[r]="-"+o.height+"px";case"left":case"right":return e=parseFloat(this._getStyle(t,"max-width")),t.style[r]="-"+e+"px",f=this._get_offset(n),h=f.height,u=parseFloat(this._getStyle(t,"height")),u&&i(t).height(u),t.style.top=""+(h/2*this._get_position_offset(n)-u/2)+"px",l=parseFloat(this._getStyle(t,"width")),s=185-(e-l),t.style[r]="-"+s+"px"}},t.prototype._position_helper_layer=function(n){var t,r;return r=i(n).data("helper_layer"),t=this._get_offset(n),i(n).is(":visible")&&r&&r.setAttribute("style","display: block; width: "+t.width+"px; height:"+t.height+"px; top:"+t.top+"px; left: "+t.left+"px;"),i(n).is(":visible")&&!r&&this._show_element(n),!i(n).is(":visible")&&r?r.setAttribute("style","display: none; width: "+t.width+"px; height:"+t.height+"px; top:"+t.top+"px; left: "+t.left+"px;"):void 0},t.prototype._remove_sequenced_element=function(){this.$el.find(".chardinjs-helper-layer").remove();this.$el.find(".chardinjs-show-element").removeClass("chardinjs-show-element");this.$el.find(".chardinjs-relative-position").removeClass("chardinjs-relative-position");return},t.prototype._show_element=function(n){var r,t,f,e,u;if(r=document.createElement("div"),t=document.createElement("div"),f=n.getAttribute(this.data_attribute),f[0]=="#")if(e=this.data_helptext[f],e)t.innerHTML="
"+e.text+"<\/div>";else return!1;else t.innerHTML="
"+f+"<\/div>";return i(n).data("helper_layer",r).data("tooltip_layer",t),n.id&&r.setAttribute("data-id",n.id),r.className="chardinjs-helper-layer chardinjs-"+this._get_position(n),this._position_helper_layer(n),this.$el.get()[0].appendChild(r),t.className="chardinjs-tooltip chardinjs-"+this._get_position(n),r.appendChild(t),this._place_tooltip(n,t),u=this,r.onclick=function(n){return u.sequenced?u._handleMouseClick(n):u.stop()},this._position_overlay_layer(n),u.sequenced&&t.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}),!0},t.prototype._show_sequenced_element=function(){var n=this;if(this.sequenceIdx<0&&(this.sequenceIdx=0),!this.sequencedItems[this.sequenceIdx])return this.stop();while(!this._show_element(this.sequencedItems[this.sequenceIdx]))this.sequenceIdx++;if(this.sequenceIdx