diff --git a/dist/tour.js b/dist/tour.js
index 1faf5bdafdec73aa6ffcf058f19d5b37938965f1..fbe378cb2d04609ab1ce4bdc8a9e9564bcdec62d 100644
--- a/dist/tour.js
+++ b/dist/tour.js
@@ -1 +1 @@
-/*! shepherd.js 14.0.1 */function en(e){return e instanceof Element}function Me(e){return e instanceof HTMLElement}function Z(e){return typeof e=="function"}function Ce(e){return typeof e=="string"}function A(e){return e===void 0}class Je{on(t,n,o,i=!1){var r;return A(this.bindings)&&(this.bindings={}),A(this.bindings[t])&&(this.bindings[t]=[]),(r=this.bindings[t])==null||r.push({handler:n,ctx:o,once:i}),this}once(t,n,o){return this.on(t,n,o,!0)}off(t,n){if(A(this.bindings)||A(this.bindings[t]))return this;if(A(n))delete this.bindings[t];else{var o;(o=this.bindings[t])==null||o.forEach((i,r)=>{if(i.handler===n){var s;(s=this.bindings[t])==null||s.splice(r,1)}})}return this}trigger(t,...n){if(!A(this.bindings)&&this.bindings[t]){var o;(o=this.bindings[t])==null||o.forEach((i,r)=>{const{ctx:s,handler:l,once:c}=i,a=s||this;if(l.apply(a,n),c){var f;(f=this.bindings[t])==null||f.splice(r,1)}})}return this}}function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},C.apply(null,arguments)}function Mt(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.includes(o))continue;n[o]=e[o]}return n}const ee={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};ee.defaultMerge;function tn(e,t){return t}function ft(e){return typeof e!="object"||e===null?0:Array.isArray(e)?2:sn(e)?1:e instanceof Set?3:e instanceof Map?4:5}function nn(e){const t=new Set;for(const n of e)for(const o of[...Object.keys(n),...Object.getOwnPropertySymbols(n)])t.add(o);return t}function on(e,t){return typeof e=="object"&&Object.prototype.propertyIsEnumerable.call(e,t)}function Pt(e){return{*[Symbol.iterator](){for(const t of e)for(const n of t)yield n}}}const ut=new Set(["[object Object]","[object Module]"]);function sn(e){if(!ut.has(Object.prototype.toString.call(e)))return!1;const{constructor:t}=e;if(t===void 0)return!0;const n=t.prototype;return!(n===null||typeof n!="object"||!ut.has(Object.prototype.toString.call(n))||!n.hasOwnProperty("isPrototypeOf"))}function rn(e,t,n){const o={};for(const i of nn(e)){const r=[];for(const c of e)on(c,i)&&r.push(c[i]);if(r.length===0)continue;const s=t.metaDataUpdater(n,{key:i,parents:e}),l=Lt(r,t,s);l!==ee.skip&&(i==="__proto__"?Object.defineProperty(o,i,{value:l,configurable:!0,enumerable:!0,writable:!0}):o[i]=l)}return o}function ln(e){return e.flat()}function cn(e){return new Set(Pt(e))}function an(e){return new Map(Pt(e))}function Rt(e){return e.at(-1)}var ze=Object.freeze({__proto__:null,mergeArrays:ln,mergeMaps:an,mergeOthers:Rt,mergeRecords:rn,mergeSets:cn});function et(...e){return fn({})(...e)}function fn(e,t){const n=un(e,o);function o(...i){return Lt(i,n,t)}return o}function un(e,t){var n,o;return{defaultMergeFunctions:ze,mergeFunctions:C({},ze,Object.fromEntries(Object.entries(e).filter(([i,r])=>Object.hasOwn(ze,i)).map(([i,r])=>r===!1?[i,Rt]:[i,r]))),metaDataUpdater:(n=e.metaDataUpdater)!=null?n:tn,deepmerge:t,useImplicitDefaultMerging:(o=e.enableImplicitDefaultMerging)!=null?o:!1,actions:ee}}function Lt(e,t,n){if(e.length===0)return;if(e.length===1)return $e(e,t,n);const o=ft(e[0]);if(o!==0&&o!==5){for(let i=1;i<e.length;i++)if(ft(e[i])!==o)return $e(e,t,n)}switch(o){case 1:return dn(e,t,n);case 2:return hn(e,t,n);case 3:return pn(e,t,n);case 4:return gn(e,t,n);default:return $e(e,t,n)}}function dn(e,t,n){const o=t.mergeFunctions.mergeRecords(e,t,n);return o===ee.defaultMerge||t.useImplicitDefaultMerging&&o===void 0&&t.mergeFunctions.mergeRecords!==t.defaultMergeFunctions.mergeRecords?t.defaultMergeFunctions.mergeRecords(e,t,n):o}function hn(e,t,n){const o=t.mergeFunctions.mergeArrays(e,t,n);return o===ee.defaultMerge||t.useImplicitDefaultMerging&&o===void 0&&t.mergeFunctions.mergeArrays!==t.defaultMergeFunctions.mergeArrays?t.defaultMergeFunctions.mergeArrays(e):o}function pn(e,t,n){const o=t.mergeFunctions.mergeSets(e,t,n);return o===ee.defaultMerge||t.useImplicitDefaultMerging&&o===void 0&&t.mergeFunctions.mergeSets!==t.defaultMergeFunctions.mergeSets?t.defaultMergeFunctions.mergeSets(e):o}function gn(e,t,n){const o=t.mergeFunctions.mergeMaps(e,t,n);return o===ee.defaultMerge||t.useImplicitDefaultMerging&&o===void 0&&t.mergeFunctions.mergeMaps!==t.defaultMergeFunctions.mergeMaps?t.defaultMergeFunctions.mergeMaps(e):o}function $e(e,t,n){const o=t.mergeFunctions.mergeOthers(e,t,n);return o===ee.defaultMerge||t.useImplicitDefaultMerging&&o===void 0&&t.mergeFunctions.mergeOthers!==t.defaultMergeFunctions.mergeOthers?t.defaultMergeFunctions.mergeOthers(e):o}function tt(e){const t=Object.getOwnPropertyNames(e.constructor.prototype);for(let n=0;n<t.length;n++){const o=t[n],i=e[o];o!=="constructor"&&typeof i=="function"&&(e[o]=i.bind(e))}return e}function mn(e,t){return n=>{if(e.isOpen()){const o=e.el&&n.currentTarget===e.el;(!A(t)&&n.currentTarget.matches(t)||o)&&e.tour.next()}}}function bn(e){const{event:t,selector:n}=e.options.advanceOn||{};if(t){const o=mn(e,n);let i=null;if(!A(n)&&(i=document.querySelector(n),!i))return console.error(`No element was found for the selector supplied to advanceOn: ${n}`);i?(i.addEventListener(t,o),e.on("destroy",()=>i.removeEventListener(t,o))):(document.body.addEventListener(t,o,!0),e.on("destroy",()=>document.body.removeEventListener(t,o,!0)))}else return console.error("advanceOn was defined, but no event name was passed.")}class wn{constructor(t){}}class yn{constructor(t,n){}}function Ft(e){return!Ce(e)||e===""?"":e.charAt(e.length-1)!=="-"?`${e}-`:e}function _n(e){const t=e.options.attachTo||{},n=Object.assign({},t);if(Z(n.element)&&(n.element=n.element.call(e)),Ce(n.element)){try{n.element=document.querySelector(n.element)}catch{}n.element||console.error(`The element for this Shepherd step was not found ${t.element}`)}return n}function Bt(e){return e==null?!0:!e.element||!e.on}function Dt(){let e=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(e+Math.random()*16)%16|0;return e=Math.floor(e/16),(t=="x"?n:n&3|8).toString(16)})}const ye=Math.min,se=Math.max,Be=Math.round,Le=Math.floor,G=e=>({x:e,y:e}),vn={left:"right",right:"left",bottom:"top",top:"bottom"},xn={start:"end",end:"start"};function Ke(e,t,n){return se(e,ye(t,n))}function _e(e,t){return typeof e=="function"?e(t):e}function ce(e){return e.split("-")[0]}function He(e){return e.split("-")[1]}function nt(e){return e==="x"?"y":"x"}function ot(e){return e==="y"?"height":"width"}function ve(e){return["top","bottom"].includes(ce(e))?"y":"x"}function it(e){return nt(ve(e))}function Sn(e,t,n){n===void 0&&(n=!1);const o=He(e),i=it(e),r=ot(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(s=De(s)),[s,De(s)]}function On(e){const t=De(e);return[Xe(e),t,Xe(t)]}function Xe(e){return e.replace(/start|end/g,t=>xn[t])}function Tn(e,t,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:o:t?o:i;case"left":case"right":return t?r:s;default:return[]}}function An(e,t,n,o){const i=He(e);let r=Tn(ce(e),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),t&&(r=r.concat(r.map(Xe)))),r}function De(e){return e.replace(/left|right|bottom|top/g,t=>vn[t])}function En(e){return C({top:0,right:0,bottom:0,left:0},e)}function jt(e){return typeof e!="number"?En(e):{top:e,right:e,bottom:e,left:e}}function je(e){const{x:t,y:n,width:o,height:i}=e;return{width:o,height:i,top:n,left:t,right:t+o,bottom:n+i,x:t,y:n}}const Cn=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],In=["mainAxis","crossAxis","limiter"];function dt(e,t,n){let{reference:o,floating:i}=e;const r=ve(t),s=it(t),l=ot(s),c=ce(t),a=r==="y",f=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,u=o[l]/2-i[l]/2;let h;switch(c){case"top":h={x:f,y:o.y-i.height};break;case"bottom":h={x:f,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:d};break;case"left":h={x:o.x-i.width,y:d};break;default:h={x:o.x,y:o.y}}switch(He(t)){case"start":h[s]-=u*(n&&a?-1:1);break;case"end":h[s]+=u*(n&&a?-1:1);break}return h}const kn=async(e,t,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,l=r.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let a=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:d}=dt(a,o,c),u=o,h={},g=0;for(let m=0;m<l.length;m++){const{name:w,fn:y}=l[m],{x:_,y:v,data:b,reset:p}=await y({x:f,y:d,initialPlacement:o,placement:u,strategy:i,middlewareData:h,rects:a,platform:s,elements:{reference:e,floating:t}});f=_??f,d=v??d,h=C({},h,{[w]:C({},h[w],b)}),p&&g<=50&&(g++,typeof p=="object"&&(p.placement&&(u=p.placement),p.rects&&(a=p.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):p.rects),{x:f,y:d}=dt(a,u,c)),m=-1)}return{x:f,y:d,placement:u,strategy:i,middlewareData:h}};async function Nt(e,t){var n;t===void 0&&(t={});const{x:o,y:i,platform:r,rects:s,elements:l,strategy:c}=e,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:u=!1,padding:h=0}=_e(t,e),g=jt(h),w=l[u?d==="floating"?"reference":"floating":d],y=je(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(w)))==null||n?w:w.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(l.floating)),boundary:a,rootBoundary:f,strategy:c})),_=d==="floating"?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,v=await(r.getOffsetParent==null?void 0:r.getOffsetParent(l.floating)),b=await(r.isElement==null?void 0:r.isElement(v))?await(r.getScale==null?void 0:r.getScale(v))||{x:1,y:1}:{x:1,y:1},p=je(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:_,offsetParent:v,strategy:c}):_);return{top:(y.top-p.top+g.top)/b.y,bottom:(p.bottom-y.bottom+g.bottom)/b.y,left:(y.left-p.left+g.left)/b.x,right:(p.right-y.right+g.right)/b.x}}const Mn=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:i,rects:r,platform:s,elements:l,middlewareData:c}=t,{element:a,padding:f=0}=_e(e,t)||{};if(a==null)return{};const d=jt(f),u={x:n,y:o},h=it(i),g=ot(h),m=await s.getDimensions(a),w=h==="y",y=w?"top":"left",_=w?"bottom":"right",v=w?"clientHeight":"clientWidth",b=r.reference[g]+r.reference[h]-u[h]-r.floating[g],p=u[h]-r.reference[h],x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let E=x?x[v]:0;(!E||!await(s.isElement==null?void 0:s.isElement(x)))&&(E=l.floating[v]||r.floating[g]);const K=b/2-p/2,F=E/2-m[g]/2-1,H=ye(d[y],F),M=ye(d[_],F),P=H,oe=E-m[g]-M,R=E/2-m[g]/2+K,ue=Ke(P,R,oe),B=!c.arrow&&He(i)!=null&&R!==ue&&r.reference[g]/2-(R<P?H:M)-m[g]/2<0,de=B?R<P?R-P:R-oe:0;return{[h]:u[h]+de,data:C({[h]:ue,centerOffset:R-ue-de},B&&{alignmentOffset:de}),reset:B}}}),Pn=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(n){var o,i;const{placement:r,middlewareData:s,rects:l,initialPlacement:c,platform:a,elements:f}=n,d=_e(t,n),{mainAxis:u=!0,crossAxis:h=!0,fallbackPlacements:g,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:y=!0}=d,_=Mt(d,Cn);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const v=ce(r),b=ve(c),p=ce(c)===c,x=await(a.isRTL==null?void 0:a.isRTL(f.floating)),E=g||(p||!y?[De(c)]:On(c)),K=w!=="none";!g&&K&&E.push(...An(c,y,w,x));const F=[c,...E],H=await Nt(n,_),M=[];let P=((i=s.flip)==null?void 0:i.overflows)||[];if(u&&M.push(H[v]),h){const B=Sn(r,l,x);M.push(H[B[0]],H[B[1]])}if(P=[...P,{placement:r,overflows:M}],!M.every(B=>B<=0)){var oe,R;const B=(((oe=s.flip)==null?void 0:oe.index)||0)+1,de=F[B];if(de)return{data:{index:B,overflows:P},reset:{placement:de}};let Ae=(R=P.filter(he=>he.overflows[0]<=0).sort((he,X)=>he.overflows[1]-X.overflows[1])[0])==null?void 0:R.placement;if(!Ae)switch(m){case"bestFit":{var ue;const he=(ue=P.filter(X=>{if(K){const Q=ve(X.placement);return Q===b||Q==="y"}return!0}).map(X=>[X.placement,X.overflows.filter(Q=>Q>0).reduce((Q,Jt)=>Q+Jt,0)]).sort((X,Q)=>X[1]-Q[1])[0])==null?void 0:ue[0];he&&(Ae=he);break}case"initialPlacement":Ae=c;break}if(r!==Ae)return{reset:{placement:Ae}}}return{}}}},Rn=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(n){const{x:o,y:i,placement:r}=n,s=_e(t,n),{mainAxis:l=!0,crossAxis:c=!1,limiter:a={fn:_=>{let{x:v,y:b}=_;return{x:v,y:b}}}}=s,f=Mt(s,In),d={x:o,y:i},u=await Nt(n,f),h=ve(ce(r)),g=nt(h);let m=d[g],w=d[h];if(l){const _=g==="y"?"top":"left",v=g==="y"?"bottom":"right",b=m+u[_],p=m-u[v];m=Ke(b,m,p)}if(c){const _=h==="y"?"top":"left",v=h==="y"?"bottom":"right",b=w+u[_],p=w-u[v];w=Ke(b,w,p)}const y=a.fn(C({},n,{[g]:m,[h]:w}));return C({},y,{data:{x:y.x-o,y:y.y-i}})}}},Ln=function(t){return t===void 0&&(t={}),{options:t,fn(n){const{x:o,y:i,placement:r,rects:s,middlewareData:l}=n,{offset:c=0,mainAxis:a=!0,crossAxis:f=!0}=_e(t,n),d={x:o,y:i},u=ve(r),h=nt(u);let g=d[h],m=d[u];const w=_e(c,n),y=typeof w=="number"?{mainAxis:w,crossAxis:0}:C({mainAxis:0,crossAxis:0},w);if(a){const b=h==="y"?"height":"width",p=s.reference[h]-s.floating[b]+y.mainAxis,x=s.reference[h]+s.reference[b]-y.mainAxis;g<p?g=p:g>x&&(g=x)}if(f){var _,v;const b=h==="y"?"width":"height",p=["top","left"].includes(ce(r)),x=s.reference[u]-s.floating[b]+(p&&((_=l.offset)==null?void 0:_[u])||0)+(p?0:y.crossAxis),E=s.reference[u]+s.reference[b]+(p?0:((v=l.offset)==null?void 0:v[u])||0)-(p?y.crossAxis:0);m<x?m=x:m>E&&(m=E)}return{[h]:g,[u]:m}}}};function Te(e){return Ht(e)?(e.nodeName||"").toLowerCase():"#document"}function I(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function z(e){var t;return(t=(Ht(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ht(e){return e instanceof Node||e instanceof I(e).Node}function D(e){return e instanceof Element||e instanceof I(e).Element}function W(e){return e instanceof HTMLElement||e instanceof I(e).HTMLElement}function ht(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof I(e).ShadowRoot}function Pe(e){const{overflow:t,overflowX:n,overflowY:o,display:i}=j(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(i)}function Fn(e){return["table","td","th"].includes(Te(e))}function Ve(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function st(e){const t=rt(),n=D(e)?j(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Bn(e){let t=J(e);for(;W(t)&&!xe(t);){if(st(t))return t;if(Ve(t))return null;t=J(t)}return null}function rt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function xe(e){return["html","body","#document"].includes(Te(e))}function j(e){return I(e).getComputedStyle(e)}function We(e){return D(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function J(e){if(Te(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ht(e)&&e.host||z(e);return ht(t)?t.host:t}function Vt(e){const t=J(e);return xe(t)?e.ownerDocument?e.ownerDocument.body:e.body:W(t)&&Pe(t)?t:Vt(t)}function Ie(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Vt(e),r=i===((o=e.ownerDocument)==null?void 0:o.body),s=I(i);return r?t.concat(s,s.visualViewport||[],Pe(i)?i:[],s.frameElement&&n?Ie(s.frameElement):[]):t.concat(i,Ie(i,[],n))}function Wt(e){const t=j(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=W(e),r=i?e.offsetWidth:n,s=i?e.offsetHeight:o,l=Be(n)!==r||Be(o)!==s;return l&&(n=r,o=s),{width:n,height:o,$:l}}function lt(e){return D(e)?e:e.contextElement}function be(e){const t=lt(e);if(!W(t))return G(1);const n=t.getBoundingClientRect(),{width:o,height:i,$:r}=Wt(t);let s=(r?Be(n.width):n.width)/o,l=(r?Be(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const Dn=G(0);function Ut(e){const t=I(e);return!rt()||!t.visualViewport?Dn:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function jn(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==I(e)?!1:t}function ae(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),r=lt(e);let s=G(1);t&&(o?D(o)&&(s=be(o)):s=be(e));const l=jn(r,n,o)?Ut(r):G(0);let c=(i.left+l.x)/s.x,a=(i.top+l.y)/s.y,f=i.width/s.x,d=i.height/s.y;if(r){const u=I(r),h=o&&D(o)?I(o):o;let g=u,m=g.frameElement;for(;m&&o&&h!==g;){const w=be(m),y=m.getBoundingClientRect(),_=j(m),v=y.left+(m.clientLeft+parseFloat(_.paddingLeft))*w.x,b=y.top+(m.clientTop+parseFloat(_.paddingTop))*w.y;c*=w.x,a*=w.y,f*=w.x,d*=w.y,c+=v,a+=b,g=I(m),m=g.frameElement}}return je({width:f,height:d,x:c,y:a})}function Nn(e){let{elements:t,rect:n,offsetParent:o,strategy:i}=e;const r=i==="fixed",s=z(o),l=t?Ve(t.floating):!1;if(o===s||l&&r)return n;let c={scrollLeft:0,scrollTop:0},a=G(1);const f=G(0),d=W(o);if((d||!d&&!r)&&((Te(o)!=="body"||Pe(s))&&(c=We(o)),W(o))){const u=ae(o);a=be(o),f.x=u.x+o.clientLeft,f.y=u.y+o.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-c.scrollLeft*a.x+f.x,y:n.y*a.y-c.scrollTop*a.y+f.y}}function Hn(e){return Array.from(e.getClientRects())}function zt(e){return ae(z(e)).left+We(e).scrollLeft}function Vn(e){const t=z(e),n=We(e),o=e.ownerDocument.body,i=se(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),r=se(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+zt(e);const l=-n.scrollTop;return j(o).direction==="rtl"&&(s+=se(t.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:l}}function Wn(e,t){const n=I(e),o=z(e),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,l=0,c=0;if(i){r=i.width,s=i.height;const a=rt();(!a||a&&t==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:r,height:s,x:l,y:c}}function Un(e,t){const n=ae(e,!0,t==="fixed"),o=n.top+e.clientTop,i=n.left+e.clientLeft,r=W(e)?be(e):G(1),s=e.clientWidth*r.x,l=e.clientHeight*r.y,c=i*r.x,a=o*r.y;return{width:s,height:l,x:c,y:a}}function pt(e,t,n){let o;if(t==="viewport")o=Wn(e,n);else if(t==="document")o=Vn(z(e));else if(D(t))o=Un(t,n);else{const i=Ut(e);o=C({},t,{x:t.x-i.x,y:t.y-i.y})}return je(o)}function $t(e,t){const n=J(e);return n===t||!D(n)||xe(n)?!1:j(n).position==="fixed"||$t(n,t)}function zn(e,t){const n=t.get(e);if(n)return n;let o=Ie(e,[],!1).filter(l=>D(l)&&Te(l)!=="body"),i=null;const r=j(e).position==="fixed";let s=r?J(e):e;for(;D(s)&&!xe(s);){const l=j(s),c=st(s);!c&&l.position==="fixed"&&(i=null),(r?!c&&!i:!c&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Pe(s)&&!c&&$t(e,s))?o=o.filter(f=>f!==s):i=l,s=J(s)}return t.set(e,o),o}function $n(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e;const s=[...n==="clippingAncestors"?Ve(t)?[]:zn(t,this._c):[].concat(n),o],l=s[0],c=s.reduce((a,f)=>{const d=pt(t,f,i);return a.top=se(d.top,a.top),a.right=ye(d.right,a.right),a.bottom=ye(d.bottom,a.bottom),a.left=se(d.left,a.left),a},pt(t,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function qn(e){const{width:t,height:n}=Wt(e);return{width:t,height:n}}function Yn(e,t,n){const o=W(t),i=z(t),r=n==="fixed",s=ae(e,!0,r,t);let l={scrollLeft:0,scrollTop:0};const c=G(0);if(o||!o&&!r)if((Te(t)!=="body"||Pe(i))&&(l=We(t)),o){const d=ae(t,!0,r,t);c.x=d.x+t.clientLeft,c.y=d.y+t.clientTop}else i&&(c.x=zt(i));const a=s.left+l.scrollLeft-c.x,f=s.top+l.scrollTop-c.y;return{x:a,y:f,width:s.width,height:s.height}}function qe(e){return j(e).position==="static"}function gt(e,t){return!W(e)||j(e).position==="fixed"?null:t?t(e):e.offsetParent}function qt(e,t){const n=I(e);if(Ve(e))return n;if(!W(e)){let i=J(e);for(;i&&!xe(i);){if(D(i)&&!qe(i))return i;i=J(i)}return n}let o=gt(e,t);for(;o&&Fn(o)&&qe(o);)o=gt(o,t);return o&&xe(o)&&qe(o)&&!st(o)?n:o||Bn(e)||n}const Kn=async function(t){const n=this.getOffsetParent||qt,o=this.getDimensions,i=await o(t.floating);return{reference:Yn(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Xn(e){return j(e).direction==="rtl"}const Qn={convertOffsetParentRelativeRectToViewportRelativeRect:Nn,getDocumentElement:z,getClippingRect:$n,getOffsetParent:qt,getElementRects:Kn,getClientRects:Hn,getDimensions:qn,getScale:be,isElement:D,isRTL:Xn};function Zn(e,t){let n=null,o;const i=z(e);function r(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),r();const{left:a,top:f,width:d,height:u}=e.getBoundingClientRect();if(l||t(),!d||!u)return;const h=Le(f),g=Le(i.clientWidth-(a+d)),m=Le(i.clientHeight-(f+u)),w=Le(a),_={rootMargin:-h+"px "+-g+"px "+-m+"px "+-w+"px",threshold:se(0,ye(1,c))||1};let v=!0;function b(p){const x=p[0].intersectionRatio;if(x!==c){if(!v)return s();x?s(!1,x):o=setTimeout(()=>{s(!1,1e-7)},1e3)}v=!1}try{n=new IntersectionObserver(b,C({},_,{root:i.ownerDocument}))}catch{n=new IntersectionObserver(b,_)}n.observe(e)}return s(!0),r}function Gn(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,a=lt(e),f=i||r?[...a?Ie(a):[],...Ie(t)]:[];f.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),r&&y.addEventListener("resize",n)});const d=a&&l?Zn(a,n):null;let u=-1,h=null;s&&(h=new ResizeObserver(y=>{let[_]=y;_&&_.target===a&&h&&(h.unobserve(t),cancelAnimationFrame(u),u=requestAnimationFrame(()=>{var v;(v=h)==null||v.observe(t)})),n()}),a&&!c&&h.observe(a),h.observe(t));let g,m=c?ae(e):null;c&&w();function w(){const y=ae(e);m&&(y.x!==m.x||y.y!==m.y||y.width!==m.width||y.height!==m.height)&&n(),m=y,g=requestAnimationFrame(w)}return n(),()=>{var y;f.forEach(_=>{i&&_.removeEventListener("scroll",n),r&&_.removeEventListener("resize",n)}),d==null||d(),(y=h)==null||y.disconnect(),h=null,c&&cancelAnimationFrame(g)}}const Jn=Rn,eo=Pn,to=Mn,no=Ln,oo=(e,t,n)=>{const o=new Map,i=C({platform:Qn},n),r=C({},i.platform,{_c:o});return kn(e,t,C({},i,{platform:r}))};function io(e){e.cleanup&&e.cleanup();const t=e._getResolvedAttachToOptions();let n=t.element;const o=fo(t,e),i=Bt(t);return i&&(n=document.body,e.shepherdElementComponent.getElement().classList.add("shepherd-centered")),e.cleanup=Gn(n,e.el,()=>{if(!e.el){e.cleanup==null||e.cleanup();return}lo(n,e,o,i)}),e.target=t.element,o}function so(e,t){return{floatingUIOptions:et(e.floatingUIOptions||{},t.floatingUIOptions||{})}}function ro(e){e.cleanup&&e.cleanup(),e.cleanup=null}function lo(e,t,n,o){return oo(e,t.el,n).then(co(t,o)).then(i=>new Promise(r=>{setTimeout(()=>r(i),300)})).then(i=>{i!=null&&i.el&&i.el.focus({preventScroll:!0})})}function co(e,t){return({x:n,y:o,placement:i,middlewareData:r})=>(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:`${o}px`}),e.el.dataset.popperPlacement=i,ao(e.el,r)),e)}function ao(e,t){const n=e.querySelector(".shepherd-arrow");if(Me(n)&&t.arrow){const{x:o,y:i}=t.arrow;Object.assign(n.style,{left:o!=null?`${o}px`:"",top:i!=null?`${i}px`:""})}}function fo(e,t){const n={strategy:"absolute"};n.middleware=[];const o=uo(t);if(!Bt(e)){if(n.middleware.push(eo(),Jn({limiter:no(),crossAxis:!0})),o){var r,s;const l=(e==null||(r=e.on)==null?void 0:r.includes("-start"))||(e==null||(s=e.on)==null?void 0:s.includes("-end"));n.middleware.push(to({element:o,padding:l?4:0}))}n.placement=e.on}return et(n,t.options.floatingUIOptions||{})}function uo(e){return e.options.arrow&&e.el?e.el.querySelector(".shepherd-arrow"):!1}function k(){}function ho(e,t){for(const n in t)e[n]=t[n];return e}function Yt(e){return e()}function mt(){return Object.create(null)}function Re(e){e.forEach(Yt)}function ct(e){return typeof e=="function"}function $(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function po(e){return Object.keys(e).length===0}function Se(e,t){e.appendChild(t)}function N(e,t,n){e.insertBefore(t,n||null)}function L(e){e.parentNode&&e.parentNode.removeChild(e)}function go(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function U(e){return document.createElement(e)}function bt(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Kt(e){return document.createTextNode(e)}function Ne(){return Kt(" ")}function mo(){return Kt("")}function Ue(e,t,n,o){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n,o)}function O(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}const bo=["width","height"];function wt(e,t){const n=Object.getOwnPropertyDescriptors(e.__proto__);for(const o in t)t[o]==null?e.removeAttribute(o):o==="style"?e.style.cssText=t[o]:o==="__value"?e.value=e[o]=t[o]:n[o]&&n[o].set&&bo.indexOf(o)===-1?e[o]=t[o]:O(e,o,t[o])}function wo(e){return Array.from(e.childNodes)}function pe(e,t,n){e.classList.toggle(t,!!n)}let ke;function Ee(e){ke=e}function Xt(){if(!ke)throw new Error("Function called outside component initialization");return ke}function yo(e){Xt().$$.on_mount.push(e)}function at(e){Xt().$$.after_update.push(e)}const me=[],Oe=[];let we=[];const yt=[],_o=Promise.resolve();let Qe=!1;function vo(){Qe||(Qe=!0,_o.then(Qt))}function Ze(e){we.push(e)}const Ye=new Set;let ge=0;function Qt(){if(ge!==0)return;const e=ke;do{try{for(;ge<me.length;){const t=me[ge];ge++,Ee(t),xo(t.$$)}}catch(t){throw me.length=0,ge=0,t}for(Ee(null),me.length=0,ge=0;Oe.length;)Oe.pop()();for(let t=0;t<we.length;t+=1){const n=we[t];Ye.has(n)||(Ye.add(n),n())}we.length=0}while(me.length);for(;yt.length;)yt.pop()();Qe=!1,Ye.clear(),Ee(e)}function xo(e){if(e.fragment!==null){e.update(),Re(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Ze)}}function So(e){const t=[],n=[];we.forEach(o=>e.indexOf(o)===-1?t.push(o):n.push(o)),n.forEach(o=>o()),we=t}const Fe=new Set;let ie;function re(){ie={r:0,c:[],p:ie}}function le(){ie.r||Re(ie.c),ie=ie.p}function S(e,t){e&&e.i&&(Fe.delete(e),e.i(t))}function T(e,t,n,o){if(e&&e.o){if(Fe.has(e))return;Fe.add(e),ie.c.push(()=>{Fe.delete(e),o&&(n&&e.d(1),o())}),e.o(t)}else o&&o()}function _t(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Oo(e,t){const n={},o={},i={$$scope:1};let r=e.length;for(;r--;){const s=e[r],l=t[r];if(l){for(const c in s)c in l||(o[c]=1);for(const c in l)i[c]||(n[c]=l[c],i[c]=1);e[r]=l}else for(const c in s)i[c]=1}for(const s in o)s in n||(n[s]=void 0);return n}function fe(e){e&&e.c()}function te(e,t,n){const{fragment:o,after_update:i}=e.$$;o&&o.m(t,n),Ze(()=>{const r=e.$$.on_mount.map(Yt).filter(ct);e.$$.on_destroy?e.$$.on_destroy.push(...r):Re(r),e.$$.on_mount=[]}),i.forEach(Ze)}function ne(e,t){const n=e.$$;n.fragment!==null&&(So(n.after_update),Re(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function To(e,t){e.$$.dirty[0]===-1&&(me.push(e),vo(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function q(e,t,n,o,i,r,s=null,l=[-1]){const c=ke;Ee(e);const a=e.$$={fragment:null,ctx:[],props:r,update:k,not_equal:i,bound:mt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:mt(),dirty:l,skip_bound:!1,root:t.target||c.$$.root};s&&s(a.root);let f=!1;if(a.ctx=n?n(e,t.props||{},(d,u,...h)=>{const g=h.length?h[0]:u;return a.ctx&&i(a.ctx[d],a.ctx[d]=g)&&(!a.skip_bound&&a.bound[d]&&a.bound[d](g),f&&To(e,d)),u}):[],a.update(),f=!0,Re(a.before_update),a.fragment=o?o(a.ctx):!1,t.target){if(t.hydrate){const d=wo(t.target);a.fragment&&a.fragment.l(d),d.forEach(L)}else a.fragment&&a.fragment.c();t.intro&&S(e.$$.fragment),te(e,t.target,t.anchor),Qt()}Ee(c)}class Y{constructor(){this.$$=void 0,this.$$set=void 0}$destroy(){ne(this,1),this.$destroy=k}$on(t,n){if(!ct(n))return k;const o=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return o.push(n),()=>{const i=o.indexOf(n);i!==-1&&o.splice(i,1)}}$set(t){this.$$set&&!po(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Ao="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ao);function Eo(e){let t,n,o,i,r;return{c(){t=U("button"),O(t,"aria-label",n=e[3]?e[3]:null),O(t,"class",o=`${e[1]||""} shepherd-button ${e[4]?"shepherd-button-secondary":""}`),t.disabled=e[2],O(t,"tabindex","0"),O(t,"type","button")},m(s,l){N(s,t,l),t.innerHTML=e[5],i||(r=Ue(t,"click",function(){ct(e[0])&&e[0].apply(this,arguments)}),i=!0)},p(s,[l]){e=s,l&32&&(t.innerHTML=e[5]),l&8&&n!==(n=e[3]?e[3]:null)&&O(t,"aria-label",n),l&18&&o!==(o=`${e[1]||""} shepherd-button ${e[4]?"shepherd-button-secondary":""}`)&&O(t,"class",o),l&4&&(t.disabled=e[2])},i:k,o:k,d(s){s&&L(t),i=!1,r()}}}function Co(e,t,n){let{config:o,step:i}=t,r,s,l,c,a,f;function d(u){return Z(u)?u=u.call(i):u}return e.$$set=u=>{"config"in u&&n(6,o=u.config),"step"in u&&n(7,i=u.step)},e.$$.update=()=>{e.$$.dirty&192&&(n(0,r=o.action?o.action.bind(i.tour):null),n(1,s=o.classes),n(2,l=o.disabled?d(o.disabled):!1),n(3,c=o.label?d(o.label):null),n(4,a=o.secondary),n(5,f=o.text?d(o.text):null))},[r,s,l,c,a,f,o,i]}class Io extends Y{constructor(t){super(),q(this,t,Co,Eo,$,{config:6,step:7})}}function vt(e,t,n){const o=e.slice();return o[2]=t[n],o}function xt(e){let t,n,o=_t(e[1]),i=[];for(let s=0;s<o.length;s+=1)i[s]=St(vt(e,o,s));const r=s=>T(i[s],1,1,()=>{i[s]=null});return{c(){for(let s=0;s<i.length;s+=1)i[s].c();t=mo()},m(s,l){for(let c=0;c<i.length;c+=1)i[c]&&i[c].m(s,l);N(s,t,l),n=!0},p(s,l){if(l&3){o=_t(s[1]);let c;for(c=0;c<o.length;c+=1){const a=vt(s,o,c);i[c]?(i[c].p(a,l),S(i[c],1)):(i[c]=St(a),i[c].c(),S(i[c],1),i[c].m(t.parentNode,t))}for(re(),c=o.length;c<i.length;c+=1)r(c);le()}},i(s){if(!n){for(let l=0;l<o.length;l+=1)S(i[l]);n=!0}},o(s){i=i.filter(Boolean);for(let l=0;l<i.length;l+=1)T(i[l]);n=!1},d(s){s&&L(t),go(i,s)}}}function St(e){let t,n;return t=new Io({props:{config:e[2],step:e[0]}}),{c(){fe(t.$$.fragment)},m(o,i){te(t,o,i),n=!0},p(o,i){const r={};i&2&&(r.config=o[2]),i&1&&(r.step=o[0]),t.$set(r)},i(o){n||(S(t.$$.fragment,o),n=!0)},o(o){T(t.$$.fragment,o),n=!1},d(o){ne(t,o)}}}function ko(e){let t,n,o=e[1]&&xt(e);return{c(){t=U("footer"),o&&o.c(),O(t,"class","shepherd-footer")},m(i,r){N(i,t,r),o&&o.m(t,null),n=!0},p(i,[r]){i[1]?o?(o.p(i,r),r&2&&S(o,1)):(o=xt(i),o.c(),S(o,1),o.m(t,null)):o&&(re(),T(o,1,1,()=>{o=null}),le())},i(i){n||(S(o),n=!0)},o(i){T(o),n=!1},d(i){i&&L(t),o&&o.d()}}}function Mo(e,t,n){let o,{step:i}=t;return e.$$set=r=>{"step"in r&&n(0,i=r.step)},e.$$.update=()=>{e.$$.dirty&1&&n(1,o=i.options.buttons)},[i,o]}class Po extends Y{constructor(t){super(),q(this,t,Mo,ko,$,{step:0})}}function Ro(e){let t,n,o,i,r;return{c(){t=U("button"),n=U("span"),n.textContent="×",O(n,"aria-hidden","true"),O(t,"aria-label",o=e[0].label?e[0].label:"Close Tour"),O(t,"class","shepherd-cancel-icon"),O(t,"type","button")},m(s,l){N(s,t,l),Se(t,n),i||(r=Ue(t,"click",e[1]),i=!0)},p(s,[l]){l&1&&o!==(o=s[0].label?s[0].label:"Close Tour")&&O(t,"aria-label",o)},i:k,o:k,d(s){s&&L(t),i=!1,r()}}}function Lo(e,t,n){let{cancelIcon:o,step:i}=t;const r=s=>{s.preventDefault(),i.cancel()};return e.$$set=s=>{"cancelIcon"in s&&n(0,o=s.cancelIcon),"step"in s&&n(2,i=s.step)},[o,r,i]}class Fo extends Y{constructor(t){super(),q(this,t,Lo,Ro,$,{cancelIcon:0,step:2})}}function Bo(e){let t;return{c(){t=U("h3"),O(t,"id",e[1]),O(t,"class","shepherd-title")},m(n,o){N(n,t,o),e[3](t)},p(n,[o]){o&2&&O(t,"id",n[1])},i:k,o:k,d(n){n&&L(t),e[3](null)}}}function Do(e,t,n){let{labelId:o,element:i,title:r}=t;at(()=>{Z(r)&&n(2,r=r()),n(0,i.innerHTML=r,i)});function s(l){Oe[l?"unshift":"push"](()=>{i=l,n(0,i)})}return e.$$set=l=>{"labelId"in l&&n(1,o=l.labelId),"element"in l&&n(0,i=l.element),"title"in l&&n(2,r=l.title)},[i,o,r,s]}class jo extends Y{constructor(t){super(),q(this,t,Do,Bo,$,{labelId:1,element:0,title:2})}}function Ot(e){let t,n;return t=new jo({props:{labelId:e[0],title:e[2]}}),{c(){fe(t.$$.fragment)},m(o,i){te(t,o,i),n=!0},p(o,i){const r={};i&1&&(r.labelId=o[0]),i&4&&(r.title=o[2]),t.$set(r)},i(o){n||(S(t.$$.fragment,o),n=!0)},o(o){T(t.$$.fragment,o),n=!1},d(o){ne(t,o)}}}function Tt(e){let t,n;return t=new Fo({props:{cancelIcon:e[3],step:e[1]}}),{c(){fe(t.$$.fragment)},m(o,i){te(t,o,i),n=!0},p(o,i){const r={};i&8&&(r.cancelIcon=o[3]),i&2&&(r.step=o[1]),t.$set(r)},i(o){n||(S(t.$$.fragment,o),n=!0)},o(o){T(t.$$.fragment,o),n=!1},d(o){ne(t,o)}}}function No(e){let t,n,o,i=e[2]&&Ot(e),r=e[3]&&e[3].enabled&&Tt(e);return{c(){t=U("header"),i&&i.c(),n=Ne(),r&&r.c(),O(t,"class","shepherd-header")},m(s,l){N(s,t,l),i&&i.m(t,null),Se(t,n),r&&r.m(t,null),o=!0},p(s,[l]){s[2]?i?(i.p(s,l),l&4&&S(i,1)):(i=Ot(s),i.c(),S(i,1),i.m(t,n)):i&&(re(),T(i,1,1,()=>{i=null}),le()),s[3]&&s[3].enabled?r?(r.p(s,l),l&8&&S(r,1)):(r=Tt(s),r.c(),S(r,1),r.m(t,null)):r&&(re(),T(r,1,1,()=>{r=null}),le())},i(s){o||(S(i),S(r),o=!0)},o(s){T(i),T(r),o=!1},d(s){s&&L(t),i&&i.d(),r&&r.d()}}}function Ho(e,t,n){let{labelId:o,step:i}=t,r,s;return e.$$set=l=>{"labelId"in l&&n(0,o=l.labelId),"step"in l&&n(1,i=l.step)},e.$$.update=()=>{e.$$.dirty&2&&(n(2,r=i.options.title),n(3,s=i.options.cancelIcon))},[o,i,r,s]}class Vo extends Y{constructor(t){super(),q(this,t,Ho,No,$,{labelId:0,step:1})}}function Wo(e){let t;return{c(){t=U("div"),O(t,"class","shepherd-text"),O(t,"id",e[1])},m(n,o){N(n,t,o),e[3](t)},p(n,[o]){o&2&&O(t,"id",n[1])},i:k,o:k,d(n){n&&L(t),e[3](null)}}}function Uo(e,t,n){let{descriptionId:o,element:i,step:r}=t;at(()=>{let{text:l}=r.options;Z(l)&&(l=l.call(r)),Me(l)?i.appendChild(l):n(0,i.innerHTML=l,i)});function s(l){Oe[l?"unshift":"push"](()=>{i=l,n(0,i)})}return e.$$set=l=>{"descriptionId"in l&&n(1,o=l.descriptionId),"element"in l&&n(0,i=l.element),"step"in l&&n(2,r=l.step)},[i,o,r,s]}class zo extends Y{constructor(t){super(),q(this,t,Uo,Wo,$,{descriptionId:1,element:0,step:2})}}function At(e){let t,n;return t=new Vo({props:{labelId:e[1],step:e[2]}}),{c(){fe(t.$$.fragment)},m(o,i){te(t,o,i),n=!0},p(o,i){const r={};i&2&&(r.labelId=o[1]),i&4&&(r.step=o[2]),t.$set(r)},i(o){n||(S(t.$$.fragment,o),n=!0)},o(o){T(t.$$.fragment,o),n=!1},d(o){ne(t,o)}}}function Et(e){let t,n;return t=new zo({props:{descriptionId:e[0],step:e[2]}}),{c(){fe(t.$$.fragment)},m(o,i){te(t,o,i),n=!0},p(o,i){const r={};i&1&&(r.descriptionId=o[0]),i&4&&(r.step=o[2]),t.$set(r)},i(o){n||(S(t.$$.fragment,o),n=!0)},o(o){T(t.$$.fragment,o),n=!1},d(o){ne(t,o)}}}function Ct(e){let t,n;return t=new Po({props:{step:e[2]}}),{c(){fe(t.$$.fragment)},m(o,i){te(t,o,i),n=!0},p(o,i){const r={};i&4&&(r.step=o[2]),t.$set(r)},i(o){n||(S(t.$$.fragment,o),n=!0)},o(o){T(t.$$.fragment,o),n=!1},d(o){ne(t,o)}}}function $o(e){let t,n=!A(e[2].options.title)||e[2].options.cancelIcon&&e[2].options.cancelIcon.enabled,o,i=!A(e[2].options.text),r,s=Array.isArray(e[2].options.buttons)&&e[2].options.buttons.length,l,c=n&&At(e),a=i&&Et(e),f=s&&Ct(e);return{c(){t=U("div"),c&&c.c(),o=Ne(),a&&a.c(),r=Ne(),f&&f.c(),O(t,"class","shepherd-content"),O(t,"tabindex","0")},m(d,u){N(d,t,u),c&&c.m(t,null),Se(t,o),a&&a.m(t,null),Se(t,r),f&&f.m(t,null),l=!0},p(d,[u]){u&4&&(n=!A(d[2].options.title)||d[2].options.cancelIcon&&d[2].options.cancelIcon.enabled),n?c?(c.p(d,u),u&4&&S(c,1)):(c=At(d),c.c(),S(c,1),c.m(t,o)):c&&(re(),T(c,1,1,()=>{c=null}),le()),u&4&&(i=!A(d[2].options.text)),i?a?(a.p(d,u),u&4&&S(a,1)):(a=Et(d),a.c(),S(a,1),a.m(t,r)):a&&(re(),T(a,1,1,()=>{a=null}),le()),u&4&&(s=Array.isArray(d[2].options.buttons)&&d[2].options.buttons.length),s?f?(f.p(d,u),u&4&&S(f,1)):(f=Ct(d),f.c(),S(f,1),f.m(t,null)):f&&(re(),T(f,1,1,()=>{f=null}),le())},i(d){l||(S(c),S(a),S(f),l=!0)},o(d){T(c),T(a),T(f),l=!1},d(d){d&&L(t),c&&c.d(),a&&a.d(),f&&f.d()}}}function qo(e,t,n){let{descriptionId:o,labelId:i,step:r}=t;return e.$$set=s=>{"descriptionId"in s&&n(0,o=s.descriptionId),"labelId"in s&&n(1,i=s.labelId),"step"in s&&n(2,r=s.step)},[o,i,r]}class Yo extends Y{constructor(t){super(),q(this,t,qo,$o,$,{descriptionId:0,labelId:1,step:2})}}function It(e){let t;return{c(){t=U("div"),O(t,"class","shepherd-arrow"),O(t,"data-popper-arrow","")},m(n,o){N(n,t,o)},d(n){n&&L(t)}}}function Ko(e){let t,n,o,i,r,s,l,c,a=e[4].options.arrow&&e[4].options.attachTo&&e[4].options.attachTo.element&&e[4].options.attachTo.on&&It();o=new Yo({props:{descriptionId:e[2],labelId:e[3],step:e[4]}});let f=[{"aria-describedby":i=A(e[4].options.text)?null:e[2]},{"aria-labelledby":r=e[4].options.title?e[3]:null},e[1],{open:"true"}],d={};for(let u=0;u<f.length;u+=1)d=ho(d,f[u]);return{c(){t=U("dialog"),a&&a.c(),n=Ne(),fe(o.$$.fragment),wt(t,d),pe(t,"shepherd-has-cancel-icon",e[5]),pe(t,"shepherd-has-title",e[6]),pe(t,"shepherd-element",!0)},m(u,h){N(u,t,h),a&&a.m(t,null),Se(t,n),te(o,t,null),e[13](t),s=!0,l||(c=Ue(t,"keydown",e[7]),l=!0)},p(u,[h]){u[4].options.arrow&&u[4].options.attachTo&&u[4].options.attachTo.element&&u[4].options.attachTo.on?a||(a=It(),a.c(),a.m(t,n)):a&&(a.d(1),a=null);const g={};h&4&&(g.descriptionId=u[2]),h&8&&(g.labelId=u[3]),h&16&&(g.step=u[4]),o.$set(g),wt(t,d=Oo(f,[(!s||h&20&&i!==(i=A(u[4].options.text)?null:u[2]))&&{"aria-describedby":i},(!s||h&24&&r!==(r=u[4].options.title?u[3]:null))&&{"aria-labelledby":r},h&2&&u[1],{open:"true"}])),pe(t,"shepherd-has-cancel-icon",u[5]),pe(t,"shepherd-has-title",u[6]),pe(t,"shepherd-element",!0)},i(u){s||(S(o.$$.fragment,u),s=!0)},o(u){T(o.$$.fragment,u),s=!1},d(u){u&&L(t),a&&a.d(),ne(o),e[13](null),l=!1,c()}}}const Xo=9,Qo=27,Zo=37,Go=39;function kt(e){return e.split(" ").filter(t=>!!t.length)}function Jo(e,t,n){let{classPrefix:o,element:i,descriptionId:r,firstFocusableElement:s,focusableElements:l,labelId:c,lastFocusableElement:a,step:f,dataStepId:d}=t,u,h,g;const m=()=>i;yo(()=>{n(1,d={[`data-${o}shepherd-step-id`]:f.id}),n(9,l=i.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),n(8,s=l[0]),n(10,a=l[l.length-1])}),at(()=>{g!==f.options.classes&&w()});function w(){y(g),g=f.options.classes,_(g)}function y(p){if(Ce(p)){const x=kt(p);x.length&&i.classList.remove(...x)}}function _(p){if(Ce(p)){const x=kt(p);x.length&&i.classList.add(...x)}}const v=p=>{const{tour:x}=f;switch(p.keyCode){case Xo:if(l.length===0){p.preventDefault();break}p.shiftKey?(document.activeElement===s||document.activeElement.classList.contains("shepherd-element"))&&(p.preventDefault(),a.focus()):document.activeElement===a&&(p.preventDefault(),s.focus());break;case Qo:x.options.exitOnEsc&&(p.preventDefault(),p.stopPropagation(),f.cancel());break;case Zo:x.options.keyboardNavigation&&(p.preventDefault(),p.stopPropagation(),x.back());break;case Go:x.options.keyboardNavigation&&(p.preventDefault(),p.stopPropagation(),x.next());break}};function b(p){Oe[p?"unshift":"push"](()=>{i=p,n(0,i)})}return e.$$set=p=>{"classPrefix"in p&&n(11,o=p.classPrefix),"element"in p&&n(0,i=p.element),"descriptionId"in p&&n(2,r=p.descriptionId),"firstFocusableElement"in p&&n(8,s=p.firstFocusableElement),"focusableElements"in p&&n(9,l=p.focusableElements),"labelId"in p&&n(3,c=p.labelId),"lastFocusableElement"in p&&n(10,a=p.lastFocusableElement),"step"in p&&n(4,f=p.step),"dataStepId"in p&&n(1,d=p.dataStepId)},e.$$.update=()=>{e.$$.dirty&16&&(n(5,u=f.options&&f.options.cancelIcon&&f.options.cancelIcon.enabled),n(6,h=f.options&&f.options.title))},[i,d,r,c,f,u,h,v,s,l,a,o,m,b]}class ei extends Y{constructor(t){super(),q(this,t,Jo,Ko,$,{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]}}class Ge extends Je{constructor(t,n={}){return super(),this._resolvedAttachTo=void 0,this.classPrefix=void 0,this.el=void 0,this.target=void 0,this.tour=void 0,this.tour=t,this.classPrefix=this.tour.options?Ft(this.tour.options.classPrefix):"",this.styles=t.styles,this._resolvedAttachTo=null,tt(this),this._setOptions(n),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){ro(this),Me(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this.trigger("destroy")}getTour(){return this.tour}hide(){var t;(t=this.tour.modal)==null||t.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveAttachToOptions(){return this._resolvedAttachTo=_n(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return this._resolvedAttachTo===null?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return!!(this.el&&!this.el.hidden)}show(){return Z(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then(()=>this._show()):Promise.resolve(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`,n=`${this.id}-label`;return this.shepherdElementComponent=new ei({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:t,labelId:n,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()}_scrollTo(t){const{element:n}=this._getResolvedAttachToOptions();Z(this.options.scrollToHandler)?this.options.scrollToHandler(n):en(n)&&typeof n.scrollIntoView=="function"&&n.scrollIntoView(t)}_getClassOptions(t){const n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,o=t.classes?t.classes:"",i=n&&n.classes?n.classes:"",r=[...o.split(" "),...i.split(" ")],s=new Set(r);return Array.from(s).join(" ").trim()}_setOptions(t={}){let n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;n=et({},n||{}),this.options=Object.assign({arrow:!0},n,t,so(n,t));const{when:o}=this.options;this.options.classes=this._getClassOptions(t),this.destroy(),this.id=this.options.id||`step-${Dt()}`,o&&Object.keys(o).forEach(i=>{this.on(i,o[i],this)})}_setupElements(){A(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&bn(this),io(this)}_show(){var t;this.trigger("before-show"),this._resolveAttachToOptions(),this._setupElements(),this.tour.modal||this.tour.setupModal(),(t=this.tour.modal)==null||t.setupForStep(this),this._styleTargetElementForStep(this),this.el&&(this.el.hidden=!1),this.options.scrollTo&&setTimeout(()=>{this._scrollTo(this.options.scrollTo)}),this.el&&(this.el.hidden=!1);const n=this.shepherdElementComponent.getElement(),o=this.target||document.body;o.classList.add(`${this.classPrefix}shepherd-enabled`),o.classList.add(`${this.classPrefix}shepherd-target`),n.classList.add("shepherd-enabled"),this.trigger("show")}_styleTargetElementForStep(t){const n=t.target;n&&(t.options.highlightClass&&n.classList.add(t.options.highlightClass),n.classList.remove("shepherd-target-click-disabled"),t.options.canClickTarget===!1&&n.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 ti(e){if(e){const{steps:t}=e;t.forEach(n=>{n.options&&n.options.canClickTarget===!1&&n.options.attachTo&&Me(n.target)&&n.target.classList.remove("shepherd-target-click-disabled")})}}function ni({width:e,height:t,x:n=0,y:o=0,r:i=0}){const{innerWidth:r,innerHeight:s}=window,{topLeft:l=0,topRight:c=0,bottomRight:a=0,bottomLeft:f=0}=typeof i=="number"?{topLeft:i,topRight:i,bottomRight:i,bottomLeft:i}:i;return`M${r},${s}H0V0H${r}V${s}ZM${n+l},${o}a${l},${l},0,0,0-${l},${l}V${t+o-f}a${f},${f},0,0,0,${f},${f}H${e+n-a}a${a},${a},0,0,0,${a}-${a}V${o+c}a${c},${c},0,0,0-${c}-${c}Z`}function oi(e){let t,n,o,i,r;return{c(){t=bt("svg"),n=bt("path"),O(n,"d",e[2]),O(t,"class",o=`${e[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)},m(s,l){N(s,t,l),Se(t,n),e[11](t),i||(r=Ue(t,"touchmove",e[3]),i=!0)},p(s,[l]){l&4&&O(n,"d",s[2]),l&2&&o!==(o=`${s[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)&&O(t,"class",o)},i:k,o:k,d(s){s&&L(t),e[11](null),i=!1,r()}}}function Zt(e){if(!e)return null;const n=e instanceof HTMLElement&&window.getComputedStyle(e).overflowY;return n!=="hidden"&&n!=="visible"&&e.scrollHeight>=e.clientHeight?e:Zt(e.parentElement)}function ii(e){let t={top:0,left:0};if(!e)return t;let n=e.ownerDocument.defaultView;for(;n!==window.top;){var o;const s=(o=n)==null?void 0:o.frameElement;if(s){var i,r;const l=s.getBoundingClientRect();t.top+=l.top+((i=l.scrollTop)!=null?i:0),t.left+=l.left+((r=l.scrollLeft)!=null?r:0)}n=n.parent}return t}function si(e,t){const n=e.getBoundingClientRect();let o=n.y||n.top,i=n.bottom||o+n.height;if(t){const s=t.getBoundingClientRect(),l=s.y||s.top,c=s.bottom||l+s.height;o=Math.max(o,l),i=Math.min(i,c)}const r=Math.max(i-o,0);return{y:o,height:r}}function ri(e,t,n){let{element:o,openingProperties:i}=t,r=!1,s,l;a();const c=()=>o;function a(){n(4,i={width:0,height:0,x:0,y:0,r:0})}function f(){n(1,r=!1),y()}function d(b=0,p=0,x=0,E=0,K,F){if(F){const{y:H,height:M}=si(F,K),{x:P,width:oe,left:R}=F.getBoundingClientRect();n(4,i={width:oe+b*2,height:M+b*2,x:(P||R)+x-b,y:H+E-b,r:p})}else a()}function u(b){y(),b.tour.options.useModalOverlay?(_(b),h()):f()}function h(){n(1,r=!0)}const g=b=>{b.preventDefault()},m=b=>{b.stopPropagation()};function w(){window.addEventListener("touchmove",g,{passive:!1})}function y(){s&&(cancelAnimationFrame(s),s=void 0),window.removeEventListener("touchmove",g,{passive:!1})}function _(b){const{modalOverlayOpeningPadding:p,modalOverlayOpeningRadius:x,modalOverlayOpeningXOffset:E=0,modalOverlayOpeningYOffset:K=0}=b.options,F=ii(b.target),H=Zt(b.target),M=()=>{s=void 0,d(p,x,E+F.left,K+F.top,H,b.target),s=requestAnimationFrame(M)};M(),w()}function v(b){Oe[b?"unshift":"push"](()=>{o=b,n(0,o)})}return e.$$set=b=>{"element"in b&&n(0,o=b.element),"openingProperties"in b&&n(4,i=b.openingProperties)},e.$$.update=()=>{e.$$.dirty&16&&n(2,l=ni(i))},[o,r,l,m,i,c,a,f,d,u,h,v]}class li extends Y{constructor(t){super(),q(this,t,ri,oi,$,{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]}}class ci extends Je{constructor(){super(),this.activeTour=void 0,tt(this)}}class ai extends Je{constructor(t={}){super(),this.trackedEvents=["active","cancel","complete","show"],this.classPrefix=void 0,this.currentStep=void 0,this.focusedElBeforeOpen=void 0,this.id=void 0,this.modal=void 0,this.options=void 0,this.steps=void 0,tt(this);const n={exitOnEsc:!0,keyboardNavigation:!0};return this.options=Object.assign({},n,t),this.classPrefix=Ft(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps),["active","cancel","complete","inactive","show","start"].map(i=>{(r=>{this.on(r,s=>{s=s||{},s.tour=this,V.trigger(r,s)})})(i)}),this._setTourID(t.id),this}addStep(t,n){let o=t;return o instanceof Ge?o.tour=this:o=new Ge(this,o),A(n)?this.steps.push(o):this.steps.splice(n,0,o),o}addSteps(t){return Array.isArray(t)&&t.forEach(n=>{this.addStep(n)}),this}back(){const t=this.steps.indexOf(this.currentStep);this.show(t-1,!1)}async cancel(){if(this.options.confirmCancel){const t=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";let n;Z(this.options.confirmCancel)?n=await this.options.confirmCancel():n=window.confirm(t),n&&this._done("cancel")}else this._done("cancel")}complete(){this._done("complete")}getById(t){return this.steps.find(n=>n.id===t)}getCurrentStep(){return this.currentStep}hide(){const t=this.getCurrentStep();if(t)return t.hide()}isActive(){return V.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 n=this.getCurrentStep();this.steps.some((o,i)=>{if(o.id===t)return o.isOpen()&&o.hide(),o.destroy(),this.steps.splice(i,1),!0}),n&&n.id===t&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(t=0,n=!0){const o=Ce(t)?this.getById(t):this.steps[t];o&&(this._updateStateBeforeShow(),Z(o.options.showOn)&&!o.options.showOn()?this._skipStep(o,n):(this.currentStep=o,this.trigger("show",{step:o,previous:this.currentStep}),o.show()))}async start(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this.setupModal(),this._setupActiveTour(),this.next()}_done(t){const n=this.steps.indexOf(this.currentStep);if(Array.isArray(this.steps)&&this.steps.forEach(o=>o.destroy()),ti(this),this.trigger(t,{index:n}),V.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),(t==="cancel"||t==="complete")&&this.modal){const o=document.querySelector(".shepherd-modal-overlay-container");o&&(o.remove(),this.modal=null)}Me(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),V.activeTour=this}setupModal(){this.modal=new li({target:this.options.modalContainer||document.body,props:{styles:this.styles}})}_skipStep(t,n){const o=this.steps.indexOf(t);if(o===this.steps.length-1)this.complete();else{const i=n?o+1:o-1;this.show(i,n)}}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(t){const n=this.options.tourName||"tour",o=t||Dt();this.id=`${n}--${o}`}}const V=new ci,Gt=typeof window>"u";V.Step=Gt?wn:Ge;V.Tour=Gt?yn:ai;((e,t,n,o,i)=>{const r=decodeURI(window.location.search);n.behaviors.tour={attach(s){once("tour","body").forEach(()=>{const l=new n.tour.models.StateModel;new n.tour.views.ToggleTourView({el:e(s).find(".js-tour-start-button, .js-tour-start-toolbar"),model:l}),l.on("change:isActive",(c,a)=>{e(i).trigger(a?"drupalTourStarted":"drupalTourStopped")}),o._tour_internal&&l.set("tour",o._tour_internal),/tour=\\?/i.test(r)&&l.set("isActive",!0),i.addEventListener("keydown",function(c){c.altKey&&c.code==="KeyT"&&(l.set("isActive",!0),c.preventDefault(),c.stopPropagation())}),n.tour.setActive=function(c=!0){l.set("isActive",c)},n.tour.get=function(){return V.activeTour},n.tour.getPromise=function(c=2e3){return new Promise((f,d)=>{(function u(h){V.activeTour&&f(V.activeTour),h<=0&&d(),setTimeout(function(){u(h-10)},10)})(c)})}})}},n.tour=n.tour||{models:{},views:{}},n.tour.models.StateModel=t.Model.extend({defaults:{tour:[],isActive:!1,activeTour:[]}}),n.tour.views.ToggleTourView=t.View.extend({events:{click:"onClick"},initialize(){this.listenTo(this.model,"change:tour change:isActive",this.render),this.listenTo(this.model,"change:isActive",this.toggleTour)},render(){const s=i.getElementsByClassName("admin-toolbar__close-button");s.length>0&&i.documentElement.clientWidth<1024&&s[0].click();const l=this.model.get("isActive");return this.$el.each(function(c,a){e(a).prop("tagName")==="BUTTON"||e(a).attr("role")==="button"?e(a):e(a).find('button, [role="button"]'),e(a).toggleClass("is-active",l)}),this},toggleTour(){if(this.model.get("isActive")){this._removeIrrelevantTourItems(this._getTour());const s=this.model.get("tour"),l=this;if(s.length){window.matchMedia("(prefers-reduced-motion: reduce)").matches&&(o.tourShepherdConfig.defaultStepOptions.scrollTo.behavior="auto");const a=new V.Tour(o.tourShepherdConfig);a.on("cancel",()=>{l.el.focus(),l.model.set("isActive",!1)}),a.on("complete",()=>{l.model.set("isActive",!1)}),s.forEach((f,d)=>{const u=[n.tour.nextButton(a,f)];d>0&&u.unshift(n.tour.prevButton(a));const h={id:f.id,title:f.title?n.checkPlain(f.title):null,text:()=>n.theme("tourItemContent",f),attachTo:f.attachTo,buttons:u,classes:f.classes,index:d};h.when={show(){a.currentStep.el.querySelector("footer button").focus()}};const g=a.addStep(h);g.on("before-show",function(){const m=g.options.attachTo.element;if(m&&!e(m).is(":visible")){const w=e(m).parents("details");if(w){const y=w.attr("id"),_=e('a[href="#'.concat(y,'"]'));_.length?_.click():w.find("summary").click()}}}),g.on("show",function(){const m=i.querySelectorAll(".shepherd-element.shepherd-enabled");m&&m.forEach(w=>w.setAttribute("aria-modal","true"))})}),a.start(),this.model.set({isActive:!0,activeTour:a})}}else this.model.get("activeTour").cancel(),this.model.set({isActive:!1,activeTour:[]})},onClick(s){this.model.set("isActive",!this.model.get("isActive")),s.preventDefault(),s.stopPropagation()},_getTour(){return this.model.get("tour")},_removeIrrelevantTourItems(s){const l=/tips=([^&]+)/.exec(r),c=s.filter(a=>l&&a.hasOwnProperty("classes")&&a.classes.indexOf(l[1])===-1?!1:!(a.selector&&!i.querySelector(a.selector)));s.length!==c.length&&(c.forEach((a,f)=>{c[f].counter=n.t("!tour_item of !total",{"!tour_item":f+1,"!total":c.length}),f===c.length-1&&(c[f].cancelText=n.t("End tour"))}),this.model.set("tour",c))}}),n.tour.prevButton=s=>({classes:"button button--secondary",action:s.back,text:n.t("Previous"),secondary:!0}),n.tour.nextButton=(s,l)=>({classes:"button button--primary",text:l.cancelText?l.cancelText:n.t("Next"),action:l.cancelText?s.cancel:s.next}),n.theme.tourItemContent=s=>`${s.body}<div class="tour-progress">${s.counter}</div>`})(jQuery,Backbone,Drupal,drupalSettings,document);
+/*! shepherd.js 14.0.1 */function en(e){return e instanceof Element}function Me(e){return e instanceof HTMLElement}function Z(e){return typeof e=="function"}function Ce(e){return typeof e=="string"}function A(e){return e===void 0}class Je{on(t,n,o,i=!1){var r;return A(this.bindings)&&(this.bindings={}),A(this.bindings[t])&&(this.bindings[t]=[]),(r=this.bindings[t])==null||r.push({handler:n,ctx:o,once:i}),this}once(t,n,o){return this.on(t,n,o,!0)}off(t,n){if(A(this.bindings)||A(this.bindings[t]))return this;if(A(n))delete this.bindings[t];else{var o;(o=this.bindings[t])==null||o.forEach((i,r)=>{if(i.handler===n){var s;(s=this.bindings[t])==null||s.splice(r,1)}})}return this}trigger(t,...n){if(!A(this.bindings)&&this.bindings[t]){var o;(o=this.bindings[t])==null||o.forEach((i,r)=>{const{ctx:s,handler:l,once:c}=i,a=s||this;if(l.apply(a,n),c){var f;(f=this.bindings[t])==null||f.splice(r,1)}})}return this}}function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},C.apply(null,arguments)}function Mt(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.includes(o))continue;n[o]=e[o]}return n}const ee={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};ee.defaultMerge;function tn(e,t){return t}function ft(e){return typeof e!="object"||e===null?0:Array.isArray(e)?2:sn(e)?1:e instanceof Set?3:e instanceof Map?4:5}function nn(e){const t=new Set;for(const n of e)for(const o of[...Object.keys(n),...Object.getOwnPropertySymbols(n)])t.add(o);return t}function on(e,t){return typeof e=="object"&&Object.prototype.propertyIsEnumerable.call(e,t)}function Pt(e){return{*[Symbol.iterator](){for(const t of e)for(const n of t)yield n}}}const ut=new Set(["[object Object]","[object Module]"]);function sn(e){if(!ut.has(Object.prototype.toString.call(e)))return!1;const{constructor:t}=e;if(t===void 0)return!0;const n=t.prototype;return!(n===null||typeof n!="object"||!ut.has(Object.prototype.toString.call(n))||!n.hasOwnProperty("isPrototypeOf"))}function rn(e,t,n){const o={};for(const i of nn(e)){const r=[];for(const c of e)on(c,i)&&r.push(c[i]);if(r.length===0)continue;const s=t.metaDataUpdater(n,{key:i,parents:e}),l=Lt(r,t,s);l!==ee.skip&&(i==="__proto__"?Object.defineProperty(o,i,{value:l,configurable:!0,enumerable:!0,writable:!0}):o[i]=l)}return o}function ln(e){return e.flat()}function cn(e){return new Set(Pt(e))}function an(e){return new Map(Pt(e))}function Rt(e){return e.at(-1)}var ze=Object.freeze({__proto__:null,mergeArrays:ln,mergeMaps:an,mergeOthers:Rt,mergeRecords:rn,mergeSets:cn});function et(...e){return fn({})(...e)}function fn(e,t){const n=un(e,o);function o(...i){return Lt(i,n,t)}return o}function un(e,t){var n,o;return{defaultMergeFunctions:ze,mergeFunctions:C({},ze,Object.fromEntries(Object.entries(e).filter(([i,r])=>Object.hasOwn(ze,i)).map(([i,r])=>r===!1?[i,Rt]:[i,r]))),metaDataUpdater:(n=e.metaDataUpdater)!=null?n:tn,deepmerge:t,useImplicitDefaultMerging:(o=e.enableImplicitDefaultMerging)!=null?o:!1,actions:ee}}function Lt(e,t,n){if(e.length===0)return;if(e.length===1)return $e(e,t,n);const o=ft(e[0]);if(o!==0&&o!==5){for(let i=1;i<e.length;i++)if(ft(e[i])!==o)return $e(e,t,n)}switch(o){case 1:return dn(e,t,n);case 2:return hn(e,t,n);case 3:return pn(e,t,n);case 4:return gn(e,t,n);default:return $e(e,t,n)}}function dn(e,t,n){const o=t.mergeFunctions.mergeRecords(e,t,n);return o===ee.defaultMerge||t.useImplicitDefaultMerging&&o===void 0&&t.mergeFunctions.mergeRecords!==t.defaultMergeFunctions.mergeRecords?t.defaultMergeFunctions.mergeRecords(e,t,n):o}function hn(e,t,n){const o=t.mergeFunctions.mergeArrays(e,t,n);return o===ee.defaultMerge||t.useImplicitDefaultMerging&&o===void 0&&t.mergeFunctions.mergeArrays!==t.defaultMergeFunctions.mergeArrays?t.defaultMergeFunctions.mergeArrays(e):o}function pn(e,t,n){const o=t.mergeFunctions.mergeSets(e,t,n);return o===ee.defaultMerge||t.useImplicitDefaultMerging&&o===void 0&&t.mergeFunctions.mergeSets!==t.defaultMergeFunctions.mergeSets?t.defaultMergeFunctions.mergeSets(e):o}function gn(e,t,n){const o=t.mergeFunctions.mergeMaps(e,t,n);return o===ee.defaultMerge||t.useImplicitDefaultMerging&&o===void 0&&t.mergeFunctions.mergeMaps!==t.defaultMergeFunctions.mergeMaps?t.defaultMergeFunctions.mergeMaps(e):o}function $e(e,t,n){const o=t.mergeFunctions.mergeOthers(e,t,n);return o===ee.defaultMerge||t.useImplicitDefaultMerging&&o===void 0&&t.mergeFunctions.mergeOthers!==t.defaultMergeFunctions.mergeOthers?t.defaultMergeFunctions.mergeOthers(e):o}function tt(e){const t=Object.getOwnPropertyNames(e.constructor.prototype);for(let n=0;n<t.length;n++){const o=t[n],i=e[o];o!=="constructor"&&typeof i=="function"&&(e[o]=i.bind(e))}return e}function mn(e,t){return n=>{if(e.isOpen()){const o=e.el&&n.currentTarget===e.el;(!A(t)&&n.currentTarget.matches(t)||o)&&e.tour.next()}}}function bn(e){const{event:t,selector:n}=e.options.advanceOn||{};if(t){const o=mn(e,n);let i=null;if(!A(n)&&(i=document.querySelector(n),!i))return console.error(`No element was found for the selector supplied to advanceOn: ${n}`);i?(i.addEventListener(t,o),e.on("destroy",()=>i.removeEventListener(t,o))):(document.body.addEventListener(t,o,!0),e.on("destroy",()=>document.body.removeEventListener(t,o,!0)))}else return console.error("advanceOn was defined, but no event name was passed.")}class wn{constructor(t){}}class yn{constructor(t,n){}}function Ft(e){return!Ce(e)||e===""?"":e.charAt(e.length-1)!=="-"?`${e}-`:e}function _n(e){const t=e.options.attachTo||{},n=Object.assign({},t);if(Z(n.element)&&(n.element=n.element.call(e)),Ce(n.element)){try{n.element=document.querySelector(n.element)}catch{}n.element||console.error(`The element for this Shepherd step was not found ${t.element}`)}return n}function Bt(e){return e==null?!0:!e.element||!e.on}function Dt(){let e=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(e+Math.random()*16)%16|0;return e=Math.floor(e/16),(t=="x"?n:n&3|8).toString(16)})}const ye=Math.min,se=Math.max,Be=Math.round,Le=Math.floor,G=e=>({x:e,y:e}),vn={left:"right",right:"left",bottom:"top",top:"bottom"},xn={start:"end",end:"start"};function Ke(e,t,n){return se(e,ye(t,n))}function _e(e,t){return typeof e=="function"?e(t):e}function ce(e){return e.split("-")[0]}function He(e){return e.split("-")[1]}function nt(e){return e==="x"?"y":"x"}function ot(e){return e==="y"?"height":"width"}function ve(e){return["top","bottom"].includes(ce(e))?"y":"x"}function it(e){return nt(ve(e))}function Sn(e,t,n){n===void 0&&(n=!1);const o=He(e),i=it(e),r=ot(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(s=De(s)),[s,De(s)]}function On(e){const t=De(e);return[Xe(e),t,Xe(t)]}function Xe(e){return e.replace(/start|end/g,t=>xn[t])}function Tn(e,t,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:o:t?o:i;case"left":case"right":return t?r:s;default:return[]}}function An(e,t,n,o){const i=He(e);let r=Tn(ce(e),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),t&&(r=r.concat(r.map(Xe)))),r}function De(e){return e.replace(/left|right|bottom|top/g,t=>vn[t])}function En(e){return C({top:0,right:0,bottom:0,left:0},e)}function jt(e){return typeof e!="number"?En(e):{top:e,right:e,bottom:e,left:e}}function je(e){const{x:t,y:n,width:o,height:i}=e;return{width:o,height:i,top:n,left:t,right:t+o,bottom:n+i,x:t,y:n}}const Cn=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],In=["mainAxis","crossAxis","limiter"];function dt(e,t,n){let{reference:o,floating:i}=e;const r=ve(t),s=it(t),l=ot(s),c=ce(t),a=r==="y",f=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,d=o[l]/2-i[l]/2;let h;switch(c){case"top":h={x:f,y:o.y-i.height};break;case"bottom":h={x:f,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:u};break;case"left":h={x:o.x-i.width,y:u};break;default:h={x:o.x,y:o.y}}switch(He(t)){case"start":h[s]-=d*(n&&a?-1:1);break;case"end":h[s]+=d*(n&&a?-1:1);break}return h}const kn=async(e,t,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,l=r.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let a=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:u}=dt(a,o,c),d=o,h={},g=0;for(let b=0;b<l.length;b++){const{name:y,fn:w}=l[b],{x:_,y:v,data:m,reset:p}=await w({x:f,y:u,initialPlacement:o,placement:d,strategy:i,middlewareData:h,rects:a,platform:s,elements:{reference:e,floating:t}});f=_??f,u=v??u,h=C({},h,{[y]:C({},h[y],m)}),p&&g<=50&&(g++,typeof p=="object"&&(p.placement&&(d=p.placement),p.rects&&(a=p.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):p.rects),{x:f,y:u}=dt(a,d,c)),b=-1)}return{x:f,y:u,placement:d,strategy:i,middlewareData:h}};async function Nt(e,t){var n;t===void 0&&(t={});const{x:o,y:i,platform:r,rects:s,elements:l,strategy:c}=e,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:d=!1,padding:h=0}=_e(t,e),g=jt(h),y=l[d?u==="floating"?"reference":"floating":u],w=je(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(y)))==null||n?y:y.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(l.floating)),boundary:a,rootBoundary:f,strategy:c})),_=u==="floating"?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,v=await(r.getOffsetParent==null?void 0:r.getOffsetParent(l.floating)),m=await(r.isElement==null?void 0:r.isElement(v))?await(r.getScale==null?void 0:r.getScale(v))||{x:1,y:1}:{x:1,y:1},p=je(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:_,offsetParent:v,strategy:c}):_);return{top:(w.top-p.top+g.top)/m.y,bottom:(p.bottom-w.bottom+g.bottom)/m.y,left:(w.left-p.left+g.left)/m.x,right:(p.right-w.right+g.right)/m.x}}const Mn=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:i,rects:r,platform:s,elements:l,middlewareData:c}=t,{element:a,padding:f=0}=_e(e,t)||{};if(a==null)return{};const u=jt(f),d={x:n,y:o},h=it(i),g=ot(h),b=await s.getDimensions(a),y=h==="y",w=y?"top":"left",_=y?"bottom":"right",v=y?"clientHeight":"clientWidth",m=r.reference[g]+r.reference[h]-d[h]-r.floating[g],p=d[h]-r.reference[h],x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let E=x?x[v]:0;(!E||!await(s.isElement==null?void 0:s.isElement(x)))&&(E=l.floating[v]||r.floating[g]);const K=m/2-p/2,F=E/2-b[g]/2-1,H=ye(u[w],F),M=ye(u[_],F),P=H,oe=E-b[g]-M,R=E/2-b[g]/2+K,ue=Ke(P,R,oe),B=!c.arrow&&He(i)!=null&&R!==ue&&r.reference[g]/2-(R<P?H:M)-b[g]/2<0,de=B?R<P?R-P:R-oe:0;return{[h]:d[h]+de,data:C({[h]:ue,centerOffset:R-ue-de},B&&{alignmentOffset:de}),reset:B}}}),Pn=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(n){var o,i;const{placement:r,middlewareData:s,rects:l,initialPlacement:c,platform:a,elements:f}=n,u=_e(t,n),{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:g,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:w=!0}=u,_=Mt(u,Cn);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const v=ce(r),m=ve(c),p=ce(c)===c,x=await(a.isRTL==null?void 0:a.isRTL(f.floating)),E=g||(p||!w?[De(c)]:On(c)),K=y!=="none";!g&&K&&E.push(...An(c,w,y,x));const F=[c,...E],H=await Nt(n,_),M=[];let P=((i=s.flip)==null?void 0:i.overflows)||[];if(d&&M.push(H[v]),h){const B=Sn(r,l,x);M.push(H[B[0]],H[B[1]])}if(P=[...P,{placement:r,overflows:M}],!M.every(B=>B<=0)){var oe,R;const B=(((oe=s.flip)==null?void 0:oe.index)||0)+1,de=F[B];if(de)return{data:{index:B,overflows:P},reset:{placement:de}};let Ae=(R=P.filter(he=>he.overflows[0]<=0).sort((he,X)=>he.overflows[1]-X.overflows[1])[0])==null?void 0:R.placement;if(!Ae)switch(b){case"bestFit":{var ue;const he=(ue=P.filter(X=>{if(K){const Q=ve(X.placement);return Q===m||Q==="y"}return!0}).map(X=>[X.placement,X.overflows.filter(Q=>Q>0).reduce((Q,Jt)=>Q+Jt,0)]).sort((X,Q)=>X[1]-Q[1])[0])==null?void 0:ue[0];he&&(Ae=he);break}case"initialPlacement":Ae=c;break}if(r!==Ae)return{reset:{placement:Ae}}}return{}}}},Rn=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(n){const{x:o,y:i,placement:r}=n,s=_e(t,n),{mainAxis:l=!0,crossAxis:c=!1,limiter:a={fn:_=>{let{x:v,y:m}=_;return{x:v,y:m}}}}=s,f=Mt(s,In),u={x:o,y:i},d=await Nt(n,f),h=ve(ce(r)),g=nt(h);let b=u[g],y=u[h];if(l){const _=g==="y"?"top":"left",v=g==="y"?"bottom":"right",m=b+d[_],p=b-d[v];b=Ke(m,b,p)}if(c){const _=h==="y"?"top":"left",v=h==="y"?"bottom":"right",m=y+d[_],p=y-d[v];y=Ke(m,y,p)}const w=a.fn(C({},n,{[g]:b,[h]:y}));return C({},w,{data:{x:w.x-o,y:w.y-i}})}}},Ln=function(t){return t===void 0&&(t={}),{options:t,fn(n){const{x:o,y:i,placement:r,rects:s,middlewareData:l}=n,{offset:c=0,mainAxis:a=!0,crossAxis:f=!0}=_e(t,n),u={x:o,y:i},d=ve(r),h=nt(d);let g=u[h],b=u[d];const y=_e(c,n),w=typeof y=="number"?{mainAxis:y,crossAxis:0}:C({mainAxis:0,crossAxis:0},y);if(a){const m=h==="y"?"height":"width",p=s.reference[h]-s.floating[m]+w.mainAxis,x=s.reference[h]+s.reference[m]-w.mainAxis;g<p?g=p:g>x&&(g=x)}if(f){var _,v;const m=h==="y"?"width":"height",p=["top","left"].includes(ce(r)),x=s.reference[d]-s.floating[m]+(p&&((_=l.offset)==null?void 0:_[d])||0)+(p?0:w.crossAxis),E=s.reference[d]+s.reference[m]+(p?0:((v=l.offset)==null?void 0:v[d])||0)-(p?w.crossAxis:0);b<x?b=x:b>E&&(b=E)}return{[h]:g,[d]:b}}}};function Te(e){return Ht(e)?(e.nodeName||"").toLowerCase():"#document"}function I(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function z(e){var t;return(t=(Ht(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ht(e){return e instanceof Node||e instanceof I(e).Node}function D(e){return e instanceof Element||e instanceof I(e).Element}function W(e){return e instanceof HTMLElement||e instanceof I(e).HTMLElement}function ht(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof I(e).ShadowRoot}function Pe(e){const{overflow:t,overflowX:n,overflowY:o,display:i}=j(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(i)}function Fn(e){return["table","td","th"].includes(Te(e))}function Ve(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function st(e){const t=rt(),n=D(e)?j(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Bn(e){let t=J(e);for(;W(t)&&!xe(t);){if(st(t))return t;if(Ve(t))return null;t=J(t)}return null}function rt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function xe(e){return["html","body","#document"].includes(Te(e))}function j(e){return I(e).getComputedStyle(e)}function We(e){return D(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function J(e){if(Te(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ht(e)&&e.host||z(e);return ht(t)?t.host:t}function Vt(e){const t=J(e);return xe(t)?e.ownerDocument?e.ownerDocument.body:e.body:W(t)&&Pe(t)?t:Vt(t)}function Ie(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Vt(e),r=i===((o=e.ownerDocument)==null?void 0:o.body),s=I(i);return r?t.concat(s,s.visualViewport||[],Pe(i)?i:[],s.frameElement&&n?Ie(s.frameElement):[]):t.concat(i,Ie(i,[],n))}function Wt(e){const t=j(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=W(e),r=i?e.offsetWidth:n,s=i?e.offsetHeight:o,l=Be(n)!==r||Be(o)!==s;return l&&(n=r,o=s),{width:n,height:o,$:l}}function lt(e){return D(e)?e:e.contextElement}function be(e){const t=lt(e);if(!W(t))return G(1);const n=t.getBoundingClientRect(),{width:o,height:i,$:r}=Wt(t);let s=(r?Be(n.width):n.width)/o,l=(r?Be(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const Dn=G(0);function Ut(e){const t=I(e);return!rt()||!t.visualViewport?Dn:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function jn(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==I(e)?!1:t}function ae(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),r=lt(e);let s=G(1);t&&(o?D(o)&&(s=be(o)):s=be(e));const l=jn(r,n,o)?Ut(r):G(0);let c=(i.left+l.x)/s.x,a=(i.top+l.y)/s.y,f=i.width/s.x,u=i.height/s.y;if(r){const d=I(r),h=o&&D(o)?I(o):o;let g=d,b=g.frameElement;for(;b&&o&&h!==g;){const y=be(b),w=b.getBoundingClientRect(),_=j(b),v=w.left+(b.clientLeft+parseFloat(_.paddingLeft))*y.x,m=w.top+(b.clientTop+parseFloat(_.paddingTop))*y.y;c*=y.x,a*=y.y,f*=y.x,u*=y.y,c+=v,a+=m,g=I(b),b=g.frameElement}}return je({width:f,height:u,x:c,y:a})}function Nn(e){let{elements:t,rect:n,offsetParent:o,strategy:i}=e;const r=i==="fixed",s=z(o),l=t?Ve(t.floating):!1;if(o===s||l&&r)return n;let c={scrollLeft:0,scrollTop:0},a=G(1);const f=G(0),u=W(o);if((u||!u&&!r)&&((Te(o)!=="body"||Pe(s))&&(c=We(o)),W(o))){const d=ae(o);a=be(o),f.x=d.x+o.clientLeft,f.y=d.y+o.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-c.scrollLeft*a.x+f.x,y:n.y*a.y-c.scrollTop*a.y+f.y}}function Hn(e){return Array.from(e.getClientRects())}function zt(e){return ae(z(e)).left+We(e).scrollLeft}function Vn(e){const t=z(e),n=We(e),o=e.ownerDocument.body,i=se(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),r=se(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+zt(e);const l=-n.scrollTop;return j(o).direction==="rtl"&&(s+=se(t.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:l}}function Wn(e,t){const n=I(e),o=z(e),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,l=0,c=0;if(i){r=i.width,s=i.height;const a=rt();(!a||a&&t==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:r,height:s,x:l,y:c}}function Un(e,t){const n=ae(e,!0,t==="fixed"),o=n.top+e.clientTop,i=n.left+e.clientLeft,r=W(e)?be(e):G(1),s=e.clientWidth*r.x,l=e.clientHeight*r.y,c=i*r.x,a=o*r.y;return{width:s,height:l,x:c,y:a}}function pt(e,t,n){let o;if(t==="viewport")o=Wn(e,n);else if(t==="document")o=Vn(z(e));else if(D(t))o=Un(t,n);else{const i=Ut(e);o=C({},t,{x:t.x-i.x,y:t.y-i.y})}return je(o)}function $t(e,t){const n=J(e);return n===t||!D(n)||xe(n)?!1:j(n).position==="fixed"||$t(n,t)}function zn(e,t){const n=t.get(e);if(n)return n;let o=Ie(e,[],!1).filter(l=>D(l)&&Te(l)!=="body"),i=null;const r=j(e).position==="fixed";let s=r?J(e):e;for(;D(s)&&!xe(s);){const l=j(s),c=st(s);!c&&l.position==="fixed"&&(i=null),(r?!c&&!i:!c&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Pe(s)&&!c&&$t(e,s))?o=o.filter(f=>f!==s):i=l,s=J(s)}return t.set(e,o),o}function $n(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e;const s=[...n==="clippingAncestors"?Ve(t)?[]:zn(t,this._c):[].concat(n),o],l=s[0],c=s.reduce((a,f)=>{const u=pt(t,f,i);return a.top=se(u.top,a.top),a.right=ye(u.right,a.right),a.bottom=ye(u.bottom,a.bottom),a.left=se(u.left,a.left),a},pt(t,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function qn(e){const{width:t,height:n}=Wt(e);return{width:t,height:n}}function Yn(e,t,n){const o=W(t),i=z(t),r=n==="fixed",s=ae(e,!0,r,t);let l={scrollLeft:0,scrollTop:0};const c=G(0);if(o||!o&&!r)if((Te(t)!=="body"||Pe(i))&&(l=We(t)),o){const u=ae(t,!0,r,t);c.x=u.x+t.clientLeft,c.y=u.y+t.clientTop}else i&&(c.x=zt(i));const a=s.left+l.scrollLeft-c.x,f=s.top+l.scrollTop-c.y;return{x:a,y:f,width:s.width,height:s.height}}function qe(e){return j(e).position==="static"}function gt(e,t){return!W(e)||j(e).position==="fixed"?null:t?t(e):e.offsetParent}function qt(e,t){const n=I(e);if(Ve(e))return n;if(!W(e)){let i=J(e);for(;i&&!xe(i);){if(D(i)&&!qe(i))return i;i=J(i)}return n}let o=gt(e,t);for(;o&&Fn(o)&&qe(o);)o=gt(o,t);return o&&xe(o)&&qe(o)&&!st(o)?n:o||Bn(e)||n}const Kn=async function(t){const n=this.getOffsetParent||qt,o=this.getDimensions,i=await o(t.floating);return{reference:Yn(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Xn(e){return j(e).direction==="rtl"}const Qn={convertOffsetParentRelativeRectToViewportRelativeRect:Nn,getDocumentElement:z,getClippingRect:$n,getOffsetParent:qt,getElementRects:Kn,getClientRects:Hn,getDimensions:qn,getScale:be,isElement:D,isRTL:Xn};function Zn(e,t){let n=null,o;const i=z(e);function r(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),r();const{left:a,top:f,width:u,height:d}=e.getBoundingClientRect();if(l||t(),!u||!d)return;const h=Le(f),g=Le(i.clientWidth-(a+u)),b=Le(i.clientHeight-(f+d)),y=Le(a),_={rootMargin:-h+"px "+-g+"px "+-b+"px "+-y+"px",threshold:se(0,ye(1,c))||1};let v=!0;function m(p){const x=p[0].intersectionRatio;if(x!==c){if(!v)return s();x?s(!1,x):o=setTimeout(()=>{s(!1,1e-7)},1e3)}v=!1}try{n=new IntersectionObserver(m,C({},_,{root:i.ownerDocument}))}catch{n=new IntersectionObserver(m,_)}n.observe(e)}return s(!0),r}function Gn(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,a=lt(e),f=i||r?[...a?Ie(a):[],...Ie(t)]:[];f.forEach(w=>{i&&w.addEventListener("scroll",n,{passive:!0}),r&&w.addEventListener("resize",n)});const u=a&&l?Zn(a,n):null;let d=-1,h=null;s&&(h=new ResizeObserver(w=>{let[_]=w;_&&_.target===a&&h&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var v;(v=h)==null||v.observe(t)})),n()}),a&&!c&&h.observe(a),h.observe(t));let g,b=c?ae(e):null;c&&y();function y(){const w=ae(e);b&&(w.x!==b.x||w.y!==b.y||w.width!==b.width||w.height!==b.height)&&n(),b=w,g=requestAnimationFrame(y)}return n(),()=>{var w;f.forEach(_=>{i&&_.removeEventListener("scroll",n),r&&_.removeEventListener("resize",n)}),u==null||u(),(w=h)==null||w.disconnect(),h=null,c&&cancelAnimationFrame(g)}}const Jn=Rn,eo=Pn,to=Mn,no=Ln,oo=(e,t,n)=>{const o=new Map,i=C({platform:Qn},n),r=C({},i.platform,{_c:o});return kn(e,t,C({},i,{platform:r}))};function io(e){e.cleanup&&e.cleanup();const t=e._getResolvedAttachToOptions();let n=t.element;const o=fo(t,e),i=Bt(t);return i&&(n=document.body,e.shepherdElementComponent.getElement().classList.add("shepherd-centered")),e.cleanup=Gn(n,e.el,()=>{if(!e.el){e.cleanup==null||e.cleanup();return}lo(n,e,o,i)}),e.target=t.element,o}function so(e,t){return{floatingUIOptions:et(e.floatingUIOptions||{},t.floatingUIOptions||{})}}function ro(e){e.cleanup&&e.cleanup(),e.cleanup=null}function lo(e,t,n,o){return oo(e,t.el,n).then(co(t,o)).then(i=>new Promise(r=>{setTimeout(()=>r(i),300)})).then(i=>{i!=null&&i.el&&i.el.focus({preventScroll:!0})})}function co(e,t){return({x:n,y:o,placement:i,middlewareData:r})=>(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:`${o}px`}),e.el.dataset.popperPlacement=i,ao(e.el,r)),e)}function ao(e,t){const n=e.querySelector(".shepherd-arrow");if(Me(n)&&t.arrow){const{x:o,y:i}=t.arrow;Object.assign(n.style,{left:o!=null?`${o}px`:"",top:i!=null?`${i}px`:""})}}function fo(e,t){const n={strategy:"absolute"};n.middleware=[];const o=uo(t);if(!Bt(e)){if(n.middleware.push(eo(),Jn({limiter:no(),crossAxis:!0})),o){var r,s;const l=(e==null||(r=e.on)==null?void 0:r.includes("-start"))||(e==null||(s=e.on)==null?void 0:s.includes("-end"));n.middleware.push(to({element:o,padding:l?4:0}))}n.placement=e.on}return et(n,t.options.floatingUIOptions||{})}function uo(e){return e.options.arrow&&e.el?e.el.querySelector(".shepherd-arrow"):!1}function k(){}function ho(e,t){for(const n in t)e[n]=t[n];return e}function Yt(e){return e()}function mt(){return Object.create(null)}function Re(e){e.forEach(Yt)}function ct(e){return typeof e=="function"}function $(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function po(e){return Object.keys(e).length===0}function Se(e,t){e.appendChild(t)}function N(e,t,n){e.insertBefore(t,n||null)}function L(e){e.parentNode&&e.parentNode.removeChild(e)}function go(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function U(e){return document.createElement(e)}function bt(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Kt(e){return document.createTextNode(e)}function Ne(){return Kt(" ")}function mo(){return Kt("")}function Ue(e,t,n,o){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n,o)}function O(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}const bo=["width","height"];function wt(e,t){const n=Object.getOwnPropertyDescriptors(e.__proto__);for(const o in t)t[o]==null?e.removeAttribute(o):o==="style"?e.style.cssText=t[o]:o==="__value"?e.value=e[o]=t[o]:n[o]&&n[o].set&&bo.indexOf(o)===-1?e[o]=t[o]:O(e,o,t[o])}function wo(e){return Array.from(e.childNodes)}function pe(e,t,n){e.classList.toggle(t,!!n)}let ke;function Ee(e){ke=e}function Xt(){if(!ke)throw new Error("Function called outside component initialization");return ke}function yo(e){Xt().$$.on_mount.push(e)}function at(e){Xt().$$.after_update.push(e)}const me=[],Oe=[];let we=[];const yt=[],_o=Promise.resolve();let Qe=!1;function vo(){Qe||(Qe=!0,_o.then(Qt))}function Ze(e){we.push(e)}const Ye=new Set;let ge=0;function Qt(){if(ge!==0)return;const e=ke;do{try{for(;ge<me.length;){const t=me[ge];ge++,Ee(t),xo(t.$$)}}catch(t){throw me.length=0,ge=0,t}for(Ee(null),me.length=0,ge=0;Oe.length;)Oe.pop()();for(let t=0;t<we.length;t+=1){const n=we[t];Ye.has(n)||(Ye.add(n),n())}we.length=0}while(me.length);for(;yt.length;)yt.pop()();Qe=!1,Ye.clear(),Ee(e)}function xo(e){if(e.fragment!==null){e.update(),Re(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Ze)}}function So(e){const t=[],n=[];we.forEach(o=>e.indexOf(o)===-1?t.push(o):n.push(o)),n.forEach(o=>o()),we=t}const Fe=new Set;let ie;function re(){ie={r:0,c:[],p:ie}}function le(){ie.r||Re(ie.c),ie=ie.p}function S(e,t){e&&e.i&&(Fe.delete(e),e.i(t))}function T(e,t,n,o){if(e&&e.o){if(Fe.has(e))return;Fe.add(e),ie.c.push(()=>{Fe.delete(e),o&&(n&&e.d(1),o())}),e.o(t)}else o&&o()}function _t(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Oo(e,t){const n={},o={},i={$$scope:1};let r=e.length;for(;r--;){const s=e[r],l=t[r];if(l){for(const c in s)c in l||(o[c]=1);for(const c in l)i[c]||(n[c]=l[c],i[c]=1);e[r]=l}else for(const c in s)i[c]=1}for(const s in o)s in n||(n[s]=void 0);return n}function fe(e){e&&e.c()}function te(e,t,n){const{fragment:o,after_update:i}=e.$$;o&&o.m(t,n),Ze(()=>{const r=e.$$.on_mount.map(Yt).filter(ct);e.$$.on_destroy?e.$$.on_destroy.push(...r):Re(r),e.$$.on_mount=[]}),i.forEach(Ze)}function ne(e,t){const n=e.$$;n.fragment!==null&&(So(n.after_update),Re(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function To(e,t){e.$$.dirty[0]===-1&&(me.push(e),vo(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function q(e,t,n,o,i,r,s=null,l=[-1]){const c=ke;Ee(e);const a=e.$$={fragment:null,ctx:[],props:r,update:k,not_equal:i,bound:mt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:mt(),dirty:l,skip_bound:!1,root:t.target||c.$$.root};s&&s(a.root);let f=!1;if(a.ctx=n?n(e,t.props||{},(u,d,...h)=>{const g=h.length?h[0]:d;return a.ctx&&i(a.ctx[u],a.ctx[u]=g)&&(!a.skip_bound&&a.bound[u]&&a.bound[u](g),f&&To(e,u)),d}):[],a.update(),f=!0,Re(a.before_update),a.fragment=o?o(a.ctx):!1,t.target){if(t.hydrate){const u=wo(t.target);a.fragment&&a.fragment.l(u),u.forEach(L)}else a.fragment&&a.fragment.c();t.intro&&S(e.$$.fragment),te(e,t.target,t.anchor),Qt()}Ee(c)}class Y{constructor(){this.$$=void 0,this.$$set=void 0}$destroy(){ne(this,1),this.$destroy=k}$on(t,n){if(!ct(n))return k;const o=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return o.push(n),()=>{const i=o.indexOf(n);i!==-1&&o.splice(i,1)}}$set(t){this.$$set&&!po(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Ao="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ao);function Eo(e){let t,n,o,i,r;return{c(){t=U("button"),O(t,"aria-label",n=e[3]?e[3]:null),O(t,"class",o=`${e[1]||""} shepherd-button ${e[4]?"shepherd-button-secondary":""}`),t.disabled=e[2],O(t,"tabindex","0"),O(t,"type","button")},m(s,l){N(s,t,l),t.innerHTML=e[5],i||(r=Ue(t,"click",function(){ct(e[0])&&e[0].apply(this,arguments)}),i=!0)},p(s,[l]){e=s,l&32&&(t.innerHTML=e[5]),l&8&&n!==(n=e[3]?e[3]:null)&&O(t,"aria-label",n),l&18&&o!==(o=`${e[1]||""} shepherd-button ${e[4]?"shepherd-button-secondary":""}`)&&O(t,"class",o),l&4&&(t.disabled=e[2])},i:k,o:k,d(s){s&&L(t),i=!1,r()}}}function Co(e,t,n){let{config:o,step:i}=t,r,s,l,c,a,f;function u(d){return Z(d)?d=d.call(i):d}return e.$$set=d=>{"config"in d&&n(6,o=d.config),"step"in d&&n(7,i=d.step)},e.$$.update=()=>{e.$$.dirty&192&&(n(0,r=o.action?o.action.bind(i.tour):null),n(1,s=o.classes),n(2,l=o.disabled?u(o.disabled):!1),n(3,c=o.label?u(o.label):null),n(4,a=o.secondary),n(5,f=o.text?u(o.text):null))},[r,s,l,c,a,f,o,i]}class Io extends Y{constructor(t){super(),q(this,t,Co,Eo,$,{config:6,step:7})}}function vt(e,t,n){const o=e.slice();return o[2]=t[n],o}function xt(e){let t,n,o=_t(e[1]),i=[];for(let s=0;s<o.length;s+=1)i[s]=St(vt(e,o,s));const r=s=>T(i[s],1,1,()=>{i[s]=null});return{c(){for(let s=0;s<i.length;s+=1)i[s].c();t=mo()},m(s,l){for(let c=0;c<i.length;c+=1)i[c]&&i[c].m(s,l);N(s,t,l),n=!0},p(s,l){if(l&3){o=_t(s[1]);let c;for(c=0;c<o.length;c+=1){const a=vt(s,o,c);i[c]?(i[c].p(a,l),S(i[c],1)):(i[c]=St(a),i[c].c(),S(i[c],1),i[c].m(t.parentNode,t))}for(re(),c=o.length;c<i.length;c+=1)r(c);le()}},i(s){if(!n){for(let l=0;l<o.length;l+=1)S(i[l]);n=!0}},o(s){i=i.filter(Boolean);for(let l=0;l<i.length;l+=1)T(i[l]);n=!1},d(s){s&&L(t),go(i,s)}}}function St(e){let t,n;return t=new Io({props:{config:e[2],step:e[0]}}),{c(){fe(t.$$.fragment)},m(o,i){te(t,o,i),n=!0},p(o,i){const r={};i&2&&(r.config=o[2]),i&1&&(r.step=o[0]),t.$set(r)},i(o){n||(S(t.$$.fragment,o),n=!0)},o(o){T(t.$$.fragment,o),n=!1},d(o){ne(t,o)}}}function ko(e){let t,n,o=e[1]&&xt(e);return{c(){t=U("footer"),o&&o.c(),O(t,"class","shepherd-footer")},m(i,r){N(i,t,r),o&&o.m(t,null),n=!0},p(i,[r]){i[1]?o?(o.p(i,r),r&2&&S(o,1)):(o=xt(i),o.c(),S(o,1),o.m(t,null)):o&&(re(),T(o,1,1,()=>{o=null}),le())},i(i){n||(S(o),n=!0)},o(i){T(o),n=!1},d(i){i&&L(t),o&&o.d()}}}function Mo(e,t,n){let o,{step:i}=t;return e.$$set=r=>{"step"in r&&n(0,i=r.step)},e.$$.update=()=>{e.$$.dirty&1&&n(1,o=i.options.buttons)},[i,o]}class Po extends Y{constructor(t){super(),q(this,t,Mo,ko,$,{step:0})}}function Ro(e){let t,n,o,i,r;return{c(){t=U("button"),n=U("span"),n.textContent="×",O(n,"aria-hidden","true"),O(t,"aria-label",o=e[0].label?e[0].label:"Close Tour"),O(t,"class","shepherd-cancel-icon"),O(t,"type","button")},m(s,l){N(s,t,l),Se(t,n),i||(r=Ue(t,"click",e[1]),i=!0)},p(s,[l]){l&1&&o!==(o=s[0].label?s[0].label:"Close Tour")&&O(t,"aria-label",o)},i:k,o:k,d(s){s&&L(t),i=!1,r()}}}function Lo(e,t,n){let{cancelIcon:o,step:i}=t;const r=s=>{s.preventDefault(),i.cancel()};return e.$$set=s=>{"cancelIcon"in s&&n(0,o=s.cancelIcon),"step"in s&&n(2,i=s.step)},[o,r,i]}class Fo extends Y{constructor(t){super(),q(this,t,Lo,Ro,$,{cancelIcon:0,step:2})}}function Bo(e){let t;return{c(){t=U("h3"),O(t,"id",e[1]),O(t,"class","shepherd-title")},m(n,o){N(n,t,o),e[3](t)},p(n,[o]){o&2&&O(t,"id",n[1])},i:k,o:k,d(n){n&&L(t),e[3](null)}}}function Do(e,t,n){let{labelId:o,element:i,title:r}=t;at(()=>{Z(r)&&n(2,r=r()),n(0,i.innerHTML=r,i)});function s(l){Oe[l?"unshift":"push"](()=>{i=l,n(0,i)})}return e.$$set=l=>{"labelId"in l&&n(1,o=l.labelId),"element"in l&&n(0,i=l.element),"title"in l&&n(2,r=l.title)},[i,o,r,s]}class jo extends Y{constructor(t){super(),q(this,t,Do,Bo,$,{labelId:1,element:0,title:2})}}function Ot(e){let t,n;return t=new jo({props:{labelId:e[0],title:e[2]}}),{c(){fe(t.$$.fragment)},m(o,i){te(t,o,i),n=!0},p(o,i){const r={};i&1&&(r.labelId=o[0]),i&4&&(r.title=o[2]),t.$set(r)},i(o){n||(S(t.$$.fragment,o),n=!0)},o(o){T(t.$$.fragment,o),n=!1},d(o){ne(t,o)}}}function Tt(e){let t,n;return t=new Fo({props:{cancelIcon:e[3],step:e[1]}}),{c(){fe(t.$$.fragment)},m(o,i){te(t,o,i),n=!0},p(o,i){const r={};i&8&&(r.cancelIcon=o[3]),i&2&&(r.step=o[1]),t.$set(r)},i(o){n||(S(t.$$.fragment,o),n=!0)},o(o){T(t.$$.fragment,o),n=!1},d(o){ne(t,o)}}}function No(e){let t,n,o,i=e[2]&&Ot(e),r=e[3]&&e[3].enabled&&Tt(e);return{c(){t=U("header"),i&&i.c(),n=Ne(),r&&r.c(),O(t,"class","shepherd-header")},m(s,l){N(s,t,l),i&&i.m(t,null),Se(t,n),r&&r.m(t,null),o=!0},p(s,[l]){s[2]?i?(i.p(s,l),l&4&&S(i,1)):(i=Ot(s),i.c(),S(i,1),i.m(t,n)):i&&(re(),T(i,1,1,()=>{i=null}),le()),s[3]&&s[3].enabled?r?(r.p(s,l),l&8&&S(r,1)):(r=Tt(s),r.c(),S(r,1),r.m(t,null)):r&&(re(),T(r,1,1,()=>{r=null}),le())},i(s){o||(S(i),S(r),o=!0)},o(s){T(i),T(r),o=!1},d(s){s&&L(t),i&&i.d(),r&&r.d()}}}function Ho(e,t,n){let{labelId:o,step:i}=t,r,s;return e.$$set=l=>{"labelId"in l&&n(0,o=l.labelId),"step"in l&&n(1,i=l.step)},e.$$.update=()=>{e.$$.dirty&2&&(n(2,r=i.options.title),n(3,s=i.options.cancelIcon))},[o,i,r,s]}class Vo extends Y{constructor(t){super(),q(this,t,Ho,No,$,{labelId:0,step:1})}}function Wo(e){let t;return{c(){t=U("div"),O(t,"class","shepherd-text"),O(t,"id",e[1])},m(n,o){N(n,t,o),e[3](t)},p(n,[o]){o&2&&O(t,"id",n[1])},i:k,o:k,d(n){n&&L(t),e[3](null)}}}function Uo(e,t,n){let{descriptionId:o,element:i,step:r}=t;at(()=>{let{text:l}=r.options;Z(l)&&(l=l.call(r)),Me(l)?i.appendChild(l):n(0,i.innerHTML=l,i)});function s(l){Oe[l?"unshift":"push"](()=>{i=l,n(0,i)})}return e.$$set=l=>{"descriptionId"in l&&n(1,o=l.descriptionId),"element"in l&&n(0,i=l.element),"step"in l&&n(2,r=l.step)},[i,o,r,s]}class zo extends Y{constructor(t){super(),q(this,t,Uo,Wo,$,{descriptionId:1,element:0,step:2})}}function At(e){let t,n;return t=new Vo({props:{labelId:e[1],step:e[2]}}),{c(){fe(t.$$.fragment)},m(o,i){te(t,o,i),n=!0},p(o,i){const r={};i&2&&(r.labelId=o[1]),i&4&&(r.step=o[2]),t.$set(r)},i(o){n||(S(t.$$.fragment,o),n=!0)},o(o){T(t.$$.fragment,o),n=!1},d(o){ne(t,o)}}}function Et(e){let t,n;return t=new zo({props:{descriptionId:e[0],step:e[2]}}),{c(){fe(t.$$.fragment)},m(o,i){te(t,o,i),n=!0},p(o,i){const r={};i&1&&(r.descriptionId=o[0]),i&4&&(r.step=o[2]),t.$set(r)},i(o){n||(S(t.$$.fragment,o),n=!0)},o(o){T(t.$$.fragment,o),n=!1},d(o){ne(t,o)}}}function Ct(e){let t,n;return t=new Po({props:{step:e[2]}}),{c(){fe(t.$$.fragment)},m(o,i){te(t,o,i),n=!0},p(o,i){const r={};i&4&&(r.step=o[2]),t.$set(r)},i(o){n||(S(t.$$.fragment,o),n=!0)},o(o){T(t.$$.fragment,o),n=!1},d(o){ne(t,o)}}}function $o(e){let t,n=!A(e[2].options.title)||e[2].options.cancelIcon&&e[2].options.cancelIcon.enabled,o,i=!A(e[2].options.text),r,s=Array.isArray(e[2].options.buttons)&&e[2].options.buttons.length,l,c=n&&At(e),a=i&&Et(e),f=s&&Ct(e);return{c(){t=U("div"),c&&c.c(),o=Ne(),a&&a.c(),r=Ne(),f&&f.c(),O(t,"class","shepherd-content"),O(t,"tabindex","0")},m(u,d){N(u,t,d),c&&c.m(t,null),Se(t,o),a&&a.m(t,null),Se(t,r),f&&f.m(t,null),l=!0},p(u,[d]){d&4&&(n=!A(u[2].options.title)||u[2].options.cancelIcon&&u[2].options.cancelIcon.enabled),n?c?(c.p(u,d),d&4&&S(c,1)):(c=At(u),c.c(),S(c,1),c.m(t,o)):c&&(re(),T(c,1,1,()=>{c=null}),le()),d&4&&(i=!A(u[2].options.text)),i?a?(a.p(u,d),d&4&&S(a,1)):(a=Et(u),a.c(),S(a,1),a.m(t,r)):a&&(re(),T(a,1,1,()=>{a=null}),le()),d&4&&(s=Array.isArray(u[2].options.buttons)&&u[2].options.buttons.length),s?f?(f.p(u,d),d&4&&S(f,1)):(f=Ct(u),f.c(),S(f,1),f.m(t,null)):f&&(re(),T(f,1,1,()=>{f=null}),le())},i(u){l||(S(c),S(a),S(f),l=!0)},o(u){T(c),T(a),T(f),l=!1},d(u){u&&L(t),c&&c.d(),a&&a.d(),f&&f.d()}}}function qo(e,t,n){let{descriptionId:o,labelId:i,step:r}=t;return e.$$set=s=>{"descriptionId"in s&&n(0,o=s.descriptionId),"labelId"in s&&n(1,i=s.labelId),"step"in s&&n(2,r=s.step)},[o,i,r]}class Yo extends Y{constructor(t){super(),q(this,t,qo,$o,$,{descriptionId:0,labelId:1,step:2})}}function It(e){let t;return{c(){t=U("div"),O(t,"class","shepherd-arrow"),O(t,"data-popper-arrow","")},m(n,o){N(n,t,o)},d(n){n&&L(t)}}}function Ko(e){let t,n,o,i,r,s,l,c,a=e[4].options.arrow&&e[4].options.attachTo&&e[4].options.attachTo.element&&e[4].options.attachTo.on&&It();o=new Yo({props:{descriptionId:e[2],labelId:e[3],step:e[4]}});let f=[{"aria-describedby":i=A(e[4].options.text)?null:e[2]},{"aria-labelledby":r=e[4].options.title?e[3]:null},e[1],{open:"true"}],u={};for(let d=0;d<f.length;d+=1)u=ho(u,f[d]);return{c(){t=U("dialog"),a&&a.c(),n=Ne(),fe(o.$$.fragment),wt(t,u),pe(t,"shepherd-has-cancel-icon",e[5]),pe(t,"shepherd-has-title",e[6]),pe(t,"shepherd-element",!0)},m(d,h){N(d,t,h),a&&a.m(t,null),Se(t,n),te(o,t,null),e[13](t),s=!0,l||(c=Ue(t,"keydown",e[7]),l=!0)},p(d,[h]){d[4].options.arrow&&d[4].options.attachTo&&d[4].options.attachTo.element&&d[4].options.attachTo.on?a||(a=It(),a.c(),a.m(t,n)):a&&(a.d(1),a=null);const g={};h&4&&(g.descriptionId=d[2]),h&8&&(g.labelId=d[3]),h&16&&(g.step=d[4]),o.$set(g),wt(t,u=Oo(f,[(!s||h&20&&i!==(i=A(d[4].options.text)?null:d[2]))&&{"aria-describedby":i},(!s||h&24&&r!==(r=d[4].options.title?d[3]:null))&&{"aria-labelledby":r},h&2&&d[1],{open:"true"}])),pe(t,"shepherd-has-cancel-icon",d[5]),pe(t,"shepherd-has-title",d[6]),pe(t,"shepherd-element",!0)},i(d){s||(S(o.$$.fragment,d),s=!0)},o(d){T(o.$$.fragment,d),s=!1},d(d){d&&L(t),a&&a.d(),ne(o),e[13](null),l=!1,c()}}}const Xo=9,Qo=27,Zo=37,Go=39;function kt(e){return e.split(" ").filter(t=>!!t.length)}function Jo(e,t,n){let{classPrefix:o,element:i,descriptionId:r,firstFocusableElement:s,focusableElements:l,labelId:c,lastFocusableElement:a,step:f,dataStepId:u}=t,d,h,g;const b=()=>i;yo(()=>{n(1,u={[`data-${o}shepherd-step-id`]:f.id}),n(9,l=i.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),n(8,s=l[0]),n(10,a=l[l.length-1])}),at(()=>{g!==f.options.classes&&y()});function y(){w(g),g=f.options.classes,_(g)}function w(p){if(Ce(p)){const x=kt(p);x.length&&i.classList.remove(...x)}}function _(p){if(Ce(p)){const x=kt(p);x.length&&i.classList.add(...x)}}const v=p=>{const{tour:x}=f;switch(p.keyCode){case Xo:if(l.length===0){p.preventDefault();break}p.shiftKey?(document.activeElement===s||document.activeElement.classList.contains("shepherd-element"))&&(p.preventDefault(),a.focus()):document.activeElement===a&&(p.preventDefault(),s.focus());break;case Qo:x.options.exitOnEsc&&(p.preventDefault(),p.stopPropagation(),f.cancel());break;case Zo:x.options.keyboardNavigation&&(p.preventDefault(),p.stopPropagation(),x.back());break;case Go:x.options.keyboardNavigation&&(p.preventDefault(),p.stopPropagation(),x.next());break}};function m(p){Oe[p?"unshift":"push"](()=>{i=p,n(0,i)})}return e.$$set=p=>{"classPrefix"in p&&n(11,o=p.classPrefix),"element"in p&&n(0,i=p.element),"descriptionId"in p&&n(2,r=p.descriptionId),"firstFocusableElement"in p&&n(8,s=p.firstFocusableElement),"focusableElements"in p&&n(9,l=p.focusableElements),"labelId"in p&&n(3,c=p.labelId),"lastFocusableElement"in p&&n(10,a=p.lastFocusableElement),"step"in p&&n(4,f=p.step),"dataStepId"in p&&n(1,u=p.dataStepId)},e.$$.update=()=>{e.$$.dirty&16&&(n(5,d=f.options&&f.options.cancelIcon&&f.options.cancelIcon.enabled),n(6,h=f.options&&f.options.title))},[i,u,r,c,f,d,h,v,s,l,a,o,b,m]}class ei extends Y{constructor(t){super(),q(this,t,Jo,Ko,$,{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]}}class Ge extends Je{constructor(t,n={}){return super(),this._resolvedAttachTo=void 0,this.classPrefix=void 0,this.el=void 0,this.target=void 0,this.tour=void 0,this.tour=t,this.classPrefix=this.tour.options?Ft(this.tour.options.classPrefix):"",this.styles=t.styles,this._resolvedAttachTo=null,tt(this),this._setOptions(n),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){ro(this),Me(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this.trigger("destroy")}getTour(){return this.tour}hide(){var t;(t=this.tour.modal)==null||t.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveAttachToOptions(){return this._resolvedAttachTo=_n(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return this._resolvedAttachTo===null?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return!!(this.el&&!this.el.hidden)}show(){return Z(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then(()=>this._show()):Promise.resolve(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`,n=`${this.id}-label`;return this.shepherdElementComponent=new ei({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:t,labelId:n,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()}_scrollTo(t){const{element:n}=this._getResolvedAttachToOptions();Z(this.options.scrollToHandler)?this.options.scrollToHandler(n):en(n)&&typeof n.scrollIntoView=="function"&&n.scrollIntoView(t)}_getClassOptions(t){const n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,o=t.classes?t.classes:"",i=n&&n.classes?n.classes:"",r=[...o.split(" "),...i.split(" ")],s=new Set(r);return Array.from(s).join(" ").trim()}_setOptions(t={}){let n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;n=et({},n||{}),this.options=Object.assign({arrow:!0},n,t,so(n,t));const{when:o}=this.options;this.options.classes=this._getClassOptions(t),this.destroy(),this.id=this.options.id||`step-${Dt()}`,o&&Object.keys(o).forEach(i=>{this.on(i,o[i],this)})}_setupElements(){A(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&bn(this),io(this)}_show(){var t;this.trigger("before-show"),this._resolveAttachToOptions(),this._setupElements(),this.tour.modal||this.tour.setupModal(),(t=this.tour.modal)==null||t.setupForStep(this),this._styleTargetElementForStep(this),this.el&&(this.el.hidden=!1),this.options.scrollTo&&setTimeout(()=>{this._scrollTo(this.options.scrollTo)}),this.el&&(this.el.hidden=!1);const n=this.shepherdElementComponent.getElement(),o=this.target||document.body;o.classList.add(`${this.classPrefix}shepherd-enabled`),o.classList.add(`${this.classPrefix}shepherd-target`),n.classList.add("shepherd-enabled"),this.trigger("show")}_styleTargetElementForStep(t){const n=t.target;n&&(t.options.highlightClass&&n.classList.add(t.options.highlightClass),n.classList.remove("shepherd-target-click-disabled"),t.options.canClickTarget===!1&&n.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 ti(e){if(e){const{steps:t}=e;t.forEach(n=>{n.options&&n.options.canClickTarget===!1&&n.options.attachTo&&Me(n.target)&&n.target.classList.remove("shepherd-target-click-disabled")})}}function ni({width:e,height:t,x:n=0,y:o=0,r:i=0}){const{innerWidth:r,innerHeight:s}=window,{topLeft:l=0,topRight:c=0,bottomRight:a=0,bottomLeft:f=0}=typeof i=="number"?{topLeft:i,topRight:i,bottomRight:i,bottomLeft:i}:i;return`M${r},${s}H0V0H${r}V${s}ZM${n+l},${o}a${l},${l},0,0,0-${l},${l}V${t+o-f}a${f},${f},0,0,0,${f},${f}H${e+n-a}a${a},${a},0,0,0,${a}-${a}V${o+c}a${c},${c},0,0,0-${c}-${c}Z`}function oi(e){let t,n,o,i,r;return{c(){t=bt("svg"),n=bt("path"),O(n,"d",e[2]),O(t,"class",o=`${e[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)},m(s,l){N(s,t,l),Se(t,n),e[11](t),i||(r=Ue(t,"touchmove",e[3]),i=!0)},p(s,[l]){l&4&&O(n,"d",s[2]),l&2&&o!==(o=`${s[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)&&O(t,"class",o)},i:k,o:k,d(s){s&&L(t),e[11](null),i=!1,r()}}}function Zt(e){if(!e)return null;const n=e instanceof HTMLElement&&window.getComputedStyle(e).overflowY;return n!=="hidden"&&n!=="visible"&&e.scrollHeight>=e.clientHeight?e:Zt(e.parentElement)}function ii(e){let t={top:0,left:0};if(!e)return t;let n=e.ownerDocument.defaultView;for(;n!==window.top;){var o;const s=(o=n)==null?void 0:o.frameElement;if(s){var i,r;const l=s.getBoundingClientRect();t.top+=l.top+((i=l.scrollTop)!=null?i:0),t.left+=l.left+((r=l.scrollLeft)!=null?r:0)}n=n.parent}return t}function si(e,t){const n=e.getBoundingClientRect();let o=n.y||n.top,i=n.bottom||o+n.height;if(t){const s=t.getBoundingClientRect(),l=s.y||s.top,c=s.bottom||l+s.height;o=Math.max(o,l),i=Math.min(i,c)}const r=Math.max(i-o,0);return{y:o,height:r}}function ri(e,t,n){let{element:o,openingProperties:i}=t,r=!1,s,l;a();const c=()=>o;function a(){n(4,i={width:0,height:0,x:0,y:0,r:0})}function f(){n(1,r=!1),w()}function u(m=0,p=0,x=0,E=0,K,F){if(F){const{y:H,height:M}=si(F,K),{x:P,width:oe,left:R}=F.getBoundingClientRect();n(4,i={width:oe+m*2,height:M+m*2,x:(P||R)+x-m,y:H+E-m,r:p})}else a()}function d(m){w(),m.tour.options.useModalOverlay?(_(m),h()):f()}function h(){n(1,r=!0)}const g=m=>{m.preventDefault()},b=m=>{m.stopPropagation()};function y(){window.addEventListener("touchmove",g,{passive:!1})}function w(){s&&(cancelAnimationFrame(s),s=void 0),window.removeEventListener("touchmove",g,{passive:!1})}function _(m){const{modalOverlayOpeningPadding:p,modalOverlayOpeningRadius:x,modalOverlayOpeningXOffset:E=0,modalOverlayOpeningYOffset:K=0}=m.options,F=ii(m.target),H=Zt(m.target),M=()=>{s=void 0,u(p,x,E+F.left,K+F.top,H,m.target),s=requestAnimationFrame(M)};M(),y()}function v(m){Oe[m?"unshift":"push"](()=>{o=m,n(0,o)})}return e.$$set=m=>{"element"in m&&n(0,o=m.element),"openingProperties"in m&&n(4,i=m.openingProperties)},e.$$.update=()=>{e.$$.dirty&16&&n(2,l=ni(i))},[o,r,l,b,i,c,a,f,u,d,h,v]}class li extends Y{constructor(t){super(),q(this,t,ri,oi,$,{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]}}class ci extends Je{constructor(){super(),this.activeTour=void 0,tt(this)}}class ai extends Je{constructor(t={}){super(),this.trackedEvents=["active","cancel","complete","show"],this.classPrefix=void 0,this.currentStep=void 0,this.focusedElBeforeOpen=void 0,this.id=void 0,this.modal=void 0,this.options=void 0,this.steps=void 0,tt(this);const n={exitOnEsc:!0,keyboardNavigation:!0};return this.options=Object.assign({},n,t),this.classPrefix=Ft(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps),["active","cancel","complete","inactive","show","start"].map(i=>{(r=>{this.on(r,s=>{s=s||{},s.tour=this,V.trigger(r,s)})})(i)}),this._setTourID(t.id),this}addStep(t,n){let o=t;return o instanceof Ge?o.tour=this:o=new Ge(this,o),A(n)?this.steps.push(o):this.steps.splice(n,0,o),o}addSteps(t){return Array.isArray(t)&&t.forEach(n=>{this.addStep(n)}),this}back(){const t=this.steps.indexOf(this.currentStep);this.show(t-1,!1)}async cancel(){if(this.options.confirmCancel){const t=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";let n;Z(this.options.confirmCancel)?n=await this.options.confirmCancel():n=window.confirm(t),n&&this._done("cancel")}else this._done("cancel")}complete(){this._done("complete")}getById(t){return this.steps.find(n=>n.id===t)}getCurrentStep(){return this.currentStep}hide(){const t=this.getCurrentStep();if(t)return t.hide()}isActive(){return V.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 n=this.getCurrentStep();this.steps.some((o,i)=>{if(o.id===t)return o.isOpen()&&o.hide(),o.destroy(),this.steps.splice(i,1),!0}),n&&n.id===t&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(t=0,n=!0){const o=Ce(t)?this.getById(t):this.steps[t];o&&(this._updateStateBeforeShow(),Z(o.options.showOn)&&!o.options.showOn()?this._skipStep(o,n):(this.currentStep=o,this.trigger("show",{step:o,previous:this.currentStep}),o.show()))}async start(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this.setupModal(),this._setupActiveTour(),this.next()}_done(t){const n=this.steps.indexOf(this.currentStep);if(Array.isArray(this.steps)&&this.steps.forEach(o=>o.destroy()),ti(this),this.trigger(t,{index:n}),V.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),(t==="cancel"||t==="complete")&&this.modal){const o=document.querySelector(".shepherd-modal-overlay-container");o&&(o.remove(),this.modal=null)}Me(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),V.activeTour=this}setupModal(){this.modal=new li({target:this.options.modalContainer||document.body,props:{styles:this.styles}})}_skipStep(t,n){const o=this.steps.indexOf(t);if(o===this.steps.length-1)this.complete();else{const i=n?o+1:o-1;this.show(i,n)}}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(t){const n=this.options.tourName||"tour",o=t||Dt();this.id=`${n}--${o}`}}const V=new ci,Gt=typeof window>"u";V.Step=Gt?wn:Ge;V.Tour=Gt?yn:ai;((e,t,n,o,i,r)=>{const s=decodeURI(window.location.search);n.behaviors.tour={attach(l){r("tour","body").forEach(()=>{const c=new n.tour.models.StateModel;new n.tour.views.ToggleTourView({el:e(l).find(".js-tour-start-button, .js-tour-start-toolbar"),model:c}),c.on("change:isActive",(a,f)=>{e(i).trigger(f?"drupalTourStarted":"drupalTourStopped")}),o._tour_internal&&c.set("tour",o._tour_internal),/tour=\\?/i.test(s)&&c.set("isActive",!0),i.addEventListener("keydown",function(a){a.altKey&&a.code==="KeyT"&&(c.set("isActive",!0),a.preventDefault(),a.stopPropagation())}),n.tour.setActive=function(a=!0){c.set("isActive",a)},n.tour.get=function(){return V.activeTour},n.tour.getPromise=function(a=2e3){return new Promise((u,d)=>{(function h(g){V.activeTour&&u(V.activeTour),g<=0&&d(),setTimeout(function(){h(g-10)},10)})(a)})}})}},n.tour=n.tour||{models:{},views:{}},n.tour.models.StateModel=t.Model.extend({defaults:{tour:[],isActive:!1,activeTour:[]}}),n.tour.views.ToggleTourView=t.View.extend({events:{click:"onClick"},initialize(){this.listenTo(this.model,"change:tour change:isActive",this.render),this.listenTo(this.model,"change:isActive",this.toggleTour)},render(){const l=i.getElementsByClassName("admin-toolbar__close-button");l.length>0&&i.documentElement.clientWidth<1024&&l[0].click();const c=this.model.get("isActive");return this.$el.each(function(a,f){e(f).prop("tagName")==="BUTTON"||e(f).attr("role")==="button"?e(f):e(f).find('button, [role="button"]'),e(f).toggleClass("is-active",c)}),this},toggleTour(){if(this.model.get("isActive")){this._removeIrrelevantTourItems(this._getTour());const l=this.model.get("tour"),c=this;if(l.length){window.matchMedia("(prefers-reduced-motion: reduce)").matches&&(o.tourShepherdConfig.defaultStepOptions.scrollTo.behavior="auto");const f=new V.Tour(o.tourShepherdConfig);f.on("cancel",()=>{c.el.focus(),c.model.set("isActive",!1)}),f.on("complete",()=>{c.model.set("isActive",!1)}),l.forEach((u,d)=>{const h=[n.tour.nextButton(f,u)];d>0&&h.unshift(n.tour.prevButton(f));const g={id:u.id,title:u.title?n.checkPlain(u.title):null,text:()=>n.theme("tourItemContent",u),attachTo:u.attachTo,buttons:h,classes:u.classes,index:d};g.when={show(){f.currentStep.el.querySelector("footer button").focus()}};const b=f.addStep(g);b.on("before-show",function(){const y=b.options.attachTo.element;if(y&&!e(y).is(":visible")){const w=e(y).parents("details");if(w){const _=w.attr("id"),v=e('a[href="#'.concat(_,'"]'));v.length?v.click():w.find("summary").click()}}}),b.on("show",function(){const y=i.querySelectorAll(".shepherd-element.shepherd-enabled");y&&y.forEach(w=>w.setAttribute("aria-modal","true"))})}),f.start(),this.model.set({isActive:!0,activeTour:f})}}else this.model.get("activeTour").cancel(),this.model.set({isActive:!1,activeTour:[]})},onClick(l){this.model.set("isActive",!this.model.get("isActive")),l.preventDefault(),l.stopPropagation()},_getTour(){return this.model.get("tour")},_removeIrrelevantTourItems(l){const c=/tips=([^&]+)/.exec(s),a=l.filter(f=>c&&f.hasOwnProperty("classes")&&f.classes.indexOf(c[1])===-1?!1:!(f.selector&&!i.querySelector(f.selector)));l.length!==a.length&&(a.forEach((f,u)=>{a[u].counter=n.t("!tour_item of !total",{"!tour_item":u+1,"!total":a.length}),u===a.length-1&&(a[u].cancelText=n.t("End tour"))}),this.model.set("tour",a))}}),n.tour.prevButton=l=>({classes:"button button--secondary",action:l.back,text:n.t("Previous"),secondary:!0}),n.tour.nextButton=(l,c)=>({classes:"button button--primary",text:c.cancelText?c.cancelText:n.t("Next"),action:c.cancelText?l.cancel:l.next}),n.theme.tourItemContent=l=>`${l.body}<div class="tour-progress">${l.counter}</div>`})(jQuery,Backbone,Drupal,drupalSettings,document,once);
diff --git a/js/tour.js b/js/tour.js
index c9948454aebe5b6e2e38d0cc86c6f18a07f91731..01890ff258229e02b2a9300c4809dbd2208b3cf2 100644
--- a/js/tour.js
+++ b/js/tour.js
@@ -7,7 +7,7 @@
 import Shepherd from 'shepherd.js';
 import 'shepherd.js/dist/css/shepherd.css';
 
-(($, Backbone, Drupal, settings, document) => {
+(($, Backbone, Drupal, settings, document, once) => {
   const queryString = decodeURI(window.location.search);
 
   /**
@@ -481,4 +481,4 @@ import 'shepherd.js/dist/css/shepherd.css';
    */
   Drupal.theme.tourItemContent = (tourStepConfig) =>
     `${tourStepConfig.body}<div class="tour-progress">${tourStepConfig.counter}</div>`;
-})(jQuery, Backbone, Drupal, drupalSettings, document);
+})(jQuery, Backbone, Drupal, drupalSettings, document, once);
diff --git a/tour.libraries.yml b/tour.libraries.yml
index 9d0d4face43545fd9a6d4379d5e6d9b0c2d5235d..c6c17773adacb9595dc66ef995d6596a8b125b0f 100644
--- a/tour.libraries.yml
+++ b/tour.libraries.yml
@@ -1,11 +1,12 @@
 tour:
   version: VERSION
   js:
-    dist/tour.js: {}
+    dist/tour.js: { weight: -1 }
   dependencies:
     - core/jquery
     - core/once
     - core/drupal
+    - core/drupalSettings
     # @todo Remove this in https://www.drupal.org/project/drupal/issues/3204011
     - core/internal.backbone
     - tour/tour-styling
diff --git a/vite.config.js b/vite.config.js
index 4a74b4752d4aa0c696c37649cd7ef555478496c5..79ccee21957e4604732fab562f76b795ee8d37c6 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -6,7 +6,7 @@ export default defineConfig(({ mode }) => {
     build: {
       manifest: true,
       rollupOptions: {
-        external: ['jQuery', 'Backbone', 'Drupal', 'drupalSettings'],
+        external: ['jQuery', 'Backbone', 'Drupal', 'drupalSettings', 'once'],
         input: 'js/tour.js',
         output: {
           assetFileNames: (assetInfo) => {