name : guidedtours-es5.min.js
(function(){"use strict";function X(){X=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(h,c,y){h[c]=y.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(h,c,y){return Object.defineProperty(h,c,{value:y,enumerable:!0,configurable:!0,writable:!0}),h[c]}try{u({},"")}catch{u=function(c,y,x){return c[y]=x}}function f(h,c,y,x){var _=c&&c.prototype instanceof L?c:L,k=Object.create(_.prototype),D=new p(x||[]);return i(k,"_invoke",{value:N(h,y,D)}),k}function v(h,c,y){try{return{type:"normal",arg:h.call(c,y)}}catch(x){return{type:"throw",arg:x}}}t.wrap=f;var d="suspendedStart",w="suspendedYield",m="executing",T="completed",O={};function L(){}function A(){}function S(){}var b={};u(b,a,function(){return this});var g=Object.getPrototypeOf,I=g&&g(g(q([])));I&&I!==r&&n.call(I,a)&&(b=I);var E=S.prototype=L.prototype=Object.create(b);function P(h){["next","throw","return"].forEach(function(c){u(h,c,function(y){return this._invoke(c,y)})})}function F(h,c){function y(_,k,D,V){var W=v(h[_],h,k);if(W.type!=="throw"){var U=W.arg,B=U.value;return B&&typeof B=="object"&&n.call(B,"__await")?c.resolve(B.__await).then(function(J){y("next",J,D,V)},function(J){y("throw",J,D,V)}):c.resolve(B).then(function(J){U.value=J,D(U)},function(J){return y("throw",J,D,V)})}V(W.arg)}var x;i(this,"_invoke",{value:function(_,k){function D(){return new c(function(V,W){y(_,k,V,W)})}return x=x?x.then(D,D):D()}})}function N(h,c,y){var x=d;return function(_,k){if(x===m)throw new Error("Generator is already running");if(x===T){if(_==="throw")throw k;return{value:e,done:!0}}for(y.method=_,y.arg=k;;){var D=y.delegate;if(D){var V=R(D,y);if(V){if(V===O)continue;return V}}if(y.method==="next")y.sent=y._sent=y.arg;else if(y.method==="throw"){if(x===d)throw x=T,y.arg;y.dispatchException(y.arg)}else y.method==="return"&&y.abrupt("return",y.arg);x=m;var W=v(h,c,y);if(W.type==="normal"){if(x=y.done?T:w,W.arg===O)continue;return{value:W.arg,done:y.done}}W.type==="throw"&&(x=T,y.method="throw",y.arg=W.arg)}}}function R(h,c){var y=c.method,x=h.iterator[y];if(x===e)return c.delegate=null,y==="throw"&&h.iterator.return&&(c.method="return",c.arg=e,R(h,c),c.method==="throw")||y!=="return"&&(c.method="throw",c.arg=new TypeError("The iterator does not provide a '"+y+"' method")),O;var _=v(x,h.iterator,c.arg);if(_.type==="throw")return c.method="throw",c.arg=_.arg,c.delegate=null,O;var k=_.arg;return k?k.done?(c[h.resultName]=k.value,c.next=h.nextLoc,c.method!=="return"&&(c.method="next",c.arg=e),c.delegate=null,O):k:(c.method="throw",c.arg=new TypeError("iterator result is not an object"),c.delegate=null,O)}function M(h){var c={tryLoc:h[0]};1 in h&&(c.catchLoc=h[1]),2 in h&&(c.finallyLoc=h[2],c.afterLoc=h[3]),this.tryEntries.push(c)}function j(h){var c=h.completion||{};c.type="normal",delete c.arg,h.completion=c}function p(h){this.tryEntries=[{tryLoc:"root"}],h.forEach(M,this),this.reset(!0)}function q(h){if(h||h===""){var c=h[a];if(c)return c.call(h);if(typeof h.next=="function")return h;if(!isNaN(h.length)){var y=-1,x=function _(){for(;++y<h.length;)if(n.call(h,y))return _.value=h[y],_.done=!1,_;return _.value=e,_.done=!0,_};return x.next=x}}throw new TypeError(typeof h+" is not iterable")}return A.prototype=S,i(E,"constructor",{value:S,configurable:!0}),i(S,"constructor",{value:A,configurable:!0}),A.displayName=u(S,l,"GeneratorFunction"),t.isGeneratorFunction=function(h){var c=typeof h=="function"&&h.constructor;return!!c&&(c===A||(c.displayName||c.name)==="GeneratorFunction")},t.mark=function(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,S):(h.__proto__=S,u(h,l,"GeneratorFunction")),h.prototype=Object.create(E),h},t.awrap=function(h){return{__await:h}},P(F.prototype),u(F.prototype,s,function(){return this}),t.AsyncIterator=F,t.async=function(h,c,y,x,_){_===void 0&&(_=Promise);var k=new F(f(h,c,y,x),_);return t.isGeneratorFunction(c)?k:k.next().then(function(D){return D.done?D.value:k.next()})},P(E),u(E,l,"Generator"),u(E,a,function(){return this}),u(E,"toString",function(){return"[object Generator]"}),t.keys=function(h){var c=Object(h),y=[];for(var x in c)y.push(x);return y.reverse(),function _(){for(;y.length;){var k=y.pop();if(k in c)return _.value=k,_.done=!1,_}return _.done=!0,_}},t.values=q,p.prototype={constructor:p,reset:function(h){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!h)for(var c in this)c.charAt(0)==="t"&&n.call(this,c)&&!isNaN(+c.slice(1))&&(this[c]=e)},stop:function(){this.done=!0;var h=this.tryEntries[0].completion;if(h.type==="throw")throw h.arg;return this.rval},dispatchException:function(h){if(this.done)throw h;var c=this;function y(W,U){return k.type="throw",k.arg=h,c.next=W,U&&(c.method="next",c.arg=e),!!U}for(var x=this.tryEntries.length-1;x>=0;--x){var _=this.tryEntries[x],k=_.completion;if(_.tryLoc==="root")return y("end");if(_.tryLoc<=this.prev){var D=n.call(_,"catchLoc"),V=n.call(_,"finallyLoc");if(D&&V){if(this.prev<_.catchLoc)return y(_.catchLoc,!0);if(this.prev<_.finallyLoc)return y(_.finallyLoc)}else if(D){if(this.prev<_.catchLoc)return y(_.catchLoc,!0)}else{if(!V)throw new Error("try statement without catch or finally");if(this.prev<_.finallyLoc)return y(_.finallyLoc)}}}},abrupt:function(h,c){for(var y=this.tryEntries.length-1;y>=0;--y){var x=this.tryEntries[y];if(x.tryLoc<=this.prev&&n.call(x,"finallyLoc")&&this.prev<x.finallyLoc){var _=x;break}}_&&(h==="break"||h==="continue")&&_.tryLoc<=c&&c<=_.finallyLoc&&(_=null);var k=_?_.completion:{};return k.type=h,k.arg=c,_?(this.method="next",this.next=_.finallyLoc,O):this.complete(k)},complete:function(h,c){if(h.type==="throw")throw h.arg;return h.type==="break"||h.type==="continue"?this.next=h.arg:h.type==="return"?(this.rval=this.arg=h.arg,this.method="return",this.next="end"):h.type==="normal"&&c&&(this.next=c),O},finish:function(h){for(var c=this.tryEntries.length-1;c>=0;--c){var y=this.tryEntries[c];if(y.finallyLoc===h)return this.complete(y.completion,y.afterLoc),j(y),O}},catch:function(h){for(var c=this.tryEntries.length-1;c>=0;--c){var y=this.tryEntries[c];if(y.tryLoc===h){var x=y.completion;if(x.type==="throw"){var _=x.arg;j(y)}return _}}throw new Error("illegal catch attempt")},delegateYield:function(h,c,y){return this.delegate={iterator:q(h),resultName:c,nextLoc:y},this.method==="next"&&(this.arg=e),O}},t}function _t(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(u){r(u);return}s.done?t(l):Promise.resolve(l).then(n,i)}function ve(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function a(l){_t(o,n,i,a,s,"next",l)}function s(l){_t(o,n,i,a,s,"throw",l)}a(void 0)})}}function Et(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,vn(n.key),n)}}function Tt(e,t,r){return t&&Et(e.prototype,t),r&&Et(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function te(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,nt(e,t)}function nt(e,t){return nt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},nt(e,t)}function Y(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pn(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vn(e){var t=pn(e,"string");return typeof t=="symbol"?t:String(t)}/*! shepherd.js 11.2.0 */var mn=function(t){return gn(t)&&!yn(t)};function gn(e){return!!e&&typeof e=="object"}function yn(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Sn(e)}var bn=typeof Symbol=="function"&&Symbol.for,wn=bn?Symbol.for("react.element"):60103;function Sn(e){return e.$$typeof===wn}function _n(e){return Array.isArray(e)?[]:{}}function Fe(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Oe(_n(e),e,t):e}function En(e,t,r){return e.concat(t).map(function(n){return Fe(n,r)})}function Tn(e,t){if(!t.customMerge)return Oe;var r=t.customMerge(e);return typeof r=="function"?r:Oe}function On(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Ot(e){return Object.keys(e).concat(On(e))}function It(e,t){try{return t in e}catch{return!1}}function In(e,t){return It(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function An(e,t,r){var n={};return r.isMergeableObject(e)&&Ot(e).forEach(function(i){n[i]=Fe(e[i],r)}),Ot(t).forEach(function(i){In(e,i)||(It(e,i)&&r.isMergeableObject(t[i])?n[i]=Tn(i,r)(e[i],t[i],r):n[i]=Fe(t[i],r))}),n}function Oe(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||En,r.isMergeableObject=r.isMergeableObject||mn,r.cloneUnlessOtherwiseSpecified=Fe;var n=Array.isArray(t),i=Array.isArray(e),o=n===i;return o?n?r.arrayMerge(e,t,r):An(e,t,r):Fe(t,r)}Oe.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return Oe(n,i,r)},{})};var Ln=Oe,rt=Ln;function xn(e){return e instanceof Element}function it(e){return e instanceof HTMLElement}function me(e){return typeof e=="function"}function Ne(e){return typeof e=="string"}function z(e){return e===void 0}var ot=function(){function e(){}var t=e.prototype;return t.on=function(n,i,o,a){return a===void 0&&(a=!1),z(this.bindings)&&(this.bindings={}),z(this.bindings[n])&&(this.bindings[n]=[]),this.bindings[n].push({handler:i,ctx:o,once:a}),this},t.once=function(n,i,o){return this.on(n,i,o,!0)},t.off=function(n,i){var o=this;return z(this.bindings)||z(this.bindings[n])?this:(z(i)?delete this.bindings[n]:this.bindings[n].forEach(function(a,s){a.handler===i&&o.bindings[n].splice(s,1)}),this)},t.trigger=function(n){for(var i=this,o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return!z(this.bindings)&&this.bindings[n]&&this.bindings[n].forEach(function(l,u){var f=l.ctx,v=l.handler,d=l.once,w=f||i;v.apply(w,a),d&&i.bindings[n].splice(u,1)}),this},e}();function At(e){for(var t=Object.getOwnPropertyNames(e.constructor.prototype),r=0;r<t.length;r++){var n=t[r],i=e[n];n!=="constructor"&&typeof i=="function"&&(e[n]=i.bind(e))}return e}function kn(e,t){return function(r){if(t.isOpen()){var n=t.el&&r.currentTarget===t.el,i=!z(e)&&r.currentTarget.matches(e);(i||n)&&t.tour.next()}}}function Pn(e){var t=e.options.advanceOn||{},r=t.event,n=t.selector;if(r){var i=kn(n,e),o;try{o=document.querySelector(n)}catch{}if(!z(n)&&!o)return console.error("No element was found for the selector supplied to advanceOn: "+n);o?(o.addEventListener(r,i),e.on("destroy",function(){return o.removeEventListener(r,i)})):(document.body.addEventListener(r,i,!0),e.on("destroy",function(){return document.body.removeEventListener(r,i,!0)}))}else return console.error("advanceOn was defined, but no event name was passed.")}function Lt(e){return!Ne(e)||e===""?"":e.charAt(e.length-1)!=="-"?e+"-":e}function Cn(e){var t=e.options.attachTo||{},r=Object.assign({},t);if(me(r.element)&&(r.element=r.element.call(e)),Ne(r.element)){try{r.element=document.querySelector(r.element)}catch{}r.element||console.error("The element for this Shepherd step was not found "+t.element)}return r}function xt(e){return e==null?!0:!e.element||!e.on}function at(){var e=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var r=(e+Math.random()*16)%16|0;return e=Math.floor(e/16),(t=="x"?r:r&3|8).toString(16)})}function K(){return K=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},K.apply(this,arguments)}function kt(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Ie=Math.min,ge=Math.max,qe=Math.round,Ge=Math.floor,fe=function(t){return{x:t,y:t}},Rn={left:"right",right:"left",bottom:"top",top:"bottom"},Mn={start:"end",end:"start"};function st(e,t,r){return ge(e,Ie(t,r))}function Ae(e,t){return typeof e=="function"?e(t):e}function ye(e){return e.split("-")[0]}function Ve(e){return e.split("-")[1]}function ut(e){return e==="x"?"y":"x"}function lt(e){return e==="y"?"height":"width"}function We(e){return["top","bottom"].includes(ye(e))?"y":"x"}function ft(e){return ut(We(e))}function Dn(e,t,r){r===void 0&&(r=!1);var n=Ve(e),i=ft(e),o=lt(i),a=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Je(a)),[a,Je(a)]}function Fn(e){var t=Je(e);return[ct(e),t,ct(t)]}function ct(e){return e.replace(/start|end/g,function(t){return Mn[t]})}function Nn(e,t,r){var n=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return r?t?i:n:t?n:i;case"left":case"right":return t?o:a;default:return[]}}function Hn(e,t,r,n){var i=Ve(e),o=Nn(ye(e),r==="start",n);return i&&(o=o.map(function(a){return a+"-"+i}),t&&(o=o.concat(o.map(ct)))),o}function Je(e){return e.replace(/left|right|bottom|top/g,function(t){return Rn[t]})}function Un(e){return K({top:0,right:0,bottom:0,left:0},e)}function Pt(e){return typeof e!="number"?Un(e):{top:e,right:e,bottom:e,left:e}}function Ye(e){return K({},e,{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}var Bn=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],jn=["mainAxis","crossAxis","limiter"];function Ct(e,t,r){var n=e.reference,i=e.floating,o=We(t),a=ft(t),s=lt(a),l=ye(t),u=o==="y",f=n.x+n.width/2-i.width/2,v=n.y+n.height/2-i.height/2,d=n[s]/2-i[s]/2,w;switch(l){case"top":w={x:f,y:n.y-i.height};break;case"bottom":w={x:f,y:n.y+n.height};break;case"right":w={x:n.x+n.width,y:v};break;case"left":w={x:n.x-i.width,y:v};break;default:w={x:n.x,y:n.y}}switch(Ve(t)){case"start":w[a]-=d*(r&&u?-1:1);break;case"end":w[a]+=d*(r&&u?-1:1);break}return w}var qn=function(){var e=ve(X().mark(function t(r,n,i){var o,a,s,l,u,f,v,d,w,m,T,O,L,A,S,b,g,I,E,P,F,N,R,M,j,p,q;return X().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return o=i.placement,a=o===void 0?"bottom":o,s=i.strategy,l=s===void 0?"absolute":s,u=i.middleware,f=u===void 0?[]:u,v=i.platform,d=f.filter(Boolean),c.next=4,v.isRTL==null?void 0:v.isRTL(n);case 4:return w=c.sent,c.next=7,v.getElementRects({reference:r,floating:n,strategy:l});case 7:m=c.sent,T=Ct(m,a,w),O=T.x,L=T.y,A=a,S={},b=0,g=0;case 13:if(!(g<d.length)){c.next=46;break}return E=d[g],P=E.name,F=E.fn,c.next=17,F({x:O,y:L,initialPlacement:a,placement:A,strategy:l,middlewareData:S,rects:m,platform:v,elements:{reference:r,floating:n}});case 17:if(N=c.sent,R=N.x,M=N.y,j=N.data,p=N.reset,O=R??O,L=M??L,S=K({},S,(I={},I[P]=K({},S[P],j),I)),!(p&&b<=50)){c.next=43;break}if(b++,typeof p!="object"){c.next=41;break}if(p.placement&&(A=p.placement),!p.rects){c.next=38;break}if(p.rects!==!0){c.next=36;break}return c.next=33,v.getElementRects({reference:r,floating:n,strategy:l});case 33:c.t0=c.sent,c.next=37;break;case 36:c.t0=p.rects;case 37:m=c.t0;case 38:q=Ct(m,A,w),O=q.x,L=q.y;case 41:return g=-1,c.abrupt("continue",43);case 43:g++,c.next=13;break;case 46:return c.abrupt("return",{x:O,y:L,placement:A,strategy:l,middlewareData:S});case 47:case"end":return c.stop()}},t)}));return function(r,n,i){return e.apply(this,arguments)}}();function Rt(e,t){return dt.apply(this,arguments)}function dt(){return dt=ve(X().mark(function e(t,r){var n,i,o,a,s,l,u,f,v,d,w,m,T,O,L,A,S,b,g,I,E,P,F,N,R,M;return X().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return r===void 0&&(r={}),i=t.x,o=t.y,a=t.platform,s=t.rects,l=t.elements,u=t.strategy,f=Ae(r,t),v=f.boundary,d=v===void 0?"clippingAncestors":v,w=f.rootBoundary,m=w===void 0?"viewport":w,T=f.elementContext,O=T===void 0?"floating":T,L=f.altBoundary,A=L===void 0?!1:L,S=f.padding,b=S===void 0?0:S,g=Pt(b),I=O==="floating"?"reference":"floating",E=l[A?I:O],p.t0=Ye,p.t1=a,p.next=10,a.isElement==null?void 0:a.isElement(E);case 10:if(p.t2=n=p.sent,p.t2==null){p.next=15;break}p.t3=n,p.next=16;break;case 15:p.t3=!0;case 16:if(!p.t3){p.next=20;break}p.t4=E,p.next=26;break;case 20:if(p.t5=E.contextElement,p.t5){p.next=25;break}return p.next=24,a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating);case 24:p.t5=p.sent;case 25:p.t4=p.t5;case 26:return p.t6=p.t4,p.t7=d,p.t8=m,p.t9=u,p.t10={element:p.t6,boundary:p.t7,rootBoundary:p.t8,strategy:p.t9},p.next=33,p.t1.getClippingRect.call(p.t1,p.t10);case 33:return p.t11=p.sent,P=(0,p.t0)(p.t11),F=O==="floating"?K({},s.floating,{x:i,y:o}):s.reference,p.next=38,a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating);case 38:return N=p.sent,p.next=41,a.isElement==null?void 0:a.isElement(N);case 41:if(!p.sent){p.next=50;break}return p.next=44,a.getScale==null?void 0:a.getScale(N);case 44:if(p.t13=p.sent,p.t13){p.next=47;break}p.t13={x:1,y:1};case 47:p.t12=p.t13,p.next=51;break;case 50:p.t12={x:1,y:1};case 51:if(R=p.t12,p.t14=Ye,!a.convertOffsetParentRelativeRectToViewportRelativeRect){p.next=59;break}return p.next=56,a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:F,offsetParent:N,strategy:u});case 56:p.t15=p.sent,p.next=60;break;case 59:p.t15=F;case 60:return p.t16=p.t15,M=(0,p.t14)(p.t16),p.abrupt("return",{top:(P.top-M.top+g.top)/R.y,bottom:(M.bottom-P.bottom+g.bottom)/R.y,left:(P.left-M.left+g.left)/R.x,right:(M.right-P.right+g.right)/R.x});case 63:case"end":return p.stop()}},e)})),dt.apply(this,arguments)}var Gn=function(t){return{name:"arrow",options:t,fn:function(n){return ve(X().mark(function i(){var o,a,s,l,u,f,v,d,w,m,T,O,L,A,S,b,g,I,E,P,F,N,R,M,j,p,q,h,c,y,x,_,k,D,V;return X().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:if(s=n.x,l=n.y,u=n.placement,f=n.rects,v=n.platform,d=n.elements,w=Ae(t,n)||{},m=w.element,T=w.padding,O=T===void 0?0:T,m!=null){U.next=4;break}return U.abrupt("return",{});case 4:return L=Pt(O),A={x:s,y:l},S=ft(u),b=lt(S),U.next=10,v.getDimensions(m);case 10:return g=U.sent,I=S==="y",E=I?"top":"left",P=I?"bottom":"right",F=I?"clientHeight":"clientWidth",N=f.reference[b]+f.reference[S]-A[S]-f.floating[b],R=A[S]-f.reference[S],U.next=19,v.getOffsetParent==null?void 0:v.getOffsetParent(m);case 19:if(M=U.sent,j=M?M[F]:0,U.t0=!j,U.t0){U.next=26;break}return U.next=25,v.isElement==null?void 0:v.isElement(M);case 25:U.t0=!U.sent;case 26:if(!U.t0){U.next=28;break}j=d.floating[F]||f.floating[b];case 28:return p=N/2-R/2,q=j/2-g[b]/2-1,h=Ie(L[E],q),c=Ie(L[P],q),y=h,x=j-g[b]-c,_=j/2-g[b]/2+p,k=st(y,_,x),D=Ve(u)!=null&&_!=k&&f.reference[b]/2-(_<y?h:c)-g[b]/2<0,V=D?_<y?y-_:x-_:0,U.abrupt("return",(a={},a[S]=A[S]-V,a.data=(o={},o[S]=k,o.centerOffset=_-k+V,o),a));case 39:case"end":return U.stop()}},i)}))()}}},Vn=function(t){return t===void 0&&(t={}),{name:"flip",options:t,fn:function(n){return ve(X().mark(function i(){var o,a,s,l,u,f,v,d,w,m,T,O,L,A,S,b,g,I,E,P,F,N,R,M,j,p,q,h,c,y,x,_,k,D,V,W;return X().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return a=n.placement,s=n.middlewareData,l=n.rects,u=n.initialPlacement,f=n.platform,v=n.elements,d=Ae(t,n),w=d.mainAxis,m=w===void 0?!0:w,T=d.crossAxis,O=T===void 0?!0:T,L=d.fallbackPlacements,A=d.fallbackStrategy,S=A===void 0?"bestFit":A,b=d.fallbackAxisSideDirection,g=b===void 0?"none":b,I=d.flipAlignment,E=I===void 0?!0:I,P=kt(d,Bn),F=ye(a),N=ye(u)===u,B.next=6,f.isRTL==null?void 0:f.isRTL(v.floating);case 6:return R=B.sent,M=L||(N||!E?[Je(u)]:Fn(u)),!L&&g!=="none"&&M.push.apply(M,Hn(u,E,g,R)),j=[u].concat(M),B.next=12,Rt(n,P);case 12:if(p=B.sent,q=[],h=((o=s.flip)==null?void 0:o.overflows)||[],m&&q.push(p[F]),O&&(c=Dn(a,l,R),q.push(p[c[0]],p[c[1]])),h=[].concat(h,[{placement:a,overflows:q}]),q.every(function(J){return J<=0})){B.next=35;break}if(_=(((y=s.flip)==null?void 0:y.index)||0)+1,k=j[_],!k){B.next=23;break}return B.abrupt("return",{data:{index:_,overflows:h},reset:{placement:k}});case 23:if(D=(x=h.filter(function(J){return J.overflows[0]<=0}).sort(function(J,Te){return J.overflows[1]-Te.overflows[1]})[0])==null?void 0:x.placement,D){B.next=33;break}B.t0=S,B.next=B.t0==="bestFit"?28:B.t0==="initialPlacement"?31:33;break;case 28:return W=(V=h.map(function(J){return[J.placement,J.overflows.filter(function(Te){return Te>0}).reduce(function(Te,Ti){return Te+Ti},0)]}).sort(function(J,Te){return J[1]-Te[1]})[0])==null?void 0:V[0],W&&(D=W),B.abrupt("break",33);case 31:return D=u,B.abrupt("break",33);case 33:if(a===D){B.next=35;break}return B.abrupt("return",{reset:{placement:D}});case 35:return B.abrupt("return",{});case 36:case"end":return B.stop()}},i)}))()}}},Wn=function(t){return t===void 0&&(t={}),{name:"shift",options:t,fn:function(n){return ve(X().mark(function i(){var o,a,s,l,u,f,v,d,w,m,T,O,L,A,S,b,g,I,E,P,F,N,R,M,j,p,q;return X().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return a=n.x,s=n.y,l=n.placement,u=Ae(t,n),f=u.mainAxis,v=f===void 0?!0:f,d=u.crossAxis,w=d===void 0?!1:d,m=u.limiter,T=m===void 0?{fn:function(x){var _=x.x,k=x.y;return{x:_,y:k}}}:m,O=kt(u,jn),L={x:a,y:s},c.next=5,Rt(n,O);case 5:return A=c.sent,S=We(ye(l)),b=ut(S),g=L[b],I=L[S],v&&(E=b==="y"?"top":"left",P=b==="y"?"bottom":"right",F=g+A[E],N=g-A[P],g=st(F,g,N)),w&&(R=S==="y"?"top":"left",M=S==="y"?"bottom":"right",j=I+A[R],p=I-A[M],I=st(j,I,p)),q=T.fn(K({},n,(o={},o[b]=g,o[S]=I,o))),c.abrupt("return",K({},q,{data:{x:q.x-a,y:q.y-s}}));case 14:case"end":return c.stop()}},i)}))()}}},Jn=function(t){return t===void 0&&(t={}),{options:t,fn:function(n){var i,o=n.x,a=n.y,s=n.placement,l=n.rects,u=n.middlewareData,f=Ae(t,n),v=f.offset,d=v===void 0?0:v,w=f.mainAxis,m=w===void 0?!0:w,T=f.crossAxis,O=T===void 0?!0:T,L={x:o,y:a},A=We(s),S=ut(A),b=L[S],g=L[A],I=Ae(d,n),E=typeof I=="number"?{mainAxis:I,crossAxis:0}:K({mainAxis:0,crossAxis:0},I);if(m){var P=S==="y"?"height":"width",F=l.reference[S]-l.floating[P]+E.mainAxis,N=l.reference[S]+l.reference[P]-E.mainAxis;b<F?b=F:b>N&&(b=N)}if(O){var R,M,j=S==="y"?"width":"height",p=["top","left"].includes(ye(s)),q=l.reference[A]-l.floating[j]+(p&&((R=u.offset)==null?void 0:R[A])||0)+(p?0:E.crossAxis),h=l.reference[A]+l.reference[j]+(p?0:((M=u.offset)==null?void 0:M[A])||0)-(p?E.crossAxis:0);g<q?g=q:g>h&&(g=h)}return i={},i[S]=b,i[A]=g,i}}};function ce(e){return Mt(e)?(e.nodeName||"").toLowerCase():"#document"}function Z(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function oe(e){var t;return(t=(Mt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Mt(e){return e instanceof Node||e instanceof Z(e).Node}function ae(e){return e instanceof Element||e instanceof Z(e).Element}function re(e){return e instanceof HTMLElement||e instanceof Z(e).HTMLElement}function Dt(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Z(e).ShadowRoot}function He(e){var t=$(e),r=t.overflow,n=t.overflowX,i=t.overflowY,o=t.display;return/auto|scroll|overlay|hidden|clip/.test(r+i+n)&&!["inline","contents"].includes(o)}function Yn(e){return["table","td","th"].includes(ce(e))}function ht(e){var t=pt(),r=$(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(function(n){return(r.willChange||"").includes(n)})||["paint","layout","strict","content"].some(function(n){return(r.contain||"").includes(n)})}function zn(e){for(var t=Le(e);re(t)&&!ze(t);){if(ht(t))return t;t=Le(t)}return null}function pt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ze(e){return["html","body","#document"].includes(ce(e))}function $(e){return Z(e).getComputedStyle(e)}function Ke(e){return ae(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Le(e){if(ce(e)==="html")return e;var t=e.assignedSlot||e.parentNode||Dt(e)&&e.host||oe(e);return Dt(t)?t.host:t}function Ft(e){var t=Le(e);return ze(t)?e.ownerDocument?e.ownerDocument.body:e.body:re(t)&&He(t)?t:Ft(t)}function Xe(e,t){var r;t===void 0&&(t=[]);var n=Ft(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),o=Z(n);return i?t.concat(o,o.visualViewport||[],He(n)?n:[]):t.concat(n,Xe(n))}function Nt(e){var t=$(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=re(e),o=i?e.offsetWidth:r,a=i?e.offsetHeight:n,s=qe(r)!==o||qe(n)!==a;return s&&(r=o,n=a),{width:r,height:n,$:s}}function vt(e){return ae(e)?e:e.contextElement}function xe(e){var t=vt(e);if(!re(t))return fe(1);var r=t.getBoundingClientRect(),n=Nt(t),i=n.width,o=n.height,a=n.$,s=(a?qe(r.width):r.width)/i,l=(a?qe(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var Kn=fe(0);function Ht(e){var t=Z(e);return!pt()||!t.visualViewport?Kn:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Xn(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Z(e)?!1:t}function be(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);var i=e.getBoundingClientRect(),o=vt(e),a=fe(1);t&&(n?ae(n)&&(a=xe(n)):a=xe(e));var s=Xn(o,r,n)?Ht(o):fe(0),l=(i.left+s.x)/a.x,u=(i.top+s.y)/a.y,f=i.width/a.x,v=i.height/a.y;if(o)for(var d=Z(o),w=n&&ae(n)?Z(n):n,m=d.frameElement;m&&n&&w!==d;){var T=xe(m),O=m.getBoundingClientRect(),L=$(m),A=O.left+(m.clientLeft+parseFloat(L.paddingLeft))*T.x,S=O.top+(m.clientTop+parseFloat(L.paddingTop))*T.y;l*=T.x,u*=T.y,f*=T.x,v*=T.y,l+=A,u+=S,m=Z(m).frameElement}return Ye({width:f,height:v,x:l,y:u})}function Zn(e){var t=e.rect,r=e.offsetParent,n=e.strategy,i=re(r),o=oe(r);if(r===o)return t;var a={scrollLeft:0,scrollTop:0},s=fe(1),l=fe(0);if((i||!i&&n!=="fixed")&&((ce(r)!=="body"||He(o))&&(a=Ke(r)),re(r))){var u=be(r);s=xe(r),l.x=u.x+r.clientLeft,l.y=u.y+r.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+l.x,y:t.y*s.y-a.scrollTop*s.y+l.y}}function Qn(e){return Array.from(e.getClientRects())}function Ut(e){return be(oe(e)).left+Ke(e).scrollLeft}function $n(e){var t=oe(e),r=Ke(e),n=e.ownerDocument.body,i=ge(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=ge(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),a=-r.scrollLeft+Ut(e),s=-r.scrollTop;return $(n).direction==="rtl"&&(a+=ge(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:a,y:s}}function er(e,t){var r=Z(e),n=oe(e),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=pt();(!u||u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}function tr(e,t){var r=be(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=re(e)?xe(e):fe(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y,l=i*o.x,u=n*o.y;return{width:a,height:s,x:l,y:u}}function Bt(e,t,r){var n;if(t==="viewport")n=er(e,r);else if(t==="document")n=$n(oe(e));else if(ae(t))n=tr(t,r);else{var i=Ht(e);n=K({},t,{x:t.x-i.x,y:t.y-i.y})}return Ye(n)}function jt(e,t){var r=Le(e);return r===t||!ae(r)||ze(r)?!1:$(r).position==="fixed"||jt(r,t)}function nr(e,t){var r=t.get(e);if(r)return r;for(var n=Xe(e).filter(function(f){return ae(f)&&ce(f)!=="body"}),i=null,o=$(e).position==="fixed",a=o?Le(e):e;ae(a)&&!ze(a);){var s=$(a),l=ht(a);!l&&s.position==="fixed"&&(i=null);var u=o?!l&&!i:!l&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||He(a)&&!l&&jt(e,a);u?n=n.filter(function(f){return f!==a}):i=s,a=Le(a)}return t.set(e,n),n}function rr(e){var t=e.element,r=e.boundary,n=e.rootBoundary,i=e.strategy,o=r==="clippingAncestors"?nr(t,this._c):[].concat(r),a=[].concat(o,[n]),s=a[0],l=a.reduce(function(u,f){var v=Bt(t,f,i);return u.top=ge(v.top,u.top),u.right=Ie(v.right,u.right),u.bottom=Ie(v.bottom,u.bottom),u.left=ge(v.left,u.left),u},Bt(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function ir(e){return Nt(e)}function or(e,t,r){var n=re(t),i=oe(t),o=r==="fixed",a=be(e,!0,o,t),s={scrollLeft:0,scrollTop:0},l=fe(0);if(n||!n&&!o)if((ce(t)!=="body"||He(i))&&(s=Ke(t)),n){var u=be(t,!0,o,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else i&&(l.x=Ut(i));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function qt(e,t){return!re(e)||$(e).position==="fixed"?null:t?t(e):e.offsetParent}function Gt(e,t){var r=Z(e);if(!re(e))return r;for(var n=qt(e,t);n&&Yn(n)&&$(n).position==="static";)n=qt(n,t);return n&&(ce(n)==="html"||ce(n)==="body"&&$(n).position==="static"&&!ht(n))?r:n||zn(e)||r}var ar=function(){var e=ve(X().mark(function r(n){var i,o,a,s,l;return X().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return i=n.reference,o=n.floating,a=n.strategy,s=this.getOffsetParent||Gt,l=this.getDimensions,f.t0=or,f.t1=i,f.next=7,s(o);case 7:return f.t2=f.sent,f.t3=a,f.t4=(0,f.t0)(f.t1,f.t2,f.t3),f.t5=K,f.t6={x:0,y:0},f.next=14,l(o);case 14:return f.t7=f.sent,f.t8=(0,f.t5)(f.t6,f.t7),f.abrupt("return",{reference:f.t4,floating:f.t8});case 17:case"end":return f.stop()}},r,this)}));function t(r){return e.apply(this,arguments)}return t}();function sr(e){return $(e).direction==="rtl"}var ur={convertOffsetParentRelativeRectToViewportRelativeRect:Zn,getDocumentElement:oe,getClippingRect:rr,getOffsetParent:Gt,getElementRects:ar,getClientRects:Qn,getDimensions:ir,getScale:xe,isElement:ae,isRTL:sr};function lr(e,t){var r=null,n,i=oe(e);function o(){clearTimeout(n),r&&r.disconnect(),r=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),o();var u=e.getBoundingClientRect(),f=u.left,v=u.top,d=u.width,w=u.height;if(s||t(),!d||!w)return;var m=Ge(v),T=Ge(i.clientWidth-(f+d)),O=Ge(i.clientHeight-(v+w)),L=Ge(f),A=-m+"px "+-T+"px "+-O+"px "+-L+"px",S={rootMargin:A,threshold:ge(0,Ie(1,l))||1},b=!0;function g(I){var E=I[0].intersectionRatio;if(E!==l){if(!b)return a();E?a(!1,E):n=setTimeout(function(){a(!1,1e-7)},100)}b=!1}try{r=new IntersectionObserver(g,K({},S,{root:i.ownerDocument}))}catch{r=new IntersectionObserver(g,S)}r.observe(e)}return a(!0),o}function fr(e,t,r,n){n===void 0&&(n={});var i=n,o=i.ancestorScroll,a=o===void 0?!0:o,s=i.ancestorResize,l=s===void 0?!0:s,u=i.elementResize,f=u===void 0?typeof ResizeObserver=="function":u,v=i.layoutShift,d=v===void 0?typeof IntersectionObserver=="function":v,w=i.animationFrame,m=w===void 0?!1:w,T=vt(e),O=a||l?[].concat(T?Xe(T):[],Xe(t)):[];O.forEach(function(E){a&&E.addEventListener("scroll",r,{passive:!0}),l&&E.addEventListener("resize",r)});var L=T&&d?lr(T,r):null,A=-1,S=null;f&&(S=new ResizeObserver(function(E){var P=E[0];P&&P.target===T&&S&&(S.unobserve(t),cancelAnimationFrame(A),A=requestAnimationFrame(function(){S&&S.observe(t)})),r()}),T&&!m&&S.observe(T),S.observe(t));var b,g=m?be(e):null;m&&I();function I(){var E=be(e);g&&(E.x!==g.x||E.y!==g.y||E.width!==g.width||E.height!==g.height)&&r(),g=E,b=requestAnimationFrame(I)}return r(),function(){O.forEach(function(E){a&&E.removeEventListener("scroll",r),l&&E.removeEventListener("resize",r)}),L&&L(),S&&S.disconnect(),S=null,m&&cancelAnimationFrame(b)}}var cr=function(t,r,n){var i=new Map,o=K({platform:ur},n),a=K({},o.platform,{_c:i});return qn(t,r,K({},o,{platform:a}))};function dr(e){e.cleanup&&e.cleanup();var t=e._getResolvedAttachToOptions(),r=t.element,n=yr(t,e),i=xt(t);if(i){r=document.body;var o=e.shepherdElementComponent.getElement();o.classList.add("shepherd-centered")}return e.cleanup=fr(r,e.el,function(){if(!e.el){e.cleanup();return}vr(r,e,n,i)}),e.target=t.element,n}function hr(e,t){return{floatingUIOptions:rt(e.floatingUIOptions||{},t.floatingUIOptions||{})}}function pr(e){e.cleanup&&e.cleanup(),e.cleanup=null}function vr(e,t,r,n){return cr(e,t.el,r).then(mr(t,n)).then(function(i){return new Promise(function(o){setTimeout(function(){return o(i)},300)})}).then(function(i){i&&i.el&&i.el.focus({preventScroll:!0})})}function mr(e,t){return function(r){var n=r.x,i=r.y,o=r.placement,a=r.middlewareData;return e.el&&(t?Object.assign(e.el.style,{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}):Object.assign(e.el.style,{position:"absolute",left:n+"px",top:i+"px"}),e.el.dataset.popperPlacement=o,gr(e.el,a)),e}}function gr(e,t){var r=e.querySelector(".shepherd-arrow");if(r&&t.arrow){var n=t.arrow,i=n.x,o=n.y;Object.assign(r.style,{left:i!=null?i+"px":"",top:o!=null?o+"px":""})}}function yr(e,t){var r={strategy:"absolute",middleware:[]},n=br(t),i=xt(e);return i||(r.middleware.push(Vn(),Wn({limiter:Jn(),crossAxis:!0})),n&&r.middleware.push(Gn({element:n})),r.placement=e.on),rt(t.options.floatingUIOptions||{},r)}function br(e){return e.options.arrow&&e.el?e.el.querySelector(".shepherd-arrow"):!1}function Q(){}function wr(e,t){for(var r in t)e[r]=t[r];return e}function Vt(e){return e()}function Wt(){return Object.create(null)}function Ue(e){e.forEach(Vt)}function mt(e){return typeof e=="function"}function se(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Sr(e){return Object.keys(e).length===0}function ke(e,t){e.appendChild(t)}function ne(e,t,r){e.insertBefore(t,r||null)}function ee(e){e.parentNode&&e.parentNode.removeChild(e)}function _r(e,t){for(var r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function ie(e){return document.createElement(e)}function Jt(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Yt(e){return document.createTextNode(e)}function Ze(){return Yt(" ")}function Er(){return Yt("")}function Qe(e,t,r,n){return e.addEventListener(t,r,n),function(){return e.removeEventListener(t,r,n)}}function H(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}var Tr=["width","height"];function zt(e,t){var r=Object.getOwnPropertyDescriptors(e.__proto__);for(var n in t)t[n]==null?e.removeAttribute(n):n==="style"?e.style.cssText=t[n]:n==="__value"?e.value=e[n]=t[n]:r[n]&&r[n].set&&Tr.indexOf(n)===-1?e[n]=t[n]:H(e,n,t[n])}function Or(e){return Array.from(e.childNodes)}function Pe(e,t,r){e.classList[r?"add":"remove"](t)}var Be;function je(e){Be=e}function Kt(){if(!Be)throw new Error("Function called outside component initialization");return Be}function Ir(e){Kt().$$.on_mount.push(e)}function gt(e){Kt().$$.after_update.push(e)}var Ce=[],Re=[],Me=[],Xt=[],Ar=Promise.resolve(),yt=!1;function Lr(){yt||(yt=!0,Ar.then(Zt))}function bt(e){Me.push(e)}var wt=new Set,De=0;function Zt(){if(De===0){var e=Be;do{try{for(;De<Ce.length;){var t=Ce[De];De++,je(t),xr(t.$$)}}catch(i){throw Ce.length=0,De=0,i}for(je(null),Ce.length=0,De=0;Re.length;)Re.pop()();for(var r=0;r<Me.length;r+=1){var n=Me[r];wt.has(n)||(wt.add(n),n())}Me.length=0}while(Ce.length);for(;Xt.length;)Xt.pop()();yt=!1,wt.clear(),je(e)}}function xr(e){if(e.fragment!==null){e.update(),Ue(e.before_update);var t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(bt)}}function kr(e){var t=[],r=[];Me.forEach(function(n){return e.indexOf(n)===-1?t.push(n):r.push(n)}),r.forEach(function(n){return n()}),Me=t}var $e=new Set,we;function Se(){we={r:0,c:[],p:we}}function _e(){we.r||Ue(we.c),we=we.p}function C(e,t){e&&e.i&&($e.delete(e),e.i(t))}function G(e,t,r,n){if(e&&e.o){if($e.has(e))return;$e.add(e),we.c.push(function(){$e.delete(e),n&&(r&&e.d(1),n())}),e.o(t)}else n&&n()}function Pr(e,t){for(var r={},n={},i={$$scope:1},o=e.length;o--;){var a=e[o],s=t[o];if(s){for(var l in a)l in s||(n[l]=1);for(var u in s)i[u]||(r[u]=s[u],i[u]=1);e[o]=s}else for(var f in a)i[f]=1}for(var v in n)v in r||(r[v]=void 0);return r}function Ee(e){e&&e.c()}function de(e,t,r,n){var i=e.$$,o=i.fragment,a=i.after_update;o&&o.m(t,r),n||bt(function(){var s=e.$$.on_mount.map(Vt).filter(mt);if(e.$$.on_destroy){var l;(l=e.$$.on_destroy).push.apply(l,s)}else Ue(s);e.$$.on_mount=[]}),a.forEach(bt)}function he(e,t){var r=e.$$;r.fragment!==null&&(kr(r.after_update),Ue(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function Cr(e,t){e.$$.dirty[0]===-1&&(Ce.push(e),Lr(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function ue(e,t,r,n,i,o,a,s){s===void 0&&(s=[-1]);var l=Be;je(e);var u=e.$$={fragment:null,ctx:[],props:o,update:Q,not_equal:i,bound:Wt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:Wt(),dirty:s,skip_bound:!1,root:t.target||l.$$.root};a&&a(u.root);var f=!1;if(u.ctx=r?r(e,t.props||{},function(d,w){var m=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:w;return u.ctx&&i(u.ctx[d],u.ctx[d]=m)&&(!u.skip_bound&&u.bound[d]&&u.bound[d](m),f&&Cr(e,d)),w}):[],u.update(),f=!0,Ue(u.before_update),u.fragment=n?n(u.ctx):!1,t.target){if(t.hydrate){var v=Or(t.target);u.fragment&&u.fragment.l(v),v.forEach(ee)}else u.fragment&&u.fragment.c();t.intro&&C(e.$$.fragment),de(e,t.target,t.anchor,t.customElement),Zt()}je(l)}var le=function(){function e(){}var t=e.prototype;return t.$destroy=function(){he(this,1),this.$destroy=Q},t.$on=function(n,i){if(!mt(i))return Q;var o=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return o.push(i),function(){var a=o.indexOf(i);a!==-1&&o.splice(a,1)}},t.$set=function(n){this.$$set&&!Sr(n)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)},e}();function Rr(e){var t,r,n,i,o;return{c:function(){t=ie("button"),H(t,"aria-label",r=e[3]?e[3]:null),H(t,"class",n=(e[1]||"")+" shepherd-button "+(e[4]?"shepherd-button-secondary":"")),t.disabled=e[2],H(t,"tabindex","0")},m:function(s,l){ne(s,t,l),t.innerHTML=e[5],i||(o=Qe(t,"click",function(){mt(e[0])&&e[0].apply(this,arguments)}),i=!0)},p:function(s,l){var u=l[0];e=s,u&32&&(t.innerHTML=e[5]),u&8&&r!==(r=e[3]?e[3]:null)&&H(t,"aria-label",r),u&18&&n!==(n=(e[1]||"")+" shepherd-button "+(e[4]?"shepherd-button-secondary":""))&&H(t,"class",n),u&4&&(t.disabled=e[2])},i:Q,o:Q,d:function(s){s&&ee(t),i=!1,o()}}}function Mr(e,t,r){var n=t.config,i=t.step,o,a,s,l,u,f;function v(d){return me(d)?d=d.call(i):d}return e.$$set=function(d){"config"in d&&r(6,n=d.config),"step"in d&&r(7,i=d.step)},e.$$.update=function(){e.$$.dirty&192&&(r(0,o=n.action?n.action.bind(i.tour):null),r(1,a=n.classes),r(2,s=n.disabled?v(n.disabled):!1),r(3,l=n.label?v(n.label):null),r(4,u=n.secondary),r(5,f=n.text?v(n.text):null))},[o,a,s,l,u,f,n,i]}var Dr=function(e){te(t,e);function t(r){var n;return n=e.call(this)||this,ue(Y(n),r,Mr,Rr,se,{config:6,step:7}),n}return t}(le);function Qt(e,t,r){var n=e.slice();return n[2]=t[r],n}function $t(e){for(var t,r,n=e[1],i=[],o=0;o<n.length;o+=1)i[o]=en(Qt(e,n,o));var a=function(l){return G(i[l],1,1,function(){i[l]=null})};return{c:function(){for(var l=0;l<i.length;l+=1)i[l].c();t=Er()},m:function(l,u){for(var f=0;f<i.length;f+=1)i[f]&&i[f].m(l,u);ne(l,t,u),r=!0},p:function(l,u){if(u&3){n=l[1];var f;for(f=0;f<n.length;f+=1){var v=Qt(l,n,f);i[f]?(i[f].p(v,u),C(i[f],1)):(i[f]=en(v),i[f].c(),C(i[f],1),i[f].m(t.parentNode,t))}for(Se(),f=n.length;f<i.length;f+=1)a(f);_e()}},i:function(l){if(!r){for(var u=0;u<n.length;u+=1)C(i[u]);r=!0}},o:function(l){i=i.filter(Boolean);for(var u=0;u<i.length;u+=1)G(i[u]);r=!1},d:function(l){_r(i,l),l&&ee(t)}}}function en(e){var t,r;return t=new Dr({props:{config:e[2],step:e[0]}}),{c:function(){Ee(t.$$.fragment)},m:function(i,o){de(t,i,o),r=!0},p:function(i,o){var a={};o&2&&(a.config=i[2]),o&1&&(a.step=i[0]),t.$set(a)},i:function(i){r||(C(t.$$.fragment,i),r=!0)},o:function(i){G(t.$$.fragment,i),r=!1},d:function(i){he(t,i)}}}function Fr(e){var t,r,n=e[1]&&$t(e);return{c:function(){t=ie("footer"),n&&n.c(),H(t,"class","shepherd-footer")},m:function(o,a){ne(o,t,a),n&&n.m(t,null),r=!0},p:function(o,a){var s=a[0];o[1]?n?(n.p(o,s),s&2&&C(n,1)):(n=$t(o),n.c(),C(n,1),n.m(t,null)):n&&(Se(),G(n,1,1,function(){n=null}),_e())},i:function(o){r||(C(n),r=!0)},o:function(o){G(n),r=!1},d:function(o){o&&ee(t),n&&n.d()}}}function Nr(e,t,r){var n,i=t.step;return e.$$set=function(o){"step"in o&&r(0,i=o.step)},e.$$.update=function(){e.$$.dirty&1&&r(1,n=i.options.buttons)},[i,n]}var Hr=function(e){te(t,e);function t(r){var n;return n=e.call(this)||this,ue(Y(n),r,Nr,Fr,se,{step:0}),n}return t}(le);function Ur(e){var t,r,n,i,o;return{c:function(){t=ie("button"),r=ie("span"),r.textContent="\xD7",H(r,"aria-hidden","true"),H(t,"aria-label",n=e[0].label?e[0].label:"Close Tour"),H(t,"class","shepherd-cancel-icon"),H(t,"type","button")},m:function(s,l){ne(s,t,l),ke(t,r),i||(o=Qe(t,"click",e[1]),i=!0)},p:function(s,l){var u=l[0];u&1&&n!==(n=s[0].label?s[0].label:"Close Tour")&&H(t,"aria-label",n)},i:Q,o:Q,d:function(s){s&&ee(t),i=!1,o()}}}function Br(e,t,r){var n=t.cancelIcon,i=t.step,o=function(s){s.preventDefault(),i.cancel()};return e.$$set=function(a){"cancelIcon"in a&&r(0,n=a.cancelIcon),"step"in a&&r(2,i=a.step)},[n,o,i]}var jr=function(e){te(t,e);function t(r){var n;return n=e.call(this)||this,ue(Y(n),r,Br,Ur,se,{cancelIcon:0,step:2}),n}return t}(le);function qr(e){var t;return{c:function(){t=ie("h3"),H(t,"id",e[1]),H(t,"class","shepherd-title")},m:function(n,i){ne(n,t,i),e[3](t)},p:function(n,i){var o=i[0];o&2&&H(t,"id",n[1])},i:Q,o:Q,d:function(n){n&&ee(t),e[3](null)}}}function Gr(e,t,r){var n=t.labelId,i=t.element,o=t.title;gt(function(){me(o)&&r(2,o=o()),r(0,i.innerHTML=o,i)});function a(s){Re[s?"unshift":"push"](function(){i=s,r(0,i)})}return e.$$set=function(s){"labelId"in s&&r(1,n=s.labelId),"element"in s&&r(0,i=s.element),"title"in s&&r(2,o=s.title)},[i,n,o,a]}var Vr=function(e){te(t,e);function t(r){var n;return n=e.call(this)||this,ue(Y(n),r,Gr,qr,se,{labelId:1,element:0,title:2}),n}return t}(le);function tn(e){var t,r;return t=new Vr({props:{labelId:e[0],title:e[2]}}),{c:function(){Ee(t.$$.fragment)},m:function(i,o){de(t,i,o),r=!0},p:function(i,o){var a={};o&1&&(a.labelId=i[0]),o&4&&(a.title=i[2]),t.$set(a)},i:function(i){r||(C(t.$$.fragment,i),r=!0)},o:function(i){G(t.$$.fragment,i),r=!1},d:function(i){he(t,i)}}}function nn(e){var t,r;return t=new jr({props:{cancelIcon:e[3],step:e[1]}}),{c:function(){Ee(t.$$.fragment)},m:function(i,o){de(t,i,o),r=!0},p:function(i,o){var a={};o&8&&(a.cancelIcon=i[3]),o&2&&(a.step=i[1]),t.$set(a)},i:function(i){r||(C(t.$$.fragment,i),r=!0)},o:function(i){G(t.$$.fragment,i),r=!1},d:function(i){he(t,i)}}}function Wr(e){var t,r,n,i=e[2]&&tn(e),o=e[3]&&e[3].enabled&&nn(e);return{c:function(){t=ie("header"),i&&i.c(),r=Ze(),o&&o.c(),H(t,"class","shepherd-header")},m:function(s,l){ne(s,t,l),i&&i.m(t,null),ke(t,r),o&&o.m(t,null),n=!0},p:function(s,l){var u=l[0];s[2]?i?(i.p(s,u),u&4&&C(i,1)):(i=tn(s),i.c(),C(i,1),i.m(t,r)):i&&(Se(),G(i,1,1,function(){i=null}),_e()),s[3]&&s[3].enabled?o?(o.p(s,u),u&8&&C(o,1)):(o=nn(s),o.c(),C(o,1),o.m(t,null)):o&&(Se(),G(o,1,1,function(){o=null}),_e())},i:function(s){n||(C(i),C(o),n=!0)},o:function(s){G(i),G(o),n=!1},d:function(s){s&&ee(t),i&&i.d(),o&&o.d()}}}function Jr(e,t,r){var n=t.labelId,i=t.step,o,a;return e.$$set=function(s){"labelId"in s&&r(0,n=s.labelId),"step"in s&&r(1,i=s.step)},e.$$.update=function(){e.$$.dirty&2&&(r(2,o=i.options.title),r(3,a=i.options.cancelIcon))},[n,i,o,a]}var Yr=function(e){te(t,e);function t(r){var n;return n=e.call(this)||this,ue(Y(n),r,Jr,Wr,se,{labelId:0,step:1}),n}return t}(le);function zr(e){var t;return{c:function(){t=ie("div"),H(t,"class","shepherd-text"),H(t,"id",e[1])},m:function(n,i){ne(n,t,i),e[3](t)},p:function(n,i){var o=i[0];o&2&&H(t,"id",n[1])},i:Q,o:Q,d:function(n){n&&ee(t),e[3](null)}}}function Kr(e,t,r){var n=t.descriptionId,i=t.element,o=t.step;gt(function(){var s=o.options.text;me(s)&&(s=s.call(o)),it(s)?i.appendChild(s):r(0,i.innerHTML=s,i)});function a(s){Re[s?"unshift":"push"](function(){i=s,r(0,i)})}return e.$$set=function(s){"descriptionId"in s&&r(1,n=s.descriptionId),"element"in s&&r(0,i=s.element),"step"in s&&r(2,o=s.step)},[i,n,o,a]}var Xr=function(e){te(t,e);function t(r){var n;return n=e.call(this)||this,ue(Y(n),r,Kr,zr,se,{descriptionId:1,element:0,step:2}),n}return t}(le);function rn(e){var t,r;return t=new Yr({props:{labelId:e[1],step:e[2]}}),{c:function(){Ee(t.$$.fragment)},m:function(i,o){de(t,i,o),r=!0},p:function(i,o){var a={};o&2&&(a.labelId=i[1]),o&4&&(a.step=i[2]),t.$set(a)},i:function(i){r||(C(t.$$.fragment,i),r=!0)},o:function(i){G(t.$$.fragment,i),r=!1},d:function(i){he(t,i)}}}function on(e){var t,r;return t=new Xr({props:{descriptionId:e[0],step:e[2]}}),{c:function(){Ee(t.$$.fragment)},m:function(i,o){de(t,i,o),r=!0},p:function(i,o){var a={};o&1&&(a.descriptionId=i[0]),o&4&&(a.step=i[2]),t.$set(a)},i:function(i){r||(C(t.$$.fragment,i),r=!0)},o:function(i){G(t.$$.fragment,i),r=!1},d:function(i){he(t,i)}}}function an(e){var t,r;return t=new Hr({props:{step:e[2]}}),{c:function(){Ee(t.$$.fragment)},m:function(i,o){de(t,i,o),r=!0},p:function(i,o){var a={};o&4&&(a.step=i[2]),t.$set(a)},i:function(i){r||(C(t.$$.fragment,i),r=!0)},o:function(i){G(t.$$.fragment,i),r=!1},d:function(i){he(t,i)}}}function Zr(e){var t,r=!z(e[2].options.title)||e[2].options.cancelIcon&&e[2].options.cancelIcon.enabled,n,i=!z(e[2].options.text),o,a=Array.isArray(e[2].options.buttons)&&e[2].options.buttons.length,s,l=r&&rn(e),u=i&&on(e),f=a&&an(e);return{c:function(){t=ie("div"),l&&l.c(),n=Ze(),u&&u.c(),o=Ze(),f&&f.c(),H(t,"class","shepherd-content")},m:function(d,w){ne(d,t,w),l&&l.m(t,null),ke(t,n),u&&u.m(t,null),ke(t,o),f&&f.m(t,null),s=!0},p:function(d,w){var m=w[0];m&4&&(r=!z(d[2].options.title)||d[2].options.cancelIcon&&d[2].options.cancelIcon.enabled),r?l?(l.p(d,m),m&4&&C(l,1)):(l=rn(d),l.c(),C(l,1),l.m(t,n)):l&&(Se(),G(l,1,1,function(){l=null}),_e()),m&4&&(i=!z(d[2].options.text)),i?u?(u.p(d,m),m&4&&C(u,1)):(u=on(d),u.c(),C(u,1),u.m(t,o)):u&&(Se(),G(u,1,1,function(){u=null}),_e()),m&4&&(a=Array.isArray(d[2].options.buttons)&&d[2].options.buttons.length),a?f?(f.p(d,m),m&4&&C(f,1)):(f=an(d),f.c(),C(f,1),f.m(t,null)):f&&(Se(),G(f,1,1,function(){f=null}),_e())},i:function(d){s||(C(l),C(u),C(f),s=!0)},o:function(d){G(l),G(u),G(f),s=!1},d:function(d){d&&ee(t),l&&l.d(),u&&u.d(),f&&f.d()}}}function Qr(e,t,r){var n=t.descriptionId,i=t.labelId,o=t.step;return e.$$set=function(a){"descriptionId"in a&&r(0,n=a.descriptionId),"labelId"in a&&r(1,i=a.labelId),"step"in a&&r(2,o=a.step)},[n,i,o]}var $r=function(e){te(t,e);function t(r){var n;return n=e.call(this)||this,ue(Y(n),r,Qr,Zr,se,{descriptionId:0,labelId:1,step:2}),n}return t}(le);function sn(e){var t;return{c:function(){t=ie("div"),H(t,"class","shepherd-arrow"),H(t,"data-popper-arrow","")},m:function(n,i){ne(n,t,i)},d:function(n){n&&ee(t)}}}function ei(e){var t,r,n,i,o,a,s,l,u=e[4].options.arrow&&e[4].options.attachTo&&e[4].options.attachTo.element&&e[4].options.attachTo.on&&sn();n=new $r({props:{descriptionId:e[2],labelId:e[3],step:e[4]}});for(var f=[{"aria-describedby":i=z(e[4].options.text)?null:e[2]},{"aria-labelledby":o=e[4].options.title?e[3]:null},e[1],{role:"dialog"},{tabindex:"0"}],v={},d=0;d<f.length;d+=1)v=wr(v,f[d]);return{c:function(){t=ie("div"),u&&u.c(),r=Ze(),Ee(n.$$.fragment),zt(t,v),Pe(t,"shepherd-has-cancel-icon",e[5]),Pe(t,"shepherd-has-title",e[6]),Pe(t,"shepherd-element",!0)},m:function(m,T){ne(m,t,T),u&&u.m(t,null),ke(t,r),de(n,t,null),e[13](t),a=!0,s||(l=Qe(t,"keydown",e[7]),s=!0)},p:function(m,T){var O=T[0];m[4].options.arrow&&m[4].options.attachTo&&m[4].options.attachTo.element&&m[4].options.attachTo.on?u||(u=sn(),u.c(),u.m(t,r)):u&&(u.d(1),u=null);var L={};O&4&&(L.descriptionId=m[2]),O&8&&(L.labelId=m[3]),O&16&&(L.step=m[4]),n.$set(L),zt(t,v=Pr(f,[(!a||O&20&&i!==(i=z(m[4].options.text)?null:m[2]))&&{"aria-describedby":i},(!a||O&24&&o!==(o=m[4].options.title?m[3]:null))&&{"aria-labelledby":o},O&2&&m[1],{role:"dialog"},{tabindex:"0"}])),Pe(t,"shepherd-has-cancel-icon",m[5]),Pe(t,"shepherd-has-title",m[6]),Pe(t,"shepherd-element",!0)},i:function(m){a||(C(n.$$.fragment,m),a=!0)},o:function(m){G(n.$$.fragment,m),a=!1},d:function(m){m&&ee(t),u&&u.d(),he(n),e[13](null),s=!1,l()}}}var ti=9,ni=27,ri=37,ii=39;function un(e){return e.split(" ").filter(function(t){return!!t.length})}function oi(e,t,r){var n=t.classPrefix,i=t.element,o=t.descriptionId,a=t.firstFocusableElement,s=t.focusableElements,l=t.labelId,u=t.lastFocusableElement,f=t.step,v=t.dataStepId,d,w,m,T=function(){return i};Ir(function(){var g;r(1,v=(g={},g["data-"+n+"shepherd-step-id"]=f.id,g)),r(9,s=i.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),r(8,a=s[0]),r(10,u=s[s.length-1])}),gt(function(){m!==f.options.classes&&O()});function O(){L(m),m=f.options.classes,A(m)}function L(g){if(Ne(g)){var I=un(g);if(I.length){var E;(E=i.classList).remove.apply(E,I)}}}function A(g){if(Ne(g)){var I=un(g);if(I.length){var E;(E=i.classList).add.apply(E,I)}}}var S=function(I){var E=f,P=E.tour;switch(I.keyCode){case ti:if(s.length===0){I.preventDefault();break}I.shiftKey?(document.activeElement===a||document.activeElement.classList.contains("shepherd-element"))&&(I.preventDefault(),u.focus()):document.activeElement===u&&(I.preventDefault(),a.focus());break;case ni:P.options.exitOnEsc&&(I.stopPropagation(),f.cancel());break;case ri:P.options.keyboardNavigation&&(I.stopPropagation(),P.back());break;case ii:P.options.keyboardNavigation&&(I.stopPropagation(),P.next());break}};function b(g){Re[g?"unshift":"push"](function(){i=g,r(0,i)})}return e.$$set=function(g){"classPrefix"in g&&r(11,n=g.classPrefix),"element"in g&&r(0,i=g.element),"descriptionId"in g&&r(2,o=g.descriptionId),"firstFocusableElement"in g&&r(8,a=g.firstFocusableElement),"focusableElements"in g&&r(9,s=g.focusableElements),"labelId"in g&&r(3,l=g.labelId),"lastFocusableElement"in g&&r(10,u=g.lastFocusableElement),"step"in g&&r(4,f=g.step),"dataStepId"in g&&r(1,v=g.dataStepId)},e.$$.update=function(){e.$$.dirty&16&&(r(5,d=f.options&&f.options.cancelIcon&&f.options.cancelIcon.enabled),r(6,w=f.options&&f.options.title))},[i,v,o,l,f,d,w,S,a,s,u,n,T,b]}var ai=function(e){te(t,e);function t(r){var n;return n=e.call(this)||this,ue(Y(n),r,oi,ei,se,{classPrefix:11,element:0,descriptionId:2,firstFocusableElement:8,focusableElements:9,labelId:3,lastFocusableElement:10,step:4,dataStepId:1,getElement:12}),n}return Tt(t,[{key:"getElement",get:function(){return this.$$.ctx[12]}}]),t}(le),St=function(e){te(t,e);function t(n,i){var o;return i===void 0&&(i={}),o=e.call(this,n,i)||this,o.tour=n,o.classPrefix=o.tour.options?Lt(o.tour.options.classPrefix):"",o.styles=n.styles,o._resolvedAttachTo=null,At(Y(o)),o._setOptions(i),Y(o)||Y(o)}var r=t.prototype;return r.cancel=function(){this.tour.cancel(),this.trigger("cancel")},r.complete=function(){this.tour.complete(),this.trigger("complete")},r.destroy=function(){pr(this),it(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this.trigger("destroy")},r.getTour=function(){return this.tour},r.hide=function(){this.tour.modal.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")},r._resolveAttachToOptions=function(){return this._resolvedAttachTo=Cn(this),this._resolvedAttachTo},r._getResolvedAttachToOptions=function(){return this._resolvedAttachTo===null?this._resolveAttachToOptions():this._resolvedAttachTo},r.isOpen=function(){return!!(this.el&&!this.el.hidden)},r.show=function(){var i=this;return me(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then(function(){return i._show()}):Promise.resolve(this._show())},r.updateStepOptions=function(i){Object.assign(this.options,i),this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})},r.getElement=function(){return this.el},r.getTarget=function(){return this.target},r._createTooltipContent=function(){var i=this.id+"-description",o=this.id+"-label";return this.shepherdElementComponent=new ai({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:i,labelId:o,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()},r._scrollTo=function(i){var o=this._getResolvedAttachToOptions(),a=o.element;me(this.options.scrollToHandler)?this.options.scrollToHandler(a):xn(a)&&typeof a.scrollIntoView=="function"&&a.scrollIntoView(i)},r._getClassOptions=function(i){var o=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,a=i.classes?i.classes:"",s=o&&o.classes?o.classes:"",l=[].concat(a.split(" "),s.split(" ")),u=new Set(l);return Array.from(u).join(" ").trim()},r._setOptions=function(i){var o=this;i===void 0&&(i={});var a=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;a=rt({},a||{}),this.options=Object.assign({arrow:!0},a,i,hr(a,i));var s=this.options.when;this.options.classes=this._getClassOptions(i),this.destroy(),this.id=this.options.id||"step-"+at(),s&&Object.keys(s).forEach(function(l){o.on(l,s[l],o)})},r._setupElements=function(){z(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&Pn(this),dr(this)},r._show=function(){var i=this;this.trigger("before-show"),this._resolveAttachToOptions(),this._setupElements(),this.tour.modal||this.tour._setupModal(),this.tour.modal.setupForStep(this),this._styleTargetElementForStep(this),this.el.hidden=!1,this.options.scrollTo&&setTimeout(function(){i._scrollTo(i.options.scrollTo)}),this.el.hidden=!1;var o=this.shepherdElementComponent.getElement(),a=this.target||document.body;a.classList.add(this.classPrefix+"shepherd-enabled"),a.classList.add(this.classPrefix+"shepherd-target"),o.classList.add("shepherd-enabled"),this.trigger("show")},r._styleTargetElementForStep=function(i){var o=i.target;o&&(i.options.highlightClass&&o.classList.add(i.options.highlightClass),o.classList.remove("shepherd-target-click-disabled"),i.options.canClickTarget===!1&&o.classList.add("shepherd-target-click-disabled"))},r._updateStepTargetOnHide=function(){var i=this.target||document.body;this.options.highlightClass&&i.classList.remove(this.options.highlightClass),i.classList.remove("shepherd-target-click-disabled",this.classPrefix+"shepherd-enabled",this.classPrefix+"shepherd-target")},t}(ot);function si(e){if(e){var t=e.steps;t.forEach(function(r){r.options&&r.options.canClickTarget===!1&&r.options.attachTo&&r.target instanceof HTMLElement&&r.target.classList.remove("shepherd-target-click-disabled")})}}function ui(e){var t=e.width,r=e.height,n=e.x,i=n===void 0?0:n,o=e.y,a=o===void 0?0:o,s=e.r,l=s===void 0?0:s,u=window,f=u.innerWidth,v=u.innerHeight,d=typeof l=="number"?{topLeft:l,topRight:l,bottomRight:l,bottomLeft:l}:l,w=d.topLeft,m=w===void 0?0:w,T=d.topRight,O=T===void 0?0:T,L=d.bottomRight,A=L===void 0?0:L,S=d.bottomLeft,b=S===void 0?0:S;return"M"+f+","+v+"H0V0H"+f+"V"+v+"ZM"+(i+m)+","+a+"a"+m+","+m+",0,0,0-"+m+","+m+"V"+(r+a-b)+"a"+b+","+b+",0,0,0,"+b+","+b+"H"+(t+i-A)+"a"+A+","+A+",0,0,0,"+A+"-"+A+"V"+(a+O)+"a"+O+","+O+",0,0,0-"+O+"-"+O+"Z"}function li(e){var t,r,n,i,o;return{c:function(){t=Jt("svg"),r=Jt("path"),H(r,"d",e[2]),H(t,"class",n=(e[1]?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container")},m:function(s,l){ne(s,t,l),ke(t,r),e[11](t),i||(o=Qe(t,"touchmove",e[3]),i=!0)},p:function(s,l){var u=l[0];u&4&&H(r,"d",s[2]),u&2&&n!==(n=(s[1]?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container")&&H(t,"class",n)},i:Q,o:Q,d:function(s){s&&ee(t),e[11](null),i=!1,o()}}}function ln(e){if(!e)return null;var t=e instanceof HTMLElement,r=t&&window.getComputedStyle(e).overflowY,n=r!=="hidden"&&r!=="visible";return n&&e.scrollHeight>=e.clientHeight?e:ln(e.parentElement)}function fi(e,t){var r=e.getBoundingClientRect(),n=r.y||r.top,i=r.bottom||n+r.height;if(t){var o=t.getBoundingClientRect(),a=o.y||o.top,s=o.bottom||a+o.height;n=Math.max(n,a),i=Math.min(i,s)}var l=Math.max(i-n,0);return{y:n,height:l}}function ci(e,t,r){var n=t.element,i=t.openingProperties;at();var o=!1,a=void 0,s;u();var l=function(){return n};function u(){r(4,i={width:0,height:0,x:0,y:0,r:0})}function f(){r(1,o=!1),L()}function v(b,g,I,E){if(b===void 0&&(b=0),g===void 0&&(g=0),E){var P=fi(E,I),F=P.y,N=P.height,R=E.getBoundingClientRect(),M=R.x,j=R.width,p=R.left;r(4,i={width:j+b*2,height:N+b*2,x:(M||p)-b,y:F-b,r:g})}else u()}function d(b){L(),b.tour.options.useModalOverlay?(A(b),w()):f()}function w(){r(1,o=!0)}var m=function(g){g.preventDefault()},T=function(g){g.stopPropagation()};function O(){window.addEventListener("touchmove",m,{passive:!1})}function L(){a&&(cancelAnimationFrame(a),a=void 0),window.removeEventListener("touchmove",m,{passive:!1})}function A(b){var g=b.options,I=g.modalOverlayOpeningPadding,E=g.modalOverlayOpeningRadius,P=ln(b.target),F=function N(){a=void 0,v(I,E,P,b.target),a=requestAnimationFrame(N)};F(),O()}function S(b){Re[b?"unshift":"push"](function(){n=b,r(0,n)})}return e.$$set=function(b){"element"in b&&r(0,n=b.element),"openingProperties"in b&&r(4,i=b.openingProperties)},e.$$.update=function(){e.$$.dirty&16&&r(2,s=ui(i))},[n,o,s,T,i,l,u,f,v,d,w,S]}var di=function(e){te(t,e);function t(r){var n;return n=e.call(this)||this,ue(Y(n),r,ci,li,se,{element:0,openingProperties:4,getElement:5,closeModalOpening:6,hide:7,positionModal:8,setupForStep:9,show:10}),n}return Tt(t,[{key:"getElement",get:function(){return this.$$.ctx[5]}},{key:"closeModalOpening",get:function(){return this.$$.ctx[6]}},{key:"hide",get:function(){return this.$$.ctx[7]}},{key:"positionModal",get:function(){return this.$$.ctx[8]}},{key:"setupForStep",get:function(){return this.$$.ctx[9]}},{key:"show",get:function(){return this.$$.ctx[10]}}]),t}(le),pe=new ot,hi=function(e){te(t,e);function t(n){var i;n===void 0&&(n={}),i=e.call(this,n)||this,At(Y(i));var o={exitOnEsc:!0,keyboardNavigation:!0};i.options=Object.assign({},o,n),i.classPrefix=Lt(i.options.classPrefix),i.steps=[],i.addSteps(i.options.steps);var a=["active","cancel","complete","inactive","show","start"];return a.map(function(s){(function(l){i.on(l,function(u){u=u||{},u.tour=Y(i),pe.trigger(l,u)})})(s)}),i._setTourID(),Y(i)||Y(i)}var r=t.prototype;return r.addStep=function(i,o){var a=i;return a instanceof St?a.tour=this:a=new St(this,a),z(o)?this.steps.push(a):this.steps.splice(o,0,a),a},r.addSteps=function(i){var o=this;return Array.isArray(i)&&i.forEach(function(a){o.addStep(a)}),this},r.back=function(){var i=this.steps.indexOf(this.currentStep);this.show(i-1,!1)},r.cancel=function(){var n=ve(X().mark(function o(){var a,s,l;return X().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(!this.options.confirmCancel){f.next=14;break}if(a=typeof this.options.confirmCancel=="function",s=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?",!a){f.next=9;break}return f.next=6,this.options.confirmCancel();case 6:f.t0=f.sent,f.next=10;break;case 9:f.t0=window.confirm(s);case 10:l=f.t0,l&&this._done("cancel"),f.next=15;break;case 14:this._done("cancel");case 15:case"end":return f.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}(),r.complete=function(){this._done("complete")},r.getById=function(i){return this.steps.find(function(o){return o.id===i})},r.getCurrentStep=function(){return this.currentStep},r.hide=function(){var i=this.getCurrentStep();if(i)return i.hide()},r.isActive=function(){return pe.activeTour===this},r.next=function(){var i=this.steps.indexOf(this.currentStep);i===this.steps.length-1?this.complete():this.show(i+1,!0)},r.removeStep=function(i){var o=this,a=this.getCurrentStep();this.steps.some(function(s,l){if(s.id===i)return s.isOpen()&&s.hide(),s.destroy(),o.steps.splice(l,1),!0}),a&&a.id===i&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())},r.show=function(i,o){i===void 0&&(i=0),o===void 0&&(o=!0);var a=Ne(i)?this.getById(i):this.steps[i];if(a){this._updateStateBeforeShow();var s=me(a.options.showOn)&&!a.options.showOn();s?this._skipStep(a,o):(this.trigger("show",{step:a,previous:this.currentStep}),this.currentStep=a,a.show())}},r.start=function(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this._setupModal(),this._setupActiveTour(),this.next()},r._done=function(i){var o=this.steps.indexOf(this.currentStep);if(Array.isArray(this.steps)&&this.steps.forEach(function(s){return s.destroy()}),si(this),this.trigger(i,{index:o}),pe.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),(i==="cancel"||i==="complete")&&this.modal){var a=document.querySelector(".shepherd-modal-overlay-container");a&&a.remove()}it(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()},r._setupActiveTour=function(){this.trigger("active",{tour:this}),pe.activeTour=this},r._setupModal=function(){this.modal=new di({target:this.options.modalContainer||document.body,props:{classPrefix:this.classPrefix,styles:this.styles}})},r._skipStep=function(i,o){var a=this.steps.indexOf(i);if(a===this.steps.length-1)this.complete();else{var s=o?a+1:a-1;this.show(s,o)}},r._updateStateBeforeShow=function(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()},r._setTourID=function(){var i=this.options.tourName||"tour";this.id=i+"--"+at()},t}(ot),pi=typeof window>"u",fn=function(){};pi?Object.assign(pe,{Tour:fn,Step:fn}):Object.assign(pe,{Tour:hi,Step:St});/**
 * @copyright   (C) 2023 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */if(!Joomla)throw new Error("Joomla API is not properly initialised");function et(){sessionStorage.removeItem("currentStepId"),sessionStorage.removeItem("stepCount"),sessionStorage.removeItem("tourId"),sessionStorage.removeItem("tourToken"),sessionStorage.removeItem("previousStepUrl")}function vi(){var e=new pe.Tour({defaultStepOptions:{cancelIcon:{enabled:!0,label:Joomla.Text._("JCANCEL")},classes:"shepherd-theme-arrows",scrollTo:{behavior:"smooth",block:"center"}},useModalOverlay:!0,keyboardNavigation:!0});return e.on("cancel",function(){et(),e.steps=[]}),e}function cn(e,t,r){var n=e.querySelector(".shepherd-header"),i=document.createElement("div");i.classList.add("shepherd-progress"),i.setAttribute("role","status"),i.setAttribute("aria-label",Joomla.Text._("PLG_SYSTEM_GUIDEDTOURS_STEP_NUMBER_OF").replace("{number}",t).replace("{total}",r));var o=document.createElement("span");o.setAttribute("aria-hidden",!0),o.innerText=t+"/"+r,i.appendChild(o),n.insertBefore(i,e.querySelector(".shepherd-cancel-icon"))}function tt(e,t,r){e&&!e.disabled?e.focus():t&&!t.disabled?t.focus():r.focus()}function mi(e,t,r){var n=new pe.Step(e,{title:t.title,text:t.description,classes:"shepherd-theme-arrows",buttons:r,id:t.id,arrow:!0,beforeShowPromise:function(){return new Promise(function(a){if(e.currentStep.options.attachTo.element){var s=e.currentStep.options.attachTo.element.split(","),l=e.currentStep.options.attachTo.on;e.currentStep.options.attachTo.element="",e.currentStep.options.attachTo.on="center";for(var u=0;u<s.length;u+=1){var f=document.querySelector(s[u]);if(f!=null&&!f.disabled&&!f.readonly&&f.style.display!=="none"){e.currentStep.options.attachTo.element=s[u],e.currentStep.options.attachTo.on=l;break}}}if(e.currentStep.options.attachTo.type==="redirect"){var v=Joomla.getOptions("system.paths").rootFull+e.currentStep.options.attachTo.url;window.location.href!==v?(sessionStorage.setItem("currentStepId",e.currentStep.id),sessionStorage.setItem("previousStepUrl",window.location.href),window.location.href=v):a()}else a()}).catch(function(){})},when:{show:function(){var a=this.getElement(),s=this.getTarget();if(a.setAttribute("aria-live","assertive"),sessionStorage.setItem("currentStepId",this.id),cn(a,this.id+1,sessionStorage.getItem("stepCount")),s&&this.options.attachTo.type==="interactive"){var l=a.querySelector(".shepherd-cancel-icon"),u=a.querySelector(".shepherd-button-primary"),f=a.querySelector(".shepherd-button-secondary");s.tagName.toLowerCase()==="input"&&s.hasAttribute("required")&&["email","password","search","tel","text","url"].includes(s.type)&&(s.value.trim().length?(u.removeAttribute("disabled"),u.classList.remove("disabled")):(u.setAttribute("disabled","disabled"),u.classList.add("disabled"))),l.addEventListener("keydown",function(v){v.key==="Tab"&&(s.tagName.toLowerCase()==="joomla-field-fancy-select"?(s.querySelector(".choices").click(),s.querySelector(".choices input").focus()):s.parentElement.tagName.toLowerCase()==="joomla-field-fancy-select"?(s.click(),s.querySelector("input").focus()):(s.focus(),v.preventDefault()))}),s.tagName.toLowerCase()==="iframe"?s.contentWindow.document.body.addEventListener("blur",function(v){sessionStorage.getItem("tourId")&&(setTimeout(function(){tt(u,f,l)},1),v.preventDefault())}):s.tagName.toLowerCase()==="joomla-field-fancy-select"?s.querySelector(".choices input").addEventListener("blur",function(v){sessionStorage.getItem("tourId")&&(tt(u,f,l),v.preventDefault())}):s.parentElement.tagName.toLowerCase()==="joomla-field-fancy-select"?s.querySelector("input").addEventListener("blur",function(v){sessionStorage.getItem("tourId")&&(tt(u,f,l),v.preventDefault())}):s.addEventListener("blur",function(v){sessionStorage.getItem("tourId")&&(tt(u,f,l),v.preventDefault())})}}}});if(t.target?n.updateStepOptions({attachTo:{element:t.target,on:t.position,url:t.url,type:t.type,interactive_type:t.interactive_type}}):n.updateStepOptions({attachTo:{url:t.url,type:t.type,interactive_type:t.interactive_type}}),t.type!=="next"){var i=Joomla.getOptions("system.paths").root+"/"+t.url;sessionStorage.getItem(i)&&sessionStorage.removeItem(i)}e.addStep(n)}function gi(e,t){e.addStep({title:t.title,text:t.description,classes:"shepherd-theme-arrows",buttons:[{classes:"btn btn-primary shepherd-button-primary",action:function(){return this.next()},text:Joomla.Text._("PLG_SYSTEM_GUIDEDTOURS_START")}],id:"tourinfo",when:{show:function(){sessionStorage.setItem("currentStepId","tourinfo"),cn(this.getElement(),1,sessionStorage.getItem("stepCount"))}}})}function yi(e){e.push({text:Joomla.Text._("PLG_SYSTEM_GUIDEDTOURS_COMPLETE"),classes:"btn btn-primary shepherd-button-primary",action:function(){return this.cancel()}})}function bi(e,t,r,n){r===void 0&&(r=!1),n===void 0&&(n=""),e.push({text:Joomla.Text._("PLG_SYSTEM_GUIDEDTOURS_NEXT"),classes:"btn btn-primary shepherd-button-primary step-next-button-"+t.id+" "+n,action:function(){return this.next()},disabled:r})}function wi(e,t){e.push({text:Joomla.Text._("PLG_SYSTEM_GUIDEDTOURS_BACK"),classes:"btn btn-secondary shepherd-button-secondary",action:function(){if(t.type==="redirect"){sessionStorage.setItem("currentStepId",t.id-1);var n=sessionStorage.getItem("previousStepUrl");n&&(sessionStorage.removeItem("previousStepUrl"),window.location.href=n)}return this.back()}})}function Si(e){var t=document.querySelector(".step-next-button-"+e.currentTarget.step_id);t.removeAttribute("disabled"),t.classList.remove("disabled")}function _i(e){var t=document.querySelector(".step-next-button-"+e.currentTarget.step_id);t.setAttribute("disabled","disabled"),t.classList.add("disabled")}function Ei(e){sessionStorage.setItem("tourId",e.id),sessionStorage.setItem("stepCount",String(e.steps.length));var t=sessionStorage.getItem("currentStepId"),r=null,n=-1;t!=null&&Number(t)>-1&&(n=typeof e.steps[t]<"u"?Number(t):-1,n>0&&(r=e.steps[n-1]));var i=vi();if(n<0){var o=Joomla.getOptions("system.paths").rootFull,a=window.location.href;if(a!==o+e.steps[0].url){window.location.href=o+e.steps[0].url;return}gi(i,e.steps[0]),n=1}for(var s=e.steps.length,l,u=function(d){if(l=[],(r===null||d>n||e.steps[d].type==="redirect")&&wi(l,e.steps[d]),e&&e.steps[d].target&&e.steps[d].type==="interactive"){var w=document.querySelector(e.steps[d].target);if(w&&e&&e.steps&&e.steps[d]&&e.steps[d].interactive_type)switch(e.steps[d].interactive_type){case"submit":w.addEventListener("click",function(){sessionStorage.getItem("tourId")&&sessionStorage.setItem("currentStepId",e.steps[d].id+1)});break;case"text":w.step_id=d,w.hasAttribute("required")&&["email","password","search","tel","text","url"].includes(w.type)&&["input","focus"].forEach(function(m){return w.addEventListener(m,function(T){sessionStorage.getItem("tourId")&&(T.target.value.trim().length?Si(T):_i(T))})});break;case"button":w.addEventListener("click",function(){sessionStorage.setItem("currentStepId",e.steps[d].id+1),i.next()});break}}d<s-1?(e&&e.steps[d].type!=="interactive"||e&&e.steps[d].interactive_type==="text"||e&&e.steps[d].interactive_type==="other")&&bi(l,e.steps[d]):yi(l),mi(i,e.steps[d],l),r=e.steps[d]},f=n;f<s;f+=1)u(f);i.start()}function dn(e){if(e>0){var t=Joomla.getOptions("system.paths").rootFull+"administrator/index.php?option=com_ajax&plugin=guidedtours&group=system&format=json&id="+e;fetch(t).then(function(r){return r.json()}).then(function(r){r.success||(r.messages&&Joomla.renderMessages(r.messages),et()),Ei(r.data)}).catch(function(r){et();var n={error:[Joomla.Text._("PLG_SYSTEM_GUIDEDTOURS_TOUR_ERROR")]};throw Joomla.renderMessages(n),new Error(r)})}}document.querySelector("body").addEventListener("click",function(e){if(!(!e.target||!e.target.classList.contains("button-start-guidedtour"))){if(typeof e.target.getAttribute("data-id")>"u"||e.target.getAttribute("data-id")<=0){Joomla.renderMessages({error:[Joomla.Text._("PLG_SYSTEM_GUIDEDTOURS_COULD_NOT_LOAD_THE_TOUR")]});return}sessionStorage.setItem("tourToken",String(Joomla.getOptions("com_guidedtours.token"))),dn(e.target.getAttribute("data-id"))}});var hn=sessionStorage.getItem("tourId");hn>0&&sessionStorage.getItem("tourToken")===String(Joomla.getOptions("com_guidedtours.token"))?dn(hn):et()})();

© 2025 Cubjrnet7