/*! * Intro.js v8.3.1 * https://introjs.com * * Copyright (C) 2012-2025 Afshin Mehrabani (@afshinmeh). * https://introjs.com * * Date: Sun, 06 Jul 2025 09:03:05 GMT */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).introJs=e()}(this,(function(){"use strict";function t(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function l(t){var e=h();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return b(this,n)}}function u(t,e,n){return(e=S(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(h=function(){return!!t})()}function f(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function p(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function v(t){for(var e=1;e=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;P(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:N(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}function w(t,n){return e(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,n)||C(t,n)||p()}function k(t){return e(t)||f(t)||C(t)||p()}function x(e){return function(e){if(Array.isArray(e))return t(e)}(e)||f(e)||C(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function _(t){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_(t)}function C(e,n){if(e){if("string"==typeof e)return t(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}function O(t){if(null===t||"object"!==_(t)||"nodeType"in t)return t;var e={};for(var n in t)"jQuery"in window&&window.jQuery&&t[n]instanceof window.jQuery?e[n]=t[n]:e[n]=O(t[n]);return e}var E=function(t,e){return(null!=e?e:document).querySelector(t)},A=function(t,e){return(null!=e?e:document).querySelectorAll(t)},P="data-hint",L="data-step",N="data-hint-position",j=function(t){t.setHints([]);var e=t.getTargetElement(),n=t.getOption("hints");if(n&&n.length>0){var r,i=s(n);try{for(i.s();!(r=i.n()).done;){var o=O(r.value);"string"==typeof o.element&&(o.element=E(o.element)),o.hintPosition=o.hintPosition||t.getOption("hintPosition"),o.hintAnimation=o.hintAnimation||t.getOption("hintAnimation"),null!==o.element&&t.addHint(o)}}catch(t){i.e(t)}finally{i.f()}}else{var a=Array.from(A("*[".concat(P,"]"),e));if(!a||!a.length)return!1;for(var l=0,u=a;l1?e-1:0),r=1;r2?r-2:0),o=2;o1?e-1:0),r=1;r1?e-1:0),r=1;ro.height&&zt(a,"bottom"),e.absoluteTop-r<0&&zt(a,"top"),e.absoluteRight+n>o.width&&zt(a,"right"),e.absoluteLeft-n<0&&zt(a,"left"),i&&(i=i.split("-")[0]),a.length&&(s=a[0],a.includes(i)&&(s=i)),"top"===s||"bottom"===s){var l,u=[];"top"===s?(l="top-middle-aligned",u=["top-left-aligned","top-middle-aligned","top-right-aligned"]):(l="bottom-middle-aligned",u=["bottom-left-aligned","bottom-middle-aligned","bottom-right-aligned"]),s=function(t,e,n,r){var i=e/2,o=Math.min(n,window.screen.width);return o-te.width?(i.val="".concat(e.width-r-t.left,"px"),!1):(i.val="".concat(n,"px"),!0)}var Kt=function(t,e){var n=t.position,r=t.element,i=t.refreshes,o=t.hintMode,a=void 0!==o&&o,s=t.showStepNumbers,l=void 0!==s&&s,u=t.transitionDuration,c=void 0===u?0:u,h=t.positionPrecedence,f=void 0===h?[]:h,p=t.className,d=t.autoPosition,v=void 0===d||d,g=t.onClick,b=yt.state("auto"),m=yt.state("auto"),y=yt.state("auto"),w=yt.state("auto"),k=yt.state("0"),x=yt.state("0"),S=yt.state(0),_=yt.state(250),C=yt.state(300),O=yt.state(n),E=yt.state(Tt()),A=yt.state(_t(r)),P=yt.derive((function(){return A.val.top+_.val>E.val.height}));yt.derive((function(){void 0!==i.val&&(E.val=Tt(),A.val=_t(r))})),yt.derive((function(){void 0!==O.val&&"floating"!==n&&v&&C.val&&_.val&&A.val&&E.val&&(O.val=Gt(f,A.val,C.val,_.val,n,E.val))})),yt.derive((function(){void 0!==C.val&&void 0!==_.val&&void 0!==P.val&&void 0!==O.val&&void 0!==A.val&&void 0!==E.val&&function(t,e,n,r,i,o,a,s,l,u,c,h,f,p){o.val="auto",a.val="auto",s.val="auto",l.val="auto",u.val="0",c.val="0";var d=e.width/2-r/2;switch(t){case"top-right-aligned":var v=0;Jt(e,v,r,s,l),a.val="".concat(e.height+20,"px");break;case"top-middle-aligned":p&&(d+=5),Jt(e,d,r,s,l)&&(l.val=void 0,Mt(e,n,d,r,s)),a.val="".concat(e.height+20,"px");break;case"top-left-aligned":case"top":Mt(e,n,p?0:15,r,s),a.val="".concat(e.height+20,"px");break;case"right":s.val="".concat(e.width+20,"px"),h.val&&(o.val="-".concat(i-e.height-20,"px"));break;case"left":p||!0!==f||(o.val="15px"),h.val&&(o.val="-".concat(i-e.height-20,"px")),l.val="".concat(e.width+20,"px");break;case"floating":s.val="50%",o.val="50%",u.val="-".concat(r/2,"px"),c.val="-".concat(i/2,"px");break;case"bottom-right-aligned":Jt(e,v=0,r,s,l),o.val="".concat(e.height+20,"px");break;case"bottom-middle-aligned":p&&(d+=5),Jt(e,d,r,s,l)&&(l.val="",Mt(e,n,d,r,s)),o.val="".concat(e.height+20,"px");break;default:Mt(e,n,0,r,s),o.val="".concat(e.height+20,"px")}}(O.val,A.val,E.val,C.val,_.val,b,y,w,m,k,x,P,l,a)}));var L,N,j=Wt({style:function(){return"top: ".concat(b.val,"; right: ").concat(m.val,"; bottom: ").concat(y.val,"; left: ").concat(w.val,"; margin-left: ").concat(k.val,"; margin-top: ").concat(x.val,";opacity: ").concat(S.val)},className:function(){return"".concat("introjs-tooltip"," introjs-").concat(O.val," ").concat(p||"")},role:"dialog",onclick:null!=g?g:null},[(L={tooltipPosition:O,tooltipBottomOverflow:P},N=yt.derive((function(){var t=["introjs-arrow"];switch(L.tooltipPosition.val){case"top-right-aligned":t.push("bottom-right");break;case"top-middle-aligned":t.push("bottom-middle");break;case"top-left-aligned":case"top":t.push("bottom");break;case"right":L.tooltipBottomOverflow.val?t.push("left-bottom"):t.push("left");break;case"left":L.tooltipBottomOverflow.val?t.push("right-bottom"):t.push("right");break;case"floating":break;case"bottom-right-aligned":t.push("top-right");break;case"bottom-middle-aligned":t.push("top-middle");break;default:t.push("top")}return t})),Wt({className:function(){var t;return null===(t=N.val)||void 0===t?void 0:t.filter(Boolean).join(" ")},style:function(){return"display: ".concat("floating"===L.tooltipPosition.val?"none":"block",";")}})),[e]]);return setTimeout((function(){S.val=1}),c),setTimeout((function(){_.val=j.offsetHeight,C.val=j.offsetWidth}),1),j},Yt=yt.tags.div,Qt=function(t){var e=t.text,n=t.tooltipRenderAsHtml,r=t.className,i=Yt({className:r});return yt.derive((function(){var t=i;if(t)if(t.innerHTML="",n&&e){var r=document.createRange().createContextualFragment(e);t.appendChild(r)}else t.textContent=e})),i},qt=["hintItem","closeButtonEnabled","closeButtonOnClick","closeButtonLabel","closeButtonClassName","className","renderAsHtml"],Ut=yt.tags,Xt=Ut.a,Zt=Ut.div,$t=["activeHintSignal","targetElement","helperElementPadding"],te=yt.tags.div,ee=function(t){var e=t.activeHintSignal,n=t.targetElement,r=t.helperElementPadding,i=g(t,$t),o=e.val;return function(){var t;if(null==e.val)return null;if(o!==e.val)return null;var a=te((u(t={},L,e.val),u(t,"className","".concat("introjs-tooltipReferenceLayer"," ").concat("introjs-hintReference")),t),function(t){var e=t.hintItem,n=t.closeButtonEnabled,r=t.closeButtonOnClick,i=t.closeButtonLabel,o=t.closeButtonClassName,a=t.className,s=t.renderAsHtml,l=g(t,qt),u=e.hint;return Kt(v(v({},l),{},{element:e.hintTooltipElement,position:e.position,hintMode:!0,onClick:function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}}),[Zt({className:"".concat(kt," ").concat(a||"")},Qt({text:u||"",tooltipRenderAsHtml:s,className:kt}),n?Xt({className:o,role:"button",onclick:function(){return r(e)}},i):null)])}(i));return setTimeout((function(){Ht(n,a,i.hintItem.hintTooltipElement,r)}),1),a}},ne=yt.tags.div,re=function(t,e){return function(n){var r=n||window.event;r&&r.stopPropagation&&r.stopPropagation(),r&&null!==r.cancelBubble&&(r.cancelBubble=!0),t.showHintDialog(e)}},ie=function(){function t(e,n){i(this,t),u(this,"_root",void 0),u(this,"_hints",[]),u(this,"_targetElement",void 0),u(this,"_options",void 0),u(this,"_activeHintSignal",yt.state(void 0)),u(this,"_refreshesSignal",yt.state(0)),u(this,"callbacks",{}),u(this,"_hintsAutoRefreshFunction",void 0),u(this,"_windowClickFunction",void 0),this._targetElement=W(e),this._options=n?T(this._options,n):{hints:[],isActive:!0,tooltipPosition:"bottom",tooltipClass:"",hintPosition:"top-middle",hintButtonLabel:"Got it",hintShowButton:!0,hintAutoRefreshInterval:10,hintAnimation:!0,buttonClass:"introjs-button",helperElementPadding:10,autoPosition:!0,positionPrecedence:["bottom","top","right","left"],tooltipRenderAsHtml:!0}}var e,n,o,l,c,h;return a(t,[{key:"callback",value:function(t){var e=this.callbacks[t];if(R(e))return e}},{key:"getTargetElement",value:function(){return this._targetElement}},{key:"getHints",value:function(){return this._hints}},{key:"getHint",value:function(t){return this._hints[t]}},{key:"setHints",value:function(t){return this._hints=t,this}},{key:"addHint",value:function(t){return t.isActive=yt.state(!0),this._hints.push(t),this}},{key:"getActiveHintSignal",value:function(){return this._activeHintSignal}},{key:"getRefreshesSignal",value:function(){return this._refreshesSignal}},{key:"isRendered",value:function(){return void 0!==this._root}},{key:"createRoot",value:function(){this._root=function(t){var e,n=t.hint,r=[],i=s(n.getHints().entries());try{for(i.s();!(e=i.n()).done;){var o=w(e.value,2),a=o[0],l=o[1],u=At({index:a,hintItem:l,onClick:re(n,a),refreshesSignal:n.getRefreshesSignal()});l.hintTooltipElement=u,r.push(u)}}catch(t){i.e(t)}finally{i.f()}var c=ne.apply(void 0,[{className:wt}].concat(r));return yt.derive((function(){var t=n.getActiveHintSignal();if(void 0!==t.val){var e=t.val,r=n.getHints()[e];if(r){var i=ee({activeHintSignal:t,hintItem:r,helperElementPadding:n.getOption("helperElementPadding"),targetElement:n.getTargetElement(),refreshes:n.getRefreshesSignal(),showStepNumbers:!1,autoPosition:n.getOption("autoPosition"),positionPrecedence:n.getOption("positionPrecedence"),closeButtonEnabled:n.getOption("hintShowButton"),closeButtonLabel:n.getOption("hintButtonLabel"),closeButtonClassName:n.getOption("buttonClass"),closeButtonOnClick:function(t){return J(n,t)},className:n.getOption("tooltipClass")});yt.add(c,i)}}})),c}({hint:this}),yt.add(this._targetElement,this._root)}},{key:"recreateRoot",value:function(){this._root&&(this._root.remove(),this.createRoot())}},{key:"render",value:(h=r(m().mark((function t(){var e;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.isActive()){t.next=2;break}return t.abrupt("return",this);case 2:if(!this.isRendered()){t.next=4;break}return t.abrupt("return",this);case 4:return j(this),this.createRoot(),null===(e=this.callback("hintsAdded"))||void 0===e||e.call(this),this.enableHintAutoRefresh(),this.enableCloseDialogOnWindowClick(),t.abrupt("return",this);case 10:case"end":return t.stop()}}),t,this)}))),function(){return h.apply(this,arguments)})},{key:"enableCloseDialogOnWindowClick",value:function(){var t=this;this._windowClickFunction=function(){t._activeHintSignal.val=void 0},G.on(document,"click",this._windowClickFunction,!1)}},{key:"disableCloseDialogOnWindowClick",value:function(){this._windowClickFunction&&G.off(document,"click",this._windowClickFunction,!1)}},{key:"addHints",value:(c=r(m().mark((function t(){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.render());case 1:case"end":return t.stop()}}),t,this)}))),function(){return c.apply(this,arguments)})},{key:"hideHint",value:(l=r(m().mark((function t(e){var n;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n=this.getHint(e))){t.next=4;break}return t.next=4,J(this,n);case 4:return t.abrupt("return",this);case 5:case"end":return t.stop()}}),t,this)}))),function(t){return l.apply(this,arguments)})},{key:"hideHints",value:(o=r(m().mark((function t(){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,K(this);case 2:return t.abrupt("return",this);case 3:case"end":return t.stop()}}),t,this)}))),function(){return o.apply(this,arguments)})},{key:"showHint",value:function(t){var e=this.getHint(t);return e&&U(e),this}},{key:"showHints",value:(n=r(m().mark((function t(){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Q(this);case 2:return t.abrupt("return",this);case 3:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"destroy",value:function(){return this._root&&(this._root.remove(),this._root=void 0),this.disableHintAutoRefresh(),this.disableCloseDialogOnWindowClick(),this}},{key:"removeHints",value:function(){return this.destroy(),this}},{key:"removeHint",value:function(t){return this._hints=this._hints.filter((function(e,n){return n!==t})),this.recreateRoot(),this}},{key:"showHintDialog",value:(e=r(m().mark((function t(e){var n,r;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.getHint(e)){t.next=3;break}return t.abrupt("return");case 3:if(this._activeHintSignal.val===e){t.next=9;break}return this._activeHintSignal.val=e,t.next=7,null===(r=this.callback("hintClick"))||void 0===r?void 0:r.call(this,n);case 7:t.next=10;break;case 9:this._activeHintSignal.val=void 0;case 10:return t.abrupt("return",this);case 11:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"hideHintDialog",value:function(){return this._activeHintSignal.val=void 0,this}},{key:"refresh",value:function(){return this.isRendered()?(void 0!==this._refreshesSignal.val&&(this._refreshesSignal.val+=1),this):this}},{key:"enableHintAutoRefresh",value:function(){var t,e,n,r=this,i=this.getOption("hintAutoRefreshInterval");return i>=0&&(this._hintsAutoRefreshFunction=(t=function(){return r.refresh()},e=i,function(){for(var r=arguments.length,i=new Array(r),o=0;o0?n[f-1]=d:l.push(d)}}for(var v=0;l.length>0;v++)if(void 0===n[v]){var g=l.shift();if(!g)break;g.step=v+1,n[v]=g}}return(n=n.filter((function(t){return t}))).sort((function(t,e){return t.step-e.step})),n};var be=function(){var t=r(m().mark((function t(e){var n,r;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.isActive()){t.next=2;break}return t.abrupt("return",!1);case 2:if(!e.hasStarted()){t.next=4;break}return t.abrupt("return",!1);case 4:return t.next=6,null===(n=e.callback("start"))||void 0===n?void 0:n.call(e,e.getTargetElement());case 6:if(0!==(r=ge(e)).length){t.next=9;break}return t.abrupt("return",!1);case 9:return e.setSteps(r),t.next=12,fe(e);case 12:return t.abrupt("return",!0);case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();function me(t){return ye.apply(this,arguments)}function ye(){return ye=r(m().mark((function t(e){var n,r,i,o,a,s=arguments;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=s.length>1&&void 0!==s[1]&&s[1],o=e.getTargetElement(),a=!0,t.next=5,null===(n=e.callback("beforeExit"))||void 0===n?void 0:n.call(e,o);case 5:if(a=t.sent,i||!1!==a){t.next=8;break}return t.abrupt("return",!1);case 8:return he(),t.next=11,null===(r=e.callback("exit"))||void 0===r?void 0:r.call(e);case 11:return e.resetCurrentStep(),t.abrupt("return",!0);case 13:case"end":return t.stop()}}),t)}))),ye.apply(this,arguments)}function we(t,e,n){var r,i=(u(r={},t,e),u(r,"path","/"),u(r,"expires",void 0),r);if(n){var o=new Date;o.setTime(o.getTime()+24*n*60*60*1e3),i.expires=o.toUTCString()}var a=[];for(var s in i)a.push("".concat(s,"=").concat(i[s]));return document.cookie=a.join("; "),ke(t)}function ke(t){return(e={},document.cookie.split(";").forEach((function(t){var n=w(t.split("="),2),r=n[0],i=n[1];e[r.trim()]=i})),e)[t];var e}var xe="true";function Se(t,e,n){t?we(e,xe,n):we(e,"",-1)}function _e(){return(_e=r(m().mark((function t(e,n){var r,i,o;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null===(r=void 0===n.code?n.which:n.code)&&(r=null===n.charCode?n.keyCode:n.charCode),"Escape"!==r&&27!==r||!0!==e.getOption("exitOnEsc")){t.next=7;break}return t.next=5,e.exit();case 5:t.next=39;break;case 7:if("ArrowLeft"!==r&&37!==r){t.next=12;break}return t.next=10,de(e);case 10:t.next=39;break;case 12:if("ArrowRight"!==r&&39!==r){t.next=17;break}return t.next=15,fe(e);case 15:t.next=39;break;case 17:if("Enter"!==r&&"NumpadEnter"!==r&&13!==r){t.next=39;break}if(!(i=n.target||n.srcElement)||!i.className.match(Bt)){t.next=24;break}return t.next=22,de(e);case 22:t.next=38;break;case 24:if(!i||!i.className.match(Rt)){t.next=32;break}if(!e.isEnd()){t.next=28;break}return t.next=28,null===(o=e.callback("complete"))||void 0===o?void 0:o.call(e,e.getCurrentStep(),"skip");case 28:return t.next=30,e.exit();case 30:t.next=38;break;case 32:if(!i||!i.getAttribute(oe)){t.next=36;break}i.click(),t.next=38;break;case 36:return t.next=38,fe(e);case 38:n.preventDefault?n.preventDefault():n.returnValue=!1;case 39:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var Ce=function(t,e,n,r){Ht(t,e,n.element,"floating"===n.position?0:r)};function Oe(t,e){if(t){var n=function(t){var e=window.getComputedStyle(t),n="absolute"===e.position,r=/(auto|scroll)/;if("fixed"===e.position)return document.body;for(var i=t;i=i.parentElement;)if(e=window.getComputedStyle(i),(!n||"static"!==e.position)&&r.test(e.overflow+e.overflowY+e.overflowX))return i;return document.body}(e);n!==document.body&&(n.scrollTop=e.offsetTop-n.offsetTop)}}function Ee(t,e,n,r,i){var o;if("off"!==e&&(t&&(o="tooltip"===e?i.getBoundingClientRect():r.getBoundingClientRect(),!function(t){var e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom+80<=window.innerHeight&&e.right<=window.innerWidth}(r)))){var a=Tt().height;o.bottom-(o.bottom-o.top)<0||r.clientHeight>a?window.scrollBy(0,o.top-(a/2-o.height/2)-n):window.scrollBy(0,o.top-(a/2-o.height/2)+n)}}var Ae=["step","currentStep","steps","onBulletClick","bullets","buttons","nextLabel","onNextClick","prevLabel","onPrevClick","skipLabel","onSkipClick","buttonClass","nextToDone","doneLabel","hideNext","hidePrev","progress","progressBarAdditionalClass","stepNumbers","stepNumbersOfLabel","scrollToElement","scrollPadding","dontShowAgain","onDontShowAgainChange","dontShowAgainLabel","renderAsHtml"],Pe=yt.tags,Le=Pe.h1,Ne=Pe.div,je=Pe.input,He=Pe.label,Te=Pe.ul,Re=Pe.li,Be=Pe.a,De=function(t){var e=t.label,n=t.onClick,r=t.disabled,i=t.className;return Be({role:"button",tabIndex:0,ariaDisabled:null!=r&&r,onclick:n,className:null!=i?i:""},[e])},Ie=function(t){var e=t.steps,n=t.currentStep,r=t.buttonClass,i=t.nextToDone,o=t.doneLabel,a=t.hideNext,s=t.nextLabel,l=t.onNextClick,u=t.hidePrev,c=t.prevLabel,h=t.onPrevClick;return Ne({className:"introjs-tooltipbuttons"},e.length>1?function(t){var e=t.label,n=t.steps,r=t.currentStep,i=t.hidePrev,o=t.hideNext,a=t.onClick,s=t.buttonClass,l=0===r&&n.length>1,u=l&&!i,c=l&&i,h=(r===n.length-1||1===n.length)&&o;return De({label:e,onClick:a,disabled:u,className:function(){var t=[s,Bt];return h&&t.push(Ft),u&&t.push(Vt),c&&t.push("introjs-hidden"),t.filter(Boolean).join(" ")}})}({label:c,steps:e,currentStep:n,hidePrev:u,hideNext:a,onClick:h,buttonClass:r}):null,function(t){var e=t.steps,n=t.currentStep,r=t.nextLabel,i=t.doneLabel,o=t.hideNext,a=t.hidePrev,s=t.nextToDone,l=t.onClick,u=t.buttonClass,c=0===n&&e.length>1&&a,h=n===e.length-1||1===e.length,f=yt.derive((function(){return h&&!o&&!s})),p=yt.derive((function(){return h&&!o&&s})),d=De({label:p.val?i:r,onClick:l,className:function(){var t=[u,"introjs-nextbutton"];return p.val&&t.push(Dt),f.val&&t.push(Vt),c&&t.push(Ft),t.filter(Boolean).join(" ")}});return setTimeout((function(){d.focus()}),1),d}({currentStep:n,steps:e,doneLabel:o,nextLabel:s,onClick:l,hideNext:a,hidePrev:u,nextToDone:i,buttonClass:r}))},Ve=function(t){var e=t.step,n=t.currentStep,r=t.steps,i=t.onBulletClick,o=t.bullets,a=t.buttons,s=t.nextLabel,l=t.onNextClick,c=t.prevLabel,h=t.onPrevClick,f=t.skipLabel,p=t.onSkipClick,d=t.buttonClass,b=t.nextToDone,m=t.doneLabel,y=t.hideNext,w=t.hidePrev,k=t.progress,S=t.progressBarAdditionalClass,_=t.stepNumbers,C=t.stepNumbersOfLabel,O=t.scrollToElement,E=t.scrollPadding,A=t.dontShowAgain,P=t.onDontShowAgainChange,L=t.dontShowAgainLabel,N=t.renderAsHtml,j=g(t,Ae),H=[],T=e.title,R=e.intro,B=e.position;H.push(function(t){var e=t.title,n=t.skipLabel,r=t.onSkipClick;return Ne({className:"introjs-tooltip-header"},[Le({className:"introjs-tooltip-title"},e),De({className:Rt,label:n,onClick:r})])}({title:T,skipLabel:f,onSkipClick:p})),H.push(Qt({text:R,tooltipRenderAsHtml:N,className:"introjs-tooltiptext"})),A&&H.push(function(t){var e=t.dontShowAgainLabel,n=t.onDontShowAgainChange;return Ne({className:It},[je({type:"checkbox",id:It,name:It,onchange:function(t){n(t.target.checked)}}),He({for:It},e)])}({dontShowAgainLabel:L,onDontShowAgainChange:P})),o&&H.push(function(t){var e=t.step,n=t.steps,r=t.onBulletClick;return Ne({className:"introjs-bullets"},[Te({role:"tablist"},x(n.map((function(t){var n=t.step;return Re({role:"presentation"},[Be(u({role:"tab",className:function(){return"".concat(e.step===n?"active":"")},onclick:function(t){var e=t.target.getAttribute(oe);e&&r(parseInt(e,10))},innerHTML:" "},oe,n))])}))))])}({step:e,steps:r,onBulletClick:i})),k&&H.push(function(t){var e=t.steps,n=t.currentStep,r=t.progressBarAdditionalClass,i=(n+1)/e.length*100;return Ne({className:"introjs-progress"},[Ne({className:"".concat("introjs-progressbar"," ").concat(r||""),role:"progress","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":function(){return i.toString()},style:"width:".concat(i,"%;")})])}({steps:r,currentStep:n,progressBarAdditionalClass:S})),_&&H.push(function(t){var e=t.step,n=t.steps,r=t.stepNumbersOfLabel;return Ne({className:"introjs-helperNumberLayer"},["".concat(e.step," ").concat(r," ").concat(n.length)])}({step:e,steps:r,stepNumbersOfLabel:C})),a&&H.push(Ie({steps:r,currentStep:n,nextLabel:s,onNextClick:l,prevLabel:c,onPrevClick:h,buttonClass:d,nextToDone:b,doneLabel:m,hideNext:y,hidePrev:w}));var D=Kt(v(v({},j),{},{element:e.element,hintMode:!1,position:B}),H);return function(t){var e=t.step,n=t.tooltip,r=t.scrollToElement,i=t.scrollPadding;Oe(r,e.element),Ee(r,e.scrollTo,i,e.element,n)}({step:e,tooltip:D,scrollToElement:O,scrollPadding:E}),D},Fe=["targetElement","helperElementPadding"],ze=yt.tags.div,Ge=yt.tags.div,We=yt.tags.div,Je=yt.tags.div,Me=yt.tags.div,Ke=function(t){var e=t.tour,n=e.getCurrentStepSignal(),i=e.getRefreshesSignal(),o=e.getSteps(),a=function(t){var e=t.currentStep,n=t.steps,r=t.refreshes,i=t.targetElement,o=t.tourHighlightClass,a=t.overlayOpacity,s=t.helperLayerPadding,l=yt.derive((function(){return void 0!==e.val?n[e.val]:null})),u=Ge({className:function(){return function(t){var e=t.step,n=t.tourHighlightClass,r="introjs-helperLayer";return e.val&&"string"==typeof e.val.highlightClass&&(r+=" ".concat(e.val.highlightClass)),"string"==typeof n&&(r+=" ".concat(n)),r}({step:l,tourHighlightClass:o})},style:jt({"box-shadow":"0 0 1px 2px rgba(33, 33, 33, 0.8), rgba(33, 33, 33, ".concat(a.toString(),") 0 0 0 5000px")})});return yt.derive((function(){l.val&&void 0!==r.val&&Ce(i,u,l.val,s)})),u}({currentStep:n,steps:o,refreshes:i,targetElement:e.getTargetElement(),tourHighlightClass:e.getOption("highlightClass"),overlayOpacity:e.getOption("overlayOpacity"),helperLayerPadding:e.getOption("helperElementPadding")}),s=yt.state(0),l=0,u=Me({className:"introjs-tour",style:function(){return jt({opacity:"".concat(s.val)})}},a,(function(){if(void 0===n.val)return null;var t=yt.derive((function(){return void 0!==n.val?o[n.val]:null}));if(!t.val)return null;var a,s,u,c,h=function(t){var e=t.exitOnOverlayClick,n=t.onExitTour,i=Je({className:"introjs-overlay",style:jt({top:0,bottom:0,left:0,right:0,position:"fixed",cursor:e?"pointer":"auto"})});return e&&(i.onclick=r(m().mark((function t(){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:case"end":return t.stop()}}),t)})))),i}({exitOnOverlayClick:!0===e.getOption("exitOnOverlayClick"),onExitTour:(a=r(m().mark((function t(){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.exit());case 1:case"end":return t.stop()}}),t)}))),function(){return a.apply(this,arguments)})}),f=function(t){var e=t.targetElement,n=t.helperElementPadding,r=g(t,Fe),i=ze({className:"introjs-tooltipReferenceLayer"},Ve(r));return yt.derive((function(){null!=r.refreshes.val&&Ce(e,i,r.step,n)})),i}({step:t.val,targetElement:e.getTargetElement(),refreshes:i,helperElementPadding:e.getOption("helperElementPadding"),transitionDuration:l,positionPrecedence:e.getOption("positionPrecedence"),autoPosition:e.getOption("autoPosition"),showStepNumbers:e.getOption("showStepNumbers"),steps:e.getSteps(),currentStep:n.val,onBulletClick:function(t){e.goToStep(t)},bullets:e.getOption("showBullets"),buttons:e.getOption("showButtons"),nextLabel:e.getOption("nextLabel"),onNextClick:(c=r(m().mark((function t(n){var r;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.isLastStep()){t.next=5;break}return t.next=3,fe(e);case 3:t.next=10;break;case 5:if(!new RegExp(Dt,"gi").test(n.target.className)){t.next=10;break}return t.next=8,null===(r=e.callback("complete"))||void 0===r?void 0:r.call(e,e.getCurrentStep(),"done");case 8:return t.next=10,e.exit();case 10:case"end":return t.stop()}}),t)}))),function(t){return c.apply(this,arguments)}),prevLabel:e.getOption("prevLabel"),onPrevClick:(u=r(m().mark((function t(){var n;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(void 0!==(n=e.getCurrentStep())&&n>0)){t.next=4;break}return t.next=4,de(e);case 4:case"end":return t.stop()}}),t)}))),function(){return u.apply(this,arguments)}),skipLabel:e.getOption("skipLabel"),onSkipClick:(s=r(m().mark((function t(){var n,r;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.isLastStep()){t.next=3;break}return t.next=3,null===(r=e.callback("complete"))||void 0===r?void 0:r.call(e,e.getCurrentStep(),"skip");case 3:return t.next=5,null===(n=e.callback("skip"))||void 0===n?void 0:n.call(e,e.getCurrentStep());case 5:return t.next=7,e.exit();case 7:case"end":return t.stop()}}),t)}))),function(){return s.apply(this,arguments)}),buttonClass:e.getOption("buttonClass"),nextToDone:e.getOption("nextToDone"),doneLabel:e.getOption("doneLabel"),hideNext:e.getOption("hideNext"),hidePrev:e.getOption("hidePrev"),className:e.getOption("tooltipClass"),progress:e.getOption("showProgress"),progressBarAdditionalClass:e.getOption("progressBarAdditionalClass"),stepNumbers:e.getOption("showStepNumbers"),stepNumbersOfLabel:e.getOption("stepNumbersOfLabel"),scrollToElement:e.getOption("scrollToElement"),scrollPadding:e.getOption("scrollPadding"),dontShowAgain:e.getOption("dontShowAgain"),onDontShowAgainChange:function(t){e.setDontShowAgain(t)},dontShowAgainLabel:e.getOption("dontShowAgainLabel"),renderAsHtml:e.getOption("tooltipRenderAsHtml")}),p=t.val.disableInteraction?function(t){var e=t.currentStep,n=t.steps,r=t.refreshes,i=t.targetElement,o=t.helperElementPadding,a=yt.derive((function(){return void 0!==e.val?n[e.val]:null}));return function(){if(!a.val)return null;var t=We({className:"introjs-disableInteraction"});return yt.derive((function(){a.val&&null!=r.val&&Ce(i,t,a.val,o)})),t}}({currentStep:n,steps:e.getSteps(),refreshes:i,targetElement:e.getTargetElement(),helperElementPadding:e.getOption("helperElementPadding")}):null;return l=300,Me(h,f,p)}));return yt.derive((function(){void 0===n.val&&(s.val=0,setTimeout((function(){u.remove()}),250))})),setTimeout((function(){s.val=1}),1),u},Ye=yt.tags.div,Qe=function(){function t(e,n){i(this,t),u(this,"_steps",[]),u(this,"_currentStepSignal",yt.state(void 0)),u(this,"_refreshesSignal",yt.state(0)),u(this,"_root",void 0),u(this,"_direction",void 0),u(this,"_targetElement",void 0),u(this,"_options",void 0),u(this,"_floatingElement",void 0),u(this,"callbacks",{}),u(this,"_keyboardNavigationHandler",void 0),u(this,"_refreshOnResizeHandler",void 0),this._targetElement=W(e),this._options=n?T(this._options,n):{steps:[],isActive:!0,nextLabel:"Next",prevLabel:"Back",skipLabel:"×",doneLabel:"Done",hidePrev:!1,hideNext:!1,nextToDone:!0,tooltipPosition:"bottom",tooltipClass:"",group:"",highlightClass:"",exitOnEsc:!0,exitOnOverlayClick:!0,showStepNumbers:!1,stepNumbersOfLabel:"of",keyboardNavigation:!0,showButtons:!0,showBullets:!0,showProgress:!1,scrollToElement:!0,scrollTo:"element",scrollPadding:30,overlayOpacity:.5,autoPosition:!0,positionPrecedence:["bottom","top","right","left"],disableInteraction:!1,dontShowAgain:!1,dontShowAgainLabel:"Don't show this again",dontShowAgainCookie:"introjs-dontShowAgain",dontShowAgainCookieDays:365,helperElementPadding:10,buttonClass:"introjs-button",progressBarAdditionalClass:"",tooltipRenderAsHtml:!0}}var e,n,o,l,c,h;return a(t,[{key:"callback",value:function(t){var e=this.callbacks[t];if(R(e))return e}},{key:"goToStep",value:(h=r(m().mark((function t(e){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.setCurrentStep(e-2),t.next=3,fe(this);case 3:return t.abrupt("return",this);case 4:case"end":return t.stop()}}),t,this)}))),function(t){return h.apply(this,arguments)})},{key:"goToStepNumber",value:(c=r(m().mark((function t(e){var n;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=0;case 1:if(!(n=this._currentStepSignal.val?this._direction="forward":this._direction="backward",this._currentStepSignal.val=t,this}},{key:"incrementCurrentStep",value:function(){var t=this.getCurrentStep();return void 0===t?this.setCurrentStep(0):this.setCurrentStep(t+1),this}},{key:"decrementCurrentStep",value:function(){var t=this.getCurrentStep();return void 0!==t&&t>0&&this.setCurrentStep(t-1),this}},{key:"getDirection",value:function(){return this._direction}},{key:"nextStep",value:(l=r(m().mark((function t(){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fe(this);case 2:return t.abrupt("return",this);case 3:case"end":return t.stop()}}),t,this)}))),function(){return l.apply(this,arguments)})},{key:"previousStep",value:(o=r(m().mark((function t(){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,de(this);case 2:return t.abrupt("return",this);case 3:case"end":return t.stop()}}),t,this)}))),function(){return o.apply(this,arguments)})},{key:"isEnd",value:function(){var t=this.getCurrentStep();return void 0!==t&&t>=this._steps.length}},{key:"isLastStep",value:function(){return this.getCurrentStep()===this._steps.length-1}},{key:"getTargetElement",value:function(){return this._targetElement}},{key:"setOptions",value:function(t){return this._options=T(this._options,t),this}},{key:"setOption",value:function(t,e){return this._options=H(this._options,t,e),this}},{key:"getOption",value:function(t){return this._options[t]}},{key:"clone",value:function(){return new t(this._targetElement,this._options)}},{key:"isActive",value:function(){return(!this.getOption("dontShowAgain")||(t=this.getOption("dontShowAgainCookie"),""===(e=ke(t))||e!==xe))&&this.getOption("isActive");var t,e}},{key:"hasStarted",value:function(){return void 0!==this.getCurrentStep()}},{key:"setDontShowAgain",value:function(t){return Se(t,this.getOption("dontShowAgainCookie"),this.getOption("dontShowAgainCookieDays")),this}},{key:"enableKeyboardNavigation",value:function(){var t=this;return this.getOption("keyboardNavigation")&&(this._keyboardNavigationHandler=function(e){return function(t,e){return _e.apply(this,arguments)}(t,e)},G.on(window,"keydown",this._keyboardNavigationHandler,!0)),this}},{key:"disableKeyboardNavigation",value:function(){return this._keyboardNavigationHandler&&(G.off(window,"keydown",this._keyboardNavigationHandler,!0),this._keyboardNavigationHandler=void 0),this}},{key:"enableRefreshOnResize",value:function(){var t=this;this._refreshOnResizeHandler=function(e){return t.refresh()},G.on(window,"resize",this._refreshOnResizeHandler,!0)}},{key:"disableRefreshOnResize",value:function(){this._refreshOnResizeHandler&&(G.off(window,"resize",this._refreshOnResizeHandler,!0),this._refreshOnResizeHandler=void 0)}},{key:"appendFloatingElement",value:function(){var t,e,n;return this._floatingElement||(this._floatingElement=(t={currentStep:this.getCurrentStepSignal()},e=t.currentStep,n=Ye({className:"introjsFloatingElement"}),yt.derive((function(){void 0===e.val&&n.remove()})),n),yt.add(this.getTargetElement(),this._floatingElement)),this._floatingElement}},{key:"createRoot",value:function(){this._root||(this._root=Ke({tour:this}),yt.add(this.getTargetElement(),this._root))}},{key:"recreateRoot",value:function(){this._root&&(this._root.remove(),this._root=void 0,this.createRoot())}},{key:"start",value:(n=r(m().mark((function t(){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,be(this);case 2:if(!t.sent){t.next=6;break}this.createRoot(),this.enableKeyboardNavigation(),this.enableRefreshOnResize();case 6:return t.abrupt("return",this);case 7:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"exit",value:(e=r(m().mark((function t(e){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,me(this,null!=e&&e);case 2:if(!t.sent){t.next=5;break}this.disableKeyboardNavigation(),this.disableRefreshOnResize();case 5:return t.abrupt("return",this);case 6:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"refresh",value:function(t){return void 0===this.getCurrentStep()||(void 0!==this._refreshesSignal.val&&(this._refreshesSignal.val+=1),t&&(this.setSteps(ge(this)),this.recreateRoot())),this}},{key:"onbeforechange",value:function(t){return this.onBeforeChange(t)}},{key:"onBeforeChange",value:function(t){if(!R(t))throw new Error("Provided callback for onBeforeChange was not a function");return this.callbacks.beforeChange=t,this}},{key:"onchange",value:function(t){this.onChange(t)}},{key:"onChange",value:function(t){if(!R(t))throw new Error("Provided callback for onChange was not a function.");return this.callbacks.change=t,this}},{key:"onafterchange",value:function(t){this.onAfterChange(t)}},{key:"onAfterChange",value:function(t){if(!R(t))throw new Error("Provided callback for onAfterChange was not a function");return this.callbacks.afterChange=t,this}},{key:"oncomplete",value:function(t){return this.onComplete(t)}},{key:"onComplete",value:function(t){if(!R(t))throw new Error("Provided callback for oncomplete was not a function.");return this.callbacks.complete=t,this}},{key:"onstart",value:function(t){return this.onStart(t)}},{key:"onStart",value:function(t){if(!R(t))throw new Error("Provided callback for onstart was not a function.");return this.callbacks.start=t,this}},{key:"onexit",value:function(t){return this.onExit(t)}},{key:"onExit",value:function(t){if(!R(t))throw new Error("Provided callback for onexit was not a function.");return this.callbacks.exit=t,this}},{key:"onskip",value:function(t){return this.onSkip(t)}},{key:"onSkip",value:function(t){if(!R(t))throw new Error("Provided callback for onskip was not a function.");return this.callbacks.skip=t,this}},{key:"onbeforeexit",value:function(t){return this.onBeforeExit(t)}},{key:"onBeforeExit",value:function(t){if(!R(t))throw new Error("Provided callback for onbeforeexit was not a function.");return this.callbacks.beforeExit=t,this}}]),t}(),qe=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"addHints",value:function(){console.error("introJs().addHints() is deprecated, please use introJs.hint.addHints() instead.")}},{key:"addHint",value:function(){console.error("introJs().addHint() is deprecated, please use introJs.hint.addHint() instead.")}},{key:"removeHints",value:function(){console.error("introJs().removeHints() is deprecated, please use introJs.hint.removeHints() instead.")}}]),n}(Qe),Ue=function(t){return console.warn("introJs() is deprecated. Please use introJs.tour() or introJs.hint() instead."),new qe(t)};return Ue.tour=function(t){return new Qe(t)},Ue.hint=function(t){return new ie(t)},Ue.version="8.3.1",Ue})); //# sourceMappingURL=intro.min.js.map