HEX
Server: LiteSpeed
System: Linux premium283.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
User: citaqlmd (746)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /home/citaqlmd/nt.lmskreators.com/wp-content/plugins/mycred/assets/js/tourguide.min.js
!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).Shepherd=e()}(this,function(){"use strict";var t=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var n=Object.prototype.toString.call(t);return"[object RegExp]"===n||"[object Date]"===n||function(t){return t.$$typeof===e}(t)}(t)};var e="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(t,e){return!1!==e.clone&&e.isMergeableObject(t)?a((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function o(t,e,o){return t.concat(e).map(function(t){return n(t,o)})}function r(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]}(t))}function i(t,e){try{return e in t}catch(t){return!1}}function s(t,e,o){var s={};return o.isMergeableObject(t)&&r(t).forEach(function(e){s[e]=n(t[e],o)}),r(e).forEach(function(r){(function(t,e){return i(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,r)||(i(t,r)&&o.isMergeableObject(e[r])?s[r]=function(t,e){if(!e.customMerge)return a;var n=e.customMerge(t);return"function"==typeof n?n:a}(r,o)(t[r],e[r],o):s[r]=n(e[r],o))}),s}function a(e,r,i){(i=i||{}).arrayMerge=i.arrayMerge||o,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=n;var a=Array.isArray(r);return a===Array.isArray(e)?a?i.arrayMerge(e,r,i):s(e,r,i):n(r,i)}a.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(t,n){return a(t,n,e)},{})};var l=a;function c(t){return t instanceof HTMLElement}function p(t){return"function"==typeof t}function u(t){return"string"==typeof t}function f(t){return void 0===t}class d{on(t,e,n,o=!1){return f(this.bindings)&&(this.bindings={}),f(this.bindings[t])&&(this.bindings[t]=[]),this.bindings[t].push({handler:e,ctx:n,once:o}),this}once(t,e,n){return this.on(t,e,n,!0)}off(t,e){return f(this.bindings)||f(this.bindings[t])?this:(f(e)?delete this.bindings[t]:this.bindings[t].forEach((n,o)=>{n.handler===e&&this.bindings[t].splice(o,1)}),this)}trigger(t,...e){return!f(this.bindings)&&this.bindings[t]&&this.bindings[t].forEach((n,o)=>{const{ctx:r,handler:i,once:s}=n,a=r||this;i.apply(a,e),s&&this.bindings[t].splice(o,1)}),this}}function h(t){const e=Object.getOwnPropertyNames(t.constructor.prototype);for(let n=0;n<e.length;n++){const o=e[n],r=t[o];"constructor"!==o&&"function"==typeof r&&(t[o]=r.bind(t))}return t}function m(t){const{event:e,selector:n}=t.options.advanceOn||{};if(!e)return console.error("advanceOn was defined, but no event name was passed.");{const o=function(t,e){return n=>{if(e.isOpen()){const o=e.el&&n.currentTarget===e.el;(!f(t)&&n.currentTarget.matches(t)||o)&&e.tour.next()}}}(n,t);let r;try{r=document.querySelector(n)}catch(t){}if(!f(n)&&!r)return console.error(`No element was found for the selector supplied to advanceOn: ${n}`);r?(r.addEventListener(e,o),t.on("destroy",()=>r.removeEventListener(e,o))):(document.body.addEventListener(e,o,!0),t.on("destroy",()=>document.body.removeEventListener(e,o,!0)))}}var g="top",b="bottom",y="right",v="left",x="auto",w=[g,b,y,v],$="start",O="end",E="clippingParents",S="viewport",T="popper",I="reference",j=w.reduce(function(t,e){return t.concat([e+"-"+$,e+"-"+O])},[]),_=[].concat(w,[x]).reduce(function(t,e){return t.concat([e,e+"-"+$,e+"-"+O])},[]),L=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function A(t){return t?(t.nodeName||"").toLowerCase():null}function M(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function k(t){return t instanceof M(t).Element||t instanceof Element}function C(t){return t instanceof M(t).HTMLElement||t instanceof HTMLElement}function P(t){return"undefined"!=typeof ShadowRoot&&(t instanceof M(t).ShadowRoot||t instanceof ShadowRoot)}var B={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach(function(t){var n=e.styles[t]||{},o=e.attributes[t]||{},r=e.elements[t];C(r)&&A(r)&&(Object.assign(r.style,n),Object.keys(o).forEach(function(t){var e=o[t];!1===e?r.removeAttribute(t):r.setAttribute(t,!0===e?"":e)}))})},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(t){var o=e.elements[t],r=e.attributes[t]||{},i=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce(function(t,e){return t[e]="",t},{});C(o)&&A(o)&&(Object.assign(o.style,i),Object.keys(r).forEach(function(t){o.removeAttribute(t)}))})}},requires:["computeStyles"]};function D(t){return t.split("-")[0]}function H(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function R(t){var e=H(t),n=t.offsetWidth,o=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:o}}function W(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&P(n)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function N(t){return M(t).getComputedStyle(t)}function F(t){return["table","td","th"].indexOf(A(t))>=0}function q(t){return((k(t)?t.ownerDocument:t.document)||window.document).documentElement}function V(t){return"html"===A(t)?t:t.assignedSlot||t.parentNode||(P(t)?t.host:null)||q(t)}function Y(t){return C(t)&&"fixed"!==N(t).position?t.offsetParent:null}function X(t){for(var e=M(t),n=Y(t);n&&F(n)&&"static"===N(n).position;)n=Y(n);return n&&("html"===A(n)||"body"===A(n)&&"static"===N(n).position)?e:n||function(t){for(var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox"),n=V(t);C(n)&&["html","body"].indexOf(A(n))<0;){var o=N(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||e&&"filter"===o.willChange||e&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(t)||e}function U(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}var z=Math.max,Z=Math.min,K=Math.round;function G(t,e,n){return z(t,Z(e,n))}function J(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function Q(t,e){return e.reduce(function(e,n){return e[n]=t,e},{})}var tt=function(t,e){return J("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:Q(t,w))};var et={top:"auto",right:"auto",bottom:"auto",left:"auto"};function nt(t){var e,n=t.popper,o=t.popperRect,r=t.placement,i=t.offsets,s=t.position,a=t.gpuAcceleration,l=t.adaptive,c=t.roundOffsets,p=!0===c?function(t){var e=t.x,n=t.y,o=window.devicePixelRatio||1;return{x:K(K(e*o+20)/o)||0,y:K(K(n*o)/o)||0}}(i):"function"==typeof c?c(i):i,u=p.x,f=void 0===u?0:u,d=p.y,h=void 0===d?0:d,m=i.hasOwnProperty("x"),x=i.hasOwnProperty("y"),w=v,$=g,O=window;if(l){var E=X(n),S="clientHeight",T="clientWidth";E===M(n)&&"static"!==N(E=q(n)).position&&(S="scrollHeight",T="scrollWidth"),E=E,r===g&&($=b,h-=E[S]-o.height,h*=a?1:-1),r===v&&(w=y,f-=E[T]-o.width,f*=a?1:-1)}var I,j=Object.assign({position:s},l&&et);return a?Object.assign({},j,((I={})[$]=x?"0":"",I[w]=m?"0":"",I.transform=(O.devicePixelRatio||1)<2?"translate("+f+"px, "+h+"px)":"translate3d("+f+"px, "+h+"px, 0)",I)):Object.assign({},j,((e={})[$]=x?h+"px":"",e[w]=m?f+"px":"",e.transform="",e))}var ot={passive:!0};var rt={left:"right",right:"left",bottom:"top",top:"bottom"};function it(t){return t.replace(/left|right|bottom|top/g,function(t){return rt[t]})}var st={start:"end",end:"start"};function at(t){return t.replace(/start|end/g,function(t){return st[t]})}function lt(t){var e=M(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ct(t){return H(q(t)).left+lt(t).scrollLeft}function pt(t){var e=N(t),n=e.overflow,o=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function ut(t,e){var n;void 0===e&&(e=[]);var o=function t(e){return["html","body","#document"].indexOf(A(e))>=0?e.ownerDocument.body:C(e)&&pt(e)?e:t(V(e))}(t),r=o===(null==(n=t.ownerDocument)?void 0:n.body),i=M(o),s=r?[i].concat(i.visualViewport||[],pt(o)?o:[]):o,a=e.concat(s);return r?a:a.concat(ut(V(s)))}function ft(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function dt(t,e){return e===S?ft(function(t){var e=M(t),n=q(t),o=e.visualViewport,r=n.clientWidth,i=n.clientHeight,s=0,a=0;return o&&(r=o.width,i=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=o.offsetLeft,a=o.offsetTop)),{width:r,height:i,x:s+ct(t),y:a}}(t)):C(e)?function(t){var e=H(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):ft(function(t){var e,n=q(t),o=lt(t),r=null==(e=t.ownerDocument)?void 0:e.body,i=z(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=z(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-o.scrollLeft+ct(t),l=-o.scrollTop;return"rtl"===N(r||n).direction&&(a+=z(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}(q(t)))}function ht(t,e,n){var o="clippingParents"===e?function(t){var e=ut(V(t)),n=["absolute","fixed"].indexOf(N(t).position)>=0&&C(t)?X(t):t;return k(n)?e.filter(function(t){return k(t)&&W(t,n)&&"body"!==A(t)}):[]}(t):[].concat(e),r=[].concat(o,[n]),i=r[0],s=r.reduce(function(e,n){var o=dt(t,n);return e.top=z(o.top,e.top),e.right=Z(o.right,e.right),e.bottom=Z(o.bottom,e.bottom),e.left=z(o.left,e.left),e},dt(t,i));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function mt(t){return t.split("-")[1]}function gt(t){var e,n=t.reference,o=t.element,r=t.placement,i=r?D(r):null,s=r?mt(r):null,a=n.x+n.width/2-o.width/2,l=n.y+n.height/2-o.height/2;switch(i){case g:e={x:a,y:n.y-o.height};break;case b:e={x:a,y:n.y+n.height};break;case y:e={x:n.x+n.width,y:l};break;case v:e={x:n.x-o.width,y:l};break;default:e={x:n.x,y:n.y}}var c=i?U(i):null;if(null!=c){var p="y"===c?"height":"width";switch(s){case $:e[c]=e[c]-(n[p]/2-o[p]/2);break;case O:e[c]=e[c]+(n[p]/2-o[p]/2)}}return e}function bt(t,e){void 0===e&&(e={});var n=e,o=n.placement,r=void 0===o?t.placement:o,i=n.boundary,s=void 0===i?E:i,a=n.rootBoundary,l=void 0===a?S:a,c=n.elementContext,p=void 0===c?T:c,u=n.altBoundary,f=void 0!==u&&u,d=n.padding,h=void 0===d?0:d,m=J("number"!=typeof h?h:Q(h,w)),v=p===T?I:T,x=t.elements.reference,$=t.rects.popper,O=t.elements[f?v:p],j=ht(k(O)?O:O.contextElement||q(t.elements.popper),s,l),_=H(x),L=gt({reference:_,element:$,strategy:"absolute",placement:r}),A=ft(Object.assign({},$,L)),M=p===T?A:_,C={top:j.top-M.top+m.top,bottom:M.bottom-j.bottom+m.bottom,left:j.left-M.left+m.left,right:M.right-j.right+m.right},P=t.modifiersData.offset;if(p===T&&P){var B=P[r];Object.keys(C).forEach(function(t){var e=[y,b].indexOf(t)>=0?1:-1,n=[g,b].indexOf(t)>=0?"y":"x";C[t]+=B[n]*e})}return C}function yt(t,e){void 0===e&&(e={});var n=e,o=n.placement,r=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?_:l,p=mt(o),u=p?a?j:j.filter(function(t){return mt(t)===p}):w,f=u.filter(function(t){return c.indexOf(t)>=0});0===f.length&&(f=u);var d=f.reduce(function(e,n){return e[n]=bt(t,{placement:n,boundary:r,rootBoundary:i,padding:s})[D(n)],e},{});return Object.keys(d).sort(function(t,e){return d[t]-d[e]})}function vt(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function xt(t){return[g,y,b,v].some(function(e){return t[e]>=0})}function wt(t,e,n){void 0===n&&(n=!1);var o,r,i=q(e),s=H(t),a=C(e),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(a||!a&&!n)&&(("body"!==A(e)||pt(i))&&(l=(o=e)!==M(o)&&C(o)?{scrollLeft:(r=o).scrollLeft,scrollTop:r.scrollTop}:lt(o)),C(e)?((c=H(e)).x+=e.clientLeft,c.y+=e.clientTop):i&&(c.x=ct(i))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function $t(t){var e=new Map,n=new Set,o=[];return t.forEach(function(t){e.set(t.name,t)}),t.forEach(function(t){n.has(t.name)||function t(r){n.add(r.name),[].concat(r.requires||[],r.requiresIfExists||[]).forEach(function(o){if(!n.has(o)){var r=e.get(o);r&&t(r)}}),o.push(r)}(t)}),o}var Ot={placement:"bottom",modifiers:[],strategy:"absolute"};function Et(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(t){return!(t&&"function"==typeof t.getBoundingClientRect)})}function St(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,o=void 0===n?[]:n,r=e.defaultOptions,i=void 0===r?Ot:r;return function(t,e,n){void 0===n&&(n=i);var r,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ot,i),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,p={state:a,setOptions:function(n){u(),a.options=Object.assign({},i,a.options,n),a.scrollParents={reference:k(t)?ut(t):t.contextElement?ut(t.contextElement):[],popper:ut(e)};var r,s,c=function(t){var e=$t(t);return L.reduce(function(t,n){return t.concat(e.filter(function(t){return t.phase===n}))},[])}((r=[].concat(o,a.options.modifiers),s=r.reduce(function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t},{}),Object.keys(s).map(function(t){return s[t]})));return a.orderedModifiers=c.filter(function(t){return t.enabled}),a.orderedModifiers.forEach(function(t){var e=t.name,n=t.options,o=void 0===n?{}:n,r=t.effect;if("function"==typeof r){var i=r({state:a,name:e,instance:p,options:o});l.push(i||function(){})}}),p.update()},forceUpdate:function(){if(!c){var t=a.elements,e=t.reference,n=t.popper;if(Et(e,n)){a.rects={reference:wt(e,X(n),"fixed"===a.options.strategy),popper:R(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(t){return a.modifiersData[t.name]=Object.assign({},t.data)});for(var o=0;o<a.orderedModifiers.length;o++)if(!0!==a.reset){var r=a.orderedModifiers[o],i=r.fn,s=r.options,l=void 0===s?{}:s,u=r.name;"function"==typeof i&&(a=i({state:a,options:l,name:u,instance:p})||a)}else a.reset=!1,o=-1}}},update:(r=function(){return new Promise(function(t){p.forceUpdate(),t(a)})},function(){return s||(s=new Promise(function(t){Promise.resolve().then(function(){s=void 0,t(r())})})),s}),destroy:function(){u(),c=!0}};if(!Et(t,e))return p;function u(){l.forEach(function(t){return t()}),l=[]}return p.setOptions(n).then(function(t){!c&&n.onFirstUpdate&&n.onFirstUpdate(t)}),p}}var Tt=St({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,o=t.options,r=o.scroll,i=void 0===r||r,s=o.resize,a=void 0===s||s,l=M(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach(function(t){t.addEventListener("scroll",n.update,ot)}),a&&l.addEventListener("resize",n.update,ot),function(){i&&c.forEach(function(t){t.removeEventListener("scroll",n.update,ot)}),a&&l.removeEventListener("resize",n.update,ot)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=gt({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,o=n.gpuAcceleration,r=void 0===o||o,i=n.adaptive,s=void 0===i||i,a=n.roundOffsets,l=void 0===a||a,c={placement:D(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,nt(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,nt(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},B,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,o=t.name,r=n.offset,i=void 0===r?[0,0]:r,s=_.reduce(function(t,n){return t[n]=function(t,e,n){var o=D(t),r=[v,g].indexOf(o)>=0?-1:1,i="function"==typeof n?n(Object.assign({},e,{placement:t})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*r,[v,y].indexOf(o)>=0?{x:a,y:s}:{x:s,y:a}}(n,e.rects,i),t},{}),a=s[e.placement],l=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[o]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var r=n.mainAxis,i=void 0===r||r,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,c=n.padding,p=n.boundary,u=n.rootBoundary,f=n.altBoundary,d=n.flipVariations,h=void 0===d||d,m=n.allowedAutoPlacements,w=e.options.placement,O=D(w),E=l||(O!==w&&h?function(t){if(D(t)===x)return[];var e=it(t);return[at(t),e,at(e)]}(w):[it(w)]),S=[w].concat(E).reduce(function(t,n){return t.concat(D(n)===x?yt(e,{placement:n,boundary:p,rootBoundary:u,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)},[]),T=e.rects.reference,I=e.rects.popper,j=new Map,_=!0,L=S[0],A=0;A<S.length;A++){var M=S[A],k=D(M),C=mt(M)===$,P=[g,b].indexOf(k)>=0,B=P?"width":"height",H=bt(e,{placement:M,boundary:p,rootBoundary:u,altBoundary:f,padding:c}),R=P?C?y:v:C?b:g;T[B]>I[B]&&(R=it(R));var W=it(R),N=[];if(i&&N.push(H[k]<=0),a&&N.push(H[R]<=0,H[W]<=0),N.every(function(t){return t})){L=M,_=!1;break}j.set(M,N)}if(_)for(var F=function(t){var e=S.find(function(e){var n=j.get(e);if(n)return n.slice(0,t).every(function(t){return t})});if(e)return L=e,"break"},q=h?3:1;q>0&&"break"!==F(q);q--);e.placement!==L&&(e.modifiersData[o]._skip=!0,e.placement=L,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,o=t.name,r=n.mainAxis,i=void 0===r||r,s=n.altAxis,a=void 0!==s&&s,l=n.boundary,c=n.rootBoundary,p=n.altBoundary,u=n.padding,f=n.tether,d=void 0===f||f,h=n.tetherOffset,m=void 0===h?0:h,x=bt(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:p}),w=D(e.placement),O=mt(e.placement),E=!O,S=U(w),T="x"===S?"y":"x",I=e.modifiersData.popperOffsets,j=e.rects.reference,_=e.rects.popper,L="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,A={x:0,y:0};if(I){if(i||a){var M="y"===S?g:v,k="y"===S?b:y,C="y"===S?"height":"width",P=I[S],B=I[S]+x[M],H=I[S]-x[k],W=d?-_[C]/2:0,N=O===$?j[C]:_[C],F=O===$?-_[C]:-j[C],q=e.elements.arrow,V=d&&q?R(q):{width:0,height:0},Y=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},K=Y[M],J=Y[k],Q=G(0,j[C],V[C]),tt=E?j[C]/2-W-Q-K-L:N-Q-K-L,et=E?-j[C]/2+W+Q+J+L:F+Q+J+L,nt=e.elements.arrow&&X(e.elements.arrow),ot=nt?"y"===S?nt.clientTop||0:nt.clientLeft||0:0,rt=e.modifiersData.offset?e.modifiersData.offset[e.placement][S]:0,it=I[S]+tt-rt-ot,st=I[S]+et-rt;if(i){var at=G(d?Z(B,it):B,P,d?z(H,st):H);I[S]=at,A[S]=at-P}if(a){var lt="x"===S?g:v,ct="x"===S?b:y,pt=I[T],ut=pt+x[lt],ft=pt-x[ct],dt=G(d?Z(ut,it):ut,pt,d?z(ft,st):ft);I[T]=dt,A[T]=dt-pt}}e.modifiersData[o]=A}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,o=t.name,r=t.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=D(n.placement),l=U(a),c=[v,y].indexOf(a)>=0?"height":"width";if(i&&s){var p=tt(r.padding,n),u=R(i),f="y"===l?g:v,d="y"===l?b:y,h=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],m=s[l]-n.rects.reference[l],x=X(i),w=x?"y"===l?x.clientHeight||0:x.clientWidth||0:0,$=h/2-m/2,O=p[f],E=w-u[c]-p[d],S=w/2-u[c]/2+$,T=G(O,S,E),I=l;n.modifiersData[o]=((e={})[I]=T,e.centerOffset=T-S,e)}},effect:function(t){var e=t.state,n=t.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=e.elements.popper.querySelector(o)))&&W(e.elements.popper,o)&&(e.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,o=e.rects.reference,r=e.rects.popper,i=e.modifiersData.preventOverflow,s=bt(e,{elementContext:"reference"}),a=bt(e,{altBoundary:!0}),l=vt(s,o),c=vt(a,r,i),p=xt(l),u=xt(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":u})}}]});function It(){return(It=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}function jt(t){const e=[{name:"applyStyles",fn({state:t}){Object.keys(t.elements).forEach(e=>{if("popper"!==e)return;const n=t.attributes[e]||{},o=t.elements[e];Object.assign(o.style,{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}),Object.keys(n).forEach(t=>{const e=n[t];!1===e?o.removeAttribute(t):o.setAttribute(t,!0===e?"":e)})})}},{name:"computeStyles",options:{adaptive:!1}}];let n={placement:"top",strategy:"fixed",modifiers:[{name:"focusAfterRender",enabled:!0,phase:"afterWrite",fn(){setTimeout(()=>{t.el&&t.el.focus()},300)}}]};return n=It({},n,{modifiers:Array.from(new Set([...n.modifiers,...e]))})}function _t(t){return u(t)&&""!==t?"-"!==t.charAt(t.length-1)?`${t}-`:t:""}function Lt(t){const e=t.options.attachTo||{},n=Object.assign({},e);if(u(e.element)){try{n.element=document.querySelector(e.element)}catch(t){}n.element||console.error(`The element for this Shepherd step was not found ${e.element}`)}return n}function At(t){t.tooltip&&t.tooltip.destroy();const e=Lt(t);let n=e.element;const o=function(t,e){let n={modifiers:[{name:"preventOverflow",options:{altAxis:!0}},{name:"focusAfterRender",enabled:!0,phase:"afterWrite",fn(){setTimeout(()=>{e.el&&e.el.focus()},300)}}],strategy:"absolute"};e.isCentered()?n=jt(e):n.placement=t.on;const o=e.tour&&e.tour.options&&e.tour.options.defaultStepOptions;o&&(n=kt(o,n));return n=kt(e.options,n)}(e,t);if(t.isCentered()){n=document.body,t.shepherdElementComponent.getElement().classList.add("shepherd-centered")}return t.tooltip=Tt(n,t.el,o),t.target=e.element,o}function Mt(){let t=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==e?n:3&n|8).toString(16)})}function kt(t,e){if(t.popperOptions){let n=Object.assign({},e,t.popperOptions);if(t.popperOptions.modifiers&&t.popperOptions.modifiers.length>0){const o=t.popperOptions.modifiers.map(t=>t.name),r=e.modifiers.filter(t=>!o.includes(t.name));n.modifiers=Array.from(new Set([...r,...t.popperOptions.modifiers]))}return n}return e}function Ct(){}function Pt(t,e){for(const n in e)t[n]=e[n];return t}function Bt(t){return t()}function Dt(){return Object.create(null)}function Ht(t){t.forEach(Bt)}function Rt(t){return"function"==typeof t}function Wt(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function Nt(t,e){t.appendChild(e)}function Ft(t,e,n){t.insertBefore(e,n||null)}function qt(t){t.parentNode.removeChild(t)}function Vt(t){return document.createElement(t)}function Yt(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Xt(t){return document.createTextNode(t)}function Ut(){return Xt(" ")}function zt(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function Zt(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function Kt(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const o in e)null==e[o]?t.removeAttribute(o):"style"===o?t.style.cssText=e[o]:"__value"===o?t.value=t[o]=e[o]:n[o]&&n[o].set?t[o]=e[o]:Zt(t,o,e[o])}function Gt(t,e,n){t.classList[n?"add":"remove"](e)}let Jt;function Qt(t){Jt=t}function te(){if(!Jt)throw new Error("Function called outside component initialization");return Jt}function ee(t){te().$$.after_update.push(t)}const ne=[],oe=[],re=[],ie=[],se=Promise.resolve();let ae=!1;function le(t){re.push(t)}let ce=!1;const pe=new Set;function ue(){if(!ce){ce=!0;do{for(let t=0;t<ne.length;t+=1){const e=ne[t];Qt(e),fe(e.$$)}for(Qt(null),ne.length=0;oe.length;)oe.pop()();for(let t=0;t<re.length;t+=1){const e=re[t];pe.has(e)||(pe.add(e),e())}re.length=0}while(ne.length);for(;ie.length;)ie.pop()();ae=!1,ce=!1,pe.clear()}}function fe(t){if(null!==t.fragment){t.update(),Ht(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(le)}}const de=new Set;let he;function me(){he={r:0,c:[],p:he}}function ge(){he.r||Ht(he.c),he=he.p}function be(t,e){t&&t.i&&(de.delete(t),t.i(e))}function ye(t,e,n,o){if(t&&t.o){if(de.has(t))return;de.add(t),he.c.push(()=>{de.delete(t),o&&(n&&t.d(1),o())}),t.o(e)}}function ve(t){t&&t.c()}function xe(t,e,n){const{fragment:o,on_mount:r,on_destroy:i,after_update:s}=t.$$;o&&o.m(e,n),le(()=>{const e=r.map(Bt).filter(Rt);i?i.push(...e):Ht(e),t.$$.on_mount=[]}),s.forEach(le)}function we(t,e){const n=t.$$;null!==n.fragment&&(Ht(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function $e(t,e){-1===t.$$.dirty[0]&&(ne.push(t),ae||(ae=!0,se.then(ue)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Oe(t,e,n,o,r,i,s=[-1]){const a=Jt;Qt(t);const l=t.$$={fragment:null,ctx:null,props:i,update:Ct,not_equal:r,bound:Dt(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(a?a.$$.context:[]),callbacks:Dt(),dirty:s,skip_bound:!1};let c=!1;if(l.ctx=n?n(t,e.props||{},(e,n,...o)=>{const i=o.length?o[0]:n;return l.ctx&&r(l.ctx[e],l.ctx[e]=i)&&(!l.skip_bound&&l.bound[e]&&l.bound[e](i),c&&$e(t,e)),n}):[],l.update(),c=!0,Ht(l.before_update),l.fragment=!!o&&o(l.ctx),e.target){if(e.hydrate){const t=(p=e.target,Array.from(p.childNodes));l.fragment&&l.fragment.l(t),t.forEach(qt)}else l.fragment&&l.fragment.c();e.intro&&be(t.$$.fragment),xe(t,e.target,e.anchor),ue()}var p;Qt(a)}class Ee{$destroy(){we(this,1),this.$destroy=Ct}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function Se(t){let e,n,o,r,i;return{c(){Zt(e=Vt("button"),"aria-label",n=t[3]?t[3]:null),Zt(e,"class",o=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`),e.disabled=t[2],Zt(e,"tabindex","0")},m(n,o){Ft(n,e,o),e.innerHTML=t[5],r||(i=zt(e,"click",function(){Rt(t[0])&&t[0].apply(this,arguments)}),r=!0)},p(r,[i]){t=r,32&i&&(e.innerHTML=t[5]),8&i&&n!==(n=t[3]?t[3]:null)&&Zt(e,"aria-label",n),18&i&&o!==(o=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`)&&Zt(e,"class",o),4&i&&(e.disabled=t[2])},i:Ct,o:Ct,d(t){t&&qt(e),r=!1,i()}}}function Te(t,e,n){let o,r,i,s,a,l,{config:c}=e,{step:u}=e;return t.$$set=(t=>{"config"in t&&n(6,c=t.config),"step"in t&&n(7,u=t.step)}),t.$$.update=(()=>{192&t.$$.dirty&&(n(0,o=c.action?c.action.bind(u.tour):null),n(1,r=c.classes),n(2,i=!!c.disabled&&function(t){return p(t)?t.call(u):t}(c.disabled)),n(3,s=c.label),n(4,a=c.secondary),n(5,l=c.text))}),[o,r,i,s,a,l,c,u]}class Ie extends Ee{constructor(t){super(),Oe(this,t,Te,Se,Wt,{config:6,step:7})}}function je(t,e,n){const o=t.slice();return o[2]=e[n],o}function _e(t){let e,n,o=t[1],r=[];for(let e=0;e<o.length;e+=1)r[e]=Le(je(t,o,e));const i=t=>ye(r[t],1,1,()=>{r[t]=null});return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=Xt("")},m(t,o){for(let e=0;e<r.length;e+=1)r[e].m(t,o);Ft(t,e,o),n=!0},p(t,n){if(3&n){let s;for(o=t[1],s=0;s<o.length;s+=1){const i=je(t,o,s);r[s]?(r[s].p(i,n),be(r[s],1)):(r[s]=Le(i),r[s].c(),be(r[s],1),r[s].m(e.parentNode,e))}for(me(),s=o.length;s<r.length;s+=1)i(s);ge()}},i(t){if(!n){for(let t=0;t<o.length;t+=1)be(r[t]);n=!0}},o(t){r=r.filter(Boolean);for(let t=0;t<r.length;t+=1)ye(r[t]);n=!1},d(t){!function(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}(r,t),t&&qt(e)}}}function Le(t){let e,n;return e=new Ie({props:{config:t[2],step:t[0]}}),{c(){ve(e.$$.fragment)},m(t,o){xe(e,t,o),n=!0},p(t,n){const o={};2&n&&(o.config=t[2]),1&n&&(o.step=t[0]),e.$set(o)},i(t){n||(be(e.$$.fragment,t),n=!0)},o(t){ye(e.$$.fragment,t),n=!1},d(t){we(e,t)}}}function Ae(t){let e,n,o=t[1]&&_e(t);return{c(){e=Vt("footer"),o&&o.c(),Zt(e,"class","shepherd-footer")},m(t,r){Ft(t,e,r),o&&o.m(e,null),n=!0},p(t,[n]){t[1]?o?(o.p(t,n),2&n&&be(o,1)):((o=_e(t)).c(),be(o,1),o.m(e,null)):o&&(me(),ye(o,1,1,()=>{o=null}),ge())},i(t){n||(be(o),n=!0)},o(t){ye(o),n=!1},d(t){t&&qt(e),o&&o.d()}}}function Me(t,e,n){let o,{step:r}=e;return t.$$set=(t=>{"step"in t&&n(0,r=t.step)}),t.$$.update=(()=>{1&t.$$.dirty&&n(1,o=r.options.buttons)}),[r,o]}class ke extends Ee{constructor(t){super(),Oe(this,t,Me,Ae,Wt,{step:0})}}function Ce(t){let e,n,o,r,i;return{c(){e=Vt("button"),(n=Vt("span")).textContent="×",Zt(n,"aria-hidden","true"),Zt(e,"aria-label",o=t[0].label?t[0].label:"Close Tour"),Zt(e,"class","shepherd-cancel-icon"),Zt(e,"type","button")},m(o,s){Ft(o,e,s),Nt(e,n),r||(i=zt(e,"click",t[1]),r=!0)},p(t,[n]){1&n&&o!==(o=t[0].label?t[0].label:"Close Tour")&&Zt(e,"aria-label",o)},i:Ct,o:Ct,d(t){t&&qt(e),r=!1,i()}}}function Pe(t,e,n){let{cancelIcon:o}=e,{step:r}=e;return t.$$set=(t=>{"cancelIcon"in t&&n(0,o=t.cancelIcon),"step"in t&&n(2,r=t.step)}),[o,t=>{t.preventDefault(),r.cancel()},r]}class Be extends Ee{constructor(t){super(),Oe(this,t,Pe,Ce,Wt,{cancelIcon:0,step:2})}}function De(t){let e;return{c(){Zt(e=Vt("h3"),"id",t[1]),Zt(e,"class","shepherd-title")},m(n,o){Ft(n,e,o),t[3](e)},p(t,[n]){2&n&&Zt(e,"id",t[1])},i:Ct,o:Ct,d(n){n&&qt(e),t[3](null)}}}function He(t,e,n){let{labelId:o}=e,{element:r}=e,{title:i}=e;return ee(()=>{p(i)&&n(2,i=i()),n(0,r.innerHTML=i,r)}),t.$$set=(t=>{"labelId"in t&&n(1,o=t.labelId),"element"in t&&n(0,r=t.element),"title"in t&&n(2,i=t.title)}),[r,o,i,function(t){oe[t?"unshift":"push"](()=>{n(0,r=t)})}]}class Re extends Ee{constructor(t){super(),Oe(this,t,He,De,Wt,{labelId:1,element:0,title:2})}}function We(t){let e,n;return e=new Re({props:{labelId:t[0],title:t[2]}}),{c(){ve(e.$$.fragment)},m(t,o){xe(e,t,o),n=!0},p(t,n){const o={};1&n&&(o.labelId=t[0]),4&n&&(o.title=t[2]),e.$set(o)},i(t){n||(be(e.$$.fragment,t),n=!0)},o(t){ye(e.$$.fragment,t),n=!1},d(t){we(e,t)}}}function Ne(t){let e,n;return e=new Be({props:{cancelIcon:t[3],step:t[1]}}),{c(){ve(e.$$.fragment)},m(t,o){xe(e,t,o),n=!0},p(t,n){const o={};8&n&&(o.cancelIcon=t[3]),2&n&&(o.step=t[1]),e.$set(o)},i(t){n||(be(e.$$.fragment,t),n=!0)},o(t){ye(e.$$.fragment,t),n=!1},d(t){we(e,t)}}}function Fe(t){let e,n,o,r=t[2]&&We(t),i=t[3]&&t[3].enabled&&Ne(t);return{c(){e=Vt("header"),r&&r.c(),n=Ut(),i&&i.c(),Zt(e,"class","shepherd-header")},m(t,s){Ft(t,e,s),r&&r.m(e,null),Nt(e,n),i&&i.m(e,null),o=!0},p(t,[o]){t[2]?r?(r.p(t,o),4&o&&be(r,1)):((r=We(t)).c(),be(r,1),r.m(e,n)):r&&(me(),ye(r,1,1,()=>{r=null}),ge()),t[3]&&t[3].enabled?i?(i.p(t,o),8&o&&be(i,1)):((i=Ne(t)).c(),be(i,1),i.m(e,null)):i&&(me(),ye(i,1,1,()=>{i=null}),ge())},i(t){o||(be(r),be(i),o=!0)},o(t){ye(r),ye(i),o=!1},d(t){t&&qt(e),r&&r.d(),i&&i.d()}}}function qe(t,e,n){let o,r,{labelId:i}=e,{step:s}=e;return t.$$set=(t=>{"labelId"in t&&n(0,i=t.labelId),"step"in t&&n(1,s=t.step)}),t.$$.update=(()=>{2&t.$$.dirty&&(n(2,o=s.options.title),n(3,r=s.options.cancelIcon))}),[i,s,o,r]}class Ve extends Ee{constructor(t){super(),Oe(this,t,qe,Fe,Wt,{labelId:0,step:1})}}function Ye(t){let e;return{c(){Zt(e=Vt("div"),"class","shepherd-text"),Zt(e,"id",t[1])},m(n,o){Ft(n,e,o),t[3](e)},p(t,[n]){2&n&&Zt(e,"id",t[1])},i:Ct,o:Ct,d(n){n&&qt(e),t[3](null)}}}function Xe(t,e,n){let{descriptionId:o}=e,{element:r}=e,{step:i}=e;return ee(()=>{let{text:t}=i.options;p(t)&&(t=t.call(i)),c(t)?r.appendChild(t):n(0,r.innerHTML=t,r)}),t.$$set=(t=>{"descriptionId"in t&&n(1,o=t.descriptionId),"element"in t&&n(0,r=t.element),"step"in t&&n(2,i=t.step)}),[r,o,i,function(t){oe[t?"unshift":"push"](()=>{n(0,r=t)})}]}class Ue extends Ee{constructor(t){super(),Oe(this,t,Xe,Ye,Wt,{descriptionId:1,element:0,step:2})}}function ze(t){let e,n;return e=new Ve({props:{labelId:t[1],step:t[2]}}),{c(){ve(e.$$.fragment)},m(t,o){xe(e,t,o),n=!0},p(t,n){const o={};2&n&&(o.labelId=t[1]),4&n&&(o.step=t[2]),e.$set(o)},i(t){n||(be(e.$$.fragment,t),n=!0)},o(t){ye(e.$$.fragment,t),n=!1},d(t){we(e,t)}}}function Ze(t){let e,n;return e=new Ue({props:{descriptionId:t[0],step:t[2]}}),{c(){ve(e.$$.fragment)},m(t,o){xe(e,t,o),n=!0},p(t,n){const o={};1&n&&(o.descriptionId=t[0]),4&n&&(o.step=t[2]),e.$set(o)},i(t){n||(be(e.$$.fragment,t),n=!0)},o(t){ye(e.$$.fragment,t),n=!1},d(t){we(e,t)}}}function Ke(t){let e,n;return e=new ke({props:{step:t[2]}}),{c(){ve(e.$$.fragment)},m(t,o){xe(e,t,o),n=!0},p(t,n){const o={};4&n&&(o.step=t[2]),e.$set(o)},i(t){n||(be(e.$$.fragment,t),n=!0)},o(t){ye(e.$$.fragment,t),n=!1},d(t){we(e,t)}}}function Ge(t){let e,n,o,r,i=!f(t[2].options.title)||t[2].options.cancelIcon&&t[2].options.cancelIcon.enabled,s=!f(t[2].options.text),a=Array.isArray(t[2].options.buttons)&&t[2].options.buttons.length,l=i&&ze(t),c=s&&Ze(t),p=a&&Ke(t);return{c(){e=Vt("div"),l&&l.c(),n=Ut(),c&&c.c(),o=Ut(),p&&p.c(),Zt(e,"class","shepherd-content")},m(t,i){Ft(t,e,i),l&&l.m(e,null),Nt(e,n),c&&c.m(e,null),Nt(e,o),p&&p.m(e,null),r=!0},p(t,[r]){4&r&&(i=!f(t[2].options.title)||t[2].options.cancelIcon&&t[2].options.cancelIcon.enabled),i?l?(l.p(t,r),4&r&&be(l,1)):((l=ze(t)).c(),be(l,1),l.m(e,n)):l&&(me(),ye(l,1,1,()=>{l=null}),ge()),4&r&&(s=!f(t[2].options.text)),s?c?(c.p(t,r),4&r&&be(c,1)):((c=Ze(t)).c(),be(c,1),c.m(e,o)):c&&(me(),ye(c,1,1,()=>{c=null}),ge()),4&r&&(a=Array.isArray(t[2].options.buttons)&&t[2].options.buttons.length),a?p?(p.p(t,r),4&r&&be(p,1)):((p=Ke(t)).c(),be(p,1),p.m(e,null)):p&&(me(),ye(p,1,1,()=>{p=null}),ge())},i(t){r||(be(l),be(c),be(p),r=!0)},o(t){ye(l),ye(c),ye(p),r=!1},d(t){t&&qt(e),l&&l.d(),c&&c.d(),p&&p.d()}}}function Je(t,e,n){let{descriptionId:o}=e,{labelId:r}=e,{step:i}=e;return t.$$set=(t=>{"descriptionId"in t&&n(0,o=t.descriptionId),"labelId"in t&&n(1,r=t.labelId),"step"in t&&n(2,i=t.step)}),[o,r,i]}class Qe extends Ee{constructor(t){super(),Oe(this,t,Je,Ge,Wt,{descriptionId:0,labelId:1,step:2})}}function tn(t){let e;return{c(){Zt(e=Vt("div"),"class","shepherd-arrow"),Zt(e,"data-popper-arrow","")},m(t,n){Ft(t,e,n)},d(t){t&&qt(e)}}}function en(t){let e,n,o,r,i,s,a,l,c=t[4].options.arrow&&t[4].options.attachTo&&t[4].options.attachTo.element&&t[4].options.attachTo.on&&tn();o=new Qe({props:{descriptionId:t[2],labelId:t[3],step:t[4]}});let p=[{"aria-describedby":r=f(t[4].options.text)?null:t[2]},{"aria-labelledby":i=t[4].options.title?t[3]:null},t[1],{role:"dialog"},{tabindex:"0"}],u={};for(let t=0;t<p.length;t+=1)u=Pt(u,p[t]);return{c(){e=Vt("div"),c&&c.c(),n=Ut(),ve(o.$$.fragment),Kt(e,u),Gt(e,"shepherd-has-cancel-icon",t[5]),Gt(e,"shepherd-has-title",t[6]),Gt(e,"shepherd-element",!0)},m(r,i){Ft(r,e,i),c&&c.m(e,null),Nt(e,n),xe(o,e,null),t[13](e),s=!0,a||(l=zt(e,"keydown",t[7]),a=!0)},p(t,[a]){t[4].options.arrow&&t[4].options.attachTo&&t[4].options.attachTo.element&&t[4].options.attachTo.on?c||((c=tn()).c(),c.m(e,n)):c&&(c.d(1),c=null);const l={};4&a&&(l.descriptionId=t[2]),8&a&&(l.labelId=t[3]),16&a&&(l.step=t[4]),o.$set(l),Kt(e,u=function(t,e){const n={},o={},r={$$scope:1};let i=t.length;for(;i--;){const s=t[i],a=e[i];if(a){for(const t in s)t in a||(o[t]=1);for(const t in a)r[t]||(n[t]=a[t],r[t]=1);t[i]=a}else for(const t in s)r[t]=1}for(const t in o)t in n||(n[t]=void 0);return n}(p,[(!s||20&a&&r!==(r=f(t[4].options.text)?null:t[2]))&&{"aria-describedby":r},(!s||24&a&&i!==(i=t[4].options.title?t[3]:null))&&{"aria-labelledby":i},2&a&&t[1],{role:"dialog"},{tabindex:"0"}])),Gt(e,"shepherd-has-cancel-icon",t[5]),Gt(e,"shepherd-has-title",t[6]),Gt(e,"shepherd-element",!0)},i(t){s||(be(o.$$.fragment,t),s=!0)},o(t){ye(o.$$.fragment,t),s=!1},d(n){n&&qt(e),c&&c.d(),we(o),t[13](null),a=!1,l()}}}const nn=9,on=27,rn=37,sn=39;function an(t){return t.split(" ").filter(t=>!!t.length)}function ln(t,e,n){let o,r,i,{classPrefix:s}=e,{element:a}=e,{descriptionId:l}=e,{firstFocusableElement:c}=e,{focusableElements:p}=e,{labelId:f}=e,{lastFocusableElement:d}=e,{step:h}=e,{dataStepId:m}=e;var g;g=(()=>{n(1,m={[`data-${s}shepherd-step-id`]:h.id}),n(9,p=a.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),n(8,c=p[0]),n(10,d=p[p.length-1])}),te().$$.on_mount.push(g),ee(()=>{i!==h.options.classes&&(function(t){if(u(t)){const e=an(t);e.length&&a.classList.remove(...e)}}(i),function(t){if(u(t)){const e=an(t);e.length&&a.classList.add(...e)}}(i=h.options.classes))});return t.$$set=(t=>{"classPrefix"in t&&n(11,s=t.classPrefix),"element"in t&&n(0,a=t.element),"descriptionId"in t&&n(2,l=t.descriptionId),"firstFocusableElement"in t&&n(8,c=t.firstFocusableElement),"focusableElements"in t&&n(9,p=t.focusableElements),"labelId"in t&&n(3,f=t.labelId),"lastFocusableElement"in t&&n(10,d=t.lastFocusableElement),"step"in t&&n(4,h=t.step),"dataStepId"in t&&n(1,m=t.dataStepId)}),t.$$.update=(()=>{16&t.$$.dirty&&(n(5,o=h.options&&h.options.cancelIcon&&h.options.cancelIcon.enabled),n(6,r=h.options&&h.options.title))}),[a,m,l,f,h,o,r,t=>{const{tour:e}=h;switch(t.keyCode){case nn:if(0===p.length){t.preventDefault();break}t.shiftKey?(document.activeElement===c||document.activeElement.classList.contains("shepherd-element"))&&(t.preventDefault(),d.focus()):document.activeElement===d&&(t.preventDefault(),c.focus());break;case on:e.options.exitOnEsc&&h.cancel();break;case rn:e.options.keyboardNavigation&&e.back();break;case sn:e.options.keyboardNavigation&&e.next()}},c,p,d,s,()=>a,function(t){oe[t?"unshift":"push"](()=>{n(0,a=t)})}]}class cn extends Ee{constructor(t){super(),Oe(this,t,ln,en,Wt,{classPrefix:11,element:0,descriptionId:2,firstFocusableElement:8,focusableElements:9,labelId:3,lastFocusableElement:10,step:4,dataStepId:1,getElement:12})}get getElement(){return this.$$.ctx[12]}}var pn,un=(function(t,e){!function(){t.exports={polyfill:function(){var t=window,e=document;if(!("scrollBehavior"in e.documentElement.style&&!0!==t.__forceSmoothScrollPolyfill__)){var n,o=t.HTMLElement||t.Element,r=468,i={scroll:t.scroll||t.scrollTo,scrollBy:t.scrollBy,elementScroll:o.prototype.scroll||l,scrollIntoView:o.prototype.scrollIntoView},s=t.performance&&t.performance.now?t.performance.now.bind(t.performance):Date.now,a=(n=t.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(n)?1:0);t.scroll=t.scrollTo=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?h.call(t,e.body,void 0!==arguments[0].left?~~arguments[0].left:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:t.scrollY||t.pageYOffset):i.scroll.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:t.scrollY||t.pageYOffset))},t.scrollBy=function(){void 0!==arguments[0]&&(c(arguments[0])?i.scrollBy.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):h.call(t,e.body,~~arguments[0].left+(t.scrollX||t.pageXOffset),~~arguments[0].top+(t.scrollY||t.pageYOffset)))},o.prototype.scroll=o.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==c(arguments[0])){var t=arguments[0].left,e=arguments[0].top;h.call(this,this,void 0===t?this.scrollLeft:~~t,void 0===e?this.scrollTop:~~e)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");i.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},o.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):i.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},o.prototype.scrollIntoView=function(){if(!0!==c(arguments[0])){var n=function(t){for(;t!==e.body&&!1===f(t);)t=t.parentNode||t.host;return t}(this),o=n.getBoundingClientRect(),r=this.getBoundingClientRect();n!==e.body?(h.call(this,n,n.scrollLeft+r.left-o.left,n.scrollTop+r.top-o.top),"fixed"!==t.getComputedStyle(n).position&&t.scrollBy({left:o.left,top:o.top,behavior:"smooth"})):t.scrollBy({left:r.left,top:r.top,behavior:"smooth"})}else i.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function l(t,e){this.scrollLeft=t,this.scrollTop=e}function c(t){if(null===t||"object"!=typeof t||void 0===t.behavior||"auto"===t.behavior||"instant"===t.behavior)return!0;if("object"==typeof t&&"smooth"===t.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function p(t,e){return"Y"===e?t.clientHeight+a<t.scrollHeight:"X"===e?t.clientWidth+a<t.scrollWidth:void 0}function u(e,n){var o=t.getComputedStyle(e,null)["overflow"+n];return"auto"===o||"scroll"===o}function f(t){var e=p(t,"Y")&&u(t,"Y"),n=p(t,"X")&&u(t,"X");return e||n}function d(e){var n,o,i,a,l=(s()-e.startTime)/r;a=l=l>1?1:l,n=.5*(1-Math.cos(Math.PI*a)),o=e.startX+(e.x-e.startX)*n,i=e.startY+(e.y-e.startY)*n,e.method.call(e.scrollable,o,i),o===e.x&&i===e.y||t.requestAnimationFrame(d.bind(t,e))}function h(n,o,r){var a,c,p,u,f=s();n===e.body?(a=t,c=t.scrollX||t.pageXOffset,p=t.scrollY||t.pageYOffset,u=i.scroll):(a=n,c=n.scrollLeft,p=n.scrollTop,u=l),d({scrollable:a,method:u,startTime:f,startX:c,startY:p,x:o,y:r})}}}}()}(pn={exports:{}},pn.exports),pn.exports);un.polyfill,un.polyfill();class fn extends d{constructor(t,e={}){return super(t,e),this.tour=t,this.classPrefix=this.tour.options?_t(this.tour.options.classPrefix):"",this.styles=t.styles,h(this),this._setOptions(e),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){this.tooltip&&(this.tooltip.destroy(),this.tooltip=null),c(this.el)&&this.el.parentNode&&(this.el.parentNode.removeChild(this.el),this.el=null),this._updateStepTargetOnHide(),this.trigger("destroy")}getTour(){return this.tour}hide(){this.tour.modal.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}isCentered(){const t=Lt(this);return!t.element||!t.on}isOpen(){return Boolean(this.el&&!this.el.hidden)}show(){if(p(this.options.beforeShowPromise)){const t=this.options.beforeShowPromise();if(!f(t))return t.then(()=>this._show())}this._show()}updateStepOptions(t){Object.assign(this.options,t),this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})}getElement(){return this.el}getTarget(){return this.target}_createTooltipContent(){const t=`${this.id}-description`,e=`${this.id}-label`;return this.shepherdElementComponent=new cn({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:t,labelId:e,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()}_scrollTo(t){const{element:e}=Lt(this);p(this.options.scrollToHandler)?this.options.scrollToHandler(e):e instanceof Element&&"function"==typeof e.scrollIntoView&&e.scrollIntoView(t)}_getClassOptions(t){const e=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,n=t.classes?t.classes:"",o=e&&e.classes?e.classes:"",r=[...n.split(" "),...o.split(" ")],i=new Set(r);return Array.from(i).join(" ").trim()}_setOptions(t={}){let e=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;e=l({},e||{}),this.options=Object.assign({arrow:!0},e,t);const{when:n}=this.options;this.options.classes=this._getClassOptions(t),this.destroy(),this.id=this.options.id||`step-${Mt()}`,n&&Object.keys(n).forEach(t=>{this.on(t,n[t],this)})}_setupElements(){f(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&m(this),At(this)}_show(){this.trigger("before-show"),this._setupElements(),this.tour.modal||this.tour._setupModal(),this.tour.modal.setupForStep(this),this._styleTargetElementForStep(this),this.el.hidden=!1,this.options.scrollTo&&setTimeout(()=>{this._scrollTo(this.options.scrollTo)}),this.el.hidden=!1;const t=this.shepherdElementComponent.getElement(),e=this.target||document.body;e.classList.add(`${this.classPrefix}shepherd-enabled`),e.classList.add(`${this.classPrefix}shepherd-target`),t.classList.add("shepherd-enabled"),this.trigger("show")}_styleTargetElementForStep(t){const e=t.target;e&&(t.options.highlightClass&&e.classList.add(t.options.highlightClass),!1===t.options.canClickTarget&&e.classList.add("shepherd-target-click-disabled"))}_updateStepTargetOnHide(){const t=this.target||document.body;this.options.highlightClass&&t.classList.remove(this.options.highlightClass),t.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)}}function dn(t){let e,n,o,r,i;return{c(){e=Yt("svg"),Zt(n=Yt("path"),"d",t[2]),Zt(e,"class",o=`${t[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)},m(o,s){Ft(o,e,s),Nt(e,n),t[11](e),r||(i=zt(e,"touchmove",t[3]),r=!0)},p(t,[r]){4&r&&Zt(n,"d",t[2]),2&r&&o!==(o=`${t[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)&&Zt(e,"class",o)},i:Ct,o:Ct,d(n){n&&qt(e),t[11](null),r=!1,i()}}}function hn(t,e,n){let{element:o}=e,{openingProperties:r}=e;Mt();let i,s=!1,a=void 0;l();function l(){n(4,r={width:0,height:0,x:0,y:0,r:0})}function c(){n(1,s=!1),d()}function p(t=0,e=0,o,i){if(i){const{y:s,height:a}=function(t,e){const n=t.getBoundingClientRect();let o=n.y||n.top,r=n.bottom||o+n.height;if(e){const t=e.getBoundingClientRect(),n=t.y||t.top,i=t.bottom||n+t.height;o=Math.max(o,n),r=Math.min(r,i)}return{y:o,height:Math.max(r-o,0)}}(i,o),{x:l,width:c,left:p}=i.getBoundingClientRect();n(4,r={width:c+2*t,height:a+2*t,x:(l||p)-t,y:s-t,r:e})}else l()}function u(){n(1,s=!0)}const f=t=>{t.preventDefault()};function d(){a&&(cancelAnimationFrame(a),a=void 0),window.removeEventListener("touchmove",f,{passive:!1})}return t.$$set=(t=>{"element"in t&&n(0,o=t.element),"openingProperties"in t&&n(4,r=t.openingProperties)}),t.$$.update=(()=>{16&t.$$.dirty&&n(2,i=function({width:t,height:e,x:n=0,y:o=0,r:r=0}){const{innerWidth:i,innerHeight:s}=window;return`M${i},${s}H0V0H${i}V${s}ZM${n+r},${o}a${r},${r},0,0,0-${r},${r}V${e+o-r}a${r},${r},0,0,0,${r},${r}H${t+n-r}a${r},${r},0,0,0,${r}-${r}V${o+r}a${r},${r},0,0,0-${r}-${r}Z`}(r))}),[o,s,i,t=>{t.stopPropagation()},r,()=>o,l,c,p,function(t){d(),t.tour.options.useModalOverlay?(function(t){const{modalOverlayOpeningPadding:e,modalOverlayOpeningRadius:n}=t.options,o=function t(e){if(!e)return null;const n=e instanceof HTMLElement&&window.getComputedStyle(e).overflowY;return"hidden"!==n&&"visible"!==n&&e.scrollHeight>=e.clientHeight?e:t(e.parentElement)}(t.target),r=()=>{a=void 0,p(e,n,o,t.target),a=requestAnimationFrame(r)};r(),window.addEventListener("touchmove",f,{passive:!1})}(t),u()):c()},u,function(t){oe[t?"unshift":"push"](()=>{n(0,o=t)})}]}class mn extends Ee{constructor(t){super(),Oe(this,t,hn,dn,Wt,{element:0,openingProperties:4,getElement:5,closeModalOpening:6,hide:7,positionModal:8,setupForStep:9,show:10})}get getElement(){return this.$$.ctx[5]}get closeModalOpening(){return this.$$.ctx[6]}get hide(){return this.$$.ctx[7]}get positionModal(){return this.$$.ctx[8]}get setupForStep(){return this.$$.ctx[9]}get show(){return this.$$.ctx[10]}}const gn=new d;return Object.assign(gn,{Tour:class extends d{constructor(t={}){return super(t),h(this),this.options=Object.assign({},{exitOnEsc:!0,keyboardNavigation:!0},t),this.classPrefix=_t(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps),["active","cancel","complete","inactive","show","start"].map(t=>{(t=>{this.on(t,e=>{(e=e||{}).tour=this,gn.trigger(t,e)})})(t)}),this._setTourID(),this}addStep(t,e){let n=t;return n instanceof fn?n.tour=this:n=new fn(this,n),f(e)?this.steps.push(n):this.steps.splice(e,0,n),n}addSteps(t){return Array.isArray(t)&&t.forEach(t=>{this.addStep(t)}),this}back(){const t=this.steps.indexOf(this.currentStep);this.show(t-1,!1)}cancel(){if(this.options.confirmCancel){const t=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";window.confirm(t)&&this._done("cancel")}else this._done("cancel")}complete(){this._done("complete")}getById(t){return this.steps.find(e=>e.id===t)}getCurrentStep(){return this.currentStep}hide(){const t=this.getCurrentStep();if(t)return t.hide()}isActive(){return gn.activeTour===this}next(){const t=this.steps.indexOf(this.currentStep);t===this.steps.length-1?this.complete():this.show(t+1,!0)}removeStep(t){const e=this.getCurrentStep();this.steps.some((e,n)=>{if(e.id===t)return e.isOpen()&&e.hide(),e.destroy(),this.steps.splice(n,1),!0}),e&&e.id===t&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(t=0,e=!0){const n=u(t)?this.getById(t):this.steps[t];n&&(this._updateStateBeforeShow(),p(n.options.showOn)&&!n.options.showOn()?this._skipStep(n,e):(this.trigger("show",{step:n,previous:this.currentStep}),this.currentStep=n,n.show()))}start(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this._setupModal(),this._setupActiveTour(),this.next()}_done(t){const e=this.steps.indexOf(this.currentStep);if(Array.isArray(this.steps)&&this.steps.forEach(t=>t.destroy()),function(t){if(t){const{steps:e}=t;e.forEach(t=>{t.options&&!1===t.options.canClickTarget&&t.options.attachTo&&t.target instanceof HTMLElement&&t.target.classList.remove("shepherd-target-click-disabled")})}}(this),this.trigger(t,{index:e}),gn.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),("cancel"===t||"complete"===t)&&this.modal){const t=document.querySelector(".shepherd-modal-overlay-container");t&&t.remove()}c(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),gn.activeTour=this}_setupModal(){this.modal=new mn({target:this.options.modalContainer||document.body,props:{classPrefix:this.classPrefix,styles:this.styles}})}_skipStep(t,e){const n=this.steps.indexOf(t),o=e?n+1:n-1;this.show(o,e)}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(){const t=this.options.tourName||"tour";this.id=`${t}--${Mt()}`}},Step:fn}),gn});
//# sourceMappingURL=shepherd.js.map

let myTour = new Shepherd.Tour();


var mycred_tour_data = [
    [
        {
            title: 'Singular'+ '<span class=num>1 of 6</span><span class="dashicons dashicons-dismiss cancel" onclick="myTour.cancel()"></span>',
            text: 'Admin can set the "Singular" point type label here.',
            attachTo: { 
            element: '#generalnamesingular', 
            on: 'bottom'
            },
            buttons: [
                {
                text: 'Next',
                action:myTour.next
				}
        ]},
        {
            title: 'Plural'+ '<span class=num>2 of 6</span><span class="dashicons dashicons-dismiss cancel" onclick="myTour.cancel()"></span>',
            text: 'Admin can set the "Plural" points type label here.',
            attachTo: { 
            element: '#generalnameplural', 
            on: 'bottom'
            },
            buttons: [
                {
                text: 'Back',
                action: myTour.back,
                classes: 'shepherd-button-secondary',
                },
                {
                text: 'Next',
                action: myTour.next
            }
        ]},
        {
            title: 'Prefix'+ '<span class=num>3 of 6</span><span class="dashicons dashicons-dismiss cancel" onclick="myTour.cancel()"></span>',
            text: 'Admin can set the "Prefix" point type label here.',
            attachTo: { 
            element: '#generalbefore', 
            on: 'bottom'
            },
            buttons: [
                {
                text: 'Back',
                action: myTour.back,
                classes: 'shepherd-button-secondary',
                },
                {
                text: 'Next',
                action: function () {
                    if ( mycred_tour_guide.step == 1 ) {
                        window.location.href = mycred_tour_guide.redirect_url;
                    }
                }
            }
        ]},
    ],
    [
        {
            title: 'Log' + '<span class=num>4 of 6</span><span class="dashicons dashicons-dismiss cancel" onclick="myTour.cancel()"></span>',
            text: 'Each time you reward or deduct points from a user, the transaction is documented here in the log table.',
            attachTo: { 
            element: '#toplevel_page_mycred .current', 
            on: 'left'
            },
            buttons: [
                {
                text: 'Next',
                action: function () {
                    if (mycred_tour_guide.step == 2 || mycred_tour_guide.step == 3) {
                        window.location.href = mycred_tour_guide.redirect_url;
                    }
                }
            }
        ]},
    ],
    [
        {
            title: 'Hooks' + '<span class=num>5 of 6</span><span><span class="dashicons dashicons-dismiss cancel" onclick="myTour.cancel()"></span>',
            text: 'myCred "Hooks" are managed just like WordPress widgets. You have one "sidebar" called "Active Hooks" where you drag hooks you want to use. Hooks dragged out of the sidebar are disabled',
            attachTo: { 
            element: '#toplevel_page_mycred .current', 
            on: 'left'
            },
            buttons: [
                {
                text: 'Next',
                action: function () {
                    if (mycred_tour_guide.step == 2 || mycred_tour_guide.step == 3) {
                        window.location.href = mycred_tour_guide.redirect_url;
                    }
                }
            }
        ]},
    ],
    [
        {
            title: 'Add-ons' + '<span class=num>6 of 6</span><span class="dashicons dashicons-dismiss cancel" onclick="myTour.cancel()"></span>',
            text: 'myCred comes with multiple built-in add-ons for expanding installation with additional features, such as transfers, notifications, statistics, buyCred, cashCred, and much more.',
            attachTo: { 
            element: '#toplevel_page_mycred .current', 
            on: 'left'
            },
            buttons: [
                {
                text: 'Finish',
                action: myTour.complete
            }
        ]},
    ],
];

jQuery(function($) {

	if ( typeof mycred_tour_guide !== 'undefined' && typeof mycred_tour_guide.step !== 'undefined' ) {

		if ( mycred_tour_guide.step == 1 ) {

			$('html, body').animate({
				scrollTop: $("#accordion").offset().top
			},1000);

			$( "#accordion" ).accordion({ active: 0 });

		}

		myTour.addSteps( mycred_tour_data[ mycred_tour_guide.step - 1 ] );
		myTour.start();
	
	}

});







	
	
	



// Attach the touruide start evene to the button press