PageSourceSearch

https://www.shepherdjs.dev/_astro/index.astro_astro_type_script_index_0_lang.LLKDJtF_.js

js shepherdjs.dev collected 2026-10-04 00:27:56 UTC 48,060 bytes, 13 lines download raw bytes

1function e(e){return e instanceof HTMLElement}function t(e){return typeof e==`function`}function n(e){return typeof e==`string`}function r(e){return e===void 0}var i=class{on(e,t,n,i=!1){var a;return r(this.bindings)&&(this.bindings={}),r(this.bindings[e])&&(this.bindings[e]=[]),(a=this.bindings[e])==null||a.push({handler:t,ctx:n,once:i}),this}once(e,t,n){return this.on(e,t,n,!0)}off(e,t){let n=this.bindings?.[e];return r(n)||(r(t)?delete this.bindings[e]:this.bindings[e]=n.filter(e=>e.handler!==t)),this}trigger(e,...t){let n=this.bindings?.[e];if(r(n))return this;for(let r of n.slice()){let{ctx:n,handler:a,once:o}=r,s=n||this;if(a.apply(s,t),o){let t=this.bindings[e]?.indexOf(r)??-1;var i;t!==-1&&((i=this.bindings[e])==null||i.splice(t,1))}}return this}};function a(){return a=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},a.apply(null,arguments)}function o(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var s={defaultMerge:Symbol(`deepmerge-ts: default merge`),skip:Symbol(`deepmerge-ts: skip`)};function c(e,t){let n={key:t.key,parents:t.parents,values:t.values,result:t.result},r=e?.hierarchy;return a({},n,{hierarchy:r===void 0?[n]:[...r,n]})}function l(e,t){return e.includes(void 0)?e.filter(e=>e!==void 0):e}function u(e,t,n){return n===s.defaultMerge||e.useImplicitDefaultMerging&&n===void 0&&e.mergeFunctions[t]!==e.defaultMergeFunctions[t]}function d(e,t){return a({},t,Object.fromEntries(Object.entries(e).filter(([e])=>Object.hasOwn(t,e)).map(([e,n])=>!1===n?[e,t.mergeOthers]:typeof n==`function`?[e,n]:[e,t[e]])))}var f;function p(e){return typeof e!=`object`||!e?f.NOT:Array.isArray(e)?f.ARRAY:function(e){let t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;let n=Object.prototype.toString.call(e);if(n!==`[object Object]`&&n!==`[object Module]`)return!1;let{constructor:r}=e;if(r===void 0)return!0;let i=r.prototype;if(typeof i!=`object`||!i)return!1;let a=Object.prototype.toString.call(i);return!(a!==`[object Object]`&&a!==`[object Module]`||!Object.hasOwn(i,`isPrototypeOf`))}(e)?f.RECORD:e instanceof Set?f.SET:e instanceof Map?f.MAP:f.OTHER}function m(e){let t=Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t));return[...Object.keys(e),...t]}function h(e,t){return typeof e==`object`&&Object.prototype.propertyIsEnumerable.call(e,t)}function g(e,t,n){if(t===void 0||t.length===0)return 0;let r=1;for(let i=t.length-1;i>=0;i--){let{parents:a}=t[i];if(a[n]===e||a.includes(e))return r;r+=1}return 0}function _(e){return e?.hierarchy}function v(e,t,n){if(typeof e!=`object`||!e)return e;let r=_(n),i=g(e,r,0);if(r!==void 0&&i>0)return r[r.length-i]?.result;if(p(e)===f.RECORD){let r=e,i=!1,a={};for(let e of m(r)){let o=r[e],s=v(o,t,t.metaDataUpdater(n,{key:e,parents:[r],values:[o],result:a}));s!==o&&(i=!0),e===`__proto__`?Object.defineProperty(a,e,{value:s,configurable:!0,enumerable:!0,writable:!0}):a[e]=s}return i?a:e}return e}(function(e){e[e.NOT=0]=`NOT`,e[e.RECORD=1]=`RECORD`,e[e.ARRAY=2]=`ARRAY`,e[e.SET=3]=`SET`,e[e.MAP=4]=`MAP`,e[e.OTHER=5]=`OTHER`})(f||={});var y={mergeRecords:function(e,t,n){if(e.length===2){let r={},i=(i,a)=>{let o=C(a,t,t.metaDataUpdater(n,{key:i,parents:e,values:a,result:r}));o!==s.skip&&(i===`__proto__`?Object.defineProperty(r,i,{value:o,configurable:!0,enumerable:!0,writable:!0}):r[i]=o)},a=e[0],o=e[1];for(let e of m(a))i(e,h(o,e)?[a[e],o[e]]:[a[e]]);for(let e of m(o))h(a,e)||i(e,[o[e]]);return r}return function(e,t,n){let r={};for(let i of function(e){let t=new Set;for(let n of e){let e=Object.keys(n);for(let n of e)t.add(n);let r=Object.getOwnPropertySymbols(n);if(r.length>0)for(let e of r)Object.prototype.propertyIsEnumerable.call(n,e)&&t.add(e)}return t}(e)){let a=[];for(let t of e)h(t,i)&&a.push(t[i]);let o=C(a,t,t.metaDataUpdater(n,{key:i,parents:e,values:a,result:r}));o!==s.skip&&(i===`__proto__`?Object.defineProperty(r,i,{value:o,configurable:!0,enumerable:!0,writable:!0}):r[i]=o)}return r}(e,t,n)},mergeArrays:function(e,t,n){return e.flat()},mergeSets:function(e,t,n){let r=new Set;for(let t of e)for(let e of t)r.add(e);return r},mergeMaps:function(e,t,n){let r=new Map,i=new Map;for(let t of e)for(let[e,n]of t){let t=i.get(e);t===void 0?i.set(e,[n]):t.push(n)}for(let[a,o]of i){let i=C(o,t,t.metaDataUpdater(n,{key:a,parents:e,values:o,result:r}));i!==s.skip&&r.set(a,i)}return r},mergeCircularReferences:function(e,t,n,r){var i;let a=t[0],o=_(r);for(let i=1;i<e.length;i++)if(t[i]!==a){var s;let i=t.at(-1);return i===0?v(e.at(-1),n,r):o==null||(s=o[o.length-i])==null?void 0:s.result}return o==null||(i=o[o.length-a])==null?void 0:i.result},mergeOthers:function(e,t,n){return e.at(-1)}},b=S();function x(...e){return b(...e)}function S(e={},t){let n=function(e,t){var n;let r=c;return{defaultMergeFunctions:y,mergeFunctions:d(e,y),metaDataUpdater:typeof e.metaDataUpdater==`function`?e.metaDataUpdater:r,deepmerge:t,useImplicitDefaultMerging:(n=e.enableImplicitDefaultMerging)!=null&&n,filterValues:!1===e.filterValues?void 0:typeof e.filterValues==`function`?e.filterValues:l,maxDepth:typeof e.maxDepth==`number`&&!Number.isNaN(e.maxDepth)&&e.maxDepth>=0?e.maxDepth:1e3,actions:s}}(e,r);function r(...e){return C(e,n,t??void 0)}return r}
1function C(e,t,n){let r=(t.filterValues==null?void 0:t.filterValues(e,n))??e;if(r.length===0)return;let i=_(n),a=i?.length??(typeof n==`number`?n:n?.depth??0);if(t.maxDepth!==void 0&&a>=t.maxDepth)return T(r,t,n);if(r.length===1){if(i!==void 0){let e=g(r[0],i,0);if(e>0)return i[i.length-e]?.result??i[i.length-e]?.parents[0]}return T(r,t,n)}let o=p(r[0]);if(o!==f.NOT&&o!==f.OTHER){if(r.length===2){if(p(r[1])!==o)return T(r,t,n);let e=g(r[0],i,0),a=g(r[1],i,1);if(e!==0||a!==0)return w(r,[e,a],t,n)}else{let e=Array(r.length);e[0]=g(r[0],i,0);for(let a=1;a<r.length;a++){if(p(r[a])!==o)return T(r,t,n);e[a]=g(r[a],i,a)}if(e.some(e=>e!==0))return w(r,e,t,n)}}switch(o){case f.RECORD:return function(e,t,n){let r=t.mergeFunctions.mergeRecords(e,t,n);return u(t,`mergeRecords`,r)?t.defaultMergeFunctions.mergeRecords(e,t,n):r}(r,t,n);case f.ARRAY:return function(e,t,n){let r=t.mergeFunctions.mergeArrays(e,t,n);return u(t,`mergeArrays`,r)?t.defaultMergeFunctions.mergeArrays(e):r}(r,t,n);case f.SET:return function(e,t,n){let r=t.mergeFunctions.mergeSets(e,t,n);return u(t,`mergeSets`,r)?t.defaultMergeFunctions.mergeSets(e):r}(r,t,n);case f.MAP:return function(e,t,n){let r=t.mergeFunctions.mergeMaps(e,t,n);return u(t,`mergeMaps`,r)?t.defaultMergeFunctions.mergeMaps(e,t,n):r}(r,t,n);default:return T(r,t,n)}}function w(e,t,n,r){let i=n.mergeFunctions.mergeCircularReferences(e,t,n,r);return u(n,`mergeCircularReferences`,i)?n.defaultMergeFunctions.mergeCircularReferences(e,t,n,r):i}function T(e,t,n){let r=t.mergeFunctions.mergeOthers(e,t,n);return u(t,`mergeOthers`,r)?t.defaultMergeFunctions.mergeOthers(e):r}function E(e){let t=Object.getOwnPropertyNames(e.constructor.prototype);for(let n=0;n<t.length;n++){let r=t[n],i=e[r];r!==`constructor`&&typeof i==`function`&&(e[r]=i.bind(e))}return e}function D(e){let{event:t,selector:n}=e.options.advanceOn||{};if(!t)return;let i=function(e,t){return n=>{if(e.isOpen()){let i=e.el&&n.currentTarget===e.el;(!r(t)&&n.currentTarget.matches(t)||i)&&e.tour.next()}}}(e,n);if(!r(n)){let e=document.querySelector(n);return e?(e.addEventListener(t,i),()=>e.removeEventListener(t,i)):void 0}return document.body.addEventListener(t,i,!0),()=>document.body.removeEventListener(t,i,!0)}function ee(e){return n(e)&&e!==``?e.charAt(e.length-1)===`-`?e:`${e}-`:``}function O(e){let r=e.options.attachTo||{},i=t(r.element)?r.element.call(e):r.element;if(n(i))try{i=document.querySelector(i)}catch{i=null}return i||null}function k(e){return e==null||!e.element||!e.on}function A(){let e=Date.now();return`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,t=>{let n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),(t==`x`?n:3&n|8).toString(16)})}var j=[`start`,`end`],M=[`top`,`right`,`bottom`,`left`].reduce((e,t)=>e.concat(t,t+`-`+j[0],t+`-`+j[1]),[]),N=Math.min,P=Math.max,te=Math.round,ne=Math.floor,F=e=>({x:e,y:e}),re={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function ie(e,t,n){return P(e,N(t,n))}function I(e,t){return typeof e==`function`?e(t):e}function L(e){return e.split(`-`)[0]}function R(e){return e.split(`-`)[1]}function ae(e){return e===`x`?`y`:`x`}function oe(e){return e===`y`?`height`:`width`}function z(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function se(e){return ae(z(e))}function ce(e,t,n){n===void 0&&(n=!1);let r=R(e),i=se(e),a=oe(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=he(o)),[o,he(o)]}function le(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var ue=[`left`,`right`],de=[`right`,`left`],fe=[`top`,`bottom`],pe=[`bottom`,`top`];function me(e,t,n,r){let i=R(e),a=function(e,t,n){switch(e){case`top`:case`bottom`:return n?t?de:ue:t?ue:de;case`left`:case`right`:return t?fe:pe;default:return[]}}(L(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(le)))),a}function he(e){let t=L(e);return re[t]+e.slice(t.length)}function ge(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:function(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}(e)}function _e(e){let{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}}var ve=[`crossAxis`,`alignment`,`allowedPlacements`,`autoAlignment`],ye=[`mainAxis`,`crossAxis`,`fallbackPlacements`,`fallbackStrategy`,`fallbackAxisSideDirection`,`flipAlignment`],be=[`mainAxis`,`crossAxis`,`limiter`];function xe(e,t,n){let{reference:r,floating:i}=e,a=z(t),o=se(t),s=oe(o),c=L(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=R(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Se(e,t){var n;t===void 0&&(t={});let{x:r,y:i,platform:a,rects:o,elements:s,strategy:c}=e,{boundary:l=`clippingAncestors`,rootBoundary:u=`viewport`,elementContext:d=`floating`,altBoundary:f=!1,padding:p=0}=I(t,e),m=ge(p),h=s[f?d===`floating`?`reference`:`floating`:d],g=_e(await a.getClippingRect
1({element:(n=await(a.isElement==null?void 0:a.isElement(h)))==null||n?h:h.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),_=d===`floating`?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,v=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),y=await(a.isElement==null?void 0:a.isElement(v))&&await(a.getScale==null?void 0:a.getScale(v))||{x:1,y:1},b=_e(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:_,offsetParent:v,strategy:c}):_);return{top:(g.top-b.top+m.top)/y.y,bottom:(b.bottom-g.bottom+m.bottom)/y.y,left:(g.left-b.left+m.left)/y.x,right:(b.right-g.right+m.right)/y.x}}var Ce=new Set([`left`,`top`]);function we(){return typeof window<`u`}function B(e){return Te(e)?(e.nodeName||``).toLowerCase():`#document`}function V(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function H(e){return((Te(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Te(e){return!!we()&&(e instanceof Node||e instanceof V(e).Node)}function U(e){return!!we()&&(e instanceof Element||e instanceof V(e).Element)}function W(e){return!!we()&&(e instanceof HTMLElement||e instanceof V(e).HTMLElement)}function Ee(e){return!(!we()||typeof ShadowRoot>`u`)&&(e instanceof ShadowRoot||e instanceof V(e).ShadowRoot)}function De(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=q(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Oe(e){return/^(table|td|th)$/.test(B(e))}function ke(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Ae=/transform|translate|scale|rotate|perspective|filter/,je=/paint|layout|strict|content/,G=e=>!!e&&e!==`none`,Me;function Ne(e){let t=U(e)?q(e):e;return G(t.transform)||G(t.translate)||G(t.scale)||G(t.rotate)||G(t.perspective)||!Pe()&&(G(t.backdropFilter)||G(t.filter))||Ae.test(t.willChange||``)||je.test(t.contain||``)}function Pe(){return Me??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Me}function K(e){return/^(html|body|#document)$/.test(B(e))}function q(e){return V(e).getComputedStyle(e)}function Fe(e){return U(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function J(e){if(B(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Ee(e)&&e.host||H(e);return Ee(t)?t.host:t}function Ie(e){let t=J(e);return K(t)?(e.ownerDocument||e).body:W(t)&&De(t)?t:Ie(t)}function Y(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Ie(e),i=r===e.ownerDocument?.body,a=V(r);if(i){let e=Le(a);return t.concat(a,a.visualViewport||[],De(r)?r:[],e&&n?Y(e):[])}return t.concat(r,Y(r,[],n))}function Le(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Re(e){let t=q(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=W(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=te(n)!==a||te(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function ze(e){return U(e)?e:e.contextElement}function X(e){let t=ze(e);if(!W(t))return F(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Re(t),o=(a?te(n.width):n.width)/r,s=(a?te(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}var Be=F(0);function Ve(e){let t=V(e);return Pe()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Be}function Z(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=ze(e),o=F(1);t&&(r?U(r)&&(o=X(r)):o=X(e));let s=function(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===V(e)}(a,n,r)?Ve(a):F(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=V(a),t=U(r)?V(r):r,n=e,i=Le(n);for(;i&&t!==n;){let e=X(i),t=i.getBoundingClientRect(),r=q(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=V(i),i=Le(n)}}return _e({width:u,height:d,x:c,y:l})}function He(e,t){let n=Fe(e).scrollLeft;return t?t.left+n:Z(H(e)).left+n}function Ue(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-He(e,n),y:n.top+t.scrollTop}}function We(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=function(e,t,n){n===void 0&&(n=`viewport`);
1let r=n===`layoutViewport`,i=V(e),a=H(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!Pe()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(He(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=25&&(s-=o)}return{width:s,height:c,x:l,y:u}}(e,n,t);else if(t===`document`)r=function(e){let t=Fe(e),n=e.ownerDocument.body,r=P(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=P(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+He(e),o=-t.scrollTop;return q(n).direction===`rtl`&&(a+=P(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}(H(e));else if(U(t))r=function(e,t){let n=Z(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=X(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}(t,n);else{let n=Ve(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return _e(r)}function Ge(e,t,n){let r=W(t),i=H(t),a=n===`fixed`,o=Z(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=F(0);if((r||!a)&&((B(t)!==`body`||De(i))&&(s=Fe(t)),r)){let e=Z(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=He(i));let l=!i||r||a?F(0):Ue(i,s);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function Ke(e){return q(e).position===`static`}function qe(e,t){if(!W(e)||q(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return H(e)===n&&(n=n.ownerDocument.body),n}function Je(e,t){let n=V(e);if(ke(e))return n;if(!W(e)){let t=J(e);for(;t&&!K(t);){if(U(t)&&!Ke(t))return t;t=J(t)}return n}let r=qe(e,t);for(;r&&Oe(r)&&Ke(r);)r=qe(r,t);return r&&K(r)&&Ke(r)&&!Ne(r)?n:r||function(e){let t=J(e);for(;W(t)&&!K(t);){if(Ne(t))return t;if(ke(t))return null;t=J(t)}return null}(e)||n}var Ye={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=H(r),s=!!t&&ke(t.floating);if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=F(1),u=F(0),d=W(r);if((d||!a)&&((B(r)!==`body`||De(o))&&(c=Fe(r)),d)){let e=Z(r);l=X(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=!o||d||a?F(0):Ue(o,c);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}},getDocumentElement:H,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?ke(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=Y(e,[],!1).filter(e=>U(e)&&B(e)!==`body`),i=null,a=q(e).position===`fixed`,o=a?J(e):e;for(;U(o)&&!K(o);
1){let e=q(o),t=Ne(o),n=i?i.position:a?`fixed`:``;t||n!==`fixed`&&(n!==`absolute`||e.position!==`static`)?i=e:r=r.filter(e=>e!==o),o=J(o)}return t.set(e,r),r}(t,this._c):[].concat(n),r],o=We(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=We(t,a[e],i);s=P(n.top,s),c=N(n.right,c),l=N(n.bottom,l),u=P(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}},getOffsetParent:Je,getElementRects:async function(e){let t=this.getOffsetParent||Je,n=this.getDimensions,r=await n(e.floating);return{reference:Ge(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:n}=Re(e);return{width:t,height:n}},getScale:X,isElement:U,isRTL:function(e){return q(e).direction===`rtl`}};function Xe(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ze(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver==`function`,layoutShift:c=typeof IntersectionObserver==`function`,animationFrame:l=!1}=r,u=ze(e),d=i||o?[...u?Y(u):[],...t?Y(t):[]]:[];d.forEach(e=>{i&&e.addEventListener(`scroll`,n),o&&e.addEventListener(`resize`,n)});let f=u&&c?function(e,t,n){let r,i=null,o=H(e);function s(){var e;clearTimeout(r),(e=i)==null||e.disconnect(),i=null}function c(n,l){n===void 0&&(n=!1),l===void 0&&(l=1),s();let u=e.getBoundingClientRect(),{left:d,top:f,width:p,height:m}=u;if(n||t(),!p||!m)return;let h={rootMargin:-ne(f)+`px `+-ne(o.clientWidth-(d+p))+`px `+-ne(o.clientHeight-(f+m))+`px `+-ne(d)+`px`,threshold:P(0,N(1,l))||1},g=!0;function _(t){let n=t[0].intersectionRatio;if(!Xe(u,e.getBoundingClientRect()))return c();if(n!==l){if(!g)return c();n?c(!1,n):r=setTimeout(()=>{c(!1,1e-7)},1e3)}g=!1}try{i=new IntersectionObserver(_,a({},h,{root:o.ownerDocument}))}catch{i=new IntersectionObserver(_,h)}i.observe(e)}let l=V(e),u=()=>c(n);return l.addEventListener(`resize`,u),c(!0),()=>{l.removeEventListener(`resize`,u),s()}}(u,n,o):null,p,m=-1,h=null;s&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&h&&t&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;(e=h)==null||e.observe(t)})),n()}),u&&!l&&h.observe(u),t&&h.observe(t));let g=l?Z(e):null;return l&&function t(){let r=Z(e);g&&!Xe(g,r)&&n(),g=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{i&&e.removeEventListener(`scroll`,n),o&&e.removeEventListener(`resize`,n)}),f?.(),(e=h)==null||e.disconnect(),h=null,l&&cancelAnimationFrame(p)}}var Qe=function(e){return e===void 0&&(e={}),{name:`autoPlacement`,options:e,async fn(t){let{rects:n,middlewareData:r,placement:i,platform:a,elements:s}=t,c=I(e,t),{crossAxis:l=!1,alignment:u,allowedPlacements:d=M,autoAlignment:f=!0}=c,p=o(c,ve),m=u!==void 0||d===M?function(e,t,n){return(e?[...n.filter(t=>R(t)===e),...n.filter(t=>R(t)!==e)]:n.filter(e=>L(e)===e)).filter(n=>!e||R(n)===e||!!t&&le(n)!==n)}(u||null,f,d):d,h=r.autoPlacement?.index||0,g=m[h];if(g==null)return{};if(i!==g)return{reset:{placement:m[0]}};let _=await a.detectOverflow(t,p),v=ce(g,n,await(a.isRTL==null?void 0:a.isRTL(s.floating))),y=[_[L(g)],_[v[0]],_[v[1]]],b=[...r.autoPlacement?.overflows||[],{placement:g,overflows:y}],x=m[h+1];if(x)return{data:{index:h+1,overflows:b},reset:{placement:x}};let S=b.map(e=>{let t=R(e.placement);return[e.placement,t&&l?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),C=S.filter(e=>e[2].slice(0,R(e[0])?2:3).every(e=>e<=0))[0]?.[0]||S[0][0];return C===i?{}:{data:{index:h+1,overflows:b},reset:{placement:C}}}}},$e=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:s}=t,c=I(e,t),{mainAxis:l=!0,crossAxis:u=!1,limiter:d={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}}}=c,f=o(c,be),p={x:n,y:r},m=await s.detectOverflow(t,f),h=z(i),g=ae(h),_=p[g],v=p[h],y=(e,t)=>ie(t+m[e===`y`?`top`:`left`],t,t-m[e===`y`?`bottom`:`right`]);l&&(_=y(g,_)),u&&(v=y(h,v));let b=d.fn(a({},t,{[g]:_,[h]:v}));return a({},b,{data:{x:b.x-n,y:b.y-r,enabled:{[g]:l,[h]:u}}})}}},et=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:s,platform:c,elements:l}=t,u=I(e,t),{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m=`bestFit`,fallbackAxisSideDirection:h=`none`,flipAlignment:g=!0}=u,_=o(u,ye);
1if((n=i.arrow)!=null&&n.alignmentOffset)return{};let v=L(r),y=z(s),b=L(s)===s,x=await(c.isRTL==null?void 0:c.isRTL(l.floating)),S=p||(b||!g?[he(s)]:function(e){let t=he(e);return[le(e),t,le(t)]}(s)),C=h!==`none`;!p&&C&&S.push(...me(s,g,h,x));let w=[s,...S],T=await c.detectOverflow(t,_),E=[],D=i.flip?.overflows||[];if(d&&E.push(T[v]),f){let e=ce(r,a,x);E.push(T[e[0]],T[e[1]])}if(D=[...D,{placement:r,overflows:E}],!E.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=w[e];if(t&&(f!==`alignment`||y===z(t)||D.every(e=>z(e.placement)!==y||e.overflows[0]>0)))return{data:{index:e,overflows:D},reset:{placement:t}};let n=D.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(m){case`bestFit`:{let e=D.filter(e=>{if(C){let t=z(e.placement);return t===y||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=s}if(r!==n)return{reset:{placement:n}}}return{}}}},tt=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:o,platform:s,elements:c,middlewareData:l}=t,{element:u,padding:d=0}=I(e,t)||{};if(u==null)return{};let f=ge(d),p={x:n,y:r},m=se(i),h=oe(m),g=await s.getDimensions(u),_=m===`y`,v=_?`top`:`left`,y=_?`bottom`:`right`,b=_?`clientHeight`:`clientWidth`,x=o.reference[h]+o.reference[m]-p[m]-o.floating[h],S=p[m]-o.reference[m],C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u)),w=C?C[b]:0;w&&await(s.isElement==null?void 0:s.isElement(C))||(w=c.floating[b]||o.floating[h]);let T=x/2-S/2,E=w/2-g[h]/2-1,D=N(f[v],E),ee=N(f[y],E),O=w-g[h]-ee,k=w/2-g[h]/2+T,A=ie(D,k,O),j=!l.arrow&&R(i)!=null&&k!==A&&o.reference[h]/2-(k<D?D:ee)-g[h]/2<0,M=j?k<D?k-D:k-O:0;return{[m]:p[m]+M,data:a({[m]:A,centerOffset:k-A-M},j&&{alignmentOffset:M}),reset:j}}}),nt=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=I(e,t),u={x:n,y:r},d=z(i),f=ae(d),p=u[f],m=u[d],h=I(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Ce.has(L(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},rt=(e,t,n)=>{let r=new Map,i=n??{},o=a({},Ye,i.platform,{_c:r});return(async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:o=[],platform:s}=n,c=s.detectOverflow?s:a({},s,{detectOverflow:Se}),l=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:f}=xe(u,r,l),p=r,m=0,h={};for(let n=0;n<o.length;n++){let g=o[n];if(!g)continue;let{name:_,fn:v}=g,{x:y,y:b,data:x,reset:S}=await v({x:d,y:f,initialPlacement:r,placement:p,strategy:i,middlewareData:h,rects:u,platform:c,elements:{reference:e,floating:t}});d=y??d,f=b??f,h[_]=a({},h[_],x),S&&m<50&&(m++,typeof S==`object`&&(S.placement&&(p=S.placement),S.rects&&(u=!0===S.rects?await s.getElementRects({reference:e,floating:t,strategy:i}):S.rects),{x:d,y:f}=xe(u,p,l)),n=-1)}return{x:d,y:f,placement:p,strategy:i,middlewareData:h}})(e,t,a({},i,{platform:o}))};function it(t){t.cleanup&&t.cleanup();let n=t._getResolvedAttachToOptions(),r=n.element,i=function(e,t){var n,r;let i={strategy:`absolute`,middleware:[]},a=function(e){return e.options.arrow&&e.el?e.el.querySelector(`.shepherd-arrow`):!1}(t),o=k(e),s=e.on?.includes(`auto`),c=(e==null||(n=e.on)==null?void 0:n.includes(`-start`))||(e==null||(r=e.on)==null?void 0:r.includes(`-end`));if(!o){var l;s?i.middleware.push(Qe({crossAxis:!0,alignment:c?e==null||(l=e.on)==null?void 0:l.split(`-`).pop():null})):i.middleware.push(et()),i.middleware.push($e({limiter:nt(),crossAxis:!0})),s||(i.placement=e.on)}let u=x(i,t.options.floatingUIOptions||{});if(!o&&a&&(d=u.middleware,!d?.some(e=>function(e){return!!e}(e)&&e.name===`arrow`))){let e=typeof t.options.arrow==`object`?t.options.arrow:{padding:4};u.middleware=[...u.middleware??[],tt({element:a,padding:c?e.padding:0})]}var d;return u}(n,t),a=k(n),o=!0;return a&&(r=document.body,(t.shepherdElementComponent?.element)?.classList.add(`shepherd-centered`)),t.cleanup=Ze(r,t.el,()=>{t.el?(function(t,n,r,i,{shouldFocusAfterRender:a}){let o=rt(t,n.el,r).then(function(t,n){return({x:r,y:i,strategy:a,placement:o,middlewareData:s})=>t.el?(n?Object.assign(t.el.style,{position:`fixed`,left:`50%`,top:`50%`,transform:`translate(-50%, -50%)`}):Object.assign(t.el.style,{position:a,left:`${r}px`,top:`${i}px`}),t.el.dataset.popperPlacement=o,function(t,n){let r=t.querySelector(`.shepherd-arrow`);if(e(r)&&n.arrow){let{x:e,y:t}=n.arrow;Object.assign(r.style,{left:e==null?``:`${e}px`,top:t==null?``:`${t}px`})}}
1(t.el,s),t):t}(n,i));if(!a)return o;o.then(e=>new Promise(t=>{setTimeout(()=>t(e),300)})).then(e=>{e!=null&&e.el&&(e.el.tabIndex=0,e.el.focus({preventScroll:!0}))})}(r,t,i,a,{shouldFocusAfterRender:o}),o=!1):t.cleanup==null||t.cleanup()}),t.target=n.element,i}function Q(e,t,...n){let r=document.createElement(e);return ot(r,t),st(r,n),r}function at(e,t,...n){let r=document.createElementNS(`http://www.w3.org/2000/svg`,e);return ot(r,t),st(r,n),r}function ot(e,t){if(t)for(let[n,r]of Object.entries(t))r!=null&&!1!==r&&(n.startsWith(`on`)&&typeof r==`function`?e.addEventListener(n.slice(2).toLowerCase(),r):n===`disabled`&&!0===r?e.disabled=!0:e.setAttribute(n,String(r)))}function st(e,t){for(let n of t)n!=null&&!1!==n&&e.append(typeof n==`string`?document.createTextNode(n):n)}function ct(e,n){return t(e)?e.call(n):e}function lt(e,t){let n=e.action?e.action.bind(t.tour):null,r=!!e.disabled&&ct(e.disabled,t),i=e.label?ct(e.label,t):null,o=e.text?ct(e.text,t):null,s=Q(`button`,a({},e.attrs||{},{"aria-label":i||null,class:`${e.classes||``} shepherd-button ${e.secondary?`shepherd-button-secondary`:``}`,disabled:r||null,onclick:n,tabindex:`0`,type:`button`}));return o&&(s.innerHTML=o),s}function ut(e,n){let r=Q(`header`,{class:`shepherd-header`});return n.options.title&&r.append(function(e,n){let r=Q(`h3`,{id:e,class:`shepherd-title`});return r.innerHTML=t(n)?n():n,r}(e,n.options.title)),n.options.cancelIcon&&n.options.cancelIcon.enabled&&r.append(function(e,t){return Q(`button`,a({},e.attrs||{},{"aria-label":e.label?e.label:`Close Tour`,class:`shepherd-cancel-icon`,onclick:e=>{e.preventDefault(),t.cancel()},type:`button`}),Q(`span`,{"aria-hidden":`true`},`×`))}(n.options.cancelIcon,n)),r}function dt(n,i,a){let o=Q(`div`,{class:`shepherd-content`});return(!r(a.options.title)||a.options.cancelIcon&&a.options.cancelIcon.enabled)&&o.append(ut(i,a)),r(a.options.text)||o.append(function(n,r){let i=Q(`div`,{class:`shepherd-text`,id:n}),a=r.options.text;return t(a)&&(a=a.call(r)),e(a)?i.appendChild(a):i.innerHTML=a,i}(n,a)),Array.isArray(a.options.buttons)&&a.options.buttons.length&&o.append(function(e){let t=Q(`footer`,{class:`shepherd-footer`});if(e.options.buttons)for(let n of e.options.buttons)t.append(lt(n,e));return t}(a)),o}var ft=class extends i{constructor(e,t={}){return super(),this._advanceOnCleanup=void 0,this._resolvedAttachTo=void 0,this._resolvedExtraHighlightElements=void 0,this._originalTabIndexes=void 0,this.classPrefix=void 0,this.el=void 0,this.shepherdElementComponent=void 0,this.target=void 0,this.tour=void 0,this.tour=e,this.classPrefix=this.tour.options?ee(this.tour.options.classPrefix):``,this.styles=e.styles,this._resolvedAttachTo=null,this._originalTabIndexes=new Map,E(this),this._setOptions(t),this}cancel(){this.tour.cancel(),this.trigger(`cancel`)}complete(){this.tour.complete(),this.trigger(`complete`)}destroy(){this._teardownElements(),this.trigger(`destroy`)}_teardownElements(){var t;this._advanceOnCleanup&&=(this._advanceOnCleanup(),null),(t=this).cleanup&&t.cleanup(),t.cleanup=null,this.shepherdElementComponent&&=(this.shepherdElementComponent.cleanup(),void 0),e(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this._originalTabIndexes.clear()}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`)}_resolveExtraHiglightElements(){var e;return this._resolvedExtraHighlightElements=(e=this).options.extraHighlights?e.options.extraHighlights.flatMap(e=>Array.from(document.querySelectorAll(e))):[],this._resolvedExtraHighlightElements}_resolveAttachToOptions(){return this._resolvedAttachTo=function(e){let r=e.options.attachTo||{},i=Object.assign({},r);if(t(i.element)&&(i.element=i.element.call(e)),n(i.element)){try{i.element=document.querySelector(i.element)}catch{}!i.element&&e.options.skipMissingElement}return i}(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return this._resolvedAttachTo===null?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return!(!this.el||this.el.hidden)}
1show(){return t(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.el&&(this._teardownElements(),this._setupElements())}getElement(){return this.el}getTarget(){return this.target}_storeOriginalTabIndex(e){let t=e.getAttribute(`tabindex`);t!==null&&this._originalTabIndexes.set(e,t)}_restoreOriginalTabIndexes(){let e=this.target;e&&(this._originalTabIndexes.has(e)?e.setAttribute(`tabindex`,this._originalTabIndexes.get(e)):e.removeAttribute(`tabindex`))}_createTooltipContent(){let e=`${this.id}-description`,i=`${this.id}-label`;return this.shepherdElementComponent=function(e){var i,a,o;let{classPrefix:s,descriptionId:c,labelId:l,step:u}=e,d,f,p,m,h,g,_,v=(i=(a=u.options)==null||(a=a.cancelIcon)==null?void 0:a.enabled)!=null&&i,y=(o=u.options?.title)!=null&&o,b=y?void 0:t(u.options.label)?u.options.label.call(u):u.options.label,x=n(b)&&b.trim()?b:null,S=e=>{let{tour:t}=u;switch(e.keyCode){case 9:if((!f||f.length===0)&&g&&g.length===0){e.preventDefault();break}var n,r,i;if(e.shiftKey){if(document.activeElement===h||(n=document.activeElement)!=null&&n.classList.contains(`shepherd-element`))e.preventDefault(),(r=m??_)==null||r.focus();else if(document.activeElement===p){var a;e.preventDefault(),(a=_)==null||a.focus()}}else if(document.activeElement===_)e.preventDefault(),(i=p??h)==null||i.focus();else if(document.activeElement===m){var o;e.preventDefault(),(o=h)==null||o.focus()}break;case 27:t.options.exitOnEsc&&(e.preventDefault(),e.stopPropagation(),u.cancel());break;case 37:t.options.keyboardNavigation&&(e.preventDefault(),e.stopPropagation(),t.back());break;case 39:t.options.keyboardNavigation&&(e.preventDefault(),e.stopPropagation(),t.next())}},C=Q(`dialog`,{"aria-describedby":r(u.options.text)?null:c,"aria-label":x,"aria-labelledby":u.options.title?l:null,class:[`shepherd-element`,v?`shepherd-has-cancel-icon`:``,y?`shepherd-has-title`:``].filter(Boolean).join(` `),[`data-${s}shepherd-step-id`]:u.id,onkeydown:S,open:`true`});if(u.options.arrow&&u.options.attachTo&&u.options.attachTo.element&&u.options.attachTo.on&&C.append(Q(`div`,{class:`shepherd-arrow`,"data-popper-arrow":``})),C.append(dt(c,l,u)),n(u.options.classes)){let e=u.options.classes.split(` `).filter(e=>!!e.length);e.length&&C.classList.add(...e)}let w=`a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]`;g=[...C.querySelectorAll(w)],h=g[0],_=g[g.length-1];let T=u._getResolvedAttachToOptions();return T!=null&&T.element&&(d=T.element,u._storeOriginalTabIndex(d),d.tabIndex=0,f=[d,...d.querySelectorAll(w)],p=f[0],m=f[f.length-1],d.addEventListener(`keydown`,S)),{element:C,cleanup:()=>{var e;(e=d)==null||e.removeEventListener(`keydown`,S)}}}({classPrefix:this.classPrefix,descriptionId:e,labelId:i,step:this}),(this.tour.options.stepsContainer||document.body).append(this.shepherdElementComponent.element),this.shepherdElementComponent.element}_scrollTo(e){let{element:n}=this._getResolvedAttachToOptions();t(this.options.scrollToHandler)?this.options.scrollToHandler(n):n instanceof Element&&typeof n.scrollIntoView==`function`&&n.scrollIntoView(e)}_getClassOptions(e){let t=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,n=e.classes?e.classes:``,r=t&&t.classes?t.classes:``,i=[...n.split(` `),...r.split(` `)],a=new Set(i);return Array.from(a).join(` `).trim()}_setOptions(e={}){let t=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;t=x({},t||{}),this.options=Object.assign({arrow:!0},t,e,function(e,t){return{floatingUIOptions:x(e.floatingUIOptions||{},t.floatingUIOptions||{})}}(t,e));let{when:n}=this.options;this.options.classes=this._getClassOptions(e),this._teardownElements(),this.id=this.options.id||`step-${A()}`,n&&Object.keys(n).forEach(e=>{this.on(e,n[e],this)})}_setupElements(){e(this.el)&&this._teardownElements(),this.el=this._createTooltipContent(),this.options.advanceOn&&(this._advanceOnCleanup=D(this)??null),it(this)}_show(){var e;this.trigger(`before-show`),this._resolveAttachToOptions(),this._resolveExtraHiglightElements(),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);let t=this.shepherdElementComponent.element,n=this.target||document.body,r=this._resolvedExtraHighlightElements;n.classList.add(`${this.classPrefix}shepherd-enabled`),n.classList.add(`${this.classPrefix}shepherd-target`),t.classList.add(`shepherd-enabled`),r?.forEach(e
1=>{e.classList.add(`${this.classPrefix}shepherd-enabled`),e.classList.add(`${this.classPrefix}shepherd-target`)}),this.trigger(`show`)}_styleTargetElementForStep(e){let t=e.target,n=e._resolvedExtraHighlightElements;if(!t)return;let r=e.options.highlightClass;r&&(t.classList.add(r),n?.forEach(e=>e.classList.add(r))),t.classList.remove(`shepherd-target-click-disabled`),n?.forEach(e=>e.classList.remove(`shepherd-target-click-disabled`)),!1===e.options.canClickTarget&&(t.classList.add(`shepherd-target-click-disabled`),n?.forEach(e=>e.classList.add(`shepherd-target-click-disabled`)))}_updateStepTargetOnHide(){let e=this.target||document.body,t=this._resolvedExtraHighlightElements,n=this.options.highlightClass;n&&(e.classList.remove(n),t?.forEach(e=>e.classList.remove(n))),e.classList.remove(`shepherd-target-click-disabled`,`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`),t?.forEach(e=>{e.classList.remove(`shepherd-target-click-disabled`,`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)}),this._restoreOriginalTabIndexes()}};function pt(e){let t,n=new WeakMap,r=[{width:0,height:0,x:0,y:0,r:0}],i=at(`path`),a=at(`svg`,{class:`shepherd-modal-overlay-container`},i);function o(){i.setAttribute(`d`,function(e){let t=``,{innerWidth:n,innerHeight:r}=window;return e.forEach(e=>{let{width:n,height:r,x:i=0,y:a=0,r:o=0}=e,{topLeft:s=0,topRight:c=0,bottomRight:l=0,bottomLeft:u=0}=typeof o==`number`?{topLeft:o,topRight:o,bottomRight:o,bottomLeft:o}:o;t+=`M${i+s},${a}a${s},${s},0,0,0-${s},${s}V`+(r+a-u)+`a${u},${u},0,0,0,${u},${u}H`+(n+i-l)+`a${l},${l},0,0,0,${l}-${l}V${a+c}a${c},${c},0,0,0-${c}-${c}Z`}),`M${n},${r}H0V0H${n}V${r}Z${t}`.replace(/\s/g,``)}(r))}function s(){r=[{width:0,height:0,x:0,y:0,r:0}],o()}function c(){a.classList.remove(`shepherd-modal-is-visible`),p()}function l(){a.classList.add(`shepherd-modal-is-visible`)}function u(e=0,t=0,n=0,i=0,a,c,l){if(c){{let o=[c,...l||[]],s=[],u=a?[a,...g(a.parentElement)]:[],d=e=>e===c?u:g(e);for(let r of o){if(!r||o.indexOf(r)!==o.lastIndexOf(r))continue;let{y:a,height:c}=_(r,d(r)),{x:l,width:u,left:f}=r.getBoundingClientRect();o.some(e=>{if(e===r)return!1;let t=e.getBoundingClientRect(),{y:n,height:i}=_(e,d(e));return l>=t.left&&l+u<=t.left+t.width&&a>=n&&a+c<=n+i})||s.push({width:u+2*e,height:c+2*e,x:(l||f)+n-e,y:a+i-e,r:t})}r=s}o()}else s()}function d(e){e.stopPropagation()}a.addEventListener(`touchmove`,d),o(),e.append(a);let f=e=>{e.preventDefault()};function p(){t&&=(cancelAnimationFrame(t),void 0),n=new WeakMap,window.removeEventListener(`touchmove`,f,{passive:!1})}function m(e,t){let{overflowY:n}=t;return n!==`hidden`&&n!==`visible`&&e.scrollHeight>=e.clientHeight}function h(e){if(!(e instanceof HTMLElement))return[];let{position:t}=window.getComputedStyle(e);if(t===`fixed`)return[];let n=[],r=t!==`absolute`;for(let t=e;t;t=t.parentElement){let i=window.getComputedStyle(t);r||t===e||i.position===`static`||(r=!0),r&&m(t,i)&&n.push(t)}return n}function g(e){if(!e)return[];let t=n.get(e);if(t)return t;let r=h(e);return n.set(e,r),r}function _(e,t){let n=e.getBoundingClientRect(),r=n.y||n.top,i=n.bottom||r+n.height;for(let e of t){let t=e.getBoundingClientRect(),n=t.y||t.top,a=t.bottom||n+t.height;r=Math.max(r,n),i=Math.min(i,a)}return{y:r,height:Math.max(i-r,0)}}return{closeModalOpening:s,destroy:function(){p(),a.removeEventListener(`touchmove`,d),a.remove()},hide:c,positionModal:u,setupForStep:function(e){p(),e.tour.options.useModalOverlay?(function(e){let{modalOverlayOpeningPadding:n,modalOverlayOpeningRadius:r,modalOverlayOpeningXOffset:i=0,modalOverlayOpeningYOffset:a=0}=e.options,o=function(e){let t={top:0,left:0};if(!e)return t;let n=e.ownerDocument.defaultView;try{for(;n&&n!==window.top;){let e=n?.frameElement;if(e){let n=e.getBoundingClientRect();t.top+=n.top+e.scrollTop,t.left+=n.left+e.scrollLeft}n=n.parent}}catch{}return t}(e.target),s=(l=e.target,(d=h(l)[0])??null),c=()=>{t=void 0,u(n,r,i+o.left,a+o.top,s,e.target,e._resolvedExtraHighlightElements),t=requestAnimationFrame(c)};var l,d;c(),window.addEventListener(`touchmove`,f,{passive:!1})}(e),l()):c()},show:l,getElement:function(){return a}}}var $=new class extends i{constructor(){super(),this.activeTour=void 0,E(this)}},mt=typeof window>`u`;$.Step=mt?class{constructor(e){}}:ft,$.Tour=mt?class{constructor(e,t){}}:class extends i{constructor(e={}){return 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,this._showGeneration=0,E(this),this.options=Object.assign({},{exitOnEsc:!0,keyboardNavigation:!0},e),this.classPrefix=ee(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps),[`active`,`cancel`,`complete`,`inactive`,`show`,`start`].map(e=>{(e=>{this.on(e,t=>{(t||={}).tour=this,$.trigger(e,t)})})(e)}),this._setTourID(e.id),this}addStep(e,t){let n=e;return n instanceof ft?n.tour=this:n=new ft(this,n),r(t)?this.steps.push(n):this.steps.splice(t,0,n),n}
1addSteps(e){return Array.isArray(e)&&e.forEach(e=>{this.addStep(e)}),this}back(){let e=this.steps.indexOf(this.currentStep);return this.show(e-1,!1)}async cancel(){if(this.options.confirmCancel){let e=this.options.confirmCancelMessage||`Are you sure you want to stop the tour?`,n;n=t(this.options.confirmCancel)?await this.options.confirmCancel():window.confirm(e),n&&this._done(`cancel`)}else this._done(`cancel`)}complete(){this._done(`complete`)}getById(e){return this.steps.find(t=>t.id===e)}getCurrentStep(){return this.currentStep}hide(){let e=this.getCurrentStep();if(e)return e.hide()}isActive(){return $.activeTour===this}next(){let e=this.steps.indexOf(this.currentStep);if(e!==this.steps.length-1)return this.show(e+1,!0);this.complete()}removeStep(e){let t=this.getCurrentStep();this.steps.some((t,n)=>{if(t.id===e)return t.isOpen()&&t.hide(),t.destroy(),this.steps.splice(n,1),!0}),t&&t.id===e&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(e=0,r=!0){let i=n(e)?this.getById(e):this.steps[e];if(!i)return;this._updateStateBeforeShow();let a=++this._showGeneration;if(t(i.options.showOn)&&!i.options.showOn())return this._skipStep(i,r);let{skipMissingElement:o,waitForElement:s}=i.options,c=i.options.attachTo&&i.options.attachTo.element,l=typeof s==`number`&&s>0?s:0;if((n(c)||t(c))&&(o||l>0)&&!O(i)){if(l>0)return function(e,t){return new Promise(n=>{let r=O(e);if(r||!(t>0))return void n(r);let i=null,a=null,o=null,s=e=>{var t;(t=i)==null||t.disconnect(),a!==null&&clearInterval(a),o!==null&&clearTimeout(o),n(e)},c=()=>{let t=O(e);t&&s(t)};o=setTimeout(()=>s(null),t),typeof MutationObserver<`u`?(i=new MutationObserver(c),i.observe(document.documentElement,{attributes:!0,childList:!0,subtree:!0})):a=setInterval(c,50)})}(i,l).then(e=>{if(a===this._showGeneration&&this.isActive())return!e&&o?this._skipStep(i,r):void this._showStep(i)});if(o)return this._skipStep(i,r)}this._showStep(i)}_showStep(e){let t=this.currentStep??null;this.currentStep=e,this.trigger(`show`,{step:e,previous:t}),e.show()}async start(){return this.trigger(`start`),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this.setupModal(),this._setupActiveTour(),this.next()}_done(t){let n=this.steps.indexOf(this.currentStep);Array.isArray(this.steps)&&this.steps.forEach(e=>e.destroy()),function(t){if(t){let{steps:n}=t;n.forEach(t=>{t.options&&!1===t.options.canClickTarget&&t.options.attachTo&&(e(t.target)&&t.target.classList.remove(`shepherd-target-click-disabled`),t._resolvedExtraHighlightElements&&t._resolvedExtraHighlightElements.forEach(t=>{e(t)&&t.classList.remove(`shepherd-target-click-disabled`)}))})}}(this),this.trigger(t,{index:n}),$.activeTour=null,this.trigger(`inactive`,{tour:this}),this.modal&&this.modal.hide(),t!==`cancel`&&t!==`complete`||(this.modal&&=(this.modal.destroy(),null)),e(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger(`active`,{tour:this}),$.activeTour=this}setupModal(){let e=this.options.modalContainer||document.body;this.modal=pt(e)}_skipStep(e,t){let n=this.steps.indexOf(e),r=t?n+1:n-1;if(r<0)this.cancel();else{if(!(r>=this.steps.length))return this.show(r,t);this.complete()}}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(e){let t=this.options.tourName||`tour`,n=e||A();this.id=`${t}--${n}`}},(function(){async function e(){setTimeout(function(){let e=t();sessionStorage.getItem(`startTourOnLoad`)&&(sessionStorage.removeItem(`startTourOnLoad`),e.start()),window.__startTourAbortController&&window.__startTourAbortController.abort();let n=new AbortController;window.__startTourAbortController=n,window.addEventListener(`startTour`,()=>e.start(),{signal:n.signal})},400)}function t(){let e=document.createElement(`p`);e.innerText=`Including Shepherd is easy! Just include shepherd.js. The styles are bundled with the JS.`;let t=new $.Tour({id:`ts4udfrnm7o95ny7e9qbjo3t`,defaultStepOptions:{cancelIcon:{enabled:!0},classes:`class-1 class-2`,scrollTo:{behavior:`smooth`,block:`center`}},steps:[{text:`
2         <p>
3           Shepherd is a JavaScript library for guiding users through your app.
4           It uses <a href="https://floating-ui.com/" data-test-popper-link>Floating UI</a>,
5           another open source library, to render dialogs for each tour "step".
6         </p>
7        
8         <p>
9           Among many things, Floating UI makes sure your steps never end up off screen or cropped by an overflow.
10           (Try resizing your browser to see what we mean.)
11         </p>
12`,attachTo:{element:`.hero-welcome`,on:`bottom`},buttons:[{action(){return this.cancel()},secondary:!0,text:`Exit`},{action(){return this.next()},text:`Next`}],id:`welcome`},{title:`Features`,text:`Shepherd has many built-in features to guide users through your app. You can easily customize the look and feel of your tour by adding your own styles. Also, you can highlight multiple elements at once to draw attention to key areas of your application.`,attachTo:{element:`.customizable`,on:`bottom`},extraHighlights:[`.feature`],buttons:[{action(){return this.back()},secondary:!0,text:`Back`},{action(){return this.next()},text:`Next`}],id:`features`},{title:`Including`,text:e,attachTo:{element:`.hero-including`,on:`bottom`},buttons:[{action(){return this.back()},secondary:!0,text:`Back`},{action(){return this.next()},text:`Next`}],id:`including`},{title:`Creating a Shepherd Tour`,text:"Creating a Shepherd tour is easy. too! Just create a `Tour` instance, and add as many steps as you want.",attachTo:{element:`.hero-example`,on:`right`},buttons:[{action(){return this.back()},secondary:!0,text:`Back`},{action(){return this.next()},text:`Next`}],id:`creating`},{title:`Attaching to Elements`,text:`Your tour steps can target and attach to elements in DOM (like this step).`,attachTo:{element:`.hero-example`,on:`left`},buttons:[{action(){return this.back()},secondary:!0,text:`Back`},{action(){return this.next()},text:`Next`}],id:`attaching`}],useModalOverlay:!0});return t.addStep({title:`Centered Shepherd Element`,text:`But attachment is totally optional!
13       Without a target, a tour step will create an element that's centered within the view.       Check out the <a href="https://docs.shepherdjs.dev/">documentation</a> to learn more.`,buttons:[{action(){return this.back()},secondary:!0,text:`Back`},{action(){return this.next()},text:`Next`}],id:`centered-example`}),t.addStep({title:`Learn more`,text:`Star Shepherd on Github so you remember it for your next project`,attachTo:{element:`.hero-followup`,on:`top`},buttons:[{action(){return this.back()},secondary:!0,text:`Back`},{action(){return this.next()},text:`Done`}],id:`followup`,modalOverlayOpeningPadding:10}),t}function n(){document.addEventListener(`astro:page-load`,e)}n()}).call(void 0);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.