").parent().html()},a.prototype._reflexEvent=function(t){return"[object Boolean]"==={}.toString.call(t)?"click":t},a.prototype._reposition=function(e,o){var n,i,r,a,l,h,p;if(a=e[0].offsetWidth,i=e[0].offsetHeight,l=(p=e.offset()).left,h=p.top,(n=t(s).height()-p.top-e.outerHeight())<0&&(p.top=p.top+n),(r=t("html").outerWidth()-p.left-e.outerWidth())<0&&(p.left=p.left+r),p.top<0&&(p.top=0),p.left<0&&(p.left=0),e.offset(p),"bottom"===o.placement||"top"===o.placement){if(l!==p.left)return this._replaceArrow(e,2*(p.left-l),a,"left")}else if(h!==p.top)return this._replaceArrow(e,2*(p.top-h),i,"top")},a.prototype._replaceArrow=function(t,e,o,n){return t.find(".arrow").css(n,e?50*(1-e/o)+"%":"")},a.prototype._scrollIntoView=function(e){var o,n,i,r,s,a,l,h,p;if(l=this.getStep(e),o=t(l.element),this._isOrphan(l))return this._showPopoverAndOverlay(e);if(!o.length)return this._showPopoverAndOverlay(e);switch(n=t(window),s=o.offset().top,r=o.outerHeight(),h=n.height(),a=0,l.placement){case"top":a=Math.max(0,s-h/2);break;case"left":case"right":a=Math.max(0,s+r/2-h/2);break;case"bottom":a=Math.max(0,s+r-h/2)}return this._debug("Scroll into view. ScrollTop: "+a+". Element offset: "+s+". Window height: "+h+"."),i=0,t("body, html").stop(!0,!0).animate({scrollTop:Math.ceil(a)},(p=this,function(){if(2==++i)return p._showPopoverAndOverlay(e),p._debug("Scroll into view.\nAnimation end element offset: "+o.offset().top+".\nWindow height: "+n.height()+".")}))},a.prototype._initMouseNavigation=function(){var e;return e=this,t(s).off("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='prev']").off("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='next']").off("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='end']").off("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='pause-resume']").on("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='next']",function(t){return function(e){return e.preventDefault(),t.next()}}(this)).on("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='prev']",function(t){return function(e){if(e.preventDefault(),t._current>0)return t.prev()}}(this)).on("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='end']",function(t){return function(e){return e.preventDefault(),t.end()}}(this)).on("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='pause-resume']",(function(o){var n;return o.preventDefault(),(n=t(this)).text(e._paused?n.data("pause-text"):n.data("resume-text")),e._paused?e.resume():e.pause()}))},a.prototype._initKeyboardNavigation=function(){var e;if(this._options.keyboard)return t(s).on("keyup.tour-"+this._options.name,(e=this,function(o){if(o.which)switch(o.which){case 39:if(0==t(".tour-step-element-reflexOnly").length)return o.preventDefault(),e._isLast()?e.end():e.next();break;case 37:if(0==t(".tour-step-element-reflexOnly").length&&(o.preventDefault(),e._current>0))return e.prev();break;case 27:return o.preventDefault(),e.end()}}))},a.prototype._makePromise=function(e){return e&&t.isFunction(e.then)?e:null},a.prototype._callOnPromiseDone=function(t,e,o){return t?t.then((n=this,function(t){return e.call(n,o)})):e.call(this,o);var n},a.prototype._fixBootstrapSelectPickerZindex=function(e){var o;this._isOrphan(e)||0==t(s).find(".popover.tour-"+this._options.name+".tour-"+this._options.name+"-"+this.getCurrentStepIndex()).length&&(o="select"==t(e.element)[0].tagName.toLowerCase()?t(e.element):t(e.element).find("select:first")).length>0&&o.parent().hasClass("bootstrap-select")&&(this._debug("Fixing Bootstrap SelectPicker"),o.parent().css("z-index","1111"),this._setStepFlag(this.getCurrentStepIndex(),"elementBootstrapSelectpicker",o))},a.prototype._unfixBootstrapSelectPickerZindex=function(t){var e=this._getStepFlag(this.getCurrentStepIndex(),"elementBootstrapSelectpicker");e&&(this._debug("Unfixing Bootstrap SelectPicker"),e.parent().css("z-index","auto"))},a.prototype._createOverlayElements=function(){var o=t('
'),i=t('
');0===t(e).length&&t(this._options.backdropContainer).append(o),0===t(n).length&&t(this._options.backdropContainer).append(i)},a.prototype._destroyOverlayElements=function(o){t(e).remove(),t(n).remove(),t(r).remove(),t(".tour-highlight-element").removeClass("tour-highlight-element")},a.prototype._hideBackdrop=function(r){var s=r||null;s?(this._hideHighlightOverlay(s),"function"==typeof s.backdropOptions.animation.backdropHide?s.backdropOptions.animation.backdropHide(t(e)):(t(e).addClass(s.backdropOptions.animation.backdropHide),t(e).hide(0,(function(){t(this).removeClass(s.backdropOptions.animation.backdropHide)})))):(t(e).hide(0),t(n).hide(0),t(o).remove(),t(i).remove())},a.prototype._showBackdrop=function(o){var i=o||null;t(e).removeClass().addClass("tour-backdrop").hide(0),i?("function"==typeof i.backdropOptions.animation.backdropShow?i.backdropOptions.animation.backdropShow(t(e)):(t(e).addClass(i.backdropOptions.animation.backdropShow),t(e).show(0,(function(){t(this).removeClass(i.backdropOptions.animation.backdropShow)}))),this._isOrphan(i)?t(n).is(":visible")&&this._hideHighlightOverlay(i):t(n).is(":visible")?this._positionHighlightOverlay(i):this._showHighlightOverlay(i)):(t(e).show(0),t(n).show(0))},a.prototype._createStepSubset=function(e){var o=this,i=t(e.element);return{element:i,container:e.container,autoscroll:e.autoscroll,backdrop:e.backdrop,preventInteraction:e.preventInteraction,isOrphan:this._isOrphan(e),orphan:e.orphan,duration:e.duration,delay:e.delay,fnPositionHighlight:function(){o._debug("Positioning highlight (fnPositionHighlight) over step element "+i[0].id+":\nWidth = "+i.outerWidth()+", height = "+i.outerHeight()+"\nTop: "+i.offset().top+", left: "+i.offset().left),t(n).width(i.outerWidth()).height(i.outerHeight()).offset(i.offset())}}},a.prototype._showHighlightOverlay=function(e){var o=t(".tour-highlight-element");o.length>0&&o.removeClass("tour-highlight-element");var i=t(e.element).parents(".modal:first");i.length?i.addClass("tour-highlight-element"):t(e.element).addClass("tour-highlight-element"),t(n).removeClass().addClass("tour-highlight").hide(0),"function"==typeof e.backdropOptions.animation.highlightShow?e.backdropOptions.animation.highlightShow(t(n),this._createStepSubset(e)):(t(n).css({opacity:e.backdropOptions.highlightOpacity,"background-color":e.backdropOptions.highlightColor}),t(n).width(0).height(0).offset({top:0,left:0}),t(n).show(0),t(n).addClass(e.backdropOptions.animation.highlightShow),t(n).width(t(e.element).outerWidth()).height(t(e.element).outerHeight()).offset(t(e.element).offset()),t(n).one("webkitAnimationEnd oanimationend msAnimationEnd animationend",(function(){t(n).removeClass(e.backdropOptions.animation.highlightShow)})))},a.prototype._positionHighlightOverlay=function(e){var o=t(".tour-highlight-element");o.length>0&&o.removeClass("tour-highlight-element");var i=t(e.element).parents(".modal:first");i.length?i.addClass("tour-highlight-element"):t(e.element).addClass("tour-highlight-element"),"function"==typeof e.backdropOptions.animation.highlightTransition?e.backdropOptions.animation.highlightTransition(t(n),this._createStepSubset(e)):(t(n).removeClass().addClass("tour-highlight"),t(n).css({opacity:e.backdropOptions.highlightOpacity,"background-color":e.backdropOptions.highlightColor}),t(n).addClass(e.backdropOptions.animation.highlightTransition),t(n).width(t(e.element).outerWidth()).height(t(e.element).outerHeight()).offset(t(e.element).offset()),t(n).one("webkitAnimationEnd oanimationend msAnimationEnd animationend",(function(){t(n).removeClass(e.backdropOptions.animation.highlightTransition)})))},a.prototype._hideHighlightOverlay=function(e){t(".tour-highlight-element").removeClass("tour-highlight-element"),"function"==typeof e.backdropOptions.animation.highlightHide?e.backdropOptions.animation.highlightHide(t(n),this._createStepSubset(e)):(t(n).addClass(e.backdropOptions.animation.highlightHide),t(n).one("webkitAnimationEnd oanimationend msAnimationEnd animationend",(function(){t(n).removeClass().addClass("tour-highlight"),t(n).hide(0)})))},a.prototype._updateBackdropElements=function(r){r.backdrop!=t(e).is(":visible")?r.backdrop?this._showBackdrop(r):this._hideBackdrop(r):r.backdrop?this._isOrphan(r)?t(n).is(":visible")&&this._hideHighlightOverlay(r):t(n).is(":visible")?this._positionHighlightOverlay(r):this._showHighlightOverlay(r):t(n).is(":visible")&&this._hideHighlightOverlay(r),t(o).remove(),t(i).remove(),1==r.backdropOptions.backdropSibling?(t(n).addClass("tour-behind"),t(e).addClass("tour-zindexFix"),t(n).clone().prop("id",i.substring(1)).removeClass("tour-behind").insertAfter(".tour-highlight-element"),t(e).clone().prop("id",o.substring(1)).removeClass("tour-zindexFix").insertAfter(".tour-highlight-element")):(t(n).removeClass("tour-behind"),t(e).removeClass("tour-zindexFix"))},a.prototype._updateOverlayElements=function(e){e.preventInteraction?(this._debug("preventInteraction == true, adding overlay"),0===t(r).length&&t('
').insertAfter(n),t(r).width(t(e.element).outerWidth()).height(t(e.element).outerHeight()).offset(t(e.element).offset())):t(r).remove()},a.prototype._clearTimer=function(){return window.clearTimeout(this._timer),this._timer=null,this._duration=null,this._duration},a.prototype._getProtocol=function(t){return(t=t.split("://")).length>1?t[0]:"http"},a.prototype._getHost=function(t){return(t=(t=t.split("//")).length>1?t[1]:t[0]).split("/")[0]},a.prototype._getPath=function(t){return t.replace(/\/?$/,"").split("?")[0].split("#")[0]},a.prototype._getQuery=function(t){return this._getParams(t,"?")},a.prototype._getHash=function(t){return this._getParams(t,"#")},a.prototype._getParams=function(t,e){var o,n,i,r,s;if(1===(r=t.split(e)).length)return{};for(s={},o=0,n=(r=r[1].split("&")).length;o