37.chunk.js 31.2 KB
webpackJsonpecCom([37],{1314:function(t,e,n){"use strict";var i,o,r,s=n(30),l=function(t){return t&&t.__esModule?t:{default:t}}(s);!function(n){if("object"===(0,l.default)(e)&&"undefined"!==typeof t)t.exports=n(),t.exports.introJs=function(){return console.warn('Deprecated: please use require("intro.js") directly, instead of the introJs method of the function'),n().apply(this,arguments)};else{o=[],i=n,void 0!==(r="function"===typeof i?i.apply(e,o):i)&&(t.exports=r)}}(function(){function t(t){this._targetElement=t,this._introItems=[],this._options={nextLabel:"Next &rarr;",prevLabel:"&larr; Back",skipLabel:"Skip",doneLabel:"Done",hidePrev:!1,hideNext:!1,tooltipPosition:"bottom",tooltipClass:"",highlightClass:"",exitOnEsc:!0,exitOnOverlayClick:!0,showStepNumbers:!0,keyboardNavigation:!0,showButtons:!0,showBullets:!0,showProgress:!1,scrollToElement:!0,scrollTo:"element",scrollPadding:30,overlayOpacity:.8,positionPrecedence:["bottom","top","right","left"],disableInteraction:!1,helperElementPadding:10,hintPosition:"top-middle",hintButtonLabel:"Got it",hintAnimation:!0,buttonClass:"introjs-button"}}function e(t,e,r){var s=t.querySelectorAll("*[data-intro]"),l=[];if(this._options.steps)x(this._options.steps,function(t){var e=o(t);if(e.step=l.length+1,"string"===typeof e.element&&(e.element=document.querySelector(e.element)),"undefined"===typeof e.element||null===e.element){var n=document.querySelector(".introjsFloatingElement");null===n&&(n=document.createElement("div"),n.className="introjsFloatingElement",document.body.appendChild(n)),e.element=n,e.position="floating"}e.scrollTo=e.scrollTo||this._options.scrollTo,"undefined"===typeof e.disableInteraction&&(e.disableInteraction=this._options.disableInteraction),null!==e.element&&l.push(e)}.bind(this));else{var c,u=s.length;if(u<1)return!1;x(s,function(t){if((!e||t.getAttribute("data-intro-group")===e)&&"none"!==t.style.display){var n=parseInt(t.getAttribute("data-step"),10);c="undefined"!==typeof t.getAttribute("data-disable-interaction")?!!t.getAttribute("data-disable-interaction"):this._options.disableInteraction,n>0&&(l[n-1]={element:t,intro:t.getAttribute("data-intro"),step:parseInt(t.getAttribute("data-step"),10),tooltipClass:t.getAttribute("data-tooltipclass"),highlightClass:t.getAttribute("data-highlightclass"),position:t.getAttribute("data-position")||this._options.tooltipPosition,scrollTo:t.getAttribute("data-scrollto")||this._options.scrollTo,disableInteraction:c})}}.bind(this));var h=0;x(s,function(t){if((!e||t.getAttribute("data-intro-group")===e)&&null===t.getAttribute("data-step")){for(;;){if("undefined"===typeof l[h])break;h++}c="undefined"!==typeof t.getAttribute("data-disable-interaction")?!!t.getAttribute("data-disable-interaction"):this._options.disableInteraction,l[h]={element:t,intro:t.getAttribute("data-intro"),step:h+1,tooltipClass:t.getAttribute("data-tooltipclass"),highlightClass:t.getAttribute("data-highlightclass"),position:t.getAttribute("data-position")||this._options.tooltipPosition,scrollTo:t.getAttribute("data-scrollto")||this._options.scrollTo,disableInteraction:c}}}.bind(this))}for(var d=[],p=0;p<l.length;p++)l[p]&&d.push(l[p]);l=d,l.sort(function(t,e){return t.step-e.step}),this._introItems=l;var f=!0;return f=!1===r?r:f,f&&T.call(this,t)&&(a.call(this),this._options.keyboardNavigation&&K.on(window,"keydown",i,this,!0),K.on(window,"resize",n,this,!0)),!1}function n(){this.refresh.call(this)}function i(t){var e=null===t.code?t.which:t.code;if(null===e&&(e=null===t.charCode?t.keyCode:t.charCode),"Escape"!==e&&27!==e||!0!==this._options.exitOnEsc){if("ArrowLeft"===e||37===e)c.call(this);else if("ArrowRight"===e||39===e)a.call(this);else if("Enter"===e||13===e){var n=t.target||t.srcElement;n&&n.className.match("introjs-prevbutton")?c.call(this):n&&n.className.match("introjs-skipbutton")?(this._introItems.length-1===this._currentStep&&"function"===typeof this._introCompleteCallback&&this._introCompleteCallback.call(this),h.call(this,this._targetElement)):n&&n.getAttribute("data-stepnumber")?n.click():a.call(this),t.preventDefault?t.preventDefault():t.returnValue=!1}}else h.call(this,this._targetElement)}function o(t){if(null===t||"object"!==("undefined"===typeof t?"undefined":(0,l.default)(t))||"undefined"!==typeof t.nodeType)return t;var e={};for(var n in t)"undefined"!==typeof window.jQuery&&t[n]instanceof window.jQuery?e[n]=t[n]:e[n]=o(t[n]);return e}function r(t){this._currentStep=t-2,"undefined"!==typeof this._introItems&&a.call(this)}function s(t){this._currentStepNumber=t,"undefined"!==typeof this._introItems&&a.call(this)}function a(){this._direction="forward","undefined"!==typeof this._currentStepNumber&&x(this._introItems,function(t,e){t.step===this._currentStepNumber&&(this._currentStep=e-1,this._currentStepNumber=void 0)}.bind(this)),"undefined"===typeof this._currentStep?this._currentStep=0:++this._currentStep;var t=this._introItems[this._currentStep],e=!0;return"undefined"!==typeof this._introBeforeChangeCallback&&(e=this._introBeforeChangeCallback.call(this,t.element)),!1===e?(--this._currentStep,!1):this._introItems.length<=this._currentStep?("function"===typeof this._introCompleteCallback&&this._introCompleteCallback.call(this),void h.call(this,this._targetElement)):void w.call(this,t)}function c(){if(this._direction="backward",0===this._currentStep)return!1;--this._currentStep;var t=this._introItems[this._currentStep],e=!0;if("undefined"!==typeof this._introBeforeChangeCallback&&(e=this._introBeforeChangeCallback.call(this,t.element)),!1===e)return++this._currentStep,!1;w.call(this,t)}function u(){if(y.call(this,document.querySelector(".introjs-helperLayer")),y.call(this,document.querySelector(".introjs-tooltipReferenceLayer")),y.call(this,document.querySelector(".introjs-disableInteraction")),void 0!==this._currentStep&&null!==this._currentStep){var t=document.querySelector(".introjs-helperNumberLayer"),e=document.querySelector(".introjs-arrow"),n=document.querySelector(".introjs-tooltip");d.call(this,this._introItems[this._currentStep].element,n,e,t)}return B.call(this),this}function h(t,e){var o=!0;if(void 0!==this._introBeforeExitCallback&&(o=this._introBeforeExitCallback.call(this)),e||!1!==o){var r=t.querySelectorAll(".introjs-overlay");r&&r.length&&x(r,function(t){t.style.opacity=0,window.setTimeout(function(){this.parentNode&&this.parentNode.removeChild(this)}.bind(t),500)}.bind(this));var s=t.querySelector(".introjs-helperLayer");s&&s.parentNode.removeChild(s);var l=t.querySelector(".introjs-tooltipReferenceLayer");l&&l.parentNode.removeChild(l);var a=t.querySelector(".introjs-disableInteraction");a&&a.parentNode.removeChild(a);var c=document.querySelector(".introjsFloatingElement");c&&c.parentNode.removeChild(c),k();x(document.querySelectorAll(".introjs-fixParent"),function(t){E(t,/introjs-fixParent/g)}),K.off(window,"keydown",i,this,!0),K.off(window,"resize",n,this,!0),void 0!==this._introExitCallback&&this._introExitCallback.call(this),this._currentStep=void 0}}function d(t,e,n,i,o){var r,s,l,a,c,u="";if(o=o||!1,e.style.top=null,e.style.right=null,e.style.bottom=null,e.style.left=null,e.style.marginLeft=null,e.style.marginTop=null,n.style.display="inherit","undefined"!==typeof i&&null!==i&&(i.style.top=null,i.style.left=null),this._introItems[this._currentStep]){r=this._introItems[this._currentStep],u="string"===typeof r.tooltipClass?r.tooltipClass:this._options.tooltipClass,e.className=("introjs-tooltip "+u).replace(/^\s+|\s+$/g,""),e.setAttribute("role","dialog"),c=this._introItems[this._currentStep].position,"floating"!==c&&(c=m.call(this,t,e,c));var h;switch(l=J(t),s=J(e),a=L(),S(e,"introjs-"+c),c){case"top-right-aligned":n.className="introjs-arrow bottom-right";var d=0;f(l,d,s,e),e.style.bottom=l.height+20+"px";break;case"top-middle-aligned":n.className="introjs-arrow bottom-middle";var b=l.width/2-s.width/2;o&&(b+=5),f(l,b,s,e)&&(e.style.right=null,p(l,b,s,a,e)),e.style.bottom=l.height+20+"px";break;case"top-left-aligned":case"top":n.className="introjs-arrow bottom",h=o?0:15,p(l,h,s,a,e),e.style.bottom=l.height+20+"px";break;case"right":e.style.left=l.width+20+"px",l.top+s.height>a.height?(n.className="introjs-arrow left-bottom",e.style.top="-"+(s.height-l.height-20)+"px"):n.className="introjs-arrow left";break;case"left":o||!0!==this._options.showStepNumbers||(e.style.top="15px"),l.top+s.height>a.height?(e.style.top="-"+(s.height-l.height-20)+"px",n.className="introjs-arrow right-bottom"):n.className="introjs-arrow right",e.style.right=l.width+20+"px";break;case"floating":n.style.display="none",e.style.left="50%",e.style.top="50%",e.style.marginLeft="-"+s.width/2+"px",e.style.marginTop="-"+s.height/2+"px","undefined"!==typeof i&&null!==i&&(i.style.left="-"+(s.width/2+18)+"px",i.style.top="-"+(s.height/2+18)+"px");break;case"bottom-right-aligned":n.className="introjs-arrow top-right",d=0,f(l,d,s,e),e.style.top=l.height+20+"px";break;case"bottom-middle-aligned":n.className="introjs-arrow top-middle",b=l.width/2-s.width/2,o&&(b+=5),f(l,b,s,e)&&(e.style.right=null,p(l,b,s,a,e)),e.style.top=l.height+20+"px";break;default:n.className="introjs-arrow top",h=0,p(l,h,s,a,e),e.style.top=l.height+20+"px"}}}function p(t,e,n,i,o){return t.left+e+n.width>i.width?(o.style.left=i.width-n.width-t.left+"px",!1):(o.style.left=e+"px",!0)}function f(t,e,n,i){return t.left+t.width-e-n.width<0?(i.style.left=-t.left+"px",!1):(i.style.right=e+"px",!0)}function m(t,e,n){var i=this._options.positionPrecedence.slice(),o=L(),r=J(e).height+10,s=J(e).width+20,l=t.getBoundingClientRect(),a="floating";l.bottom+r+r>o.height&&g(i,"bottom"),l.top-r<0&&g(i,"top"),l.right+s>o.width&&g(i,"right"),l.left-s<0&&g(i,"left");var c=function(t){var e=t.indexOf("-");return-1!==e?t.substr(e):""}(n||"");return n&&(n=n.split("-")[0]),i.length&&(a="auto"!==n&&i.indexOf(n)>-1?n:i[0]),-1!==["top","bottom"].indexOf(a)&&(a+=b(l.left,s,o,c)),a}function b(t,e,n,i){var o=e/2,r=Math.min(n.width,window.screen.width),s=["-left-aligned","-middle-aligned","-right-aligned"];return r-t<e&&g(s,"-left-aligned"),(t<o||r-t<o)&&g(s,"-middle-aligned"),t<e&&g(s,"-right-aligned"),s.length?-1!==s.indexOf(i)?i:s[0]:"-middle-aligned"}function g(t,e){t.indexOf(e)>-1&&t.splice(t.indexOf(e),1)}function y(t){if(t){if(!this._introItems[this._currentStep])return;var e=this._introItems[this._currentStep],n=J(e.element),i=this._options.helperElementPadding;A(e.element)?S(t,"introjs-fixedTooltip"):E(t,"introjs-fixedTooltip"),"floating"===e.position&&(i=0),t.style.cssText="width: "+(n.width+i)+"px; height:"+(n.height+i)+"px; top:"+(n.top-i/2)+"px;left: "+(n.left-i/2)+"px;"}}function v(){var t=document.querySelector(".introjs-disableInteraction");null===t&&(t=document.createElement("div"),t.className="introjs-disableInteraction",this._targetElement.appendChild(t)),y.call(this,t)}function _(t){t.setAttribute("role","button"),t.tabIndex=0}function w(t){"undefined"!==typeof this._introChangeCallback&&this._introChangeCallback.call(this,t.element);var e,n,i,o,r=this,s=document.querySelector(".introjs-helperLayer"),l=document.querySelector(".introjs-tooltipReferenceLayer"),u="introjs-helperLayer";if("string"===typeof t.highlightClass&&(u+=" "+t.highlightClass),"string"===typeof this._options.highlightClass&&(u+=" "+this._options.highlightClass),null!==s){var p=l.querySelector(".introjs-helperNumberLayer"),f=l.querySelector(".introjs-tooltiptext"),m=l.querySelector(".introjs-arrow"),b=l.querySelector(".introjs-tooltip");if(i=l.querySelector(".introjs-skipbutton"),n=l.querySelector(".introjs-prevbutton"),e=l.querySelector(".introjs-nextbutton"),s.className=u,b.style.opacity=0,b.style.display="none",null!==p){var g=this._introItems[t.step-2>=0?t.step-2:0];(null!==g&&"forward"===this._direction&&"floating"===g.position||"backward"===this._direction&&"floating"===t.position)&&(p.style.opacity=0)}o=$(t.element),o!==document.body&&Q(o,t.element),y.call(r,s),y.call(r,l);x(document.querySelectorAll(".introjs-fixParent"),function(t){E(t,/introjs-fixParent/g)}),k(),r._lastShowElementTimer&&window.clearTimeout(r._lastShowElementTimer),r._lastShowElementTimer=window.setTimeout(function(){null!==p&&(p.innerHTML=t.step),f.innerHTML=t.intro,b.style.display="block",d.call(r,t.element,b,m,p),r._options.showBullets&&(l.querySelector(".introjs-bullets li > a.active").className="",l.querySelector('.introjs-bullets li > a[data-stepnumber="'+t.step+'"]').className="active"),l.querySelector(".introjs-progress .introjs-progressbar").style.cssText="width:"+X.call(r)+"%;",l.querySelector(".introjs-progress .introjs-progressbar").setAttribute("aria-valuenow",X.call(r)),b.style.opacity=1,p&&(p.style.opacity=1),"undefined"!==typeof i&&null!==i&&/introjs-donebutton/gi.test(i.className)?i.focus():"undefined"!==typeof e&&null!==e&&e.focus(),C.call(r,t.scrollTo,t,f)},350)}else{var w=document.createElement("div"),N=document.createElement("div"),A=document.createElement("div"),L=document.createElement("div"),I=document.createElement("div"),T=document.createElement("div"),P=document.createElement("div"),q=document.createElement("div");w.className=u,N.className="introjs-tooltipReferenceLayer",o=$(t.element),o!==document.body&&Q(o,t.element),y.call(r,w),y.call(r,N),this._targetElement.appendChild(w),this._targetElement.appendChild(N),A.className="introjs-arrow",I.className="introjs-tooltiptext",I.innerHTML=t.intro,T.className="introjs-bullets",!1===this._options.showBullets&&(T.style.display="none");var B=document.createElement("ul");B.setAttribute("role","tablist");var H=function(){r.goToStep(this.getAttribute("data-stepnumber"))};x(this._introItems,function(e,n){var i=document.createElement("li"),o=document.createElement("a");i.setAttribute("role","presentation"),o.setAttribute("role","tab"),o.onclick=H,n===t.step-1&&(o.className="active"),_(o),o.innerHTML="&nbsp;",o.setAttribute("data-stepnumber",e.step),i.appendChild(o),B.appendChild(i)}),T.appendChild(B),P.className="introjs-progress",!1===this._options.showProgress&&(P.style.display="none");var O=document.createElement("div");O.className="introjs-progressbar",O.setAttribute("role","progress"),O.setAttribute("aria-valuemin",0),O.setAttribute("aria-valuemax",100),O.setAttribute("aria-valuenow",X.call(this)),O.style.cssText="width:"+X.call(this)+"%;",P.appendChild(O),q.className="introjs-tooltipbuttons",!1===this._options.showButtons&&(q.style.display="none"),L.className="introjs-tooltip",L.appendChild(I),L.appendChild(T),L.appendChild(P);var M=document.createElement("span");!0===this._options.showStepNumbers&&(M.className="introjs-helperNumberLayer",M.innerHTML=t.step,N.appendChild(M)),L.appendChild(A),N.appendChild(L),e=document.createElement("a"),e.onclick=function(){var t=!0;"function"===typeof r._introNextButtonClick&&(t=r._introNextButtonClick(r._currentStep+1),t=void 0===t||t),t&&r._introItems.length-1!==r._currentStep&&a.call(r)},_(e),e.innerHTML=this._options.nextLabel,n=document.createElement("a"),n.onclick=function(){var t=!0;"function"===typeof r._introPrevButtonClick&&(t=r._introPrevButtonClick(r._currentStep+1),t=void 0===t||t),t&&0!==r._currentStep&&c.call(r)},_(n),n.innerHTML=this._options.prevLabel,i=document.createElement("a"),i.className=this._options.buttonClass+" introjs-skipbutton ",_(i),i.innerHTML=this._options.skipLabel,i.onclick=function(){r._introItems.length-1===r._currentStep&&"function"===typeof r._introCompleteCallback&&r._introCompleteCallback.call(r),r._introItems.length-1!==r._currentStep&&"function"===typeof r._introExitCallback&&r._introExitCallback.call(r),"function"===typeof r._introSkipCallback&&r._introSkipCallback.call(r),h.call(r,r._targetElement)},q.appendChild(i),this._introItems.length>1&&(q.appendChild(n),q.appendChild(e)),L.appendChild(q),d.call(r,t.element,L,A,M),C.call(this,t.scrollTo,t,L)}var R=r._targetElement.querySelector(".introjs-disableInteraction");R&&R.parentNode.removeChild(R),t.disableInteraction&&v.call(r),0===this._currentStep&&this._introItems.length>1?("undefined"!==typeof i&&null!==i&&(i.className=this._options.buttonClass+" introjs-skipbutton"),"undefined"!==typeof e&&null!==e&&(e.className=this._options.buttonClass+" introjs-nextbutton"),!0===this._options.hidePrev?("undefined"!==typeof n&&null!==n&&(n.className=this._options.buttonClass+" introjs-prevbutton introjs-hidden"),"undefined"!==typeof e&&null!==e&&S(e,"introjs-fullbutton")):"undefined"!==typeof n&&null!==n&&(n.className=this._options.buttonClass+" introjs-prevbutton introjs-disabled"),"undefined"!==typeof i&&null!==i&&(i.innerHTML=this._options.skipLabel)):this._introItems.length-1===this._currentStep||1===this._introItems.length?("undefined"!==typeof i&&null!==i&&(i.innerHTML=this._options.doneLabel,S(i,"introjs-donebutton")),"undefined"!==typeof n&&null!==n&&(n.className=this._options.buttonClass+" introjs-prevbutton"),!0===this._options.hideNext?("undefined"!==typeof e&&null!==e&&(e.className=this._options.buttonClass+" introjs-nextbutton introjs-hidden"),"undefined"!==typeof n&&null!==n&&S(n,"introjs-fullbutton")):"undefined"!==typeof e&&null!==e&&(e.className=this._options.buttonClass+" introjs-nextbutton introjs-disabled")):("undefined"!==typeof i&&null!==i&&(i.className=this._options.buttonClass+" introjs-skipbutton"),"undefined"!==typeof n&&null!==n&&(n.className=this._options.buttonClass+" introjs-prevbutton"),"undefined"!==typeof e&&null!==e&&(e.className=this._options.buttonClass+" introjs-nextbutton"),"undefined"!==typeof i&&null!==i&&(i.innerHTML=this._options.skipLabel)),n.setAttribute("role","button"),e.setAttribute("role","button"),i.setAttribute("role","button"),"undefined"!==typeof e&&null!==e&&e.focus(),j(t),"undefined"!==typeof this._introAfterChangeCallback&&this._introAfterChangeCallback.call(this,t.element)}function C(t,e,n){if("off"!==t){var i;if(this._options.scrollToElement&&(i="tooltip"===t?n.getBoundingClientRect():e.element.getBoundingClientRect(),!I(e.element))){var o=L().height;i.bottom-(i.bottom-i.top)<0||e.element.clientHeight>o?window.scrollBy(0,i.top-(o/2-i.height/2)-this._options.scrollPadding):window.scrollBy(0,i.top-(o/2-i.height/2)+this._options.scrollPadding)}}}function k(){x(document.querySelectorAll(".introjs-showElement"),function(t){E(t,/introjs-[a-zA-Z]+/g)})}function j(t){var e;if(t.element instanceof SVGElement)for(e=t.element.parentNode;null!==t.element.parentNode&&e.tagName&&"body"!==e.tagName.toLowerCase();)"svg"===e.tagName.toLowerCase()&&S(e,"introjs-showElement introjs-relativePosition"),e=e.parentNode;S(t.element,"introjs-showElement");var n=N(t.element,"position");for("absolute"!==n&&"relative"!==n&&"fixed"!==n&&S(t.element,"introjs-relativePosition"),e=t.element.parentNode;null!==e&&e.tagName&&"body"!==e.tagName.toLowerCase();){var i=N(e,"z-index"),o=parseFloat(N(e,"opacity")),r=N(e,"transform")||N(e,"-webkit-transform")||N(e,"-moz-transform")||N(e,"-ms-transform")||N(e,"-o-transform");(/[0-9]+/.test(i)||o<1||"none"!==r&&void 0!==r)&&S(e,"introjs-fixParent"),e=e.parentNode}}function x(t,e,n){if(t)for(var i=0,o=t.length;i<o;i++)e(t[i],i);"function"===typeof n&&n()}function S(t,e){if(t instanceof SVGElement){var n=t.getAttribute("class")||"";t.setAttribute("class",n+" "+e)}else if(void 0!==t.classList){var i=e.split(" ");x(i,function(e){t.classList.add(e)})}else t.className.match(e)||(t.className+=" "+e)}function E(t,e){if(t instanceof SVGElement){var n=t.getAttribute("class")||"";t.setAttribute("class",n.replace(e,"").replace(/^\s+|\s+$/g,""))}else t.className=t.className.replace(e,"").replace(/^\s+|\s+$/g,"")}function N(t,e){var n="";return t.currentStyle?n=t.currentStyle[e]:document.defaultView&&document.defaultView.getComputedStyle&&(n=document.defaultView.getComputedStyle(t,null).getPropertyValue(e)),n&&n.toLowerCase?n.toLowerCase():n}function A(t){var e=t.parentNode;return!(!e||"HTML"===e.nodeName)&&("fixed"===N(t,"position")||A(e))}function L(){if(void 0!==window.innerWidth)return{width:window.innerWidth,height:window.innerHeight};var t=document.documentElement;return{width:t.clientWidth,height:t.clientHeight}}function I(t){var e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom+80<=window.innerHeight&&e.right<=window.innerWidth}function T(t){var e=document.createElement("div"),n="",i=this;if(e.className="introjs-overlay",t.tagName&&"body"!==t.tagName.toLowerCase()){var o=J(t);o&&(n+="width: "+o.width+"px; height:"+o.height+"px; top:"+o.top+"px;left: "+o.left+"px;",e.style.cssText=n)}else n+="top: 0;bottom: 0; left: 0;right: 0;position: fixed;",e.style.cssText=n;return t.appendChild(e),e.onclick=function(){!0===i._options.exitOnOverlayClick&&h.call(i,t)},window.setTimeout(function(){n+="opacity: "+i._options.overlayOpacity.toString()+";",e.style.cssText=n},10),!0}function P(){var t=document.querySelector(".introjs-hintReference");if(t){var e=t.getAttribute("data-step");return t.parentNode.removeChild(t),e}}function q(t){if(this._introItems=[],this._options.hints)x(this._options.hints,function(t){var e=o(t);"string"===typeof e.element&&(e.element=document.querySelector(e.element)),e.hintPosition=e.hintPosition||this._options.hintPosition,e.hintAnimation=e.hintAnimation||this._options.hintAnimation,null!==e.element&&this._introItems.push(e)}.bind(this));else{var e=t.querySelectorAll("*[data-hint]");if(!e||!e.length)return!1;x(e,function(t){var e=t.getAttribute("data-hintanimation");e=e?"true"===e:this._options.hintAnimation,this._introItems.push({element:t,hint:t.getAttribute("data-hint"),hintPosition:t.getAttribute("data-hintposition")||this._options.hintPosition,hintAnimation:e,tooltipClass:t.getAttribute("data-tooltipclass"),position:t.getAttribute("data-position")||this._options.tooltipPosition})}.bind(this))}W.call(this),K.on(document,"click",P,this,!1),K.on(window,"resize",B,this,!0)}function B(){x(this._introItems,function(t){"undefined"!==typeof t.targetElement&&F.call(this,t.hintPosition,t.element,t.targetElement)}.bind(this))}function H(t){var e=document.querySelector(".introjs-hints");return e?e.querySelectorAll(t):[]}function O(t){var e=H('.introjs-hint[data-step="'+t+'"]')[0];P.call(this),e&&S(e,"introjs-hidehint"),"undefined"!==typeof this._hintCloseCallback&&this._hintCloseCallback.call(this,t)}function M(){x(H(".introjs-hint"),function(t){O.call(this,t.getAttribute("data-step"))}.bind(this))}function R(){var t=H(".introjs-hint");t&&t.length?x(t,function(t){V.call(this,t.getAttribute("data-step"))}.bind(this)):q.call(this,this._targetElement)}function V(t){var e=H('.introjs-hint[data-step="'+t+'"]')[0];e&&E(e,/introjs-hidehint/g)}function z(){x(H(".introjs-hint"),function(t){D.call(this,t.getAttribute("data-step"))}.bind(this))}function D(t){var e=H('.introjs-hint[data-step="'+t+'"]')[0];e&&e.parentNode.removeChild(e)}function W(){var t=this,e=document.querySelector(".introjs-hints");null===e&&(e=document.createElement("div"),e.className="introjs-hints");var n=function(e){return function(n){var i=n||window.event;i.stopPropagation&&i.stopPropagation(),null!==i.cancelBubble&&(i.cancelBubble=!0),G.call(t,e)}};x(this._introItems,function(t,i){if(!document.querySelector('.introjs-hint[data-step="'+i+'"]')){var o=document.createElement("a");_(o),o.onclick=n(i),o.className="introjs-hint",t.hintAnimation||S(o,"introjs-hint-no-anim"),A(t.element)&&S(o,"introjs-fixedhint");var r=document.createElement("div");r.className="introjs-hint-dot";var s=document.createElement("div");s.className="introjs-hint-pulse",o.appendChild(r),o.appendChild(s),o.setAttribute("data-step",i),t.targetElement=t.element,t.element=o,F.call(this,t.hintPosition,o,t.targetElement),e.appendChild(o)}}.bind(this)),document.body.appendChild(e),"undefined"!==typeof this._hintsAddedCallback&&this._hintsAddedCallback.call(this)}function F(t,e,n){var i=J.call(this,n);switch(t){default:case"top-left":e.style.left=i.left+"px",e.style.top=i.top+"px";break;case"top-right":e.style.left=i.left+i.width-20+"px",e.style.top=i.top+"px";break;case"bottom-left":e.style.left=i.left+"px",e.style.top=i.top+i.height-20+"px";break;case"bottom-right":e.style.left=i.left+i.width-20+"px",e.style.top=i.top+i.height-20+"px";break;case"middle-left":e.style.left=i.left+"px",e.style.top=i.top+(i.height-20)/2+"px";break;case"middle-right":e.style.left=i.left+i.width-20+"px",e.style.top=i.top+(i.height-20)/2+"px";break;case"middle-middle":e.style.left=i.left+(i.width-20)/2+"px",e.style.top=i.top+(i.height-20)/2+"px";break;case"bottom-middle":e.style.left=i.left+(i.width-20)/2+"px",e.style.top=i.top+i.height-20+"px";break;case"top-middle":e.style.left=i.left+(i.width-20)/2+"px",e.style.top=i.top+"px"}}function G(t){var e=document.querySelector('.introjs-hint[data-step="'+t+'"]'),n=this._introItems[t];"undefined"!==typeof this._hintClickCallback&&this._hintClickCallback.call(this,e,n,t);var i=P.call(this);if(parseInt(i,10)!==t){var o=document.createElement("div"),r=document.createElement("div"),s=document.createElement("div"),l=document.createElement("div");o.className="introjs-tooltip",o.onclick=function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},r.className="introjs-tooltiptext";var a=document.createElement("p");a.innerHTML=n.hint;var c=document.createElement("a");c.className=this._options.buttonClass,c.setAttribute("role","button"),c.innerHTML=this._options.hintButtonLabel,c.onclick=O.bind(this,t),r.appendChild(a),r.appendChild(c),s.className="introjs-arrow",o.appendChild(s),o.appendChild(r),this._currentStep=e.getAttribute("data-step"),l.className="introjs-tooltipReferenceLayer introjs-hintReference",l.setAttribute("data-step",e.getAttribute("data-step")),y.call(this,l),l.appendChild(o),document.body.appendChild(l),d.call(this,e,o,s,null,!0)}}function J(t){var e=document.body,n=document.documentElement,i=window.pageYOffset||n.scrollTop||e.scrollTop,o=window.pageXOffset||n.scrollLeft||e.scrollLeft,r=t.getBoundingClientRect();return{top:r.top+i,width:r.width,height:r.height,left:r.left+o}}function $(t){var e=window.getComputedStyle(t),n="absolute"===e.position,i=/(auto|scroll)/;if("fixed"===e.position)return document.body;for(var o=t;o=o.parentElement;)if(e=window.getComputedStyle(o),(!n||"static"!==e.position)&&i.test(e.overflow+e.overflowY+e.overflowX))return o;return document.body}function Q(t,e){t.scrollTop=e.offsetTop-t.offsetTop}function X(){return parseInt(this._currentStep+1,10)/this._introItems.length*100}function Y(t,e){var n,i={};for(n in t)i[n]=t[n];for(n in e)i[n]=e[n];return i}var Z=function(){var t={};return function(e,n){return n=n||"introjs-stamp",t[n]=t[n]||0,void 0===e[n]&&(e[n]=t[n]++),e[n]}}(),K=function(){function t(){var t="introjs_event";this._id=function(t,e,n,i){return e+Z(n)+(i?"_"+Z(i):"")},this.on=function(e,n,i,o,r){var s=this._id.apply(this,arguments),l=function(t){return i.call(o||e,t||window.event)};"addEventListener"in e?e.addEventListener(n,l,r):"attachEvent"in e&&e.attachEvent("on"+n,l),e[t]=e[t]||{},e[t][s]=l},this.off=function(e,n,i,o,r){var s=this._id.apply(this,arguments),l=e[t]&&e[t][s];l&&("removeEventListener"in e?e.removeEventListener(n,l,r):"detachEvent"in e&&e.detachEvent("on"+n,l),e[t][s]=null)}}return new t}(),U=function e(n){var i;if("object"===("undefined"===typeof n?"undefined":(0,l.default)(n)))i=new t(n);else if("string"===typeof n){var o=document.querySelector(n);if(!o)throw new Error("There is no element with given selector.");i=new t(o)}else i=new t(document.body);return e.instances[Z(i,"introjs-instance")]=i,i};return U.version="2.9.3",U.instances={},U.fn=t.prototype={clone:function(){return new t(this)},setOption:function(t,e){return this._options[t]=e,this},setOptions:function(t){return this._options=Y(this._options,t),this},start:function(t){return e.call(this,this._targetElement,t),this},goToStep:function(t){return!e.call(this,this._targetElement,void 0,!1)&&r.call(this,t),this},addStep:function(t){return this._options.steps||(this._options.steps=[]),this._options.steps.push(t),this},addSteps:function(t){if(t.length){for(var e=0;e<t.length;e++)this.addStep(t[e]);return this}},goToStepNumber:function(t){return s.call(this,t),this},nextStep:function(){return!e.call(this,this._targetElement,void 0,!1)&&a.call(this),this},previousStep:function(){return!e.call(this,this._targetElement,void 0,!1)&&c.call(this),this},exit:function(t){return h.call(this,this._targetElement,t),this},refresh:function(){return u.call(this),this},onprevbuttonclick:function(t){if("function"!==typeof t)throw new Error("Provided callback for onpreviousbuttonclick was not a function");return this._introPrevButtonClick=t,this},onnextbuttonclick:function(t){if("function"!==typeof t)throw new Error("Provided callback for onnextbuttonclick was not a function");return this._introNextButtonClick=t,this},onbeforechange:function(t){if("function"!==typeof t)throw new Error("Provided callback for onbeforechange was not a function");return this._introBeforeChangeCallback=t,this},onchange:function(t){if("function"!==typeof t)throw new Error("Provided callback for onchange was not a function.");return this._introChangeCallback=t,this},onafterchange:function(t){if("function"!==typeof t)throw new Error("Provided callback for onafterchange was not a function");return this._introAfterChangeCallback=t,this},oncomplete:function(t){if("function"!==typeof t)throw new Error("Provided callback for oncomplete was not a function.");return this._introCompleteCallback=t,this},onhintsadded:function(t){if("function"!==typeof t)throw new Error("Provided callback for onhintsadded was not a function.");return this._hintsAddedCallback=t,this},onhintclick:function(t){if("function"!==typeof t)throw new Error("Provided callback for onhintclick was not a function.");return this._hintClickCallback=t,this},onhintclose:function(t){if("function"!==typeof t)throw new Error("Provided callback for onhintclose was not a function.");return this._hintCloseCallback=t,this},onexit:function(t){if("function"!==typeof t)throw new Error("Provided callback for onexit was not a function.");return this._introExitCallback=t,this},onskip:function(t){if("function"!==typeof t)throw new Error("Provided callback for onskip was not a function.");return this._introSkipCallback=t,this},onbeforeexit:function(t){if("function"!==typeof t)throw new Error("Provided callback for onbeforeexit was not a function.");return this._introBeforeExitCallback=t,this},addHints:function(){return q.call(this,this._targetElement),this},hideHint:function(t){return O.call(this,t),this},hideHints:function(){return M.call(this),this},showHint:function(t){return V.call(this,t),this},showHints:function(){return R.call(this),this},removeHints:function(){return z.call(this),this},removeHint:function(t){return D.call(this,t),this},showHintDialog:function(t){return G.call(this,t),this}},U})},977:function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(6),r=i(o),s=n(1),l=i(s),a=n(3),c=i(a),u=n(4),h=i(u),d=n(5),p=i(d),f=n(9),m=i(f),b=n(1314),g=i(b),y=m.default.getLabel,v=function(t){function e(){var t,n,i,o;(0,l.default)(this,e);for(var s=arguments.length,a=Array(s),c=0;c<s;c++)a[c]=arguments[c];return n=i=(0,h.default)(this,(t=e.__proto__||(0,r.default)(e)).call.apply(t,[this].concat(a))),i.getIntro=function(){return i.intro},i.initIntro=function(t){var e=i.props.onReady;i.intro=(0,g.default)(t),i.intro.setOptions({overlayOpacity:.7,showBullets:!1,nextLabel:y("1402","下一步"),prevLabel:y("1876 ","上一步"),skipLabel:y("382972","跳过"),doneLabel:y("383773","知道了"),showStepNumbers:!1,tooltipClass:"wea-intro-tooltip",exitOnOverlayClick:!1,hideNext:!0,hidePrev:!0}),"function"===typeof e&&e(i.intro)},o=n,(0,h.default)(i,o)}return(0,p.default)(e,t),(0,c.default)(e,[{key:"componentWillMount",value:function(){this.initIntro()}},{key:"render",value:function(){return React.createElement("div",null)}}]),e}(React.Component);e.default=v}});
//# sourceMappingURL=37.chunk.js.map?v=e16e293f