!function(t,e){"object"==typeof exports?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t)}(this,function(t){function e(t){this._targetElement=t,this._options={title:"",nextLabel:"Next →",prevLabel:"← Back",skipLabel:"Skip",doneLabel:"Done",minimizeLabel:"-",tooltipPosition:"bottom",tooltipClass:"",highlightClass:"",exitOnEsc:!0,exitOnOverlayClick:!0,showStepNumbers:!0,keyboardNavigation:!0,showButtons:!0,buttonClass:"introjs-button",showBullets:!0,showProgress:!1,scrollToElement:!0,overlayOpacity:.8,positionPrecedence:["bottom","top","right","left"],disableInteraction:!1,dock:!1,allowMinimize:!1,arrowPadding:0}}function i(i){var t=[],n=this;if(this._options.steps){var e=[],o=0;for(e=this._options.steps.length;ol.width||h.left+h.width/2-c<0?(u(s,"bottom"),u(s,"top")):(h.height+h.top+a>l.height&&u(s,"bottom"),h.top-a<0&&u(s,"top")),h.width+h.left+c>l.width&&u(s,"right"),h.left-c<0&&u(s,"left"),0l.height&&(i.className="introjs-arrow left-bottom",e.style.top="-"+(s-r.height-20)+"px"),i.className="introjs-arrow left";break;case"left":1==this._options.showStepNumbers&&(e.style.top="15px"),r.top+s>l.height?(e.style.top="-"+(s-r.height-20)+"px",i.className="introjs-arrow right-bottom"):i.className="introjs-arrow right",e.style.right=r.width+20+o+"px";break;case"floating":i.style.display="none",t=H(e),e.style.left="50%",e.style.top="50%",e.style.marginLeft="-"+t.width/2+"px",e.style.marginTop="-"+t.height/2+"px",void 0!==n&&null!=n&&(n.style.left="-"+(t.width/2+18)+"px",n.style.top="-"+(t.height/2+18)+"px");break;case"bottom-right-aligned":i.className="introjs-arrow top-right",e.style.right="0px",e.style.bottom="-"+(H(e).height+10+o)+"px";break;case"bottom-middle-aligned":n=H(t),t=H(e),i.className="introjs-arrow top-middle",e.style.left=n.width/2-t.width/2+"px",e.style.bottom="-"+(t.height+10+o)+"px";break;default:e.style.bottom="-"+(H(e).height+10+o)+"px",i.className="introjs-arrow top"}}}function u(t,e){-1 a.active").className="",n.querySelector('.introjs-bullets li > a[data-stepnumber="'+e.step+'"]').className="active",n.querySelector(".introjs-progress .introjs-progressbar").setAttribute("style","width:"+M.call(i)+"%;"),p.style.opacity=1,s&&(s.style.opacity=1),-1===m.tabIndex?u.focus():m.focus()},350)}else{var y=document.createElement("div"),g=(d=document.createElement("div"),t=document.createElement("div"),document.createElement("div")),b=document.createElement("div"),_=document.createElement("div"),v=document.createElement("div"),w=document.createElement("div"),C=document.createElement("div"),j=document.createElement("div");y.className=o,d.className="introjs-tooltipReferenceLayer",this._options.dock&&(d.className+=" introjs-docked"),I.call(i,y),I.call(i,d),this._targetElement.appendChild(y),this._targetElement.appendChild(d),t.className="introjs-arrow",b.className="introjs-tooltiptext",b.innerHTML=e.intro,!(w.className="introjs-bullets")===this._options.showBullets&&(w.style.display="none");y=document.createElement("ul"),o=0;for(var N=this._introItems.length;oi?window.scrollBy(0,n-30):window.scrollBy(0,e+100)}}function P(t,e){var i="";return t.currentStyle?i=t.currentStyle[e]:document.defaultView&&document.defaultView.getComputedStyle&&(i=document.defaultView.getComputedStyle(t,null).getPropertyValue(e)),i&&i.toLowerCase?i.toLowerCase():i}function d(){if(null!=window.innerWidth)return{width:window.innerWidth,height:window.innerHeight};var t=document.documentElement;return{width:t.clientWidth,height:t.clientHeight}}function H(t){var e={};e.width=t.offsetWidth,e.height=t.offsetHeight;for(var i=0,n=0;t&&!isNaN(t.offsetLeft)&&!isNaN(t.offsetTop);)i+=t.offsetLeft,n+=t.offsetTop,t=t.offsetParent;return e.top=n,e.left=i,e}function M(){return parseInt(this._currentStep+1,10)/this._introItems.length*100}function o(t){if("object"==typeof t)return new e(t);if("string"!=typeof t)return new e(document.body);if(t=document.querySelector(t))return new e(t);throw Error("There is no element with given selector.")}return o.version="1.0.0",o.fn=e.prototype={clone:function(){return new e(this)},setOption:function(t,e){return this._options[t]=e,this},setOptions:function(t){var e,i=this._options,n={};for(e in i)n[e]=i[e];for(e in t)n[e]=t[e];return this._options=n,this},start:function(){return i.call(this,this._targetElement),this},goToStep:function(t){return this._currentStep=t-2,void 0!==this._introItems&&k.call(this),this},nextStep:function(){return k.call(this),this},getNextStep:function(){return this._introItems[this._currentStep+1]},previousStep:function(){return E.call(this),this},exit:function(){return L.call(this,this._targetElement),this},refresh:function(){return I.call(this,document.querySelector(".introjs-helperLayer")),I.call(this,document.querySelector(".introjs-tooltipReferenceLayer")),!0===this._options.disableInteraction&&q.call(this),this},onbeforechange:function(t){if("function"!=typeof t)throw Error("Provided callback for onbeforechange was not a function");return this._introBeforeChangeCallback=t,this},onchange:function(t){if("function"!=typeof t)throw Error("Provided callback for onchange was not a function.");return this._introChangeCallback=t,this},onafterchange:function(t){if("function"!=typeof t)throw Error("Provided callback for onafterchange was not a function");return this._introAfterChangeCallback=t,this},oncomplete:function(t){if("function"!=typeof t)throw Error("Provided callback for oncomplete was not a function.");return this._introCompleteCallback=t,this},onexit:function(t){if("function"!=typeof t)throw Error("Provided callback for onexit was not a function.");return this._introExitCallback=t,this}},t.introJs=o}); //# sourceMappingURL=introjs.min.js.map