react-shepherd 6.0.5 → 6.1.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.
@@ -1,4 +1,4 @@
1
- (function(yt,Dt){typeof exports=="object"&&typeof module<"u"?Dt(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],Dt):(yt=typeof globalThis<"u"?globalThis:yt||self,Dt(yt.ShepherdProReact={},yt.require$$0))})(this,function(yt,Dt){"use strict";var Fn={exports:{}},He={};/**
1
+ (function(ie,pe){typeof exports=="object"&&typeof module<"u"?pe(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],pe):(ie=typeof globalThis<"u"?globalThis:ie||self,pe(ie.ShepherdProReact={},ie.require$$0))})(this,function(ie,pe){"use strict";var vt={exports:{}},Ye={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Nr;function Ji(){if(Nr)return He;Nr=1;var t=Dt,e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(l,c,a){var f,h={},d=null,p=null;a!==void 0&&(d=""+a),c.key!==void 0&&(d=""+c.key),c.ref!==void 0&&(p=c.ref);for(f in c)r.call(c,f)&&!i.hasOwnProperty(f)&&(h[f]=c[f]);if(l&&l.defaultProps)for(f in c=l.defaultProps,c)h[f]===void 0&&(h[f]=c[f]);return{$$typeof:e,type:l,key:d,ref:p,props:h,_owner:o.current}}return He.Fragment=n,He.jsx=s,He.jsxs=s,He}var Ve={};/**
9
+ */var Jt;function tr(){if(Jt)return Ye;Jt=1;var e=pe,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function o(c,a,u){var f,h={},d=null,g=null;u!==void 0&&(d=""+u),a.key!==void 0&&(d=""+a.key),a.ref!==void 0&&(g=a.ref);for(f in a)r.call(a,f)&&!s.hasOwnProperty(f)&&(h[f]=a[f]);if(c&&c.defaultProps)for(f in a=c.defaultProps,a)h[f]===void 0&&(h[f]=a[f]);return{$$typeof:t,type:c,key:d,ref:g,props:h,_owner:i.current}}return Ye.Fragment=n,Ye.jsx=o,Ye.jsxs=o,Ye}var ze={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,17 +14,17 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Hr;function Xi(){return Hr||(Hr=1,process.env.NODE_ENV!=="production"&&function(){var t=Dt,e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),a=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),m=Symbol.iterator,y="@@iterator";function _(u){if(u===null||typeof u!="object")return null;var v=m&&u[m]||u[y];return typeof v=="function"?v:null}var w=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(u){{for(var v=arguments.length,E=new Array(v>1?v-1:0),T=1;T<v;T++)E[T-1]=arguments[T];S("error",u,E)}}function S(u,v,E){{var T=w.ReactDebugCurrentFrame,R=T.getStackAddendum();R!==""&&(v+="%s",E=E.concat([R]));var j=E.map(function(C){return String(C)});j.unshift("Warning: "+v),Function.prototype.apply.call(console[u],console,j)}}var b=!1,g=!1,O=!1,I=!1,G=!1,M;M=Symbol.for("react.module.reference");function N(u){return!!(typeof u=="string"||typeof u=="function"||u===r||u===i||G||u===o||u===a||u===f||I||u===p||b||g||O||typeof u=="object"&&u!==null&&(u.$$typeof===d||u.$$typeof===h||u.$$typeof===s||u.$$typeof===l||u.$$typeof===c||u.$$typeof===M||u.getModuleId!==void 0))}function D(u,v,E){var T=u.displayName;if(T)return T;var R=v.displayName||v.name||"";return R!==""?E+"("+R+")":E}function W(u){return u.displayName||"Context"}function B(u){if(u==null)return null;if(typeof u.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case a:return"Suspense";case f:return"SuspenseList"}if(typeof u=="object")switch(u.$$typeof){case l:var v=u;return W(v)+".Consumer";case s:var E=u;return W(E._context)+".Provider";case c:return D(u,u.render,"ForwardRef");case h:var T=u.displayName||null;return T!==null?T:B(u.type)||"Memo";case d:{var R=u,j=R._payload,C=R._init;try{return B(C(j))}catch{return null}}}return null}var A=Object.assign,H=0,Y,X,rt,Z,K,ut,Pn;function Mi(){}Mi.__reactDisabledLog=!0;function ju(){{if(H===0){Y=console.log,X=console.info,rt=console.warn,Z=console.error,K=console.group,ut=console.groupCollapsed,Pn=console.groupEnd;var u={configurable:!0,enumerable:!0,value:Mi,writable:!0};Object.defineProperties(console,{info:u,log:u,warn:u,error:u,group:u,groupCollapsed:u,groupEnd:u})}H++}}function Bu(){{if(H--,H===0){var u={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},u,{value:Y}),info:A({},u,{value:X}),warn:A({},u,{value:rt}),error:A({},u,{value:Z}),group:A({},u,{value:K}),groupCollapsed:A({},u,{value:ut}),groupEnd:A({},u,{value:Pn})})}H<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Pr=w.ReactCurrentDispatcher,kr;function kn(u,v,E){{if(kr===void 0)try{throw Error()}catch(R){var T=R.stack.trim().match(/\n( *(at )?)/);kr=T&&T[1]||""}return`
18
- `+kr+u}}var Mr=!1,Mn;{var Wu=typeof WeakMap=="function"?WeakMap:Map;Mn=new Wu}function Di(u,v){if(!u||Mr)return"";{var E=Mn.get(u);if(E!==void 0)return E}var T;Mr=!0;var R=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var j;j=Pr.current,Pr.current=null,ju();try{if(v){var C=function(){throw Error()};if(Object.defineProperty(C.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(C,[])}catch(it){T=it}Reflect.construct(u,[],C)}else{try{C.call()}catch(it){T=it}u.call(C.prototype)}}else{try{throw Error()}catch(it){T=it}u()}}catch(it){if(it&&T&&typeof it.stack=="string"){for(var $=it.stack.split(`
19
- `),ot=T.stack.split(`
20
- `),z=$.length-1,J=ot.length-1;z>=1&&J>=0&&$[z]!==ot[J];)J--;for(;z>=1&&J>=0;z--,J--)if($[z]!==ot[J]){if(z!==1||J!==1)do if(z--,J--,J<0||$[z]!==ot[J]){var ht=`
21
- `+$[z].replace(" at new "," at ");return u.displayName&&ht.includes("<anonymous>")&&(ht=ht.replace("<anonymous>",u.displayName)),typeof u=="function"&&Mn.set(u,ht),ht}while(z>=1&&J>=0);break}}}finally{Mr=!1,Pr.current=j,Bu(),Error.prepareStackTrace=R}var Ne=u?u.displayName||u.name:"",ue=Ne?kn(Ne):"";return typeof u=="function"&&Mn.set(u,ue),ue}function Nu(u,v,E){return Di(u,!1)}function Hu(u){var v=u.prototype;return!!(v&&v.isReactComponent)}function Dn(u,v,E){if(u==null)return"";if(typeof u=="function")return Di(u,Hu(u));if(typeof u=="string")return kn(u);switch(u){case a:return kn("Suspense");case f:return kn("SuspenseList")}if(typeof u=="object")switch(u.$$typeof){case c:return Nu(u.render);case h:return Dn(u.type,v,E);case d:{var T=u,R=T._payload,j=T._init;try{return Dn(j(R),v,E)}catch{}}}return""}var on=Object.prototype.hasOwnProperty,Li={},Fi=w.ReactDebugCurrentFrame;function Ln(u){if(u){var v=u._owner,E=Dn(u.type,u._source,v?v.type:null);Fi.setExtraStackFrame(E)}else Fi.setExtraStackFrame(null)}function Vu(u,v,E,T,R){{var j=Function.call.bind(on);for(var C in u)if(j(u,C)){var $=void 0;try{if(typeof u[C]!="function"){var ot=Error((T||"React class")+": "+E+" type `"+C+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof u[C]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ot.name="Invariant Violation",ot}$=u[C](v,C,T,E,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(z){$=z}$&&!($ instanceof Error)&&(Ln(R),x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",T||"React class",E,C,typeof $),Ln(null)),$ instanceof Error&&!($.message in Li)&&(Li[$.message]=!0,Ln(R),x("Failed %s type: %s",E,$.message),Ln(null))}}}var Uu=Array.isArray;function Dr(u){return Uu(u)}function qu(u){{var v=typeof Symbol=="function"&&Symbol.toStringTag,E=v&&u[Symbol.toStringTag]||u.constructor.name||"Object";return E}}function Yu(u){try{return ji(u),!1}catch{return!0}}function ji(u){return""+u}function Bi(u){if(Yu(u))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",qu(u)),ji(u)}var sn=w.ReactCurrentOwner,zu={key:!0,ref:!0,__self:!0,__source:!0},Wi,Ni,Lr;Lr={};function Ku(u){if(on.call(u,"ref")){var v=Object.getOwnPropertyDescriptor(u,"ref").get;if(v&&v.isReactWarning)return!1}return u.ref!==void 0}function Ju(u){if(on.call(u,"key")){var v=Object.getOwnPropertyDescriptor(u,"key").get;if(v&&v.isReactWarning)return!1}return u.key!==void 0}function Xu(u,v){if(typeof u.ref=="string"&&sn.current&&v&&sn.current.stateNode!==v){var E=B(sn.current.type);Lr[E]||(x('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',B(sn.current.type),u.ref),Lr[E]=!0)}}function Gu(u,v){{var E=function(){Wi||(Wi=!0,x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",v))};E.isReactWarning=!0,Object.defineProperty(u,"key",{get:E,configurable:!0})}}function Zu(u,v){{var E=function(){Ni||(Ni=!0,x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",v))};E.isReactWarning=!0,Object.defineProperty(u,"ref",{get:E,configurable:!0})}}var Qu=function(u,v,E,T,R,j,C){var $={$$typeof:e,type:u,key:v,ref:E,props:C,_owner:j};return $._store={},Object.defineProperty($._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty($,"_self",{configurable:!1,enumerable:!1,writable:!1,value:T}),Object.defineProperty($,"_source",{configurable:!1,enumerable:!1,writable:!1,value:R}),Object.freeze&&(Object.freeze($.props),Object.freeze($)),$};function tf(u,v,E,T,R){{var j,C={},$=null,ot=null;E!==void 0&&(Bi(E),$=""+E),Ju(v)&&(Bi(v.key),$=""+v.key),Ku(v)&&(ot=v.ref,Xu(v,R));for(j in v)on.call(v,j)&&!zu.hasOwnProperty(j)&&(C[j]=v[j]);if(u&&u.defaultProps){var z=u.defaultProps;for(j in z)C[j]===void 0&&(C[j]=z[j])}if($||ot){var J=typeof u=="function"?u.displayName||u.name||"Unknown":u;$&&Gu(C,J),ot&&Zu(C,J)}return Qu(u,$,ot,R,T,sn.current,C)}}var Fr=w.ReactCurrentOwner,Hi=w.ReactDebugCurrentFrame;function We(u){if(u){var v=u._owner,E=Dn(u.type,u._source,v?v.type:null);Hi.setExtraStackFrame(E)}else Hi.setExtraStackFrame(null)}var jr;jr=!1;function Br(u){return typeof u=="object"&&u!==null&&u.$$typeof===e}function Vi(){{if(Fr.current){var u=B(Fr.current.type);if(u)return`
17
+ */var Kt;function nr(){return Kt||(Kt=1,process.env.NODE_ENV!=="production"&&function(){var e=pe,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),c=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),v=Symbol.iterator,x="@@iterator";function S(l){if(l===null||typeof l!="object")return null;var p=v&&l[v]||l[x];return typeof p=="function"?p:null}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _(l){{for(var p=arguments.length,b=new Array(p>1?p-1:0),E=1;E<p;E++)b[E-1]=arguments[E];R("error",l,b)}}function R(l,p,b){{var E=w.ReactDebugCurrentFrame,A=E.getStackAddendum();A!==""&&(p+="%s",b=b.concat([A]));var I=b.map(function(C){return String(C)});I.unshift("Warning: "+p),Function.prototype.apply.call(console[l],console,I)}}var y=!1,m=!1,T=!1,B=!1,le=!1,$;$=Symbol.for("react.module.reference");function X(l){return!!(typeof l=="string"||typeof l=="function"||l===r||l===s||le||l===i||l===u||l===f||B||l===g||y||m||T||typeof l=="object"&&l!==null&&(l.$$typeof===d||l.$$typeof===h||l.$$typeof===o||l.$$typeof===c||l.$$typeof===a||l.$$typeof===$||l.getModuleId!==void 0))}function U(l,p,b){var E=l.displayName;if(E)return E;var A=p.displayName||p.name||"";return A!==""?b+"("+A+")":b}function V(l){return l.displayName||"Context"}function D(l){if(l==null)return null;if(typeof l.tag=="number"&&_("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case r:return"Fragment";case n:return"Portal";case s:return"Profiler";case i:return"StrictMode";case u:return"Suspense";case f:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case c:var p=l;return V(p)+".Consumer";case o:var b=l;return V(b._context)+".Provider";case a:return U(l,l.render,"ForwardRef");case h:var E=l.displayName||null;return E!==null?E:D(l.type)||"Memo";case d:{var A=l,I=A._payload,C=A._init;try{return D(C(I))}catch{return null}}}return null}var L=Object.assign,G=0,Y,de,we,he,ne,re,ht;function Wn(){}Wn.__reactDisabledLog=!0;function mo(){{if(G===0){Y=console.log,de=console.info,we=console.warn,he=console.error,ne=console.group,re=console.groupCollapsed,ht=console.groupEnd;var l={configurable:!0,enumerable:!0,value:Wn,writable:!0};Object.defineProperties(console,{info:l,log:l,warn:l,error:l,group:l,groupCollapsed:l,groupEnd:l})}G++}}function bo(){{if(G--,G===0){var l={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:L({},l,{value:Y}),info:L({},l,{value:de}),warn:L({},l,{value:we}),error:L({},l,{value:he}),group:L({},l,{value:ne}),groupCollapsed:L({},l,{value:re}),groupEnd:L({},l,{value:ht})})}G<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Nt=w.ReactCurrentDispatcher,Wt;function pt(l,p,b){{if(Wt===void 0)try{throw Error()}catch(A){var E=A.stack.trim().match(/\n( *(at )?)/);Wt=E&&E[1]||""}return`
18
+ `+Wt+l}}var Vt=!1,gt;{var vo=typeof WeakMap=="function"?WeakMap:Map;gt=new vo}function Vn(l,p){if(!l||Vt)return"";{var b=gt.get(l);if(b!==void 0)return b}var E;Vt=!0;var A=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var I;I=Nt.current,Nt.current=null,mo();try{if(p){var C=function(){throw Error()};if(Object.defineProperty(C.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(C,[])}catch(z){E=z}Reflect.construct(l,[],C)}else{try{C.call()}catch(z){E=z}l.call(C.prototype)}}else{try{throw Error()}catch(z){E=z}l()}}catch(z){if(z&&E&&typeof z.stack=="string"){for(var O=z.stack.split(`
19
+ `),H=E.stack.split(`
20
+ `),F=O.length-1,j=H.length-1;F>=1&&j>=0&&O[F]!==H[j];)j--;for(;F>=1&&j>=0;F--,j--)if(O[F]!==H[j]){if(F!==1||j!==1)do if(F--,j--,j<0||O[F]!==H[j]){var Z=`
21
+ `+O[F].replace(" at new "," at ");return l.displayName&&Z.includes("<anonymous>")&&(Z=Z.replace("<anonymous>",l.displayName)),typeof l=="function"&&gt.set(l,Z),Z}while(F>=1&&j>=0);break}}}finally{Vt=!1,Nt.current=I,bo(),Error.prepareStackTrace=A}var Ue=l?l.displayName||l.name:"",Pe=Ue?pt(Ue):"";return typeof l=="function"&&gt.set(l,Pe),Pe}function yo(l,p,b){return Vn(l,!1)}function _o(l){var p=l.prototype;return!!(p&&p.isReactComponent)}function mt(l,p,b){if(l==null)return"";if(typeof l=="function")return Vn(l,_o(l));if(typeof l=="string")return pt(l);switch(l){case u:return pt("Suspense");case f:return pt("SuspenseList")}if(typeof l=="object")switch(l.$$typeof){case a:return yo(l.render);case h:return mt(l.type,p,b);case d:{var E=l,A=E._payload,I=E._init;try{return mt(I(A),p,b)}catch{}}}return""}var et=Object.prototype.hasOwnProperty,Hn={},$n=w.ReactDebugCurrentFrame;function bt(l){if(l){var p=l._owner,b=mt(l.type,l._source,p?p.type:null);$n.setExtraStackFrame(b)}else $n.setExtraStackFrame(null)}function wo(l,p,b,E,A){{var I=Function.call.bind(et);for(var C in l)if(I(l,C)){var O=void 0;try{if(typeof l[C]!="function"){var H=Error((E||"React class")+": "+b+" type `"+C+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof l[C]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw H.name="Invariant Violation",H}O=l[C](p,C,E,b,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(F){O=F}O&&!(O instanceof Error)&&(bt(A),_("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",E||"React class",b,C,typeof O),bt(null)),O instanceof Error&&!(O.message in Hn)&&(Hn[O.message]=!0,bt(A),_("Failed %s type: %s",b,O.message),bt(null))}}}var xo=Array.isArray;function Ht(l){return xo(l)}function Eo(l){{var p=typeof Symbol=="function"&&Symbol.toStringTag,b=p&&l[Symbol.toStringTag]||l.constructor.name||"Object";return b}}function So(l){try{return Un(l),!1}catch{return!0}}function Un(l){return""+l}function Yn(l){if(So(l))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Eo(l)),Un(l)}var tt=w.ReactCurrentOwner,Oo={key:!0,ref:!0,__self:!0,__source:!0},zn,qn,$t;$t={};function Ro(l){if(et.call(l,"ref")){var p=Object.getOwnPropertyDescriptor(l,"ref").get;if(p&&p.isReactWarning)return!1}return l.ref!==void 0}function To(l){if(et.call(l,"key")){var p=Object.getOwnPropertyDescriptor(l,"key").get;if(p&&p.isReactWarning)return!1}return l.key!==void 0}function Co(l,p){if(typeof l.ref=="string"&&tt.current&&p&&tt.current.stateNode!==p){var b=D(tt.current.type);$t[b]||(_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',D(tt.current.type),l.ref),$t[b]=!0)}}function Ao(l,p){{var b=function(){zn||(zn=!0,_("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",p))};b.isReactWarning=!0,Object.defineProperty(l,"key",{get:b,configurable:!0})}}function Po(l,p){{var b=function(){qn||(qn=!0,_("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",p))};b.isReactWarning=!0,Object.defineProperty(l,"ref",{get:b,configurable:!0})}}var ko=function(l,p,b,E,A,I,C){var O={$$typeof:t,type:l,key:p,ref:b,props:C,_owner:I};return O._store={},Object.defineProperty(O._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(O,"_self",{configurable:!1,enumerable:!1,writable:!1,value:E}),Object.defineProperty(O,"_source",{configurable:!1,enumerable:!1,writable:!1,value:A}),Object.freeze&&(Object.freeze(O.props),Object.freeze(O)),O};function Io(l,p,b,E,A){{var I,C={},O=null,H=null;b!==void 0&&(Yn(b),O=""+b),To(p)&&(Yn(p.key),O=""+p.key),Ro(p)&&(H=p.ref,Co(p,A));for(I in p)et.call(p,I)&&!Oo.hasOwnProperty(I)&&(C[I]=p[I]);if(l&&l.defaultProps){var F=l.defaultProps;for(I in F)C[I]===void 0&&(C[I]=F[I])}if(O||H){var j=typeof l=="function"?l.displayName||l.name||"Unknown":l;O&&Ao(C,j),H&&Po(C,j)}return ko(l,O,H,A,E,tt.current,C)}}var Ut=w.ReactCurrentOwner,Jn=w.ReactDebugCurrentFrame;function $e(l){if(l){var p=l._owner,b=mt(l.type,l._source,p?p.type:null);Jn.setExtraStackFrame(b)}else Jn.setExtraStackFrame(null)}var Yt;Yt=!1;function zt(l){return typeof l=="object"&&l!==null&&l.$$typeof===t}function Kn(){{if(Ut.current){var l=D(Ut.current.type);if(l)return`
22
22
 
23
- Check the render method of \``+u+"`."}return""}}function ef(u){return""}var Ui={};function nf(u){{var v=Vi();if(!v){var E=typeof u=="string"?u:u.displayName||u.name;E&&(v=`
23
+ Check the render method of \``+l+"`."}return""}}function Mo(l){return""}var Xn={};function Fo(l){{var p=Kn();if(!p){var b=typeof l=="string"?l:l.displayName||l.name;b&&(p=`
24
24
 
25
- Check the top-level render call using <`+E+">.")}return v}}function qi(u,v){{if(!u._store||u._store.validated||u.key!=null)return;u._store.validated=!0;var E=nf(v);if(Ui[E])return;Ui[E]=!0;var T="";u&&u._owner&&u._owner!==Fr.current&&(T=" It was passed a child from "+B(u._owner.type)+"."),We(u),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',E,T),We(null)}}function Yi(u,v){{if(typeof u!="object")return;if(Dr(u))for(var E=0;E<u.length;E++){var T=u[E];Br(T)&&qi(T,v)}else if(Br(u))u._store&&(u._store.validated=!0);else if(u){var R=_(u);if(typeof R=="function"&&R!==u.entries)for(var j=R.call(u),C;!(C=j.next()).done;)Br(C.value)&&qi(C.value,v)}}}function rf(u){{var v=u.type;if(v==null||typeof v=="string")return;var E;if(typeof v=="function")E=v.propTypes;else if(typeof v=="object"&&(v.$$typeof===c||v.$$typeof===h))E=v.propTypes;else return;if(E){var T=B(v);Vu(E,u.props,"prop",T,u)}else if(v.PropTypes!==void 0&&!jr){jr=!0;var R=B(v);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",R||"Unknown")}typeof v.getDefaultProps=="function"&&!v.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function of(u){{for(var v=Object.keys(u.props),E=0;E<v.length;E++){var T=v[E];if(T!=="children"&&T!=="key"){We(u),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",T),We(null);break}}u.ref!==null&&(We(u),x("Invalid attribute `ref` supplied to `React.Fragment`."),We(null))}}var zi={};function Ki(u,v,E,T,R,j){{var C=N(u);if(!C){var $="";(u===void 0||typeof u=="object"&&u!==null&&Object.keys(u).length===0)&&($+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ot=ef();ot?$+=ot:$+=Vi();var z;u===null?z="null":Dr(u)?z="array":u!==void 0&&u.$$typeof===e?(z="<"+(B(u.type)||"Unknown")+" />",$=" Did you accidentally export a JSX literal instead of a component?"):z=typeof u,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",z,$)}var J=tf(u,v,E,R,j);if(J==null)return J;if(C){var ht=v.children;if(ht!==void 0)if(T)if(Dr(ht)){for(var Ne=0;Ne<ht.length;Ne++)Yi(ht[Ne],u);Object.freeze&&Object.freeze(ht)}else x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Yi(ht,u)}if(on.call(v,"key")){var ue=B(u),it=Object.keys(v).filter(function(ff){return ff!=="key"}),Wr=it.length>0?"{key: someKey, "+it.join(": ..., ")+": ...}":"{key: someKey}";if(!zi[ue+Wr]){var uf=it.length>0?"{"+it.join(": ..., ")+": ...}":"{}";x(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+b+">.")}return p}}function Gn(l,p){{if(!l._store||l._store.validated||l.key!=null)return;l._store.validated=!0;var b=Fo(p);if(Xn[b])return;Xn[b]=!0;var E="";l&&l._owner&&l._owner!==Ut.current&&(E=" It was passed a child from "+D(l._owner.type)+"."),$e(l),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',b,E),$e(null)}}function Zn(l,p){{if(typeof l!="object")return;if(Ht(l))for(var b=0;b<l.length;b++){var E=l[b];zt(E)&&Gn(E,p)}else if(zt(l))l._store&&(l._store.validated=!0);else if(l){var A=S(l);if(typeof A=="function"&&A!==l.entries)for(var I=A.call(l),C;!(C=I.next()).done;)zt(C.value)&&Gn(C.value,p)}}}function Lo(l){{var p=l.type;if(p==null||typeof p=="string")return;var b;if(typeof p=="function")b=p.propTypes;else if(typeof p=="object"&&(p.$$typeof===a||p.$$typeof===h))b=p.propTypes;else return;if(b){var E=D(p);wo(b,l.props,"prop",E,l)}else if(p.PropTypes!==void 0&&!Yt){Yt=!0;var A=D(p);_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",A||"Unknown")}typeof p.getDefaultProps=="function"&&!p.getDefaultProps.isReactClassApproved&&_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function jo(l){{for(var p=Object.keys(l.props),b=0;b<p.length;b++){var E=p[b];if(E!=="children"&&E!=="key"){$e(l),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",E),$e(null);break}}l.ref!==null&&($e(l),_("Invalid attribute `ref` supplied to `React.Fragment`."),$e(null))}}var Qn={};function er(l,p,b,E,A,I){{var C=X(l);if(!C){var O="";(l===void 0||typeof l=="object"&&l!==null&&Object.keys(l).length===0)&&(O+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var H=Mo();H?O+=H:O+=Kn();var F;l===null?F="null":Ht(l)?F="array":l!==void 0&&l.$$typeof===t?(F="<"+(D(l.type)||"Unknown")+" />",O=" Did you accidentally export a JSX literal instead of a component?"):F=typeof l,_("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",F,O)}var j=Io(l,p,b,A,I);if(j==null)return j;if(C){var Z=p.children;if(Z!==void 0)if(E)if(Ht(Z)){for(var Ue=0;Ue<Z.length;Ue++)Zn(Z[Ue],l);Object.freeze&&Object.freeze(Z)}else _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Zn(Z,l)}if(et.call(p,"key")){var Pe=D(l),z=Object.keys(p).filter(function(Ho){return Ho!=="key"}),qt=z.length>0?"{key: someKey, "+z.join(": ..., ")+": ...}":"{key: someKey}";if(!Qn[Pe+qt]){var Vo=z.length>0?"{"+z.join(": ..., ")+": ...}":"{}";_(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,Wr,ue,uf,ue),zi[ue+Wr]=!0}}return u===r?of(J):rf(J),J}}function sf(u,v,E){return Ki(u,v,E,!0)}function lf(u,v,E){return Ki(u,v,E,!1)}var cf=lf,af=sf;Ve.Fragment=r,Ve.jsx=cf,Ve.jsxs=af}()),Ve}process.env.NODE_ENV==="production"?Fn.exports=Ji():Fn.exports=Xi();var Gi=Fn.exports;/*! shepherd.js 13.0.1 */function Zi(t){return t instanceof Element}function Ue(t){return t instanceof HTMLElement}function Lt(t){return typeof t=="function"}function qe(t){return typeof t=="string"}function Q(t){return t===void 0}class jn{on(e,n,r,o=!1){var i;return Q(this.bindings)&&(this.bindings={}),Q(this.bindings[e])&&(this.bindings[e]=[]),(i=this.bindings[e])==null||i.push({handler:n,ctx:r,once:o}),this}once(e,n,r){return this.on(e,n,r,!0)}off(e,n){if(Q(this.bindings)||Q(this.bindings[e]))return this;if(Q(n))delete this.bindings[e];else{var r;(r=this.bindings[e])==null||r.forEach((o,i)=>{if(o.handler===n){var s;(s=this.bindings[e])==null||s.splice(i,1)}})}return this}trigger(e,...n){if(!Q(this.bindings)&&this.bindings[e]){var r;(r=this.bindings[e])==null||r.forEach((o,i)=>{const{ctx:s,handler:l,once:c}=o,a=s||this;if(l.apply(a,n),c){var f;(f=this.bindings[e])==null||f.splice(i,1)}})}return this}}function et(){return et=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},et.apply(null,arguments)}function Vr(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}const Ft={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};Ft.defaultMerge;function Qi(t,e){return e}function Ur(t){return typeof t!="object"||t===null?0:Array.isArray(t)?2:ns(t)?1:t instanceof Set?3:t instanceof Map?4:5}function ts(t){const e=new Set;for(const n of t)for(const r of[...Object.keys(n),...Object.getOwnPropertySymbols(n)])e.add(r);return e}function es(t,e){return typeof t=="object"&&Object.prototype.propertyIsEnumerable.call(t,e)}function qr(t){return{*[Symbol.iterator](){for(const e of t)for(const n of e)yield n}}}const Yr=new Set(["[object Object]","[object Module]"]);function ns(t){if(!Yr.has(Object.prototype.toString.call(t)))return!1;const{constructor:e}=t;if(e===void 0)return!0;const n=e.prototype;return!(n===null||typeof n!="object"||!Yr.has(Object.prototype.toString.call(n))||!n.hasOwnProperty("isPrototypeOf"))}function rs(t,e,n){const r={};for(const o of ts(t)){const i=[];for(const c of t)es(c,o)&&i.push(c[o]);if(i.length===0)continue;const s=e.metaDataUpdater(n,{key:o,parents:t}),l=Kr(i,e,s);l!==Ft.skip&&(o==="__proto__"?Object.defineProperty(r,o,{value:l,configurable:!0,enumerable:!0,writable:!0}):r[o]=l)}return r}function os(t){return t.flat()}function is(t){return new Set(qr(t))}function ss(t){return new Map(qr(t))}function zr(t){return t.at(-1)}var Bn=Object.freeze({__proto__:null,mergeArrays:os,mergeMaps:ss,mergeOthers:zr,mergeRecords:rs,mergeSets:is});function Wn(...t){return ls({})(...t)}function ls(t,e){const n=cs(t,r);function r(...o){return Kr(o,n,e)}return r}function cs(t,e){var n,r;return{defaultMergeFunctions:Bn,mergeFunctions:et({},Bn,Object.fromEntries(Object.entries(t).filter(([o,i])=>Object.hasOwn(Bn,o)).map(([o,i])=>i===!1?[o,zr]:[o,i]))),metaDataUpdater:(n=t.metaDataUpdater)!=null?n:Qi,deepmerge:e,useImplicitDefaultMerging:(r=t.enableImplicitDefaultMerging)!=null?r:!1,actions:Ft}}function Kr(t,e,n){if(t.length===0)return;if(t.length===1)return Nn(t,e,n);const r=Ur(t[0]);if(r!==0&&r!==5){for(let o=1;o<t.length;o++)if(Ur(t[o])!==r)return Nn(t,e,n)}switch(r){case 1:return as(t,e,n);case 2:return us(t,e,n);case 3:return fs(t,e,n);case 4:return ds(t,e,n);default:return Nn(t,e,n)}}function as(t,e,n){const r=e.mergeFunctions.mergeRecords(t,e,n);return r===Ft.defaultMerge||e.useImplicitDefaultMerging&&r===void 0&&e.mergeFunctions.mergeRecords!==e.defaultMergeFunctions.mergeRecords?e.defaultMergeFunctions.mergeRecords(t,e,n):r}function us(t,e,n){const r=e.mergeFunctions.mergeArrays(t,e,n);return r===Ft.defaultMerge||e.useImplicitDefaultMerging&&r===void 0&&e.mergeFunctions.mergeArrays!==e.defaultMergeFunctions.mergeArrays?e.defaultMergeFunctions.mergeArrays(t):r}function fs(t,e,n){const r=e.mergeFunctions.mergeSets(t,e,n);return r===Ft.defaultMerge||e.useImplicitDefaultMerging&&r===void 0&&e.mergeFunctions.mergeSets!==e.defaultMergeFunctions.mergeSets?e.defaultMergeFunctions.mergeSets(t):r}function ds(t,e,n){const r=e.mergeFunctions.mergeMaps(t,e,n);return r===Ft.defaultMerge||e.useImplicitDefaultMerging&&r===void 0&&e.mergeFunctions.mergeMaps!==e.defaultMergeFunctions.mergeMaps?e.defaultMergeFunctions.mergeMaps(t):r}function Nn(t,e,n){const r=e.mergeFunctions.mergeOthers(t,e,n);return r===Ft.defaultMerge||e.useImplicitDefaultMerging&&r===void 0&&e.mergeFunctions.mergeOthers!==e.defaultMergeFunctions.mergeOthers?e.defaultMergeFunctions.mergeOthers(t):r}function Hn(t){const e=Object.getOwnPropertyNames(t.constructor.prototype);for(let n=0;n<e.length;n++){const r=e[n],o=t[r];r!=="constructor"&&typeof o=="function"&&(t[r]=o.bind(t))}return t}function hs(t,e){return n=>{if(t.isOpen()){const r=t.el&&n.currentTarget===t.el;(!Q(e)&&n.currentTarget.matches(e)||r)&&t.tour.next()}}}function ps(t){const{event:e,selector:n}=t.options.advanceOn||{};if(e){const r=hs(t,n);let o=null;if(!Q(n)&&(o=document.querySelector(n),!o))return console.error(`No element was found for the selector supplied to advanceOn: ${n}`);o?(o.addEventListener(e,r),t.on("destroy",()=>o.removeEventListener(e,r))):(document.body.addEventListener(e,r,!0),t.on("destroy",()=>document.body.removeEventListener(e,r,!0)))}else return console.error("advanceOn was defined, but no event name was passed.")}class gs{constructor(e){}}class ms{constructor(e,n){}}function Jr(t){return!qe(t)||t===""?"":t.charAt(t.length-1)!=="-"?`${t}-`:t}function bs(t){const e=t.options.attachTo||{},n=Object.assign({},e);if(Lt(n.element)&&(n.element=n.element.call(t)),qe(n.element)){try{n.element=document.querySelector(n.element)}catch{}n.element||console.error(`The element for this Shepherd step was not found ${e.element}`)}return n}function Xr(t){return t==null?!0:!t.element||!t.on}function Gr(){let t=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const n=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(e=="x"?n:n&3|8).toString(16)})}const fe=Math.min,Kt=Math.max,ln=Math.round,cn=Math.floor,jt=t=>({x:t,y:t}),ys={left:"right",right:"left",bottom:"top",top:"bottom"},vs={start:"end",end:"start"};function Vn(t,e,n){return Kt(t,fe(e,n))}function de(t,e){return typeof t=="function"?t(e):t}function Jt(t){return t.split("-")[0]}function an(t){return t.split("-")[1]}function Un(t){return t==="x"?"y":"x"}function qn(t){return t==="y"?"height":"width"}function he(t){return["top","bottom"].includes(Jt(t))?"y":"x"}function Yn(t){return Un(he(t))}function ws(t,e,n){n===void 0&&(n=!1);const r=an(t),o=Yn(t),i=qn(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=un(s)),[s,un(s)]}function xs(t){const e=un(t);return[zn(t),e,zn(e)]}function zn(t){return t.replace(/start|end/g,e=>vs[e])}function _s(t,e,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?o:r:e?r:o;case"left":case"right":return e?i:s;default:return[]}}function Es(t,e,n,r){const o=an(t);let i=_s(Jt(t),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),e&&(i=i.concat(i.map(zn)))),i}function un(t){return t.replace(/left|right|bottom|top/g,e=>ys[e])}function Ss(t){return et({top:0,right:0,bottom:0,left:0},t)}function Zr(t){return typeof t!="number"?Ss(t):{top:t,right:t,bottom:t,left:t}}function fn(t){const{x:e,y:n,width:r,height:o}=t;return{width:r,height:o,top:n,left:e,right:e+r,bottom:n+o,x:e,y:n}}const Os=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],Ts=["mainAxis","crossAxis","limiter"];function Qr(t,e,n){let{reference:r,floating:o}=t;const i=he(e),s=Yn(e),l=qn(s),c=Jt(e),a=i==="y",f=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,d=r[l]/2-o[l]/2;let p;switch(c){case"top":p={x:f,y:r.y-o.height};break;case"bottom":p={x:f,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:h};break;case"left":p={x:r.x-o.width,y:h};break;default:p={x:r.x,y:r.y}}switch(an(e)){case"start":p[s]-=d*(n&&a?-1:1);break;case"end":p[s]+=d*(n&&a?-1:1);break}return p}const $s=async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(e));let a=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:f,y:h}=Qr(a,r,c),d=r,p={},m=0;for(let y=0;y<l.length;y++){const{name:_,fn:w}=l[y],{x,y:S,data:b,reset:g}=await w({x:f,y:h,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:a,platform:s,elements:{reference:t,floating:e}});f=x??f,h=S??h,p=et({},p,{[_]:et({},p[_],b)}),g&&m<=50&&(m++,typeof g=="object"&&(g.placement&&(d=g.placement),g.rects&&(a=g.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:o}):g.rects),{x:f,y:h}=Qr(a,d,c)),y=-1)}return{x:f,y:h,placement:d,strategy:o,middlewareData:p}};async function to(t,e){var n;e===void 0&&(e={});const{x:r,y:o,platform:i,rects:s,elements:l,strategy:c}=t,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:d=!1,padding:p=0}=de(e,t),m=Zr(p),_=l[d?h==="floating"?"reference":"floating":h],w=fn(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(_)))==null||n?_:_.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:a,rootBoundary:f,strategy:c})),x=h==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),b=await(i.isElement==null?void 0:i.isElement(S))?await(i.getScale==null?void 0:i.getScale(S))||{x:1,y:1}:{x:1,y:1},g=fn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:x,offsetParent:S,strategy:c}):x);return{top:(w.top-g.top+m.top)/b.y,bottom:(g.bottom-w.bottom+m.bottom)/b.y,left:(w.left-g.left+m.left)/b.x,right:(g.right-w.right+m.right)/b.x}}const Cs=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:o,rects:i,platform:s,elements:l,middlewareData:c}=e,{element:a,padding:f=0}=de(t,e)||{};if(a==null)return{};const h=Zr(f),d={x:n,y:r},p=Yn(o),m=qn(p),y=await s.getDimensions(a),_=p==="y",w=_?"top":"left",x=_?"bottom":"right",S=_?"clientHeight":"clientWidth",b=i.reference[m]+i.reference[p]-d[p]-i.floating[m],g=d[p]-i.reference[p],O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let I=O?O[S]:0;(!I||!await(s.isElement==null?void 0:s.isElement(O)))&&(I=l.floating[S]||i.floating[m]);const G=b/2-g/2,M=I/2-y[m]/2-1,N=fe(h[w],M),D=fe(h[x],M),W=N,B=I-y[m]-D,A=I/2-y[m]/2+G,H=Vn(W,A,B),Y=!c.arrow&&an(o)!=null&&A!==H&&i.reference[m]/2-(A<W?N:D)-y[m]/2<0,X=Y?A<W?A-W:A-B:0;return{[p]:d[p]+X,data:et({[p]:H,centerOffset:A-H-X},Y&&{alignmentOffset:X}),reset:Y}}}),As=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var r,o;const{placement:i,middlewareData:s,rects:l,initialPlacement:c,platform:a,elements:f}=n,h=de(e,n),{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:_="none",flipAlignment:w=!0}=h,x=Vr(h,Os);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const S=Jt(i),b=he(c),g=Jt(c)===c,O=await(a.isRTL==null?void 0:a.isRTL(f.floating)),I=m||(g||!w?[un(c)]:xs(c)),G=_!=="none";!m&&G&&I.push(...Es(c,w,_,O));const M=[c,...I],N=await to(n,x),D=[];let W=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&D.push(N[S]),p){const Y=ws(i,l,O);D.push(N[Y[0]],N[Y[1]])}if(W=[...W,{placement:i,overflows:D}],!D.every(Y=>Y<=0)){var B,A;const Y=(((B=s.flip)==null?void 0:B.index)||0)+1,X=M[Y];if(X)return{data:{index:Y,overflows:W},reset:{placement:X}};let rt=(A=W.filter(Z=>Z.overflows[0]<=0).sort((Z,K)=>Z.overflows[1]-K.overflows[1])[0])==null?void 0:A.placement;if(!rt)switch(y){case"bestFit":{var H;const Z=(H=W.filter(K=>{if(G){const ut=he(K.placement);return ut===b||ut==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(ut=>ut>0).reduce((ut,Pn)=>ut+Pn,0)]).sort((K,ut)=>K[1]-ut[1])[0])==null?void 0:H[0];Z&&(rt=Z);break}case"initialPlacement":rt=c;break}if(i!==rt)return{reset:{placement:rt}}}return{}}}},Is=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:r,y:o,placement:i}=n,s=de(e,n),{mainAxis:l=!0,crossAxis:c=!1,limiter:a={fn:x=>{let{x:S,y:b}=x;return{x:S,y:b}}}}=s,f=Vr(s,Ts),h={x:r,y:o},d=await to(n,f),p=he(Jt(i)),m=Un(p);let y=h[m],_=h[p];if(l){const x=m==="y"?"top":"left",S=m==="y"?"bottom":"right",b=y+d[x],g=y-d[S];y=Vn(b,y,g)}if(c){const x=p==="y"?"top":"left",S=p==="y"?"bottom":"right",b=_+d[x],g=_-d[S];_=Vn(b,_,g)}const w=a.fn(et({},n,{[m]:y,[p]:_}));return et({},w,{data:{x:w.x-r,y:w.y-o}})}}},Rs=function(e){return e===void 0&&(e={}),{options:e,fn(n){const{x:r,y:o,placement:i,rects:s,middlewareData:l}=n,{offset:c=0,mainAxis:a=!0,crossAxis:f=!0}=de(e,n),h={x:r,y:o},d=he(i),p=Un(d);let m=h[p],y=h[d];const _=de(c,n),w=typeof _=="number"?{mainAxis:_,crossAxis:0}:et({mainAxis:0,crossAxis:0},_);if(a){const b=p==="y"?"height":"width",g=s.reference[p]-s.floating[b]+w.mainAxis,O=s.reference[p]+s.reference[b]-w.mainAxis;m<g?m=g:m>O&&(m=O)}if(f){var x,S;const b=p==="y"?"width":"height",g=["top","left"].includes(Jt(i)),O=s.reference[d]-s.floating[b]+(g&&((x=l.offset)==null?void 0:x[d])||0)+(g?0:w.crossAxis),I=s.reference[d]+s.reference[b]+(g?0:((S=l.offset)==null?void 0:S[d])||0)-(g?w.crossAxis:0);y<O?y=O:y>I&&(y=I)}return{[p]:m,[d]:y}}}};function pe(t){return eo(t)?(t.nodeName||"").toLowerCase():"#document"}function st(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Tt(t){var e;return(e=(eo(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function eo(t){return t instanceof Node||t instanceof st(t).Node}function vt(t){return t instanceof Element||t instanceof st(t).Element}function wt(t){return t instanceof HTMLElement||t instanceof st(t).HTMLElement}function no(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof st(t).ShadowRoot}function Ye(t){const{overflow:e,overflowX:n,overflowY:r,display:o}=pt(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(o)}function Ps(t){return["table","td","th"].includes(pe(t))}function dn(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function Kn(t){const e=Jn(),n=pt(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function ks(t){let e=Bt(t);for(;wt(e)&&!ge(e);){if(dn(e))return null;if(Kn(e))return e;e=Bt(e)}return null}function Jn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ge(t){return["html","body","#document"].includes(pe(t))}function pt(t){return st(t).getComputedStyle(t)}function hn(t){return vt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Bt(t){if(pe(t)==="html")return t;const e=t.assignedSlot||t.parentNode||no(t)&&t.host||Tt(t);return no(e)?e.host:e}function ro(t){const e=Bt(t);return ge(e)?t.ownerDocument?t.ownerDocument.body:t.body:wt(e)&&Ye(e)?e:ro(e)}function ze(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const o=ro(t),i=o===((r=t.ownerDocument)==null?void 0:r.body),s=st(o);return i?e.concat(s,s.visualViewport||[],Ye(o)?o:[],s.frameElement&&n?ze(s.frameElement):[]):e.concat(o,ze(o,[],n))}function oo(t){const e=pt(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const o=wt(t),i=o?t.offsetWidth:n,s=o?t.offsetHeight:r,l=ln(n)!==i||ln(r)!==s;return l&&(n=i,r=s),{width:n,height:r,$:l}}function Xn(t){return vt(t)?t:t.contextElement}function me(t){const e=Xn(t);if(!wt(e))return jt(1);const n=e.getBoundingClientRect(),{width:r,height:o,$:i}=oo(e);let s=(i?ln(n.width):n.width)/r,l=(i?ln(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const Ms=jt(0);function io(t){const e=st(t);return!Jn()||!e.visualViewport?Ms:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Ds(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==st(t)?!1:e}function Xt(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const o=t.getBoundingClientRect(),i=Xn(t);let s=jt(1);e&&(r?vt(r)&&(s=me(r)):s=me(t));const l=Ds(i,n,r)?io(i):jt(0);let c=(o.left+l.x)/s.x,a=(o.top+l.y)/s.y,f=o.width/s.x,h=o.height/s.y;if(i){const d=st(i),p=r&&vt(r)?st(r):r;let m=d,y=m.frameElement;for(;y&&r&&p!==m;){const _=me(y),w=y.getBoundingClientRect(),x=pt(y),S=w.left+(y.clientLeft+parseFloat(x.paddingLeft))*_.x,b=w.top+(y.clientTop+parseFloat(x.paddingTop))*_.y;c*=_.x,a*=_.y,f*=_.x,h*=_.y,c+=S,a+=b,m=st(y),y=m.frameElement}}return fn({width:f,height:h,x:c,y:a})}function Ls(t){let{elements:e,rect:n,offsetParent:r,strategy:o}=t;const i=o==="fixed",s=Tt(r),l=e?dn(e.floating):!1;if(r===s||l&&i)return n;let c={scrollLeft:0,scrollTop:0},a=jt(1);const f=jt(0),h=wt(r);if((h||!h&&!i)&&((pe(r)!=="body"||Ye(s))&&(c=hn(r)),wt(r))){const d=Xt(r);a=me(r),f.x=d.x+r.clientLeft,f.y=d.y+r.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-c.scrollLeft*a.x+f.x,y:n.y*a.y-c.scrollTop*a.y+f.y}}function Fs(t){return Array.from(t.getClientRects())}function so(t){return Xt(Tt(t)).left+hn(t).scrollLeft}function js(t){const e=Tt(t),n=hn(t),r=t.ownerDocument.body,o=Kt(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=Kt(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+so(t);const l=-n.scrollTop;return pt(r).direction==="rtl"&&(s+=Kt(e.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:l}}function Bs(t,e){const n=st(t),r=Tt(t),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,c=0;if(o){i=o.width,s=o.height;const a=Jn();(!a||a&&e==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:l,y:c}}function Ws(t,e){const n=Xt(t,!0,e==="fixed"),r=n.top+t.clientTop,o=n.left+t.clientLeft,i=wt(t)?me(t):jt(1),s=t.clientWidth*i.x,l=t.clientHeight*i.y,c=o*i.x,a=r*i.y;return{width:s,height:l,x:c,y:a}}function lo(t,e,n){let r;if(e==="viewport")r=Bs(t,n);else if(e==="document")r=js(Tt(t));else if(vt(e))r=Ws(e,n);else{const o=io(t);r=et({},e,{x:e.x-o.x,y:e.y-o.y})}return fn(r)}function co(t,e){const n=Bt(t);return n===e||!vt(n)||ge(n)?!1:pt(n).position==="fixed"||co(n,e)}function Ns(t,e){const n=e.get(t);if(n)return n;let r=ze(t,[],!1).filter(l=>vt(l)&&pe(l)!=="body"),o=null;const i=pt(t).position==="fixed";let s=i?Bt(t):t;for(;vt(s)&&!ge(s);){const l=pt(s),c=Kn(s);!c&&l.position==="fixed"&&(o=null),(i?!c&&!o:!c&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ye(s)&&!c&&co(t,s))?r=r.filter(f=>f!==s):o=l,s=Bt(s)}return e.set(t,r),r}function Hs(t){let{element:e,boundary:n,rootBoundary:r,strategy:o}=t;const s=[...n==="clippingAncestors"?dn(e)?[]:Ns(e,this._c):[].concat(n),r],l=s[0],c=s.reduce((a,f)=>{const h=lo(e,f,o);return a.top=Kt(h.top,a.top),a.right=fe(h.right,a.right),a.bottom=fe(h.bottom,a.bottom),a.left=Kt(h.left,a.left),a},lo(e,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Vs(t){const{width:e,height:n}=oo(t);return{width:e,height:n}}function Us(t,e,n){const r=wt(e),o=Tt(e),i=n==="fixed",s=Xt(t,!0,i,e);let l={scrollLeft:0,scrollTop:0};const c=jt(0);if(r||!r&&!i)if((pe(e)!=="body"||Ye(o))&&(l=hn(e)),r){const h=Xt(e,!0,i,e);c.x=h.x+e.clientLeft,c.y=h.y+e.clientTop}else o&&(c.x=so(o));const a=s.left+l.scrollLeft-c.x,f=s.top+l.scrollTop-c.y;return{x:a,y:f,width:s.width,height:s.height}}function Gn(t){return pt(t).position==="static"}function ao(t,e){return!wt(t)||pt(t).position==="fixed"?null:e?e(t):t.offsetParent}function uo(t,e){const n=st(t);if(dn(t))return n;if(!wt(t)){let o=Bt(t);for(;o&&!ge(o);){if(vt(o)&&!Gn(o))return o;o=Bt(o)}return n}let r=ao(t,e);for(;r&&Ps(r)&&Gn(r);)r=ao(r,e);return r&&ge(r)&&Gn(r)&&!Kn(r)?n:r||ks(t)||n}const qs=async function(e){const n=this.getOffsetParent||uo,r=this.getDimensions,o=await r(e.floating);return{reference:Us(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Ys(t){return pt(t).direction==="rtl"}const zs={convertOffsetParentRelativeRectToViewportRelativeRect:Ls,getDocumentElement:Tt,getClippingRect:Hs,getOffsetParent:uo,getElementRects:qs,getClientRects:Fs,getDimensions:Vs,getScale:me,isElement:vt,isRTL:Ys};function Ks(t,e){let n=null,r;const o=Tt(t);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const{left:a,top:f,width:h,height:d}=t.getBoundingClientRect();if(l||e(),!h||!d)return;const p=cn(f),m=cn(o.clientWidth-(a+h)),y=cn(o.clientHeight-(f+d)),_=cn(a),x={rootMargin:-p+"px "+-m+"px "+-y+"px "+-_+"px",threshold:Kt(0,fe(1,c))||1};let S=!0;function b(g){const O=g[0].intersectionRatio;if(O!==c){if(!S)return s();O?s(!1,O):r=setTimeout(()=>{s(!1,1e-7)},1e3)}S=!1}try{n=new IntersectionObserver(b,et({},x,{root:o.ownerDocument}))}catch{n=new IntersectionObserver(b,x)}n.observe(t)}return s(!0),i}function Js(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,a=Xn(t),f=o||i?[...a?ze(a):[],...ze(e)]:[];f.forEach(w=>{o&&w.addEventListener("scroll",n,{passive:!0}),i&&w.addEventListener("resize",n)});const h=a&&l?Ks(a,n):null;let d=-1,p=null;s&&(p=new ResizeObserver(w=>{let[x]=w;x&&x.target===a&&p&&(p.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var S;(S=p)==null||S.observe(e)})),n()}),a&&!c&&p.observe(a),p.observe(e));let m,y=c?Xt(t):null;c&&_();function _(){const w=Xt(t);y&&(w.x!==y.x||w.y!==y.y||w.width!==y.width||w.height!==y.height)&&n(),y=w,m=requestAnimationFrame(_)}return n(),()=>{var w;f.forEach(x=>{o&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),h==null||h(),(w=p)==null||w.disconnect(),p=null,c&&cancelAnimationFrame(m)}}const Xs=Is,Gs=As,Zs=Cs,Qs=Rs,tl=(t,e,n)=>{const r=new Map,o=et({platform:zs},n),i=et({},o.platform,{_c:r});return $s(t,e,et({},o,{platform:i}))};function el(t){t.cleanup&&t.cleanup();const e=t._getResolvedAttachToOptions();let n=e.element;const r=ll(e,t),o=Xr(e);return o&&(n=document.body,t.shepherdElementComponent.getElement().classList.add("shepherd-centered")),t.cleanup=Js(n,t.el,()=>{if(!t.el){t.cleanup==null||t.cleanup();return}ol(n,t,r,o)}),t.target=e.element,r}function nl(t,e){return{floatingUIOptions:Wn(t.floatingUIOptions||{},e.floatingUIOptions||{})}}function rl(t){t.cleanup&&t.cleanup(),t.cleanup=null}function ol(t,e,n,r){return tl(t,e.el,n).then(il(e,r)).then(o=>new Promise(i=>{setTimeout(()=>i(o),300)})).then(o=>{o!=null&&o.el&&o.el.focus({preventScroll:!0})})}function il(t,e){return({x:n,y:r,placement:o,middlewareData:i})=>(t.el&&(e?Object.assign(t.el.style,{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}):Object.assign(t.el.style,{position:"absolute",left:`${n}px`,top:`${r}px`}),t.el.dataset.popperPlacement=o,sl(t.el,i)),t)}function sl(t,e){const n=t.querySelector(".shepherd-arrow");if(Ue(n)&&e.arrow){const{x:r,y:o}=e.arrow;Object.assign(n.style,{left:r!=null?`${r}px`:"",top:o!=null?`${o}px`:""})}}function ll(t,e){const n={strategy:"absolute"};n.middleware=[];const r=cl(e);if(!Xr(t)){if(n.middleware.push(Gs(),Xs({limiter:Qs(),crossAxis:!0})),r){var i,s;const l=(t==null||(i=t.on)==null?void 0:i.includes("-start"))||(t==null||(s=t.on)==null?void 0:s.includes("-end"));n.middleware.push(Zs({element:r,padding:l?4:0}))}n.placement=t.on}return Wn(e.options.floatingUIOptions||{},n)}function cl(t){return t.options.arrow&&t.el?t.el.querySelector(".shepherd-arrow"):!1}function lt(){}function al(t,e){for(const n in e)t[n]=e[n];return t}function fo(t){return t()}function ho(){return Object.create(null)}function Ke(t){t.forEach(fo)}function Zn(t){return typeof t=="function"}function $t(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function ul(t){return Object.keys(t).length===0}function be(t,e){t.appendChild(e)}function gt(t,e,n){t.insertBefore(e,n||null)}function ft(t){t.parentNode&&t.parentNode.removeChild(t)}function fl(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function xt(t){return document.createElement(t)}function po(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function go(t){return document.createTextNode(t)}function pn(){return go(" ")}function dl(){return go("")}function gn(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function L(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const hl=["width","height"];function mo(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const r in e)e[r]==null?t.removeAttribute(r):r==="style"?t.style.cssText=e[r]:r==="__value"?t.value=t[r]=e[r]:n[r]&&n[r].set&&hl.indexOf(r)===-1?t[r]=e[r]:L(t,r,e[r])}function pl(t){return Array.from(t.childNodes)}function ye(t,e,n){t.classList.toggle(e,!!n)}let Je;function Xe(t){Je=t}function bo(){if(!Je)throw new Error("Function called outside component initialization");return Je}function gl(t){bo().$$.on_mount.push(t)}function Qn(t){bo().$$.after_update.push(t)}const ve=[],we=[];let xe=[];const yo=[],ml=Promise.resolve();let tr=!1;function bl(){tr||(tr=!0,ml.then(vo))}function er(t){xe.push(t)}const nr=new Set;let _e=0;function vo(){if(_e!==0)return;const t=Je;do{try{for(;_e<ve.length;){const e=ve[_e];_e++,Xe(e),yl(e.$$)}}catch(e){throw ve.length=0,_e=0,e}for(Xe(null),ve.length=0,_e=0;we.length;)we.pop()();for(let e=0;e<xe.length;e+=1){const n=xe[e];nr.has(n)||(nr.add(n),n())}xe.length=0}while(ve.length);for(;yo.length;)yo.pop()();tr=!1,nr.clear(),Xe(t)}function yl(t){if(t.fragment!==null){t.update(),Ke(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(er)}}function vl(t){const e=[],n=[];xe.forEach(r=>t.indexOf(r)===-1?e.push(r):n.push(r)),n.forEach(r=>r()),xe=e}const mn=new Set;let Gt;function Zt(){Gt={r:0,c:[],p:Gt}}function Qt(){Gt.r||Ke(Gt.c),Gt=Gt.p}function P(t,e){t&&t.i&&(mn.delete(t),t.i(e))}function V(t,e,n,r){if(t&&t.o){if(mn.has(t))return;mn.add(t),Gt.c.push(()=>{mn.delete(t),r&&(n&&t.d(1),r())}),t.o(e)}else r&&r()}function wo(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function wl(t,e){const n={},r={},o={$$scope:1};let i=t.length;for(;i--;){const s=t[i],l=e[i];if(l){for(const c in s)c in l||(r[c]=1);for(const c in l)o[c]||(n[c]=l[c],o[c]=1);t[i]=l}else for(const c in s)o[c]=1}for(const s in r)s in n||(n[s]=void 0);return n}function te(t){t&&t.c()}function Wt(t,e,n){const{fragment:r,after_update:o}=t.$$;r&&r.m(e,n),er(()=>{const i=t.$$.on_mount.map(fo).filter(Zn);t.$$.on_destroy?t.$$.on_destroy.push(...i):Ke(i),t.$$.on_mount=[]}),o.forEach(er)}function Nt(t,e){const n=t.$$;n.fragment!==null&&(vl(n.after_update),Ke(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function xl(t,e){t.$$.dirty[0]===-1&&(ve.push(t),bl(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Ct(t,e,n,r,o,i,s=null,l=[-1]){const c=Je;Xe(t);const a=t.$$={fragment:null,ctx:[],props:i,update:lt,not_equal:o,bound:ho(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:ho(),dirty:l,skip_bound:!1,root:e.target||c.$$.root};s&&s(a.root);let f=!1;if(a.ctx=n?n(t,e.props||{},(h,d,...p)=>{const m=p.length?p[0]:d;return a.ctx&&o(a.ctx[h],a.ctx[h]=m)&&(!a.skip_bound&&a.bound[h]&&a.bound[h](m),f&&xl(t,h)),d}):[],a.update(),f=!0,Ke(a.before_update),a.fragment=r?r(a.ctx):!1,e.target){if(e.hydrate){const h=pl(e.target);a.fragment&&a.fragment.l(h),h.forEach(ft)}else a.fragment&&a.fragment.c();e.intro&&P(t.$$.fragment),Wt(t,e.target,e.anchor),vo()}Xe(c)}class At{constructor(){this.$$=void 0,this.$$set=void 0}$destroy(){Nt(this,1),this.$destroy=lt}$on(e,n){if(!Zn(n))return lt;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o!==-1&&r.splice(o,1)}}$set(e){this.$$set&&!ul(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const _l="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(_l);function El(t){let e,n,r,o,i;return{c(){e=xt("button"),L(e,"aria-label",n=t[3]?t[3]:null),L(e,"class",r=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`),e.disabled=t[2],L(e,"tabindex","0"),L(e,"type","button")},m(s,l){gt(s,e,l),e.innerHTML=t[5],o||(i=gn(e,"click",function(){Zn(t[0])&&t[0].apply(this,arguments)}),o=!0)},p(s,[l]){t=s,l&32&&(e.innerHTML=t[5]),l&8&&n!==(n=t[3]?t[3]:null)&&L(e,"aria-label",n),l&18&&r!==(r=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`)&&L(e,"class",r),l&4&&(e.disabled=t[2])},i:lt,o:lt,d(s){s&&ft(e),o=!1,i()}}}function Sl(t,e,n){let{config:r,step:o}=e,i,s,l,c,a,f;function h(d){return Lt(d)?d=d.call(o):d}return t.$$set=d=>{"config"in d&&n(6,r=d.config),"step"in d&&n(7,o=d.step)},t.$$.update=()=>{t.$$.dirty&192&&(n(0,i=r.action?r.action.bind(o.tour):null),n(1,s=r.classes),n(2,l=r.disabled?h(r.disabled):!1),n(3,c=r.label?h(r.label):null),n(4,a=r.secondary),n(5,f=r.text?h(r.text):null))},[i,s,l,c,a,f,r,o]}class Ol extends At{constructor(e){super(),Ct(this,e,Sl,El,$t,{config:6,step:7})}}function xo(t,e,n){const r=t.slice();return r[2]=e[n],r}function _o(t){let e,n,r=wo(t[1]),o=[];for(let s=0;s<r.length;s+=1)o[s]=Eo(xo(t,r,s));const i=s=>V(o[s],1,1,()=>{o[s]=null});return{c(){for(let s=0;s<o.length;s+=1)o[s].c();e=dl()},m(s,l){for(let c=0;c<o.length;c+=1)o[c]&&o[c].m(s,l);gt(s,e,l),n=!0},p(s,l){if(l&3){r=wo(s[1]);let c;for(c=0;c<r.length;c+=1){const a=xo(s,r,c);o[c]?(o[c].p(a,l),P(o[c],1)):(o[c]=Eo(a),o[c].c(),P(o[c],1),o[c].m(e.parentNode,e))}for(Zt(),c=r.length;c<o.length;c+=1)i(c);Qt()}},i(s){if(!n){for(let l=0;l<r.length;l+=1)P(o[l]);n=!0}},o(s){o=o.filter(Boolean);for(let l=0;l<o.length;l+=1)V(o[l]);n=!1},d(s){s&&ft(e),fl(o,s)}}}function Eo(t){let e,n;return e=new Ol({props:{config:t[2],step:t[0]}}),{c(){te(e.$$.fragment)},m(r,o){Wt(e,r,o),n=!0},p(r,o){const i={};o&2&&(i.config=r[2]),o&1&&(i.step=r[0]),e.$set(i)},i(r){n||(P(e.$$.fragment,r),n=!0)},o(r){V(e.$$.fragment,r),n=!1},d(r){Nt(e,r)}}}function Tl(t){let e,n,r=t[1]&&_o(t);return{c(){e=xt("footer"),r&&r.c(),L(e,"class","shepherd-footer")},m(o,i){gt(o,e,i),r&&r.m(e,null),n=!0},p(o,[i]){o[1]?r?(r.p(o,i),i&2&&P(r,1)):(r=_o(o),r.c(),P(r,1),r.m(e,null)):r&&(Zt(),V(r,1,1,()=>{r=null}),Qt())},i(o){n||(P(r),n=!0)},o(o){V(r),n=!1},d(o){o&&ft(e),r&&r.d()}}}function $l(t,e,n){let r,{step:o}=e;return t.$$set=i=>{"step"in i&&n(0,o=i.step)},t.$$.update=()=>{t.$$.dirty&1&&n(1,r=o.options.buttons)},[o,r]}class Cl extends At{constructor(e){super(),Ct(this,e,$l,Tl,$t,{step:0})}}function Al(t){let e,n,r,o,i;return{c(){e=xt("button"),n=xt("span"),n.textContent="×",L(n,"aria-hidden","true"),L(e,"aria-label",r=t[0].label?t[0].label:"Close Tour"),L(e,"class","shepherd-cancel-icon"),L(e,"type","button")},m(s,l){gt(s,e,l),be(e,n),o||(i=gn(e,"click",t[1]),o=!0)},p(s,[l]){l&1&&r!==(r=s[0].label?s[0].label:"Close Tour")&&L(e,"aria-label",r)},i:lt,o:lt,d(s){s&&ft(e),o=!1,i()}}}function Il(t,e,n){let{cancelIcon:r,step:o}=e;const i=s=>{s.preventDefault(),o.cancel()};return t.$$set=s=>{"cancelIcon"in s&&n(0,r=s.cancelIcon),"step"in s&&n(2,o=s.step)},[r,i,o]}class Rl extends At{constructor(e){super(),Ct(this,e,Il,Al,$t,{cancelIcon:0,step:2})}}function Pl(t){let e;return{c(){e=xt("h3"),L(e,"id",t[1]),L(e,"class","shepherd-title")},m(n,r){gt(n,e,r),t[3](e)},p(n,[r]){r&2&&L(e,"id",n[1])},i:lt,o:lt,d(n){n&&ft(e),t[3](null)}}}function kl(t,e,n){let{labelId:r,element:o,title:i}=e;Qn(()=>{Lt(i)&&n(2,i=i()),n(0,o.innerHTML=i,o)});function s(l){we[l?"unshift":"push"](()=>{o=l,n(0,o)})}return t.$$set=l=>{"labelId"in l&&n(1,r=l.labelId),"element"in l&&n(0,o=l.element),"title"in l&&n(2,i=l.title)},[o,r,i,s]}class Ml extends At{constructor(e){super(),Ct(this,e,kl,Pl,$t,{labelId:1,element:0,title:2})}}function So(t){let e,n;return e=new Ml({props:{labelId:t[0],title:t[2]}}),{c(){te(e.$$.fragment)},m(r,o){Wt(e,r,o),n=!0},p(r,o){const i={};o&1&&(i.labelId=r[0]),o&4&&(i.title=r[2]),e.$set(i)},i(r){n||(P(e.$$.fragment,r),n=!0)},o(r){V(e.$$.fragment,r),n=!1},d(r){Nt(e,r)}}}function Oo(t){let e,n;return e=new Rl({props:{cancelIcon:t[3],step:t[1]}}),{c(){te(e.$$.fragment)},m(r,o){Wt(e,r,o),n=!0},p(r,o){const i={};o&8&&(i.cancelIcon=r[3]),o&2&&(i.step=r[1]),e.$set(i)},i(r){n||(P(e.$$.fragment,r),n=!0)},o(r){V(e.$$.fragment,r),n=!1},d(r){Nt(e,r)}}}function Dl(t){let e,n,r,o=t[2]&&So(t),i=t[3]&&t[3].enabled&&Oo(t);return{c(){e=xt("header"),o&&o.c(),n=pn(),i&&i.c(),L(e,"class","shepherd-header")},m(s,l){gt(s,e,l),o&&o.m(e,null),be(e,n),i&&i.m(e,null),r=!0},p(s,[l]){s[2]?o?(o.p(s,l),l&4&&P(o,1)):(o=So(s),o.c(),P(o,1),o.m(e,n)):o&&(Zt(),V(o,1,1,()=>{o=null}),Qt()),s[3]&&s[3].enabled?i?(i.p(s,l),l&8&&P(i,1)):(i=Oo(s),i.c(),P(i,1),i.m(e,null)):i&&(Zt(),V(i,1,1,()=>{i=null}),Qt())},i(s){r||(P(o),P(i),r=!0)},o(s){V(o),V(i),r=!1},d(s){s&&ft(e),o&&o.d(),i&&i.d()}}}function Ll(t,e,n){let{labelId:r,step:o}=e,i,s;return t.$$set=l=>{"labelId"in l&&n(0,r=l.labelId),"step"in l&&n(1,o=l.step)},t.$$.update=()=>{t.$$.dirty&2&&(n(2,i=o.options.title),n(3,s=o.options.cancelIcon))},[r,o,i,s]}class Fl extends At{constructor(e){super(),Ct(this,e,Ll,Dl,$t,{labelId:0,step:1})}}function jl(t){let e;return{c(){e=xt("div"),L(e,"class","shepherd-text"),L(e,"id",t[1])},m(n,r){gt(n,e,r),t[3](e)},p(n,[r]){r&2&&L(e,"id",n[1])},i:lt,o:lt,d(n){n&&ft(e),t[3](null)}}}function Bl(t,e,n){let{descriptionId:r,element:o,step:i}=e;Qn(()=>{let{text:l}=i.options;Lt(l)&&(l=l.call(i)),Ue(l)?o.appendChild(l):n(0,o.innerHTML=l,o)});function s(l){we[l?"unshift":"push"](()=>{o=l,n(0,o)})}return t.$$set=l=>{"descriptionId"in l&&n(1,r=l.descriptionId),"element"in l&&n(0,o=l.element),"step"in l&&n(2,i=l.step)},[o,r,i,s]}class Wl extends At{constructor(e){super(),Ct(this,e,Bl,jl,$t,{descriptionId:1,element:0,step:2})}}function To(t){let e,n;return e=new Fl({props:{labelId:t[1],step:t[2]}}),{c(){te(e.$$.fragment)},m(r,o){Wt(e,r,o),n=!0},p(r,o){const i={};o&2&&(i.labelId=r[1]),o&4&&(i.step=r[2]),e.$set(i)},i(r){n||(P(e.$$.fragment,r),n=!0)},o(r){V(e.$$.fragment,r),n=!1},d(r){Nt(e,r)}}}function $o(t){let e,n;return e=new Wl({props:{descriptionId:t[0],step:t[2]}}),{c(){te(e.$$.fragment)},m(r,o){Wt(e,r,o),n=!0},p(r,o){const i={};o&1&&(i.descriptionId=r[0]),o&4&&(i.step=r[2]),e.$set(i)},i(r){n||(P(e.$$.fragment,r),n=!0)},o(r){V(e.$$.fragment,r),n=!1},d(r){Nt(e,r)}}}function Co(t){let e,n;return e=new Cl({props:{step:t[2]}}),{c(){te(e.$$.fragment)},m(r,o){Wt(e,r,o),n=!0},p(r,o){const i={};o&4&&(i.step=r[2]),e.$set(i)},i(r){n||(P(e.$$.fragment,r),n=!0)},o(r){V(e.$$.fragment,r),n=!1},d(r){Nt(e,r)}}}function Nl(t){let e,n=!Q(t[2].options.title)||t[2].options.cancelIcon&&t[2].options.cancelIcon.enabled,r,o=!Q(t[2].options.text),i,s=Array.isArray(t[2].options.buttons)&&t[2].options.buttons.length,l,c=n&&To(t),a=o&&$o(t),f=s&&Co(t);return{c(){e=xt("div"),c&&c.c(),r=pn(),a&&a.c(),i=pn(),f&&f.c(),L(e,"class","shepherd-content")},m(h,d){gt(h,e,d),c&&c.m(e,null),be(e,r),a&&a.m(e,null),be(e,i),f&&f.m(e,null),l=!0},p(h,[d]){d&4&&(n=!Q(h[2].options.title)||h[2].options.cancelIcon&&h[2].options.cancelIcon.enabled),n?c?(c.p(h,d),d&4&&P(c,1)):(c=To(h),c.c(),P(c,1),c.m(e,r)):c&&(Zt(),V(c,1,1,()=>{c=null}),Qt()),d&4&&(o=!Q(h[2].options.text)),o?a?(a.p(h,d),d&4&&P(a,1)):(a=$o(h),a.c(),P(a,1),a.m(e,i)):a&&(Zt(),V(a,1,1,()=>{a=null}),Qt()),d&4&&(s=Array.isArray(h[2].options.buttons)&&h[2].options.buttons.length),s?f?(f.p(h,d),d&4&&P(f,1)):(f=Co(h),f.c(),P(f,1),f.m(e,null)):f&&(Zt(),V(f,1,1,()=>{f=null}),Qt())},i(h){l||(P(c),P(a),P(f),l=!0)},o(h){V(c),V(a),V(f),l=!1},d(h){h&&ft(e),c&&c.d(),a&&a.d(),f&&f.d()}}}function Hl(t,e,n){let{descriptionId:r,labelId:o,step:i}=e;return t.$$set=s=>{"descriptionId"in s&&n(0,r=s.descriptionId),"labelId"in s&&n(1,o=s.labelId),"step"in s&&n(2,i=s.step)},[r,o,i]}class Vl extends At{constructor(e){super(),Ct(this,e,Hl,Nl,$t,{descriptionId:0,labelId:1,step:2})}}function Ao(t){let e;return{c(){e=xt("div"),L(e,"class","shepherd-arrow"),L(e,"data-popper-arrow","")},m(n,r){gt(n,e,r)},d(n){n&&ft(e)}}}function Ul(t){let e,n,r,o,i,s,l,c,a=t[4].options.arrow&&t[4].options.attachTo&&t[4].options.attachTo.element&&t[4].options.attachTo.on&&Ao();r=new Vl({props:{descriptionId:t[2],labelId:t[3],step:t[4]}});let f=[{"aria-describedby":o=Q(t[4].options.text)?null:t[2]},{"aria-labelledby":i=t[4].options.title?t[3]:null},t[1],{role:"dialog"},{tabindex:"0"}],h={};for(let d=0;d<f.length;d+=1)h=al(h,f[d]);return{c(){e=xt("div"),a&&a.c(),n=pn(),te(r.$$.fragment),mo(e,h),ye(e,"shepherd-has-cancel-icon",t[5]),ye(e,"shepherd-has-title",t[6]),ye(e,"shepherd-element",!0)},m(d,p){gt(d,e,p),a&&a.m(e,null),be(e,n),Wt(r,e,null),t[13](e),s=!0,l||(c=gn(e,"keydown",t[7]),l=!0)},p(d,[p]){d[4].options.arrow&&d[4].options.attachTo&&d[4].options.attachTo.element&&d[4].options.attachTo.on?a||(a=Ao(),a.c(),a.m(e,n)):a&&(a.d(1),a=null);const m={};p&4&&(m.descriptionId=d[2]),p&8&&(m.labelId=d[3]),p&16&&(m.step=d[4]),r.$set(m),mo(e,h=wl(f,[(!s||p&20&&o!==(o=Q(d[4].options.text)?null:d[2]))&&{"aria-describedby":o},(!s||p&24&&i!==(i=d[4].options.title?d[3]:null))&&{"aria-labelledby":i},p&2&&d[1],{role:"dialog"},{tabindex:"0"}])),ye(e,"shepherd-has-cancel-icon",d[5]),ye(e,"shepherd-has-title",d[6]),ye(e,"shepherd-element",!0)},i(d){s||(P(r.$$.fragment,d),s=!0)},o(d){V(r.$$.fragment,d),s=!1},d(d){d&&ft(e),a&&a.d(),Nt(r),t[13](null),l=!1,c()}}}const ql=9,Yl=27,zl=37,Kl=39;function Io(t){return t.split(" ").filter(e=>!!e.length)}function Jl(t,e,n){let{classPrefix:r,element:o,descriptionId:i,firstFocusableElement:s,focusableElements:l,labelId:c,lastFocusableElement:a,step:f,dataStepId:h}=e,d,p,m;const y=()=>o;gl(()=>{n(1,h={[`data-${r}shepherd-step-id`]:f.id}),n(9,l=o.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),n(8,s=l[0]),n(10,a=l[l.length-1])}),Qn(()=>{m!==f.options.classes&&_()});function _(){w(m),m=f.options.classes,x(m)}function w(g){if(qe(g)){const O=Io(g);O.length&&o.classList.remove(...O)}}function x(g){if(qe(g)){const O=Io(g);O.length&&o.classList.add(...O)}}const S=g=>{const{tour:O}=f;switch(g.keyCode){case ql:if(l.length===0){g.preventDefault();break}g.shiftKey?(document.activeElement===s||document.activeElement.classList.contains("shepherd-element"))&&(g.preventDefault(),a.focus()):document.activeElement===a&&(g.preventDefault(),s.focus());break;case Yl:O.options.exitOnEsc&&(g.preventDefault(),g.stopPropagation(),f.cancel());break;case zl:O.options.keyboardNavigation&&(g.preventDefault(),g.stopPropagation(),O.back());break;case Kl:O.options.keyboardNavigation&&(g.preventDefault(),g.stopPropagation(),O.next());break}};function b(g){we[g?"unshift":"push"](()=>{o=g,n(0,o)})}return t.$$set=g=>{"classPrefix"in g&&n(11,r=g.classPrefix),"element"in g&&n(0,o=g.element),"descriptionId"in g&&n(2,i=g.descriptionId),"firstFocusableElement"in g&&n(8,s=g.firstFocusableElement),"focusableElements"in g&&n(9,l=g.focusableElements),"labelId"in g&&n(3,c=g.labelId),"lastFocusableElement"in g&&n(10,a=g.lastFocusableElement),"step"in g&&n(4,f=g.step),"dataStepId"in g&&n(1,h=g.dataStepId)},t.$$.update=()=>{t.$$.dirty&16&&(n(5,d=f.options&&f.options.cancelIcon&&f.options.cancelIcon.enabled),n(6,p=f.options&&f.options.title))},[o,h,i,c,f,d,p,S,s,l,a,r,y,b]}class Xl extends At{constructor(e){super(),Ct(this,e,Jl,Ul,$t,{classPrefix:11,element:0,descriptionId:2,firstFocusableElement:8,focusableElements:9,labelId:3,lastFocusableElement:10,step:4,dataStepId:1,getElement:12})}get getElement(){return this.$$.ctx[12]}}class rr extends jn{constructor(e,n={}){return super(),this._resolvedAttachTo=void 0,this.classPrefix=void 0,this.el=void 0,this.target=void 0,this.tour=void 0,this.tour=e,this.classPrefix=this.tour.options?Jr(this.tour.options.classPrefix):"",this.styles=e.styles,this._resolvedAttachTo=null,Hn(this),this._setOptions(n),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){rl(this),Ue(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this.trigger("destroy")}getTour(){return this.tour}hide(){var e;(e=this.tour.modal)==null||e.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveAttachToOptions(){return this._resolvedAttachTo=bs(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return this._resolvedAttachTo===null?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return!!(this.el&&!this.el.hidden)}show(){return Lt(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then(()=>this._show()):Promise.resolve(this._show())}updateStepOptions(e){Object.assign(this.options,e),this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})}getElement(){return this.el}getTarget(){return this.target}_createTooltipContent(){const e=`${this.id}-description`,n=`${this.id}-label`;return this.shepherdElementComponent=new Xl({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:e,labelId:n,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()}_scrollTo(e){const{element:n}=this._getResolvedAttachToOptions();Lt(this.options.scrollToHandler)?this.options.scrollToHandler(n):Zi(n)&&typeof n.scrollIntoView=="function"&&n.scrollIntoView(e)}_getClassOptions(e){const n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,r=e.classes?e.classes:"",o=n&&n.classes?n.classes:"",i=[...r.split(" "),...o.split(" ")],s=new Set(i);return Array.from(s).join(" ").trim()}_setOptions(e={}){let n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;n=Wn({},n||{}),this.options=Object.assign({arrow:!0},n,e,nl(n,e));const{when:r}=this.options;this.options.classes=this._getClassOptions(e),this.destroy(),this.id=this.options.id||`step-${Gr()}`,r&&Object.keys(r).forEach(o=>{this.on(o,r[o],this)})}_setupElements(){Q(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&ps(this),el(this)}_show(){var e;this.trigger("before-show"),this._resolveAttachToOptions(),this._setupElements(),this.tour.modal||this.tour.setupModal(),(e=this.tour.modal)==null||e.setupForStep(this),this._styleTargetElementForStep(this),this.el&&(this.el.hidden=!1),this.options.scrollTo&&setTimeout(()=>{this._scrollTo(this.options.scrollTo)}),this.el&&(this.el.hidden=!1);const n=this.shepherdElementComponent.getElement(),r=this.target||document.body;r.classList.add(`${this.classPrefix}shepherd-enabled`),r.classList.add(`${this.classPrefix}shepherd-target`),n.classList.add("shepherd-enabled"),this.trigger("show")}_styleTargetElementForStep(e){const n=e.target;n&&(e.options.highlightClass&&n.classList.add(e.options.highlightClass),n.classList.remove("shepherd-target-click-disabled"),e.options.canClickTarget===!1&&n.classList.add("shepherd-target-click-disabled"))}_updateStepTargetOnHide(){const e=this.target||document.body;this.options.highlightClass&&e.classList.remove(this.options.highlightClass),e.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)}}function Gl(t){if(t){const{steps:e}=t;e.forEach(n=>{n.options&&n.options.canClickTarget===!1&&n.options.attachTo&&Ue(n.target)&&n.target.classList.remove("shepherd-target-click-disabled")})}}function Zl({width:t,height:e,x:n=0,y:r=0,r:o=0}){const{innerWidth:i,innerHeight:s}=window,{topLeft:l=0,topRight:c=0,bottomRight:a=0,bottomLeft:f=0}=typeof o=="number"?{topLeft:o,topRight:o,bottomRight:o,bottomLeft:o}:o;return`M${i},${s}H0V0H${i}V${s}ZM${n+l},${r}a${l},${l},0,0,0-${l},${l}V${e+r-f}a${f},${f},0,0,0,${f},${f}H${t+n-a}a${a},${a},0,0,0,${a}-${a}V${r+c}a${c},${c},0,0,0-${c}-${c}Z`}function Ql(t){let e,n,r,o,i;return{c(){e=po("svg"),n=po("path"),L(n,"d",t[2]),L(e,"class",r=`${t[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)},m(s,l){gt(s,e,l),be(e,n),t[11](e),o||(i=gn(e,"touchmove",t[3]),o=!0)},p(s,[l]){l&4&&L(n,"d",s[2]),l&2&&r!==(r=`${s[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)&&L(e,"class",r)},i:lt,o:lt,d(s){s&&ft(e),t[11](null),o=!1,i()}}}function Ro(t){if(!t)return null;const n=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY;return n!=="hidden"&&n!=="visible"&&t.scrollHeight>=t.clientHeight?t:Ro(t.parentElement)}function tc(t){let e={top:0,left:0};if(!t)return e;let n=t.ownerDocument.defaultView;for(;n!==window.top;){var r;const s=(r=n)==null?void 0:r.frameElement;if(s){var o,i;const l=s.getBoundingClientRect();e.top+=l.top+((o=l.scrollTop)!=null?o:0),e.left+=l.left+((i=l.scrollLeft)!=null?i:0)}n=n.parent}return e}function ec(t,e){const n=t.getBoundingClientRect();let r=n.y||n.top,o=n.bottom||r+n.height;if(e){const s=e.getBoundingClientRect(),l=s.y||s.top,c=s.bottom||l+s.height;r=Math.max(r,l),o=Math.min(o,c)}const i=Math.max(o-r,0);return{y:r,height:i}}function nc(t,e,n){let{element:r,openingProperties:o}=e,i=!1,s,l;a();const c=()=>r;function a(){n(4,o={width:0,height:0,x:0,y:0,r:0})}function f(){n(1,i=!1),w()}function h(b=0,g=0,O=0,I=0,G,M){if(M){const{y:N,height:D}=ec(M,G),{x:W,width:B,left:A}=M.getBoundingClientRect();n(4,o={width:B+b*2,height:D+b*2,x:(W||A)+O-b,y:N+I-b,r:g})}else a()}function d(b){w(),b.tour.options.useModalOverlay?(x(b),p()):f()}function p(){n(1,i=!0)}const m=b=>{b.preventDefault()},y=b=>{b.stopPropagation()};function _(){window.addEventListener("touchmove",m,{passive:!1})}function w(){s&&(cancelAnimationFrame(s),s=void 0),window.removeEventListener("touchmove",m,{passive:!1})}function x(b){const{modalOverlayOpeningPadding:g,modalOverlayOpeningRadius:O,modalOverlayOpeningXOffset:I=0,modalOverlayOpeningYOffset:G=0}=b.options,M=tc(b.target),N=Ro(b.target),D=()=>{s=void 0,h(g,O,I+M.left,G+M.top,N,b.target),s=requestAnimationFrame(D)};D(),_()}function S(b){we[b?"unshift":"push"](()=>{r=b,n(0,r)})}return t.$$set=b=>{"element"in b&&n(0,r=b.element),"openingProperties"in b&&n(4,o=b.openingProperties)},t.$$.update=()=>{t.$$.dirty&16&&n(2,l=Zl(o))},[r,i,l,y,o,c,a,f,h,d,p,S]}class rc extends At{constructor(e){super(),Ct(this,e,nc,Ql,$t,{element:0,openingProperties:4,getElement:5,closeModalOpening:6,hide:7,positionModal:8,setupForStep:9,show:10})}get getElement(){return this.$$.ctx[5]}get closeModalOpening(){return this.$$.ctx[6]}get hide(){return this.$$.ctx[7]}get positionModal(){return this.$$.ctx[8]}get setupForStep(){return this.$$.ctx[9]}get show(){return this.$$.ctx[10]}}class oc extends jn{constructor(){super(),this.activeTour=void 0,Hn(this)}}class ic extends jn{constructor(e={}){super(),this.trackedEvents=["active","cancel","complete","show"],this.classPrefix=void 0,this.currentStep=void 0,this.focusedElBeforeOpen=void 0,this.id=void 0,this.modal=void 0,this.options=void 0,this.steps=void 0,Hn(this);const n={exitOnEsc:!0,keyboardNavigation:!0};return this.options=Object.assign({},n,e),this.classPrefix=Jr(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps),["active","cancel","complete","inactive","show","start"].map(o=>{(i=>{this.on(i,s=>{s=s||{},s.tour=this,ee.trigger(i,s)})})(o)}),this._setTourID(e.id),this}addStep(e,n){let r=e;return r instanceof rr?r.tour=this:r=new rr(this,r),Q(n)?this.steps.push(r):this.steps.splice(n,0,r),r}addSteps(e){return Array.isArray(e)&&e.forEach(n=>{this.addStep(n)}),this}back(){const e=this.steps.indexOf(this.currentStep);this.show(e-1,!1)}async cancel(){if(this.options.confirmCancel){const e=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";let n;Lt(this.options.confirmCancel)?n=await this.options.confirmCancel():n=window.confirm(e),n&&this._done("cancel")}else this._done("cancel")}complete(){this._done("complete")}getById(e){return this.steps.find(n=>n.id===e)}getCurrentStep(){return this.currentStep}hide(){const e=this.getCurrentStep();if(e)return e.hide()}isActive(){return ee.activeTour===this}next(){const e=this.steps.indexOf(this.currentStep);e===this.steps.length-1?this.complete():this.show(e+1,!0)}removeStep(e){const n=this.getCurrentStep();this.steps.some((r,o)=>{if(r.id===e)return r.isOpen()&&r.hide(),r.destroy(),this.steps.splice(o,1),!0}),n&&n.id===e&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(e=0,n=!0){const r=qe(e)?this.getById(e):this.steps[e];r&&(this._updateStateBeforeShow(),Lt(r.options.showOn)&&!r.options.showOn()?this._skipStep(r,n):(this.trigger("show",{step:r,previous:this.currentStep}),this.currentStep=r,r.show()))}async start(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this.setupModal(),this._setupActiveTour(),this.next()}_done(e){const n=this.steps.indexOf(this.currentStep);if(Array.isArray(this.steps)&&this.steps.forEach(r=>r.destroy()),Gl(this),this.trigger(e,{index:n}),ee.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),(e==="cancel"||e==="complete")&&this.modal){const r=document.querySelector(".shepherd-modal-overlay-container");r&&(r.remove(),this.modal=null)}Ue(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),ee.activeTour=this}setupModal(){this.modal=new rc({target:this.options.modalContainer||document.body,props:{styles:this.styles}})}_skipStep(e,n){const r=this.steps.indexOf(e);if(r===this.steps.length-1)this.complete();else{const o=n?r+1:r-1;this.show(o,n)}}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(e){const n=this.options.tourName||"tour",r=e||Gr();this.id=`${n}--${r}`}}const ee=new oc,Po=typeof window>"u";ee.Step=Po?gs:rr,ee.Tour=Po?ms:ic;var sc=Object.defineProperty,ko=t=>{throw TypeError(t)},lc=(t,e,n)=>e in t?sc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ee=(t,e,n)=>lc(t,typeof e!="symbol"?e+"":e,n),Mo=(t,e,n)=>e.has(t)||ko("Cannot "+n),_t=(t,e,n)=>(Mo(t,e,"read from private field"),n?n.call(t):e.get(t)),bn=(t,e,n)=>e.has(t)?ko("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),yn=(t,e,n,r)=>(Mo(t,e,"write to private field"),e.set(t,n),n);/*! shepherd.js 13.0.1 */function cc(t){return t instanceof Element}function Ge(t){return t instanceof HTMLElement}function Ht(t){return typeof t=="function"}function Ze(t){return typeof t=="string"}function tt(t){return t===void 0}class or{on(e,n,r,o=!1){var i;return tt(this.bindings)&&(this.bindings={}),tt(this.bindings[e])&&(this.bindings[e]=[]),(i=this.bindings[e])==null||i.push({handler:n,ctx:r,once:o}),this}once(e,n,r){return this.on(e,n,r,!0)}off(e,n){if(tt(this.bindings)||tt(this.bindings[e]))return this;if(tt(n))delete this.bindings[e];else{var r;(r=this.bindings[e])==null||r.forEach((o,i)=>{if(o.handler===n){var s;(s=this.bindings[e])==null||s.splice(i,1)}})}return this}trigger(e,...n){if(!tt(this.bindings)&&this.bindings[e]){var r;(r=this.bindings[e])==null||r.forEach((o,i)=>{const{ctx:s,handler:l,once:c}=o,a=s||this;if(l.apply(a,n),c){var f;(f=this.bindings[e])==null||f.splice(i,1)}})}return this}}function nt(){return nt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},nt.apply(null,arguments)}function Do(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}const Vt={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};Vt.defaultMerge;function ac(t,e){return e}function Lo(t){return typeof t!="object"||t===null?0:Array.isArray(t)?2:dc(t)?1:t instanceof Set?3:t instanceof Map?4:5}function uc(t){const e=new Set;for(const n of t)for(const r of[...Object.keys(n),...Object.getOwnPropertySymbols(n)])e.add(r);return e}function fc(t,e){return typeof t=="object"&&Object.prototype.propertyIsEnumerable.call(t,e)}function Fo(t){return{*[Symbol.iterator](){for(const e of t)for(const n of e)yield n}}}const jo=new Set(["[object Object]","[object Module]"]);function dc(t){if(!jo.has(Object.prototype.toString.call(t)))return!1;const{constructor:e}=t;if(e===void 0)return!0;const n=e.prototype;return!(n===null||typeof n!="object"||!jo.has(Object.prototype.toString.call(n))||!n.hasOwnProperty("isPrototypeOf"))}function hc(t,e,n){const r={};for(const o of uc(t)){const i=[];for(const c of t)fc(c,o)&&i.push(c[o]);if(i.length===0)continue;const s=e.metaDataUpdater(n,{key:o,parents:t}),l=Wo(i,e,s);l!==Vt.skip&&(o==="__proto__"?Object.defineProperty(r,o,{value:l,configurable:!0,enumerable:!0,writable:!0}):r[o]=l)}return r}function pc(t){return t.flat()}function gc(t){return new Set(Fo(t))}function mc(t){return new Map(Fo(t))}function Bo(t){return t.at(-1)}var ir=Object.freeze({__proto__:null,mergeArrays:pc,mergeMaps:mc,mergeOthers:Bo,mergeRecords:hc,mergeSets:gc});function sr(...t){return bc({})(...t)}function bc(t,e){const n=yc(t,r);function r(...o){return Wo(o,n,e)}return r}function yc(t,e){var n,r;return{defaultMergeFunctions:ir,mergeFunctions:nt({},ir,Object.fromEntries(Object.entries(t).filter(([o,i])=>Object.hasOwn(ir,o)).map(([o,i])=>i===!1?[o,Bo]:[o,i]))),metaDataUpdater:(n=t.metaDataUpdater)!=null?n:ac,deepmerge:e,useImplicitDefaultMerging:(r=t.enableImplicitDefaultMerging)!=null?r:!1,actions:Vt}}function Wo(t,e,n){if(t.length===0)return;if(t.length===1)return lr(t,e,n);const r=Lo(t[0]);if(r!==0&&r!==5){for(let o=1;o<t.length;o++)if(Lo(t[o])!==r)return lr(t,e,n)}switch(r){case 1:return vc(t,e,n);case 2:return wc(t,e,n);case 3:return xc(t,e,n);case 4:return _c(t,e,n);default:return lr(t,e,n)}}function vc(t,e,n){const r=e.mergeFunctions.mergeRecords(t,e,n);return r===Vt.defaultMerge||e.useImplicitDefaultMerging&&r===void 0&&e.mergeFunctions.mergeRecords!==e.defaultMergeFunctions.mergeRecords?e.defaultMergeFunctions.mergeRecords(t,e,n):r}function wc(t,e,n){const r=e.mergeFunctions.mergeArrays(t,e,n);return r===Vt.defaultMerge||e.useImplicitDefaultMerging&&r===void 0&&e.mergeFunctions.mergeArrays!==e.defaultMergeFunctions.mergeArrays?e.defaultMergeFunctions.mergeArrays(t):r}function xc(t,e,n){const r=e.mergeFunctions.mergeSets(t,e,n);return r===Vt.defaultMerge||e.useImplicitDefaultMerging&&r===void 0&&e.mergeFunctions.mergeSets!==e.defaultMergeFunctions.mergeSets?e.defaultMergeFunctions.mergeSets(t):r}function _c(t,e,n){const r=e.mergeFunctions.mergeMaps(t,e,n);return r===Vt.defaultMerge||e.useImplicitDefaultMerging&&r===void 0&&e.mergeFunctions.mergeMaps!==e.defaultMergeFunctions.mergeMaps?e.defaultMergeFunctions.mergeMaps(t):r}function lr(t,e,n){const r=e.mergeFunctions.mergeOthers(t,e,n);return r===Vt.defaultMerge||e.useImplicitDefaultMerging&&r===void 0&&e.mergeFunctions.mergeOthers!==e.defaultMergeFunctions.mergeOthers?e.defaultMergeFunctions.mergeOthers(t):r}function cr(t){const e=Object.getOwnPropertyNames(t.constructor.prototype);for(let n=0;n<e.length;n++){const r=e[n],o=t[r];r!=="constructor"&&typeof o=="function"&&(t[r]=o.bind(t))}return t}function Ec(t,e){return n=>{if(t.isOpen()){const r=t.el&&n.currentTarget===t.el;(!tt(e)&&n.currentTarget.matches(e)||r)&&t.tour.next()}}}function Sc(t){const{event:e,selector:n}=t.options.advanceOn||{};if(e){const r=Ec(t,n);let o=null;if(!tt(n)&&(o=document.querySelector(n),!o))return console.error(`No element was found for the selector supplied to advanceOn: ${n}`);o?(o.addEventListener(e,r),t.on("destroy",()=>o.removeEventListener(e,r))):(document.body.addEventListener(e,r,!0),t.on("destroy",()=>document.body.removeEventListener(e,r,!0)))}else return console.error("advanceOn was defined, but no event name was passed.")}class Oc{constructor(e){}}class Tc{constructor(e,n){}}function No(t){return!Ze(t)||t===""?"":t.charAt(t.length-1)!=="-"?`${t}-`:t}function $c(t){const e=t.options.attachTo||{},n=Object.assign({},e);if(Ht(n.element)&&(n.element=n.element.call(t)),Ze(n.element)){try{n.element=document.querySelector(n.element)}catch{}n.element||console.error(`The element for this Shepherd step was not found ${e.element}`)}return n}function Ho(t){return t==null?!0:!t.element||!t.on}function Vo(){let t=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const n=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(e=="x"?n:n&3|8).toString(16)})}const Se=Math.min,ne=Math.max,vn=Math.round,wn=Math.floor,Ut=t=>({x:t,y:t}),Cc={left:"right",right:"left",bottom:"top",top:"bottom"},Ac={start:"end",end:"start"};function ar(t,e,n){return ne(t,Se(e,n))}function Oe(t,e){return typeof t=="function"?t(e):t}function re(t){return t.split("-")[0]}function xn(t){return t.split("-")[1]}function ur(t){return t==="x"?"y":"x"}function fr(t){return t==="y"?"height":"width"}function Te(t){return["top","bottom"].includes(re(t))?"y":"x"}function dr(t){return ur(Te(t))}function Ic(t,e,n){n===void 0&&(n=!1);const r=xn(t),o=dr(t),i=fr(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=_n(s)),[s,_n(s)]}function Rc(t){const e=_n(t);return[hr(t),e,hr(e)]}function hr(t){return t.replace(/start|end/g,e=>Ac[e])}function Pc(t,e,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?o:r:e?r:o;case"left":case"right":return e?i:s;default:return[]}}function kc(t,e,n,r){const o=xn(t);let i=Pc(re(t),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),e&&(i=i.concat(i.map(hr)))),i}function _n(t){return t.replace(/left|right|bottom|top/g,e=>Cc[e])}function Mc(t){return nt({top:0,right:0,bottom:0,left:0},t)}function Uo(t){return typeof t!="number"?Mc(t):{top:t,right:t,bottom:t,left:t}}function En(t){const{x:e,y:n,width:r,height:o}=t;return{width:r,height:o,top:n,left:e,right:e+r,bottom:n+o,x:e,y:n}}const Dc=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],Lc=["mainAxis","crossAxis","limiter"];function qo(t,e,n){let{reference:r,floating:o}=t;const i=Te(e),s=dr(e),l=fr(s),c=re(e),a=i==="y",f=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,d=r[l]/2-o[l]/2;let p;switch(c){case"top":p={x:f,y:r.y-o.height};break;case"bottom":p={x:f,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:h};break;case"left":p={x:r.x-o.width,y:h};break;default:p={x:r.x,y:r.y}}switch(xn(e)){case"start":p[s]-=d*(n&&a?-1:1);break;case"end":p[s]+=d*(n&&a?-1:1);break}return p}const Fc=async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(e));let a=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:f,y:h}=qo(a,r,c),d=r,p={},m=0;for(let y=0;y<l.length;y++){const{name:_,fn:w}=l[y],{x,y:S,data:b,reset:g}=await w({x:f,y:h,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:a,platform:s,elements:{reference:t,floating:e}});f=x??f,h=S??h,p=nt({},p,{[_]:nt({},p[_],b)}),g&&m<=50&&(m++,typeof g=="object"&&(g.placement&&(d=g.placement),g.rects&&(a=g.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:o}):g.rects),{x:f,y:h}=qo(a,d,c)),y=-1)}return{x:f,y:h,placement:d,strategy:o,middlewareData:p}};async function Yo(t,e){var n;e===void 0&&(e={});const{x:r,y:o,platform:i,rects:s,elements:l,strategy:c}=t,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:d=!1,padding:p=0}=Oe(e,t),m=Uo(p),y=l[d?h==="floating"?"reference":"floating":h],_=En(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(y)))==null||n?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:a,rootBoundary:f,strategy:c})),w=h==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),S=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},b=En(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:x,strategy:c}):w);return{top:(_.top-b.top+m.top)/S.y,bottom:(b.bottom-_.bottom+m.bottom)/S.y,left:(_.left-b.left+m.left)/S.x,right:(b.right-_.right+m.right)/S.x}}const jc=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:o,rects:i,platform:s,elements:l,middlewareData:c}=e,{element:a,padding:f=0}=Oe(t,e)||{};if(a==null)return{};const h=Uo(f),d={x:n,y:r},p=dr(o),m=fr(p),y=await s.getDimensions(a),_=p==="y",w=_?"top":"left",x=_?"bottom":"right",S=_?"clientHeight":"clientWidth",b=i.reference[m]+i.reference[p]-d[p]-i.floating[m],g=d[p]-i.reference[p],O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let I=O?O[S]:0;(!I||!await(s.isElement==null?void 0:s.isElement(O)))&&(I=l.floating[S]||i.floating[m]);const G=b/2-g/2,M=I/2-y[m]/2-1,N=Se(h[w],M),D=Se(h[x],M),W=N,B=I-y[m]-D,A=I/2-y[m]/2+G,H=ar(W,A,B),Y=!c.arrow&&xn(o)!=null&&A!==H&&i.reference[m]/2-(A<W?N:D)-y[m]/2<0,X=Y?A<W?A-W:A-B:0;return{[p]:d[p]+X,data:nt({[p]:H,centerOffset:A-H-X},Y&&{alignmentOffset:X}),reset:Y}}}),Bc=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:l,platform:c,elements:a}=e,f=Oe(t,e),{mainAxis:h=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:_=!0}=f,w=Do(f,Dc);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const x=re(o),S=Te(l),b=re(l)===l,g=await(c.isRTL==null?void 0:c.isRTL(a.floating)),O=p||(b||!_?[_n(l)]:Rc(l)),I=y!=="none";!p&&I&&O.push(...kc(l,_,y,g));const G=[l,...O],M=await Yo(e,w),N=[];let D=((r=i.flip)==null?void 0:r.overflows)||[];if(h&&N.push(M[x]),d){const H=Ic(o,s,g);N.push(M[H[0]],M[H[1]])}if(D=[...D,{placement:o,overflows:N}],!N.every(H=>H<=0)){var W,B;const H=(((W=i.flip)==null?void 0:W.index)||0)+1,Y=G[H];if(Y)return{data:{index:H,overflows:D},reset:{placement:Y}};let X=(B=D.filter(rt=>rt.overflows[0]<=0).sort((rt,Z)=>rt.overflows[1]-Z.overflows[1])[0])==null?void 0:B.placement;if(!X)switch(m){case"bestFit":{var A;const rt=(A=D.filter(Z=>{if(I){const K=Te(Z.placement);return K===S||K==="y"}return!0}).map(Z=>[Z.placement,Z.overflows.filter(K=>K>0).reduce((K,ut)=>K+ut,0)]).sort((Z,K)=>Z[1]-K[1])[0])==null?void 0:A[0];rt&&(X=rt);break}case"initialPlacement":X=l;break}if(o!==X)return{reset:{placement:X}}}return{}}}},Wc=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:o}=e,i=Oe(t,e),{mainAxis:s=!0,crossAxis:l=!1,limiter:c={fn:w=>{let{x,y:S}=w;return{x,y:S}}}}=i,a=Do(i,Lc),f={x:n,y:r},h=await Yo(e,a),d=Te(re(o)),p=ur(d);let m=f[p],y=f[d];if(s){const w=p==="y"?"top":"left",x=p==="y"?"bottom":"right",S=m+h[w],b=m-h[x];m=ar(S,m,b)}if(l){const w=d==="y"?"top":"left",x=d==="y"?"bottom":"right",S=y+h[w],b=y-h[x];y=ar(S,y,b)}const _=c.fn(nt({},e,{[p]:m,[d]:y}));return nt({},_,{data:{x:_.x-n,y:_.y-r}})}}},Nc=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=e,{offset:l=0,mainAxis:c=!0,crossAxis:a=!0}=Oe(t,e),f={x:n,y:r},h=Te(o),d=ur(h);let p=f[d],m=f[h];const y=Oe(l,e),_=typeof y=="number"?{mainAxis:y,crossAxis:0}:nt({mainAxis:0,crossAxis:0},y);if(c){const S=d==="y"?"height":"width",b=i.reference[d]-i.floating[S]+_.mainAxis,g=i.reference[d]+i.reference[S]-_.mainAxis;p<b?p=b:p>g&&(p=g)}if(a){var w,x;const S=d==="y"?"width":"height",b=["top","left"].includes(re(o)),g=i.reference[h]-i.floating[S]+(b&&((w=s.offset)==null?void 0:w[h])||0)+(b?0:_.crossAxis),O=i.reference[h]+i.reference[S]+(b?0:((x=s.offset)==null?void 0:x[h])||0)-(b?_.crossAxis:0);m<g?m=g:m>O&&(m=O)}return{[d]:p,[h]:m}}}};function $e(t){return zo(t)?(t.nodeName||"").toLowerCase():"#document"}function ct(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function It(t){var e;return(e=(zo(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function zo(t){return t instanceof Node||t instanceof ct(t).Node}function Et(t){return t instanceof Element||t instanceof ct(t).Element}function St(t){return t instanceof HTMLElement||t instanceof ct(t).HTMLElement}function Ko(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof ct(t).ShadowRoot}function Qe(t){const{overflow:e,overflowX:n,overflowY:r,display:o}=mt(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(o)}function Hc(t){return["table","td","th"].includes($e(t))}function Sn(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function pr(t){const e=gr(),n=mt(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Vc(t){let e=qt(t);for(;St(e)&&!Ce(e);){if(Sn(e))return null;if(pr(e))return e;e=qt(e)}return null}function gr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ce(t){return["html","body","#document"].includes($e(t))}function mt(t){return ct(t).getComputedStyle(t)}function On(t){return Et(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function qt(t){if($e(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Ko(t)&&t.host||It(t);return Ko(e)?e.host:e}function Jo(t){const e=qt(t);return Ce(e)?t.ownerDocument?t.ownerDocument.body:t.body:St(e)&&Qe(e)?e:Jo(e)}function tn(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const o=Jo(t),i=o===((r=t.ownerDocument)==null?void 0:r.body),s=ct(o);return i?e.concat(s,s.visualViewport||[],Qe(o)?o:[],s.frameElement&&n?tn(s.frameElement):[]):e.concat(o,tn(o,[],n))}function Xo(t){const e=mt(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const o=St(t),i=o?t.offsetWidth:n,s=o?t.offsetHeight:r,l=vn(n)!==i||vn(r)!==s;return l&&(n=i,r=s),{width:n,height:r,$:l}}function mr(t){return Et(t)?t:t.contextElement}function Ae(t){const e=mr(t);if(!St(e))return Ut(1);const n=e.getBoundingClientRect(),{width:r,height:o,$:i}=Xo(e);let s=(i?vn(n.width):n.width)/r,l=(i?vn(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const Uc=Ut(0);function Go(t){const e=ct(t);return!gr()||!e.visualViewport?Uc:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function qc(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==ct(t)?!1:e}function oe(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const o=t.getBoundingClientRect(),i=mr(t);let s=Ut(1);e&&(r?Et(r)&&(s=Ae(r)):s=Ae(t));const l=qc(i,n,r)?Go(i):Ut(0);let c=(o.left+l.x)/s.x,a=(o.top+l.y)/s.y,f=o.width/s.x,h=o.height/s.y;if(i){const d=ct(i),p=r&&Et(r)?ct(r):r;let m=d,y=m.frameElement;for(;y&&r&&p!==m;){const _=Ae(y),w=y.getBoundingClientRect(),x=mt(y),S=w.left+(y.clientLeft+parseFloat(x.paddingLeft))*_.x,b=w.top+(y.clientTop+parseFloat(x.paddingTop))*_.y;c*=_.x,a*=_.y,f*=_.x,h*=_.y,c+=S,a+=b,m=ct(y),y=m.frameElement}}return En({width:f,height:h,x:c,y:a})}function Yc(t){let{elements:e,rect:n,offsetParent:r,strategy:o}=t;const i=o==="fixed",s=It(r),l=e?Sn(e.floating):!1;if(r===s||l&&i)return n;let c={scrollLeft:0,scrollTop:0},a=Ut(1);const f=Ut(0),h=St(r);if((h||!h&&!i)&&(($e(r)!=="body"||Qe(s))&&(c=On(r)),St(r))){const d=oe(r);a=Ae(r),f.x=d.x+r.clientLeft,f.y=d.y+r.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-c.scrollLeft*a.x+f.x,y:n.y*a.y-c.scrollTop*a.y+f.y}}function zc(t){return Array.from(t.getClientRects())}function Zo(t){return oe(It(t)).left+On(t).scrollLeft}function Kc(t){const e=It(t),n=On(t),r=t.ownerDocument.body,o=ne(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=ne(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Zo(t);const l=-n.scrollTop;return mt(r).direction==="rtl"&&(s+=ne(e.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:l}}function Jc(t,e){const n=ct(t),r=It(t),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,c=0;if(o){i=o.width,s=o.height;const a=gr();(!a||a&&e==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:l,y:c}}function Xc(t,e){const n=oe(t,!0,e==="fixed"),r=n.top+t.clientTop,o=n.left+t.clientLeft,i=St(t)?Ae(t):Ut(1),s=t.clientWidth*i.x,l=t.clientHeight*i.y,c=o*i.x,a=r*i.y;return{width:s,height:l,x:c,y:a}}function Qo(t,e,n){let r;if(e==="viewport")r=Jc(t,n);else if(e==="document")r=Kc(It(t));else if(Et(e))r=Xc(e,n);else{const o=Go(t);r=nt({},e,{x:e.x-o.x,y:e.y-o.y})}return En(r)}function ti(t,e){const n=qt(t);return n===e||!Et(n)||Ce(n)?!1:mt(n).position==="fixed"||ti(n,e)}function Gc(t,e){const n=e.get(t);if(n)return n;let r=tn(t,[],!1).filter(l=>Et(l)&&$e(l)!=="body"),o=null;const i=mt(t).position==="fixed";let s=i?qt(t):t;for(;Et(s)&&!Ce(s);){const l=mt(s),c=pr(s);!c&&l.position==="fixed"&&(o=null),(i?!c&&!o:!c&&l.position==="static"&&o&&["absolute","fixed"].includes(o.position)||Qe(s)&&!c&&ti(t,s))?r=r.filter(a=>a!==s):o=l,s=qt(s)}return e.set(t,r),r}function Zc(t){let{element:e,boundary:n,rootBoundary:r,strategy:o}=t;const i=[...n==="clippingAncestors"?Sn(e)?[]:Gc(e,this._c):[].concat(n),r],s=i[0],l=i.reduce((c,a)=>{const f=Qo(e,a,o);return c.top=ne(f.top,c.top),c.right=Se(f.right,c.right),c.bottom=Se(f.bottom,c.bottom),c.left=ne(f.left,c.left),c},Qo(e,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Qc(t){const{width:e,height:n}=Xo(t);return{width:e,height:n}}function ta(t,e,n){const r=St(e),o=It(e),i=n==="fixed",s=oe(t,!0,i,e);let l={scrollLeft:0,scrollTop:0};const c=Ut(0);if(r||!r&&!i)if(($e(e)!=="body"||Qe(o))&&(l=On(e)),r){const h=oe(e,!0,i,e);c.x=h.x+e.clientLeft,c.y=h.y+e.clientTop}else o&&(c.x=Zo(o));const a=s.left+l.scrollLeft-c.x,f=s.top+l.scrollTop-c.y;return{x:a,y:f,width:s.width,height:s.height}}function br(t){return mt(t).position==="static"}function ei(t,e){return!St(t)||mt(t).position==="fixed"?null:e?e(t):t.offsetParent}function ni(t,e){const n=ct(t);if(Sn(t))return n;if(!St(t)){let o=qt(t);for(;o&&!Ce(o);){if(Et(o)&&!br(o))return o;o=qt(o)}return n}let r=ei(t,e);for(;r&&Hc(r)&&br(r);)r=ei(r,e);return r&&Ce(r)&&br(r)&&!pr(r)?n:r||Vc(t)||n}const ea=async function(t){const e=this.getOffsetParent||ni,n=this.getDimensions,r=await n(t.floating);return{reference:ta(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function na(t){return mt(t).direction==="rtl"}const ra={convertOffsetParentRelativeRectToViewportRelativeRect:Yc,getDocumentElement:It,getClippingRect:Zc,getOffsetParent:ni,getElementRects:ea,getClientRects:zc,getDimensions:Qc,getScale:Ae,isElement:Et,isRTL:na};function oa(t,e){let n=null,r;const o=It(t);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const{left:a,top:f,width:h,height:d}=t.getBoundingClientRect();if(l||e(),!h||!d)return;const p=wn(f),m=wn(o.clientWidth-(a+h)),y=wn(o.clientHeight-(f+d)),_=wn(a),w={rootMargin:-p+"px "+-m+"px "+-y+"px "+-_+"px",threshold:ne(0,Se(1,c))||1};let x=!0;function S(b){const g=b[0].intersectionRatio;if(g!==c){if(!x)return s();g?s(!1,g):r=setTimeout(()=>{s(!1,1e-7)},1e3)}x=!1}try{n=new IntersectionObserver(S,nt({},w,{root:o.ownerDocument}))}catch{n=new IntersectionObserver(S,w)}n.observe(t)}return s(!0),i}function ia(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,a=mr(t),f=o||i?[...a?tn(a):[],...tn(e)]:[];f.forEach(w=>{o&&w.addEventListener("scroll",n,{passive:!0}),i&&w.addEventListener("resize",n)});const h=a&&l?oa(a,n):null;let d=-1,p=null;s&&(p=new ResizeObserver(w=>{let[x]=w;x&&x.target===a&&p&&(p.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var S;(S=p)==null||S.observe(e)})),n()}),a&&!c&&p.observe(a),p.observe(e));let m,y=c?oe(t):null;c&&_();function _(){const w=oe(t);y&&(w.x!==y.x||w.y!==y.y||w.width!==y.width||w.height!==y.height)&&n(),y=w,m=requestAnimationFrame(_)}return n(),()=>{var w;f.forEach(x=>{o&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),h==null||h(),(w=p)==null||w.disconnect(),p=null,c&&cancelAnimationFrame(m)}}const sa=Wc,la=Bc,ca=jc,aa=Nc,ua=(t,e,n)=>{const r=new Map,o=nt({platform:ra},n),i=nt({},o.platform,{_c:r});return Fc(t,e,nt({},o,{platform:i}))};function fa(t){t.cleanup&&t.cleanup();const e=t._getResolvedAttachToOptions();let n=e.element;const r=ba(e,t),o=Ho(e);return o&&(n=document.body,t.shepherdElementComponent.getElement().classList.add("shepherd-centered")),t.cleanup=ia(n,t.el,()=>{if(!t.el){t.cleanup==null||t.cleanup();return}pa(n,t,r,o)}),t.target=e.element,r}function da(t,e){return{floatingUIOptions:sr(t.floatingUIOptions||{},e.floatingUIOptions||{})}}function ha(t){t.cleanup&&t.cleanup(),t.cleanup=null}function pa(t,e,n,r){return ua(t,e.el,n).then(ga(e,r)).then(o=>new Promise(i=>{setTimeout(()=>i(o),300)})).then(o=>{o!=null&&o.el&&o.el.focus({preventScroll:!0})})}function ga(t,e){return({x:n,y:r,placement:o,middlewareData:i})=>(t.el&&(e?Object.assign(t.el.style,{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}):Object.assign(t.el.style,{position:"absolute",left:`${n}px`,top:`${r}px`}),t.el.dataset.popperPlacement=o,ma(t.el,i)),t)}function ma(t,e){const n=t.querySelector(".shepherd-arrow");if(Ge(n)&&e.arrow){const{x:r,y:o}=e.arrow;Object.assign(n.style,{left:r!=null?`${r}px`:"",top:o!=null?`${o}px`:""})}}function ba(t,e){const n={strategy:"absolute"};n.middleware=[];const r=ya(e);if(!Ho(t)){if(n.middleware.push(la(),sa({limiter:aa(),crossAxis:!0})),r){var o,i;const s=(t==null||(o=t.on)==null?void 0:o.includes("-start"))||(t==null||(i=t.on)==null?void 0:i.includes("-end"));n.middleware.push(ca({element:r,padding:s?4:0}))}n.placement=t.on}return sr(e.options.floatingUIOptions||{},n)}function ya(t){return t.options.arrow&&t.el?t.el.querySelector(".shepherd-arrow"):!1}function at(){}function va(t,e){for(const n in e)t[n]=e[n];return t}function ri(t){return t()}function oi(){return Object.create(null)}function en(t){t.forEach(ri)}function yr(t){return typeof t=="function"}function Rt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function wa(t){return Object.keys(t).length===0}function Ie(t,e){t.appendChild(e)}function bt(t,e,n){t.insertBefore(e,n||null)}function dt(t){t.parentNode&&t.parentNode.removeChild(t)}function xa(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function Ot(t){return document.createElement(t)}function ii(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function si(t){return document.createTextNode(t)}function Tn(){return si(" ")}function _a(){return si("")}function $n(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function F(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const Ea=["width","height"];function li(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const r in e)e[r]==null?t.removeAttribute(r):r==="style"?t.style.cssText=e[r]:r==="__value"?t.value=t[r]=e[r]:n[r]&&n[r].set&&Ea.indexOf(r)===-1?t[r]=e[r]:F(t,r,e[r])}function Sa(t){return Array.from(t.childNodes)}function Re(t,e,n){t.classList.toggle(e,!!n)}let nn;function rn(t){nn=t}function ci(){if(!nn)throw new Error("Function called outside component initialization");return nn}function Oa(t){ci().$$.on_mount.push(t)}function vr(t){ci().$$.after_update.push(t)}const Pe=[],ke=[];let Me=[];const ai=[],Ta=Promise.resolve();let wr=!1;function $a(){wr||(wr=!0,Ta.then(ui))}function xr(t){Me.push(t)}const _r=new Set;let De=0;function ui(){if(De!==0)return;const t=nn;do{try{for(;De<Pe.length;){const e=Pe[De];De++,rn(e),Ca(e.$$)}}catch(e){throw Pe.length=0,De=0,e}for(rn(null),Pe.length=0,De=0;ke.length;)ke.pop()();for(let e=0;e<Me.length;e+=1){const n=Me[e];_r.has(n)||(_r.add(n),n())}Me.length=0}while(Pe.length);for(;ai.length;)ai.pop()();wr=!1,_r.clear(),rn(t)}function Ca(t){if(t.fragment!==null){t.update(),en(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(xr)}}function Aa(t){const e=[],n=[];Me.forEach(r=>t.indexOf(r)===-1?e.push(r):n.push(r)),n.forEach(r=>r()),Me=e}const Cn=new Set;let ie;function se(){ie={r:0,c:[],p:ie}}function le(){ie.r||en(ie.c),ie=ie.p}function k(t,e){t&&t.i&&(Cn.delete(t),t.i(e))}function U(t,e,n,r){if(t&&t.o){if(Cn.has(t))return;Cn.add(t),ie.c.push(()=>{Cn.delete(t),r&&(n&&t.d(1),r())}),t.o(e)}else r&&r()}function fi(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function Ia(t,e){const n={},r={},o={$$scope:1};let i=t.length;for(;i--;){const s=t[i],l=e[i];if(l){for(const c in s)c in l||(r[c]=1);for(const c in l)o[c]||(n[c]=l[c],o[c]=1);t[i]=l}else for(const c in s)o[c]=1}for(const s in r)s in n||(n[s]=void 0);return n}function ce(t){t&&t.c()}function Yt(t,e,n){const{fragment:r,after_update:o}=t.$$;r&&r.m(e,n),xr(()=>{const i=t.$$.on_mount.map(ri).filter(yr);t.$$.on_destroy?t.$$.on_destroy.push(...i):en(i),t.$$.on_mount=[]}),o.forEach(xr)}function zt(t,e){const n=t.$$;n.fragment!==null&&(Aa(n.after_update),en(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Ra(t,e){t.$$.dirty[0]===-1&&(Pe.push(t),$a(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Pt(t,e,n,r,o,i,s=null,l=[-1]){const c=nn;rn(t);const a=t.$$={fragment:null,ctx:[],props:i,update:at,not_equal:o,bound:oi(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:oi(),dirty:l,skip_bound:!1,root:e.target||c.$$.root};s&&s(a.root);let f=!1;if(a.ctx=n?n(t,e.props||{},(h,d,...p)=>{const m=p.length?p[0]:d;return a.ctx&&o(a.ctx[h],a.ctx[h]=m)&&(!a.skip_bound&&a.bound[h]&&a.bound[h](m),f&&Ra(t,h)),d}):[],a.update(),f=!0,en(a.before_update),a.fragment=r?r(a.ctx):!1,e.target){if(e.hydrate){const h=Sa(e.target);a.fragment&&a.fragment.l(h),h.forEach(dt)}else a.fragment&&a.fragment.c();e.intro&&k(t.$$.fragment),Yt(t,e.target,e.anchor),ui()}rn(c)}class kt{constructor(){this.$$=void 0,this.$$set=void 0}$destroy(){zt(this,1),this.$destroy=at}$on(e,n){if(!yr(n))return at;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o!==-1&&r.splice(o,1)}}$set(e){this.$$set&&!wa(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Pa="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Pa);function ka(t){let e,n,r,o,i;return{c(){e=Ot("button"),F(e,"aria-label",n=t[3]?t[3]:null),F(e,"class",r=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`),e.disabled=t[2],F(e,"tabindex","0"),F(e,"type","button")},m(s,l){bt(s,e,l),e.innerHTML=t[5],o||(i=$n(e,"click",function(){yr(t[0])&&t[0].apply(this,arguments)}),o=!0)},p(s,[l]){t=s,l&32&&(e.innerHTML=t[5]),l&8&&n!==(n=t[3]?t[3]:null)&&F(e,"aria-label",n),l&18&&r!==(r=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`)&&F(e,"class",r),l&4&&(e.disabled=t[2])},i:at,o:at,d(s){s&&dt(e),o=!1,i()}}}function Ma(t,e,n){let{config:r,step:o}=e,i,s,l,c,a,f;function h(d){return Ht(d)?d=d.call(o):d}return t.$$set=d=>{"config"in d&&n(6,r=d.config),"step"in d&&n(7,o=d.step)},t.$$.update=()=>{t.$$.dirty&192&&(n(0,i=r.action?r.action.bind(o.tour):null),n(1,s=r.classes),n(2,l=r.disabled?h(r.disabled):!1),n(3,c=r.label?h(r.label):null),n(4,a=r.secondary),n(5,f=r.text?h(r.text):null))},[i,s,l,c,a,f,r,o]}class Da extends kt{constructor(e){super(),Pt(this,e,Ma,ka,Rt,{config:6,step:7})}}function di(t,e,n){const r=t.slice();return r[2]=e[n],r}function hi(t){let e,n,r=fi(t[1]),o=[];for(let s=0;s<r.length;s+=1)o[s]=pi(di(t,r,s));const i=s=>U(o[s],1,1,()=>{o[s]=null});return{c(){for(let s=0;s<o.length;s+=1)o[s].c();e=_a()},m(s,l){for(let c=0;c<o.length;c+=1)o[c]&&o[c].m(s,l);bt(s,e,l),n=!0},p(s,l){if(l&3){r=fi(s[1]);let c;for(c=0;c<r.length;c+=1){const a=di(s,r,c);o[c]?(o[c].p(a,l),k(o[c],1)):(o[c]=pi(a),o[c].c(),k(o[c],1),o[c].m(e.parentNode,e))}for(se(),c=r.length;c<o.length;c+=1)i(c);le()}},i(s){if(!n){for(let l=0;l<r.length;l+=1)k(o[l]);n=!0}},o(s){o=o.filter(Boolean);for(let l=0;l<o.length;l+=1)U(o[l]);n=!1},d(s){s&&dt(e),xa(o,s)}}}function pi(t){let e,n;return e=new Da({props:{config:t[2],step:t[0]}}),{c(){ce(e.$$.fragment)},m(r,o){Yt(e,r,o),n=!0},p(r,o){const i={};o&2&&(i.config=r[2]),o&1&&(i.step=r[0]),e.$set(i)},i(r){n||(k(e.$$.fragment,r),n=!0)},o(r){U(e.$$.fragment,r),n=!1},d(r){zt(e,r)}}}function La(t){let e,n,r=t[1]&&hi(t);return{c(){e=Ot("footer"),r&&r.c(),F(e,"class","shepherd-footer")},m(o,i){bt(o,e,i),r&&r.m(e,null),n=!0},p(o,[i]){o[1]?r?(r.p(o,i),i&2&&k(r,1)):(r=hi(o),r.c(),k(r,1),r.m(e,null)):r&&(se(),U(r,1,1,()=>{r=null}),le())},i(o){n||(k(r),n=!0)},o(o){U(r),n=!1},d(o){o&&dt(e),r&&r.d()}}}function Fa(t,e,n){let r,{step:o}=e;return t.$$set=i=>{"step"in i&&n(0,o=i.step)},t.$$.update=()=>{t.$$.dirty&1&&n(1,r=o.options.buttons)},[o,r]}class ja extends kt{constructor(e){super(),Pt(this,e,Fa,La,Rt,{step:0})}}function Ba(t){let e,n,r,o,i;return{c(){e=Ot("button"),n=Ot("span"),n.textContent="×",F(n,"aria-hidden","true"),F(e,"aria-label",r=t[0].label?t[0].label:"Close Tour"),F(e,"class","shepherd-cancel-icon"),F(e,"type","button")},m(s,l){bt(s,e,l),Ie(e,n),o||(i=$n(e,"click",t[1]),o=!0)},p(s,[l]){l&1&&r!==(r=s[0].label?s[0].label:"Close Tour")&&F(e,"aria-label",r)},i:at,o:at,d(s){s&&dt(e),o=!1,i()}}}function Wa(t,e,n){let{cancelIcon:r,step:o}=e;const i=s=>{s.preventDefault(),o.cancel()};return t.$$set=s=>{"cancelIcon"in s&&n(0,r=s.cancelIcon),"step"in s&&n(2,o=s.step)},[r,i,o]}class Na extends kt{constructor(e){super(),Pt(this,e,Wa,Ba,Rt,{cancelIcon:0,step:2})}}function Ha(t){let e;return{c(){e=Ot("h3"),F(e,"id",t[1]),F(e,"class","shepherd-title")},m(n,r){bt(n,e,r),t[3](e)},p(n,[r]){r&2&&F(e,"id",n[1])},i:at,o:at,d(n){n&&dt(e),t[3](null)}}}function Va(t,e,n){let{labelId:r,element:o,title:i}=e;vr(()=>{Ht(i)&&n(2,i=i()),n(0,o.innerHTML=i,o)});function s(l){ke[l?"unshift":"push"](()=>{o=l,n(0,o)})}return t.$$set=l=>{"labelId"in l&&n(1,r=l.labelId),"element"in l&&n(0,o=l.element),"title"in l&&n(2,i=l.title)},[o,r,i,s]}class Ua extends kt{constructor(e){super(),Pt(this,e,Va,Ha,Rt,{labelId:1,element:0,title:2})}}function gi(t){let e,n;return e=new Ua({props:{labelId:t[0],title:t[2]}}),{c(){ce(e.$$.fragment)},m(r,o){Yt(e,r,o),n=!0},p(r,o){const i={};o&1&&(i.labelId=r[0]),o&4&&(i.title=r[2]),e.$set(i)},i(r){n||(k(e.$$.fragment,r),n=!0)},o(r){U(e.$$.fragment,r),n=!1},d(r){zt(e,r)}}}function mi(t){let e,n;return e=new Na({props:{cancelIcon:t[3],step:t[1]}}),{c(){ce(e.$$.fragment)},m(r,o){Yt(e,r,o),n=!0},p(r,o){const i={};o&8&&(i.cancelIcon=r[3]),o&2&&(i.step=r[1]),e.$set(i)},i(r){n||(k(e.$$.fragment,r),n=!0)},o(r){U(e.$$.fragment,r),n=!1},d(r){zt(e,r)}}}function qa(t){let e,n,r,o=t[2]&&gi(t),i=t[3]&&t[3].enabled&&mi(t);return{c(){e=Ot("header"),o&&o.c(),n=Tn(),i&&i.c(),F(e,"class","shepherd-header")},m(s,l){bt(s,e,l),o&&o.m(e,null),Ie(e,n),i&&i.m(e,null),r=!0},p(s,[l]){s[2]?o?(o.p(s,l),l&4&&k(o,1)):(o=gi(s),o.c(),k(o,1),o.m(e,n)):o&&(se(),U(o,1,1,()=>{o=null}),le()),s[3]&&s[3].enabled?i?(i.p(s,l),l&8&&k(i,1)):(i=mi(s),i.c(),k(i,1),i.m(e,null)):i&&(se(),U(i,1,1,()=>{i=null}),le())},i(s){r||(k(o),k(i),r=!0)},o(s){U(o),U(i),r=!1},d(s){s&&dt(e),o&&o.d(),i&&i.d()}}}function Ya(t,e,n){let{labelId:r,step:o}=e,i,s;return t.$$set=l=>{"labelId"in l&&n(0,r=l.labelId),"step"in l&&n(1,o=l.step)},t.$$.update=()=>{t.$$.dirty&2&&(n(2,i=o.options.title),n(3,s=o.options.cancelIcon))},[r,o,i,s]}class za extends kt{constructor(e){super(),Pt(this,e,Ya,qa,Rt,{labelId:0,step:1})}}function Ka(t){let e;return{c(){e=Ot("div"),F(e,"class","shepherd-text"),F(e,"id",t[1])},m(n,r){bt(n,e,r),t[3](e)},p(n,[r]){r&2&&F(e,"id",n[1])},i:at,o:at,d(n){n&&dt(e),t[3](null)}}}function Ja(t,e,n){let{descriptionId:r,element:o,step:i}=e;vr(()=>{let{text:l}=i.options;Ht(l)&&(l=l.call(i)),Ge(l)?o.appendChild(l):n(0,o.innerHTML=l,o)});function s(l){ke[l?"unshift":"push"](()=>{o=l,n(0,o)})}return t.$$set=l=>{"descriptionId"in l&&n(1,r=l.descriptionId),"element"in l&&n(0,o=l.element),"step"in l&&n(2,i=l.step)},[o,r,i,s]}class Xa extends kt{constructor(e){super(),Pt(this,e,Ja,Ka,Rt,{descriptionId:1,element:0,step:2})}}function bi(t){let e,n;return e=new za({props:{labelId:t[1],step:t[2]}}),{c(){ce(e.$$.fragment)},m(r,o){Yt(e,r,o),n=!0},p(r,o){const i={};o&2&&(i.labelId=r[1]),o&4&&(i.step=r[2]),e.$set(i)},i(r){n||(k(e.$$.fragment,r),n=!0)},o(r){U(e.$$.fragment,r),n=!1},d(r){zt(e,r)}}}function yi(t){let e,n;return e=new Xa({props:{descriptionId:t[0],step:t[2]}}),{c(){ce(e.$$.fragment)},m(r,o){Yt(e,r,o),n=!0},p(r,o){const i={};o&1&&(i.descriptionId=r[0]),o&4&&(i.step=r[2]),e.$set(i)},i(r){n||(k(e.$$.fragment,r),n=!0)},o(r){U(e.$$.fragment,r),n=!1},d(r){zt(e,r)}}}function vi(t){let e,n;return e=new ja({props:{step:t[2]}}),{c(){ce(e.$$.fragment)},m(r,o){Yt(e,r,o),n=!0},p(r,o){const i={};o&4&&(i.step=r[2]),e.$set(i)},i(r){n||(k(e.$$.fragment,r),n=!0)},o(r){U(e.$$.fragment,r),n=!1},d(r){zt(e,r)}}}function Ga(t){let e,n=!tt(t[2].options.title)||t[2].options.cancelIcon&&t[2].options.cancelIcon.enabled,r,o=!tt(t[2].options.text),i,s=Array.isArray(t[2].options.buttons)&&t[2].options.buttons.length,l,c=n&&bi(t),a=o&&yi(t),f=s&&vi(t);return{c(){e=Ot("div"),c&&c.c(),r=Tn(),a&&a.c(),i=Tn(),f&&f.c(),F(e,"class","shepherd-content")},m(h,d){bt(h,e,d),c&&c.m(e,null),Ie(e,r),a&&a.m(e,null),Ie(e,i),f&&f.m(e,null),l=!0},p(h,[d]){d&4&&(n=!tt(h[2].options.title)||h[2].options.cancelIcon&&h[2].options.cancelIcon.enabled),n?c?(c.p(h,d),d&4&&k(c,1)):(c=bi(h),c.c(),k(c,1),c.m(e,r)):c&&(se(),U(c,1,1,()=>{c=null}),le()),d&4&&(o=!tt(h[2].options.text)),o?a?(a.p(h,d),d&4&&k(a,1)):(a=yi(h),a.c(),k(a,1),a.m(e,i)):a&&(se(),U(a,1,1,()=>{a=null}),le()),d&4&&(s=Array.isArray(h[2].options.buttons)&&h[2].options.buttons.length),s?f?(f.p(h,d),d&4&&k(f,1)):(f=vi(h),f.c(),k(f,1),f.m(e,null)):f&&(se(),U(f,1,1,()=>{f=null}),le())},i(h){l||(k(c),k(a),k(f),l=!0)},o(h){U(c),U(a),U(f),l=!1},d(h){h&&dt(e),c&&c.d(),a&&a.d(),f&&f.d()}}}function Za(t,e,n){let{descriptionId:r,labelId:o,step:i}=e;return t.$$set=s=>{"descriptionId"in s&&n(0,r=s.descriptionId),"labelId"in s&&n(1,o=s.labelId),"step"in s&&n(2,i=s.step)},[r,o,i]}class Qa extends kt{constructor(e){super(),Pt(this,e,Za,Ga,Rt,{descriptionId:0,labelId:1,step:2})}}function wi(t){let e;return{c(){e=Ot("div"),F(e,"class","shepherd-arrow"),F(e,"data-popper-arrow","")},m(n,r){bt(n,e,r)},d(n){n&&dt(e)}}}function tu(t){let e,n,r,o,i,s,l,c,a=t[4].options.arrow&&t[4].options.attachTo&&t[4].options.attachTo.element&&t[4].options.attachTo.on&&wi();r=new Qa({props:{descriptionId:t[2],labelId:t[3],step:t[4]}});let f=[{"aria-describedby":o=tt(t[4].options.text)?null:t[2]},{"aria-labelledby":i=t[4].options.title?t[3]:null},t[1],{role:"dialog"},{tabindex:"0"}],h={};for(let d=0;d<f.length;d+=1)h=va(h,f[d]);return{c(){e=Ot("div"),a&&a.c(),n=Tn(),ce(r.$$.fragment),li(e,h),Re(e,"shepherd-has-cancel-icon",t[5]),Re(e,"shepherd-has-title",t[6]),Re(e,"shepherd-element",!0)},m(d,p){bt(d,e,p),a&&a.m(e,null),Ie(e,n),Yt(r,e,null),t[13](e),s=!0,l||(c=$n(e,"keydown",t[7]),l=!0)},p(d,[p]){d[4].options.arrow&&d[4].options.attachTo&&d[4].options.attachTo.element&&d[4].options.attachTo.on?a||(a=wi(),a.c(),a.m(e,n)):a&&(a.d(1),a=null);const m={};p&4&&(m.descriptionId=d[2]),p&8&&(m.labelId=d[3]),p&16&&(m.step=d[4]),r.$set(m),li(e,h=Ia(f,[(!s||p&20&&o!==(o=tt(d[4].options.text)?null:d[2]))&&{"aria-describedby":o},(!s||p&24&&i!==(i=d[4].options.title?d[3]:null))&&{"aria-labelledby":i},p&2&&d[1],{role:"dialog"},{tabindex:"0"}])),Re(e,"shepherd-has-cancel-icon",d[5]),Re(e,"shepherd-has-title",d[6]),Re(e,"shepherd-element",!0)},i(d){s||(k(r.$$.fragment,d),s=!0)},o(d){U(r.$$.fragment,d),s=!1},d(d){d&&dt(e),a&&a.d(),zt(r),t[13](null),l=!1,c()}}}const eu=9,nu=27,ru=37,ou=39;function xi(t){return t.split(" ").filter(e=>!!e.length)}function iu(t,e,n){let{classPrefix:r,element:o,descriptionId:i,firstFocusableElement:s,focusableElements:l,labelId:c,lastFocusableElement:a,step:f,dataStepId:h}=e,d,p,m;const y=()=>o;Oa(()=>{n(1,h={[`data-${r}shepherd-step-id`]:f.id}),n(9,l=o.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),n(8,s=l[0]),n(10,a=l[l.length-1])}),vr(()=>{m!==f.options.classes&&_()});function _(){w(m),m=f.options.classes,x(m)}function w(g){if(Ze(g)){const O=xi(g);O.length&&o.classList.remove(...O)}}function x(g){if(Ze(g)){const O=xi(g);O.length&&o.classList.add(...O)}}const S=g=>{const{tour:O}=f;switch(g.keyCode){case eu:if(l.length===0){g.preventDefault();break}g.shiftKey?(document.activeElement===s||document.activeElement.classList.contains("shepherd-element"))&&(g.preventDefault(),a.focus()):document.activeElement===a&&(g.preventDefault(),s.focus());break;case nu:O.options.exitOnEsc&&(g.preventDefault(),g.stopPropagation(),f.cancel());break;case ru:O.options.keyboardNavigation&&(g.preventDefault(),g.stopPropagation(),O.back());break;case ou:O.options.keyboardNavigation&&(g.preventDefault(),g.stopPropagation(),O.next());break}};function b(g){ke[g?"unshift":"push"](()=>{o=g,n(0,o)})}return t.$$set=g=>{"classPrefix"in g&&n(11,r=g.classPrefix),"element"in g&&n(0,o=g.element),"descriptionId"in g&&n(2,i=g.descriptionId),"firstFocusableElement"in g&&n(8,s=g.firstFocusableElement),"focusableElements"in g&&n(9,l=g.focusableElements),"labelId"in g&&n(3,c=g.labelId),"lastFocusableElement"in g&&n(10,a=g.lastFocusableElement),"step"in g&&n(4,f=g.step),"dataStepId"in g&&n(1,h=g.dataStepId)},t.$$.update=()=>{t.$$.dirty&16&&(n(5,d=f.options&&f.options.cancelIcon&&f.options.cancelIcon.enabled),n(6,p=f.options&&f.options.title))},[o,h,i,c,f,d,p,S,s,l,a,r,y,b]}class su extends kt{constructor(e){super(),Pt(this,e,iu,tu,Rt,{classPrefix:11,element:0,descriptionId:2,firstFocusableElement:8,focusableElements:9,labelId:3,lastFocusableElement:10,step:4,dataStepId:1,getElement:12})}get getElement(){return this.$$.ctx[12]}}class Er extends or{constructor(e,n={}){return super(),this._resolvedAttachTo=void 0,this.classPrefix=void 0,this.el=void 0,this.target=void 0,this.tour=void 0,this.tour=e,this.classPrefix=this.tour.options?No(this.tour.options.classPrefix):"",this.styles=e.styles,this._resolvedAttachTo=null,cr(this),this._setOptions(n),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){ha(this),Ge(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this.trigger("destroy")}getTour(){return this.tour}hide(){var e;(e=this.tour.modal)==null||e.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveAttachToOptions(){return this._resolvedAttachTo=$c(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return this._resolvedAttachTo===null?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return!!(this.el&&!this.el.hidden)}show(){return Ht(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then(()=>this._show()):Promise.resolve(this._show())}updateStepOptions(e){Object.assign(this.options,e),this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})}getElement(){return this.el}getTarget(){return this.target}_createTooltipContent(){const e=`${this.id}-description`,n=`${this.id}-label`;return this.shepherdElementComponent=new su({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:e,labelId:n,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()}_scrollTo(e){const{element:n}=this._getResolvedAttachToOptions();Ht(this.options.scrollToHandler)?this.options.scrollToHandler(n):cc(n)&&typeof n.scrollIntoView=="function"&&n.scrollIntoView(e)}_getClassOptions(e){const n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,r=e.classes?e.classes:"",o=n&&n.classes?n.classes:"",i=[...r.split(" "),...o.split(" ")],s=new Set(i);return Array.from(s).join(" ").trim()}_setOptions(e={}){let n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;n=sr({},n||{}),this.options=Object.assign({arrow:!0},n,e,da(n,e));const{when:r}=this.options;this.options.classes=this._getClassOptions(e),this.destroy(),this.id=this.options.id||`step-${Vo()}`,r&&Object.keys(r).forEach(o=>{this.on(o,r[o],this)})}_setupElements(){tt(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&Sc(this),fa(this)}_show(){var e;this.trigger("before-show"),this._resolveAttachToOptions(),this._setupElements(),this.tour.modal||this.tour.setupModal(),(e=this.tour.modal)==null||e.setupForStep(this),this._styleTargetElementForStep(this),this.el&&(this.el.hidden=!1),this.options.scrollTo&&setTimeout(()=>{this._scrollTo(this.options.scrollTo)}),this.el&&(this.el.hidden=!1);const n=this.shepherdElementComponent.getElement(),r=this.target||document.body;r.classList.add(`${this.classPrefix}shepherd-enabled`),r.classList.add(`${this.classPrefix}shepherd-target`),n.classList.add("shepherd-enabled"),this.trigger("show")}_styleTargetElementForStep(e){const n=e.target;n&&(e.options.highlightClass&&n.classList.add(e.options.highlightClass),n.classList.remove("shepherd-target-click-disabled"),e.options.canClickTarget===!1&&n.classList.add("shepherd-target-click-disabled"))}_updateStepTargetOnHide(){const e=this.target||document.body;this.options.highlightClass&&e.classList.remove(this.options.highlightClass),e.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)}}function lu(t){if(t){const{steps:e}=t;e.forEach(n=>{n.options&&n.options.canClickTarget===!1&&n.options.attachTo&&Ge(n.target)&&n.target.classList.remove("shepherd-target-click-disabled")})}}function cu({width:t,height:e,x:n=0,y:r=0,r:o=0}){const{innerWidth:i,innerHeight:s}=window,{topLeft:l=0,topRight:c=0,bottomRight:a=0,bottomLeft:f=0}=typeof o=="number"?{topLeft:o,topRight:o,bottomRight:o,bottomLeft:o}:o;return`M${i},${s}H0V0H${i}V${s}ZM${n+l},${r}a${l},${l},0,0,0-${l},${l}V${e+r-f}a${f},${f},0,0,0,${f},${f}H${t+n-a}a${a},${a},0,0,0,${a}-${a}V${r+c}a${c},${c},0,0,0-${c}-${c}Z`}function au(t){let e,n,r,o,i;return{c(){e=ii("svg"),n=ii("path"),F(n,"d",t[2]),F(e,"class",r=`${t[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)},m(s,l){bt(s,e,l),Ie(e,n),t[11](e),o||(i=$n(e,"touchmove",t[3]),o=!0)},p(s,[l]){l&4&&F(n,"d",s[2]),l&2&&r!==(r=`${s[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)&&F(e,"class",r)},i:at,o:at,d(s){s&&dt(e),t[11](null),o=!1,i()}}}function _i(t){if(!t)return null;const e=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY;return e!=="hidden"&&e!=="visible"&&t.scrollHeight>=t.clientHeight?t:_i(t.parentElement)}function uu(t){let e={top:0,left:0};if(!t)return e;let n=t.ownerDocument.defaultView;for(;n!==window.top;){var r;const s=(r=n)==null?void 0:r.frameElement;if(s){var o,i;const l=s.getBoundingClientRect();e.top+=l.top+((o=l.scrollTop)!=null?o:0),e.left+=l.left+((i=l.scrollLeft)!=null?i:0)}n=n.parent}return e}function fu(t,e){const n=t.getBoundingClientRect();let r=n.y||n.top,o=n.bottom||r+n.height;if(e){const s=e.getBoundingClientRect(),l=s.y||s.top,c=s.bottom||l+s.height;r=Math.max(r,l),o=Math.min(o,c)}const i=Math.max(o-r,0);return{y:r,height:i}}function du(t,e,n){let{element:r,openingProperties:o}=e,i=!1,s,l;a();const c=()=>r;function a(){n(4,o={width:0,height:0,x:0,y:0,r:0})}function f(){n(1,i=!1),w()}function h(b=0,g=0,O=0,I=0,G,M){if(M){const{y:N,height:D}=fu(M,G),{x:W,width:B,left:A}=M.getBoundingClientRect();n(4,o={width:B+b*2,height:D+b*2,x:(W||A)+O-b,y:N+I-b,r:g})}else a()}function d(b){w(),b.tour.options.useModalOverlay?(x(b),p()):f()}function p(){n(1,i=!0)}const m=b=>{b.preventDefault()},y=b=>{b.stopPropagation()};function _(){window.addEventListener("touchmove",m,{passive:!1})}function w(){s&&(cancelAnimationFrame(s),s=void 0),window.removeEventListener("touchmove",m,{passive:!1})}function x(b){const{modalOverlayOpeningPadding:g,modalOverlayOpeningRadius:O,modalOverlayOpeningXOffset:I=0,modalOverlayOpeningYOffset:G=0}=b.options,M=uu(b.target),N=_i(b.target),D=()=>{s=void 0,h(g,O,I+M.left,G+M.top,N,b.target),s=requestAnimationFrame(D)};D(),_()}function S(b){ke[b?"unshift":"push"](()=>{r=b,n(0,r)})}return t.$$set=b=>{"element"in b&&n(0,r=b.element),"openingProperties"in b&&n(4,o=b.openingProperties)},t.$$.update=()=>{t.$$.dirty&16&&n(2,l=cu(o))},[r,i,l,y,o,c,a,f,h,d,p,S]}class hu extends kt{constructor(e){super(),Pt(this,e,du,au,Rt,{element:0,openingProperties:4,getElement:5,closeModalOpening:6,hide:7,positionModal:8,setupForStep:9,show:10})}get getElement(){return this.$$.ctx[5]}get closeModalOpening(){return this.$$.ctx[6]}get hide(){return this.$$.ctx[7]}get positionModal(){return this.$$.ctx[8]}get setupForStep(){return this.$$.ctx[9]}get show(){return this.$$.ctx[10]}}class Ei extends or{constructor(){super(),this.activeTour=void 0,cr(this)}}class pu extends or{constructor(e={}){super(),this.trackedEvents=["active","cancel","complete","show"],this.classPrefix=void 0,this.currentStep=void 0,this.focusedElBeforeOpen=void 0,this.id=void 0,this.modal=void 0,this.options=void 0,this.steps=void 0,cr(this);const n={exitOnEsc:!0,keyboardNavigation:!0};return this.options=Object.assign({},n,e),this.classPrefix=No(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps),["active","cancel","complete","inactive","show","start"].map(r=>{(o=>{this.on(o,i=>{i=i||{},i.tour=this,Mt.trigger(o,i)})})(r)}),this._setTourID(e.id),this}addStep(e,n){let r=e;return r instanceof Er?r.tour=this:r=new Er(this,r),tt(n)?this.steps.push(r):this.steps.splice(n,0,r),r}addSteps(e){return Array.isArray(e)&&e.forEach(n=>{this.addStep(n)}),this}back(){const e=this.steps.indexOf(this.currentStep);this.show(e-1,!1)}async cancel(){if(this.options.confirmCancel){const e=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";let n;Ht(this.options.confirmCancel)?n=await this.options.confirmCancel():n=window.confirm(e),n&&this._done("cancel")}else this._done("cancel")}complete(){this._done("complete")}getById(e){return this.steps.find(n=>n.id===e)}getCurrentStep(){return this.currentStep}hide(){const e=this.getCurrentStep();if(e)return e.hide()}isActive(){return Mt.activeTour===this}next(){const e=this.steps.indexOf(this.currentStep);e===this.steps.length-1?this.complete():this.show(e+1,!0)}removeStep(e){const n=this.getCurrentStep();this.steps.some((r,o)=>{if(r.id===e)return r.isOpen()&&r.hide(),r.destroy(),this.steps.splice(o,1),!0}),n&&n.id===e&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(e=0,n=!0){const r=Ze(e)?this.getById(e):this.steps[e];r&&(this._updateStateBeforeShow(),Ht(r.options.showOn)&&!r.options.showOn()?this._skipStep(r,n):(this.trigger("show",{step:r,previous:this.currentStep}),this.currentStep=r,r.show()))}async start(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this.setupModal(),this._setupActiveTour(),this.next()}_done(e){const n=this.steps.indexOf(this.currentStep);if(Array.isArray(this.steps)&&this.steps.forEach(r=>r.destroy()),lu(this),this.trigger(e,{index:n}),Mt.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),(e==="cancel"||e==="complete")&&this.modal){const r=document.querySelector(".shepherd-modal-overlay-container");r&&(r.remove(),this.modal=null)}Ge(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),Mt.activeTour=this}setupModal(){this.modal=new hu({target:this.options.modalContainer||document.body,props:{styles:this.styles}})}_skipStep(e,n){const r=this.steps.indexOf(e);if(r===this.steps.length-1)this.complete();else{const o=n?r+1:r-1;this.show(o,n)}}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(e){const n=this.options.tourName||"tour",r=e||Vo();this.id=`${n}--${r}`}}const Mt=new Ei,Si=typeof window>"u";Mt.Step=Si?Oc:Er,Mt.Tour=Si?Tc:pu;const Sr=(t,e)=>e.some(n=>t instanceof n);let Oi,Ti;function gu(){return Oi||(Oi=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function mu(){return Ti||(Ti=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Or=new WeakMap,Tr=new WeakMap,An=new WeakMap;function bu(t){const e=new Promise((n,r)=>{const o=()=>{t.removeEventListener("success",i),t.removeEventListener("error",s)},i=()=>{n(ae(t.result)),o()},s=()=>{r(t.error),o()};t.addEventListener("success",i),t.addEventListener("error",s)});return An.set(e,t),e}function yu(t){if(Or.has(t))return;const e=new Promise((n,r)=>{const o=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",s),t.removeEventListener("abort",s)},i=()=>{n(),o()},s=()=>{r(t.error||new DOMException("AbortError","AbortError")),o()};t.addEventListener("complete",i),t.addEventListener("error",s),t.addEventListener("abort",s)});Or.set(t,e)}let $r={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return Or.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return ae(t[e])},set(t,e,n){return t[e]=n,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function $i(t){$r=t($r)}function vu(t){return mu().includes(t)?function(...e){return t.apply(Cr(this),e),ae(this.request)}:function(...e){return ae(t.apply(Cr(this),e))}}function wu(t){return typeof t=="function"?vu(t):(t instanceof IDBTransaction&&yu(t),Sr(t,gu())?new Proxy(t,$r):t)}function ae(t){if(t instanceof IDBRequest)return bu(t);if(Tr.has(t))return Tr.get(t);const e=wu(t);return e!==t&&(Tr.set(t,e),An.set(e,t)),e}const Cr=t=>An.get(t);function xu(t,e,{blocked:n,upgrade:r,blocking:o,terminated:i}={}){const s=indexedDB.open(t,e),l=ae(s);return r&&s.addEventListener("upgradeneeded",c=>{r(ae(s.result),c.oldVersion,c.newVersion,ae(s.transaction),c)}),n&&s.addEventListener("blocked",c=>n(c.oldVersion,c.newVersion,c)),l.then(c=>{i&&c.addEventListener("close",()=>i()),o&&c.addEventListener("versionchange",a=>o(a.oldVersion,a.newVersion,a))}).catch(()=>{}),l}const _u=["get","getKey","getAll","getAllKeys","count"],Eu=["put","add","delete","clear"],Ar=new Map;function Ci(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(Ar.get(e))return Ar.get(e);const n=e.replace(/FromIndex$/,""),r=e!==n,o=Eu.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(o||_u.includes(n)))return;const i=async function(s,...l){const c=this.transaction(s,o?"readwrite":"readonly");let a=c.store;return r&&(a=a.index(l.shift())),(await Promise.all([a[n](...l),o&&c.done]))[0]};return Ar.set(e,i),i}$i(t=>({...t,get:(e,n,r)=>Ci(e,n)||t.get(e,n,r),has:(e,n)=>!!Ci(e,n)||t.has(e,n)}));const Su=["continue","continuePrimaryKey","advance"],Ai={},Ir=new WeakMap,Ii=new WeakMap,Ou={get(t,e){if(!Su.includes(e))return t[e];let n=Ai[e];return n||(n=Ai[e]=function(...r){Ir.set(this,Ii.get(this)[e](...r))}),n}};async function*Tu(...t){let e=this;if(e instanceof IDBCursor||(e=await e.openCursor(...t)),!e)return;e=e;const n=new Proxy(e,Ou);for(Ii.set(n,e),An.set(n,Cr(e));e;)yield n,e=await(Ir.get(n)||e.continue()),Ir.delete(n)}function Ri(t,e){return e===Symbol.asyncIterator&&Sr(t,[IDBIndex,IDBObjectStore,IDBCursor])||e==="iterate"&&Sr(t,[IDBIndex,IDBObjectStore])}$i(t=>({...t,get(e,n,r){return Ri(e,n)?Tu:t.get(e,n,r)},has(e,n){return Ri(e,n)||t.has(e,n)}}));var Le,Fe,je;class $u{constructor(e,n,r){if(bn(this,Le),bn(this,Fe),bn(this,je),Ee(this,"tourStateDb"),!e)throw new Error("Shepherd Pro: Missing required apiKey option.");if(!n)throw new Error("Shepherd Pro: Missing required apiPath option.");yn(this,Le,e),yn(this,Fe,n),yn(this,je,r)}getConfig(){return{apiKey:_t(this,Le),apiPath:_t(this,Fe),properties:_t(this,je)}}async getTourState(){try{const e=await fetch(`${_t(this,Fe)}/api/v1/state`,{headers:{Authorization:`ApiKey ${_t(this,Le)}`,"Content-Type":"application/json","X-Shepherd-Properties":JSON.stringify(_t(this,je))},method:"GET"});if(!e.ok)throw new Error("Could not fetch state for tours 🐑");const{data:n}=await e.json();if(this.tourStateDb=await xu("TourState",1,{upgrade(r){r.createObjectStore("tours",{keyPath:"id"})}}),Array.isArray(n)&&n.length){const r=this.tourStateDb.transaction("tours","readwrite"),o=n.map(i=>r.store.put(i));await Promise.all([...o,r.done])}}catch(e){throw new Error("Error fetching data: "+(e instanceof Error?e.message:"Unknown error"))}}async sendEvents(e){e.data.properties=_t(this,je);try{const n=await fetch(`${_t(this,Fe)}/api/v1/actor`,{headers:{Authorization:`ApiKey ${_t(this,Le)}`,"Content-Type":"application/json"},method:"POST",body:JSON.stringify(e)});if(!n.ok)throw new Error("Could not create an event 🐑");const{data:r}=await n.json();return r}catch(n){throw new Error("Error fetching data: "+(n instanceof Error?n.message:"Unknown error"))}}}Le=new WeakMap,Fe=new WeakMap,je=new WeakMap;function Cu(t){let e={};if(t.navigator){const n=t.navigator.userAgent;e={...e,$os:Iu(t),$browser:Pi(n,t.navigator.vendor,!!t.opera),$referrer:t.document.referrer,$referring_domain:Pu(t.document.referrer),$device:Ru(n),$current_url:t.location.href,$host:t.location.host,$pathname:t.location.pathname,$browser_version:Au(n,t.navigator.vendor,!!t.opera),$screen_height:t.screen.height,$screen_width:t.screen.width,$screen_dpr:t.devicePixelRatio}}return e={...e,$lib:"js",$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:new Date().getTime()/1e3},e}function q(t,e){return t.indexOf(e)>=0}function Pi(t,e,n){return e=e||"",n||q(t," OPR/")?q(t,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":q(t,"IEMobile")||q(t,"WPDesktop")?"Internet Explorer Mobile":q(t,"SamsungBrowser/")?"Samsung Internet":q(t,"Edge")||q(t,"Edg/")?"Microsoft Edge":q(t,"FBIOS")?"Facebook Mobile":q(t,"Chrome")?"Chrome":q(t,"CriOS")?"Chrome iOS":q(t,"UCWEB")||q(t,"UCBrowser")?"UC Browser":q(t,"FxiOS")?"Firefox iOS":q(e,"Apple")?q(t,"Mobile")?"Mobile Safari":"Safari":q(t,"Android")?"Android Mobile":q(t,"Konqueror")?"Konqueror":q(t,"Firefox")?"Firefox":q(t,"MSIE")||q(t,"Trident/")?"Internet Explorer":q(t,"Gecko")?"Mozilla":""}function Au(t,e,n){const r={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/},o=Pi(t,e,n),i=r[o]||void 0;if(i===void 0)return null;const s=t.match(i);return s?parseFloat(s[s.length-2]):null}function Iu(t){const e=t.navigator.userAgent;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""}function Ru(t){return/Windows Phone/i.test(t)||/WPDesktop/.test(t)?"Windows Phone":/iPad/.test(t)?"iPad":/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Android/.test(t)?"Android":""}function Pu(t){const e=t.split("/");return e.length>=3?e[2]:""}const ku="https://shepherdpro.com",Rr="shepherdPro:userId";var In;class ki extends Mt.Tour{constructor(e){super(e),bn(this,In,null),yn(this,In,localStorage.getItem(Rr));const{dataRequester:n}=Be;n&&(this.trackedEvents.forEach(r=>this.on(r,o=>{const{tour:i}=o,{id:s,steps:l}=i;let c;if(r!=="active"){const{step:f}=o;f&&(c=l.findIndex(h=>h.id===f.id)+1)}const a={currentUserId:_t(this,In),eventType:r,journeyData:{id:s,currentStep:c,numberOfSteps:l.length,tourOptions:i.options}};n==null||n.sendEvents({data:a})})),this.isTourAutoStart(this.options.id))}async start(){await Be.isTourEnabled(this.options.id)&&(await super.start(),Be.activeTour=Mt.activeTour)}async isTourAutoStart(e){var n;const{dataRequester:r}=Be;if(!r)return;const o=await((n=r.tourStateDb)==null?void 0:n.get("tours",e));o!=null&&o.isAutoStart&&this.start()}}In=new WeakMap,Ee(ki,"trackedEvents",["active","cancel","complete","show"]);class Mu extends Ei{constructor(){super(),Ee(this,"apiKey"),Ee(this,"apiPath"),Ee(this,"dataRequester"),Ee(this,"properties"),this.Tour=ki,this.Step=Mt.Step}async init(e,n,r){if(!e)throw new Error("Shepherd Pro: Missing required apiKey option.");if(this.apiKey=e,this.apiPath=n??ku,this.properties=r??{},this.properties.context=Cu(window),this.apiKey){const o=localStorage.getItem(Rr);this.properties.actorId=o,this.dataRequester=new $u(this.apiKey,this.apiPath,this.properties);const i=[this.dataRequester.getTourState()];o||i.push(this.createNewActor()),await Promise.all(i)}}async createNewActor(){if(!this.dataRequester)return;const e=await this.dataRequester.sendEvents({data:{currentUserId:null,eventType:"setup"}});localStorage.setItem(Rr,String(e.actorId))}async isTourEnabled(e){var n;if(!this.dataRequester)return;const r=await((n=this.dataRequester.tourStateDb)==null?void 0:n.get("tours",e));return(r==null?void 0:r.isActive)??!0}}const Be=new Mu,Rn=Dt.createContext(void 0),Du=Rn.Consumer,Lu=()=>{const t=Dt.useContext(Rn);if(!t)throw new Error("useShepherd must be used within a ShepherdJourneyProvider");const{Shepherd:e}=t;return e},Fu=({apiKey:t,apiPath:e,properties:n,children:r})=>{let o=ee;return typeof window<"u"&&t&&(o=Be,Be.init(t,e,n)),Gi.jsx(Rn.Provider,{value:{Shepherd:o},children:r})};yt.JourneyMethods=Du,yt.ShepherdJourneyContext=Rn,yt.ShepherdJourneyProvider=Fu,yt.useShepherd=Lu,Object.defineProperty(yt,Symbol.toStringTag,{value:"Module"})});
30
+ <%s key={someKey} {...props} />`,qt,Pe,Vo,Pe),Qn[Pe+qt]=!0}}return l===r?jo(j):Lo(j),j}}function Do(l,p,b){return er(l,p,b,!0)}function Bo(l,p,b){return er(l,p,b,!1)}var No=Bo,Wo=Do;ze.Fragment=r,ze.jsx=No,ze.jsxs=Wo}()),ze}process.env.NODE_ENV==="production"?vt.exports=tr():vt.exports=nr();var rr=vt.exports;/*! shepherd.js 13.0.2 */function ir(e){return e instanceof Element}function qe(e){return e instanceof HTMLElement}function ge(e){return typeof e=="function"}function Je(e){return typeof e=="string"}function N(e){return e===void 0}class yt{on(t,n,r,i=!1){var s;return N(this.bindings)&&(this.bindings={}),N(this.bindings[t])&&(this.bindings[t]=[]),(s=this.bindings[t])==null||s.push({handler:n,ctx:r,once:i}),this}once(t,n,r){return this.on(t,n,r,!0)}off(t,n){if(N(this.bindings)||N(this.bindings[t]))return this;if(N(n))delete this.bindings[t];else{var r;(r=this.bindings[t])==null||r.forEach((i,s)=>{if(i.handler===n){var o;(o=this.bindings[t])==null||o.splice(s,1)}})}return this}trigger(t,...n){if(!N(this.bindings)&&this.bindings[t]){var r;(r=this.bindings[t])==null||r.forEach((i,s)=>{const{ctx:o,handler:c,once:a}=i,u=o||this;if(c.apply(u,n),a){var f;(f=this.bindings[t])==null||f.splice(s,1)}})}return this}}function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W.apply(null,arguments)}function Xt(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}const me={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};me.defaultMerge;function or(e,t){return t}function Gt(e){return typeof e!="object"||e===null?0:Array.isArray(e)?2:cr(e)?1:e instanceof Set?3:e instanceof Map?4:5}function sr(e){const t=new Set;for(const n of e)for(const r of[...Object.keys(n),...Object.getOwnPropertySymbols(n)])t.add(r);return t}function lr(e,t){return typeof e=="object"&&Object.prototype.propertyIsEnumerable.call(e,t)}function Zt(e){return{*[Symbol.iterator](){for(const t of e)for(const n of t)yield n}}}const Qt=new Set(["[object Object]","[object Module]"]);function cr(e){if(!Qt.has(Object.prototype.toString.call(e)))return!1;const{constructor:t}=e;if(t===void 0)return!0;const n=t.prototype;return!(n===null||typeof n!="object"||!Qt.has(Object.prototype.toString.call(n))||!n.hasOwnProperty("isPrototypeOf"))}function ar(e,t,n){const r={};for(const i of sr(e)){const s=[];for(const a of e)lr(a,i)&&s.push(a[i]);if(s.length===0)continue;const o=t.metaDataUpdater(n,{key:i,parents:e}),c=tn(s,t,o);c!==me.skip&&(i==="__proto__"?Object.defineProperty(r,i,{value:c,configurable:!0,enumerable:!0,writable:!0}):r[i]=c)}return r}function ur(e){return e.flat()}function fr(e){return new Set(Zt(e))}function dr(e){return new Map(Zt(e))}function en(e){return e.at(-1)}var _t=Object.freeze({__proto__:null,mergeArrays:ur,mergeMaps:dr,mergeOthers:en,mergeRecords:ar,mergeSets:fr});function wt(...e){return hr({})(...e)}function hr(e,t){const n=pr(e,r);function r(...i){return tn(i,n,t)}return r}function pr(e,t){var n,r;return{defaultMergeFunctions:_t,mergeFunctions:W({},_t,Object.fromEntries(Object.entries(e).filter(([i,s])=>Object.hasOwn(_t,i)).map(([i,s])=>s===!1?[i,en]:[i,s]))),metaDataUpdater:(n=e.metaDataUpdater)!=null?n:or,deepmerge:t,useImplicitDefaultMerging:(r=e.enableImplicitDefaultMerging)!=null?r:!1,actions:me}}function tn(e,t,n){if(e.length===0)return;if(e.length===1)return xt(e,t,n);const r=Gt(e[0]);if(r!==0&&r!==5){for(let i=1;i<e.length;i++)if(Gt(e[i])!==r)return xt(e,t,n)}switch(r){case 1:return gr(e,t,n);case 2:return mr(e,t,n);case 3:return br(e,t,n);case 4:return vr(e,t,n);default:return xt(e,t,n)}}function gr(e,t,n){const r=t.mergeFunctions.mergeRecords(e,t,n);return r===me.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeRecords!==t.defaultMergeFunctions.mergeRecords?t.defaultMergeFunctions.mergeRecords(e,t,n):r}function mr(e,t,n){const r=t.mergeFunctions.mergeArrays(e,t,n);return r===me.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeArrays!==t.defaultMergeFunctions.mergeArrays?t.defaultMergeFunctions.mergeArrays(e):r}function br(e,t,n){const r=t.mergeFunctions.mergeSets(e,t,n);return r===me.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeSets!==t.defaultMergeFunctions.mergeSets?t.defaultMergeFunctions.mergeSets(e):r}function vr(e,t,n){const r=t.mergeFunctions.mergeMaps(e,t,n);return r===me.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeMaps!==t.defaultMergeFunctions.mergeMaps?t.defaultMergeFunctions.mergeMaps(e):r}function xt(e,t,n){const r=t.mergeFunctions.mergeOthers(e,t,n);return r===me.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeOthers!==t.defaultMergeFunctions.mergeOthers?t.defaultMergeFunctions.mergeOthers(e):r}function Et(e){const t=Object.getOwnPropertyNames(e.constructor.prototype);for(let n=0;n<t.length;n++){const r=t[n],i=e[r];r!=="constructor"&&typeof i=="function"&&(e[r]=i.bind(e))}return e}function yr(e,t){return n=>{if(e.isOpen()){const r=e.el&&n.currentTarget===e.el;(!N(t)&&n.currentTarget.matches(t)||r)&&e.tour.next()}}}function _r(e){const{event:t,selector:n}=e.options.advanceOn||{};if(t){const r=yr(e,n);let i=null;if(!N(n)&&(i=document.querySelector(n),!i))return console.error(`No element was found for the selector supplied to advanceOn: ${n}`);i?(i.addEventListener(t,r),e.on("destroy",()=>i.removeEventListener(t,r))):(document.body.addEventListener(t,r,!0),e.on("destroy",()=>document.body.removeEventListener(t,r,!0)))}else return console.error("advanceOn was defined, but no event name was passed.")}class wr{constructor(t){}}class xr{constructor(t,n){}}function nn(e){return!Je(e)||e===""?"":e.charAt(e.length-1)!=="-"?`${e}-`:e}function Er(e){const t=e.options.attachTo||{},n=Object.assign({},t);if(ge(n.element)&&(n.element=n.element.call(e)),Je(n.element)){try{n.element=document.querySelector(n.element)}catch{}n.element||console.error(`The element for this Shepherd step was not found ${t.element}`)}return n}function rn(e){return e==null?!0:!e.element||!e.on}function on(){let e=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(e+Math.random()*16)%16|0;return e=Math.floor(e/16),(t=="x"?n:n&3|8).toString(16)})}const ke=Math.min,xe=Math.max,nt=Math.round,rt=Math.floor,be=e=>({x:e,y:e}),Sr={left:"right",right:"left",bottom:"top",top:"bottom"},Or={start:"end",end:"start"};function St(e,t,n){return xe(e,ke(t,n))}function Ie(e,t){return typeof e=="function"?e(t):e}function Ee(e){return e.split("-")[0]}function it(e){return e.split("-")[1]}function Ot(e){return e==="x"?"y":"x"}function Rt(e){return e==="y"?"height":"width"}function Me(e){return["top","bottom"].includes(Ee(e))?"y":"x"}function Tt(e){return Ot(Me(e))}function Rr(e,t,n){n===void 0&&(n=!1);const r=it(e),i=Tt(e),s=Rt(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=ot(o)),[o,ot(o)]}function Tr(e){const t=ot(e);return[Ct(e),t,Ct(t)]}function Ct(e){return e.replace(/start|end/g,t=>Or[t])}function Cr(e,t,n){const r=["left","right"],i=["right","left"],s=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?s:o;default:return[]}}function Ar(e,t,n,r){const i=it(e);let s=Cr(Ee(e),n==="start",r);return i&&(s=s.map(o=>o+"-"+i),t&&(s=s.concat(s.map(Ct)))),s}function ot(e){return e.replace(/left|right|bottom|top/g,t=>Sr[t])}function Pr(e){return W({top:0,right:0,bottom:0,left:0},e)}function sn(e){return typeof e!="number"?Pr(e):{top:e,right:e,bottom:e,left:e}}function st(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}const kr=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],Ir=["mainAxis","crossAxis","limiter"];function ln(e,t,n){let{reference:r,floating:i}=e;const s=Me(t),o=Tt(t),c=Rt(o),a=Ee(t),u=s==="y",f=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,d=r[c]/2-i[c]/2;let g;switch(a){case"top":g={x:f,y:r.y-i.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:h};break;case"left":g={x:r.x-i.width,y:h};break;default:g={x:r.x,y:r.y}}switch(it(t)){case"start":g[o]-=d*(n&&u?-1:1);break;case"end":g[o]+=d*(n&&u?-1:1);break}return g}const Mr=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:o}=n,c=s.filter(Boolean),a=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:h}=ln(u,r,a),d=r,g={},v=0;for(let x=0;x<c.length;x++){const{name:S,fn:w}=c[x],{x:_,y:R,data:y,reset:m}=await w({x:f,y:h,initialPlacement:r,placement:d,strategy:i,middlewareData:g,rects:u,platform:o,elements:{reference:e,floating:t}});f=_??f,h=R??h,g=W({},g,{[S]:W({},g[S],y)}),m&&v<=50&&(v++,typeof m=="object"&&(m.placement&&(d=m.placement),m.rects&&(u=m.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):m.rects),{x:f,y:h}=ln(u,d,a)),x=-1)}return{x:f,y:h,placement:d,strategy:i,middlewareData:g}};async function cn(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:o,elements:c,strategy:a}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:d=!1,padding:g=0}=Ie(t,e),v=sn(g),S=c[d?h==="floating"?"reference":"floating":h],w=st(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(S)))==null||n?S:S.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:u,rootBoundary:f,strategy:a})),_=h==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),y=await(s.isElement==null?void 0:s.isElement(R))?await(s.getScale==null?void 0:s.getScale(R))||{x:1,y:1}:{x:1,y:1},m=st(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:_,offsetParent:R,strategy:a}):_);return{top:(w.top-m.top+v.top)/y.y,bottom:(m.bottom-w.bottom+v.bottom)/y.y,left:(w.left-m.left+v.left)/y.x,right:(m.right-w.right+v.right)/y.x}}const Fr=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:s,platform:o,elements:c,middlewareData:a}=t,{element:u,padding:f=0}=Ie(e,t)||{};if(u==null)return{};const h=sn(f),d={x:n,y:r},g=Tt(i),v=Rt(g),x=await o.getDimensions(u),S=g==="y",w=S?"top":"left",_=S?"bottom":"right",R=S?"clientHeight":"clientWidth",y=s.reference[v]+s.reference[g]-d[g]-s.floating[v],m=d[g]-s.reference[g],T=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let B=T?T[R]:0;(!B||!await(o.isElement==null?void 0:o.isElement(T)))&&(B=c.floating[R]||s.floating[v]);const le=y/2-m/2,$=B/2-x[v]/2-1,X=ke(h[w],$),U=ke(h[_],$),V=X,D=B-x[v]-U,L=B/2-x[v]/2+le,G=St(V,L,D),Y=!a.arrow&&it(i)!=null&&L!==G&&s.reference[v]/2-(L<V?X:U)-x[v]/2<0,de=Y?L<V?L-V:L-D:0;return{[g]:d[g]+de,data:W({[g]:G,centerOffset:L-G-de},Y&&{alignmentOffset:de}),reset:Y}}}),Lr=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(n){var r,i;const{placement:s,middlewareData:o,rects:c,initialPlacement:a,platform:u,elements:f}=n,h=Ie(t,n),{mainAxis:d=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:w=!0}=h,_=Xt(h,kr);if((r=o.arrow)!=null&&r.alignmentOffset)return{};const R=Ee(s),y=Me(a),m=Ee(a)===a,T=await(u.isRTL==null?void 0:u.isRTL(f.floating)),B=v||(m||!w?[ot(a)]:Tr(a)),le=S!=="none";!v&&le&&B.push(...Ar(a,w,S,T));const $=[a,...B],X=await cn(n,_),U=[];let V=((i=o.flip)==null?void 0:i.overflows)||[];if(d&&U.push(X[R]),g){const Y=Rr(s,c,T);U.push(X[Y[0]],X[Y[1]])}if(V=[...V,{placement:s,overflows:U}],!U.every(Y=>Y<=0)){var D,L;const Y=(((D=o.flip)==null?void 0:D.index)||0)+1,de=$[Y];if(de)return{data:{index:Y,overflows:V},reset:{placement:de}};let we=(L=V.filter(he=>he.overflows[0]<=0).sort((he,ne)=>he.overflows[1]-ne.overflows[1])[0])==null?void 0:L.placement;if(!we)switch(x){case"bestFit":{var G;const he=(G=V.filter(ne=>{if(le){const re=Me(ne.placement);return re===y||re==="y"}return!0}).map(ne=>[ne.placement,ne.overflows.filter(re=>re>0).reduce((re,ht)=>re+ht,0)]).sort((ne,re)=>ne[1]-re[1])[0])==null?void 0:G[0];he&&(we=he);break}case"initialPlacement":we=a;break}if(s!==we)return{reset:{placement:we}}}return{}}}},jr=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(n){const{x:r,y:i,placement:s}=n,o=Ie(t,n),{mainAxis:c=!0,crossAxis:a=!1,limiter:u={fn:_=>{let{x:R,y}=_;return{x:R,y}}}}=o,f=Xt(o,Ir),h={x:r,y:i},d=await cn(n,f),g=Me(Ee(s)),v=Ot(g);let x=h[v],S=h[g];if(c){const _=v==="y"?"top":"left",R=v==="y"?"bottom":"right",y=x+d[_],m=x-d[R];x=St(y,x,m)}if(a){const _=g==="y"?"top":"left",R=g==="y"?"bottom":"right",y=S+d[_],m=S-d[R];S=St(y,S,m)}const w=u.fn(W({},n,{[v]:x,[g]:S}));return W({},w,{data:{x:w.x-r,y:w.y-i}})}}},Dr=function(t){return t===void 0&&(t={}),{options:t,fn(n){const{x:r,y:i,placement:s,rects:o,middlewareData:c}=n,{offset:a=0,mainAxis:u=!0,crossAxis:f=!0}=Ie(t,n),h={x:r,y:i},d=Me(s),g=Ot(d);let v=h[g],x=h[d];const S=Ie(a,n),w=typeof S=="number"?{mainAxis:S,crossAxis:0}:W({mainAxis:0,crossAxis:0},S);if(u){const y=g==="y"?"height":"width",m=o.reference[g]-o.floating[y]+w.mainAxis,T=o.reference[g]+o.reference[y]-w.mainAxis;v<m?v=m:v>T&&(v=T)}if(f){var _,R;const y=g==="y"?"width":"height",m=["top","left"].includes(Ee(s)),T=o.reference[d]-o.floating[y]+(m&&((_=c.offset)==null?void 0:_[d])||0)+(m?0:w.crossAxis),B=o.reference[d]+o.reference[y]+(m?0:((R=c.offset)==null?void 0:R[d])||0)-(m?w.crossAxis:0);x<T?x=T:x>B&&(x=B)}return{[g]:v,[d]:x}}}};function Fe(e){return an(e)?(e.nodeName||"").toLowerCase():"#document"}function q(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ce(e){var t;return(t=(an(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function an(e){return e instanceof Node||e instanceof q(e).Node}function Q(e){return e instanceof Element||e instanceof q(e).Element}function oe(e){return e instanceof HTMLElement||e instanceof q(e).HTMLElement}function un(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof q(e).ShadowRoot}function Ke(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=ee(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Br(e){return["table","td","th"].includes(Fe(e))}function lt(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function At(e){const t=Pt(),n=Q(e)?ee(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Nr(e){let t=ve(e);for(;oe(t)&&!Le(t);){if(At(t))return t;if(lt(t))return null;t=ve(t)}return null}function Pt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Le(e){return["html","body","#document"].includes(Fe(e))}function ee(e){return q(e).getComputedStyle(e)}function ct(e){return Q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ve(e){if(Fe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||un(e)&&e.host||ce(e);return un(t)?t.host:t}function fn(e){const t=ve(e);return Le(t)?e.ownerDocument?e.ownerDocument.body:e.body:oe(t)&&Ke(t)?t:fn(t)}function Xe(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=fn(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),o=q(i);return s?t.concat(o,o.visualViewport||[],Ke(i)?i:[],o.frameElement&&n?Xe(o.frameElement):[]):t.concat(i,Xe(i,[],n))}function dn(e){const t=ee(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=oe(e),s=i?e.offsetWidth:n,o=i?e.offsetHeight:r,c=nt(n)!==s||nt(r)!==o;return c&&(n=s,r=o),{width:n,height:r,$:c}}function kt(e){return Q(e)?e:e.contextElement}function je(e){const t=kt(e);if(!oe(t))return be(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=dn(t);let o=(s?nt(n.width):n.width)/r,c=(s?nt(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!c||!Number.isFinite(c))&&(c=1),{x:o,y:c}}const Wr=be(0);function hn(e){const t=q(e);return!Pt()||!t.visualViewport?Wr:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Vr(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==q(e)?!1:t}function Se(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=kt(e);let o=be(1);t&&(r?Q(r)&&(o=je(r)):o=je(e));const c=Vr(s,n,r)?hn(s):be(0);let a=(i.left+c.x)/o.x,u=(i.top+c.y)/o.y,f=i.width/o.x,h=i.height/o.y;if(s){const d=q(s),g=r&&Q(r)?q(r):r;let v=d,x=v.frameElement;for(;x&&r&&g!==v;){const S=je(x),w=x.getBoundingClientRect(),_=ee(x),R=w.left+(x.clientLeft+parseFloat(_.paddingLeft))*S.x,y=w.top+(x.clientTop+parseFloat(_.paddingTop))*S.y;a*=S.x,u*=S.y,f*=S.x,h*=S.y,a+=R,u+=y,v=q(x),x=v.frameElement}}return st({width:f,height:h,x:a,y:u})}function Hr(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",o=ce(r),c=t?lt(t.floating):!1;if(r===o||c&&s)return n;let a={scrollLeft:0,scrollTop:0},u=be(1);const f=be(0),h=oe(r);if((h||!h&&!s)&&((Fe(r)!=="body"||Ke(o))&&(a=ct(r)),oe(r))){const d=Se(r);u=je(r),f.x=d.x+r.clientLeft,f.y=d.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+f.x,y:n.y*u.y-a.scrollTop*u.y+f.y}}function $r(e){return Array.from(e.getClientRects())}function pn(e){return Se(ce(e)).left+ct(e).scrollLeft}function Ur(e){const t=ce(e),n=ct(e),r=e.ownerDocument.body,i=xe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=xe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+pn(e);const c=-n.scrollTop;return ee(r).direction==="rtl"&&(o+=xe(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:c}}function Yr(e,t){const n=q(e),r=ce(e),i=n.visualViewport;let s=r.clientWidth,o=r.clientHeight,c=0,a=0;if(i){s=i.width,o=i.height;const u=Pt();(!u||u&&t==="fixed")&&(c=i.offsetLeft,a=i.offsetTop)}return{width:s,height:o,x:c,y:a}}function zr(e,t){const n=Se(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=oe(e)?je(e):be(1),o=e.clientWidth*s.x,c=e.clientHeight*s.y,a=i*s.x,u=r*s.y;return{width:o,height:c,x:a,y:u}}function gn(e,t,n){let r;if(t==="viewport")r=Yr(e,n);else if(t==="document")r=Ur(ce(e));else if(Q(t))r=zr(t,n);else{const i=hn(e);r=W({},t,{x:t.x-i.x,y:t.y-i.y})}return st(r)}function mn(e,t){const n=ve(e);return n===t||!Q(n)||Le(n)?!1:ee(n).position==="fixed"||mn(n,t)}function qr(e,t){const n=t.get(e);if(n)return n;let r=Xe(e,[],!1).filter(c=>Q(c)&&Fe(c)!=="body"),i=null;const s=ee(e).position==="fixed";let o=s?ve(e):e;for(;Q(o)&&!Le(o);){const c=ee(o),a=At(o);!a&&c.position==="fixed"&&(i=null),(s?!a&&!i:!a&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Ke(o)&&!a&&mn(e,o))?r=r.filter(f=>f!==o):i=c,o=ve(o)}return t.set(e,r),r}function Jr(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?lt(t)?[]:qr(t,this._c):[].concat(n),r],c=o[0],a=o.reduce((u,f)=>{const h=gn(t,f,i);return u.top=xe(h.top,u.top),u.right=ke(h.right,u.right),u.bottom=ke(h.bottom,u.bottom),u.left=xe(h.left,u.left),u},gn(t,c,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Kr(e){const{width:t,height:n}=dn(e);return{width:t,height:n}}function Xr(e,t,n){const r=oe(t),i=ce(t),s=n==="fixed",o=Se(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const a=be(0);if(r||!r&&!s)if((Fe(t)!=="body"||Ke(i))&&(c=ct(t)),r){const h=Se(t,!0,s,t);a.x=h.x+t.clientLeft,a.y=h.y+t.clientTop}else i&&(a.x=pn(i));const u=o.left+c.scrollLeft-a.x,f=o.top+c.scrollTop-a.y;return{x:u,y:f,width:o.width,height:o.height}}function It(e){return ee(e).position==="static"}function bn(e,t){return!oe(e)||ee(e).position==="fixed"?null:t?t(e):e.offsetParent}function vn(e,t){const n=q(e);if(lt(e))return n;if(!oe(e)){let i=ve(e);for(;i&&!Le(i);){if(Q(i)&&!It(i))return i;i=ve(i)}return n}let r=bn(e,t);for(;r&&Br(r)&&It(r);)r=bn(r,t);return r&&Le(r)&&It(r)&&!At(r)?n:r||Nr(e)||n}const Gr=async function(t){const n=this.getOffsetParent||vn,r=this.getDimensions,i=await r(t.floating);return{reference:Xr(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Zr(e){return ee(e).direction==="rtl"}const Qr={convertOffsetParentRelativeRectToViewportRelativeRect:Hr,getDocumentElement:ce,getClippingRect:Jr,getOffsetParent:vn,getElementRects:Gr,getClientRects:$r,getDimensions:Kr,getScale:je,isElement:Q,isRTL:Zr};function ei(e,t){let n=null,r;const i=ce(e);function s(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function o(c,a){c===void 0&&(c=!1),a===void 0&&(a=1),s();const{left:u,top:f,width:h,height:d}=e.getBoundingClientRect();if(c||t(),!h||!d)return;const g=rt(f),v=rt(i.clientWidth-(u+h)),x=rt(i.clientHeight-(f+d)),S=rt(u),_={rootMargin:-g+"px "+-v+"px "+-x+"px "+-S+"px",threshold:xe(0,ke(1,a))||1};let R=!0;function y(m){const T=m[0].intersectionRatio;if(T!==a){if(!R)return o();T?o(!1,T):r=setTimeout(()=>{o(!1,1e-7)},1e3)}R=!1}try{n=new IntersectionObserver(y,W({},_,{root:i.ownerDocument}))}catch{n=new IntersectionObserver(y,_)}n.observe(e)}return o(!0),s}function ti(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=kt(e),f=i||s?[...u?Xe(u):[],...Xe(t)]:[];f.forEach(w=>{i&&w.addEventListener("scroll",n,{passive:!0}),s&&w.addEventListener("resize",n)});const h=u&&c?ei(u,n):null;let d=-1,g=null;o&&(g=new ResizeObserver(w=>{let[_]=w;_&&_.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var R;(R=g)==null||R.observe(t)})),n()}),u&&!a&&g.observe(u),g.observe(t));let v,x=a?Se(e):null;a&&S();function S(){const w=Se(e);x&&(w.x!==x.x||w.y!==x.y||w.width!==x.width||w.height!==x.height)&&n(),x=w,v=requestAnimationFrame(S)}return n(),()=>{var w;f.forEach(_=>{i&&_.removeEventListener("scroll",n),s&&_.removeEventListener("resize",n)}),h==null||h(),(w=g)==null||w.disconnect(),g=null,a&&cancelAnimationFrame(v)}}const ni=jr,ri=Lr,ii=Fr,oi=Dr,si=(e,t,n)=>{const r=new Map,i=W({platform:Qr},n),s=W({},i.platform,{_c:r});return Mr(e,t,W({},i,{platform:s}))};function li(e){e.cleanup&&e.cleanup();const t=e._getResolvedAttachToOptions();let n=t.element;const r=hi(t,e),i=rn(t);return i&&(n=document.body,e.shepherdElementComponent.getElement().classList.add("shepherd-centered")),e.cleanup=ti(n,e.el,()=>{if(!e.el){e.cleanup==null||e.cleanup();return}ui(n,e,r,i)}),e.target=t.element,r}function ci(e,t){return{floatingUIOptions:wt(e.floatingUIOptions||{},t.floatingUIOptions||{})}}function ai(e){e.cleanup&&e.cleanup(),e.cleanup=null}function ui(e,t,n,r){return si(e,t.el,n).then(fi(t,r)).then(i=>new Promise(s=>{setTimeout(()=>s(i),300)})).then(i=>{i!=null&&i.el&&i.el.focus({preventScroll:!0})})}function fi(e,t){return({x:n,y:r,placement:i,middlewareData:s})=>(e.el&&(t?Object.assign(e.el.style,{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}):Object.assign(e.el.style,{position:"absolute",left:`${n}px`,top:`${r}px`}),e.el.dataset.popperPlacement=i,di(e.el,s)),e)}function di(e,t){const n=e.querySelector(".shepherd-arrow");if(qe(n)&&t.arrow){const{x:r,y:i}=t.arrow;Object.assign(n.style,{left:r!=null?`${r}px`:"",top:i!=null?`${i}px`:""})}}function hi(e,t){const n={strategy:"absolute"};n.middleware=[];const r=pi(t);if(!rn(e)){if(n.middleware.push(ri(),ni({limiter:oi(),crossAxis:!0})),r){var s,o;const c=(e==null||(s=e.on)==null?void 0:s.includes("-start"))||(e==null||(o=e.on)==null?void 0:o.includes("-end"));n.middleware.push(ii({element:r,padding:c?4:0}))}n.placement=e.on}return wt(t.options.floatingUIOptions||{},n)}function pi(e){return e.options.arrow&&e.el?e.el.querySelector(".shepherd-arrow"):!1}function J(){}function gi(e,t){for(const n in t)e[n]=t[n];return e}function yn(e){return e()}function _n(){return Object.create(null)}function Ge(e){e.forEach(yn)}function Mt(e){return typeof e=="function"}function ae(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function mi(e){return Object.keys(e).length===0}function De(e,t){e.appendChild(t)}function te(e,t,n){e.insertBefore(t,n||null)}function K(e){e.parentNode&&e.parentNode.removeChild(e)}function bi(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function se(e){return document.createElement(e)}function wn(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function xn(e){return document.createTextNode(e)}function at(){return xn(" ")}function vi(){return xn("")}function ut(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function k(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}const yi=["width","height"];function En(e,t){const n=Object.getOwnPropertyDescriptors(e.__proto__);for(const r in t)t[r]==null?e.removeAttribute(r):r==="style"?e.style.cssText=t[r]:r==="__value"?e.value=e[r]=t[r]:n[r]&&n[r].set&&yi.indexOf(r)===-1?e[r]=t[r]:k(e,r,t[r])}function _i(e){return Array.from(e.childNodes)}function Be(e,t,n){e.classList.toggle(t,!!n)}let Ze;function Qe(e){Ze=e}function Sn(){if(!Ze)throw new Error("Function called outside component initialization");return Ze}function wi(e){Sn().$$.on_mount.push(e)}function Ft(e){Sn().$$.after_update.push(e)}const Ne=[],We=[];let Ve=[];const On=[],xi=Promise.resolve();let Lt=!1;function Ei(){Lt||(Lt=!0,xi.then(Rn))}function jt(e){Ve.push(e)}const Dt=new Set;let He=0;function Rn(){if(He!==0)return;const e=Ze;do{try{for(;He<Ne.length;){const t=Ne[He];He++,Qe(t),Si(t.$$)}}catch(t){throw Ne.length=0,He=0,t}for(Qe(null),Ne.length=0,He=0;We.length;)We.pop()();for(let t=0;t<Ve.length;t+=1){const n=Ve[t];Dt.has(n)||(Dt.add(n),n())}Ve.length=0}while(Ne.length);for(;On.length;)On.pop()();Lt=!1,Dt.clear(),Qe(e)}function Si(e){if(e.fragment!==null){e.update(),Ge(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(jt)}}function Oi(e){const t=[],n=[];Ve.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),Ve=t}const ft=new Set;let Oe;function Re(){Oe={r:0,c:[],p:Oe}}function Te(){Oe.r||Ge(Oe.c),Oe=Oe.p}function P(e,t){e&&e.i&&(ft.delete(e),e.i(t))}function M(e,t,n,r){if(e&&e.o){if(ft.has(e))return;ft.add(e),Oe.c.push(()=>{ft.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}else r&&r()}function Tn(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Ri(e,t){const n={},r={},i={$$scope:1};let s=e.length;for(;s--;){const o=e[s],c=t[s];if(c){for(const a in o)a in c||(r[a]=1);for(const a in c)i[a]||(n[a]=c[a],i[a]=1);e[s]=c}else for(const a in o)i[a]=1}for(const o in r)o in n||(n[o]=void 0);return n}function Ce(e){e&&e.c()}function ye(e,t,n){const{fragment:r,after_update:i}=e.$$;r&&r.m(t,n),jt(()=>{const s=e.$$.on_mount.map(yn).filter(Mt);e.$$.on_destroy?e.$$.on_destroy.push(...s):Ge(s),e.$$.on_mount=[]}),i.forEach(jt)}function _e(e,t){const n=e.$$;n.fragment!==null&&(Oi(n.after_update),Ge(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Ti(e,t){e.$$.dirty[0]===-1&&(Ne.push(e),Ei(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function ue(e,t,n,r,i,s,o=null,c=[-1]){const a=Ze;Qe(e);const u=e.$$={fragment:null,ctx:[],props:s,update:J,not_equal:i,bound:_n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(a?a.$$.context:[])),callbacks:_n(),dirty:c,skip_bound:!1,root:t.target||a.$$.root};o&&o(u.root);let f=!1;if(u.ctx=n?n(e,t.props||{},(h,d,...g)=>{const v=g.length?g[0]:d;return u.ctx&&i(u.ctx[h],u.ctx[h]=v)&&(!u.skip_bound&&u.bound[h]&&u.bound[h](v),f&&Ti(e,h)),d}):[],u.update(),f=!0,Ge(u.before_update),u.fragment=r?r(u.ctx):!1,t.target){if(t.hydrate){const h=_i(t.target);u.fragment&&u.fragment.l(h),h.forEach(K)}else u.fragment&&u.fragment.c();t.intro&&P(e.$$.fragment),ye(e,t.target,t.anchor),Rn()}Qe(a)}class fe{constructor(){this.$$=void 0,this.$$set=void 0}$destroy(){_e(this,1),this.$destroy=J}$on(t,n){if(!Mt(n))return J;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(t){this.$$set&&!mi(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Ci="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ci);function Ai(e){let t,n,r,i,s;return{c(){t=se("button"),k(t,"aria-label",n=e[3]?e[3]:null),k(t,"class",r=`${e[1]||""} shepherd-button ${e[4]?"shepherd-button-secondary":""}`),t.disabled=e[2],k(t,"tabindex","0"),k(t,"type","button")},m(o,c){te(o,t,c),t.innerHTML=e[5],i||(s=ut(t,"click",function(){Mt(e[0])&&e[0].apply(this,arguments)}),i=!0)},p(o,[c]){e=o,c&32&&(t.innerHTML=e[5]),c&8&&n!==(n=e[3]?e[3]:null)&&k(t,"aria-label",n),c&18&&r!==(r=`${e[1]||""} shepherd-button ${e[4]?"shepherd-button-secondary":""}`)&&k(t,"class",r),c&4&&(t.disabled=e[2])},i:J,o:J,d(o){o&&K(t),i=!1,s()}}}function Pi(e,t,n){let{config:r,step:i}=t,s,o,c,a,u,f;function h(d){return ge(d)?d=d.call(i):d}return e.$$set=d=>{"config"in d&&n(6,r=d.config),"step"in d&&n(7,i=d.step)},e.$$.update=()=>{e.$$.dirty&192&&(n(0,s=r.action?r.action.bind(i.tour):null),n(1,o=r.classes),n(2,c=r.disabled?h(r.disabled):!1),n(3,a=r.label?h(r.label):null),n(4,u=r.secondary),n(5,f=r.text?h(r.text):null))},[s,o,c,a,u,f,r,i]}class ki extends fe{constructor(t){super(),ue(this,t,Pi,Ai,ae,{config:6,step:7})}}function Cn(e,t,n){const r=e.slice();return r[2]=t[n],r}function An(e){let t,n,r=Tn(e[1]),i=[];for(let o=0;o<r.length;o+=1)i[o]=Pn(Cn(e,r,o));const s=o=>M(i[o],1,1,()=>{i[o]=null});return{c(){for(let o=0;o<i.length;o+=1)i[o].c();t=vi()},m(o,c){for(let a=0;a<i.length;a+=1)i[a]&&i[a].m(o,c);te(o,t,c),n=!0},p(o,c){if(c&3){r=Tn(o[1]);let a;for(a=0;a<r.length;a+=1){const u=Cn(o,r,a);i[a]?(i[a].p(u,c),P(i[a],1)):(i[a]=Pn(u),i[a].c(),P(i[a],1),i[a].m(t.parentNode,t))}for(Re(),a=r.length;a<i.length;a+=1)s(a);Te()}},i(o){if(!n){for(let c=0;c<r.length;c+=1)P(i[c]);n=!0}},o(o){i=i.filter(Boolean);for(let c=0;c<i.length;c+=1)M(i[c]);n=!1},d(o){o&&K(t),bi(i,o)}}}function Pn(e){let t,n;return t=new ki({props:{config:e[2],step:e[0]}}),{c(){Ce(t.$$.fragment)},m(r,i){ye(t,r,i),n=!0},p(r,i){const s={};i&2&&(s.config=r[2]),i&1&&(s.step=r[0]),t.$set(s)},i(r){n||(P(t.$$.fragment,r),n=!0)},o(r){M(t.$$.fragment,r),n=!1},d(r){_e(t,r)}}}function Ii(e){let t,n,r=e[1]&&An(e);return{c(){t=se("footer"),r&&r.c(),k(t,"class","shepherd-footer")},m(i,s){te(i,t,s),r&&r.m(t,null),n=!0},p(i,[s]){i[1]?r?(r.p(i,s),s&2&&P(r,1)):(r=An(i),r.c(),P(r,1),r.m(t,null)):r&&(Re(),M(r,1,1,()=>{r=null}),Te())},i(i){n||(P(r),n=!0)},o(i){M(r),n=!1},d(i){i&&K(t),r&&r.d()}}}function Mi(e,t,n){let r,{step:i}=t;return e.$$set=s=>{"step"in s&&n(0,i=s.step)},e.$$.update=()=>{e.$$.dirty&1&&n(1,r=i.options.buttons)},[i,r]}class Fi extends fe{constructor(t){super(),ue(this,t,Mi,Ii,ae,{step:0})}}function Li(e){let t,n,r,i,s;return{c(){t=se("button"),n=se("span"),n.textContent="×",k(n,"aria-hidden","true"),k(t,"aria-label",r=e[0].label?e[0].label:"Close Tour"),k(t,"class","shepherd-cancel-icon"),k(t,"type","button")},m(o,c){te(o,t,c),De(t,n),i||(s=ut(t,"click",e[1]),i=!0)},p(o,[c]){c&1&&r!==(r=o[0].label?o[0].label:"Close Tour")&&k(t,"aria-label",r)},i:J,o:J,d(o){o&&K(t),i=!1,s()}}}function ji(e,t,n){let{cancelIcon:r,step:i}=t;const s=o=>{o.preventDefault(),i.cancel()};return e.$$set=o=>{"cancelIcon"in o&&n(0,r=o.cancelIcon),"step"in o&&n(2,i=o.step)},[r,s,i]}class Di extends fe{constructor(t){super(),ue(this,t,ji,Li,ae,{cancelIcon:0,step:2})}}function Bi(e){let t;return{c(){t=se("h3"),k(t,"id",e[1]),k(t,"class","shepherd-title")},m(n,r){te(n,t,r),e[3](t)},p(n,[r]){r&2&&k(t,"id",n[1])},i:J,o:J,d(n){n&&K(t),e[3](null)}}}function Ni(e,t,n){let{labelId:r,element:i,title:s}=t;Ft(()=>{ge(s)&&n(2,s=s()),n(0,i.innerHTML=s,i)});function o(c){We[c?"unshift":"push"](()=>{i=c,n(0,i)})}return e.$$set=c=>{"labelId"in c&&n(1,r=c.labelId),"element"in c&&n(0,i=c.element),"title"in c&&n(2,s=c.title)},[i,r,s,o]}class Wi extends fe{constructor(t){super(),ue(this,t,Ni,Bi,ae,{labelId:1,element:0,title:2})}}function kn(e){let t,n;return t=new Wi({props:{labelId:e[0],title:e[2]}}),{c(){Ce(t.$$.fragment)},m(r,i){ye(t,r,i),n=!0},p(r,i){const s={};i&1&&(s.labelId=r[0]),i&4&&(s.title=r[2]),t.$set(s)},i(r){n||(P(t.$$.fragment,r),n=!0)},o(r){M(t.$$.fragment,r),n=!1},d(r){_e(t,r)}}}function In(e){let t,n;return t=new Di({props:{cancelIcon:e[3],step:e[1]}}),{c(){Ce(t.$$.fragment)},m(r,i){ye(t,r,i),n=!0},p(r,i){const s={};i&8&&(s.cancelIcon=r[3]),i&2&&(s.step=r[1]),t.$set(s)},i(r){n||(P(t.$$.fragment,r),n=!0)},o(r){M(t.$$.fragment,r),n=!1},d(r){_e(t,r)}}}function Vi(e){let t,n,r,i=e[2]&&kn(e),s=e[3]&&e[3].enabled&&In(e);return{c(){t=se("header"),i&&i.c(),n=at(),s&&s.c(),k(t,"class","shepherd-header")},m(o,c){te(o,t,c),i&&i.m(t,null),De(t,n),s&&s.m(t,null),r=!0},p(o,[c]){o[2]?i?(i.p(o,c),c&4&&P(i,1)):(i=kn(o),i.c(),P(i,1),i.m(t,n)):i&&(Re(),M(i,1,1,()=>{i=null}),Te()),o[3]&&o[3].enabled?s?(s.p(o,c),c&8&&P(s,1)):(s=In(o),s.c(),P(s,1),s.m(t,null)):s&&(Re(),M(s,1,1,()=>{s=null}),Te())},i(o){r||(P(i),P(s),r=!0)},o(o){M(i),M(s),r=!1},d(o){o&&K(t),i&&i.d(),s&&s.d()}}}function Hi(e,t,n){let{labelId:r,step:i}=t,s,o;return e.$$set=c=>{"labelId"in c&&n(0,r=c.labelId),"step"in c&&n(1,i=c.step)},e.$$.update=()=>{e.$$.dirty&2&&(n(2,s=i.options.title),n(3,o=i.options.cancelIcon))},[r,i,s,o]}class $i extends fe{constructor(t){super(),ue(this,t,Hi,Vi,ae,{labelId:0,step:1})}}function Ui(e){let t;return{c(){t=se("div"),k(t,"class","shepherd-text"),k(t,"id",e[1])},m(n,r){te(n,t,r),e[3](t)},p(n,[r]){r&2&&k(t,"id",n[1])},i:J,o:J,d(n){n&&K(t),e[3](null)}}}function Yi(e,t,n){let{descriptionId:r,element:i,step:s}=t;Ft(()=>{let{text:c}=s.options;ge(c)&&(c=c.call(s)),qe(c)?i.appendChild(c):n(0,i.innerHTML=c,i)});function o(c){We[c?"unshift":"push"](()=>{i=c,n(0,i)})}return e.$$set=c=>{"descriptionId"in c&&n(1,r=c.descriptionId),"element"in c&&n(0,i=c.element),"step"in c&&n(2,s=c.step)},[i,r,s,o]}class zi extends fe{constructor(t){super(),ue(this,t,Yi,Ui,ae,{descriptionId:1,element:0,step:2})}}function Mn(e){let t,n;return t=new $i({props:{labelId:e[1],step:e[2]}}),{c(){Ce(t.$$.fragment)},m(r,i){ye(t,r,i),n=!0},p(r,i){const s={};i&2&&(s.labelId=r[1]),i&4&&(s.step=r[2]),t.$set(s)},i(r){n||(P(t.$$.fragment,r),n=!0)},o(r){M(t.$$.fragment,r),n=!1},d(r){_e(t,r)}}}function Fn(e){let t,n;return t=new zi({props:{descriptionId:e[0],step:e[2]}}),{c(){Ce(t.$$.fragment)},m(r,i){ye(t,r,i),n=!0},p(r,i){const s={};i&1&&(s.descriptionId=r[0]),i&4&&(s.step=r[2]),t.$set(s)},i(r){n||(P(t.$$.fragment,r),n=!0)},o(r){M(t.$$.fragment,r),n=!1},d(r){_e(t,r)}}}function Ln(e){let t,n;return t=new Fi({props:{step:e[2]}}),{c(){Ce(t.$$.fragment)},m(r,i){ye(t,r,i),n=!0},p(r,i){const s={};i&4&&(s.step=r[2]),t.$set(s)},i(r){n||(P(t.$$.fragment,r),n=!0)},o(r){M(t.$$.fragment,r),n=!1},d(r){_e(t,r)}}}function qi(e){let t,n=!N(e[2].options.title)||e[2].options.cancelIcon&&e[2].options.cancelIcon.enabled,r,i=!N(e[2].options.text),s,o=Array.isArray(e[2].options.buttons)&&e[2].options.buttons.length,c,a=n&&Mn(e),u=i&&Fn(e),f=o&&Ln(e);return{c(){t=se("div"),a&&a.c(),r=at(),u&&u.c(),s=at(),f&&f.c(),k(t,"class","shepherd-content")},m(h,d){te(h,t,d),a&&a.m(t,null),De(t,r),u&&u.m(t,null),De(t,s),f&&f.m(t,null),c=!0},p(h,[d]){d&4&&(n=!N(h[2].options.title)||h[2].options.cancelIcon&&h[2].options.cancelIcon.enabled),n?a?(a.p(h,d),d&4&&P(a,1)):(a=Mn(h),a.c(),P(a,1),a.m(t,r)):a&&(Re(),M(a,1,1,()=>{a=null}),Te()),d&4&&(i=!N(h[2].options.text)),i?u?(u.p(h,d),d&4&&P(u,1)):(u=Fn(h),u.c(),P(u,1),u.m(t,s)):u&&(Re(),M(u,1,1,()=>{u=null}),Te()),d&4&&(o=Array.isArray(h[2].options.buttons)&&h[2].options.buttons.length),o?f?(f.p(h,d),d&4&&P(f,1)):(f=Ln(h),f.c(),P(f,1),f.m(t,null)):f&&(Re(),M(f,1,1,()=>{f=null}),Te())},i(h){c||(P(a),P(u),P(f),c=!0)},o(h){M(a),M(u),M(f),c=!1},d(h){h&&K(t),a&&a.d(),u&&u.d(),f&&f.d()}}}function Ji(e,t,n){let{descriptionId:r,labelId:i,step:s}=t;return e.$$set=o=>{"descriptionId"in o&&n(0,r=o.descriptionId),"labelId"in o&&n(1,i=o.labelId),"step"in o&&n(2,s=o.step)},[r,i,s]}class Ki extends fe{constructor(t){super(),ue(this,t,Ji,qi,ae,{descriptionId:0,labelId:1,step:2})}}function jn(e){let t;return{c(){t=se("div"),k(t,"class","shepherd-arrow"),k(t,"data-popper-arrow","")},m(n,r){te(n,t,r)},d(n){n&&K(t)}}}function Xi(e){let t,n,r,i,s,o,c,a,u=e[4].options.arrow&&e[4].options.attachTo&&e[4].options.attachTo.element&&e[4].options.attachTo.on&&jn();r=new Ki({props:{descriptionId:e[2],labelId:e[3],step:e[4]}});let f=[{"aria-describedby":i=N(e[4].options.text)?null:e[2]},{"aria-labelledby":s=e[4].options.title?e[3]:null},e[1],{role:"dialog"},{tabindex:"0"}],h={};for(let d=0;d<f.length;d+=1)h=gi(h,f[d]);return{c(){t=se("div"),u&&u.c(),n=at(),Ce(r.$$.fragment),En(t,h),Be(t,"shepherd-has-cancel-icon",e[5]),Be(t,"shepherd-has-title",e[6]),Be(t,"shepherd-element",!0)},m(d,g){te(d,t,g),u&&u.m(t,null),De(t,n),ye(r,t,null),e[13](t),o=!0,c||(a=ut(t,"keydown",e[7]),c=!0)},p(d,[g]){d[4].options.arrow&&d[4].options.attachTo&&d[4].options.attachTo.element&&d[4].options.attachTo.on?u||(u=jn(),u.c(),u.m(t,n)):u&&(u.d(1),u=null);const v={};g&4&&(v.descriptionId=d[2]),g&8&&(v.labelId=d[3]),g&16&&(v.step=d[4]),r.$set(v),En(t,h=Ri(f,[(!o||g&20&&i!==(i=N(d[4].options.text)?null:d[2]))&&{"aria-describedby":i},(!o||g&24&&s!==(s=d[4].options.title?d[3]:null))&&{"aria-labelledby":s},g&2&&d[1],{role:"dialog"},{tabindex:"0"}])),Be(t,"shepherd-has-cancel-icon",d[5]),Be(t,"shepherd-has-title",d[6]),Be(t,"shepherd-element",!0)},i(d){o||(P(r.$$.fragment,d),o=!0)},o(d){M(r.$$.fragment,d),o=!1},d(d){d&&K(t),u&&u.d(),_e(r),e[13](null),c=!1,a()}}}const Gi=9,Zi=27,Qi=37,eo=39;function Dn(e){return e.split(" ").filter(t=>!!t.length)}function to(e,t,n){let{classPrefix:r,element:i,descriptionId:s,firstFocusableElement:o,focusableElements:c,labelId:a,lastFocusableElement:u,step:f,dataStepId:h}=t,d,g,v;const x=()=>i;wi(()=>{n(1,h={[`data-${r}shepherd-step-id`]:f.id}),n(9,c=i.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),n(8,o=c[0]),n(10,u=c[c.length-1])}),Ft(()=>{v!==f.options.classes&&S()});function S(){w(v),v=f.options.classes,_(v)}function w(m){if(Je(m)){const T=Dn(m);T.length&&i.classList.remove(...T)}}function _(m){if(Je(m)){const T=Dn(m);T.length&&i.classList.add(...T)}}const R=m=>{const{tour:T}=f;switch(m.keyCode){case Gi:if(c.length===0){m.preventDefault();break}m.shiftKey?(document.activeElement===o||document.activeElement.classList.contains("shepherd-element"))&&(m.preventDefault(),u.focus()):document.activeElement===u&&(m.preventDefault(),o.focus());break;case Zi:T.options.exitOnEsc&&(m.preventDefault(),m.stopPropagation(),f.cancel());break;case Qi:T.options.keyboardNavigation&&(m.preventDefault(),m.stopPropagation(),T.back());break;case eo:T.options.keyboardNavigation&&(m.preventDefault(),m.stopPropagation(),T.next());break}};function y(m){We[m?"unshift":"push"](()=>{i=m,n(0,i)})}return e.$$set=m=>{"classPrefix"in m&&n(11,r=m.classPrefix),"element"in m&&n(0,i=m.element),"descriptionId"in m&&n(2,s=m.descriptionId),"firstFocusableElement"in m&&n(8,o=m.firstFocusableElement),"focusableElements"in m&&n(9,c=m.focusableElements),"labelId"in m&&n(3,a=m.labelId),"lastFocusableElement"in m&&n(10,u=m.lastFocusableElement),"step"in m&&n(4,f=m.step),"dataStepId"in m&&n(1,h=m.dataStepId)},e.$$.update=()=>{e.$$.dirty&16&&(n(5,d=f.options&&f.options.cancelIcon&&f.options.cancelIcon.enabled),n(6,g=f.options&&f.options.title))},[i,h,s,a,f,d,g,R,o,c,u,r,x,y]}class no extends fe{constructor(t){super(),ue(this,t,to,Xi,ae,{classPrefix:11,element:0,descriptionId:2,firstFocusableElement:8,focusableElements:9,labelId:3,lastFocusableElement:10,step:4,dataStepId:1,getElement:12})}get getElement(){return this.$$.ctx[12]}}class Bt extends yt{constructor(t,n={}){return super(),this._resolvedAttachTo=void 0,this.classPrefix=void 0,this.el=void 0,this.target=void 0,this.tour=void 0,this.tour=t,this.classPrefix=this.tour.options?nn(this.tour.options.classPrefix):"",this.styles=t.styles,this._resolvedAttachTo=null,Et(this),this._setOptions(n),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){ai(this),qe(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this.trigger("destroy")}getTour(){return this.tour}hide(){var t;(t=this.tour.modal)==null||t.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveAttachToOptions(){return this._resolvedAttachTo=Er(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return this._resolvedAttachTo===null?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return!!(this.el&&!this.el.hidden)}show(){return ge(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then(()=>this._show()):Promise.resolve(this._show())}updateStepOptions(t){Object.assign(this.options,t),this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})}getElement(){return this.el}getTarget(){return this.target}_createTooltipContent(){const t=`${this.id}-description`,n=`${this.id}-label`;return this.shepherdElementComponent=new no({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:t,labelId:n,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()}_scrollTo(t){const{element:n}=this._getResolvedAttachToOptions();ge(this.options.scrollToHandler)?this.options.scrollToHandler(n):ir(n)&&typeof n.scrollIntoView=="function"&&n.scrollIntoView(t)}_getClassOptions(t){const n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,r=t.classes?t.classes:"",i=n&&n.classes?n.classes:"",s=[...r.split(" "),...i.split(" ")],o=new Set(s);return Array.from(o).join(" ").trim()}_setOptions(t={}){let n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;n=wt({},n||{}),this.options=Object.assign({arrow:!0},n,t,ci(n,t));const{when:r}=this.options;this.options.classes=this._getClassOptions(t),this.destroy(),this.id=this.options.id||`step-${on()}`,r&&Object.keys(r).forEach(i=>{this.on(i,r[i],this)})}_setupElements(){N(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&_r(this),li(this)}_show(){var t;this.trigger("before-show"),this._resolveAttachToOptions(),this._setupElements(),this.tour.modal||this.tour.setupModal(),(t=this.tour.modal)==null||t.setupForStep(this),this._styleTargetElementForStep(this),this.el&&(this.el.hidden=!1),this.options.scrollTo&&setTimeout(()=>{this._scrollTo(this.options.scrollTo)}),this.el&&(this.el.hidden=!1);const n=this.shepherdElementComponent.getElement(),r=this.target||document.body;r.classList.add(`${this.classPrefix}shepherd-enabled`),r.classList.add(`${this.classPrefix}shepherd-target`),n.classList.add("shepherd-enabled"),this.trigger("show")}_styleTargetElementForStep(t){const n=t.target;n&&(t.options.highlightClass&&n.classList.add(t.options.highlightClass),n.classList.remove("shepherd-target-click-disabled"),t.options.canClickTarget===!1&&n.classList.add("shepherd-target-click-disabled"))}_updateStepTargetOnHide(){const t=this.target||document.body;this.options.highlightClass&&t.classList.remove(this.options.highlightClass),t.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)}}function ro(e){if(e){const{steps:t}=e;t.forEach(n=>{n.options&&n.options.canClickTarget===!1&&n.options.attachTo&&qe(n.target)&&n.target.classList.remove("shepherd-target-click-disabled")})}}function io({width:e,height:t,x:n=0,y:r=0,r:i=0}){const{innerWidth:s,innerHeight:o}=window,{topLeft:c=0,topRight:a=0,bottomRight:u=0,bottomLeft:f=0}=typeof i=="number"?{topLeft:i,topRight:i,bottomRight:i,bottomLeft:i}:i;return`M${s},${o}H0V0H${s}V${o}ZM${n+c},${r}a${c},${c},0,0,0-${c},${c}V${t+r-f}a${f},${f},0,0,0,${f},${f}H${e+n-u}a${u},${u},0,0,0,${u}-${u}V${r+a}a${a},${a},0,0,0-${a}-${a}Z`}function oo(e){let t,n,r,i,s;return{c(){t=wn("svg"),n=wn("path"),k(n,"d",e[2]),k(t,"class",r=`${e[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)},m(o,c){te(o,t,c),De(t,n),e[11](t),i||(s=ut(t,"touchmove",e[3]),i=!0)},p(o,[c]){c&4&&k(n,"d",o[2]),c&2&&r!==(r=`${o[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)&&k(t,"class",r)},i:J,o:J,d(o){o&&K(t),e[11](null),i=!1,s()}}}function Bn(e){if(!e)return null;const n=e instanceof HTMLElement&&window.getComputedStyle(e).overflowY;return n!=="hidden"&&n!=="visible"&&e.scrollHeight>=e.clientHeight?e:Bn(e.parentElement)}function so(e){let t={top:0,left:0};if(!e)return t;let n=e.ownerDocument.defaultView;for(;n!==window.top;){var r;const o=(r=n)==null?void 0:r.frameElement;if(o){var i,s;const c=o.getBoundingClientRect();t.top+=c.top+((i=c.scrollTop)!=null?i:0),t.left+=c.left+((s=c.scrollLeft)!=null?s:0)}n=n.parent}return t}function lo(e,t){const n=e.getBoundingClientRect();let r=n.y||n.top,i=n.bottom||r+n.height;if(t){const o=t.getBoundingClientRect(),c=o.y||o.top,a=o.bottom||c+o.height;r=Math.max(r,c),i=Math.min(i,a)}const s=Math.max(i-r,0);return{y:r,height:s}}function co(e,t,n){let{element:r,openingProperties:i}=t,s=!1,o,c;u();const a=()=>r;function u(){n(4,i={width:0,height:0,x:0,y:0,r:0})}function f(){n(1,s=!1),w()}function h(y=0,m=0,T=0,B=0,le,$){if($){const{y:X,height:U}=lo($,le),{x:V,width:D,left:L}=$.getBoundingClientRect();n(4,i={width:D+y*2,height:U+y*2,x:(V||L)+T-y,y:X+B-y,r:m})}else u()}function d(y){w(),y.tour.options.useModalOverlay?(_(y),g()):f()}function g(){n(1,s=!0)}const v=y=>{y.preventDefault()},x=y=>{y.stopPropagation()};function S(){window.addEventListener("touchmove",v,{passive:!1})}function w(){o&&(cancelAnimationFrame(o),o=void 0),window.removeEventListener("touchmove",v,{passive:!1})}function _(y){const{modalOverlayOpeningPadding:m,modalOverlayOpeningRadius:T,modalOverlayOpeningXOffset:B=0,modalOverlayOpeningYOffset:le=0}=y.options,$=so(y.target),X=Bn(y.target),U=()=>{o=void 0,h(m,T,B+$.left,le+$.top,X,y.target),o=requestAnimationFrame(U)};U(),S()}function R(y){We[y?"unshift":"push"](()=>{r=y,n(0,r)})}return e.$$set=y=>{"element"in y&&n(0,r=y.element),"openingProperties"in y&&n(4,i=y.openingProperties)},e.$$.update=()=>{e.$$.dirty&16&&n(2,c=io(i))},[r,s,c,x,i,a,u,f,h,d,g,R]}class ao extends fe{constructor(t){super(),ue(this,t,co,oo,ae,{element:0,openingProperties:4,getElement:5,closeModalOpening:6,hide:7,positionModal:8,setupForStep:9,show:10})}get getElement(){return this.$$.ctx[5]}get closeModalOpening(){return this.$$.ctx[6]}get hide(){return this.$$.ctx[7]}get positionModal(){return this.$$.ctx[8]}get setupForStep(){return this.$$.ctx[9]}get show(){return this.$$.ctx[10]}}class uo extends yt{constructor(){super(),this.activeTour=void 0,Et(this)}}class fo extends yt{constructor(t={}){super(),this.trackedEvents=["active","cancel","complete","show"],this.classPrefix=void 0,this.currentStep=void 0,this.focusedElBeforeOpen=void 0,this.id=void 0,this.modal=void 0,this.options=void 0,this.steps=void 0,Et(this);const n={exitOnEsc:!0,keyboardNavigation:!0};return this.options=Object.assign({},n,t),this.classPrefix=nn(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps),["active","cancel","complete","inactive","show","start"].map(i=>{(s=>{this.on(s,o=>{o=o||{},o.tour=this,Ae.trigger(s,o)})})(i)}),this._setTourID(t.id),this}addStep(t,n){let r=t;return r instanceof Bt?r.tour=this:r=new Bt(this,r),N(n)?this.steps.push(r):this.steps.splice(n,0,r),r}addSteps(t){return Array.isArray(t)&&t.forEach(n=>{this.addStep(n)}),this}back(){const t=this.steps.indexOf(this.currentStep);this.show(t-1,!1)}async cancel(){if(this.options.confirmCancel){const t=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";let n;ge(this.options.confirmCancel)?n=await this.options.confirmCancel():n=window.confirm(t),n&&this._done("cancel")}else this._done("cancel")}complete(){this._done("complete")}getById(t){return this.steps.find(n=>n.id===t)}getCurrentStep(){return this.currentStep}hide(){const t=this.getCurrentStep();if(t)return t.hide()}isActive(){return Ae.activeTour===this}next(){const t=this.steps.indexOf(this.currentStep);t===this.steps.length-1?this.complete():this.show(t+1,!0)}removeStep(t){const n=this.getCurrentStep();this.steps.some((r,i)=>{if(r.id===t)return r.isOpen()&&r.hide(),r.destroy(),this.steps.splice(i,1),!0}),n&&n.id===t&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(t=0,n=!0){const r=Je(t)?this.getById(t):this.steps[t];r&&(this._updateStateBeforeShow(),ge(r.options.showOn)&&!r.options.showOn()?this._skipStep(r,n):(this.trigger("show",{step:r,previous:this.currentStep}),this.currentStep=r,r.show()))}async start(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this.setupModal(),this._setupActiveTour(),this.next()}_done(t){const n=this.steps.indexOf(this.currentStep);if(Array.isArray(this.steps)&&this.steps.forEach(r=>r.destroy()),ro(this),this.trigger(t,{index:n}),Ae.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),(t==="cancel"||t==="complete")&&this.modal){const r=document.querySelector(".shepherd-modal-overlay-container");r&&(r.remove(),this.modal=null)}qe(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),Ae.activeTour=this}setupModal(){this.modal=new ao({target:this.options.modalContainer||document.body,props:{styles:this.styles}})}_skipStep(t,n){const r=this.steps.indexOf(t);if(r===this.steps.length-1)this.complete();else{const i=n?r+1:r-1;this.show(i,n)}}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(t){const n=this.options.tourName||"tour",r=t||on();this.id=`${n}--${r}`}}const Ae=new uo,Nn=typeof window>"u";Ae.Step=Nn?wr:Bt,Ae.Tour=Nn?xr:fo;const dt=pe.createContext(void 0),ho=dt.Consumer,po=()=>{const e=pe.useContext(dt);if(!e)throw new Error("useShepherd must be used within a ShepherdJourneyProvider");const{Shepherd:t}=e;return t},go=({children:e})=>rr.jsx(dt.Provider,{value:{Shepherd:Ae},children:e});ie.JourneyMethods=ho,ie.ShepherdJourneyContext=dt,ie.ShepherdJourneyProvider=go,ie.useShepherd=po,Object.defineProperty(ie,Symbol.toStringTag,{value:"Module"})});