v-onboarding 1.1.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/style.css +1 -1
- package/dist/v-onboarding.es.js +7 -2
- package/dist/v-onboarding.umd.js +1 -1
- package/package.json +1 -1
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.v-onboarding-item{width:20rem;padding:1rem;background-color:#fff;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d;border-radius:.375rem}.v-onboarding-item__header{display:flex;justify-content:space-between}.v-onboarding-item__header-title{font-size:1.25rem;font-weight:500;line-height:1.5}.v-onboarding-item__header-close{display:inline-flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem;flex-shrink:0;border-radius:50%}.v-onboarding-item__header-close:hover{background:rgba(0,0,0,.1)}.v-onboarding-item__description{font-size:.875rem;color:#71717a;margin-top:.5rem}.v-onboarding-item__actions{display:flex;margin-top:1rem}.v-onboarding-item__actions>:not([hidden])~:not([hidden]){margin-left:.5rem}.v-onboarding-item__actions button{display:inline-flex;flex:1;align-items:center;justify-content:center;padding:.5rem 1.25rem;border-width:1px;border-style:solid;font-size:1rem;font-weight:500;box-shadow:0 1px 2px #0000000d;border-radius:9999px;background-color:transparent;background-image:none;cursor:pointer}.v-onboarding-item__actions button.v-onboarding-btn-primary{border-color:transparent;color:#fff;background-color:#4f46e5}.v-onboarding-item__actions button.v-onboarding-btn-primary:hover{background-color:#4338ca}.v-onboarding-item__actions button.v-onboarding-btn-secondary{border-color:#d4d4d8;color:#3f3f46}.v-onboarding-item__actions button.v-onboarding-btn-secondary:hover{background-color:#fafafa}
|
|
1
|
+
.v-onboarding-item{width:20rem;padding:1rem;background-color:#fff;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d;border-radius:.375rem}.v-onboarding-item__header{display:flex;justify-content:space-between}.v-onboarding-item__header-title{font-size:1.25rem;font-weight:500;line-height:1.5}.v-onboarding-item__header-close{display:inline-flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem;flex-shrink:0;border-radius:50%}.v-onboarding-item__header-close:hover{background:rgba(0,0,0,.1)}.v-onboarding-item__description{font-size:.875rem;color:#71717a;margin-top:.5rem}.v-onboarding-item__actions{display:flex;margin-top:1rem}.v-onboarding-item__actions>:not([hidden])~:not([hidden]){margin-left:.5rem}.v-onboarding-item__actions button{display:inline-flex;flex:1;align-items:center;justify-content:center;padding:.5rem 1.25rem;border-width:1px;border-style:solid;font-size:1rem;font-weight:500;box-shadow:0 1px 2px #0000000d;border-radius:9999px;background-color:transparent;background-image:none;cursor:pointer}.v-onboarding-item__actions button.v-onboarding-btn-primary{border-color:transparent;color:#fff;background-color:#4f46e5}.v-onboarding-item__actions button.v-onboarding-btn-primary:hover{background-color:#4338ca}.v-onboarding-item__actions button.v-onboarding-btn-secondary{border-color:#d4d4d8;color:#3f3f46}.v-onboarding-item__actions button.v-onboarding-btn-secondary:hover{background-color:#fafafa}[data-v-onboarding-wrapper] [data-popper-arrow]:before{content:"";background:var(--v-onboarding-step-arrow-background, white);top:0;left:0;transition:transform .2s ease-out,visibility .2s ease-out;visibility:visible;transform:translate(0) rotate(45deg);transform-origin:center;width:var(--v-onboarding-step-arrow-size, 10px);height:var(--v-onboarding-step-arrow-size, 10px);position:absolute;z-index:-1}[data-v-onboarding-wrapper] [data-popper-placement^=top]>[data-popper-arrow]{bottom:5px}[data-v-onboarding-wrapper] [data-popper-placement^=right]>[data-popper-arrow]{left:-4px}[data-v-onboarding-wrapper] [data-popper-placement^=bottom]>[data-popper-arrow]{top:-4px}[data-v-onboarding-wrapper] [data-popper-placement^=left]>[data-popper-arrow]{right:-4px}
|
package/dist/v-onboarding.es.js
CHANGED
|
@@ -2129,6 +2129,7 @@ const _hoisted_9 = {
|
|
|
2129
2129
|
class: "v-onboarding-item__description"
|
|
2130
2130
|
};
|
|
2131
2131
|
const _hoisted_10 = { class: "v-onboarding-item__actions" };
|
|
2132
|
+
const _hoisted_11 = /* @__PURE__ */ createElementVNode("div", { "data-popper-arrow": "" }, null, -1);
|
|
2132
2133
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2133
2134
|
return withDirectives((openBlock(), createElementBlock("div", null, [
|
|
2134
2135
|
(openBlock(), createElementBlock("svg", _hoisted_1$1, [
|
|
@@ -2159,7 +2160,8 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2159
2160
|
}, toDisplayString(_ctx.isLast ? "Finish" : "Next"), 1)
|
|
2160
2161
|
])
|
|
2161
2162
|
])
|
|
2162
|
-
]) : createCommentVNode("", true)
|
|
2163
|
+
]) : createCommentVNode("", true),
|
|
2164
|
+
_hoisted_11
|
|
2163
2165
|
], 512)
|
|
2164
2166
|
], 512)), [
|
|
2165
2167
|
[vShow, _ctx.show]
|
|
@@ -2249,7 +2251,10 @@ const _sfc_main = defineComponent({
|
|
|
2249
2251
|
};
|
|
2250
2252
|
}
|
|
2251
2253
|
});
|
|
2252
|
-
const _hoisted_1 = {
|
|
2254
|
+
const _hoisted_1 = {
|
|
2255
|
+
key: 0,
|
|
2256
|
+
"data-v-onboarding-wrapper": ""
|
|
2257
|
+
};
|
|
2253
2258
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2254
2259
|
const _component_VOnboardingStep = resolveComponent("VOnboardingStep");
|
|
2255
2260
|
return !_ctx.isFinished ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
package/dist/v-onboarding.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(it,d){typeof exports=="object"&&typeof module!="undefined"?d(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],d):(it=typeof globalThis!="undefined"?globalThis:it||self,d(it["v-onboarding"]={},it.Vue))})(this,function(it,d){"use strict";function ce(t){return typeof t=="string"?document.querySelector(t):typeof t=="function"?t():null}function hr(){const t=d.ref(""),e=d.ref(null),n=()=>{s(e.value)},s=async a=>{if(!a)return;const{innerWidth:c,innerHeight:f}=window,{left:u,top:l,width:g,height:p}=a.getBoundingClientRect();t.value=`M${c},${f}H0V0H${c}V${f}ZM${u},${l}a0,0,0,0,0-0,0V${l+p}a0,0,0,0,0,0,0H${u+g}a0,0,0,0,0,0-0V${l}a0,0,0,0,0-0-0Z`,e.value=a,window.addEventListener("scroll",n),window.addEventListener("resize",n)};return d.onUnmounted(()=>{window.removeEventListener("scroll",n),window.removeEventListener("resize",n)}),{path:t,updatePath:s}}var H="top",G="bottom",X="right",z="left",fe="auto",Dt=[H,G,X,z],Ot="start",Lt="end",gr="clippingParents",Be="viewport",Nt="popper",mr="reference",De=Dt.reduce(function(t,e){return t.concat([e+"-"+Ot,e+"-"+Lt])},[]),Le=[].concat(Dt,[fe]).reduce(function(t,e){return t.concat([e,e+"-"+Ot,e+"-"+Lt])},[]),yr="beforeRead",br="read",wr="afterRead",Or="beforeMain",xr="main",_r="afterMain",Tr="beforeWrite",Sr="write",Er="afterWrite",Ar=[yr,br,wr,Or,xr,_r,Tr,Sr,Er];function et(t){return t?(t.nodeName||"").toLowerCase():null}function Q(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function xt(t){var e=Q(t).Element;return t instanceof e||t instanceof Element}function Y(t){var e=Q(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function le(t){if(typeof ShadowRoot=="undefined")return!1;var e=Q(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Cr(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var s=e.styles[n]||{},a=e.attributes[n]||{},c=e.elements[n];!Y(c)||!et(c)||(Object.assign(c.style,s),Object.keys(a).forEach(function(f){var u=a[f];u===!1?c.removeAttribute(f):c.setAttribute(f,u===!0?"":u)}))})}function jr(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(s){var a=e.elements[s],c=e.attributes[s]||{},f=Object.keys(e.styles.hasOwnProperty(s)?e.styles[s]:n[s]),u=f.reduce(function(l,g){return l[g]="",l},{});!Y(a)||!et(a)||(Object.assign(a.style,u),Object.keys(c).forEach(function(l){a.removeAttribute(l)}))})}}var Pr={name:"applyStyles",enabled:!0,phase:"write",fn:Cr,effect:jr,requires:["computeStyles"]};function rt(t){return t.split("-")[0]}var ut=Math.max,qt=Math.min,_t=Math.round;function Tt(t,e){e===void 0&&(e=!1);var n=t.getBoundingClientRect(),s=1,a=1;if(Y(t)&&e){var c=t.offsetHeight,f=t.offsetWidth;f>0&&(s=_t(n.width)/f||1),c>0&&(a=_t(n.height)/c||1)}return{width:n.width/s,height:n.height/a,top:n.top/a,right:n.right/s,bottom:n.bottom/a,left:n.left/s,x:n.left/s,y:n.top/a}}function ue(t){var e=Tt(t),n=t.offsetWidth,s=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-s)<=1&&(s=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:s}}function Ne(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&le(n)){var s=e;do{if(s&&t.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function ot(t){return Q(t).getComputedStyle(t)}function $r(t){return["table","td","th"].indexOf(et(t))>=0}function ft(t){return((xt(t)?t.ownerDocument:t.document)||window.document).documentElement}function Gt(t){return et(t)==="html"?t:t.assignedSlot||t.parentNode||(le(t)?t.host:null)||ft(t)}function Ve(t){return!Y(t)||ot(t).position==="fixed"?null:t.offsetParent}function Br(t){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Y(t)){var s=ot(t);if(s.position==="fixed")return null}var a=Gt(t);for(le(a)&&(a=a.host);Y(a)&&["html","body"].indexOf(et(a))<0;){var c=ot(a);if(c.transform!=="none"||c.perspective!=="none"||c.contain==="paint"||["transform","perspective"].indexOf(c.willChange)!==-1||e&&c.willChange==="filter"||e&&c.filter&&c.filter!=="none")return a;a=a.parentNode}return null}function Vt(t){for(var e=Q(t),n=Ve(t);n&&$r(n)&&ot(n).position==="static";)n=Ve(n);return n&&(et(n)==="html"||et(n)==="body"&&ot(n).position==="static")?e:n||Br(t)||e}function pe(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Mt(t,e,n){return ut(t,qt(e,n))}function Dr(t,e,n){var s=Mt(t,e,n);return s>n?n:s}function Me(){return{top:0,right:0,bottom:0,left:0}}function Fe(t){return Object.assign({},Me(),t)}function Ie(t,e){return e.reduce(function(n,s){return n[s]=t,n},{})}var Lr=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,Fe(typeof e!="number"?e:Ie(e,Dt))};function Nr(t){var e,n=t.state,s=t.name,a=t.options,c=n.elements.arrow,f=n.modifiersData.popperOffsets,u=rt(n.placement),l=pe(u),g=[z,X].indexOf(u)>=0,p=g?"height":"width";if(!(!c||!f)){var O=Lr(a.padding,n),P=ue(c),m=l==="y"?H:z,E=l==="y"?G:X,b=n.rects.reference[p]+n.rects.reference[l]-f[l]-n.rects.popper[p],x=f[l]-n.rects.reference[l],$=Vt(c),j=$?l==="y"?$.clientHeight||0:$.clientWidth||0:0,y=b/2-x/2,h=O[m],w=j-P[p]-O[E],S=j/2-P[p]/2+y,A=Mt(h,S,w),D=l;n.modifiersData[s]=(e={},e[D]=A,e.centerOffset=A-S,e)}}function Vr(t){var e=t.state,n=t.options,s=n.element,a=s===void 0?"[data-popper-arrow]":s;a!=null&&(typeof a=="string"&&(a=e.elements.popper.querySelector(a),!a)||!Ne(e.elements.popper,a)||(e.elements.arrow=a))}var Mr={name:"arrow",enabled:!0,phase:"main",fn:Nr,effect:Vr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function St(t){return t.split("-")[1]}var Fr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ir(t){var e=t.x,n=t.y,s=window,a=s.devicePixelRatio||1;return{x:_t(e*a)/a||0,y:_t(n*a)/a||0}}function Re(t){var e,n=t.popper,s=t.popperRect,a=t.placement,c=t.variation,f=t.offsets,u=t.position,l=t.gpuAcceleration,g=t.adaptive,p=t.roundOffsets,O=t.isFixed,P=f.x,m=P===void 0?0:P,E=f.y,b=E===void 0?0:E,x=typeof p=="function"?p({x:m,y:b}):{x:m,y:b};m=x.x,b=x.y;var $=f.hasOwnProperty("x"),j=f.hasOwnProperty("y"),y=z,h=H,w=window;if(g){var S=Vt(n),A="clientHeight",D="clientWidth";if(S===Q(n)&&(S=ft(n),ot(S).position!=="static"&&u==="absolute"&&(A="scrollHeight",D="scrollWidth")),S=S,a===H||(a===z||a===X)&&c===Lt){h=G;var M=O&&S===w&&w.visualViewport?w.visualViewport.height:S[A];b-=M-s.height,b*=l?1:-1}if(a===z||(a===H||a===G)&&c===Lt){y=X;var V=O&&S===w&&w.visualViewport?w.visualViewport.width:S[D];m-=V-s.width,m*=l?1:-1}}var F=Object.assign({position:u},g&&Fr),W=p===!0?Ir({x:m,y:b}):{x:m,y:b};if(m=W.x,b=W.y,l){var I;return Object.assign({},F,(I={},I[h]=j?"0":"",I[y]=$?"0":"",I.transform=(w.devicePixelRatio||1)<=1?"translate("+m+"px, "+b+"px)":"translate3d("+m+"px, "+b+"px, 0)",I))}return Object.assign({},F,(e={},e[h]=j?b+"px":"",e[y]=$?m+"px":"",e.transform="",e))}function Rr(t){var e=t.state,n=t.options,s=n.gpuAcceleration,a=s===void 0?!0:s,c=n.adaptive,f=c===void 0?!0:c,u=n.roundOffsets,l=u===void 0?!0:u,g={placement:rt(e.placement),variation:St(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:a,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Re(Object.assign({},g,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:f,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Re(Object.assign({},g,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var Hr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Rr,data:{}},Xt={passive:!0};function zr(t){var e=t.state,n=t.instance,s=t.options,a=s.scroll,c=a===void 0?!0:a,f=s.resize,u=f===void 0?!0:f,l=Q(e.elements.popper),g=[].concat(e.scrollParents.reference,e.scrollParents.popper);return c&&g.forEach(function(p){p.addEventListener("scroll",n.update,Xt)}),u&&l.addEventListener("resize",n.update,Xt),function(){c&&g.forEach(function(p){p.removeEventListener("scroll",n.update,Xt)}),u&&l.removeEventListener("resize",n.update,Xt)}}var Wr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:zr,data:{}},kr={left:"right",right:"left",bottom:"top",top:"bottom"};function Yt(t){return t.replace(/left|right|bottom|top/g,function(e){return kr[e]})}var Ur={start:"end",end:"start"};function He(t){return t.replace(/start|end/g,function(e){return Ur[e]})}function de(t){var e=Q(t),n=e.pageXOffset,s=e.pageYOffset;return{scrollLeft:n,scrollTop:s}}function ve(t){return Tt(ft(t)).left+de(t).scrollLeft}function qr(t){var e=Q(t),n=ft(t),s=e.visualViewport,a=n.clientWidth,c=n.clientHeight,f=0,u=0;return s&&(a=s.width,c=s.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(f=s.offsetLeft,u=s.offsetTop)),{width:a,height:c,x:f+ve(t),y:u}}function Gr(t){var e,n=ft(t),s=de(t),a=(e=t.ownerDocument)==null?void 0:e.body,c=ut(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),f=ut(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),u=-s.scrollLeft+ve(t),l=-s.scrollTop;return ot(a||n).direction==="rtl"&&(u+=ut(n.clientWidth,a?a.clientWidth:0)-c),{width:c,height:f,x:u,y:l}}function he(t){var e=ot(t),n=e.overflow,s=e.overflowX,a=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+s)}function ze(t){return["html","body","#document"].indexOf(et(t))>=0?t.ownerDocument.body:Y(t)&&he(t)?t:ze(Gt(t))}function Ft(t,e){var n;e===void 0&&(e=[]);var s=ze(t),a=s===((n=t.ownerDocument)==null?void 0:n.body),c=Q(s),f=a?[c].concat(c.visualViewport||[],he(s)?s:[]):s,u=e.concat(f);return a?u:u.concat(Ft(Gt(f)))}function ge(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Xr(t){var e=Tt(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}function We(t,e){return e===Be?ge(qr(t)):xt(e)?Xr(e):ge(Gr(ft(t)))}function Yr(t){var e=Ft(Gt(t)),n=["absolute","fixed"].indexOf(ot(t).position)>=0,s=n&&Y(t)?Vt(t):t;return xt(s)?e.filter(function(a){return xt(a)&&Ne(a,s)&&et(a)!=="body"}):[]}function Kr(t,e,n){var s=e==="clippingParents"?Yr(t):[].concat(e),a=[].concat(s,[n]),c=a[0],f=a.reduce(function(u,l){var g=We(t,l);return u.top=ut(g.top,u.top),u.right=qt(g.right,u.right),u.bottom=qt(g.bottom,u.bottom),u.left=ut(g.left,u.left),u},We(t,c));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}function ke(t){var e=t.reference,n=t.element,s=t.placement,a=s?rt(s):null,c=s?St(s):null,f=e.x+e.width/2-n.width/2,u=e.y+e.height/2-n.height/2,l;switch(a){case H:l={x:f,y:e.y-n.height};break;case G:l={x:f,y:e.y+e.height};break;case X:l={x:e.x+e.width,y:u};break;case z:l={x:e.x-n.width,y:u};break;default:l={x:e.x,y:e.y}}var g=a?pe(a):null;if(g!=null){var p=g==="y"?"height":"width";switch(c){case Ot:l[g]=l[g]-(e[p]/2-n[p]/2);break;case Lt:l[g]=l[g]+(e[p]/2-n[p]/2);break}}return l}function It(t,e){e===void 0&&(e={});var n=e,s=n.placement,a=s===void 0?t.placement:s,c=n.boundary,f=c===void 0?gr:c,u=n.rootBoundary,l=u===void 0?Be:u,g=n.elementContext,p=g===void 0?Nt:g,O=n.altBoundary,P=O===void 0?!1:O,m=n.padding,E=m===void 0?0:m,b=Fe(typeof E!="number"?E:Ie(E,Dt)),x=p===Nt?mr:Nt,$=t.rects.popper,j=t.elements[P?x:p],y=Kr(xt(j)?j:j.contextElement||ft(t.elements.popper),f,l),h=Tt(t.elements.reference),w=ke({reference:h,element:$,strategy:"absolute",placement:a}),S=ge(Object.assign({},$,w)),A=p===Nt?S:h,D={top:y.top-A.top+b.top,bottom:A.bottom-y.bottom+b.bottom,left:y.left-A.left+b.left,right:A.right-y.right+b.right},M=t.modifiersData.offset;if(p===Nt&&M){var V=M[a];Object.keys(D).forEach(function(F){var W=[X,G].indexOf(F)>=0?1:-1,I=[H,G].indexOf(F)>=0?"y":"x";D[F]+=V[I]*W})}return D}function Zr(t,e){e===void 0&&(e={});var n=e,s=n.placement,a=n.boundary,c=n.rootBoundary,f=n.padding,u=n.flipVariations,l=n.allowedAutoPlacements,g=l===void 0?Le:l,p=St(s),O=p?u?De:De.filter(function(E){return St(E)===p}):Dt,P=O.filter(function(E){return g.indexOf(E)>=0});P.length===0&&(P=O);var m=P.reduce(function(E,b){return E[b]=It(t,{placement:b,boundary:a,rootBoundary:c,padding:f})[rt(b)],E},{});return Object.keys(m).sort(function(E,b){return m[E]-m[b]})}function Jr(t){if(rt(t)===fe)return[];var e=Yt(t);return[He(t),e,He(e)]}function Qr(t){var e=t.state,n=t.options,s=t.name;if(!e.modifiersData[s]._skip){for(var a=n.mainAxis,c=a===void 0?!0:a,f=n.altAxis,u=f===void 0?!0:f,l=n.fallbackPlacements,g=n.padding,p=n.boundary,O=n.rootBoundary,P=n.altBoundary,m=n.flipVariations,E=m===void 0?!0:m,b=n.allowedAutoPlacements,x=e.options.placement,$=rt(x),j=$===x,y=l||(j||!E?[Yt(x)]:Jr(x)),h=[x].concat(y).reduce(function(st,nt){return st.concat(rt(nt)===fe?Zr(e,{placement:nt,boundary:p,rootBoundary:O,padding:g,flipVariations:E,allowedAutoPlacements:b}):nt)},[]),w=e.rects.reference,S=e.rects.popper,A=new Map,D=!0,M=h[0],V=0;V<h.length;V++){var F=h[V],W=rt(F),I=St(F)===Ot,pt=[H,G].indexOf(W)>=0,dt=pt?"width":"height",R=It(e,{placement:F,boundary:p,rootBoundary:O,altBoundary:P,padding:g}),k=pt?I?X:z:I?G:H;w[dt]>S[dt]&&(k=Yt(k));var Et=Yt(k),at=[];if(c&&at.push(R[W]<=0),u&&at.push(R[k]<=0,R[Et]<=0),at.every(function(st){return st})){M=F,D=!1;break}A.set(F,at)}if(D)for(var At=E?3:1,Rt=function(nt){var tt=h.find(function(ht){var U=A.get(ht);if(U)return U.slice(0,nt).every(function(Ct){return Ct})});if(tt)return M=tt,"break"},vt=At;vt>0;vt--){var C=Rt(vt);if(C==="break")break}e.placement!==M&&(e.modifiersData[s]._skip=!0,e.placement=M,e.reset=!0)}}var tn={name:"flip",enabled:!0,phase:"main",fn:Qr,requiresIfExists:["offset"],data:{_skip:!1}};function Ue(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function qe(t){return[H,X,G,z].some(function(e){return t[e]>=0})}function en(t){var e=t.state,n=t.name,s=e.rects.reference,a=e.rects.popper,c=e.modifiersData.preventOverflow,f=It(e,{elementContext:"reference"}),u=It(e,{altBoundary:!0}),l=Ue(f,s),g=Ue(u,a,c),p=qe(l),O=qe(g);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:g,isReferenceHidden:p,hasPopperEscaped:O},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":O})}var rn={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:en};function nn(t,e,n){var s=rt(t),a=[z,H].indexOf(s)>=0?-1:1,c=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,f=c[0],u=c[1];return f=f||0,u=(u||0)*a,[z,X].indexOf(s)>=0?{x:u,y:f}:{x:f,y:u}}function on(t){var e=t.state,n=t.options,s=t.name,a=n.offset,c=a===void 0?[0,0]:a,f=Le.reduce(function(p,O){return p[O]=nn(O,e.rects,c),p},{}),u=f[e.placement],l=u.x,g=u.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=g),e.modifiersData[s]=f}var an={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:on};function sn(t){var e=t.state,n=t.name;e.modifiersData[n]=ke({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var cn={name:"popperOffsets",enabled:!0,phase:"read",fn:sn,data:{}};function fn(t){return t==="x"?"y":"x"}function ln(t){var e=t.state,n=t.options,s=t.name,a=n.mainAxis,c=a===void 0?!0:a,f=n.altAxis,u=f===void 0?!1:f,l=n.boundary,g=n.rootBoundary,p=n.altBoundary,O=n.padding,P=n.tether,m=P===void 0?!0:P,E=n.tetherOffset,b=E===void 0?0:E,x=It(e,{boundary:l,rootBoundary:g,padding:O,altBoundary:p}),$=rt(e.placement),j=St(e.placement),y=!j,h=pe($),w=fn(h),S=e.modifiersData.popperOffsets,A=e.rects.reference,D=e.rects.popper,M=typeof b=="function"?b(Object.assign({},e.rects,{placement:e.placement})):b,V=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),F=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,W={x:0,y:0};if(!!S){if(c){var I,pt=h==="y"?H:z,dt=h==="y"?G:X,R=h==="y"?"height":"width",k=S[h],Et=k+x[pt],at=k-x[dt],At=m?-D[R]/2:0,Rt=j===Ot?A[R]:D[R],vt=j===Ot?-D[R]:-A[R],C=e.elements.arrow,st=m&&C?ue(C):{width:0,height:0},nt=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Me(),tt=nt[pt],ht=nt[dt],U=Mt(0,A[R],st[R]),Ct=y?A[R]/2-At-U-tt-V.mainAxis:Rt-U-tt-V.mainAxis,Ht=y?-A[R]/2+At+U+ht+V.mainAxis:vt+U+ht+V.mainAxis,jt=e.elements.arrow&&Vt(e.elements.arrow),Zt=jt?h==="y"?jt.clientTop||0:jt.clientLeft||0:0,Jt=(I=F==null?void 0:F[h])!=null?I:0,ye=k+Ct-Jt-Zt,be=k+Ht-Jt,Qt=Mt(m?qt(Et,ye):Et,k,m?ut(at,be):at);S[h]=Qt,W[h]=Qt-k}if(u){var te,we=h==="x"?H:z,Oe=h==="x"?G:X,K=S[w],lt=w==="y"?"height":"width",gt=K+x[we],Z=K-x[Oe],Pt=[H,z].indexOf($)!==-1,zt=(te=F==null?void 0:F[w])!=null?te:0,ee=Pt?gt:K-A[lt]-D[lt]-zt+V.altAxis,re=Pt?K+A[lt]+D[lt]-zt-V.altAxis:Z,mt=m&&Pt?Dr(ee,K,re):Mt(m?ee:gt,K,m?re:Z);S[w]=mt,W[w]=mt-K}e.modifiersData[s]=W}}var un={name:"preventOverflow",enabled:!0,phase:"main",fn:ln,requiresIfExists:["offset"]};function pn(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function dn(t){return t===Q(t)||!Y(t)?de(t):pn(t)}function vn(t){var e=t.getBoundingClientRect(),n=_t(e.width)/t.offsetWidth||1,s=_t(e.height)/t.offsetHeight||1;return n!==1||s!==1}function hn(t,e,n){n===void 0&&(n=!1);var s=Y(e),a=Y(e)&&vn(e),c=ft(e),f=Tt(t,a),u={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(s||!s&&!n)&&((et(e)!=="body"||he(c))&&(u=dn(e)),Y(e)?(l=Tt(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):c&&(l.x=ve(c))),{x:f.left+u.scrollLeft-l.x,y:f.top+u.scrollTop-l.y,width:f.width,height:f.height}}function gn(t){var e=new Map,n=new Set,s=[];t.forEach(function(c){e.set(c.name,c)});function a(c){n.add(c.name);var f=[].concat(c.requires||[],c.requiresIfExists||[]);f.forEach(function(u){if(!n.has(u)){var l=e.get(u);l&&a(l)}}),s.push(c)}return t.forEach(function(c){n.has(c.name)||a(c)}),s}function mn(t){var e=gn(t);return Ar.reduce(function(n,s){return n.concat(e.filter(function(a){return a.phase===s}))},[])}function yn(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function bn(t){var e=t.reduce(function(n,s){var a=n[s.name];return n[s.name]=a?Object.assign({},a,s,{options:Object.assign({},a.options,s.options),data:Object.assign({},a.data,s.data)}):s,n},{});return Object.keys(e).map(function(n){return e[n]})}var Ge={placement:"bottom",modifiers:[],strategy:"absolute"};function Xe(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(s){return!(s&&typeof s.getBoundingClientRect=="function")})}function wn(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,s=n===void 0?[]:n,a=e.defaultOptions,c=a===void 0?Ge:a;return function(u,l,g){g===void 0&&(g=c);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ge,c),modifiersData:{},elements:{reference:u,popper:l},attributes:{},styles:{}},O=[],P=!1,m={state:p,setOptions:function($){var j=typeof $=="function"?$(p.options):$;b(),p.options=Object.assign({},c,p.options,j),p.scrollParents={reference:xt(u)?Ft(u):u.contextElement?Ft(u.contextElement):[],popper:Ft(l)};var y=mn(bn([].concat(s,p.options.modifiers)));return p.orderedModifiers=y.filter(function(h){return h.enabled}),E(),m.update()},forceUpdate:function(){if(!P){var $=p.elements,j=$.reference,y=$.popper;if(!!Xe(j,y)){p.rects={reference:hn(j,Vt(y),p.options.strategy==="fixed"),popper:ue(y)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(V){return p.modifiersData[V.name]=Object.assign({},V.data)});for(var h=0;h<p.orderedModifiers.length;h++){if(p.reset===!0){p.reset=!1,h=-1;continue}var w=p.orderedModifiers[h],S=w.fn,A=w.options,D=A===void 0?{}:A,M=w.name;typeof S=="function"&&(p=S({state:p,options:D,name:M,instance:m})||p)}}}},update:yn(function(){return new Promise(function(x){m.forceUpdate(),x(p)})}),destroy:function(){b(),P=!0}};if(!Xe(u,l))return m;m.setOptions(g).then(function(x){!P&&g.onFirstUpdate&&g.onFirstUpdate(x)});function E(){p.orderedModifiers.forEach(function(x){var $=x.name,j=x.options,y=j===void 0?{}:j,h=x.effect;if(typeof h=="function"){var w=h({state:p,name:$,instance:m,options:y}),S=function(){};O.push(w||S)}})}function b(){O.forEach(function(x){return x()}),O=[]}return m}}var On=[Wr,cn,Hr,Pr,an,tn,un,Mr,rn],xn=wn({defaultModifiers:On}),Kt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},me={exports:{}};(function(t,e){var n=200,s="__lodash_hash_undefined__",a=800,c=16,f=9007199254740991,u="[object Arguments]",l="[object Array]",g="[object AsyncFunction]",p="[object Boolean]",O="[object Date]",P="[object Error]",m="[object Function]",E="[object GeneratorFunction]",b="[object Map]",x="[object Number]",$="[object Null]",j="[object Object]",y="[object Proxy]",h="[object RegExp]",w="[object Set]",S="[object String]",A="[object Undefined]",D="[object WeakMap]",M="[object ArrayBuffer]",V="[object DataView]",F="[object Float32Array]",W="[object Float64Array]",I="[object Int8Array]",pt="[object Int16Array]",dt="[object Int32Array]",R="[object Uint8Array]",k="[object Uint8ClampedArray]",Et="[object Uint16Array]",at="[object Uint32Array]",At=/[\\^$.*+?()[\]{}|]/g,Rt=/^\[object .+?Constructor\]$/,vt=/^(?:0|[1-9]\d*)$/,C={};C[F]=C[W]=C[I]=C[pt]=C[dt]=C[R]=C[k]=C[Et]=C[at]=!0,C[u]=C[l]=C[M]=C[p]=C[V]=C[O]=C[P]=C[m]=C[b]=C[x]=C[j]=C[h]=C[w]=C[S]=C[D]=!1;var st=typeof Kt=="object"&&Kt&&Kt.Object===Object&&Kt,nt=typeof self=="object"&&self&&self.Object===Object&&self,tt=st||nt||Function("return this")(),ht=e&&!e.nodeType&&e,U=ht&&!0&&t&&!t.nodeType&&t,Ct=U&&U.exports===ht,Ht=Ct&&st.process,jt=function(){try{var r=U&&U.require&&U.require("util").types;return r||Ht&&Ht.binding&&Ht.binding("util")}catch{}}(),Zt=jt&&jt.isTypedArray;function Jt(r,i,o){switch(o.length){case 0:return r.call(i);case 1:return r.call(i,o[0]);case 2:return r.call(i,o[0],o[1]);case 3:return r.call(i,o[0],o[1],o[2])}return r.apply(i,o)}function ye(r,i){for(var o=-1,v=Array(r);++o<r;)v[o]=i(o);return v}function be(r){return function(i){return r(i)}}function Qt(r,i){return r==null?void 0:r[i]}function te(r,i){return function(o){return r(i(o))}}var we=Array.prototype,Oe=Function.prototype,K=Object.prototype,lt=tt["__core-js_shared__"],gt=Oe.toString,Z=K.hasOwnProperty,Pt=function(){var r=/[^.]+$/.exec(lt&<.keys&<.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),zt=K.toString,ee=gt.call(Object),re=RegExp("^"+gt.call(Z).replace(At,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mt=Ct?tt.Buffer:void 0,Je=tt.Symbol,Qe=tt.Uint8Array,tr=mt?mt.allocUnsafe:void 0,er=te(Object.getPrototypeOf,Object),rr=Object.create,Rn=K.propertyIsEnumerable,Hn=we.splice,yt=Je?Je.toStringTag:void 0,ne=function(){try{var r=Te(Object,"defineProperty");return r({},"",{}),r}catch{}}(),zn=mt?mt.isBuffer:void 0,nr=Math.max,Wn=Date.now,ir=Te(tt,"Map"),Wt=Te(Object,"create"),kn=function(){function r(){}return function(i){if(!wt(i))return{};if(rr)return rr(i);r.prototype=i;var o=new r;return r.prototype=void 0,o}}();function bt(r){var i=-1,o=r==null?0:r.length;for(this.clear();++i<o;){var v=r[i];this.set(v[0],v[1])}}function Un(){this.__data__=Wt?Wt(null):{},this.size=0}function qn(r){var i=this.has(r)&&delete this.__data__[r];return this.size-=i?1:0,i}function Gn(r){var i=this.__data__;if(Wt){var o=i[r];return o===s?void 0:o}return Z.call(i,r)?i[r]:void 0}function Xn(r){var i=this.__data__;return Wt?i[r]!==void 0:Z.call(i,r)}function Yn(r,i){var o=this.__data__;return this.size+=this.has(r)?0:1,o[r]=Wt&&i===void 0?s:i,this}bt.prototype.clear=Un,bt.prototype.delete=qn,bt.prototype.get=Gn,bt.prototype.has=Xn,bt.prototype.set=Yn;function ct(r){var i=-1,o=r==null?0:r.length;for(this.clear();++i<o;){var v=r[i];this.set(v[0],v[1])}}function Kn(){this.__data__=[],this.size=0}function Zn(r){var i=this.__data__,o=ie(i,r);if(o<0)return!1;var v=i.length-1;return o==v?i.pop():Hn.call(i,o,1),--this.size,!0}function Jn(r){var i=this.__data__,o=ie(i,r);return o<0?void 0:i[o][1]}function Qn(r){return ie(this.__data__,r)>-1}function ti(r,i){var o=this.__data__,v=ie(o,r);return v<0?(++this.size,o.push([r,i])):o[v][1]=i,this}ct.prototype.clear=Kn,ct.prototype.delete=Zn,ct.prototype.get=Jn,ct.prototype.has=Qn,ct.prototype.set=ti;function $t(r){var i=-1,o=r==null?0:r.length;for(this.clear();++i<o;){var v=r[i];this.set(v[0],v[1])}}function ei(){this.size=0,this.__data__={hash:new bt,map:new(ir||ct),string:new bt}}function ri(r){var i=ae(this,r).delete(r);return this.size-=i?1:0,i}function ni(r){return ae(this,r).get(r)}function ii(r){return ae(this,r).has(r)}function oi(r,i){var o=ae(this,r),v=o.size;return o.set(r,i),this.size+=o.size==v?0:1,this}$t.prototype.clear=ei,$t.prototype.delete=ri,$t.prototype.get=ni,$t.prototype.has=ii,$t.prototype.set=oi;function Bt(r){var i=this.__data__=new ct(r);this.size=i.size}function ai(){this.__data__=new ct,this.size=0}function si(r){var i=this.__data__,o=i.delete(r);return this.size=i.size,o}function ci(r){return this.__data__.get(r)}function fi(r){return this.__data__.has(r)}function li(r,i){var o=this.__data__;if(o instanceof ct){var v=o.__data__;if(!ir||v.length<n-1)return v.push([r,i]),this.size=++o.size,this;o=this.__data__=new $t(v)}return o.set(r,i),this.size=o.size,this}Bt.prototype.clear=ai,Bt.prototype.delete=si,Bt.prototype.get=ci,Bt.prototype.has=fi,Bt.prototype.set=li;function ui(r,i){var o=Ae(r),v=!o&&Ee(r),T=!o&&!v&&fr(r),B=!o&&!v&&!T&&ur(r),L=o||v||T||B,_=L?ye(r.length,String):[],N=_.length;for(var J in r)(i||Z.call(r,J))&&!(L&&(J=="length"||T&&(J=="offset"||J=="parent")||B&&(J=="buffer"||J=="byteLength"||J=="byteOffset")||sr(J,N)))&&_.push(J);return _}function xe(r,i,o){(o!==void 0&&!se(r[i],o)||o===void 0&&!(i in r))&&_e(r,i,o)}function pi(r,i,o){var v=r[i];(!(Z.call(r,i)&&se(v,o))||o===void 0&&!(i in r))&&_e(r,i,o)}function ie(r,i){for(var o=r.length;o--;)if(se(r[o][0],i))return o;return-1}function _e(r,i,o){i=="__proto__"&&ne?ne(r,i,{configurable:!0,enumerable:!0,value:o,writable:!0}):r[i]=o}var di=Ei();function oe(r){return r==null?r===void 0?A:$:yt&&yt in Object(r)?Ai(r):Di(r)}function or(r){return kt(r)&&oe(r)==u}function vi(r){if(!wt(r)||$i(r))return!1;var i=je(r)?re:Rt;return i.test(Mi(r))}function hi(r){return kt(r)&&lr(r.length)&&!!C[oe(r)]}function gi(r){if(!wt(r))return Bi(r);var i=cr(r),o=[];for(var v in r)v=="constructor"&&(i||!Z.call(r,v))||o.push(v);return o}function ar(r,i,o,v,T){r!==i&&di(i,function(B,L){if(T||(T=new Bt),wt(B))mi(r,i,L,o,ar,v,T);else{var _=v?v(Se(r,L),B,L+"",r,i,T):void 0;_===void 0&&(_=B),xe(r,L,_)}},pr)}function mi(r,i,o,v,T,B,L){var _=Se(r,o),N=Se(i,o),J=L.get(N);if(J){xe(r,o,J);return}var q=B?B(_,N,o+"",r,i,L):void 0,Ut=q===void 0;if(Ut){var Pe=Ae(N),$e=!Pe&&fr(N),vr=!Pe&&!$e&&ur(N);q=N,Pe||$e||vr?Ae(_)?q=_:Fi(_)?q=_i(_):$e?(Ut=!1,q=wi(N,!0)):vr?(Ut=!1,q=xi(N,!0)):q=[]:Ii(N)||Ee(N)?(q=_,Ee(_)?q=Ri(_):(!wt(_)||je(_))&&(q=Ci(N))):Ut=!1}Ut&&(L.set(N,q),T(q,N,v,B,L),L.delete(N)),xe(r,o,q)}function yi(r,i){return Ni(Li(r,i,dr),r+"")}var bi=ne?function(r,i){return ne(r,"toString",{configurable:!0,enumerable:!1,value:zi(i),writable:!0})}:dr;function wi(r,i){if(i)return r.slice();var o=r.length,v=tr?tr(o):new r.constructor(o);return r.copy(v),v}function Oi(r){var i=new r.constructor(r.byteLength);return new Qe(i).set(new Qe(r)),i}function xi(r,i){var o=i?Oi(r.buffer):r.buffer;return new r.constructor(o,r.byteOffset,r.length)}function _i(r,i){var o=-1,v=r.length;for(i||(i=Array(v));++o<v;)i[o]=r[o];return i}function Ti(r,i,o,v){var T=!o;o||(o={});for(var B=-1,L=i.length;++B<L;){var _=i[B],N=v?v(o[_],r[_],_,o,r):void 0;N===void 0&&(N=r[_]),T?_e(o,_,N):pi(o,_,N)}return o}function Si(r){return yi(function(i,o){var v=-1,T=o.length,B=T>1?o[T-1]:void 0,L=T>2?o[2]:void 0;for(B=r.length>3&&typeof B=="function"?(T--,B):void 0,L&&ji(o[0],o[1],L)&&(B=T<3?void 0:B,T=1),i=Object(i);++v<T;){var _=o[v];_&&r(i,_,v,B)}return i})}function Ei(r){return function(i,o,v){for(var T=-1,B=Object(i),L=v(i),_=L.length;_--;){var N=L[r?_:++T];if(o(B[N],N,B)===!1)break}return i}}function ae(r,i){var o=r.__data__;return Pi(i)?o[typeof i=="string"?"string":"hash"]:o.map}function Te(r,i){var o=Qt(r,i);return vi(o)?o:void 0}function Ai(r){var i=Z.call(r,yt),o=r[yt];try{r[yt]=void 0;var v=!0}catch{}var T=zt.call(r);return v&&(i?r[yt]=o:delete r[yt]),T}function Ci(r){return typeof r.constructor=="function"&&!cr(r)?kn(er(r)):{}}function sr(r,i){var o=typeof r;return i=i==null?f:i,!!i&&(o=="number"||o!="symbol"&&vt.test(r))&&r>-1&&r%1==0&&r<i}function ji(r,i,o){if(!wt(o))return!1;var v=typeof i;return(v=="number"?Ce(o)&&sr(i,o.length):v=="string"&&i in o)?se(o[i],r):!1}function Pi(r){var i=typeof r;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?r!=="__proto__":r===null}function $i(r){return!!Pt&&Pt in r}function cr(r){var i=r&&r.constructor,o=typeof i=="function"&&i.prototype||K;return r===o}function Bi(r){var i=[];if(r!=null)for(var o in Object(r))i.push(o);return i}function Di(r){return zt.call(r)}function Li(r,i,o){return i=nr(i===void 0?r.length-1:i,0),function(){for(var v=arguments,T=-1,B=nr(v.length-i,0),L=Array(B);++T<B;)L[T]=v[i+T];T=-1;for(var _=Array(i+1);++T<i;)_[T]=v[T];return _[i]=o(L),Jt(r,this,_)}}function Se(r,i){if(!(i==="constructor"&&typeof r[i]=="function")&&i!="__proto__")return r[i]}var Ni=Vi(bi);function Vi(r){var i=0,o=0;return function(){var v=Wn(),T=c-(v-o);if(o=v,T>0){if(++i>=a)return arguments[0]}else i=0;return r.apply(void 0,arguments)}}function Mi(r){if(r!=null){try{return gt.call(r)}catch{}try{return r+""}catch{}}return""}function se(r,i){return r===i||r!==r&&i!==i}var Ee=or(function(){return arguments}())?or:function(r){return kt(r)&&Z.call(r,"callee")&&!Rn.call(r,"callee")},Ae=Array.isArray;function Ce(r){return r!=null&&lr(r.length)&&!je(r)}function Fi(r){return kt(r)&&Ce(r)}var fr=zn||Wi;function je(r){if(!wt(r))return!1;var i=oe(r);return i==m||i==E||i==g||i==y}function lr(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=f}function wt(r){var i=typeof r;return r!=null&&(i=="object"||i=="function")}function kt(r){return r!=null&&typeof r=="object"}function Ii(r){if(!kt(r)||oe(r)!=j)return!1;var i=er(r);if(i===null)return!0;var o=Z.call(i,"constructor")&&i.constructor;return typeof o=="function"&&o instanceof o&>.call(o)==ee}var ur=Zt?be(Zt):hi;function Ri(r){return Ti(r,pr(r))}function pr(r){return Ce(r)?ui(r,!0):gi(r)}var Hi=Si(function(r,i,o){ar(r,i,o)});function zi(r){return function(){return r}}function dr(r){return r}function Wi(){return!1}t.exports=Hi})(me,me.exports);var Ye=me.exports,Ke=(t,e)=>{const n=t.__vccOpts||t;for(const[s,a]of e)n[s]=a;return n};const _n=d.defineComponent({name:"VOnboardingStep",setup(){const t=d.ref(!1),e=d.inject("next-step",()=>{}),n=d.inject("previous-step",()=>{}),s=d.inject("exit",()=>{}),a=d.inject("options"),c=d.computed(()=>Ye({},a==null?void 0:a.value,l.value.options)),f=d.inject("is-first-step"),u=d.inject("is-last-step"),l=d.inject("step",{}),g=async()=>{await x(),e()},p=async()=>{await x(),n()},O=d.ref(null),{updatePath:P,path:m}=hr(),E=()=>{var h,w,S,A,D,M,V;const y=ce((w=(h=l==null?void 0:l.value)==null?void 0:h.attachTo)==null?void 0:w.element);y&&O.value&&(t.value=!0,(A=(S=c.value)==null?void 0:S.scrollToStep)!=null&&A.enabled&&y.scrollIntoView((M=(D=c.value)==null?void 0:D.scrollToStep)==null?void 0:M.options),xn(y,O.value,c.value.popper),(V=c.value)!=null&&V.disableOverlay||P(y),$(y))},b=async()=>{var y,h,w;await((w=(h=(y=l==null?void 0:l.value)==null?void 0:y.on)==null?void 0:h.beforeStep)==null?void 0:w.call(h)),E()},x=async()=>{var y,h,w;await((w=(h=(y=l==null?void 0:l.value)==null?void 0:y.on)==null?void 0:h.afterStep)==null?void 0:w.call(h)),j()},$=(y=ce(l.value.attachTo.element))=>{const h=l.value.attachTo.classList;!h||!y||y.classList.add(...h)},j=(y=ce(l.value.attachTo.element))=>{const h=l.value.attachTo.classList;!h||!y||y.classList.remove(...h)};return d.onMounted(async()=>{await b()}),{stepElement:O,onNext:g,onPrevious:p,path:m,show:t,step:l,isFirst:f,isLast:u,exit:s}}}),Tn={style:{width:"100%",height:"100%",position:"fixed",top:"0",left:"0",opacity:"0.5","z-index":"var(--v-onboarding-overlay-z, 10)","pointer-events":"none"}},Sn=["d"],En={ref:"stepElement",style:{position:"relative","z-index":"var(--v-onboarding-step-z, 20)"}},An={class:"v-onboarding-item"},Cn={class:"v-onboarding-item__header"},jn={key:0,class:"v-onboarding-item__header-title"},Pn=[d.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[d.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)],$n={key:0,class:"v-onboarding-item__description"},Bn={class:"v-onboarding-item__actions"};function Dn(t,e,n,s,a,c){return d.withDirectives((d.openBlock(),d.createElementBlock("div",null,[(d.openBlock(),d.createElementBlock("svg",Tn,[d.createElementVNode("path",{d:t.path},null,8,Sn)])),d.createElementVNode("div",En,[t.step?d.renderSlot(t.$slots,"default",{key:0},()=>[d.createElementVNode("div",An,[d.createElementVNode("div",Cn,[t.step.content.title?(d.openBlock(),d.createElementBlock("span",jn,d.toDisplayString(t.step.content.title),1)):d.createCommentVNode("",!0),d.createElementVNode("button",{onClick:e[0]||(e[0]=(...f)=>t.exit&&t.exit(...f)),class:"v-onboarding-item__header-close"},Pn)]),t.step.content.description?(d.openBlock(),d.createElementBlock("p",$n,d.toDisplayString(t.step.content.description),1)):d.createCommentVNode("",!0),d.createElementVNode("div",Bn,[t.isFirst?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("button",{key:0,type:"button",onClick:e[1]||(e[1]=(...f)=>t.onPrevious&&t.onPrevious(...f)),class:"v-onboarding-btn-secondary"},"Previous")),d.createElementVNode("button",{onClick:e[2]||(e[2]=(...f)=>t.onNext&&t.onNext(...f)),type:"button",class:"v-onboarding-btn-primary"},d.toDisplayString(t.isLast?"Finish":"Next"),1)])])]):d.createCommentVNode("",!0)],512)],512)),[[d.vShow,t.show]])}var Ze=Ke(_n,[["render",Dn]]);const Ln={popper:{},disableOverlay:!1,scrollToStep:{enabled:!0,options:{behavior:"smooth",block:"center",inline:"center"}}},Nn=d.defineComponent({name:"VOnboardingWrapper",components:{VOnboardingStep:Ze},props:{steps:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})}},setup(t,{expose:e}){const n=d.ref(-1),s=m=>{typeof m=="function"?n.value=m(n.value):n.value=m},a=d.computed(()=>{var m;return((m=t.steps)==null?void 0:m[n.value])||null}),c=()=>{s(m=>m-1)},f=()=>{s(m=>m+1)},u=d.computed(()=>n.value>=t.steps.length||n.value<0),l=()=>{s(0)},g=()=>{s(-1)};e({start:l,finish:g,goToStep:s});const p=d.computed(()=>Ye({},Ln,t.options));d.provide("options",p),d.provide("step",a),d.provide("next-step",f),d.provide("previous-step",c),d.provide("exit",()=>g());const O=d.computed(()=>n.value===0),P=d.computed(()=>n.value===t.steps.length-1);return d.provide("is-first-step",O),d.provide("is-last-step",P),{index:n,activeStep:a,toPreviousStep:c,toNextStep:f,isFinished:u,setIndex:s,isFirstStep:O,isLastStep:P,finish:g}}}),Vn={key:0};function Mn(t,e,n,s,a,c){const f=d.resolveComponent("VOnboardingStep");return t.isFinished?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("div",Vn,[d.renderSlot(t.$slots,"default",{key:t.index,step:t.activeStep,next:()=>t.toNextStep(),previous:()=>t.toPreviousStep(),exit:()=>t.finish(),isFirst:t.isFirstStep,isLast:t.isLastStep,index:t.index},()=>[(d.openBlock(),d.createBlock(f,{key:t.index}))])]))}var Fn=Ke(Nn,[["render",Mn]]);function In(t){return{start:()=>{var a;return(a=t==null?void 0:t.value)==null?void 0:a.start()},finish:()=>{var a;return(a=t==null?void 0:t.value)==null?void 0:a.finish()},goToStep:a=>{var c;return(c=t==null?void 0:t.value)==null?void 0:c.goToStep(a)}}}var Ui="";it.VOnboardingStep=Ze,it.VOnboardingWrapper=Fn,it.useVOnboarding=In,Object.defineProperties(it,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(it,p){typeof exports=="object"&&typeof module!="undefined"?p(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],p):(it=typeof globalThis!="undefined"?globalThis:it||self,p(it["v-onboarding"]={},it.Vue))})(this,function(it,p){"use strict";function ce(t){return typeof t=="string"?document.querySelector(t):typeof t=="function"?t():null}function hr(){const t=p.ref(""),e=p.ref(null),n=()=>{s(e.value)},s=async a=>{if(!a)return;const{innerWidth:c,innerHeight:f}=window,{left:u,top:l,width:g,height:d}=a.getBoundingClientRect();t.value=`M${c},${f}H0V0H${c}V${f}ZM${u},${l}a0,0,0,0,0-0,0V${l+d}a0,0,0,0,0,0,0H${u+g}a0,0,0,0,0,0-0V${l}a0,0,0,0,0-0-0Z`,e.value=a,window.addEventListener("scroll",n),window.addEventListener("resize",n)};return p.onUnmounted(()=>{window.removeEventListener("scroll",n),window.removeEventListener("resize",n)}),{path:t,updatePath:s}}var H="top",G="bottom",X="right",z="left",fe="auto",Dt=[H,G,X,z],Ot="start",Lt="end",gr="clippingParents",Be="viewport",Nt="popper",mr="reference",De=Dt.reduce(function(t,e){return t.concat([e+"-"+Ot,e+"-"+Lt])},[]),Le=[].concat(Dt,[fe]).reduce(function(t,e){return t.concat([e,e+"-"+Ot,e+"-"+Lt])},[]),yr="beforeRead",br="read",wr="afterRead",Or="beforeMain",xr="main",_r="afterMain",Tr="beforeWrite",Sr="write",Er="afterWrite",Ar=[yr,br,wr,Or,xr,_r,Tr,Sr,Er];function et(t){return t?(t.nodeName||"").toLowerCase():null}function Q(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function xt(t){var e=Q(t).Element;return t instanceof e||t instanceof Element}function Y(t){var e=Q(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function le(t){if(typeof ShadowRoot=="undefined")return!1;var e=Q(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Cr(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var s=e.styles[n]||{},a=e.attributes[n]||{},c=e.elements[n];!Y(c)||!et(c)||(Object.assign(c.style,s),Object.keys(a).forEach(function(f){var u=a[f];u===!1?c.removeAttribute(f):c.setAttribute(f,u===!0?"":u)}))})}function jr(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(s){var a=e.elements[s],c=e.attributes[s]||{},f=Object.keys(e.styles.hasOwnProperty(s)?e.styles[s]:n[s]),u=f.reduce(function(l,g){return l[g]="",l},{});!Y(a)||!et(a)||(Object.assign(a.style,u),Object.keys(c).forEach(function(l){a.removeAttribute(l)}))})}}var Pr={name:"applyStyles",enabled:!0,phase:"write",fn:Cr,effect:jr,requires:["computeStyles"]};function rt(t){return t.split("-")[0]}var ut=Math.max,qt=Math.min,_t=Math.round;function Tt(t,e){e===void 0&&(e=!1);var n=t.getBoundingClientRect(),s=1,a=1;if(Y(t)&&e){var c=t.offsetHeight,f=t.offsetWidth;f>0&&(s=_t(n.width)/f||1),c>0&&(a=_t(n.height)/c||1)}return{width:n.width/s,height:n.height/a,top:n.top/a,right:n.right/s,bottom:n.bottom/a,left:n.left/s,x:n.left/s,y:n.top/a}}function ue(t){var e=Tt(t),n=t.offsetWidth,s=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-s)<=1&&(s=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:s}}function Ne(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&le(n)){var s=e;do{if(s&&t.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function ot(t){return Q(t).getComputedStyle(t)}function $r(t){return["table","td","th"].indexOf(et(t))>=0}function ft(t){return((xt(t)?t.ownerDocument:t.document)||window.document).documentElement}function Gt(t){return et(t)==="html"?t:t.assignedSlot||t.parentNode||(le(t)?t.host:null)||ft(t)}function Ve(t){return!Y(t)||ot(t).position==="fixed"?null:t.offsetParent}function Br(t){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Y(t)){var s=ot(t);if(s.position==="fixed")return null}var a=Gt(t);for(le(a)&&(a=a.host);Y(a)&&["html","body"].indexOf(et(a))<0;){var c=ot(a);if(c.transform!=="none"||c.perspective!=="none"||c.contain==="paint"||["transform","perspective"].indexOf(c.willChange)!==-1||e&&c.willChange==="filter"||e&&c.filter&&c.filter!=="none")return a;a=a.parentNode}return null}function Vt(t){for(var e=Q(t),n=Ve(t);n&&$r(n)&&ot(n).position==="static";)n=Ve(n);return n&&(et(n)==="html"||et(n)==="body"&&ot(n).position==="static")?e:n||Br(t)||e}function pe(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Mt(t,e,n){return ut(t,qt(e,n))}function Dr(t,e,n){var s=Mt(t,e,n);return s>n?n:s}function Me(){return{top:0,right:0,bottom:0,left:0}}function Fe(t){return Object.assign({},Me(),t)}function Ie(t,e){return e.reduce(function(n,s){return n[s]=t,n},{})}var Lr=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,Fe(typeof e!="number"?e:Ie(e,Dt))};function Nr(t){var e,n=t.state,s=t.name,a=t.options,c=n.elements.arrow,f=n.modifiersData.popperOffsets,u=rt(n.placement),l=pe(u),g=[z,X].indexOf(u)>=0,d=g?"height":"width";if(!(!c||!f)){var O=Lr(a.padding,n),P=ue(c),m=l==="y"?H:z,E=l==="y"?G:X,b=n.rects.reference[d]+n.rects.reference[l]-f[l]-n.rects.popper[d],x=f[l]-n.rects.reference[l],$=Vt(c),j=$?l==="y"?$.clientHeight||0:$.clientWidth||0:0,y=b/2-x/2,h=O[m],w=j-P[d]-O[E],S=j/2-P[d]/2+y,A=Mt(h,S,w),D=l;n.modifiersData[s]=(e={},e[D]=A,e.centerOffset=A-S,e)}}function Vr(t){var e=t.state,n=t.options,s=n.element,a=s===void 0?"[data-popper-arrow]":s;a!=null&&(typeof a=="string"&&(a=e.elements.popper.querySelector(a),!a)||!Ne(e.elements.popper,a)||(e.elements.arrow=a))}var Mr={name:"arrow",enabled:!0,phase:"main",fn:Nr,effect:Vr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function St(t){return t.split("-")[1]}var Fr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ir(t){var e=t.x,n=t.y,s=window,a=s.devicePixelRatio||1;return{x:_t(e*a)/a||0,y:_t(n*a)/a||0}}function Re(t){var e,n=t.popper,s=t.popperRect,a=t.placement,c=t.variation,f=t.offsets,u=t.position,l=t.gpuAcceleration,g=t.adaptive,d=t.roundOffsets,O=t.isFixed,P=f.x,m=P===void 0?0:P,E=f.y,b=E===void 0?0:E,x=typeof d=="function"?d({x:m,y:b}):{x:m,y:b};m=x.x,b=x.y;var $=f.hasOwnProperty("x"),j=f.hasOwnProperty("y"),y=z,h=H,w=window;if(g){var S=Vt(n),A="clientHeight",D="clientWidth";if(S===Q(n)&&(S=ft(n),ot(S).position!=="static"&&u==="absolute"&&(A="scrollHeight",D="scrollWidth")),S=S,a===H||(a===z||a===X)&&c===Lt){h=G;var M=O&&S===w&&w.visualViewport?w.visualViewport.height:S[A];b-=M-s.height,b*=l?1:-1}if(a===z||(a===H||a===G)&&c===Lt){y=X;var V=O&&S===w&&w.visualViewport?w.visualViewport.width:S[D];m-=V-s.width,m*=l?1:-1}}var F=Object.assign({position:u},g&&Fr),W=d===!0?Ir({x:m,y:b}):{x:m,y:b};if(m=W.x,b=W.y,l){var I;return Object.assign({},F,(I={},I[h]=j?"0":"",I[y]=$?"0":"",I.transform=(w.devicePixelRatio||1)<=1?"translate("+m+"px, "+b+"px)":"translate3d("+m+"px, "+b+"px, 0)",I))}return Object.assign({},F,(e={},e[h]=j?b+"px":"",e[y]=$?m+"px":"",e.transform="",e))}function Rr(t){var e=t.state,n=t.options,s=n.gpuAcceleration,a=s===void 0?!0:s,c=n.adaptive,f=c===void 0?!0:c,u=n.roundOffsets,l=u===void 0?!0:u,g={placement:rt(e.placement),variation:St(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:a,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Re(Object.assign({},g,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:f,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Re(Object.assign({},g,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var Hr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Rr,data:{}},Xt={passive:!0};function zr(t){var e=t.state,n=t.instance,s=t.options,a=s.scroll,c=a===void 0?!0:a,f=s.resize,u=f===void 0?!0:f,l=Q(e.elements.popper),g=[].concat(e.scrollParents.reference,e.scrollParents.popper);return c&&g.forEach(function(d){d.addEventListener("scroll",n.update,Xt)}),u&&l.addEventListener("resize",n.update,Xt),function(){c&&g.forEach(function(d){d.removeEventListener("scroll",n.update,Xt)}),u&&l.removeEventListener("resize",n.update,Xt)}}var Wr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:zr,data:{}},kr={left:"right",right:"left",bottom:"top",top:"bottom"};function Yt(t){return t.replace(/left|right|bottom|top/g,function(e){return kr[e]})}var Ur={start:"end",end:"start"};function He(t){return t.replace(/start|end/g,function(e){return Ur[e]})}function de(t){var e=Q(t),n=e.pageXOffset,s=e.pageYOffset;return{scrollLeft:n,scrollTop:s}}function ve(t){return Tt(ft(t)).left+de(t).scrollLeft}function qr(t){var e=Q(t),n=ft(t),s=e.visualViewport,a=n.clientWidth,c=n.clientHeight,f=0,u=0;return s&&(a=s.width,c=s.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(f=s.offsetLeft,u=s.offsetTop)),{width:a,height:c,x:f+ve(t),y:u}}function Gr(t){var e,n=ft(t),s=de(t),a=(e=t.ownerDocument)==null?void 0:e.body,c=ut(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),f=ut(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),u=-s.scrollLeft+ve(t),l=-s.scrollTop;return ot(a||n).direction==="rtl"&&(u+=ut(n.clientWidth,a?a.clientWidth:0)-c),{width:c,height:f,x:u,y:l}}function he(t){var e=ot(t),n=e.overflow,s=e.overflowX,a=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+s)}function ze(t){return["html","body","#document"].indexOf(et(t))>=0?t.ownerDocument.body:Y(t)&&he(t)?t:ze(Gt(t))}function Ft(t,e){var n;e===void 0&&(e=[]);var s=ze(t),a=s===((n=t.ownerDocument)==null?void 0:n.body),c=Q(s),f=a?[c].concat(c.visualViewport||[],he(s)?s:[]):s,u=e.concat(f);return a?u:u.concat(Ft(Gt(f)))}function ge(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Xr(t){var e=Tt(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}function We(t,e){return e===Be?ge(qr(t)):xt(e)?Xr(e):ge(Gr(ft(t)))}function Yr(t){var e=Ft(Gt(t)),n=["absolute","fixed"].indexOf(ot(t).position)>=0,s=n&&Y(t)?Vt(t):t;return xt(s)?e.filter(function(a){return xt(a)&&Ne(a,s)&&et(a)!=="body"}):[]}function Kr(t,e,n){var s=e==="clippingParents"?Yr(t):[].concat(e),a=[].concat(s,[n]),c=a[0],f=a.reduce(function(u,l){var g=We(t,l);return u.top=ut(g.top,u.top),u.right=qt(g.right,u.right),u.bottom=qt(g.bottom,u.bottom),u.left=ut(g.left,u.left),u},We(t,c));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}function ke(t){var e=t.reference,n=t.element,s=t.placement,a=s?rt(s):null,c=s?St(s):null,f=e.x+e.width/2-n.width/2,u=e.y+e.height/2-n.height/2,l;switch(a){case H:l={x:f,y:e.y-n.height};break;case G:l={x:f,y:e.y+e.height};break;case X:l={x:e.x+e.width,y:u};break;case z:l={x:e.x-n.width,y:u};break;default:l={x:e.x,y:e.y}}var g=a?pe(a):null;if(g!=null){var d=g==="y"?"height":"width";switch(c){case Ot:l[g]=l[g]-(e[d]/2-n[d]/2);break;case Lt:l[g]=l[g]+(e[d]/2-n[d]/2);break}}return l}function It(t,e){e===void 0&&(e={});var n=e,s=n.placement,a=s===void 0?t.placement:s,c=n.boundary,f=c===void 0?gr:c,u=n.rootBoundary,l=u===void 0?Be:u,g=n.elementContext,d=g===void 0?Nt:g,O=n.altBoundary,P=O===void 0?!1:O,m=n.padding,E=m===void 0?0:m,b=Fe(typeof E!="number"?E:Ie(E,Dt)),x=d===Nt?mr:Nt,$=t.rects.popper,j=t.elements[P?x:d],y=Kr(xt(j)?j:j.contextElement||ft(t.elements.popper),f,l),h=Tt(t.elements.reference),w=ke({reference:h,element:$,strategy:"absolute",placement:a}),S=ge(Object.assign({},$,w)),A=d===Nt?S:h,D={top:y.top-A.top+b.top,bottom:A.bottom-y.bottom+b.bottom,left:y.left-A.left+b.left,right:A.right-y.right+b.right},M=t.modifiersData.offset;if(d===Nt&&M){var V=M[a];Object.keys(D).forEach(function(F){var W=[X,G].indexOf(F)>=0?1:-1,I=[H,G].indexOf(F)>=0?"y":"x";D[F]+=V[I]*W})}return D}function Zr(t,e){e===void 0&&(e={});var n=e,s=n.placement,a=n.boundary,c=n.rootBoundary,f=n.padding,u=n.flipVariations,l=n.allowedAutoPlacements,g=l===void 0?Le:l,d=St(s),O=d?u?De:De.filter(function(E){return St(E)===d}):Dt,P=O.filter(function(E){return g.indexOf(E)>=0});P.length===0&&(P=O);var m=P.reduce(function(E,b){return E[b]=It(t,{placement:b,boundary:a,rootBoundary:c,padding:f})[rt(b)],E},{});return Object.keys(m).sort(function(E,b){return m[E]-m[b]})}function Jr(t){if(rt(t)===fe)return[];var e=Yt(t);return[He(t),e,He(e)]}function Qr(t){var e=t.state,n=t.options,s=t.name;if(!e.modifiersData[s]._skip){for(var a=n.mainAxis,c=a===void 0?!0:a,f=n.altAxis,u=f===void 0?!0:f,l=n.fallbackPlacements,g=n.padding,d=n.boundary,O=n.rootBoundary,P=n.altBoundary,m=n.flipVariations,E=m===void 0?!0:m,b=n.allowedAutoPlacements,x=e.options.placement,$=rt(x),j=$===x,y=l||(j||!E?[Yt(x)]:Jr(x)),h=[x].concat(y).reduce(function(st,nt){return st.concat(rt(nt)===fe?Zr(e,{placement:nt,boundary:d,rootBoundary:O,padding:g,flipVariations:E,allowedAutoPlacements:b}):nt)},[]),w=e.rects.reference,S=e.rects.popper,A=new Map,D=!0,M=h[0],V=0;V<h.length;V++){var F=h[V],W=rt(F),I=St(F)===Ot,pt=[H,G].indexOf(W)>=0,dt=pt?"width":"height",R=It(e,{placement:F,boundary:d,rootBoundary:O,altBoundary:P,padding:g}),k=pt?I?X:z:I?G:H;w[dt]>S[dt]&&(k=Yt(k));var Et=Yt(k),at=[];if(c&&at.push(R[W]<=0),u&&at.push(R[k]<=0,R[Et]<=0),at.every(function(st){return st})){M=F,D=!1;break}A.set(F,at)}if(D)for(var At=E?3:1,Rt=function(nt){var tt=h.find(function(ht){var U=A.get(ht);if(U)return U.slice(0,nt).every(function(Ct){return Ct})});if(tt)return M=tt,"break"},vt=At;vt>0;vt--){var C=Rt(vt);if(C==="break")break}e.placement!==M&&(e.modifiersData[s]._skip=!0,e.placement=M,e.reset=!0)}}var tn={name:"flip",enabled:!0,phase:"main",fn:Qr,requiresIfExists:["offset"],data:{_skip:!1}};function Ue(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function qe(t){return[H,X,G,z].some(function(e){return t[e]>=0})}function en(t){var e=t.state,n=t.name,s=e.rects.reference,a=e.rects.popper,c=e.modifiersData.preventOverflow,f=It(e,{elementContext:"reference"}),u=It(e,{altBoundary:!0}),l=Ue(f,s),g=Ue(u,a,c),d=qe(l),O=qe(g);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:g,isReferenceHidden:d,hasPopperEscaped:O},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":O})}var rn={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:en};function nn(t,e,n){var s=rt(t),a=[z,H].indexOf(s)>=0?-1:1,c=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,f=c[0],u=c[1];return f=f||0,u=(u||0)*a,[z,X].indexOf(s)>=0?{x:u,y:f}:{x:f,y:u}}function on(t){var e=t.state,n=t.options,s=t.name,a=n.offset,c=a===void 0?[0,0]:a,f=Le.reduce(function(d,O){return d[O]=nn(O,e.rects,c),d},{}),u=f[e.placement],l=u.x,g=u.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=g),e.modifiersData[s]=f}var an={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:on};function sn(t){var e=t.state,n=t.name;e.modifiersData[n]=ke({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var cn={name:"popperOffsets",enabled:!0,phase:"read",fn:sn,data:{}};function fn(t){return t==="x"?"y":"x"}function ln(t){var e=t.state,n=t.options,s=t.name,a=n.mainAxis,c=a===void 0?!0:a,f=n.altAxis,u=f===void 0?!1:f,l=n.boundary,g=n.rootBoundary,d=n.altBoundary,O=n.padding,P=n.tether,m=P===void 0?!0:P,E=n.tetherOffset,b=E===void 0?0:E,x=It(e,{boundary:l,rootBoundary:g,padding:O,altBoundary:d}),$=rt(e.placement),j=St(e.placement),y=!j,h=pe($),w=fn(h),S=e.modifiersData.popperOffsets,A=e.rects.reference,D=e.rects.popper,M=typeof b=="function"?b(Object.assign({},e.rects,{placement:e.placement})):b,V=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),F=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,W={x:0,y:0};if(!!S){if(c){var I,pt=h==="y"?H:z,dt=h==="y"?G:X,R=h==="y"?"height":"width",k=S[h],Et=k+x[pt],at=k-x[dt],At=m?-D[R]/2:0,Rt=j===Ot?A[R]:D[R],vt=j===Ot?-D[R]:-A[R],C=e.elements.arrow,st=m&&C?ue(C):{width:0,height:0},nt=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Me(),tt=nt[pt],ht=nt[dt],U=Mt(0,A[R],st[R]),Ct=y?A[R]/2-At-U-tt-V.mainAxis:Rt-U-tt-V.mainAxis,Ht=y?-A[R]/2+At+U+ht+V.mainAxis:vt+U+ht+V.mainAxis,jt=e.elements.arrow&&Vt(e.elements.arrow),Zt=jt?h==="y"?jt.clientTop||0:jt.clientLeft||0:0,Jt=(I=F==null?void 0:F[h])!=null?I:0,ye=k+Ct-Jt-Zt,be=k+Ht-Jt,Qt=Mt(m?qt(Et,ye):Et,k,m?ut(at,be):at);S[h]=Qt,W[h]=Qt-k}if(u){var te,we=h==="x"?H:z,Oe=h==="x"?G:X,K=S[w],lt=w==="y"?"height":"width",gt=K+x[we],Z=K-x[Oe],Pt=[H,z].indexOf($)!==-1,zt=(te=F==null?void 0:F[w])!=null?te:0,ee=Pt?gt:K-A[lt]-D[lt]-zt+V.altAxis,re=Pt?K+A[lt]+D[lt]-zt-V.altAxis:Z,mt=m&&Pt?Dr(ee,K,re):Mt(m?ee:gt,K,m?re:Z);S[w]=mt,W[w]=mt-K}e.modifiersData[s]=W}}var un={name:"preventOverflow",enabled:!0,phase:"main",fn:ln,requiresIfExists:["offset"]};function pn(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function dn(t){return t===Q(t)||!Y(t)?de(t):pn(t)}function vn(t){var e=t.getBoundingClientRect(),n=_t(e.width)/t.offsetWidth||1,s=_t(e.height)/t.offsetHeight||1;return n!==1||s!==1}function hn(t,e,n){n===void 0&&(n=!1);var s=Y(e),a=Y(e)&&vn(e),c=ft(e),f=Tt(t,a),u={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(s||!s&&!n)&&((et(e)!=="body"||he(c))&&(u=dn(e)),Y(e)?(l=Tt(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):c&&(l.x=ve(c))),{x:f.left+u.scrollLeft-l.x,y:f.top+u.scrollTop-l.y,width:f.width,height:f.height}}function gn(t){var e=new Map,n=new Set,s=[];t.forEach(function(c){e.set(c.name,c)});function a(c){n.add(c.name);var f=[].concat(c.requires||[],c.requiresIfExists||[]);f.forEach(function(u){if(!n.has(u)){var l=e.get(u);l&&a(l)}}),s.push(c)}return t.forEach(function(c){n.has(c.name)||a(c)}),s}function mn(t){var e=gn(t);return Ar.reduce(function(n,s){return n.concat(e.filter(function(a){return a.phase===s}))},[])}function yn(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function bn(t){var e=t.reduce(function(n,s){var a=n[s.name];return n[s.name]=a?Object.assign({},a,s,{options:Object.assign({},a.options,s.options),data:Object.assign({},a.data,s.data)}):s,n},{});return Object.keys(e).map(function(n){return e[n]})}var Ge={placement:"bottom",modifiers:[],strategy:"absolute"};function Xe(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(s){return!(s&&typeof s.getBoundingClientRect=="function")})}function wn(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,s=n===void 0?[]:n,a=e.defaultOptions,c=a===void 0?Ge:a;return function(u,l,g){g===void 0&&(g=c);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ge,c),modifiersData:{},elements:{reference:u,popper:l},attributes:{},styles:{}},O=[],P=!1,m={state:d,setOptions:function($){var j=typeof $=="function"?$(d.options):$;b(),d.options=Object.assign({},c,d.options,j),d.scrollParents={reference:xt(u)?Ft(u):u.contextElement?Ft(u.contextElement):[],popper:Ft(l)};var y=mn(bn([].concat(s,d.options.modifiers)));return d.orderedModifiers=y.filter(function(h){return h.enabled}),E(),m.update()},forceUpdate:function(){if(!P){var $=d.elements,j=$.reference,y=$.popper;if(!!Xe(j,y)){d.rects={reference:hn(j,Vt(y),d.options.strategy==="fixed"),popper:ue(y)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(V){return d.modifiersData[V.name]=Object.assign({},V.data)});for(var h=0;h<d.orderedModifiers.length;h++){if(d.reset===!0){d.reset=!1,h=-1;continue}var w=d.orderedModifiers[h],S=w.fn,A=w.options,D=A===void 0?{}:A,M=w.name;typeof S=="function"&&(d=S({state:d,options:D,name:M,instance:m})||d)}}}},update:yn(function(){return new Promise(function(x){m.forceUpdate(),x(d)})}),destroy:function(){b(),P=!0}};if(!Xe(u,l))return m;m.setOptions(g).then(function(x){!P&&g.onFirstUpdate&&g.onFirstUpdate(x)});function E(){d.orderedModifiers.forEach(function(x){var $=x.name,j=x.options,y=j===void 0?{}:j,h=x.effect;if(typeof h=="function"){var w=h({state:d,name:$,instance:m,options:y}),S=function(){};O.push(w||S)}})}function b(){O.forEach(function(x){return x()}),O=[]}return m}}var On=[Wr,cn,Hr,Pr,an,tn,un,Mr,rn],xn=wn({defaultModifiers:On}),Kt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},me={exports:{}};(function(t,e){var n=200,s="__lodash_hash_undefined__",a=800,c=16,f=9007199254740991,u="[object Arguments]",l="[object Array]",g="[object AsyncFunction]",d="[object Boolean]",O="[object Date]",P="[object Error]",m="[object Function]",E="[object GeneratorFunction]",b="[object Map]",x="[object Number]",$="[object Null]",j="[object Object]",y="[object Proxy]",h="[object RegExp]",w="[object Set]",S="[object String]",A="[object Undefined]",D="[object WeakMap]",M="[object ArrayBuffer]",V="[object DataView]",F="[object Float32Array]",W="[object Float64Array]",I="[object Int8Array]",pt="[object Int16Array]",dt="[object Int32Array]",R="[object Uint8Array]",k="[object Uint8ClampedArray]",Et="[object Uint16Array]",at="[object Uint32Array]",At=/[\\^$.*+?()[\]{}|]/g,Rt=/^\[object .+?Constructor\]$/,vt=/^(?:0|[1-9]\d*)$/,C={};C[F]=C[W]=C[I]=C[pt]=C[dt]=C[R]=C[k]=C[Et]=C[at]=!0,C[u]=C[l]=C[M]=C[d]=C[V]=C[O]=C[P]=C[m]=C[b]=C[x]=C[j]=C[h]=C[w]=C[S]=C[D]=!1;var st=typeof Kt=="object"&&Kt&&Kt.Object===Object&&Kt,nt=typeof self=="object"&&self&&self.Object===Object&&self,tt=st||nt||Function("return this")(),ht=e&&!e.nodeType&&e,U=ht&&!0&&t&&!t.nodeType&&t,Ct=U&&U.exports===ht,Ht=Ct&&st.process,jt=function(){try{var r=U&&U.require&&U.require("util").types;return r||Ht&&Ht.binding&&Ht.binding("util")}catch{}}(),Zt=jt&&jt.isTypedArray;function Jt(r,i,o){switch(o.length){case 0:return r.call(i);case 1:return r.call(i,o[0]);case 2:return r.call(i,o[0],o[1]);case 3:return r.call(i,o[0],o[1],o[2])}return r.apply(i,o)}function ye(r,i){for(var o=-1,v=Array(r);++o<r;)v[o]=i(o);return v}function be(r){return function(i){return r(i)}}function Qt(r,i){return r==null?void 0:r[i]}function te(r,i){return function(o){return r(i(o))}}var we=Array.prototype,Oe=Function.prototype,K=Object.prototype,lt=tt["__core-js_shared__"],gt=Oe.toString,Z=K.hasOwnProperty,Pt=function(){var r=/[^.]+$/.exec(lt&<.keys&<.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),zt=K.toString,ee=gt.call(Object),re=RegExp("^"+gt.call(Z).replace(At,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mt=Ct?tt.Buffer:void 0,Je=tt.Symbol,Qe=tt.Uint8Array,tr=mt?mt.allocUnsafe:void 0,er=te(Object.getPrototypeOf,Object),rr=Object.create,Hn=K.propertyIsEnumerable,zn=we.splice,yt=Je?Je.toStringTag:void 0,ne=function(){try{var r=Te(Object,"defineProperty");return r({},"",{}),r}catch{}}(),Wn=mt?mt.isBuffer:void 0,nr=Math.max,kn=Date.now,ir=Te(tt,"Map"),Wt=Te(Object,"create"),Un=function(){function r(){}return function(i){if(!wt(i))return{};if(rr)return rr(i);r.prototype=i;var o=new r;return r.prototype=void 0,o}}();function bt(r){var i=-1,o=r==null?0:r.length;for(this.clear();++i<o;){var v=r[i];this.set(v[0],v[1])}}function qn(){this.__data__=Wt?Wt(null):{},this.size=0}function Gn(r){var i=this.has(r)&&delete this.__data__[r];return this.size-=i?1:0,i}function Xn(r){var i=this.__data__;if(Wt){var o=i[r];return o===s?void 0:o}return Z.call(i,r)?i[r]:void 0}function Yn(r){var i=this.__data__;return Wt?i[r]!==void 0:Z.call(i,r)}function Kn(r,i){var o=this.__data__;return this.size+=this.has(r)?0:1,o[r]=Wt&&i===void 0?s:i,this}bt.prototype.clear=qn,bt.prototype.delete=Gn,bt.prototype.get=Xn,bt.prototype.has=Yn,bt.prototype.set=Kn;function ct(r){var i=-1,o=r==null?0:r.length;for(this.clear();++i<o;){var v=r[i];this.set(v[0],v[1])}}function Zn(){this.__data__=[],this.size=0}function Jn(r){var i=this.__data__,o=ie(i,r);if(o<0)return!1;var v=i.length-1;return o==v?i.pop():zn.call(i,o,1),--this.size,!0}function Qn(r){var i=this.__data__,o=ie(i,r);return o<0?void 0:i[o][1]}function ti(r){return ie(this.__data__,r)>-1}function ei(r,i){var o=this.__data__,v=ie(o,r);return v<0?(++this.size,o.push([r,i])):o[v][1]=i,this}ct.prototype.clear=Zn,ct.prototype.delete=Jn,ct.prototype.get=Qn,ct.prototype.has=ti,ct.prototype.set=ei;function $t(r){var i=-1,o=r==null?0:r.length;for(this.clear();++i<o;){var v=r[i];this.set(v[0],v[1])}}function ri(){this.size=0,this.__data__={hash:new bt,map:new(ir||ct),string:new bt}}function ni(r){var i=ae(this,r).delete(r);return this.size-=i?1:0,i}function ii(r){return ae(this,r).get(r)}function oi(r){return ae(this,r).has(r)}function ai(r,i){var o=ae(this,r),v=o.size;return o.set(r,i),this.size+=o.size==v?0:1,this}$t.prototype.clear=ri,$t.prototype.delete=ni,$t.prototype.get=ii,$t.prototype.has=oi,$t.prototype.set=ai;function Bt(r){var i=this.__data__=new ct(r);this.size=i.size}function si(){this.__data__=new ct,this.size=0}function ci(r){var i=this.__data__,o=i.delete(r);return this.size=i.size,o}function fi(r){return this.__data__.get(r)}function li(r){return this.__data__.has(r)}function ui(r,i){var o=this.__data__;if(o instanceof ct){var v=o.__data__;if(!ir||v.length<n-1)return v.push([r,i]),this.size=++o.size,this;o=this.__data__=new $t(v)}return o.set(r,i),this.size=o.size,this}Bt.prototype.clear=si,Bt.prototype.delete=ci,Bt.prototype.get=fi,Bt.prototype.has=li,Bt.prototype.set=ui;function pi(r,i){var o=Ae(r),v=!o&&Ee(r),T=!o&&!v&&fr(r),B=!o&&!v&&!T&&ur(r),L=o||v||T||B,_=L?ye(r.length,String):[],N=_.length;for(var J in r)(i||Z.call(r,J))&&!(L&&(J=="length"||T&&(J=="offset"||J=="parent")||B&&(J=="buffer"||J=="byteLength"||J=="byteOffset")||sr(J,N)))&&_.push(J);return _}function xe(r,i,o){(o!==void 0&&!se(r[i],o)||o===void 0&&!(i in r))&&_e(r,i,o)}function di(r,i,o){var v=r[i];(!(Z.call(r,i)&&se(v,o))||o===void 0&&!(i in r))&&_e(r,i,o)}function ie(r,i){for(var o=r.length;o--;)if(se(r[o][0],i))return o;return-1}function _e(r,i,o){i=="__proto__"&&ne?ne(r,i,{configurable:!0,enumerable:!0,value:o,writable:!0}):r[i]=o}var vi=Ai();function oe(r){return r==null?r===void 0?A:$:yt&&yt in Object(r)?Ci(r):Li(r)}function or(r){return kt(r)&&oe(r)==u}function hi(r){if(!wt(r)||Bi(r))return!1;var i=je(r)?re:Rt;return i.test(Fi(r))}function gi(r){return kt(r)&&lr(r.length)&&!!C[oe(r)]}function mi(r){if(!wt(r))return Di(r);var i=cr(r),o=[];for(var v in r)v=="constructor"&&(i||!Z.call(r,v))||o.push(v);return o}function ar(r,i,o,v,T){r!==i&&vi(i,function(B,L){if(T||(T=new Bt),wt(B))yi(r,i,L,o,ar,v,T);else{var _=v?v(Se(r,L),B,L+"",r,i,T):void 0;_===void 0&&(_=B),xe(r,L,_)}},pr)}function yi(r,i,o,v,T,B,L){var _=Se(r,o),N=Se(i,o),J=L.get(N);if(J){xe(r,o,J);return}var q=B?B(_,N,o+"",r,i,L):void 0,Ut=q===void 0;if(Ut){var Pe=Ae(N),$e=!Pe&&fr(N),vr=!Pe&&!$e&&ur(N);q=N,Pe||$e||vr?Ae(_)?q=_:Ii(_)?q=Ti(_):$e?(Ut=!1,q=Oi(N,!0)):vr?(Ut=!1,q=_i(N,!0)):q=[]:Ri(N)||Ee(N)?(q=_,Ee(_)?q=Hi(_):(!wt(_)||je(_))&&(q=ji(N))):Ut=!1}Ut&&(L.set(N,q),T(q,N,v,B,L),L.delete(N)),xe(r,o,q)}function bi(r,i){return Vi(Ni(r,i,dr),r+"")}var wi=ne?function(r,i){return ne(r,"toString",{configurable:!0,enumerable:!1,value:Wi(i),writable:!0})}:dr;function Oi(r,i){if(i)return r.slice();var o=r.length,v=tr?tr(o):new r.constructor(o);return r.copy(v),v}function xi(r){var i=new r.constructor(r.byteLength);return new Qe(i).set(new Qe(r)),i}function _i(r,i){var o=i?xi(r.buffer):r.buffer;return new r.constructor(o,r.byteOffset,r.length)}function Ti(r,i){var o=-1,v=r.length;for(i||(i=Array(v));++o<v;)i[o]=r[o];return i}function Si(r,i,o,v){var T=!o;o||(o={});for(var B=-1,L=i.length;++B<L;){var _=i[B],N=v?v(o[_],r[_],_,o,r):void 0;N===void 0&&(N=r[_]),T?_e(o,_,N):di(o,_,N)}return o}function Ei(r){return bi(function(i,o){var v=-1,T=o.length,B=T>1?o[T-1]:void 0,L=T>2?o[2]:void 0;for(B=r.length>3&&typeof B=="function"?(T--,B):void 0,L&&Pi(o[0],o[1],L)&&(B=T<3?void 0:B,T=1),i=Object(i);++v<T;){var _=o[v];_&&r(i,_,v,B)}return i})}function Ai(r){return function(i,o,v){for(var T=-1,B=Object(i),L=v(i),_=L.length;_--;){var N=L[r?_:++T];if(o(B[N],N,B)===!1)break}return i}}function ae(r,i){var o=r.__data__;return $i(i)?o[typeof i=="string"?"string":"hash"]:o.map}function Te(r,i){var o=Qt(r,i);return hi(o)?o:void 0}function Ci(r){var i=Z.call(r,yt),o=r[yt];try{r[yt]=void 0;var v=!0}catch{}var T=zt.call(r);return v&&(i?r[yt]=o:delete r[yt]),T}function ji(r){return typeof r.constructor=="function"&&!cr(r)?Un(er(r)):{}}function sr(r,i){var o=typeof r;return i=i==null?f:i,!!i&&(o=="number"||o!="symbol"&&vt.test(r))&&r>-1&&r%1==0&&r<i}function Pi(r,i,o){if(!wt(o))return!1;var v=typeof i;return(v=="number"?Ce(o)&&sr(i,o.length):v=="string"&&i in o)?se(o[i],r):!1}function $i(r){var i=typeof r;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?r!=="__proto__":r===null}function Bi(r){return!!Pt&&Pt in r}function cr(r){var i=r&&r.constructor,o=typeof i=="function"&&i.prototype||K;return r===o}function Di(r){var i=[];if(r!=null)for(var o in Object(r))i.push(o);return i}function Li(r){return zt.call(r)}function Ni(r,i,o){return i=nr(i===void 0?r.length-1:i,0),function(){for(var v=arguments,T=-1,B=nr(v.length-i,0),L=Array(B);++T<B;)L[T]=v[i+T];T=-1;for(var _=Array(i+1);++T<i;)_[T]=v[T];return _[i]=o(L),Jt(r,this,_)}}function Se(r,i){if(!(i==="constructor"&&typeof r[i]=="function")&&i!="__proto__")return r[i]}var Vi=Mi(wi);function Mi(r){var i=0,o=0;return function(){var v=kn(),T=c-(v-o);if(o=v,T>0){if(++i>=a)return arguments[0]}else i=0;return r.apply(void 0,arguments)}}function Fi(r){if(r!=null){try{return gt.call(r)}catch{}try{return r+""}catch{}}return""}function se(r,i){return r===i||r!==r&&i!==i}var Ee=or(function(){return arguments}())?or:function(r){return kt(r)&&Z.call(r,"callee")&&!Hn.call(r,"callee")},Ae=Array.isArray;function Ce(r){return r!=null&&lr(r.length)&&!je(r)}function Ii(r){return kt(r)&&Ce(r)}var fr=Wn||ki;function je(r){if(!wt(r))return!1;var i=oe(r);return i==m||i==E||i==g||i==y}function lr(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=f}function wt(r){var i=typeof r;return r!=null&&(i=="object"||i=="function")}function kt(r){return r!=null&&typeof r=="object"}function Ri(r){if(!kt(r)||oe(r)!=j)return!1;var i=er(r);if(i===null)return!0;var o=Z.call(i,"constructor")&&i.constructor;return typeof o=="function"&&o instanceof o&>.call(o)==ee}var ur=Zt?be(Zt):gi;function Hi(r){return Si(r,pr(r))}function pr(r){return Ce(r)?pi(r,!0):mi(r)}var zi=Ei(function(r,i,o){ar(r,i,o)});function Wi(r){return function(){return r}}function dr(r){return r}function ki(){return!1}t.exports=zi})(me,me.exports);var Ye=me.exports,Ke=(t,e)=>{const n=t.__vccOpts||t;for(const[s,a]of e)n[s]=a;return n};const _n=p.defineComponent({name:"VOnboardingStep",setup(){const t=p.ref(!1),e=p.inject("next-step",()=>{}),n=p.inject("previous-step",()=>{}),s=p.inject("exit",()=>{}),a=p.inject("options"),c=p.computed(()=>Ye({},a==null?void 0:a.value,l.value.options)),f=p.inject("is-first-step"),u=p.inject("is-last-step"),l=p.inject("step",{}),g=async()=>{await x(),e()},d=async()=>{await x(),n()},O=p.ref(null),{updatePath:P,path:m}=hr(),E=()=>{var h,w,S,A,D,M,V;const y=ce((w=(h=l==null?void 0:l.value)==null?void 0:h.attachTo)==null?void 0:w.element);y&&O.value&&(t.value=!0,(A=(S=c.value)==null?void 0:S.scrollToStep)!=null&&A.enabled&&y.scrollIntoView((M=(D=c.value)==null?void 0:D.scrollToStep)==null?void 0:M.options),xn(y,O.value,c.value.popper),(V=c.value)!=null&&V.disableOverlay||P(y),$(y))},b=async()=>{var y,h,w;await((w=(h=(y=l==null?void 0:l.value)==null?void 0:y.on)==null?void 0:h.beforeStep)==null?void 0:w.call(h)),E()},x=async()=>{var y,h,w;await((w=(h=(y=l==null?void 0:l.value)==null?void 0:y.on)==null?void 0:h.afterStep)==null?void 0:w.call(h)),j()},$=(y=ce(l.value.attachTo.element))=>{const h=l.value.attachTo.classList;!h||!y||y.classList.add(...h)},j=(y=ce(l.value.attachTo.element))=>{const h=l.value.attachTo.classList;!h||!y||y.classList.remove(...h)};return p.onMounted(async()=>{await b()}),{stepElement:O,onNext:g,onPrevious:d,path:m,show:t,step:l,isFirst:f,isLast:u,exit:s}}}),Tn={style:{width:"100%",height:"100%",position:"fixed",top:"0",left:"0",opacity:"0.5","z-index":"var(--v-onboarding-overlay-z, 10)","pointer-events":"none"}},Sn=["d"],En={ref:"stepElement",style:{position:"relative","z-index":"var(--v-onboarding-step-z, 20)"}},An={class:"v-onboarding-item"},Cn={class:"v-onboarding-item__header"},jn={key:0,class:"v-onboarding-item__header-title"},Pn=[p.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[p.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)],$n={key:0,class:"v-onboarding-item__description"},Bn={class:"v-onboarding-item__actions"},Dn=p.createElementVNode("div",{"data-popper-arrow":""},null,-1);function Ln(t,e,n,s,a,c){return p.withDirectives((p.openBlock(),p.createElementBlock("div",null,[(p.openBlock(),p.createElementBlock("svg",Tn,[p.createElementVNode("path",{d:t.path},null,8,Sn)])),p.createElementVNode("div",En,[t.step?p.renderSlot(t.$slots,"default",{key:0},()=>[p.createElementVNode("div",An,[p.createElementVNode("div",Cn,[t.step.content.title?(p.openBlock(),p.createElementBlock("span",jn,p.toDisplayString(t.step.content.title),1)):p.createCommentVNode("",!0),p.createElementVNode("button",{onClick:e[0]||(e[0]=(...f)=>t.exit&&t.exit(...f)),class:"v-onboarding-item__header-close"},Pn)]),t.step.content.description?(p.openBlock(),p.createElementBlock("p",$n,p.toDisplayString(t.step.content.description),1)):p.createCommentVNode("",!0),p.createElementVNode("div",Bn,[t.isFirst?p.createCommentVNode("",!0):(p.openBlock(),p.createElementBlock("button",{key:0,type:"button",onClick:e[1]||(e[1]=(...f)=>t.onPrevious&&t.onPrevious(...f)),class:"v-onboarding-btn-secondary"},"Previous")),p.createElementVNode("button",{onClick:e[2]||(e[2]=(...f)=>t.onNext&&t.onNext(...f)),type:"button",class:"v-onboarding-btn-primary"},p.toDisplayString(t.isLast?"Finish":"Next"),1)])])]):p.createCommentVNode("",!0),Dn],512)],512)),[[p.vShow,t.show]])}var Ze=Ke(_n,[["render",Ln]]);const Nn={popper:{},disableOverlay:!1,scrollToStep:{enabled:!0,options:{behavior:"smooth",block:"center",inline:"center"}}},Vn=p.defineComponent({name:"VOnboardingWrapper",components:{VOnboardingStep:Ze},props:{steps:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})}},setup(t,{expose:e}){const n=p.ref(-1),s=m=>{typeof m=="function"?n.value=m(n.value):n.value=m},a=p.computed(()=>{var m;return((m=t.steps)==null?void 0:m[n.value])||null}),c=()=>{s(m=>m-1)},f=()=>{s(m=>m+1)},u=p.computed(()=>n.value>=t.steps.length||n.value<0),l=()=>{s(0)},g=()=>{s(-1)};e({start:l,finish:g,goToStep:s});const d=p.computed(()=>Ye({},Nn,t.options));p.provide("options",d),p.provide("step",a),p.provide("next-step",f),p.provide("previous-step",c),p.provide("exit",()=>g());const O=p.computed(()=>n.value===0),P=p.computed(()=>n.value===t.steps.length-1);return p.provide("is-first-step",O),p.provide("is-last-step",P),{index:n,activeStep:a,toPreviousStep:c,toNextStep:f,isFinished:u,setIndex:s,isFirstStep:O,isLastStep:P,finish:g}}}),Mn={key:0,"data-v-onboarding-wrapper":""};function Fn(t,e,n,s,a,c){const f=p.resolveComponent("VOnboardingStep");return t.isFinished?p.createCommentVNode("",!0):(p.openBlock(),p.createElementBlock("div",Mn,[p.renderSlot(t.$slots,"default",{key:t.index,step:t.activeStep,next:()=>t.toNextStep(),previous:()=>t.toPreviousStep(),exit:()=>t.finish(),isFirst:t.isFirstStep,isLast:t.isLastStep,index:t.index},()=>[(p.openBlock(),p.createBlock(f,{key:t.index}))])]))}var In=Ke(Vn,[["render",Fn]]);function Rn(t){return{start:()=>{var a;return(a=t==null?void 0:t.value)==null?void 0:a.start()},finish:()=>{var a;return(a=t==null?void 0:t.value)==null?void 0:a.finish()},goToStep:a=>{var c;return(c=t==null?void 0:t.value)==null?void 0:c.goToStep(a)}}}var qi="";it.VOnboardingStep=Ze,it.VOnboardingWrapper=In,it.useVOnboarding=Rn,Object.defineProperties(it,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|