"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let F={};function D(e={}){F={animate:!0,allowClose:!0,overlayOpacity:.7,smoothScroll:!1,disableActiveInteraction:!1,showProgress:!1,stagePadding:10,stageRadius:5,popoverOffset:10,showButtons:["next","previous","close"],disableButtons:[],overlayColor:"#000",...e}}function a(e){return e?F[e]:F}function R(e,o,t,n){return(e/=n/2)<1?t/2*e*e+o:-t/2*(--e*(e-2)-1)+o}function Q(e){const o='a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])';return e.flatMap(t=>{const n=t.matches(o),p=Array.from(t.querySelectorAll(o));return[...n?[t]:[],...p]}).filter(t=>getComputedStyle(t).pointerEvents!=="none"&&ce(t))}function Z(e){if(!e||se(e))return;const o=a("smoothScroll");e.scrollIntoView({behavior:!o||re(e)?"auto":"smooth",inline:"center",block:"center"})}function re(e){if(!e||!e.parentElement)return;const o=e.parentElement;return o.scrollHeight>o.clientHeight}function se(e){const o=e.getBoundingClientRect();return o.top>=0&&o.left>=0&&o.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&o.right<=(window.innerWidth||document.documentElement.clientWidth)}function ae(){var p;const e=a("overlayContainer")||window,o=(e==null?void 0:e.clientWidth)||e.innerWidth,t=(e==null?void 0:e.clientHeight)||e.innerHeight,n=(p=e==null?void 0:e.getBoundingClientRect)==null?void 0:p.call(e);return{x:(n==null?void 0:n.left)||0,y:(n==null?void 0:n.top)||0,width:o,height:t}}function ce(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}let O={};function x(e,o){O[e]=o}function l(e){return e?O[e]:O}function V(){O={}}let I={};function N(e,o){I[e]=o}function L(e){var o;(o=I[e])==null||o.call(I)}function le(){I={}}function de(e,o,t,n){let p=l("__activeStagePosition");const i=p||t.getBoundingClientRect(),h=n.getBoundingClientRect(),w=R(e,i.x,h.x-i.x,o),r=R(e,i.y,h.y-i.y,o),v=R(e,i.width,h.width-i.width,o),s=R(e,i.height,h.height-i.height,o);p={x:w,y:r,width:v,height:s},J(p),x("__activeStagePosition",p)}function G(e){if(!e)return;const o=e.getBoundingClientRect(),t={x:o.x,y:o.y,width:o.width,height:o.height};x("__activeStagePosition",t),J(t)}function pe(){const e=l("__activeStagePosition"),o=l("__overlaySvg");if(!e)return;if(!o){console.warn("No stage svg found.");return}const t=window.innerWidth,n=window.innerHeight;o.setAttribute("viewBox",`0 0 ${t} ${n}`)}function ue(e){const o=ve(e);document.body.appendChild(o),te(o,t=>{t.target.tagName==="path"&&L("overlayClick")}),x("__overlaySvg",o)}function J(e){const o=l("__overlaySvg");if(!o){ue(e);return}const t=o.firstElementChild;if((t==null?void 0:t.tagName)!=="path")throw new Error("no path element found in stage svg");t.setAttribute("d",U(e))}function ve(e){const{width:o,height:t,x:n,y:p}=ae(),i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.classList.add("driver-overlay","driver-overlay-animated"),i.setAttribute("viewBox",`${n} ${p} ${o} ${t}`),i.setAttribute("xmlSpace","preserve"),i.setAttribute("xmlnsXlink","http://www.w3.org/1999/xlink"),i.setAttribute("version","1.1"),i.setAttribute("preserveAspectRatio","xMinYMin slice"),i.style.fillRule="evenodd",i.style.clipRule="evenodd",i.style.strokeLinejoin="round",i.style.strokeMiterlimit="2",i.style.zIndex="10000",i.style.position="fixed",i.style.top=`${p}px`,i.style.left=`${n}px`,i.style.width=`${o}px`,i.style.height=`${t}px`;const h=document.createElementNS("http://www.w3.org/2000/svg","path");return h.setAttribute("d",U(e)),h.style.fill=a("overlayColor")||"rgb(0,0,0)",h.style.opacity=`${a("overlayOpacity")}`,h.style.pointerEvents="auto",h.style.cursor="auto",i.appendChild(h),i}function U(e){const o=window.innerWidth,t=window.innerHeight,n=a("stagePadding")||0,p=a("stageRadius")||0,i=e.width+n*2,h=e.height+n*2,w=Math.min(p,i/2,h/2),r=Math.floor(Math.max(w,0)),v=e.x-n+r,s=e.y-n,c=i-r*2,d=h-r*2;return`M${o},0L0,0L0,${t}L${o},${t}L${o},0Z M${v},${s} h${c} a${r},${r} 0 0 1 ${r},${r} v${d} a${r},${r} 0 0 1 -${r},${r} h-${c} a${r},${r} 0 0 1 -${r},-${r} v-${d} a${r},${r} 0 0 1 ${r},-${r} z`}function he(){const e=l("__overlaySvg");e&&e.remove()}function fe(){const e=document.getElementById("driver-dummy-element");if(e)return e;let o=document.createElement("div");return o.id="driver-dummy-element",o.style.width="0",o.style.height="0",o.style.pointerEvents="none",o.style.opacity="0",o.style.position="fixed",o.style.top="50%",o.style.left="50%",document.body.appendChild(o),o}function K(e){const{element:o}=e;let t=typeof o=="string"?document.querySelector(o):o;t||(t=fe()),we(t,e)}function ge(){const e=l("__activeElement"),o=l("__activeStep");e&&(G(e),pe(),ie(e,o))}function we(e,o){const n=Date.now(),p=l("__activeStep"),i=l("__activeElement")||e,h=!i||i===e,w=e.id==="driver-dummy-element",r=i.id==="driver-dummy-element",v=a("animate"),s=o.onHighlightStarted||a("onHighlightStarted"),c=(o==null?void 0:o.onHighlighted)||a("onHighlighted"),d=(p==null?void 0:p.onDeselected)||a("onDeselected"),m=a(),g=l();!h&&d&&d(r?void 0:i,p,{config:m,state:g}),s&&s(w?void 0:e,o,{config:m,state:g});const u=!h&&v;let f=!1;Ce(),x("previousStep",p),x("previousElement",i),x("activeStep",o),x("activeElement",e);const P=()=>{if(l("__transitionCallback")!==P)return;const b=Date.now()-n,y=400-b<=400/2;o.popover&&y&&!f&&u&&(X(e,o),f=!0),a("animate")&&b<400?de(b,400,i,e):(G(e),c&&c(w?void 0:e,o,{config:a(),state:l()}),x("__transitionCallback",void 0),x("__previousStep",p),x("__previousElement",i),x("__activeStep",o),x("__activeElement",e)),window.requestAnimationFrame(P)};x("__transitionCallback",P),window.requestAnimationFrame(P),Z(e),!u&&o.popover&&X(e,o),i.classList.remove("driver-active-element","driver-no-interaction"),i.removeAttribute("aria-haspopup"),i.removeAttribute("aria-expanded"),i.removeAttribute("aria-controls"),a("disableActiveInteraction")&&e.classList.add("driver-no-interaction"),e.classList.add("driver-active-element"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded","true"),e.setAttribute("aria-controls","driver-popover-content")}function me(){var e;(e=document.getElementById("driver-dummy-element"))==null||e.remove(),document.querySelectorAll(".driver-active-element").forEach(o=>{o.classList.remove("driver-active-element","driver-no-interaction"),o.removeAttribute("aria-haspopup"),o.removeAttribute("aria-expanded"),o.removeAttribute("aria-controls")})}function W(){const e=l("__resizeTimeout");e&&window.cancelAnimationFrame(e),x("__resizeTimeout",window.requestAnimationFrame(ge))}function ye(e){var r;if(!l("isInitialized")||!(e.key==="Tab"||e.keyCode===9))return;const n=l("__activeElement"),p=(r=l("popover"))==null?void 0:r.wrapper,i=Q([...p?[p]:[],...n?[n]:[]]),h=i[0],w=i[i.length-1];if(e.preventDefault(),e.shiftKey){const v=i[i.indexOf(document.activeElement)-1]||w;v==null||v.focus()}else{const v=i[i.indexOf(document.activeElement)+1]||h;v==null||v.focus()}}function ee(e){var t;((t=a("allowKeyboardControl"))==null||t)&&(e.key==="Escape"?L("escapePress"):e.key==="ArrowRight"?L("arrowRightPress"):e.key==="ArrowLeft"&&L("arrowLeftPress"))}function te(e,o,t){const n=(i,h)=>{const w=i.target;e.contains(w)&&((!t||t(w))&&(i.preventDefault(),i.stopPropagation(),i.stopImmediatePropagation()),h==null||h(i))};document.addEventListener("pointerdown",n,!0),document.addEventListener("mousedown",n,!0),document.addEventListener("pointerup",n,!0),document.addEventListener("mouseup",n,!0),document.addEventListener("click",i=>{n(i,o)},!0)}function xe(){window.addEventListener("keyup",ee,!1),window.addEventListener("keydown",ye,!1),window.addEventListener("resize",W),window.addEventListener("scroll",W)}function be(){window.removeEventListener("keyup",ee),window.removeEventListener("resize",W),window.removeEventListener("scroll",W)}function Ce(){const e=l("popover");e&&(e.wrapper.style.display="none")}function X(e,o){var C,y;let t=l("popover");t&&document.body.removeChild(t.wrapper),t=Se(),document.body.appendChild(t.wrapper);const{title:n,description:p,showButtons:i,disableButtons:h,showProgress:w,nextBtnText:r=a("nextBtnText")||"Next →",prevBtnText:v=a("prevBtnText")||"← Previous",progressText:s=a("progressText")||"{current} of {total}"}=o.popover||{};t.nextButton.innerHTML=r,t.previousButton.innerHTML=v,t.progress.innerHTML=s,n?(t.title.innerHTML=n,t.title.style.display="block"):t.title.style.display="none",p?(t.description.innerHTML=p,t.description.style.display="block"):t.description.style.display="none";const c=i||a("showButtons"),d=w||a("showProgress")||!1,m=(c==null?void 0:c.includes("next"))||(c==null?void 0:c.includes("previous"))||d;t.closeButton.style.display=c.includes("close")?"block":"none",m?(t.footer.style.display="flex",t.progress.style.display=d?"block":"none",t.nextButton.style.display=c.includes("next")?"block":"none",t.previousButton.style.display=c.includes("previous")?"block":"none"):t.footer.style.display="none";const g=h||a("disableButtons")||[];g!=null&&g.includes("next")&&(t.nextButton.disabled=!0,t.nextButton.classList.add("driver-popover-btn-disabled")),g!=null&&g.includes("previous")&&(t.previousButton.disabled=!0,t.previousButton.classList.add("driver-popover-btn-disabled")),g!=null&&g.includes("close")&&(t.closeButton.disabled=!0,t.closeButton.classList.add("driver-popover-btn-disabled"));const u=t.wrapper;u.style.display="block",u.style.left="",u.style.top="",u.style.bottom="",u.style.right="",u.id="driver-popover-content",u.setAttribute("role","dialog"),u.setAttribute("aria-labelledby","driver-popover-title"),u.setAttribute("aria-describedby","driver-popover-description");const f=t.arrow;f.className="driver-popover-arrow";const P=((C=o.popover)==null?void 0:C.popoverClass)||a("popoverClass")||"";u.className=`driver-popover ${P}`.trim(),te(t.wrapper,k=>{var H,B,M;const T=k.target,E=((H=o.popover)==null?void 0:H.onNextClick)||a("onNextClick"),A=((B=o.popover)==null?void 0:B.onPrevClick)||a("onPrevClick"),$=((M=o.popover)==null?void 0:M.onCloseClick)||a("onCloseClick");if(T.classList.contains("driver-popover-next-btn"))return E?E(e,o,{config:a(),state:l()}):L("nextClick");if(T.classList.contains("driver-popover-prev-btn"))return A?A(e,o,{config:a(),state:l()}):L("prevClick");if(T.classList.contains("driver-popover-close-btn"))return $?$(e,o,{config:a(),state:l()}):L("closeClick")},k=>!(t!=null&&t.description.contains(k))&&!(t!=null&&t.title.contains(k))&&typeof k.className=="string"&&k.className.includes("driver-popover")),x("popover",t);const S=((y=o.popover)==null?void 0:y.onPopoverRender)||a("onPopoverRender");S&&S(t,{config:a(),state:l()}),ie(e,o),Z(u);const _=e.classList.contains("driver-dummy-element"),b=Q([u,..._?[]:[e]]);b.length>0&&b[0].focus()}function oe(){const e=l("popover");if(!(e!=null&&e.wrapper))return;const o=e.wrapper.getBoundingClientRect(),t=a("stagePadding")||0,n=a("popoverOffset")||0;return{width:o.width+t+n,height:o.height+t+n,realWidth:o.width,realHeight:o.height}}function Y(e,o){const{elementDimensions:t,popoverDimensions:n,popoverPadding:p,popoverArrowDimensions:i}=o;return e==="start"?Math.max(Math.min(t.top-p,window.innerHeight-n.realHeight-i.width),i.width):e==="end"?Math.max(Math.min(t.top-(n==null?void 0:n.realHeight)+t.height+p,window.innerHeight-(n==null?void 0:n.realHeight)-i.width),i.width):e==="center"?Math.max(Math.min(t.top+t.height/2-(n==null?void 0:n.realHeight)/2,window.innerHeight-(n==null?void 0:n.realHeight)-i.width),i.width):0}function j(e,o){const{elementDimensions:t,popoverDimensions:n,popoverPadding:p,popoverArrowDimensions:i}=o;return e==="start"?Math.max(Math.min(t.left-p,window.innerWidth-n.realWidth-i.width),i.width):e==="end"?Math.max(Math.min(t.left-(n==null?void 0:n.realWidth)+t.width+p,window.innerWidth-(n==null?void 0:n.realWidth)-i.width),i.width):e==="center"?Math.max(Math.min(t.left+t.width/2-(n==null?void 0:n.realWidth)/2,window.innerWidth-(n==null?void 0:n.realWidth)-i.width),i.width):0}function ie(e,o){const t=l("popover");if(!t)return;const{align:n="start",side:p="left"}=(o==null?void 0:o.popover)||{},i=n,h=e.id==="driver-dummy-element"?"over":p,w=a("stagePadding")||0,r=oe(),v=t.arrow.getBoundingClientRect(),s=e.getBoundingClientRect(),c=s.top-r.height;let d=c>=0;const m=window.innerHeight-(s.bottom+r.height);let g=m>=0;const u=s.left-r.width;let f=u>=0;const P=window.innerWidth-(s.right+r.width);let S=P>=0;const _=!d&&!g&&!f&&!S;let b=h;if(h==="top"&&d?S=f=g=!1:h==="bottom"&&g?S=f=d=!1:h==="left"&&f?S=d=g=!1:h==="right"&&S&&(f=d=g=!1),h==="over"){const C=window.innerWidth/2-r.realWidth/2,y=window.innerHeight/2-r.realHeight/2;t.wrapper.style.left=`${C}px`,t.wrapper.style.right="auto",t.wrapper.style.top=`${y}px`,t.wrapper.style.bottom="auto"}else if(_){const C=window.innerWidth/2-(r==null?void 0:r.realWidth)/2,y=10;t.wrapper.style.left=`${C}px`,t.wrapper.style.right="auto",t.wrapper.style.bottom=`${y}px`,t.wrapper.style.top="auto"}else if(f){const C=Math.min(u,window.innerWidth-(r==null?void 0:r.realWidth)-v.width),y=Y(i,{elementDimensions:s,popoverDimensions:r,popoverPadding:w,popoverArrowDimensions:v});t.wrapper.style.left=`${C}px`,t.wrapper.style.top=`${y}px`,t.wrapper.style.bottom="auto",t.wrapper.style.right="auto",b="left"}else if(S){const C=Math.min(P,window.innerWidth-(r==null?void 0:r.realWidth)-v.width),y=Y(i,{elementDimensions:s,popoverDimensions:r,popoverPadding:w,popoverArrowDimensions:v});t.wrapper.style.right=`${C}px`,t.wrapper.style.top=`${y}px`,t.wrapper.style.bottom="auto",t.wrapper.style.left="auto",b="right"}else if(d){const C=Math.min(c,window.innerHeight-r.realHeight-v.width);let y=j(i,{elementDimensions:s,popoverDimensions:r,popoverPadding:w,popoverArrowDimensions:v});t.wrapper.style.top=`${C}px`,t.wrapper.style.left=`${y}px`,t.wrapper.style.bottom="auto",t.wrapper.style.right="auto",b="top"}else if(g){const C=Math.min(m,window.innerHeight-(r==null?void 0:r.realHeight)-v.width);let y=j(i,{elementDimensions:s,popoverDimensions:r,popoverPadding:w,popoverArrowDimensions:v});t.wrapper.style.left=`${y}px`,t.wrapper.style.bottom=`${C}px`,t.wrapper.style.top="auto",t.wrapper.style.right="auto",b="bottom"}_?t.arrow.classList.add("driver-popover-arrow-none"):Pe(i,b,e)}function Pe(e,o,t){const n=l("popover");if(!n)return;const p=t.getBoundingClientRect(),i=oe(),h=n.arrow,w=i.width,r=window.innerWidth,v=p.width,s=p.left,c=i.height,d=window.innerHeight,m=p.top,g=p.height;h.className="driver-popover-arrow";let u=o,f=e;o==="top"?(s+v<=0?(u="right",f="end"):s+v-w<=0&&(u="top",f="start"),s>=r?(u="left",f="end"):s+w>=r&&(u="top",f="end")):o==="bottom"?(s+v<=0?(u="right",f="start"):s+v-w<=0&&(u="bottom",f="start"),s>=r?(u="left",f="start"):s+w>=r&&(u="bottom",f="end")):o==="left"?(m+g<=0?(u="bottom",f="end"):m+g-c<=0&&(u="left",f="start"),m>=d?(u="top",f="end"):m+c>=d&&(u="left",f="end")):o==="right"&&(m+g<=0?(u="bottom",f="start"):m+g-c<=0&&(u="right",f="start"),m>=d?(u="top",f="start"):m+c>=d&&(u="right",f="end")),u?(h.classList.add(`driver-popover-arrow-side-${u}`),h.classList.add(`driver-popover-arrow-align-${f}`)):h.classList.add("driver-popover-arrow-none")}function Se(){const e=document.createElement("div");e.classList.add("driver-popover");const o=document.createElement("div");o.classList.add("driver-popover-arrow");const t=document.createElement("header");t.id="driver-popover-title",t.classList.add("driver-popover-title"),t.style.display="none",t.innerText="Popover Title";const n=document.createElement("div");n.id="driver-popover-description",n.classList.add("driver-popover-description"),n.style.display="none",n.innerText="Popover description is here";const p=document.createElement("button");p.type="button",p.classList.add("driver-popover-close-btn"),p.setAttribute("aria-label","Close"),p.innerHTML="×";const i=document.createElement("footer");i.classList.add("driver-popover-footer");const h=document.createElement("span");h.classList.add("driver-popover-progress-text"),h.innerText="";const w=document.createElement("span");w.classList.add("driver-popover-navigation-btns");const r=document.createElement("button");r.type="button",r.classList.add("driver-popover-prev-btn"),r.innerHTML="← Previous";const v=document.createElement("button");return v.type="button",v.classList.add("driver-popover-next-btn"),v.innerHTML="Next →",w.appendChild(r),w.appendChild(v),i.appendChild(h),i.appendChild(w),e.appendChild(p),e.appendChild(o),e.appendChild(t),e.appendChild(n),e.appendChild(i),{wrapper:e,arrow:o,title:t,description:n,footer:i,previousButton:r,nextButton:v,closeButton:p,footerButtons:w,progress:h}}function ke(){var o;const e=l("popover");e&&((o=e.wrapper.parentElement)==null||o.removeChild(e.wrapper))}function _e(e={}){D(e);function o(){a("allowClose")&&v()}function t(){const s=l("activeIndex"),c=a("steps")||[];if(typeof s=="undefined")return;const d=s+1;c[d]?r(d):v()}function n(){const s=l("activeIndex"),c=a("steps")||[];if(typeof s=="undefined")return;const d=s-1;c[d]?r(d):v()}function p(s){(a("steps")||[])[s]?r(s):v()}function i(){var f;if(l("__transitionCallback"))return;const c=l("activeIndex"),d=l("__activeStep"),m=l("__activeElement");if(typeof c=="undefined"||typeof d=="undefined"||typeof l("activeIndex")=="undefined")return;const u=((f=d.popover)==null?void 0:f.onPrevClick)||a("onPrevClick");if(u)return u(m,d,{config:a(),state:l()});n()}function h(){var u;if(l("__transitionCallback"))return;const c=l("activeIndex"),d=l("__activeStep"),m=l("__activeElement");if(typeof c=="undefined"||typeof d=="undefined")return;const g=((u=d.popover)==null?void 0:u.onNextClick)||a("onNextClick");if(g)return g(m,d,{config:a(),state:l()});t()}function w(){l("isInitialized")||(x("isInitialized",!0),document.body.classList.add("driver-active",a("animate")?"driver-fade":"driver-simple"),xe(),N("overlayClick",o),N("escapePress",o),N("arrowLeftPress",i),N("arrowRightPress",h))}function r(s=0){var E,A,$,H,B,M,z,q;const c=a("steps");if(!c){console.error("No steps to drive through"),v();return}if(!c[s]){v();return}x("__activeOnDestroyed",document.activeElement),x("activeIndex",s);const d=c[s],m=c[s+1],g=c[s-1],u=((E=d.popover)==null?void 0:E.doneBtnText)||a("doneBtnText")||"Done",f=a("allowClose"),P=typeof((A=d.popover)==null?void 0:A.showProgress)!="undefined"?($=d.popover)==null?void 0:$.showProgress:a("showProgress"),_=(((H=d.popover)==null?void 0:H.progressText)||a("progressText")||"{{current}} of {{total}}").replace("{{current}}",`${s+1}`).replace("{{total}}",`${c.length}`),b=((B=d.popover)==null?void 0:B.showButtons)||a("showButtons"),C=["next","previous",...f?["close"]:[]].filter(ne=>!(b!=null&&b.length)||b.includes(ne)),y=((M=d.popover)==null?void 0:M.onNextClick)||a("onNextClick"),k=((z=d.popover)==null?void 0:z.onPrevClick)||a("onPrevClick"),T=((q=d.popover)==null?void 0:q.onCloseClick)||a("onCloseClick");K({...d,popover:{showButtons:C,nextBtnText:m?void 0:u,disableButtons:[...g?[]:["previous"]],showProgress:P,progressText:_,onNextClick:y||(()=>{m?r(s+1):v()}),onPrevClick:k||(()=>{r(s-1)}),onCloseClick:T||(()=>{v()}),...(d==null?void 0:d.popover)||{}}})}function v(s=!0){const c=l("__activeElement"),d=l("__activeStep"),m=l("__activeOnDestroyed"),g=a("onDestroyStarted");if(s&&g){const P=!c||(c==null?void 0:c.id)==="driver-dummy-element";g(P?void 0:c,d,{config:a(),state:l()});return}const u=(d==null?void 0:d.onDeselected)||a("onDeselected"),f=a("onDestroyed");if(document.body.classList.remove("driver-active","driver-fade","driver-simple"),be(),ke(),me(),he(),le(),V(),c&&d){const P=c.id==="driver-dummy-element";u&&u(P?void 0:c,d,{config:a(),state:l()}),f&&f(P?void 0:c,d,{config:a(),state:l()})}m&&m.focus()}return{isActive:()=>l("isInitialized")||!1,refresh:W,drive:(s=0)=>{w(),r(s)},setConfig:D,setSteps:s=>{V(),D({...a(),steps:s})},getConfig:a,getState:l,getActiveIndex:()=>l("activeIndex"),isFirstStep:()=>l("activeIndex")===0,isLastStep:()=>{const s=a("steps")||[],c=l("activeIndex");return c!==void 0&&c===s.length-1},getActiveStep:()=>l("activeStep"),getActiveElement:()=>l("activeElement"),getPreviousElement:()=>l("previousElement"),getPreviousStep:()=>l("previousStep"),moveNext:t,movePrevious:n,moveTo:p,hasNextStep:()=>{const s=a("steps")||[],c=l("activeIndex");return c!==void 0&&s[c+1]},hasPreviousStep:()=>{const s=a("steps")||[],c=l("activeIndex");return c!==void 0&&s[c-1]},highlight:s=>{w(),K({...s,popover:s.popover?{showButtons:[],showProgress:!1,progressText:"",...s.popover}:void 0})},destroy:()=>{v(!1)}}}exports.driver=_e;