@gkd-kit/docs 0.0.1721382969248 → 0.0.1721398242559
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vitepress/dist/404.html +4 -4
- package/.vitepress/dist/api/index.html +7 -7
- package/.vitepress/dist/api/interfaces/RawApp.html +7 -7
- package/.vitepress/dist/api/interfaces/RawAppGroup.html +7 -7
- package/.vitepress/dist/api/interfaces/RawAppRule.html +7 -7
- package/.vitepress/dist/api/interfaces/RawAppRuleProps.html +7 -7
- package/.vitepress/dist/api/interfaces/RawCategory.html +7 -7
- package/.vitepress/dist/api/interfaces/RawCommonProps.html +7 -7
- package/.vitepress/dist/api/interfaces/RawGlobalApp.html +7 -7
- package/.vitepress/dist/api/interfaces/RawGlobalGroup.html +7 -7
- package/.vitepress/dist/api/interfaces/RawGlobalRule.html +7 -7
- package/.vitepress/dist/api/interfaces/RawGlobalRuleProps.html +7 -7
- package/.vitepress/dist/api/interfaces/RawGroupProps.html +7 -7
- package/.vitepress/dist/api/interfaces/RawRuleProps.html +7 -7
- package/.vitepress/dist/api/interfaces/RawSubscription.html +7 -7
- package/.vitepress/dist/api/type-aliases/IArray.html +7 -7
- package/.vitepress/dist/api/type-aliases/Integer.html +7 -7
- package/.vitepress/dist/api/type-aliases/Position.html +7 -7
- package/.vitepress/dist/assets/{app.CJsRL6DI.js → app.BcLi8lkK.js} +1 -1
- package/.vitepress/dist/assets/chunks/@localSearchIndexroot.0j1sYHb9.js +1 -0
- package/.vitepress/dist/assets/chunks/{VPLocalSearchBox.BWhTmwu8.js → VPLocalSearchBox.Bp6Ei_nm.js} +2 -2
- package/.vitepress/dist/assets/chunks/theme.CPytdIbO.js +1 -0
- package/.vitepress/dist/assets/{guide_faq.md.CQh24LD7.js → guide_faq.md.CevrZObU.js} +1 -1
- package/.vitepress/dist/assets/{guide_faq.md.CQh24LD7.lean.js → guide_faq.md.CevrZObU.lean.js} +1 -1
- package/.vitepress/dist/assets/guide_index.md.DoYTcWKj.js +1 -0
- package/.vitepress/dist/assets/guide_index.md.DoYTcWKj.lean.js +1 -0
- package/.vitepress/dist/assets/{guide_snapshot.md.DdWrSBgV.js → guide_snapshot.md.DySkdDR0.js} +1 -1
- package/.vitepress/dist/assets/{guide_snapshot.md.DdWrSBgV.lean.js → guide_snapshot.md.DySkdDR0.lean.js} +1 -1
- package/.vitepress/dist/assets/{guide_subscription.md.BMiwrNPy.js → guide_subscription.md.DCnjPiDT.js} +1 -1
- package/.vitepress/dist/assets/{guide_subscription.md.BMiwrNPy.lean.js → guide_subscription.md.DCnjPiDT.lean.js} +1 -1
- package/.vitepress/dist/assets/{guide_what-is-gkd.md.C31ijX-g.js → guide_what-is-gkd.md.B5CzJlUU.js} +1 -1
- package/.vitepress/dist/assets/{guide_what-is-gkd.md.C31ijX-g.lean.js → guide_what-is-gkd.md.B5CzJlUU.lean.js} +1 -1
- package/.vitepress/dist/assets/{index.md.DTAaOzk1.js → index.md.jrAG9oBJ.js} +1 -1
- package/.vitepress/dist/assets/{index.md.DTAaOzk1.lean.js → index.md.jrAG9oBJ.lean.js} +1 -1
- package/.vitepress/dist/assets/{selector_example.md.-3DFvS7c.js → selector_example.md._hQerSjN.js} +1 -1
- package/.vitepress/dist/assets/{selector_example.md.-3DFvS7c.lean.js → selector_example.md._hQerSjN.lean.js} +1 -1
- package/.vitepress/dist/assets/{selector_index.md.vTFQ7m-J.js → selector_index.md.C--mQpbF.js} +1 -1
- package/.vitepress/dist/assets/{selector_index.md.vTFQ7m-J.lean.js → selector_index.md.C--mQpbF.lean.js} +1 -1
- package/.vitepress/dist/assets/{selector_node.md.C9SxSLjc.js → selector_node.md.C81lhtYQ.js} +1 -1
- package/.vitepress/dist/assets/{selector_node.md.C9SxSLjc.lean.js → selector_node.md.C81lhtYQ.lean.js} +1 -1
- package/.vitepress/dist/assets/selector_optimize.md.BnHmHuNq.js +1 -0
- package/.vitepress/dist/assets/selector_optimize.md.BnHmHuNq.lean.js +1 -0
- package/.vitepress/dist/assets/{snapshot_index.md.kVTiIPnR.js → snapshot_index.md.Ne_NH7_B.js} +1 -1
- package/.vitepress/dist/assets/{snapshot_index.md.kVTiIPnR.lean.js → snapshot_index.md.Ne_NH7_B.lean.js} +1 -1
- package/.vitepress/dist/assets/style.DU-YwcM_.css +1 -1
- package/.vitepress/dist/guide/faq.html +8 -8
- package/.vitepress/dist/guide/index.html +8 -8
- package/.vitepress/dist/guide/snapshot.html +8 -8
- package/.vitepress/dist/guide/subscription.html +8 -8
- package/.vitepress/dist/guide/what-is-gkd.html +8 -8
- package/.vitepress/dist/hashmap.json +1 -1
- package/.vitepress/dist/index.html +7 -7
- package/.vitepress/dist/selector/example.html +8 -8
- package/.vitepress/dist/selector/index.html +9 -9
- package/.vitepress/dist/selector/node.html +8 -8
- package/.vitepress/dist/selector/optimize.html +8 -8
- package/.vitepress/dist/snapshot/index.html +8 -8
- package/package.json +1 -1
- package/.vitepress/dist/assets/chunks/@localSearchIndexroot.DNYdB9Q4.js +0 -1
- package/.vitepress/dist/assets/chunks/theme.Ct42Rw2h.js +0 -1
- package/.vitepress/dist/assets/guide_index.md.C19r84dZ.js +0 -1
- package/.vitepress/dist/assets/guide_index.md.C19r84dZ.lean.js +0 -1
- package/.vitepress/dist/assets/selector_optimize.md.qZxu6dCr.js +0 -1
- package/.vitepress/dist/assets/selector_optimize.md.qZxu6dCr.lean.js +0 -1
package/.vitepress/dist/assets/chunks/{VPLocalSearchBox.BWhTmwu8.js → VPLocalSearchBox.Bp6Ei_nm.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var kt=Object.defineProperty;var Ft=(a,e,t)=>e in a?kt(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var Ce=(a,e,t)=>Ft(a,typeof e!="symbol"?e+"":e,t);import{X as Ot,s as ne,v as Ve,ax as Rt,ay as Ct,d as Mt,G as be,az as et,h as ye,aA as At,aB as Lt,x as Dt,aC as zt,y as Me,R as de,Q as we,aD as Pt,aE as jt,Y as Vt,U as $t,a1 as Bt,o as Q,b as Wt,j as _,a2 as Kt,k as D,a6 as Jt,a7 as Ut,aF as qt,c as Z,n as tt,e as _e,E as st,F as nt,a as he,t as fe,aq as Gt,p as Ht,l as Qt,aG as it,aH as Yt,ac as Zt,ai as Xt,aI as es,_ as ts}from"./framework.DAuRlsJR.js";import{u as ss,c as ns}from"./theme.
|
|
1
|
+
var kt=Object.defineProperty;var Ft=(a,e,t)=>e in a?kt(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var Ce=(a,e,t)=>Ft(a,typeof e!="symbol"?e+"":e,t);import{X as Ot,s as ne,v as Ve,ax as Rt,ay as Ct,d as Mt,G as be,az as et,h as ye,aA as At,aB as Lt,x as Dt,aC as zt,y as Me,R as de,Q as we,aD as Pt,aE as jt,Y as Vt,U as $t,a1 as Bt,o as Q,b as Wt,j as _,a2 as Kt,k as D,a6 as Jt,a7 as Ut,aF as qt,c as Z,n as tt,e as _e,E as st,F as nt,a as he,t as fe,aq as Gt,p as Ht,l as Qt,aG as it,aH as Yt,ac as Zt,ai as Xt,aI as es,_ as ts}from"./framework.DAuRlsJR.js";import{u as ss,c as ns}from"./theme.CPytdIbO.js";const is={root:()=>Ot(()=>import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1721398242559/files/.vitepress/dist"+u}return u})("./@localSearchIndexroot.0j1sYHb9.js")),[])};/*!
|
|
2
2
|
* tabbable 6.2.0
|
|
3
3
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
4
4
|
*/var vt=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Te=vt.join(","),mt=typeof Element>"u",re=mt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ne=!mt&&Element.prototype.getRootNode?function(a){var e;return a==null||(e=a.getRootNode)===null||e===void 0?void 0:e.call(a)}:function(a){return a==null?void 0:a.ownerDocument},ke=function a(e,t){var s;t===void 0&&(t=!0);var n=e==null||(s=e.getAttribute)===null||s===void 0?void 0:s.call(e,"inert"),r=n===""||n==="true",i=r||t&&e&&a(e.parentNode);return i},rs=function(e){var t,s=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return s===""||s==="true"},gt=function(e,t,s){if(ke(e))return[];var n=Array.prototype.slice.apply(e.querySelectorAll(Te));return t&&re.call(e,Te)&&n.unshift(e),n=n.filter(s),n},bt=function a(e,t,s){for(var n=[],r=Array.from(e);r.length;){var i=r.shift();if(!ke(i,!1))if(i.tagName==="SLOT"){var o=i.assignedElements(),c=o.length?o:i.children,l=a(c,!0,s);s.flatten?n.push.apply(n,l):n.push({scopeParent:i,candidates:l})}else{var h=re.call(i,Te);h&&s.filter(i)&&(t||!e.includes(i))&&n.push(i);var f=i.shadowRoot||typeof s.getShadowRoot=="function"&&s.getShadowRoot(i),v=!ke(f,!1)&&(!s.shadowRootFilter||s.shadowRootFilter(i));if(f&&v){var y=a(f===!0?i.children:f.children,!0,s);s.flatten?n.push.apply(n,y):n.push({scopeParent:i,candidates:y})}else r.unshift.apply(r,i.children)}}return n},yt=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},ie=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||rs(e))&&!yt(e)?0:e.tabIndex},as=function(e,t){var s=ie(e);return s<0&&t&&!yt(e)?0:s},os=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},wt=function(e){return e.tagName==="INPUT"},cs=function(e){return wt(e)&&e.type==="hidden"},ls=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(s){return s.tagName==="SUMMARY"});return t},us=function(e,t){for(var s=0;s<e.length;s++)if(e[s].checked&&e[s].form===t)return e[s]},ds=function(e){if(!e.name)return!0;var t=e.form||Ne(e),s=function(o){return t.querySelectorAll('input[type="radio"][name="'+o+'"]')},n;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")n=s(window.CSS.escape(e.name));else try{n=s(e.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var r=us(n,e.form);return!r||r===e},hs=function(e){return wt(e)&&e.type==="radio"},fs=function(e){return hs(e)&&!ds(e)},ps=function(e){var t,s=e&&Ne(e),n=(t=s)===null||t===void 0?void 0:t.host,r=!1;if(s&&s!==e){var i,o,c;for(r=!!((i=n)!==null&&i!==void 0&&(o=i.ownerDocument)!==null&&o!==void 0&&o.contains(n)||e!=null&&(c=e.ownerDocument)!==null&&c!==void 0&&c.contains(e));!r&&n;){var l,h,f;s=Ne(n),n=(l=s)===null||l===void 0?void 0:l.host,r=!!((h=n)!==null&&h!==void 0&&(f=h.ownerDocument)!==null&&f!==void 0&&f.contains(n))}}return r},rt=function(e){var t=e.getBoundingClientRect(),s=t.width,n=t.height;return s===0&&n===0},vs=function(e,t){var s=t.displayCheck,n=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var r=re.call(e,"details>summary:first-of-type"),i=r?e.parentElement:e;if(re.call(i,"details:not([open]) *"))return!0;if(!s||s==="full"||s==="legacy-full"){if(typeof n=="function"){for(var o=e;e;){var c=e.parentElement,l=Ne(e);if(c&&!c.shadowRoot&&n(c)===!0)return rt(e);e.assignedSlot?e=e.assignedSlot:!c&&l!==e.ownerDocument?e=l.host:e=c}e=o}if(ps(e))return!e.getClientRects().length;if(s!=="legacy-full")return!0}else if(s==="non-zero-area")return rt(e);return!1},ms=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var s=0;s<t.children.length;s++){var n=t.children.item(s);if(n.tagName==="LEGEND")return re.call(t,"fieldset[disabled] *")?!0:!n.contains(e)}return!0}t=t.parentElement}return!1},Fe=function(e,t){return!(t.disabled||ke(t)||cs(t)||vs(t,e)||ls(t)||ms(t))},$e=function(e,t){return!(fs(t)||ie(t)<0||!Fe(e,t))},gs=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},bs=function a(e){var t=[],s=[];return e.forEach(function(n,r){var i=!!n.scopeParent,o=i?n.scopeParent:n,c=as(o,i),l=i?a(n.candidates):o;c===0?i?t.push.apply(t,l):t.push(o):s.push({documentOrder:r,tabIndex:c,item:n,isScope:i,content:l})}),s.sort(os).reduce(function(n,r){return r.isScope?n.push.apply(n,r.content):n.push(r.content),n},[]).concat(t)},ys=function(e,t){t=t||{};var s;return t.getShadowRoot?s=bt([e],t.includeContainer,{filter:$e.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:gs}):s=gt(e,t.includeContainer,$e.bind(null,t)),bs(s)},ws=function(e,t){t=t||{};var s;return t.getShadowRoot?s=bt([e],t.includeContainer,{filter:Fe.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):s=gt(e,t.includeContainer,Fe.bind(null,t)),s},ae=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return re.call(e,Te)===!1?!1:$e(t,e)},_s=vt.concat("iframe").join(","),Ae=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return re.call(e,_s)===!1?!1:Fe(t,e)};/*!
|
|
5
5
|
* focus-trap 7.5.4
|
|
6
6
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
7
|
-
*/function at(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);e&&(s=s.filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable})),t.push.apply(t,s)}return t}function ot(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?at(Object(t),!0).forEach(function(s){xs(a,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):at(Object(t)).forEach(function(s){Object.defineProperty(a,s,Object.getOwnPropertyDescriptor(t,s))})}return a}function xs(a,e,t){return e=Es(e),e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function Ss(a,e){if(typeof a!="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var s=t.call(a,e||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}function Es(a){var e=Ss(a,"string");return typeof e=="symbol"?e:String(e)}var ct={activateTrap:function(e,t){if(e.length>0){var s=e[e.length-1];s!==t&&s.pause()}var n=e.indexOf(t);n===-1||e.splice(n,1),e.push(t)},deactivateTrap:function(e,t){var s=e.indexOf(t);s!==-1&&e.splice(s,1),e.length>0&&e[e.length-1].unpause()}},Is=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Ts=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},ve=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},Ns=function(e){return ve(e)&&!e.shiftKey},ks=function(e){return ve(e)&&e.shiftKey},lt=function(e){return setTimeout(e,0)},ut=function(e,t){var s=-1;return e.every(function(n,r){return t(n)?(s=r,!1):!0}),s},pe=function(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),n=1;n<t;n++)s[n-1]=arguments[n];return typeof e=="function"?e.apply(void 0,s):e},xe=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},Fs=[],Os=function(e,t){var s=(t==null?void 0:t.document)||document,n=(t==null?void 0:t.trapStack)||Fs,r=ot({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Ns,isKeyBackward:ks},t),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},o,c=function(u,d,m){return u&&u[d]!==void 0?u[d]:r[m||d]},l=function(u,d){var m=typeof(d==null?void 0:d.composedPath)=="function"?d.composedPath():void 0;return i.containerGroups.findIndex(function(S){var E=S.container,k=S.tabbableNodes;return E.contains(u)||(m==null?void 0:m.includes(E))||k.find(function(F){return F===u})})},h=function(u){var d=r[u];if(typeof d=="function"){for(var m=arguments.length,S=new Array(m>1?m-1:0),E=1;E<m;E++)S[E-1]=arguments[E];d=d.apply(void 0,S)}if(d===!0&&(d=void 0),!d){if(d===void 0||d===!1)return d;throw new Error("`".concat(u,"` was specified but was not a node, or did not return a node"))}var k=d;if(typeof d=="string"&&(k=s.querySelector(d),!k))throw new Error("`".concat(u,"` as selector refers to no known node"));return k},f=function(){var u=h("initialFocus");if(u===!1)return!1;if(u===void 0||!Ae(u,r.tabbableOptions))if(l(s.activeElement)>=0)u=s.activeElement;else{var d=i.tabbableGroups[0],m=d&&d.firstTabbableNode;u=m||h("fallbackFocus")}if(!u)throw new Error("Your focus-trap needs to have at least one focusable element");return u},v=function(){if(i.containerGroups=i.containers.map(function(u){var d=ys(u,r.tabbableOptions),m=ws(u,r.tabbableOptions),S=d.length>0?d[0]:void 0,E=d.length>0?d[d.length-1]:void 0,k=m.find(function(p){return ae(p)}),F=m.slice().reverse().find(function(p){return ae(p)}),M=!!d.find(function(p){return ie(p)>0});return{container:u,tabbableNodes:d,focusableNodes:m,posTabIndexesFound:M,firstTabbableNode:S,lastTabbableNode:E,firstDomTabbableNode:k,lastDomTabbableNode:F,nextTabbableNode:function(g){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,O=d.indexOf(g);return O<0?N?m.slice(m.indexOf(g)+1).find(function(P){return ae(P)}):m.slice(0,m.indexOf(g)).reverse().find(function(P){return ae(P)}):d[O+(N?1:-1)]}}}),i.tabbableGroups=i.containerGroups.filter(function(u){return u.tabbableNodes.length>0}),i.tabbableGroups.length<=0&&!h("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(i.containerGroups.find(function(u){return u.posTabIndexesFound})&&i.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},y=function I(u){var d=u.activeElement;if(d)return d.shadowRoot&&d.shadowRoot.activeElement!==null?I(d.shadowRoot):d},w=function I(u){if(u!==!1&&u!==y(document)){if(!u||!u.focus){I(f());return}u.focus({preventScroll:!!r.preventScroll}),i.mostRecentlyFocusedNode=u,Is(u)&&u.select()}},b=function(u){var d=h("setReturnFocus",u);return d||(d===!1?!1:u)},x=function(u){var d=u.target,m=u.event,S=u.isBackward,E=S===void 0?!1:S;d=d||xe(m),v();var k=null;if(i.tabbableGroups.length>0){var F=l(d,m),M=F>=0?i.containerGroups[F]:void 0;if(F<0)E?k=i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:k=i.tabbableGroups[0].firstTabbableNode;else if(E){var p=ut(i.tabbableGroups,function(T){var L=T.firstTabbableNode;return d===L});if(p<0&&(M.container===d||Ae(d,r.tabbableOptions)&&!ae(d,r.tabbableOptions)&&!M.nextTabbableNode(d,!1))&&(p=F),p>=0){var g=p===0?i.tabbableGroups.length-1:p-1,N=i.tabbableGroups[g];k=ie(d)>=0?N.lastTabbableNode:N.lastDomTabbableNode}else ve(m)||(k=M.nextTabbableNode(d,!1))}else{var O=ut(i.tabbableGroups,function(T){var L=T.lastTabbableNode;return d===L});if(O<0&&(M.container===d||Ae(d,r.tabbableOptions)&&!ae(d,r.tabbableOptions)&&!M.nextTabbableNode(d))&&(O=F),O>=0){var P=O===i.tabbableGroups.length-1?0:O+1,j=i.tabbableGroups[P];k=ie(d)>=0?j.firstTabbableNode:j.firstDomTabbableNode}else ve(m)||(k=M.nextTabbableNode(d))}}else k=h("fallbackFocus");return k},C=function(u){var d=xe(u);if(!(l(d,u)>=0)){if(pe(r.clickOutsideDeactivates,u)){o.deactivate({returnFocus:r.returnFocusOnDeactivate});return}pe(r.allowOutsideClick,u)||u.preventDefault()}},R=function(u){var d=xe(u),m=l(d,u)>=0;if(m||d instanceof Document)m&&(i.mostRecentlyFocusedNode=d);else{u.stopImmediatePropagation();var S,E=!0;if(i.mostRecentlyFocusedNode)if(ie(i.mostRecentlyFocusedNode)>0){var k=l(i.mostRecentlyFocusedNode),F=i.containerGroups[k].tabbableNodes;if(F.length>0){var M=F.findIndex(function(p){return p===i.mostRecentlyFocusedNode});M>=0&&(r.isKeyForward(i.recentNavEvent)?M+1<F.length&&(S=F[M+1],E=!1):M-1>=0&&(S=F[M-1],E=!1))}}else i.containerGroups.some(function(p){return p.tabbableNodes.some(function(g){return ie(g)>0})})||(E=!1);else E=!1;E&&(S=x({target:i.mostRecentlyFocusedNode,isBackward:r.isKeyBackward(i.recentNavEvent)})),w(S||i.mostRecentlyFocusedNode||f())}i.recentNavEvent=void 0},W=function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;i.recentNavEvent=u;var m=x({event:u,isBackward:d});m&&(ve(u)&&u.preventDefault(),w(m))},J=function(u){if(Ts(u)&&pe(r.escapeDeactivates,u)!==!1){u.preventDefault(),o.deactivate();return}(r.isKeyForward(u)||r.isKeyBackward(u))&&W(u,r.isKeyBackward(u))},V=function(u){var d=xe(u);l(d,u)>=0||pe(r.clickOutsideDeactivates,u)||pe(r.allowOutsideClick,u)||(u.preventDefault(),u.stopImmediatePropagation())},U=function(){if(i.active)return ct.activateTrap(n,o),i.delayInitialFocusTimer=r.delayInitialFocus?lt(function(){w(f())}):w(f()),s.addEventListener("focusin",R,!0),s.addEventListener("mousedown",C,{capture:!0,passive:!1}),s.addEventListener("touchstart",C,{capture:!0,passive:!1}),s.addEventListener("click",V,{capture:!0,passive:!1}),s.addEventListener("keydown",J,{capture:!0,passive:!1}),o},q=function(){if(i.active)return s.removeEventListener("focusin",R,!0),s.removeEventListener("mousedown",C,!0),s.removeEventListener("touchstart",C,!0),s.removeEventListener("click",V,!0),s.removeEventListener("keydown",J,!0),o},Re=function(u){var d=u.some(function(m){var S=Array.from(m.removedNodes);return S.some(function(E){return E===i.mostRecentlyFocusedNode})});d&&w(f())},A=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(Re):void 0,K=function(){A&&(A.disconnect(),i.active&&!i.paused&&i.containers.map(function(u){A.observe(u,{subtree:!0,childList:!0})}))};return o={get active(){return i.active},get paused(){return i.paused},activate:function(u){if(i.active)return this;var d=c(u,"onActivate"),m=c(u,"onPostActivate"),S=c(u,"checkCanFocusTrap");S||v(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=s.activeElement,d==null||d();var E=function(){S&&v(),U(),K(),m==null||m()};return S?(S(i.containers.concat()).then(E,E),this):(E(),this)},deactivate:function(u){if(!i.active)return this;var d=ot({onDeactivate:r.onDeactivate,onPostDeactivate:r.onPostDeactivate,checkCanReturnFocus:r.checkCanReturnFocus},u);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,q(),i.active=!1,i.paused=!1,K(),ct.deactivateTrap(n,o);var m=c(d,"onDeactivate"),S=c(d,"onPostDeactivate"),E=c(d,"checkCanReturnFocus"),k=c(d,"returnFocus","returnFocusOnDeactivate");m==null||m();var F=function(){lt(function(){k&&w(b(i.nodeFocusedBeforeActivation)),S==null||S()})};return k&&E?(E(b(i.nodeFocusedBeforeActivation)).then(F,F),this):(F(),this)},pause:function(u){if(i.paused||!i.active)return this;var d=c(u,"onPause"),m=c(u,"onPostPause");return i.paused=!0,d==null||d(),q(),K(),m==null||m(),this},unpause:function(u){if(!i.paused||!i.active)return this;var d=c(u,"onUnpause"),m=c(u,"onPostUnpause");return i.paused=!1,d==null||d(),v(),U(),K(),m==null||m(),this},updateContainerElements:function(u){var d=[].concat(u).filter(Boolean);return i.containers=d.map(function(m){return typeof m=="string"?s.querySelector(m):m}),i.active&&v(),K(),this}},o.updateContainerElements(e),o};function Rs(a,e={}){let t;const{immediate:s,...n}=e,r=ne(!1),i=ne(!1),o=f=>t&&t.activate(f),c=f=>t&&t.deactivate(f),l=()=>{t&&(t.pause(),i.value=!0)},h=()=>{t&&(t.unpause(),i.value=!1)};return Ve(()=>Rt(a),f=>{f&&(t=Os(f,{...n,onActivate(){r.value=!0,e.onActivate&&e.onActivate()},onDeactivate(){r.value=!1,e.onDeactivate&&e.onDeactivate()}}),s&&o())},{flush:"post"}),Ct(()=>c()),{hasFocus:r,isPaused:i,activate:o,deactivate:c,pause:l,unpause:h}}class ce{constructor(e,t=!0,s=[],n=5e3){this.ctx=e,this.iframes=t,this.exclude=s,this.iframesTimeout=n}static matches(e,t){const s=typeof t=="string"?[t]:t,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let r=!1;return s.every(i=>n.call(e,i)?(r=!0,!1):!0),r}else return!1}getContexts(){let e,t=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(s=>{const n=t.filter(r=>r.contains(s)).length>0;t.indexOf(s)===-1&&!n&&t.push(s)}),t}getIframeContents(e,t,s=()=>{}){let n;try{const r=e.contentWindow;if(n=r.document,!r||!n)throw new Error("iframe inaccessible")}catch{s()}n&&t(n)}isIframeBlank(e){const t="about:blank",s=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&s!==t&&s}observeIframeLoad(e,t,s){let n=!1,r=null;const i=()=>{if(!n){n=!0,clearTimeout(r);try{this.isIframeBlank(e)||(e.removeEventListener("load",i),this.getIframeContents(e,t,s))}catch{s()}}};e.addEventListener("load",i),r=setTimeout(i,this.iframesTimeout)}onIframeReady(e,t,s){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,s):this.getIframeContents(e,t,s):this.observeIframeLoad(e,t,s)}catch{s()}}waitForIframes(e,t){let s=0;this.forEachIframe(e,()=>!0,n=>{s++,this.waitForIframes(n.querySelector("html"),()=>{--s||t()})},n=>{n||t()})}forEachIframe(e,t,s,n=()=>{}){let r=e.querySelectorAll("iframe"),i=r.length,o=0;r=Array.prototype.slice.call(r);const c=()=>{--i<=0&&n(o)};i||c(),r.forEach(l=>{ce.matches(l,this.exclude)?c():this.onIframeReady(l,h=>{t(l)&&(o++,s(h)),c()},c)})}createIterator(e,t,s){return document.createNodeIterator(e,t,s,!1)}createInstanceOnIframe(e){return new ce(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,s){const n=e.compareDocumentPosition(s),r=Node.DOCUMENT_POSITION_PRECEDING;if(n&r)if(t!==null){const i=t.compareDocumentPosition(s),o=Node.DOCUMENT_POSITION_FOLLOWING;if(i&o)return!0}else return!0;return!1}getIteratorNode(e){const t=e.previousNode();let s;return t===null?s=e.nextNode():s=e.nextNode()&&e.nextNode(),{prevNode:t,node:s}}checkIframeFilter(e,t,s,n){let r=!1,i=!1;return n.forEach((o,c)=>{o.val===s&&(r=c,i=o.handled)}),this.compareNodeIframe(e,t,s)?(r===!1&&!i?n.push({val:s,handled:!0}):r!==!1&&!i&&(n[r].handled=!0),!0):(r===!1&&n.push({val:s,handled:!1}),!1)}handleOpenIframes(e,t,s,n){e.forEach(r=>{r.handled||this.getIframeContents(r.val,i=>{this.createInstanceOnIframe(i).forEachNode(t,s,n)})})}iterateThroughNodes(e,t,s,n,r){const i=this.createIterator(t,e,n);let o=[],c=[],l,h,f=()=>({prevNode:h,node:l}=this.getIteratorNode(i),l);for(;f();)this.iframes&&this.forEachIframe(t,v=>this.checkIframeFilter(l,h,v,o),v=>{this.createInstanceOnIframe(v).forEachNode(e,y=>c.push(y),n)}),c.push(l);c.forEach(v=>{s(v)}),this.iframes&&this.handleOpenIframes(o,e,s,n),r()}forEachNode(e,t,s,n=()=>{}){const r=this.getContexts();let i=r.length;i||n(),r.forEach(o=>{const c=()=>{this.iterateThroughNodes(e,o,t,s,()=>{--i<=0&&n()})};this.iframes?this.waitForIframes(o,c):c()})}}let Cs=class{constructor(e){this.ctx=e,this.ie=!1;const t=window.navigator.userAgent;(t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new ce(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){const s=this.opt.log;this.opt.debug&&typeof s=="object"&&typeof s[t]=="function"&&s[t](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){const t=this.opt.synonyms,s=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let r in t)if(t.hasOwnProperty(r)){const i=t[r],o=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(r):this.escapeStr(r),c=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(i):this.escapeStr(i);o!==""&&c!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(o)}|${this.escapeStr(c)})`,`gm${s}`),n+`(${this.processSynomyms(o)}|${this.processSynomyms(c)})`+n))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,t=>t.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,t=>t.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let t=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(t,s,n)=>{let r=n.charAt(s+1);return/[(|)\\]/.test(r)||r===""?t:t+"\0"})}createJoinersRegExp(e){let t=[];const s=this.opt.ignorePunctuation;return Array.isArray(s)&&s.length&&t.push(this.escapeStr(s.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join(`[${t.join("")}]*`):e}createDiacriticsRegExp(e){const t=this.opt.caseSensitive?"":"i",s=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"];let n=[];return e.split("").forEach(r=>{s.every(i=>{if(i.indexOf(r)!==-1){if(n.indexOf(i)>-1)return!1;e=e.replace(new RegExp(`[${i}]`,`gm${t}`),`[${i}]`),n.push(i)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){const t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿";let s=this.opt.accuracy,n=typeof s=="string"?s:s.value,r=typeof s=="string"?[]:s.limiters,i="";switch(r.forEach(o=>{i+=`|${this.escapeStr(o)}`}),n){case"partially":default:return`()(${e})`;case"complementary":return i="\\s"+(i||this.escapeStr(t)),`()([^${i}]*${e}[^${i}]*)`;case"exactly":return`(^|\\s${i})(${e})(?=$|\\s${i})`}}getSeparatedKeywords(e){let t=[];return e.forEach(s=>{this.opt.separateWordSearch?s.split(" ").forEach(n=>{n.trim()&&t.indexOf(n)===-1&&t.push(n)}):s.trim()&&t.indexOf(s)===-1&&t.push(s)}),{keywords:t.sort((s,n)=>n.length-s.length),length:t.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];const t=[];let s=0;return e.sort((n,r)=>n.start-r.start).forEach(n=>{let{start:r,end:i,valid:o}=this.callNoMatchOnInvalidRanges(n,s);o&&(n.start=r,n.length=i-r,t.push(n),s=i)}),t}callNoMatchOnInvalidRanges(e,t){let s,n,r=!1;return e&&typeof e.start<"u"?(s=parseInt(e.start,10),n=s+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-t>0&&n-s>0?r=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:s,end:n,valid:r}}checkWhitespaceRanges(e,t,s){let n,r=!0,i=s.length,o=t-i,c=parseInt(e.start,10)-o;return c=c>i?i:c,n=c+parseInt(e.length,10),n>i&&(n=i,this.log(`End range automatically set to the max value of ${i}`)),c<0||n-c<0||c>i||n>i?(r=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):s.substring(c,n).replace(/\s+/g,"")===""&&(r=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:c,end:n,valid:r}}getTextNodes(e){let t="",s=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{s.push({start:t.length,end:(t+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:s})})}matchesExclude(e){return ce.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,s){const n=this.opt.element?this.opt.element:"mark",r=e.splitText(t),i=r.splitText(s-t);let o=document.createElement(n);return o.setAttribute("data-markjs","true"),this.opt.className&&o.setAttribute("class",this.opt.className),o.textContent=r.textContent,r.parentNode.replaceChild(o,r),i}wrapRangeInMappedTextNode(e,t,s,n,r){e.nodes.every((i,o)=>{const c=e.nodes[o+1];if(typeof c>"u"||c.start>t){if(!n(i.node))return!1;const l=t-i.start,h=(s>i.end?i.end:s)-i.start,f=e.value.substr(0,i.start),v=e.value.substr(h+i.start);if(i.node=this.wrapRangeInTextNode(i.node,l,h),e.value=f+v,e.nodes.forEach((y,w)=>{w>=o&&(e.nodes[w].start>0&&w!==o&&(e.nodes[w].start-=h),e.nodes[w].end-=h)}),s-=h,r(i.node.previousSibling,i.start),s>i.end)t=i.end;else return!1}return!0})}wrapMatches(e,t,s,n,r){const i=t===0?0:t+1;this.getTextNodes(o=>{o.nodes.forEach(c=>{c=c.node;let l;for(;(l=e.exec(c.textContent))!==null&&l[i]!=="";){if(!s(l[i],c))continue;let h=l.index;if(i!==0)for(let f=1;f<i;f++)h+=l[f].length;c=this.wrapRangeInTextNode(c,h,h+l[i].length),n(c.previousSibling),e.lastIndex=0}}),r()})}wrapMatchesAcrossElements(e,t,s,n,r){const i=t===0?0:t+1;this.getTextNodes(o=>{let c;for(;(c=e.exec(o.value))!==null&&c[i]!=="";){let l=c.index;if(i!==0)for(let f=1;f<i;f++)l+=c[f].length;const h=l+c[i].length;this.wrapRangeInMappedTextNode(o,l,h,f=>s(c[i],f),(f,v)=>{e.lastIndex=v,n(f)})}r()})}wrapRangeFromIndex(e,t,s,n){this.getTextNodes(r=>{const i=r.value.length;e.forEach((o,c)=>{let{start:l,end:h,valid:f}=this.checkWhitespaceRanges(o,i,r.value);f&&this.wrapRangeInMappedTextNode(r,l,h,v=>t(v,o,r.value.substring(l,h),c),v=>{s(v,o)})}),n()})}unwrapMatches(e){const t=e.parentNode;let s=document.createDocumentFragment();for(;e.firstChild;)s.appendChild(e.removeChild(e.firstChild));t.replaceChild(s,e),this.ie?this.normalizeTextNode(t):t.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,t){this.opt=t,this.log(`Searching with expression "${e}"`);let s=0,n="wrapMatches";const r=i=>{s++,this.opt.each(i)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(i,o)=>this.opt.filter(o,i,s),r,()=>{s===0&&this.opt.noMatch(e),this.opt.done(s)})}mark(e,t){this.opt=t;let s=0,n="wrapMatches";const{keywords:r,length:i}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),o=this.opt.caseSensitive?"":"i",c=l=>{let h=new RegExp(this.createRegExp(l),`gm${o}`),f=0;this.log(`Searching with expression "${h}"`),this[n](h,1,(v,y)=>this.opt.filter(y,l,s,f),v=>{f++,s++,this.opt.each(v)},()=>{f===0&&this.opt.noMatch(l),r[i-1]===l?this.opt.done(s):c(r[r.indexOf(l)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),i===0?this.opt.done(s):c(r[0])}markRanges(e,t){this.opt=t;let s=0,n=this.checkRanges(e);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(r,i,o,c)=>this.opt.filter(r,i,o,c),(r,i)=>{s++,this.opt.each(r,i)},()=>{this.opt.done(s)})):this.opt.done(s)}unmark(e){this.opt=e;let t=this.opt.element?this.opt.element:"*";t+="[data-markjs]",this.opt.className&&(t+=`.${this.opt.className}`),this.log(`Removal selector "${t}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,s=>{this.unwrapMatches(s)},s=>{const n=ce.matches(s,t),r=this.matchesExclude(s);return!n||r?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Ms(a){const e=new Cs(a);return this.mark=(t,s)=>(e.mark(t,s),this),this.markRegExp=(t,s)=>(e.markRegExp(t,s),this),this.markRanges=(t,s)=>(e.markRanges(t,s),this),this.unmark=t=>(e.unmark(t),this),this}function Ie(a,e,t,s){function n(r){return r instanceof t?r:new t(function(i){i(r)})}return new(t||(t=Promise))(function(r,i){function o(h){try{l(s.next(h))}catch(f){i(f)}}function c(h){try{l(s.throw(h))}catch(f){i(f)}}function l(h){h.done?r(h.value):n(h.value).then(o,c)}l((s=s.apply(a,e||[])).next())})}const As="ENTRIES",_t="KEYS",xt="VALUES",z="";class Le{constructor(e,t){const s=e._tree,n=Array.from(s.keys());this.set=e,this._type=t,this._path=n.length>0?[{node:s,keys:n}]:[]}next(){const e=this.dive();return this.backtrack(),e}dive(){if(this._path.length===0)return{done:!0,value:void 0};const{node:e,keys:t}=oe(this._path);if(oe(t)===z)return{done:!1,value:this.result()};const s=e.get(oe(t));return this._path.push({node:s,keys:Array.from(s.keys())}),this.dive()}backtrack(){if(this._path.length===0)return;const e=oe(this._path).keys;e.pop(),!(e.length>0)&&(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map(({keys:e})=>oe(e)).filter(e=>e!==z).join("")}value(){return oe(this._path).node.get(z)}result(){switch(this._type){case xt:return this.value();case _t:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}}const oe=a=>a[a.length-1],Ls=(a,e,t)=>{const s=new Map;if(e===void 0)return s;const n=e.length+1,r=n+t,i=new Uint8Array(r*n).fill(t+1);for(let o=0;o<n;++o)i[o]=o;for(let o=1;o<r;++o)i[o*n]=o;return St(a,e,t,s,i,1,n,""),s},St=(a,e,t,s,n,r,i,o)=>{const c=r*i;e:for(const l of a.keys())if(l===z){const h=n[c-1];h<=t&&s.set(o,[a.get(l),h])}else{let h=r;for(let f=0;f<l.length;++f,++h){const v=l[f],y=i*h,w=y-i;let b=n[y];const x=Math.max(0,h-t-1),C=Math.min(i-1,h+t);for(let R=x;R<C;++R){const W=v!==e[R],J=n[w+R]+ +W,V=n[w+R+1]+1,U=n[y+R]+1,q=n[y+R+1]=Math.min(J,V,U);q<b&&(b=q)}if(b>t)continue e}St(a.get(l),e,t,s,n,h,i,o+l)}};class X{constructor(e=new Map,t=""){this._size=void 0,this._tree=e,this._prefix=t}atPrefix(e){if(!e.startsWith(this._prefix))throw new Error("Mismatched prefix");const[t,s]=Oe(this._tree,e.slice(this._prefix.length));if(t===void 0){const[n,r]=Je(s);for(const i of n.keys())if(i!==z&&i.startsWith(r)){const o=new Map;return o.set(i.slice(r.length),n.get(i)),new X(o,e)}}return new X(t,e)}clear(){this._size=void 0,this._tree.clear()}delete(e){return this._size=void 0,Ds(this._tree,e)}entries(){return new Le(this,As)}forEach(e){for(const[t,s]of this)e(t,s,this)}fuzzyGet(e,t){return Ls(this._tree,e,t)}get(e){const t=Be(this._tree,e);return t!==void 0?t.get(z):void 0}has(e){const t=Be(this._tree,e);return t!==void 0&&t.has(z)}keys(){return new Le(this,_t)}set(e,t){if(typeof e!="string")throw new Error("key must be a string");return this._size=void 0,De(this._tree,e).set(z,t),this}get size(){if(this._size)return this._size;this._size=0;const e=this.entries();for(;!e.next().done;)this._size+=1;return this._size}update(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;const s=De(this._tree,e);return s.set(z,t(s.get(z))),this}fetch(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;const s=De(this._tree,e);let n=s.get(z);return n===void 0&&s.set(z,n=t()),n}values(){return new Le(this,xt)}[Symbol.iterator](){return this.entries()}static from(e){const t=new X;for(const[s,n]of e)t.set(s,n);return t}static fromObject(e){return X.from(Object.entries(e))}}const Oe=(a,e,t=[])=>{if(e.length===0||a==null)return[a,t];for(const s of a.keys())if(s!==z&&e.startsWith(s))return t.push([a,s]),Oe(a.get(s),e.slice(s.length),t);return t.push([a,e]),Oe(void 0,"",t)},Be=(a,e)=>{if(e.length===0||a==null)return a;for(const t of a.keys())if(t!==z&&e.startsWith(t))return Be(a.get(t),e.slice(t.length))},De=(a,e)=>{const t=e.length;e:for(let s=0;a&&s<t;){for(const r of a.keys())if(r!==z&&e[s]===r[0]){const i=Math.min(t-s,r.length);let o=1;for(;o<i&&e[s+o]===r[o];)++o;const c=a.get(r);if(o===r.length)a=c;else{const l=new Map;l.set(r.slice(o),c),a.set(e.slice(s,s+o),l),a.delete(r),a=l}s+=o;continue e}const n=new Map;return a.set(e.slice(s),n),n}return a},Ds=(a,e)=>{const[t,s]=Oe(a,e);if(t!==void 0){if(t.delete(z),t.size===0)Et(s);else if(t.size===1){const[n,r]=t.entries().next().value;It(s,n,r)}}},Et=a=>{if(a.length===0)return;const[e,t]=Je(a);if(e.delete(t),e.size===0)Et(a.slice(0,-1));else if(e.size===1){const[s,n]=e.entries().next().value;s!==z&&It(a.slice(0,-1),s,n)}},It=(a,e,t)=>{if(a.length===0)return;const[s,n]=Je(a);s.set(n+e,t),s.delete(n)},Je=a=>a[a.length-1],Ue="or",Tt="and",zs="and_not";class le{constructor(e){if((e==null?void 0:e.fields)==null)throw new Error('MiniSearch: option "fields" must be provided');const t=e.autoVacuum==null||e.autoVacuum===!0?je:e.autoVacuum;this._options=Object.assign(Object.assign(Object.assign({},Pe),e),{autoVacuum:t,searchOptions:Object.assign(Object.assign({},dt),e.searchOptions||{}),autoSuggestOptions:Object.assign(Object.assign({},Bs),e.autoSuggestOptions||{})}),this._index=new X,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldIds={},this._fieldLength=new Map,this._avgFieldLength=[],this._nextId=0,this._storedFields=new Map,this._dirtCount=0,this._currentVacuum=null,this._enqueuedVacuum=null,this._enqueuedVacuumConditions=Ke,this.addFields(this._options.fields)}add(e){const{extractField:t,tokenize:s,processTerm:n,fields:r,idField:i}=this._options,o=t(e,i);if(o==null)throw new Error(`MiniSearch: document does not have ID field "${i}"`);if(this._idToShortId.has(o))throw new Error(`MiniSearch: duplicate ID ${o}`);const c=this.addDocumentId(o);this.saveStoredFields(c,e);for(const l of r){const h=t(e,l);if(h==null)continue;const f=s(h.toString(),l),v=this._fieldIds[l],y=new Set(f).size;this.addFieldLength(c,v,this._documentCount-1,y);for(const w of f){const b=n(w,l);if(Array.isArray(b))for(const x of b)this.addTerm(v,c,x);else b&&this.addTerm(v,c,b)}}}addAll(e){for(const t of e)this.add(t)}addAllAsync(e,t={}){const{chunkSize:s=10}=t,n={chunk:[],promise:Promise.resolve()},{chunk:r,promise:i}=e.reduce(({chunk:o,promise:c},l,h)=>(o.push(l),(h+1)%s===0?{chunk:[],promise:c.then(()=>new Promise(f=>setTimeout(f,0))).then(()=>this.addAll(o))}:{chunk:o,promise:c}),n);return i.then(()=>this.addAll(r))}remove(e){const{tokenize:t,processTerm:s,extractField:n,fields:r,idField:i}=this._options,o=n(e,i);if(o==null)throw new Error(`MiniSearch: document does not have ID field "${i}"`);const c=this._idToShortId.get(o);if(c==null)throw new Error(`MiniSearch: cannot remove document with ID ${o}: it is not in the index`);for(const l of r){const h=n(e,l);if(h==null)continue;const f=t(h.toString(),l),v=this._fieldIds[l],y=new Set(f).size;this.removeFieldLength(c,v,this._documentCount,y);for(const w of f){const b=s(w,l);if(Array.isArray(b))for(const x of b)this.removeTerm(v,c,x);else b&&this.removeTerm(v,c,b)}}this._storedFields.delete(c),this._documentIds.delete(c),this._idToShortId.delete(o),this._fieldLength.delete(c),this._documentCount-=1}removeAll(e){if(e)for(const t of e)this.remove(t);else{if(arguments.length>0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");this._index=new X,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}}discard(e){const t=this._idToShortId.get(e);if(t==null)throw new Error(`MiniSearch: cannot discard document with ID ${e}: it is not in the index`);this._idToShortId.delete(e),this._documentIds.delete(t),this._storedFields.delete(t),(this._fieldLength.get(t)||[]).forEach((s,n)=>{this.removeFieldLength(t,n,this._documentCount,s)}),this._fieldLength.delete(t),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()}maybeAutoVacuum(){if(this._options.autoVacuum===!1)return;const{minDirtFactor:e,minDirtCount:t,batchSize:s,batchWait:n}=this._options.autoVacuum;this.conditionalVacuum({batchSize:s,batchWait:n},{minDirtCount:t,minDirtFactor:e})}discardAll(e){const t=this._options.autoVacuum;try{this._options.autoVacuum=!1;for(const s of e)this.discard(s)}finally{this._options.autoVacuum=t}this.maybeAutoVacuum()}replace(e){const{idField:t,extractField:s}=this._options,n=s(e,t);this.discard(n),this.add(e)}vacuum(e={}){return this.conditionalVacuum(e)}conditionalVacuum(e,t){return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&t,this._enqueuedVacuum!=null?this._enqueuedVacuum:(this._enqueuedVacuum=this._currentVacuum.then(()=>{const s=this._enqueuedVacuumConditions;return this._enqueuedVacuumConditions=Ke,this.performVacuuming(e,s)}),this._enqueuedVacuum)):this.vacuumConditionsMet(t)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(e),this._currentVacuum)}performVacuuming(e,t){return Ie(this,void 0,void 0,function*(){const s=this._dirtCount;if(this.vacuumConditionsMet(t)){const n=e.batchSize||We.batchSize,r=e.batchWait||We.batchWait;let i=1;for(const[o,c]of this._index){for(const[l,h]of c)for(const[f]of h)this._documentIds.has(f)||(h.size<=1?c.delete(l):h.delete(f));this._index.get(o).size===0&&this._index.delete(o),i%n===0&&(yield new Promise(l=>setTimeout(l,r))),i+=1}this._dirtCount-=s}yield null,this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null})}vacuumConditionsMet(e){if(e==null)return!0;let{minDirtCount:t,minDirtFactor:s}=e;return t=t||je.minDirtCount,s=s||je.minDirtFactor,this.dirtCount>=t&&this.dirtFactor>=s}get isVacuuming(){return this._currentVacuum!=null}get dirtCount(){return this._dirtCount}get dirtFactor(){return this._dirtCount/(1+this._documentCount+this._dirtCount)}has(e){return this._idToShortId.has(e)}getStoredFields(e){const t=this._idToShortId.get(e);if(t!=null)return this._storedFields.get(t)}search(e,t={}){const s=this.executeQuery(e,t),n=[];for(const[r,{score:i,terms:o,match:c}]of s){const l=o.length||1,h={id:this._documentIds.get(r),score:i*l,terms:Object.keys(c),queryTerms:o,match:c};Object.assign(h,this._storedFields.get(r)),(t.filter==null||t.filter(h))&&n.push(h)}return e===le.wildcard&&t.boostDocument==null&&this._options.searchOptions.boostDocument==null||n.sort(ft),n}autoSuggest(e,t={}){t=Object.assign(Object.assign({},this._options.autoSuggestOptions),t);const s=new Map;for(const{score:r,terms:i}of this.search(e,t)){const o=i.join(" "),c=s.get(o);c!=null?(c.score+=r,c.count+=1):s.set(o,{score:r,terms:i,count:1})}const n=[];for(const[r,{score:i,terms:o,count:c}]of s)n.push({suggestion:r,terms:o,score:i/c});return n.sort(ft),n}get documentCount(){return this._documentCount}get termCount(){return this._index.size}static loadJSON(e,t){if(t==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(e),t)}static loadJSONAsync(e,t){return Ie(this,void 0,void 0,function*(){if(t==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJSAsync(JSON.parse(e),t)})}static getDefault(e){if(Pe.hasOwnProperty(e))return ze(Pe,e);throw new Error(`MiniSearch: unknown option "${e}"`)}static loadJS(e,t){const{index:s,documentIds:n,fieldLength:r,storedFields:i,serializationVersion:o}=e,c=this.instantiateMiniSearch(e,t);c._documentIds=Se(n),c._fieldLength=Se(r),c._storedFields=Se(i);for(const[l,h]of c._documentIds)c._idToShortId.set(h,l);for(const[l,h]of s){const f=new Map;for(const v of Object.keys(h)){let y=h[v];o===1&&(y=y.ds),f.set(parseInt(v,10),Se(y))}c._index.set(l,f)}return c}static loadJSAsync(e,t){return Ie(this,void 0,void 0,function*(){const{index:s,documentIds:n,fieldLength:r,storedFields:i,serializationVersion:o}=e,c=this.instantiateMiniSearch(e,t);c._documentIds=yield Ee(n),c._fieldLength=yield Ee(r),c._storedFields=yield Ee(i);for(const[h,f]of c._documentIds)c._idToShortId.set(f,h);let l=0;for(const[h,f]of s){const v=new Map;for(const y of Object.keys(f)){let w=f[y];o===1&&(w=w.ds),v.set(parseInt(y,10),yield Ee(w))}++l%1e3===0&&(yield Nt(0)),c._index.set(h,v)}return c})}static instantiateMiniSearch(e,t){const{documentCount:s,nextId:n,fieldIds:r,averageFieldLength:i,dirtCount:o,serializationVersion:c}=e;if(c!==1&&c!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");const l=new le(t);return l._documentCount=s,l._nextId=n,l._idToShortId=new Map,l._fieldIds=r,l._avgFieldLength=i,l._dirtCount=o||0,l._index=new X,l}executeQuery(e,t={}){if(e===le.wildcard)return this.executeWildcardQuery(t);if(typeof e!="string"){const v=Object.assign(Object.assign(Object.assign({},t),e),{queries:void 0}),y=e.queries.map(w=>this.executeQuery(w,v));return this.combineResults(y,v.combineWith)}const{tokenize:s,processTerm:n,searchOptions:r}=this._options,i=Object.assign(Object.assign({tokenize:s,processTerm:n},r),t),{tokenize:o,processTerm:c}=i,f=o(e).flatMap(v=>c(v)).filter(v=>!!v).map($s(i)).map(v=>this.executeQuerySpec(v,i));return this.combineResults(f,i.combineWith)}executeQuerySpec(e,t){const s=Object.assign(Object.assign({},this._options.searchOptions),t),n=(s.fields||this._options.fields).reduce((b,x)=>Object.assign(Object.assign({},b),{[x]:ze(s.boost,x)||1}),{}),{boostDocument:r,weights:i,maxFuzzy:o,bm25:c}=s,{fuzzy:l,prefix:h}=Object.assign(Object.assign({},dt.weights),i),f=this._index.get(e.term),v=this.termResults(e.term,e.term,1,f,n,r,c);let y,w;if(e.prefix&&(y=this._index.atPrefix(e.term)),e.fuzzy){const b=e.fuzzy===!0?.2:e.fuzzy,x=b<1?Math.min(o,Math.round(e.term.length*b)):b;x&&(w=this._index.fuzzyGet(e.term,x))}if(y)for(const[b,x]of y){const C=b.length-e.term.length;if(!C)continue;w==null||w.delete(b);const R=h*b.length/(b.length+.3*C);this.termResults(e.term,b,R,x,n,r,c,v)}if(w)for(const b of w.keys()){const[x,C]=w.get(b);if(!C)continue;const R=l*b.length/(b.length+C);this.termResults(e.term,b,R,x,n,r,c,v)}return v}executeWildcardQuery(e){const t=new Map,s=Object.assign(Object.assign({},this._options.searchOptions),e);for(const[n,r]of this._documentIds){const i=s.boostDocument?s.boostDocument(r,"",this._storedFields.get(n)):1;t.set(n,{score:i,terms:[],match:{}})}return t}combineResults(e,t=Ue){if(e.length===0)return new Map;const s=t.toLowerCase(),n=Ps[s];if(!n)throw new Error(`Invalid combination operator: ${t}`);return e.reduce(n)||new Map}toJSON(){const e=[];for(const[t,s]of this._index){const n={};for(const[r,i]of s)n[r]=Object.fromEntries(i);e.push([t,n])}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:e,serializationVersion:2}}termResults(e,t,s,n,r,i,o,c=new Map){if(n==null)return c;for(const l of Object.keys(r)){const h=r[l],f=this._fieldIds[l],v=n.get(f);if(v==null)continue;let y=v.size;const w=this._avgFieldLength[f];for(const b of v.keys()){if(!this._documentIds.has(b)){this.removeTerm(f,b,t),y-=1;continue}const x=i?i(this._documentIds.get(b),t,this._storedFields.get(b)):1;if(!x)continue;const C=v.get(b),R=this._fieldLength.get(b)[f],W=Vs(C,y,this._documentCount,R,w,o),J=s*h*x*W,V=c.get(b);if(V){V.score+=J,Ws(V.terms,e);const U=ze(V.match,t);U?U.push(l):V.match[t]=[l]}else c.set(b,{score:J,terms:[e],match:{[t]:[l]}})}}return c}addTerm(e,t,s){const n=this._index.fetch(s,pt);let r=n.get(e);if(r==null)r=new Map,r.set(t,1),n.set(e,r);else{const i=r.get(t);r.set(t,(i||0)+1)}}removeTerm(e,t,s){if(!this._index.has(s)){this.warnDocumentChanged(t,e,s);return}const n=this._index.fetch(s,pt),r=n.get(e);r==null||r.get(t)==null?this.warnDocumentChanged(t,e,s):r.get(t)<=1?r.size<=1?n.delete(e):r.delete(t):r.set(t,r.get(t)-1),this._index.get(s).size===0&&this._index.delete(s)}warnDocumentChanged(e,t,s){for(const n of Object.keys(this._fieldIds))if(this._fieldIds[n]===t){this._options.logger("warn",`MiniSearch: document with ID ${this._documentIds.get(e)} has changed before removal: term "${s}" was not present in field "${n}". Removing a document after it has changed can corrupt the index!`,"version_conflict");return}}addDocumentId(e){const t=this._nextId;return this._idToShortId.set(e,t),this._documentIds.set(t,e),this._documentCount+=1,this._nextId+=1,t}addFields(e){for(let t=0;t<e.length;t++)this._fieldIds[e[t]]=t}addFieldLength(e,t,s,n){let r=this._fieldLength.get(e);r==null&&this._fieldLength.set(e,r=[]),r[t]=n;const o=(this._avgFieldLength[t]||0)*s+n;this._avgFieldLength[t]=o/(s+1)}removeFieldLength(e,t,s,n){if(s===1){this._avgFieldLength[t]=0;return}const r=this._avgFieldLength[t]*s-n;this._avgFieldLength[t]=r/(s-1)}saveStoredFields(e,t){const{storeFields:s,extractField:n}=this._options;if(s==null||s.length===0)return;let r=this._storedFields.get(e);r==null&&this._storedFields.set(e,r={});for(const i of s){const o=n(t,i);o!==void 0&&(r[i]=o)}}}le.wildcard=Symbol("*");const ze=(a,e)=>Object.prototype.hasOwnProperty.call(a,e)?a[e]:void 0,Ps={[Ue]:(a,e)=>{for(const t of e.keys()){const s=a.get(t);if(s==null)a.set(t,e.get(t));else{const{score:n,terms:r,match:i}=e.get(t);s.score=s.score+n,s.match=Object.assign(s.match,i),ht(s.terms,r)}}return a},[Tt]:(a,e)=>{const t=new Map;for(const s of e.keys()){const n=a.get(s);if(n==null)continue;const{score:r,terms:i,match:o}=e.get(s);ht(n.terms,i),t.set(s,{score:n.score+r,terms:n.terms,match:Object.assign(n.match,o)})}return t},[zs]:(a,e)=>{for(const t of e.keys())a.delete(t);return a}},js={k:1.2,b:.7,d:.5},Vs=(a,e,t,s,n,r)=>{const{k:i,b:o,d:c}=r;return Math.log(1+(t-e+.5)/(e+.5))*(c+a*(i+1)/(a+i*(1-o+o*s/n)))},$s=a=>(e,t,s)=>{const n=typeof a.fuzzy=="function"?a.fuzzy(e,t,s):a.fuzzy||!1,r=typeof a.prefix=="function"?a.prefix(e,t,s):a.prefix===!0;return{term:e,fuzzy:n,prefix:r}},Pe={idField:"id",extractField:(a,e)=>a[e],tokenize:a=>a.split(Ks),processTerm:a=>a.toLowerCase(),fields:void 0,searchOptions:void 0,storeFields:[],logger:(a,e)=>{typeof(console==null?void 0:console[a])=="function"&&console[a](e)},autoVacuum:!0},dt={combineWith:Ue,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:js},Bs={combineWith:Tt,prefix:(a,e,t)=>e===t.length-1},We={batchSize:1e3,batchWait:10},Ke={minDirtFactor:.1,minDirtCount:20},je=Object.assign(Object.assign({},We),Ke),Ws=(a,e)=>{a.includes(e)||a.push(e)},ht=(a,e)=>{for(const t of e)a.includes(t)||a.push(t)},ft=({score:a},{score:e})=>e-a,pt=()=>new Map,Se=a=>{const e=new Map;for(const t of Object.keys(a))e.set(parseInt(t,10),a[t]);return e},Ee=a=>Ie(void 0,void 0,void 0,function*(){const e=new Map;let t=0;for(const s of Object.keys(a))e.set(parseInt(s,10),a[s]),++t%1e3===0&&(yield Nt(0));return e}),Nt=a=>new Promise(e=>setTimeout(e,a)),Ks=/[\n\r\p{Z}\p{P}]/u;class Js{constructor(e=10){Ce(this,"max");Ce(this,"cache");this.max=e,this.cache=new Map}get(e){let t=this.cache.get(e);return t!==void 0&&(this.cache.delete(e),this.cache.set(e,t)),t}set(e,t){this.cache.has(e)?this.cache.delete(e):this.cache.size===this.max&&this.cache.delete(this.first()),this.cache.set(e,t)}first(){return this.cache.keys().next().value}clear(){this.cache.clear()}}const B=a=>(Ht("data-v-b73bb6e4"),a=a(),Qt(),a),Us=["aria-owns"],qs={class:"shell"},Gs=["title"],Hs=B(()=>_("span",{"aria-hidden":"true",class:"vpi-search search-icon local-search-icon"},null,-1)),Qs=[Hs],Ys={class:"search-actions before"},Zs=["title"],Xs=B(()=>_("span",{class:"vpi-arrow-left local-search-icon"},null,-1)),en=[Xs],tn=["placeholder"],sn={class:"search-actions"},nn=["title"],rn=B(()=>_("span",{class:"vpi-layout-list local-search-icon"},null,-1)),an=[rn],on=["disabled","title"],cn=B(()=>_("span",{class:"vpi-delete local-search-icon"},null,-1)),ln=[cn],un=["id","role","aria-labelledby"],dn=["aria-selected"],hn=["href","aria-label","onMouseenter","onFocusin"],fn={class:"titles"},pn=B(()=>_("span",{class:"title-icon"},"#",-1)),vn=["innerHTML"],mn=B(()=>_("span",{class:"vpi-chevron-right local-search-icon"},null,-1)),gn={class:"title main"},bn=["innerHTML"],yn={key:0,class:"excerpt-wrapper"},wn={key:0,class:"excerpt",inert:""},_n=["innerHTML"],xn=B(()=>_("div",{class:"excerpt-gradient-bottom"},null,-1)),Sn=B(()=>_("div",{class:"excerpt-gradient-top"},null,-1)),En={key:0,class:"no-results"},In={class:"search-keyboard-shortcuts"},Tn=["aria-label"],Nn=B(()=>_("span",{class:"vpi-arrow-up navigate-icon"},null,-1)),kn=[Nn],Fn=["aria-label"],On=B(()=>_("span",{class:"vpi-arrow-down navigate-icon"},null,-1)),Rn=[On],Cn=["aria-label"],Mn=B(()=>_("span",{class:"vpi-corner-down-left navigate-icon"},null,-1)),An=[Mn],Ln=["aria-label"],Dn=Mt({__name:"VPLocalSearchBox",emits:["close"],setup(a,{emit:e}){var F,M;const t=e,s=be(),n=be(),r=be(is),i=ss(),{activate:o}=Rs(s,{immediate:!0,allowOutsideClick:!0,clickOutsideDeactivates:!0,escapeDeactivates:!0}),{localeIndex:c,theme:l}=i,h=et(async()=>{var p,g,N,O,P,j,T,L,G;return it(le.loadJSON((N=await((g=(p=r.value)[c.value])==null?void 0:g.call(p)))==null?void 0:N.default,{fields:["title","titles","text"],storeFields:["title","titles"],searchOptions:{fuzzy:.2,prefix:!0,boost:{title:4,text:2,titles:1},...((O=l.value.search)==null?void 0:O.provider)==="local"&&((j=(P=l.value.search.options)==null?void 0:P.miniSearch)==null?void 0:j.searchOptions)},...((T=l.value.search)==null?void 0:T.provider)==="local"&&((G=(L=l.value.search.options)==null?void 0:L.miniSearch)==null?void 0:G.options)}))}),v=ye(()=>{var p,g;return((p=l.value.search)==null?void 0:p.provider)==="local"&&((g=l.value.search.options)==null?void 0:g.disableQueryPersistence)===!0}).value?ne(""):At("vitepress:local-search-filter",""),y=Lt("vitepress:local-search-detailed-list",((F=l.value.search)==null?void 0:F.provider)==="local"&&((M=l.value.search.options)==null?void 0:M.detailedView)===!0),w=ye(()=>{var p,g,N;return((p=l.value.search)==null?void 0:p.provider)==="local"&&(((g=l.value.search.options)==null?void 0:g.disableDetailedView)===!0||((N=l.value.search.options)==null?void 0:N.detailedView)===!1)}),b=ye(()=>{var g,N,O,P,j,T,L;const p=((g=l.value.search)==null?void 0:g.options)??l.value.algolia;return((j=(P=(O=(N=p==null?void 0:p.locales)==null?void 0:N[c.value])==null?void 0:O.translations)==null?void 0:P.button)==null?void 0:j.buttonText)||((L=(T=p==null?void 0:p.translations)==null?void 0:T.button)==null?void 0:L.buttonText)||"Search"});Dt(()=>{w.value&&(y.value=!1)});const x=be([]),C=ne(!1);Ve(v,()=>{C.value=!1});const R=et(async()=>{if(n.value)return it(new Ms(n.value))},null),W=new Js(16);zt(()=>[h.value,v.value,y.value],async([p,g,N],O,P)=>{var me,qe,Ge,He;(O==null?void 0:O[0])!==p&&W.clear();let j=!1;if(P(()=>{j=!0}),!p)return;x.value=p.search(g).slice(0,16),C.value=!0;const T=N?await Promise.all(x.value.map($=>J($.id))):[];if(j)return;for(const{id:$,mod:ee}of T){const te=$.slice(0,$.indexOf("#"));let Y=W.get(te);if(Y)continue;Y=new Map,W.set(te,Y);const H=ee.default??ee;if(H!=null&&H.render||H!=null&&H.setup){const se=Yt(H);se.config.warnHandler=()=>{},se.provide(Zt,i),Object.defineProperties(se.config.globalProperties,{$frontmatter:{get(){return i.frontmatter.value}},$params:{get(){return i.page.value.params}}});const Qe=document.createElement("div");se.mount(Qe),Qe.querySelectorAll("h1, h2, h3, h4, h5, h6").forEach(ue=>{var Xe;const ge=(Xe=ue.querySelector("a"))==null?void 0:Xe.getAttribute("href"),Ye=(ge==null?void 0:ge.startsWith("#"))&&ge.slice(1);if(!Ye)return;let Ze="";for(;(ue=ue.nextElementSibling)&&!/^h[1-6]$/i.test(ue.tagName);)Ze+=ue.outerHTML;Y.set(Ye,Ze)}),se.unmount()}if(j)return}const L=new Set;if(x.value=x.value.map($=>{const[ee,te]=$.id.split("#"),Y=W.get(ee),H=(Y==null?void 0:Y.get(te))??"";for(const se in $.match)L.add(se);return{...$,text:H}}),await de(),j)return;await new Promise($=>{var ee;(ee=R.value)==null||ee.unmark({done:()=>{var te;(te=R.value)==null||te.markRegExp(k(L),{done:$})}})});const G=((me=s.value)==null?void 0:me.querySelectorAll(".result .excerpt"))??[];for(const $ of G)(qe=$.querySelector('mark[data-markjs="true"]'))==null||qe.scrollIntoView({block:"center"});(He=(Ge=n.value)==null?void 0:Ge.firstElementChild)==null||He.scrollIntoView({block:"start"})},{debounce:200,immediate:!0});async function J(p){const g=Xt(p.slice(0,p.indexOf("#")));try{if(!g)throw new Error(`Cannot find file for id: ${p}`);return{id:p,mod:await import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1721382969248/files/.vitepress/dist"+u}return u})(g))}}catch(N){return console.error(N),{id:p,mod:{}}}}const V=ne(),U=ye(()=>{var p;return((p=v.value)==null?void 0:p.length)<=0});function q(p=!0){var g,N;(g=V.value)==null||g.focus(),p&&((N=V.value)==null||N.select())}Me(()=>{q()});function Re(p){p.pointerType==="mouse"&&q()}const A=ne(-1),K=ne(!1);Ve(x,p=>{A.value=p.length?0:-1,I()});function I(){de(()=>{const p=document.querySelector(".result.selected");p==null||p.scrollIntoView({block:"nearest"})})}we("ArrowUp",p=>{p.preventDefault(),A.value--,A.value<0&&(A.value=x.value.length-1),K.value=!0,I()}),we("ArrowDown",p=>{p.preventDefault(),A.value++,A.value>=x.value.length&&(A.value=0),K.value=!0,I()});const u=Pt();we("Enter",p=>{if(p.isComposing||p.target instanceof HTMLButtonElement&&p.target.type!=="submit")return;const g=x.value[A.value];if(p.target instanceof HTMLInputElement&&!g){p.preventDefault();return}g&&(u.go(g.id),t("close"))}),we("Escape",()=>{t("close")});const m=ns({modal:{displayDetails:"Display detailed list",resetButtonTitle:"Reset search",backButtonTitle:"Close search",noResultsText:"No results for",footer:{selectText:"to select",selectKeyAriaLabel:"enter",navigateText:"to navigate",navigateUpKeyAriaLabel:"up arrow",navigateDownKeyAriaLabel:"down arrow",closeText:"to close",closeKeyAriaLabel:"escape"}}});Me(()=>{window.history.pushState(null,"",null)}),jt("popstate",p=>{p.preventDefault(),t("close")});const S=Vt($t?document.body:null);Me(()=>{de(()=>{S.value=!0,de().then(()=>o())})}),Bt(()=>{S.value=!1});function E(){v.value="",de().then(()=>q(!1))}function k(p){return new RegExp([...p].sort((g,N)=>N.length-g.length).map(g=>`(${es(g)})`).join("|"),"gi")}return(p,g)=>{var N,O,P,j;return Q(),Wt(Gt,{to:"body"},[_("div",{ref_key:"el",ref:s,role:"button","aria-owns":(N=x.value)!=null&&N.length?"localsearch-list":void 0,"aria-expanded":"true","aria-haspopup":"listbox","aria-labelledby":"localsearch-label",class:"VPLocalSearchBox"},[_("div",{class:"backdrop",onClick:g[0]||(g[0]=T=>p.$emit("close"))}),_("div",qs,[_("form",{class:"search-bar",onPointerup:g[4]||(g[4]=T=>Re(T)),onSubmit:g[5]||(g[5]=Kt(()=>{},["prevent"]))},[_("label",{title:b.value,id:"localsearch-label",for:"localsearch-input"},Qs,8,Gs),_("div",Ys,[_("button",{class:"back-button",title:D(m)("modal.backButtonTitle"),onClick:g[1]||(g[1]=T=>p.$emit("close"))},en,8,Zs)]),Jt(_("input",{ref_key:"searchInput",ref:V,"onUpdate:modelValue":g[2]||(g[2]=T=>qt(v)?v.value=T:null),placeholder:b.value,id:"localsearch-input","aria-labelledby":"localsearch-label",class:"search-input"},null,8,tn),[[Ut,D(v)]]),_("div",sn,[w.value?_e("",!0):(Q(),Z("button",{key:0,class:tt(["toggle-layout-button",{"detailed-list":D(y)}]),type:"button",title:D(m)("modal.displayDetails"),onClick:g[3]||(g[3]=T=>A.value>-1&&(y.value=!D(y)))},an,10,nn)),_("button",{class:"clear-button",type:"reset",disabled:U.value,title:D(m)("modal.resetButtonTitle"),onClick:E},ln,8,on)])],32),_("ul",{ref_key:"resultsEl",ref:n,id:(O=x.value)!=null&&O.length?"localsearch-list":void 0,role:(P=x.value)!=null&&P.length?"listbox":void 0,"aria-labelledby":(j=x.value)!=null&&j.length?"localsearch-label":void 0,class:"results",onMousemove:g[7]||(g[7]=T=>K.value=!1)},[(Q(!0),Z(nt,null,st(x.value,(T,L)=>(Q(),Z("li",{key:T.id,role:"option","aria-selected":A.value===L?"true":"false"},[_("a",{href:T.id,class:tt(["result",{selected:A.value===L}]),"aria-label":[...T.titles,T.title].join(" > "),onMouseenter:G=>!K.value&&(A.value=L),onFocusin:G=>A.value=L,onClick:g[6]||(g[6]=G=>p.$emit("close"))},[_("div",null,[_("div",fn,[pn,(Q(!0),Z(nt,null,st(T.titles,(G,me)=>(Q(),Z("span",{key:me,class:"title"},[_("span",{class:"text",innerHTML:G},null,8,vn),mn]))),128)),_("span",gn,[_("span",{class:"text",innerHTML:T.title},null,8,bn)])]),D(y)?(Q(),Z("div",yn,[T.text?(Q(),Z("div",wn,[_("div",{class:"vp-doc",innerHTML:T.text},null,8,_n)])):_e("",!0),xn,Sn])):_e("",!0)])],42,hn)],8,dn))),128)),D(v)&&!x.value.length&&C.value?(Q(),Z("li",En,[he(fe(D(m)("modal.noResultsText"))+' "',1),_("strong",null,fe(D(v)),1),he('" ')])):_e("",!0)],40,un),_("div",In,[_("span",null,[_("kbd",{"aria-label":D(m)("modal.footer.navigateUpKeyAriaLabel")},kn,8,Tn),_("kbd",{"aria-label":D(m)("modal.footer.navigateDownKeyAriaLabel")},Rn,8,Fn),he(" "+fe(D(m)("modal.footer.navigateText")),1)]),_("span",null,[_("kbd",{"aria-label":D(m)("modal.footer.selectKeyAriaLabel")},An,8,Cn),he(" "+fe(D(m)("modal.footer.selectText")),1)]),_("span",null,[_("kbd",{"aria-label":D(m)("modal.footer.closeKeyAriaLabel")},"esc",8,Ln),he(" "+fe(D(m)("modal.footer.closeText")),1)])])])],8,Us)])}}}),Bn=ts(Dn,[["__scopeId","data-v-b73bb6e4"]]);export{Bn as default};
|
|
7
|
+
*/function at(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);e&&(s=s.filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable})),t.push.apply(t,s)}return t}function ot(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?at(Object(t),!0).forEach(function(s){xs(a,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):at(Object(t)).forEach(function(s){Object.defineProperty(a,s,Object.getOwnPropertyDescriptor(t,s))})}return a}function xs(a,e,t){return e=Es(e),e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function Ss(a,e){if(typeof a!="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var s=t.call(a,e||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}function Es(a){var e=Ss(a,"string");return typeof e=="symbol"?e:String(e)}var ct={activateTrap:function(e,t){if(e.length>0){var s=e[e.length-1];s!==t&&s.pause()}var n=e.indexOf(t);n===-1||e.splice(n,1),e.push(t)},deactivateTrap:function(e,t){var s=e.indexOf(t);s!==-1&&e.splice(s,1),e.length>0&&e[e.length-1].unpause()}},Is=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Ts=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},ve=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},Ns=function(e){return ve(e)&&!e.shiftKey},ks=function(e){return ve(e)&&e.shiftKey},lt=function(e){return setTimeout(e,0)},ut=function(e,t){var s=-1;return e.every(function(n,r){return t(n)?(s=r,!1):!0}),s},pe=function(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),n=1;n<t;n++)s[n-1]=arguments[n];return typeof e=="function"?e.apply(void 0,s):e},xe=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},Fs=[],Os=function(e,t){var s=(t==null?void 0:t.document)||document,n=(t==null?void 0:t.trapStack)||Fs,r=ot({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Ns,isKeyBackward:ks},t),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},o,c=function(u,d,m){return u&&u[d]!==void 0?u[d]:r[m||d]},l=function(u,d){var m=typeof(d==null?void 0:d.composedPath)=="function"?d.composedPath():void 0;return i.containerGroups.findIndex(function(S){var E=S.container,k=S.tabbableNodes;return E.contains(u)||(m==null?void 0:m.includes(E))||k.find(function(F){return F===u})})},h=function(u){var d=r[u];if(typeof d=="function"){for(var m=arguments.length,S=new Array(m>1?m-1:0),E=1;E<m;E++)S[E-1]=arguments[E];d=d.apply(void 0,S)}if(d===!0&&(d=void 0),!d){if(d===void 0||d===!1)return d;throw new Error("`".concat(u,"` was specified but was not a node, or did not return a node"))}var k=d;if(typeof d=="string"&&(k=s.querySelector(d),!k))throw new Error("`".concat(u,"` as selector refers to no known node"));return k},f=function(){var u=h("initialFocus");if(u===!1)return!1;if(u===void 0||!Ae(u,r.tabbableOptions))if(l(s.activeElement)>=0)u=s.activeElement;else{var d=i.tabbableGroups[0],m=d&&d.firstTabbableNode;u=m||h("fallbackFocus")}if(!u)throw new Error("Your focus-trap needs to have at least one focusable element");return u},v=function(){if(i.containerGroups=i.containers.map(function(u){var d=ys(u,r.tabbableOptions),m=ws(u,r.tabbableOptions),S=d.length>0?d[0]:void 0,E=d.length>0?d[d.length-1]:void 0,k=m.find(function(p){return ae(p)}),F=m.slice().reverse().find(function(p){return ae(p)}),M=!!d.find(function(p){return ie(p)>0});return{container:u,tabbableNodes:d,focusableNodes:m,posTabIndexesFound:M,firstTabbableNode:S,lastTabbableNode:E,firstDomTabbableNode:k,lastDomTabbableNode:F,nextTabbableNode:function(g){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,O=d.indexOf(g);return O<0?N?m.slice(m.indexOf(g)+1).find(function(P){return ae(P)}):m.slice(0,m.indexOf(g)).reverse().find(function(P){return ae(P)}):d[O+(N?1:-1)]}}}),i.tabbableGroups=i.containerGroups.filter(function(u){return u.tabbableNodes.length>0}),i.tabbableGroups.length<=0&&!h("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(i.containerGroups.find(function(u){return u.posTabIndexesFound})&&i.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},y=function I(u){var d=u.activeElement;if(d)return d.shadowRoot&&d.shadowRoot.activeElement!==null?I(d.shadowRoot):d},w=function I(u){if(u!==!1&&u!==y(document)){if(!u||!u.focus){I(f());return}u.focus({preventScroll:!!r.preventScroll}),i.mostRecentlyFocusedNode=u,Is(u)&&u.select()}},b=function(u){var d=h("setReturnFocus",u);return d||(d===!1?!1:u)},x=function(u){var d=u.target,m=u.event,S=u.isBackward,E=S===void 0?!1:S;d=d||xe(m),v();var k=null;if(i.tabbableGroups.length>0){var F=l(d,m),M=F>=0?i.containerGroups[F]:void 0;if(F<0)E?k=i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:k=i.tabbableGroups[0].firstTabbableNode;else if(E){var p=ut(i.tabbableGroups,function(T){var L=T.firstTabbableNode;return d===L});if(p<0&&(M.container===d||Ae(d,r.tabbableOptions)&&!ae(d,r.tabbableOptions)&&!M.nextTabbableNode(d,!1))&&(p=F),p>=0){var g=p===0?i.tabbableGroups.length-1:p-1,N=i.tabbableGroups[g];k=ie(d)>=0?N.lastTabbableNode:N.lastDomTabbableNode}else ve(m)||(k=M.nextTabbableNode(d,!1))}else{var O=ut(i.tabbableGroups,function(T){var L=T.lastTabbableNode;return d===L});if(O<0&&(M.container===d||Ae(d,r.tabbableOptions)&&!ae(d,r.tabbableOptions)&&!M.nextTabbableNode(d))&&(O=F),O>=0){var P=O===i.tabbableGroups.length-1?0:O+1,j=i.tabbableGroups[P];k=ie(d)>=0?j.firstTabbableNode:j.firstDomTabbableNode}else ve(m)||(k=M.nextTabbableNode(d))}}else k=h("fallbackFocus");return k},C=function(u){var d=xe(u);if(!(l(d,u)>=0)){if(pe(r.clickOutsideDeactivates,u)){o.deactivate({returnFocus:r.returnFocusOnDeactivate});return}pe(r.allowOutsideClick,u)||u.preventDefault()}},R=function(u){var d=xe(u),m=l(d,u)>=0;if(m||d instanceof Document)m&&(i.mostRecentlyFocusedNode=d);else{u.stopImmediatePropagation();var S,E=!0;if(i.mostRecentlyFocusedNode)if(ie(i.mostRecentlyFocusedNode)>0){var k=l(i.mostRecentlyFocusedNode),F=i.containerGroups[k].tabbableNodes;if(F.length>0){var M=F.findIndex(function(p){return p===i.mostRecentlyFocusedNode});M>=0&&(r.isKeyForward(i.recentNavEvent)?M+1<F.length&&(S=F[M+1],E=!1):M-1>=0&&(S=F[M-1],E=!1))}}else i.containerGroups.some(function(p){return p.tabbableNodes.some(function(g){return ie(g)>0})})||(E=!1);else E=!1;E&&(S=x({target:i.mostRecentlyFocusedNode,isBackward:r.isKeyBackward(i.recentNavEvent)})),w(S||i.mostRecentlyFocusedNode||f())}i.recentNavEvent=void 0},W=function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;i.recentNavEvent=u;var m=x({event:u,isBackward:d});m&&(ve(u)&&u.preventDefault(),w(m))},J=function(u){if(Ts(u)&&pe(r.escapeDeactivates,u)!==!1){u.preventDefault(),o.deactivate();return}(r.isKeyForward(u)||r.isKeyBackward(u))&&W(u,r.isKeyBackward(u))},V=function(u){var d=xe(u);l(d,u)>=0||pe(r.clickOutsideDeactivates,u)||pe(r.allowOutsideClick,u)||(u.preventDefault(),u.stopImmediatePropagation())},U=function(){if(i.active)return ct.activateTrap(n,o),i.delayInitialFocusTimer=r.delayInitialFocus?lt(function(){w(f())}):w(f()),s.addEventListener("focusin",R,!0),s.addEventListener("mousedown",C,{capture:!0,passive:!1}),s.addEventListener("touchstart",C,{capture:!0,passive:!1}),s.addEventListener("click",V,{capture:!0,passive:!1}),s.addEventListener("keydown",J,{capture:!0,passive:!1}),o},q=function(){if(i.active)return s.removeEventListener("focusin",R,!0),s.removeEventListener("mousedown",C,!0),s.removeEventListener("touchstart",C,!0),s.removeEventListener("click",V,!0),s.removeEventListener("keydown",J,!0),o},Re=function(u){var d=u.some(function(m){var S=Array.from(m.removedNodes);return S.some(function(E){return E===i.mostRecentlyFocusedNode})});d&&w(f())},A=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(Re):void 0,K=function(){A&&(A.disconnect(),i.active&&!i.paused&&i.containers.map(function(u){A.observe(u,{subtree:!0,childList:!0})}))};return o={get active(){return i.active},get paused(){return i.paused},activate:function(u){if(i.active)return this;var d=c(u,"onActivate"),m=c(u,"onPostActivate"),S=c(u,"checkCanFocusTrap");S||v(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=s.activeElement,d==null||d();var E=function(){S&&v(),U(),K(),m==null||m()};return S?(S(i.containers.concat()).then(E,E),this):(E(),this)},deactivate:function(u){if(!i.active)return this;var d=ot({onDeactivate:r.onDeactivate,onPostDeactivate:r.onPostDeactivate,checkCanReturnFocus:r.checkCanReturnFocus},u);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,q(),i.active=!1,i.paused=!1,K(),ct.deactivateTrap(n,o);var m=c(d,"onDeactivate"),S=c(d,"onPostDeactivate"),E=c(d,"checkCanReturnFocus"),k=c(d,"returnFocus","returnFocusOnDeactivate");m==null||m();var F=function(){lt(function(){k&&w(b(i.nodeFocusedBeforeActivation)),S==null||S()})};return k&&E?(E(b(i.nodeFocusedBeforeActivation)).then(F,F),this):(F(),this)},pause:function(u){if(i.paused||!i.active)return this;var d=c(u,"onPause"),m=c(u,"onPostPause");return i.paused=!0,d==null||d(),q(),K(),m==null||m(),this},unpause:function(u){if(!i.paused||!i.active)return this;var d=c(u,"onUnpause"),m=c(u,"onPostUnpause");return i.paused=!1,d==null||d(),v(),U(),K(),m==null||m(),this},updateContainerElements:function(u){var d=[].concat(u).filter(Boolean);return i.containers=d.map(function(m){return typeof m=="string"?s.querySelector(m):m}),i.active&&v(),K(),this}},o.updateContainerElements(e),o};function Rs(a,e={}){let t;const{immediate:s,...n}=e,r=ne(!1),i=ne(!1),o=f=>t&&t.activate(f),c=f=>t&&t.deactivate(f),l=()=>{t&&(t.pause(),i.value=!0)},h=()=>{t&&(t.unpause(),i.value=!1)};return Ve(()=>Rt(a),f=>{f&&(t=Os(f,{...n,onActivate(){r.value=!0,e.onActivate&&e.onActivate()},onDeactivate(){r.value=!1,e.onDeactivate&&e.onDeactivate()}}),s&&o())},{flush:"post"}),Ct(()=>c()),{hasFocus:r,isPaused:i,activate:o,deactivate:c,pause:l,unpause:h}}class ce{constructor(e,t=!0,s=[],n=5e3){this.ctx=e,this.iframes=t,this.exclude=s,this.iframesTimeout=n}static matches(e,t){const s=typeof t=="string"?[t]:t,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let r=!1;return s.every(i=>n.call(e,i)?(r=!0,!1):!0),r}else return!1}getContexts(){let e,t=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(s=>{const n=t.filter(r=>r.contains(s)).length>0;t.indexOf(s)===-1&&!n&&t.push(s)}),t}getIframeContents(e,t,s=()=>{}){let n;try{const r=e.contentWindow;if(n=r.document,!r||!n)throw new Error("iframe inaccessible")}catch{s()}n&&t(n)}isIframeBlank(e){const t="about:blank",s=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&s!==t&&s}observeIframeLoad(e,t,s){let n=!1,r=null;const i=()=>{if(!n){n=!0,clearTimeout(r);try{this.isIframeBlank(e)||(e.removeEventListener("load",i),this.getIframeContents(e,t,s))}catch{s()}}};e.addEventListener("load",i),r=setTimeout(i,this.iframesTimeout)}onIframeReady(e,t,s){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,s):this.getIframeContents(e,t,s):this.observeIframeLoad(e,t,s)}catch{s()}}waitForIframes(e,t){let s=0;this.forEachIframe(e,()=>!0,n=>{s++,this.waitForIframes(n.querySelector("html"),()=>{--s||t()})},n=>{n||t()})}forEachIframe(e,t,s,n=()=>{}){let r=e.querySelectorAll("iframe"),i=r.length,o=0;r=Array.prototype.slice.call(r);const c=()=>{--i<=0&&n(o)};i||c(),r.forEach(l=>{ce.matches(l,this.exclude)?c():this.onIframeReady(l,h=>{t(l)&&(o++,s(h)),c()},c)})}createIterator(e,t,s){return document.createNodeIterator(e,t,s,!1)}createInstanceOnIframe(e){return new ce(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,s){const n=e.compareDocumentPosition(s),r=Node.DOCUMENT_POSITION_PRECEDING;if(n&r)if(t!==null){const i=t.compareDocumentPosition(s),o=Node.DOCUMENT_POSITION_FOLLOWING;if(i&o)return!0}else return!0;return!1}getIteratorNode(e){const t=e.previousNode();let s;return t===null?s=e.nextNode():s=e.nextNode()&&e.nextNode(),{prevNode:t,node:s}}checkIframeFilter(e,t,s,n){let r=!1,i=!1;return n.forEach((o,c)=>{o.val===s&&(r=c,i=o.handled)}),this.compareNodeIframe(e,t,s)?(r===!1&&!i?n.push({val:s,handled:!0}):r!==!1&&!i&&(n[r].handled=!0),!0):(r===!1&&n.push({val:s,handled:!1}),!1)}handleOpenIframes(e,t,s,n){e.forEach(r=>{r.handled||this.getIframeContents(r.val,i=>{this.createInstanceOnIframe(i).forEachNode(t,s,n)})})}iterateThroughNodes(e,t,s,n,r){const i=this.createIterator(t,e,n);let o=[],c=[],l,h,f=()=>({prevNode:h,node:l}=this.getIteratorNode(i),l);for(;f();)this.iframes&&this.forEachIframe(t,v=>this.checkIframeFilter(l,h,v,o),v=>{this.createInstanceOnIframe(v).forEachNode(e,y=>c.push(y),n)}),c.push(l);c.forEach(v=>{s(v)}),this.iframes&&this.handleOpenIframes(o,e,s,n),r()}forEachNode(e,t,s,n=()=>{}){const r=this.getContexts();let i=r.length;i||n(),r.forEach(o=>{const c=()=>{this.iterateThroughNodes(e,o,t,s,()=>{--i<=0&&n()})};this.iframes?this.waitForIframes(o,c):c()})}}let Cs=class{constructor(e){this.ctx=e,this.ie=!1;const t=window.navigator.userAgent;(t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new ce(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){const s=this.opt.log;this.opt.debug&&typeof s=="object"&&typeof s[t]=="function"&&s[t](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){const t=this.opt.synonyms,s=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let r in t)if(t.hasOwnProperty(r)){const i=t[r],o=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(r):this.escapeStr(r),c=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(i):this.escapeStr(i);o!==""&&c!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(o)}|${this.escapeStr(c)})`,`gm${s}`),n+`(${this.processSynomyms(o)}|${this.processSynomyms(c)})`+n))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,t=>t.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,t=>t.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let t=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(t,s,n)=>{let r=n.charAt(s+1);return/[(|)\\]/.test(r)||r===""?t:t+"\0"})}createJoinersRegExp(e){let t=[];const s=this.opt.ignorePunctuation;return Array.isArray(s)&&s.length&&t.push(this.escapeStr(s.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join(`[${t.join("")}]*`):e}createDiacriticsRegExp(e){const t=this.opt.caseSensitive?"":"i",s=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"];let n=[];return e.split("").forEach(r=>{s.every(i=>{if(i.indexOf(r)!==-1){if(n.indexOf(i)>-1)return!1;e=e.replace(new RegExp(`[${i}]`,`gm${t}`),`[${i}]`),n.push(i)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){const t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿";let s=this.opt.accuracy,n=typeof s=="string"?s:s.value,r=typeof s=="string"?[]:s.limiters,i="";switch(r.forEach(o=>{i+=`|${this.escapeStr(o)}`}),n){case"partially":default:return`()(${e})`;case"complementary":return i="\\s"+(i||this.escapeStr(t)),`()([^${i}]*${e}[^${i}]*)`;case"exactly":return`(^|\\s${i})(${e})(?=$|\\s${i})`}}getSeparatedKeywords(e){let t=[];return e.forEach(s=>{this.opt.separateWordSearch?s.split(" ").forEach(n=>{n.trim()&&t.indexOf(n)===-1&&t.push(n)}):s.trim()&&t.indexOf(s)===-1&&t.push(s)}),{keywords:t.sort((s,n)=>n.length-s.length),length:t.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];const t=[];let s=0;return e.sort((n,r)=>n.start-r.start).forEach(n=>{let{start:r,end:i,valid:o}=this.callNoMatchOnInvalidRanges(n,s);o&&(n.start=r,n.length=i-r,t.push(n),s=i)}),t}callNoMatchOnInvalidRanges(e,t){let s,n,r=!1;return e&&typeof e.start<"u"?(s=parseInt(e.start,10),n=s+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-t>0&&n-s>0?r=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:s,end:n,valid:r}}checkWhitespaceRanges(e,t,s){let n,r=!0,i=s.length,o=t-i,c=parseInt(e.start,10)-o;return c=c>i?i:c,n=c+parseInt(e.length,10),n>i&&(n=i,this.log(`End range automatically set to the max value of ${i}`)),c<0||n-c<0||c>i||n>i?(r=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):s.substring(c,n).replace(/\s+/g,"")===""&&(r=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:c,end:n,valid:r}}getTextNodes(e){let t="",s=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{s.push({start:t.length,end:(t+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:s})})}matchesExclude(e){return ce.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,s){const n=this.opt.element?this.opt.element:"mark",r=e.splitText(t),i=r.splitText(s-t);let o=document.createElement(n);return o.setAttribute("data-markjs","true"),this.opt.className&&o.setAttribute("class",this.opt.className),o.textContent=r.textContent,r.parentNode.replaceChild(o,r),i}wrapRangeInMappedTextNode(e,t,s,n,r){e.nodes.every((i,o)=>{const c=e.nodes[o+1];if(typeof c>"u"||c.start>t){if(!n(i.node))return!1;const l=t-i.start,h=(s>i.end?i.end:s)-i.start,f=e.value.substr(0,i.start),v=e.value.substr(h+i.start);if(i.node=this.wrapRangeInTextNode(i.node,l,h),e.value=f+v,e.nodes.forEach((y,w)=>{w>=o&&(e.nodes[w].start>0&&w!==o&&(e.nodes[w].start-=h),e.nodes[w].end-=h)}),s-=h,r(i.node.previousSibling,i.start),s>i.end)t=i.end;else return!1}return!0})}wrapMatches(e,t,s,n,r){const i=t===0?0:t+1;this.getTextNodes(o=>{o.nodes.forEach(c=>{c=c.node;let l;for(;(l=e.exec(c.textContent))!==null&&l[i]!=="";){if(!s(l[i],c))continue;let h=l.index;if(i!==0)for(let f=1;f<i;f++)h+=l[f].length;c=this.wrapRangeInTextNode(c,h,h+l[i].length),n(c.previousSibling),e.lastIndex=0}}),r()})}wrapMatchesAcrossElements(e,t,s,n,r){const i=t===0?0:t+1;this.getTextNodes(o=>{let c;for(;(c=e.exec(o.value))!==null&&c[i]!=="";){let l=c.index;if(i!==0)for(let f=1;f<i;f++)l+=c[f].length;const h=l+c[i].length;this.wrapRangeInMappedTextNode(o,l,h,f=>s(c[i],f),(f,v)=>{e.lastIndex=v,n(f)})}r()})}wrapRangeFromIndex(e,t,s,n){this.getTextNodes(r=>{const i=r.value.length;e.forEach((o,c)=>{let{start:l,end:h,valid:f}=this.checkWhitespaceRanges(o,i,r.value);f&&this.wrapRangeInMappedTextNode(r,l,h,v=>t(v,o,r.value.substring(l,h),c),v=>{s(v,o)})}),n()})}unwrapMatches(e){const t=e.parentNode;let s=document.createDocumentFragment();for(;e.firstChild;)s.appendChild(e.removeChild(e.firstChild));t.replaceChild(s,e),this.ie?this.normalizeTextNode(t):t.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,t){this.opt=t,this.log(`Searching with expression "${e}"`);let s=0,n="wrapMatches";const r=i=>{s++,this.opt.each(i)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(i,o)=>this.opt.filter(o,i,s),r,()=>{s===0&&this.opt.noMatch(e),this.opt.done(s)})}mark(e,t){this.opt=t;let s=0,n="wrapMatches";const{keywords:r,length:i}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),o=this.opt.caseSensitive?"":"i",c=l=>{let h=new RegExp(this.createRegExp(l),`gm${o}`),f=0;this.log(`Searching with expression "${h}"`),this[n](h,1,(v,y)=>this.opt.filter(y,l,s,f),v=>{f++,s++,this.opt.each(v)},()=>{f===0&&this.opt.noMatch(l),r[i-1]===l?this.opt.done(s):c(r[r.indexOf(l)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),i===0?this.opt.done(s):c(r[0])}markRanges(e,t){this.opt=t;let s=0,n=this.checkRanges(e);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(r,i,o,c)=>this.opt.filter(r,i,o,c),(r,i)=>{s++,this.opt.each(r,i)},()=>{this.opt.done(s)})):this.opt.done(s)}unmark(e){this.opt=e;let t=this.opt.element?this.opt.element:"*";t+="[data-markjs]",this.opt.className&&(t+=`.${this.opt.className}`),this.log(`Removal selector "${t}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,s=>{this.unwrapMatches(s)},s=>{const n=ce.matches(s,t),r=this.matchesExclude(s);return!n||r?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Ms(a){const e=new Cs(a);return this.mark=(t,s)=>(e.mark(t,s),this),this.markRegExp=(t,s)=>(e.markRegExp(t,s),this),this.markRanges=(t,s)=>(e.markRanges(t,s),this),this.unmark=t=>(e.unmark(t),this),this}function Ie(a,e,t,s){function n(r){return r instanceof t?r:new t(function(i){i(r)})}return new(t||(t=Promise))(function(r,i){function o(h){try{l(s.next(h))}catch(f){i(f)}}function c(h){try{l(s.throw(h))}catch(f){i(f)}}function l(h){h.done?r(h.value):n(h.value).then(o,c)}l((s=s.apply(a,e||[])).next())})}const As="ENTRIES",_t="KEYS",xt="VALUES",z="";class Le{constructor(e,t){const s=e._tree,n=Array.from(s.keys());this.set=e,this._type=t,this._path=n.length>0?[{node:s,keys:n}]:[]}next(){const e=this.dive();return this.backtrack(),e}dive(){if(this._path.length===0)return{done:!0,value:void 0};const{node:e,keys:t}=oe(this._path);if(oe(t)===z)return{done:!1,value:this.result()};const s=e.get(oe(t));return this._path.push({node:s,keys:Array.from(s.keys())}),this.dive()}backtrack(){if(this._path.length===0)return;const e=oe(this._path).keys;e.pop(),!(e.length>0)&&(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map(({keys:e})=>oe(e)).filter(e=>e!==z).join("")}value(){return oe(this._path).node.get(z)}result(){switch(this._type){case xt:return this.value();case _t:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}}const oe=a=>a[a.length-1],Ls=(a,e,t)=>{const s=new Map;if(e===void 0)return s;const n=e.length+1,r=n+t,i=new Uint8Array(r*n).fill(t+1);for(let o=0;o<n;++o)i[o]=o;for(let o=1;o<r;++o)i[o*n]=o;return St(a,e,t,s,i,1,n,""),s},St=(a,e,t,s,n,r,i,o)=>{const c=r*i;e:for(const l of a.keys())if(l===z){const h=n[c-1];h<=t&&s.set(o,[a.get(l),h])}else{let h=r;for(let f=0;f<l.length;++f,++h){const v=l[f],y=i*h,w=y-i;let b=n[y];const x=Math.max(0,h-t-1),C=Math.min(i-1,h+t);for(let R=x;R<C;++R){const W=v!==e[R],J=n[w+R]+ +W,V=n[w+R+1]+1,U=n[y+R]+1,q=n[y+R+1]=Math.min(J,V,U);q<b&&(b=q)}if(b>t)continue e}St(a.get(l),e,t,s,n,h,i,o+l)}};class X{constructor(e=new Map,t=""){this._size=void 0,this._tree=e,this._prefix=t}atPrefix(e){if(!e.startsWith(this._prefix))throw new Error("Mismatched prefix");const[t,s]=Oe(this._tree,e.slice(this._prefix.length));if(t===void 0){const[n,r]=Je(s);for(const i of n.keys())if(i!==z&&i.startsWith(r)){const o=new Map;return o.set(i.slice(r.length),n.get(i)),new X(o,e)}}return new X(t,e)}clear(){this._size=void 0,this._tree.clear()}delete(e){return this._size=void 0,Ds(this._tree,e)}entries(){return new Le(this,As)}forEach(e){for(const[t,s]of this)e(t,s,this)}fuzzyGet(e,t){return Ls(this._tree,e,t)}get(e){const t=Be(this._tree,e);return t!==void 0?t.get(z):void 0}has(e){const t=Be(this._tree,e);return t!==void 0&&t.has(z)}keys(){return new Le(this,_t)}set(e,t){if(typeof e!="string")throw new Error("key must be a string");return this._size=void 0,De(this._tree,e).set(z,t),this}get size(){if(this._size)return this._size;this._size=0;const e=this.entries();for(;!e.next().done;)this._size+=1;return this._size}update(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;const s=De(this._tree,e);return s.set(z,t(s.get(z))),this}fetch(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;const s=De(this._tree,e);let n=s.get(z);return n===void 0&&s.set(z,n=t()),n}values(){return new Le(this,xt)}[Symbol.iterator](){return this.entries()}static from(e){const t=new X;for(const[s,n]of e)t.set(s,n);return t}static fromObject(e){return X.from(Object.entries(e))}}const Oe=(a,e,t=[])=>{if(e.length===0||a==null)return[a,t];for(const s of a.keys())if(s!==z&&e.startsWith(s))return t.push([a,s]),Oe(a.get(s),e.slice(s.length),t);return t.push([a,e]),Oe(void 0,"",t)},Be=(a,e)=>{if(e.length===0||a==null)return a;for(const t of a.keys())if(t!==z&&e.startsWith(t))return Be(a.get(t),e.slice(t.length))},De=(a,e)=>{const t=e.length;e:for(let s=0;a&&s<t;){for(const r of a.keys())if(r!==z&&e[s]===r[0]){const i=Math.min(t-s,r.length);let o=1;for(;o<i&&e[s+o]===r[o];)++o;const c=a.get(r);if(o===r.length)a=c;else{const l=new Map;l.set(r.slice(o),c),a.set(e.slice(s,s+o),l),a.delete(r),a=l}s+=o;continue e}const n=new Map;return a.set(e.slice(s),n),n}return a},Ds=(a,e)=>{const[t,s]=Oe(a,e);if(t!==void 0){if(t.delete(z),t.size===0)Et(s);else if(t.size===1){const[n,r]=t.entries().next().value;It(s,n,r)}}},Et=a=>{if(a.length===0)return;const[e,t]=Je(a);if(e.delete(t),e.size===0)Et(a.slice(0,-1));else if(e.size===1){const[s,n]=e.entries().next().value;s!==z&&It(a.slice(0,-1),s,n)}},It=(a,e,t)=>{if(a.length===0)return;const[s,n]=Je(a);s.set(n+e,t),s.delete(n)},Je=a=>a[a.length-1],Ue="or",Tt="and",zs="and_not";class le{constructor(e){if((e==null?void 0:e.fields)==null)throw new Error('MiniSearch: option "fields" must be provided');const t=e.autoVacuum==null||e.autoVacuum===!0?je:e.autoVacuum;this._options=Object.assign(Object.assign(Object.assign({},Pe),e),{autoVacuum:t,searchOptions:Object.assign(Object.assign({},dt),e.searchOptions||{}),autoSuggestOptions:Object.assign(Object.assign({},Bs),e.autoSuggestOptions||{})}),this._index=new X,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldIds={},this._fieldLength=new Map,this._avgFieldLength=[],this._nextId=0,this._storedFields=new Map,this._dirtCount=0,this._currentVacuum=null,this._enqueuedVacuum=null,this._enqueuedVacuumConditions=Ke,this.addFields(this._options.fields)}add(e){const{extractField:t,tokenize:s,processTerm:n,fields:r,idField:i}=this._options,o=t(e,i);if(o==null)throw new Error(`MiniSearch: document does not have ID field "${i}"`);if(this._idToShortId.has(o))throw new Error(`MiniSearch: duplicate ID ${o}`);const c=this.addDocumentId(o);this.saveStoredFields(c,e);for(const l of r){const h=t(e,l);if(h==null)continue;const f=s(h.toString(),l),v=this._fieldIds[l],y=new Set(f).size;this.addFieldLength(c,v,this._documentCount-1,y);for(const w of f){const b=n(w,l);if(Array.isArray(b))for(const x of b)this.addTerm(v,c,x);else b&&this.addTerm(v,c,b)}}}addAll(e){for(const t of e)this.add(t)}addAllAsync(e,t={}){const{chunkSize:s=10}=t,n={chunk:[],promise:Promise.resolve()},{chunk:r,promise:i}=e.reduce(({chunk:o,promise:c},l,h)=>(o.push(l),(h+1)%s===0?{chunk:[],promise:c.then(()=>new Promise(f=>setTimeout(f,0))).then(()=>this.addAll(o))}:{chunk:o,promise:c}),n);return i.then(()=>this.addAll(r))}remove(e){const{tokenize:t,processTerm:s,extractField:n,fields:r,idField:i}=this._options,o=n(e,i);if(o==null)throw new Error(`MiniSearch: document does not have ID field "${i}"`);const c=this._idToShortId.get(o);if(c==null)throw new Error(`MiniSearch: cannot remove document with ID ${o}: it is not in the index`);for(const l of r){const h=n(e,l);if(h==null)continue;const f=t(h.toString(),l),v=this._fieldIds[l],y=new Set(f).size;this.removeFieldLength(c,v,this._documentCount,y);for(const w of f){const b=s(w,l);if(Array.isArray(b))for(const x of b)this.removeTerm(v,c,x);else b&&this.removeTerm(v,c,b)}}this._storedFields.delete(c),this._documentIds.delete(c),this._idToShortId.delete(o),this._fieldLength.delete(c),this._documentCount-=1}removeAll(e){if(e)for(const t of e)this.remove(t);else{if(arguments.length>0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");this._index=new X,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}}discard(e){const t=this._idToShortId.get(e);if(t==null)throw new Error(`MiniSearch: cannot discard document with ID ${e}: it is not in the index`);this._idToShortId.delete(e),this._documentIds.delete(t),this._storedFields.delete(t),(this._fieldLength.get(t)||[]).forEach((s,n)=>{this.removeFieldLength(t,n,this._documentCount,s)}),this._fieldLength.delete(t),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()}maybeAutoVacuum(){if(this._options.autoVacuum===!1)return;const{minDirtFactor:e,minDirtCount:t,batchSize:s,batchWait:n}=this._options.autoVacuum;this.conditionalVacuum({batchSize:s,batchWait:n},{minDirtCount:t,minDirtFactor:e})}discardAll(e){const t=this._options.autoVacuum;try{this._options.autoVacuum=!1;for(const s of e)this.discard(s)}finally{this._options.autoVacuum=t}this.maybeAutoVacuum()}replace(e){const{idField:t,extractField:s}=this._options,n=s(e,t);this.discard(n),this.add(e)}vacuum(e={}){return this.conditionalVacuum(e)}conditionalVacuum(e,t){return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&t,this._enqueuedVacuum!=null?this._enqueuedVacuum:(this._enqueuedVacuum=this._currentVacuum.then(()=>{const s=this._enqueuedVacuumConditions;return this._enqueuedVacuumConditions=Ke,this.performVacuuming(e,s)}),this._enqueuedVacuum)):this.vacuumConditionsMet(t)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(e),this._currentVacuum)}performVacuuming(e,t){return Ie(this,void 0,void 0,function*(){const s=this._dirtCount;if(this.vacuumConditionsMet(t)){const n=e.batchSize||We.batchSize,r=e.batchWait||We.batchWait;let i=1;for(const[o,c]of this._index){for(const[l,h]of c)for(const[f]of h)this._documentIds.has(f)||(h.size<=1?c.delete(l):h.delete(f));this._index.get(o).size===0&&this._index.delete(o),i%n===0&&(yield new Promise(l=>setTimeout(l,r))),i+=1}this._dirtCount-=s}yield null,this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null})}vacuumConditionsMet(e){if(e==null)return!0;let{minDirtCount:t,minDirtFactor:s}=e;return t=t||je.minDirtCount,s=s||je.minDirtFactor,this.dirtCount>=t&&this.dirtFactor>=s}get isVacuuming(){return this._currentVacuum!=null}get dirtCount(){return this._dirtCount}get dirtFactor(){return this._dirtCount/(1+this._documentCount+this._dirtCount)}has(e){return this._idToShortId.has(e)}getStoredFields(e){const t=this._idToShortId.get(e);if(t!=null)return this._storedFields.get(t)}search(e,t={}){const s=this.executeQuery(e,t),n=[];for(const[r,{score:i,terms:o,match:c}]of s){const l=o.length||1,h={id:this._documentIds.get(r),score:i*l,terms:Object.keys(c),queryTerms:o,match:c};Object.assign(h,this._storedFields.get(r)),(t.filter==null||t.filter(h))&&n.push(h)}return e===le.wildcard&&t.boostDocument==null&&this._options.searchOptions.boostDocument==null||n.sort(ft),n}autoSuggest(e,t={}){t=Object.assign(Object.assign({},this._options.autoSuggestOptions),t);const s=new Map;for(const{score:r,terms:i}of this.search(e,t)){const o=i.join(" "),c=s.get(o);c!=null?(c.score+=r,c.count+=1):s.set(o,{score:r,terms:i,count:1})}const n=[];for(const[r,{score:i,terms:o,count:c}]of s)n.push({suggestion:r,terms:o,score:i/c});return n.sort(ft),n}get documentCount(){return this._documentCount}get termCount(){return this._index.size}static loadJSON(e,t){if(t==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(e),t)}static loadJSONAsync(e,t){return Ie(this,void 0,void 0,function*(){if(t==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJSAsync(JSON.parse(e),t)})}static getDefault(e){if(Pe.hasOwnProperty(e))return ze(Pe,e);throw new Error(`MiniSearch: unknown option "${e}"`)}static loadJS(e,t){const{index:s,documentIds:n,fieldLength:r,storedFields:i,serializationVersion:o}=e,c=this.instantiateMiniSearch(e,t);c._documentIds=Se(n),c._fieldLength=Se(r),c._storedFields=Se(i);for(const[l,h]of c._documentIds)c._idToShortId.set(h,l);for(const[l,h]of s){const f=new Map;for(const v of Object.keys(h)){let y=h[v];o===1&&(y=y.ds),f.set(parseInt(v,10),Se(y))}c._index.set(l,f)}return c}static loadJSAsync(e,t){return Ie(this,void 0,void 0,function*(){const{index:s,documentIds:n,fieldLength:r,storedFields:i,serializationVersion:o}=e,c=this.instantiateMiniSearch(e,t);c._documentIds=yield Ee(n),c._fieldLength=yield Ee(r),c._storedFields=yield Ee(i);for(const[h,f]of c._documentIds)c._idToShortId.set(f,h);let l=0;for(const[h,f]of s){const v=new Map;for(const y of Object.keys(f)){let w=f[y];o===1&&(w=w.ds),v.set(parseInt(y,10),yield Ee(w))}++l%1e3===0&&(yield Nt(0)),c._index.set(h,v)}return c})}static instantiateMiniSearch(e,t){const{documentCount:s,nextId:n,fieldIds:r,averageFieldLength:i,dirtCount:o,serializationVersion:c}=e;if(c!==1&&c!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");const l=new le(t);return l._documentCount=s,l._nextId=n,l._idToShortId=new Map,l._fieldIds=r,l._avgFieldLength=i,l._dirtCount=o||0,l._index=new X,l}executeQuery(e,t={}){if(e===le.wildcard)return this.executeWildcardQuery(t);if(typeof e!="string"){const v=Object.assign(Object.assign(Object.assign({},t),e),{queries:void 0}),y=e.queries.map(w=>this.executeQuery(w,v));return this.combineResults(y,v.combineWith)}const{tokenize:s,processTerm:n,searchOptions:r}=this._options,i=Object.assign(Object.assign({tokenize:s,processTerm:n},r),t),{tokenize:o,processTerm:c}=i,f=o(e).flatMap(v=>c(v)).filter(v=>!!v).map($s(i)).map(v=>this.executeQuerySpec(v,i));return this.combineResults(f,i.combineWith)}executeQuerySpec(e,t){const s=Object.assign(Object.assign({},this._options.searchOptions),t),n=(s.fields||this._options.fields).reduce((b,x)=>Object.assign(Object.assign({},b),{[x]:ze(s.boost,x)||1}),{}),{boostDocument:r,weights:i,maxFuzzy:o,bm25:c}=s,{fuzzy:l,prefix:h}=Object.assign(Object.assign({},dt.weights),i),f=this._index.get(e.term),v=this.termResults(e.term,e.term,1,f,n,r,c);let y,w;if(e.prefix&&(y=this._index.atPrefix(e.term)),e.fuzzy){const b=e.fuzzy===!0?.2:e.fuzzy,x=b<1?Math.min(o,Math.round(e.term.length*b)):b;x&&(w=this._index.fuzzyGet(e.term,x))}if(y)for(const[b,x]of y){const C=b.length-e.term.length;if(!C)continue;w==null||w.delete(b);const R=h*b.length/(b.length+.3*C);this.termResults(e.term,b,R,x,n,r,c,v)}if(w)for(const b of w.keys()){const[x,C]=w.get(b);if(!C)continue;const R=l*b.length/(b.length+C);this.termResults(e.term,b,R,x,n,r,c,v)}return v}executeWildcardQuery(e){const t=new Map,s=Object.assign(Object.assign({},this._options.searchOptions),e);for(const[n,r]of this._documentIds){const i=s.boostDocument?s.boostDocument(r,"",this._storedFields.get(n)):1;t.set(n,{score:i,terms:[],match:{}})}return t}combineResults(e,t=Ue){if(e.length===0)return new Map;const s=t.toLowerCase(),n=Ps[s];if(!n)throw new Error(`Invalid combination operator: ${t}`);return e.reduce(n)||new Map}toJSON(){const e=[];for(const[t,s]of this._index){const n={};for(const[r,i]of s)n[r]=Object.fromEntries(i);e.push([t,n])}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:e,serializationVersion:2}}termResults(e,t,s,n,r,i,o,c=new Map){if(n==null)return c;for(const l of Object.keys(r)){const h=r[l],f=this._fieldIds[l],v=n.get(f);if(v==null)continue;let y=v.size;const w=this._avgFieldLength[f];for(const b of v.keys()){if(!this._documentIds.has(b)){this.removeTerm(f,b,t),y-=1;continue}const x=i?i(this._documentIds.get(b),t,this._storedFields.get(b)):1;if(!x)continue;const C=v.get(b),R=this._fieldLength.get(b)[f],W=Vs(C,y,this._documentCount,R,w,o),J=s*h*x*W,V=c.get(b);if(V){V.score+=J,Ws(V.terms,e);const U=ze(V.match,t);U?U.push(l):V.match[t]=[l]}else c.set(b,{score:J,terms:[e],match:{[t]:[l]}})}}return c}addTerm(e,t,s){const n=this._index.fetch(s,pt);let r=n.get(e);if(r==null)r=new Map,r.set(t,1),n.set(e,r);else{const i=r.get(t);r.set(t,(i||0)+1)}}removeTerm(e,t,s){if(!this._index.has(s)){this.warnDocumentChanged(t,e,s);return}const n=this._index.fetch(s,pt),r=n.get(e);r==null||r.get(t)==null?this.warnDocumentChanged(t,e,s):r.get(t)<=1?r.size<=1?n.delete(e):r.delete(t):r.set(t,r.get(t)-1),this._index.get(s).size===0&&this._index.delete(s)}warnDocumentChanged(e,t,s){for(const n of Object.keys(this._fieldIds))if(this._fieldIds[n]===t){this._options.logger("warn",`MiniSearch: document with ID ${this._documentIds.get(e)} has changed before removal: term "${s}" was not present in field "${n}". Removing a document after it has changed can corrupt the index!`,"version_conflict");return}}addDocumentId(e){const t=this._nextId;return this._idToShortId.set(e,t),this._documentIds.set(t,e),this._documentCount+=1,this._nextId+=1,t}addFields(e){for(let t=0;t<e.length;t++)this._fieldIds[e[t]]=t}addFieldLength(e,t,s,n){let r=this._fieldLength.get(e);r==null&&this._fieldLength.set(e,r=[]),r[t]=n;const o=(this._avgFieldLength[t]||0)*s+n;this._avgFieldLength[t]=o/(s+1)}removeFieldLength(e,t,s,n){if(s===1){this._avgFieldLength[t]=0;return}const r=this._avgFieldLength[t]*s-n;this._avgFieldLength[t]=r/(s-1)}saveStoredFields(e,t){const{storeFields:s,extractField:n}=this._options;if(s==null||s.length===0)return;let r=this._storedFields.get(e);r==null&&this._storedFields.set(e,r={});for(const i of s){const o=n(t,i);o!==void 0&&(r[i]=o)}}}le.wildcard=Symbol("*");const ze=(a,e)=>Object.prototype.hasOwnProperty.call(a,e)?a[e]:void 0,Ps={[Ue]:(a,e)=>{for(const t of e.keys()){const s=a.get(t);if(s==null)a.set(t,e.get(t));else{const{score:n,terms:r,match:i}=e.get(t);s.score=s.score+n,s.match=Object.assign(s.match,i),ht(s.terms,r)}}return a},[Tt]:(a,e)=>{const t=new Map;for(const s of e.keys()){const n=a.get(s);if(n==null)continue;const{score:r,terms:i,match:o}=e.get(s);ht(n.terms,i),t.set(s,{score:n.score+r,terms:n.terms,match:Object.assign(n.match,o)})}return t},[zs]:(a,e)=>{for(const t of e.keys())a.delete(t);return a}},js={k:1.2,b:.7,d:.5},Vs=(a,e,t,s,n,r)=>{const{k:i,b:o,d:c}=r;return Math.log(1+(t-e+.5)/(e+.5))*(c+a*(i+1)/(a+i*(1-o+o*s/n)))},$s=a=>(e,t,s)=>{const n=typeof a.fuzzy=="function"?a.fuzzy(e,t,s):a.fuzzy||!1,r=typeof a.prefix=="function"?a.prefix(e,t,s):a.prefix===!0;return{term:e,fuzzy:n,prefix:r}},Pe={idField:"id",extractField:(a,e)=>a[e],tokenize:a=>a.split(Ks),processTerm:a=>a.toLowerCase(),fields:void 0,searchOptions:void 0,storeFields:[],logger:(a,e)=>{typeof(console==null?void 0:console[a])=="function"&&console[a](e)},autoVacuum:!0},dt={combineWith:Ue,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:js},Bs={combineWith:Tt,prefix:(a,e,t)=>e===t.length-1},We={batchSize:1e3,batchWait:10},Ke={minDirtFactor:.1,minDirtCount:20},je=Object.assign(Object.assign({},We),Ke),Ws=(a,e)=>{a.includes(e)||a.push(e)},ht=(a,e)=>{for(const t of e)a.includes(t)||a.push(t)},ft=({score:a},{score:e})=>e-a,pt=()=>new Map,Se=a=>{const e=new Map;for(const t of Object.keys(a))e.set(parseInt(t,10),a[t]);return e},Ee=a=>Ie(void 0,void 0,void 0,function*(){const e=new Map;let t=0;for(const s of Object.keys(a))e.set(parseInt(s,10),a[s]),++t%1e3===0&&(yield Nt(0));return e}),Nt=a=>new Promise(e=>setTimeout(e,a)),Ks=/[\n\r\p{Z}\p{P}]/u;class Js{constructor(e=10){Ce(this,"max");Ce(this,"cache");this.max=e,this.cache=new Map}get(e){let t=this.cache.get(e);return t!==void 0&&(this.cache.delete(e),this.cache.set(e,t)),t}set(e,t){this.cache.has(e)?this.cache.delete(e):this.cache.size===this.max&&this.cache.delete(this.first()),this.cache.set(e,t)}first(){return this.cache.keys().next().value}clear(){this.cache.clear()}}const B=a=>(Ht("data-v-b73bb6e4"),a=a(),Qt(),a),Us=["aria-owns"],qs={class:"shell"},Gs=["title"],Hs=B(()=>_("span",{"aria-hidden":"true",class:"vpi-search search-icon local-search-icon"},null,-1)),Qs=[Hs],Ys={class:"search-actions before"},Zs=["title"],Xs=B(()=>_("span",{class:"vpi-arrow-left local-search-icon"},null,-1)),en=[Xs],tn=["placeholder"],sn={class:"search-actions"},nn=["title"],rn=B(()=>_("span",{class:"vpi-layout-list local-search-icon"},null,-1)),an=[rn],on=["disabled","title"],cn=B(()=>_("span",{class:"vpi-delete local-search-icon"},null,-1)),ln=[cn],un=["id","role","aria-labelledby"],dn=["aria-selected"],hn=["href","aria-label","onMouseenter","onFocusin"],fn={class:"titles"},pn=B(()=>_("span",{class:"title-icon"},"#",-1)),vn=["innerHTML"],mn=B(()=>_("span",{class:"vpi-chevron-right local-search-icon"},null,-1)),gn={class:"title main"},bn=["innerHTML"],yn={key:0,class:"excerpt-wrapper"},wn={key:0,class:"excerpt",inert:""},_n=["innerHTML"],xn=B(()=>_("div",{class:"excerpt-gradient-bottom"},null,-1)),Sn=B(()=>_("div",{class:"excerpt-gradient-top"},null,-1)),En={key:0,class:"no-results"},In={class:"search-keyboard-shortcuts"},Tn=["aria-label"],Nn=B(()=>_("span",{class:"vpi-arrow-up navigate-icon"},null,-1)),kn=[Nn],Fn=["aria-label"],On=B(()=>_("span",{class:"vpi-arrow-down navigate-icon"},null,-1)),Rn=[On],Cn=["aria-label"],Mn=B(()=>_("span",{class:"vpi-corner-down-left navigate-icon"},null,-1)),An=[Mn],Ln=["aria-label"],Dn=Mt({__name:"VPLocalSearchBox",emits:["close"],setup(a,{emit:e}){var F,M;const t=e,s=be(),n=be(),r=be(is),i=ss(),{activate:o}=Rs(s,{immediate:!0,allowOutsideClick:!0,clickOutsideDeactivates:!0,escapeDeactivates:!0}),{localeIndex:c,theme:l}=i,h=et(async()=>{var p,g,N,O,P,j,T,L,G;return it(le.loadJSON((N=await((g=(p=r.value)[c.value])==null?void 0:g.call(p)))==null?void 0:N.default,{fields:["title","titles","text"],storeFields:["title","titles"],searchOptions:{fuzzy:.2,prefix:!0,boost:{title:4,text:2,titles:1},...((O=l.value.search)==null?void 0:O.provider)==="local"&&((j=(P=l.value.search.options)==null?void 0:P.miniSearch)==null?void 0:j.searchOptions)},...((T=l.value.search)==null?void 0:T.provider)==="local"&&((G=(L=l.value.search.options)==null?void 0:L.miniSearch)==null?void 0:G.options)}))}),v=ye(()=>{var p,g;return((p=l.value.search)==null?void 0:p.provider)==="local"&&((g=l.value.search.options)==null?void 0:g.disableQueryPersistence)===!0}).value?ne(""):At("vitepress:local-search-filter",""),y=Lt("vitepress:local-search-detailed-list",((F=l.value.search)==null?void 0:F.provider)==="local"&&((M=l.value.search.options)==null?void 0:M.detailedView)===!0),w=ye(()=>{var p,g,N;return((p=l.value.search)==null?void 0:p.provider)==="local"&&(((g=l.value.search.options)==null?void 0:g.disableDetailedView)===!0||((N=l.value.search.options)==null?void 0:N.detailedView)===!1)}),b=ye(()=>{var g,N,O,P,j,T,L;const p=((g=l.value.search)==null?void 0:g.options)??l.value.algolia;return((j=(P=(O=(N=p==null?void 0:p.locales)==null?void 0:N[c.value])==null?void 0:O.translations)==null?void 0:P.button)==null?void 0:j.buttonText)||((L=(T=p==null?void 0:p.translations)==null?void 0:T.button)==null?void 0:L.buttonText)||"Search"});Dt(()=>{w.value&&(y.value=!1)});const x=be([]),C=ne(!1);Ve(v,()=>{C.value=!1});const R=et(async()=>{if(n.value)return it(new Ms(n.value))},null),W=new Js(16);zt(()=>[h.value,v.value,y.value],async([p,g,N],O,P)=>{var me,qe,Ge,He;(O==null?void 0:O[0])!==p&&W.clear();let j=!1;if(P(()=>{j=!0}),!p)return;x.value=p.search(g).slice(0,16),C.value=!0;const T=N?await Promise.all(x.value.map($=>J($.id))):[];if(j)return;for(const{id:$,mod:ee}of T){const te=$.slice(0,$.indexOf("#"));let Y=W.get(te);if(Y)continue;Y=new Map,W.set(te,Y);const H=ee.default??ee;if(H!=null&&H.render||H!=null&&H.setup){const se=Yt(H);se.config.warnHandler=()=>{},se.provide(Zt,i),Object.defineProperties(se.config.globalProperties,{$frontmatter:{get(){return i.frontmatter.value}},$params:{get(){return i.page.value.params}}});const Qe=document.createElement("div");se.mount(Qe),Qe.querySelectorAll("h1, h2, h3, h4, h5, h6").forEach(ue=>{var Xe;const ge=(Xe=ue.querySelector("a"))==null?void 0:Xe.getAttribute("href"),Ye=(ge==null?void 0:ge.startsWith("#"))&&ge.slice(1);if(!Ye)return;let Ze="";for(;(ue=ue.nextElementSibling)&&!/^h[1-6]$/i.test(ue.tagName);)Ze+=ue.outerHTML;Y.set(Ye,Ze)}),se.unmount()}if(j)return}const L=new Set;if(x.value=x.value.map($=>{const[ee,te]=$.id.split("#"),Y=W.get(ee),H=(Y==null?void 0:Y.get(te))??"";for(const se in $.match)L.add(se);return{...$,text:H}}),await de(),j)return;await new Promise($=>{var ee;(ee=R.value)==null||ee.unmark({done:()=>{var te;(te=R.value)==null||te.markRegExp(k(L),{done:$})}})});const G=((me=s.value)==null?void 0:me.querySelectorAll(".result .excerpt"))??[];for(const $ of G)(qe=$.querySelector('mark[data-markjs="true"]'))==null||qe.scrollIntoView({block:"center"});(He=(Ge=n.value)==null?void 0:Ge.firstElementChild)==null||He.scrollIntoView({block:"start"})},{debounce:200,immediate:!0});async function J(p){const g=Xt(p.slice(0,p.indexOf("#")));try{if(!g)throw new Error(`Cannot find file for id: ${p}`);return{id:p,mod:await import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1721398242559/files/.vitepress/dist"+u}return u})(g))}}catch(N){return console.error(N),{id:p,mod:{}}}}const V=ne(),U=ye(()=>{var p;return((p=v.value)==null?void 0:p.length)<=0});function q(p=!0){var g,N;(g=V.value)==null||g.focus(),p&&((N=V.value)==null||N.select())}Me(()=>{q()});function Re(p){p.pointerType==="mouse"&&q()}const A=ne(-1),K=ne(!1);Ve(x,p=>{A.value=p.length?0:-1,I()});function I(){de(()=>{const p=document.querySelector(".result.selected");p==null||p.scrollIntoView({block:"nearest"})})}we("ArrowUp",p=>{p.preventDefault(),A.value--,A.value<0&&(A.value=x.value.length-1),K.value=!0,I()}),we("ArrowDown",p=>{p.preventDefault(),A.value++,A.value>=x.value.length&&(A.value=0),K.value=!0,I()});const u=Pt();we("Enter",p=>{if(p.isComposing||p.target instanceof HTMLButtonElement&&p.target.type!=="submit")return;const g=x.value[A.value];if(p.target instanceof HTMLInputElement&&!g){p.preventDefault();return}g&&(u.go(g.id),t("close"))}),we("Escape",()=>{t("close")});const m=ns({modal:{displayDetails:"Display detailed list",resetButtonTitle:"Reset search",backButtonTitle:"Close search",noResultsText:"No results for",footer:{selectText:"to select",selectKeyAriaLabel:"enter",navigateText:"to navigate",navigateUpKeyAriaLabel:"up arrow",navigateDownKeyAriaLabel:"down arrow",closeText:"to close",closeKeyAriaLabel:"escape"}}});Me(()=>{window.history.pushState(null,"",null)}),jt("popstate",p=>{p.preventDefault(),t("close")});const S=Vt($t?document.body:null);Me(()=>{de(()=>{S.value=!0,de().then(()=>o())})}),Bt(()=>{S.value=!1});function E(){v.value="",de().then(()=>q(!1))}function k(p){return new RegExp([...p].sort((g,N)=>N.length-g.length).map(g=>`(${es(g)})`).join("|"),"gi")}return(p,g)=>{var N,O,P,j;return Q(),Wt(Gt,{to:"body"},[_("div",{ref_key:"el",ref:s,role:"button","aria-owns":(N=x.value)!=null&&N.length?"localsearch-list":void 0,"aria-expanded":"true","aria-haspopup":"listbox","aria-labelledby":"localsearch-label",class:"VPLocalSearchBox"},[_("div",{class:"backdrop",onClick:g[0]||(g[0]=T=>p.$emit("close"))}),_("div",qs,[_("form",{class:"search-bar",onPointerup:g[4]||(g[4]=T=>Re(T)),onSubmit:g[5]||(g[5]=Kt(()=>{},["prevent"]))},[_("label",{title:b.value,id:"localsearch-label",for:"localsearch-input"},Qs,8,Gs),_("div",Ys,[_("button",{class:"back-button",title:D(m)("modal.backButtonTitle"),onClick:g[1]||(g[1]=T=>p.$emit("close"))},en,8,Zs)]),Jt(_("input",{ref_key:"searchInput",ref:V,"onUpdate:modelValue":g[2]||(g[2]=T=>qt(v)?v.value=T:null),placeholder:b.value,id:"localsearch-input","aria-labelledby":"localsearch-label",class:"search-input"},null,8,tn),[[Ut,D(v)]]),_("div",sn,[w.value?_e("",!0):(Q(),Z("button",{key:0,class:tt(["toggle-layout-button",{"detailed-list":D(y)}]),type:"button",title:D(m)("modal.displayDetails"),onClick:g[3]||(g[3]=T=>A.value>-1&&(y.value=!D(y)))},an,10,nn)),_("button",{class:"clear-button",type:"reset",disabled:U.value,title:D(m)("modal.resetButtonTitle"),onClick:E},ln,8,on)])],32),_("ul",{ref_key:"resultsEl",ref:n,id:(O=x.value)!=null&&O.length?"localsearch-list":void 0,role:(P=x.value)!=null&&P.length?"listbox":void 0,"aria-labelledby":(j=x.value)!=null&&j.length?"localsearch-label":void 0,class:"results",onMousemove:g[7]||(g[7]=T=>K.value=!1)},[(Q(!0),Z(nt,null,st(x.value,(T,L)=>(Q(),Z("li",{key:T.id,role:"option","aria-selected":A.value===L?"true":"false"},[_("a",{href:T.id,class:tt(["result",{selected:A.value===L}]),"aria-label":[...T.titles,T.title].join(" > "),onMouseenter:G=>!K.value&&(A.value=L),onFocusin:G=>A.value=L,onClick:g[6]||(g[6]=G=>p.$emit("close"))},[_("div",null,[_("div",fn,[pn,(Q(!0),Z(nt,null,st(T.titles,(G,me)=>(Q(),Z("span",{key:me,class:"title"},[_("span",{class:"text",innerHTML:G},null,8,vn),mn]))),128)),_("span",gn,[_("span",{class:"text",innerHTML:T.title},null,8,bn)])]),D(y)?(Q(),Z("div",yn,[T.text?(Q(),Z("div",wn,[_("div",{class:"vp-doc",innerHTML:T.text},null,8,_n)])):_e("",!0),xn,Sn])):_e("",!0)])],42,hn)],8,dn))),128)),D(v)&&!x.value.length&&C.value?(Q(),Z("li",En,[he(fe(D(m)("modal.noResultsText"))+' "',1),_("strong",null,fe(D(v)),1),he('" ')])):_e("",!0)],40,un),_("div",In,[_("span",null,[_("kbd",{"aria-label":D(m)("modal.footer.navigateUpKeyAriaLabel")},kn,8,Tn),_("kbd",{"aria-label":D(m)("modal.footer.navigateDownKeyAriaLabel")},Rn,8,Fn),he(" "+fe(D(m)("modal.footer.navigateText")),1)]),_("span",null,[_("kbd",{"aria-label":D(m)("modal.footer.selectKeyAriaLabel")},An,8,Cn),he(" "+fe(D(m)("modal.footer.selectText")),1)]),_("span",null,[_("kbd",{"aria-label":D(m)("modal.footer.closeKeyAriaLabel")},"esc",8,Ln),he(" "+fe(D(m)("modal.footer.closeText")),1)])])])],8,Us)])}}}),Bn=ts(Dn,[["__scopeId","data-v-b73bb6e4"]]);export{Bn as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as m,o as a,c,r as u,n as N,a as G,t as T,b as y,w as f,e as k,T as he,_ as P,u as Ze,i as Qe,f as xe,g as me,h as L,j as d,k as i,p as C,l as H,m as K,q as ue,s as I,v as R,x as te,y as W,z as _e,A as ke,B as et,C as tt,D as J,F as M,E,G as X,H as oe,I as $,J as U,K as Ne,L as ne,M as q,N as se,O as ot,P as Me,Q as de,R as nt,S as Ae,U as ae,V as st,W as at,X as be,Y as Be,Z as Ee,$ as rt,a0 as it,a1 as lt,a2 as ct,a3 as ut,a4 as Z,a5 as dt,a6 as pt,a7 as vt}from"./framework.DAuRlsJR.js";const ft=m({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(o){return(e,t)=>(a(),c("span",{class:N(["VPBadge",e.type])},[u(e.$slots,"default",{},()=>[G(T(e.text),1)])],2))}}),ht={key:0,class:"VPBackdrop"},mt=m({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(o){return(e,t)=>(a(),y(he,{name:"fade"},{default:f(()=>[e.show?(a(),c("div",ht)):k("",!0)]),_:1}))}}),_t=P(mt,[["__scopeId","data-v-7a2b0422"]]),V=Ze;function kt(o,e){let t,n=!1;return()=>{t&&clearTimeout(t),n?t=setTimeout(o,e):(o(),(n=!0)&&setTimeout(()=>n=!1,e))}}function pe(o){return/^\//.test(o)?o:`/${o}`}function ge(o){const{pathname:e,search:t,hash:n,protocol:s}=new URL(o,"http://a.com");if(Qe(o)||o.startsWith("#")||!s.startsWith("http")||!xe(e))return o;const{site:r}=V(),l=e.endsWith("/")||e.endsWith(".html")?o:o.replace(/(?:(^\.+)\/)?.*$/,`$1${e.replace(/(\.md)?$/,r.value.cleanUrls?"":".html")}${t}${n}`);return me(l)}function Q({correspondingLink:o=!1}={}){const{site:e,localeIndex:t,page:n,theme:s,hash:r}=V(),l=L(()=>{var p,h;return{label:(p=e.value.locales[t.value])==null?void 0:p.label,link:((h=e.value.locales[t.value])==null?void 0:h.link)||(t.value==="root"?"/":`/${t.value}/`)}});return{localeLinks:L(()=>Object.entries(e.value.locales).flatMap(([p,h])=>l.value.label===h.label?[]:{text:h.label,link:bt(h.link||(p==="root"?"/":`/${p}/`),s.value.i18nRouting!==!1&&o,n.value.relativePath.slice(l.value.link.length-1),!e.value.cleanUrls)+r.value})),currentLang:l}}function bt(o,e,t,n){return e?o.replace(/\/$/,"")+pe(t.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,n?".html":"")):o}const gt=o=>(C("data-v-24d3c900"),o=o(),H(),o),$t={class:"NotFound"},yt={class:"code"},Pt={class:"title"},Lt=gt(()=>d("div",{class:"divider"},null,-1)),St={class:"quote"},Vt={class:"action"},wt=["href","aria-label"],Tt=m({__name:"NotFound",setup(o){const{theme:e}=V(),{currentLang:t}=Q();return(n,s)=>{var r,l,v,p,h;return a(),c("div",$t,[d("p",yt,T(((r=i(e).notFound)==null?void 0:r.code)??"404"),1),d("h1",Pt,T(((l=i(e).notFound)==null?void 0:l.title)??"PAGE NOT FOUND"),1),Lt,d("blockquote",St,T(((v=i(e).notFound)==null?void 0:v.quote)??"But if you don't change your direction, and if you keep looking, you may end up where you are heading."),1),d("div",Vt,[d("a",{class:"link",href:i(me)(i(t).link),"aria-label":((p=i(e).notFound)==null?void 0:p.linkLabel)??"go to home"},T(((h=i(e).notFound)==null?void 0:h.linkText)??"Take me home"),9,wt)])])}}}),It=P(Tt,[["__scopeId","data-v-24d3c900"]]);function Ce(o,e){if(Array.isArray(o))return x(o);if(o==null)return[];e=pe(e);const t=Object.keys(o).sort((s,r)=>r.split("/").length-s.split("/").length).find(s=>e.startsWith(pe(s))),n=t?o[t]:[];return Array.isArray(n)?x(n):x(n.items,n.base)}function Nt(o){const e=[];let t=0;for(const n in o){const s=o[n];if(s.items){t=e.push(s);continue}e[t]||e.push({items:[]}),e[t].items.push(s)}return e}function Mt(o){const e=[];function t(n){for(const s of n)s.text&&s.link&&e.push({text:s.text,link:s.link,docFooterText:s.docFooterText}),s.items&&t(s.items)}return t(o),e}function ve(o,e){return Array.isArray(e)?e.some(t=>ve(o,t)):K(o,e.link)?!0:e.items?ve(o,e.items):!1}function x(o,e){return[...o].map(t=>{const n={...t},s=n.base||e;return s&&n.link&&(n.link=s+n.link),n.items&&(n.items=x(n.items,s)),n})}function z(){const{frontmatter:o,page:e,theme:t}=V(),n=ue("(min-width: 960px)"),s=I(!1),r=L(()=>{const B=t.value.sidebar,w=e.value.relativePath;return B?Ce(B,w):[]}),l=I(r.value);R(r,(B,w)=>{JSON.stringify(B)!==JSON.stringify(w)&&(l.value=r.value)});const v=L(()=>o.value.sidebar!==!1&&l.value.length>0&&o.value.layout!=="home"),p=L(()=>h?o.value.aside==null?t.value.aside==="left":o.value.aside==="left":!1),h=L(()=>o.value.layout==="home"?!1:o.value.aside!=null?!!o.value.aside:t.value.aside!==!1),g=L(()=>v.value&&n.value),b=L(()=>v.value?Nt(l.value):[]);function _(){s.value=!0}function S(){s.value=!1}function A(){s.value?S():_()}return{isOpen:s,sidebar:l,sidebarGroups:b,hasSidebar:v,hasAside:h,leftAside:p,isSidebarEnabled:g,open:_,close:S,toggle:A}}function At(o,e){let t;te(()=>{t=o.value?document.activeElement:void 0}),W(()=>{window.addEventListener("keyup",n)}),_e(()=>{window.removeEventListener("keyup",n)});function n(s){s.key==="Escape"&&o.value&&(e(),t==null||t.focus())}}function Bt(o){const{page:e,hash:t}=V(),n=I(!1),s=L(()=>o.value.collapsed!=null),r=L(()=>!!o.value.link),l=I(!1),v=()=>{l.value=K(e.value.relativePath,o.value.link)};R([e,o,t],v),W(v);const p=L(()=>l.value?!0:o.value.items?ve(e.value.relativePath,o.value.items):!1),h=L(()=>!!(o.value.items&&o.value.items.length));te(()=>{n.value=!!(s.value&&o.value.collapsed)}),ke(()=>{(l.value||p.value)&&(n.value=!1)});function g(){s.value&&(n.value=!n.value)}return{collapsed:n,collapsible:s,isLink:r,isActiveLink:l,hasActiveLink:p,hasChildren:h,toggle:g}}function Et(){const{hasSidebar:o}=z(),e=ue("(min-width: 960px)"),t=ue("(min-width: 1280px)");return{isAsideEnabled:L(()=>!t.value&&!e.value?!1:o.value?t.value:e.value)}}const fe=[];function He(o){return typeof o.outline=="object"&&!Array.isArray(o.outline)&&o.outline.label||o.outlineTitle||"On this page"}function $e(o){const e=[...document.querySelectorAll(".VPDoc :where(h1,h2,h3,h4,h5,h6)")].filter(t=>t.id&&t.hasChildNodes()).map(t=>{const n=Number(t.tagName[1]);return{element:t,title:Ct(t),link:"#"+t.id,level:n}});return Ht(e,o)}function Ct(o){let e="";for(const t of o.childNodes)if(t.nodeType===1){if(t.classList.contains("VPBadge")||t.classList.contains("header-anchor")||t.classList.contains("ignore-header"))continue;e+=t.textContent}else t.nodeType===3&&(e+=t.textContent);return e.trim()}function Ht(o,e){if(e===!1)return[];const t=(typeof e=="object"&&!Array.isArray(e)?e.level:e)||2,[n,s]=typeof t=="number"?[t,t]:t==="deep"?[2,6]:t;o=o.filter(l=>l.level>=n&&l.level<=s),fe.length=0;for(const{element:l,link:v}of o)fe.push({element:l,link:v});const r=[];e:for(let l=0;l<o.length;l++){const v=o[l];if(l===0)r.push(v);else{for(let p=l-1;p>=0;p--){const h=o[p];if(h.level<v.level){(h.children||(h.children=[])).push(v);continue e}}r.push(v)}}return r}function Ft(o,e){const{isAsideEnabled:t}=Et(),n=kt(r,100);let s=null;W(()=>{requestAnimationFrame(r),window.addEventListener("scroll",n)}),et(()=>{l(location.hash)}),_e(()=>{window.removeEventListener("scroll",n)});function r(){if(!t.value)return;const v=window.scrollY,p=window.innerHeight,h=document.body.offsetHeight,g=Math.abs(v+p-h)<1,b=fe.map(({element:S,link:A})=>({link:A,top:Ot(S)})).filter(({top:S})=>!Number.isNaN(S)).sort((S,A)=>S.top-A.top);if(!b.length){l(null);return}if(v<1){l(null);return}if(g){l(b[b.length-1].link);return}let _=null;for(const{link:S,top:A}of b){if(A>v+tt()+4)break;_=S}l(_)}function l(v){s&&s.classList.remove("active"),v==null?s=null:s=o.value.querySelector(`a[href="${decodeURIComponent(v)}"]`);const p=s;p?(p.classList.add("active"),e.value.style.top=p.offsetTop+39+"px",e.value.style.opacity="1"):(e.value.style.top="33px",e.value.style.opacity="0")}}function Ot(o){let e=0;for(;o!==document.body;){if(o===null)return NaN;e+=o.offsetTop,o=o.offsetParent}return e}const Dt=["href","title"],Ut=m({__name:"VPDocOutlineItem",props:{headers:{},root:{type:Boolean}},setup(o){function e({target:t}){const n=t.href.split("#")[1],s=document.getElementById(decodeURIComponent(n));s==null||s.focus({preventScroll:!0})}return(t,n)=>{const s=J("VPDocOutlineItem",!0);return a(),c("ul",{class:N(["VPDocOutlineItem",t.root?"root":"nested"])},[(a(!0),c(M,null,E(t.headers,({children:r,link:l,title:v})=>(a(),c("li",null,[d("a",{class:"outline-link",href:l,onClick:e,title:v},T(v),9,Dt),r!=null&&r.length?(a(),y(s,{key:0,headers:r},null,8,["headers"])):k("",!0)]))),256))],2)}}}),Fe=P(Ut,[["__scopeId","data-v-f79973e7"]]),jt={class:"content"},Gt={"aria-level":"2",class:"outline-title",id:"doc-outline-aria-label",role:"heading"},Rt=m({__name:"VPDocAsideOutline",setup(o){const{frontmatter:e,theme:t}=V(),n=X([]);oe(()=>{n.value=$e(e.value.outline??t.value.outline)});const s=I(),r=I();return Ft(s,r),(l,v)=>(a(),c("nav",{"aria-labelledby":"doc-outline-aria-label",class:N(["VPDocAsideOutline",{"has-outline":n.value.length>0}]),ref_key:"container",ref:s},[d("div",jt,[d("div",{class:"outline-marker",ref_key:"marker",ref:r},null,512),d("div",Gt,T(i(He)(i(t))),1),$(Fe,{headers:n.value,root:!0},null,8,["headers"])])],2))}}),zt=P(Rt,[["__scopeId","data-v-f221d76e"]]),qt={class:"VPDocAsideCarbonAds"},Wt=m({__name:"VPDocAsideCarbonAds",props:{carbonAds:{}},setup(o){const e=()=>null;return(t,n)=>(a(),c("div",qt,[$(i(e),{"carbon-ads":t.carbonAds},null,8,["carbon-ads"])]))}}),Kt=o=>(C("data-v-79c6c827"),o=o(),H(),o),Jt={class:"VPDocAside"},Xt=Kt(()=>d("div",{class:"spacer"},null,-1)),Yt=m({__name:"VPDocAside",setup(o){const{theme:e}=V();return(t,n)=>(a(),c("div",Jt,[u(t.$slots,"aside-top",{},void 0,!0),u(t.$slots,"aside-outline-before",{},void 0,!0),$(zt),u(t.$slots,"aside-outline-after",{},void 0,!0),Xt,u(t.$slots,"aside-ads-before",{},void 0,!0),i(e).carbonAds?(a(),y(Wt,{key:0,"carbon-ads":i(e).carbonAds},null,8,["carbon-ads"])):k("",!0),u(t.$slots,"aside-ads-after",{},void 0,!0),u(t.$slots,"aside-bottom",{},void 0,!0)]))}}),Zt=P(Yt,[["__scopeId","data-v-79c6c827"]]);function Qt(){const{theme:o,page:e}=V();return L(()=>{const{text:t="Edit this page",pattern:n=""}=o.value.editLink||{};let s;return typeof n=="function"?s=n(e.value):s=n.replace(/:path/g,e.value.filePath),{url:s,text:t}})}function xt(){const{page:o,theme:e,frontmatter:t}=V();return L(()=>{var h,g,b,_,S,A,B,w;const n=Ce(e.value.sidebar,o.value.relativePath),s=Mt(n),r=eo(s,D=>D.link.replace(/[?#].*$/,"")),l=r.findIndex(D=>K(o.value.relativePath,D.link)),v=((h=e.value.docFooter)==null?void 0:h.prev)===!1&&!t.value.prev||t.value.prev===!1,p=((g=e.value.docFooter)==null?void 0:g.next)===!1&&!t.value.next||t.value.next===!1;return{prev:v?void 0:{text:(typeof t.value.prev=="string"?t.value.prev:typeof t.value.prev=="object"?t.value.prev.text:void 0)??((b=r[l-1])==null?void 0:b.docFooterText)??((_=r[l-1])==null?void 0:_.text),link:(typeof t.value.prev=="object"?t.value.prev.link:void 0)??((S=r[l-1])==null?void 0:S.link)},next:p?void 0:{text:(typeof t.value.next=="string"?t.value.next:typeof t.value.next=="object"?t.value.next.text:void 0)??((A=r[l+1])==null?void 0:A.docFooterText)??((B=r[l+1])==null?void 0:B.text),link:(typeof t.value.next=="object"?t.value.next.link:void 0)??((w=r[l+1])==null?void 0:w.link)}}})}function eo(o,e){const t=new Set;return o.filter(n=>{const s=e(n);return t.has(s)?!1:t.add(s)})}const j=m({__name:"VPLink",props:{tag:{},href:{},noIcon:{type:Boolean},target:{},rel:{}},setup(o){const e=o,t=L(()=>e.tag??(e.href?"a":"span")),n=L(()=>e.href&&Ne.test(e.href)||e.target==="_blank");return(s,r)=>(a(),y(U(t.value),{class:N(["VPLink",{link:s.href,"vp-external-link-icon":n.value,"no-icon":s.noIcon}]),href:s.href?i(ge)(s.href):void 0,target:s.target??(n.value?"_blank":void 0),rel:s.rel??(n.value?"noreferrer":void 0)},{default:f(()=>[u(s.$slots,"default")]),_:3},8,["class","href","target","rel"]))}}),to={class:"VPLastUpdated"},oo=["datetime"],no=m({__name:"VPDocFooterLastUpdated",setup(o){const{theme:e,page:t,lang:n}=V(),s=L(()=>new Date(t.value.lastUpdated)),r=L(()=>s.value.toISOString()),l=I("");return W(()=>{te(()=>{var v,p,h;l.value=new Intl.DateTimeFormat((p=(v=e.value.lastUpdated)==null?void 0:v.formatOptions)!=null&&p.forceLocale?n.value:void 0,((h=e.value.lastUpdated)==null?void 0:h.formatOptions)??{dateStyle:"short",timeStyle:"short"}).format(s.value)})}),(v,p)=>{var h;return a(),c("p",to,[G(T(((h=i(e).lastUpdated)==null?void 0:h.text)||i(e).lastUpdatedText||"Last updated")+": ",1),d("time",{datetime:r.value},T(l.value),9,oo)])}}}),so=P(no,[["__scopeId","data-v-ae16f668"]]),Oe=o=>(C("data-v-e502f8cb"),o=o(),H(),o),ao={key:0,class:"VPDocFooter"},ro={key:0,class:"edit-info"},io={key:0,class:"edit-link"},lo=Oe(()=>d("span",{class:"vpi-square-pen edit-link-icon"},null,-1)),co={key:1,class:"last-updated"},uo={key:1,class:"prev-next","aria-labelledby":"doc-footer-aria-label"},po=Oe(()=>d("span",{class:"visually-hidden",id:"doc-footer-aria-label"},"Pager",-1)),vo={class:"pager"},fo=["innerHTML"],ho=["innerHTML"],mo={class:"pager"},_o=["innerHTML"],ko=["innerHTML"],bo=m({__name:"VPDocFooter",setup(o){const{theme:e,page:t,frontmatter:n}=V(),s=Qt(),r=xt(),l=L(()=>e.value.editLink&&n.value.editLink!==!1),v=L(()=>t.value.lastUpdated),p=L(()=>l.value||v.value||r.value.prev||r.value.next);return(h,g)=>{var b,_,S,A;return p.value?(a(),c("footer",ao,[u(h.$slots,"doc-footer-before",{},void 0,!0),l.value||v.value?(a(),c("div",ro,[l.value?(a(),c("div",io,[$(j,{class:"edit-link-button",href:i(s).url,"no-icon":!0},{default:f(()=>[lo,G(" "+T(i(s).text),1)]),_:1},8,["href"])])):k("",!0),v.value?(a(),c("div",co,[$(so)])):k("",!0)])):k("",!0),(b=i(r).prev)!=null&&b.link||(_=i(r).next)!=null&&_.link?(a(),c("nav",uo,[po,d("div",vo,[(S=i(r).prev)!=null&&S.link?(a(),y(j,{key:0,class:"pager-link prev",href:i(r).prev.link},{default:f(()=>{var B;return[d("span",{class:"desc",innerHTML:((B=i(e).docFooter)==null?void 0:B.prev)||"Previous page"},null,8,fo),d("span",{class:"title",innerHTML:i(r).prev.text},null,8,ho)]}),_:1},8,["href"])):k("",!0)]),d("div",mo,[(A=i(r).next)!=null&&A.link?(a(),y(j,{key:0,class:"pager-link next",href:i(r).next.link},{default:f(()=>{var B;return[d("span",{class:"desc",innerHTML:((B=i(e).docFooter)==null?void 0:B.next)||"Next page"},null,8,_o),d("span",{class:"title",innerHTML:i(r).next.text},null,8,ko)]}),_:1},8,["href"])):k("",!0)])])):k("",!0)])):k("",!0)}}}),go=P(bo,[["__scopeId","data-v-e502f8cb"]]),$o=o=>(C("data-v-16b3672a"),o=o(),H(),o),yo={class:"container"},Po=$o(()=>d("div",{class:"aside-curtain"},null,-1)),Lo={class:"aside-container"},So={class:"aside-content"},Vo={class:"content"},wo={class:"content-container"},To={class:"main"},Io=m({__name:"VPDoc",setup(o){const{theme:e}=V(),t=ne(),{hasSidebar:n,hasAside:s,leftAside:r}=z(),l=L(()=>t.path.replace(/[./]+/g,"_").replace(/_html$/,""));return(v,p)=>{const h=J("Content");return a(),c("div",{class:N(["VPDoc",{"has-sidebar":i(n),"has-aside":i(s)}])},[u(v.$slots,"doc-top",{},void 0,!0),d("div",yo,[i(s)?(a(),c("div",{key:0,class:N(["aside",{"left-aside":i(r)}])},[Po,d("div",Lo,[d("div",So,[$(Zt,null,{"aside-top":f(()=>[u(v.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":f(()=>[u(v.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":f(()=>[u(v.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":f(()=>[u(v.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":f(()=>[u(v.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":f(()=>[u(v.$slots,"aside-ads-after",{},void 0,!0)]),_:3})])])],2)):k("",!0),d("div",Vo,[d("div",wo,[u(v.$slots,"doc-before",{},void 0,!0),d("main",To,[$(h,{class:N(["vp-doc",[l.value,i(e).externalLinkIcon&&"external-link-icon-enabled"]])},null,8,["class"])]),$(go,null,{"doc-footer-before":f(()=>[u(v.$slots,"doc-footer-before",{},void 0,!0)]),_:3}),u(v.$slots,"doc-after",{},void 0,!0)])])]),u(v.$slots,"doc-bottom",{},void 0,!0)],2)}}}),No=P(Io,[["__scopeId","data-v-16b3672a"]]),Mo=m({__name:"VPButton",props:{tag:{},size:{default:"medium"},theme:{default:"brand"},text:{},href:{},target:{},rel:{}},setup(o){const e=o,t=L(()=>e.href&&Ne.test(e.href)),n=L(()=>e.tag||e.href?"a":"button");return(s,r)=>(a(),y(U(n.value),{class:N(["VPButton",[s.size,s.theme]]),href:s.href?i(ge)(s.href):void 0,target:e.target??(t.value?"_blank":void 0),rel:e.rel??(t.value?"noreferrer":void 0)},{default:f(()=>[G(T(s.text),1)]),_:1},8,["class","href","target","rel"]))}}),Ao=P(Mo,[["__scopeId","data-v-90726587"]]),Bo=["src","alt"],Eo=m({inheritAttrs:!1,__name:"VPImage",props:{image:{},alt:{}},setup(o){return(e,t)=>{const n=J("VPImage",!0);return e.image?(a(),c(M,{key:0},[typeof e.image=="string"||"src"in e.image?(a(),c("img",q({key:0,class:"VPImage"},typeof e.image=="string"?e.$attrs:{...e.image,...e.$attrs},{src:i(me)(typeof e.image=="string"?e.image:e.image.src),alt:e.alt??(typeof e.image=="string"?"":e.image.alt||"")}),null,16,Bo)):(a(),c(M,{key:1},[$(n,q({class:"dark",image:e.image.dark,alt:e.image.alt},e.$attrs),null,16,["image","alt"]),$(n,q({class:"light",image:e.image.light,alt:e.image.alt},e.$attrs),null,16,["image","alt"])],64))],64)):k("",!0)}}}),ee=P(Eo,[["__scopeId","data-v-8cae6bf8"]]),Co=o=>(C("data-v-0c1ee86c"),o=o(),H(),o),Ho={class:"container"},Fo={class:"main"},Oo={key:0,class:"name"},Do=["innerHTML"],Uo=["innerHTML"],jo=["innerHTML"],Go={key:0,class:"actions"},Ro={key:0,class:"image"},zo={class:"image-container"},qo=Co(()=>d("div",{class:"image-bg"},null,-1)),Wo=m({__name:"VPHero",props:{name:{},text:{},tagline:{},image:{},actions:{}},setup(o){const e=se("hero-image-slot-exists");return(t,n)=>(a(),c("div",{class:N(["VPHero",{"has-image":t.image||i(e)}])},[d("div",Ho,[d("div",Fo,[u(t.$slots,"home-hero-info-before",{},void 0,!0),u(t.$slots,"home-hero-info",{},()=>[t.name?(a(),c("h1",Oo,[d("span",{innerHTML:t.name,class:"clip"},null,8,Do)])):k("",!0),t.text?(a(),c("p",{key:1,innerHTML:t.text,class:"text"},null,8,Uo)):k("",!0),t.tagline?(a(),c("p",{key:2,innerHTML:t.tagline,class:"tagline"},null,8,jo)):k("",!0)],!0),u(t.$slots,"home-hero-info-after",{},void 0,!0),t.actions?(a(),c("div",Go,[(a(!0),c(M,null,E(t.actions,s=>(a(),c("div",{key:s.link,class:"action"},[$(Ao,{tag:"a",size:"medium",theme:s.theme,text:s.text,href:s.link,target:s.target,rel:s.rel},null,8,["theme","text","href","target","rel"])]))),128))])):k("",!0),u(t.$slots,"home-hero-actions-after",{},void 0,!0)]),t.image||i(e)?(a(),c("div",Ro,[d("div",zo,[qo,u(t.$slots,"home-hero-image",{},()=>[t.image?(a(),y(ee,{key:0,class:"image-src",image:t.image},null,8,["image"])):k("",!0)],!0)])])):k("",!0)])],2))}}),Ko=P(Wo,[["__scopeId","data-v-0c1ee86c"]]),Jo=m({__name:"VPHomeHero",setup(o){const{frontmatter:e}=V();return(t,n)=>i(e).hero?(a(),y(Ko,{key:0,class:"VPHomeHero",name:i(e).hero.name,text:i(e).hero.text,tagline:i(e).hero.tagline,image:i(e).hero.image,actions:i(e).hero.actions},{"home-hero-info-before":f(()=>[u(t.$slots,"home-hero-info-before")]),"home-hero-info":f(()=>[u(t.$slots,"home-hero-info")]),"home-hero-info-after":f(()=>[u(t.$slots,"home-hero-info-after")]),"home-hero-actions-after":f(()=>[u(t.$slots,"home-hero-actions-after")]),"home-hero-image":f(()=>[u(t.$slots,"home-hero-image")]),_:3},8,["name","text","tagline","image","actions"])):k("",!0)}}),Xo=o=>(C("data-v-48a86318"),o=o(),H(),o),Yo={class:"box"},Zo={key:0,class:"icon"},Qo=["innerHTML"],xo=["innerHTML"],en=["innerHTML"],tn={key:4,class:"link-text"},on={class:"link-text-value"},nn=Xo(()=>d("span",{class:"vpi-arrow-right link-text-icon"},null,-1)),sn=m({__name:"VPFeature",props:{icon:{},title:{},details:{},link:{},linkText:{},rel:{},target:{}},setup(o){return(e,t)=>(a(),y(j,{class:"VPFeature",href:e.link,rel:e.rel,target:e.target,"no-icon":!0,tag:e.link?"a":"div"},{default:f(()=>[d("article",Yo,[typeof e.icon=="object"&&e.icon.wrap?(a(),c("div",Zo,[$(ee,{image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,["image","alt","height","width"])])):typeof e.icon=="object"?(a(),y(ee,{key:1,image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,["image","alt","height","width"])):e.icon?(a(),c("div",{key:2,class:"icon",innerHTML:e.icon},null,8,Qo)):k("",!0),d("h2",{class:"title",innerHTML:e.title},null,8,xo),e.details?(a(),c("p",{key:3,class:"details",innerHTML:e.details},null,8,en)):k("",!0),e.linkText?(a(),c("div",tn,[d("p",on,[G(T(e.linkText)+" ",1),nn])])):k("",!0)])]),_:1},8,["href","rel","target","tag"]))}}),an=P(sn,[["__scopeId","data-v-48a86318"]]),rn={key:0,class:"VPFeatures"},ln={class:"container"},cn={class:"items"},un=m({__name:"VPFeatures",props:{features:{}},setup(o){const e=o,t=L(()=>{const n=e.features.length;if(n){if(n===2)return"grid-2";if(n===3)return"grid-3";if(n%3===0)return"grid-6";if(n>3)return"grid-4"}else return});return(n,s)=>n.features?(a(),c("div",rn,[d("div",ln,[d("div",cn,[(a(!0),c(M,null,E(n.features,r=>(a(),c("div",{key:r.title,class:N(["item",[t.value]])},[$(an,{icon:r.icon,title:r.title,details:r.details,link:r.link,"link-text":r.linkText,rel:r.rel,target:r.target},null,8,["icon","title","details","link","link-text","rel","target"])],2))),128))])])])):k("",!0)}}),dn=P(un,[["__scopeId","data-v-f47f4d88"]]),pn=m({__name:"VPHomeFeatures",setup(o){const{frontmatter:e}=V();return(t,n)=>i(e).features?(a(),y(dn,{key:0,class:"VPHomeFeatures",features:i(e).features},null,8,["features"])):k("",!0)}}),vn=m({__name:"VPHomeContent",setup(o){const{width:e}=ot({initialWidth:0,includeScrollbar:!1});return(t,n)=>(a(),c("div",{class:"vp-doc container",style:Me(i(e)?{"--vp-offset":`calc(50% - ${i(e)/2}px)`}:{})},[u(t.$slots,"default",{},void 0,!0)],4))}}),fn=P(vn,[["__scopeId","data-v-263a52f8"]]),hn={class:"VPHome"},mn=m({__name:"VPHome",setup(o){const{frontmatter:e}=V();return(t,n)=>{const s=J("Content");return a(),c("div",hn,[u(t.$slots,"home-hero-before",{},void 0,!0),$(Jo,null,{"home-hero-info-before":f(()=>[u(t.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":f(()=>[u(t.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":f(()=>[u(t.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":f(()=>[u(t.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":f(()=>[u(t.$slots,"home-hero-image",{},void 0,!0)]),_:3}),u(t.$slots,"home-hero-after",{},void 0,!0),u(t.$slots,"home-features-before",{},void 0,!0),$(pn),u(t.$slots,"home-features-after",{},void 0,!0),i(e).markdownStyles!==!1?(a(),y(fn,{key:0},{default:f(()=>[$(s)]),_:1})):(a(),y(s,{key:1}))])}}}),_n=P(mn,[["__scopeId","data-v-bf2197c9"]]),kn={},bn={class:"VPPage"};function gn(o,e){const t=J("Content");return a(),c("div",bn,[u(o.$slots,"page-top"),$(t),u(o.$slots,"page-bottom")])}const $n=P(kn,[["render",gn]]),yn=m({__name:"VPContent",setup(o){const{page:e,frontmatter:t}=V(),{hasSidebar:n}=z();return(s,r)=>(a(),c("div",{class:N(["VPContent",{"has-sidebar":i(n),"is-home":i(t).layout==="home"}]),id:"VPContent"},[i(e).isNotFound?u(s.$slots,"not-found",{key:0},()=>[$(It)],!0):i(t).layout==="page"?(a(),y($n,{key:1},{"page-top":f(()=>[u(s.$slots,"page-top",{},void 0,!0)]),"page-bottom":f(()=>[u(s.$slots,"page-bottom",{},void 0,!0)]),_:3})):i(t).layout==="home"?(a(),y(_n,{key:2},{"home-hero-before":f(()=>[u(s.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":f(()=>[u(s.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":f(()=>[u(s.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":f(()=>[u(s.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":f(()=>[u(s.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":f(()=>[u(s.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":f(()=>[u(s.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":f(()=>[u(s.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":f(()=>[u(s.$slots,"home-features-after",{},void 0,!0)]),_:3})):i(t).layout&&i(t).layout!=="doc"?(a(),y(U(i(t).layout),{key:3})):(a(),y(No,{key:4},{"doc-top":f(()=>[u(s.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":f(()=>[u(s.$slots,"doc-bottom",{},void 0,!0)]),"doc-footer-before":f(()=>[u(s.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":f(()=>[u(s.$slots,"doc-before",{},void 0,!0)]),"doc-after":f(()=>[u(s.$slots,"doc-after",{},void 0,!0)]),"aside-top":f(()=>[u(s.$slots,"aside-top",{},void 0,!0)]),"aside-outline-before":f(()=>[u(s.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":f(()=>[u(s.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":f(()=>[u(s.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":f(()=>[u(s.$slots,"aside-ads-after",{},void 0,!0)]),"aside-bottom":f(()=>[u(s.$slots,"aside-bottom",{},void 0,!0)]),_:3}))],2))}}),Pn=P(yn,[["__scopeId","data-v-d3188071"]]),Ln={class:"container"},Sn=["innerHTML"],Vn=["innerHTML"],wn=m({__name:"VPFooter",setup(o){const{theme:e,frontmatter:t}=V(),{hasSidebar:n}=z();return(s,r)=>i(e).footer&&i(t).footer!==!1?(a(),c("footer",{key:0,class:N(["VPFooter",{"has-sidebar":i(n)}])},[d("div",Ln,[i(e).footer.message?(a(),c("p",{key:0,class:"message",innerHTML:i(e).footer.message},null,8,Sn)):k("",!0),i(e).footer.copyright?(a(),c("p",{key:1,class:"copyright",innerHTML:i(e).footer.copyright},null,8,Vn)):k("",!0)])],2)):k("",!0)}}),Tn=P(wn,[["__scopeId","data-v-71ff86a9"]]);function In(){const{theme:o,frontmatter:e}=V(),t=X([]),n=L(()=>t.value.length>0);return oe(()=>{t.value=$e(e.value.outline??o.value.outline)}),{headers:t,hasLocalNav:n}}const Nn=o=>(C("data-v-87bf98cb"),o=o(),H(),o),Mn={class:"menu-text"},An=Nn(()=>d("span",{class:"vpi-chevron-right icon"},null,-1)),Bn={class:"header"},En={class:"outline"},Cn=m({__name:"VPLocalNavOutlineDropdown",props:{headers:{},navHeight:{}},setup(o){const e=o,{theme:t}=V(),n=I(!1),s=I(0),r=I(),l=I();function v(b){var _;(_=r.value)!=null&&_.contains(b.target)||(n.value=!1)}R(n,b=>{if(b){document.addEventListener("click",v);return}document.removeEventListener("click",v)}),de("Escape",()=>{n.value=!1}),oe(()=>{n.value=!1});function p(){n.value=!n.value,s.value=window.innerHeight+Math.min(window.scrollY-e.navHeight,0)}function h(b){b.target.classList.contains("outline-link")&&(l.value&&(l.value.style.transition="none"),nt(()=>{n.value=!1}))}function g(){n.value=!1,window.scrollTo({top:0,left:0,behavior:"smooth"})}return(b,_)=>(a(),c("div",{class:"VPLocalNavOutlineDropdown",style:Me({"--vp-vh":s.value+"px"}),ref_key:"main",ref:r},[b.headers.length>0?(a(),c("button",{key:0,onClick:p,class:N({open:n.value})},[d("span",Mn,T(i(He)(i(t))),1),An],2)):(a(),c("button",{key:1,onClick:g},T(i(t).returnToTopLabel||"Return to top"),1)),$(he,{name:"flyout"},{default:f(()=>[n.value?(a(),c("div",{key:0,ref_key:"items",ref:l,class:"items",onClick:h},[d("div",Bn,[d("a",{class:"top-link",href:"#",onClick:g},T(i(t).returnToTopLabel||"Return to top"),1)]),d("div",En,[$(Fe,{headers:b.headers},null,8,["headers"])])],512)):k("",!0)]),_:1})],4))}}),Hn=P(Cn,[["__scopeId","data-v-87bf98cb"]]),Fn=o=>(C("data-v-67540fd2"),o=o(),H(),o),On={class:"container"},Dn=["aria-expanded"],Un=Fn(()=>d("span",{class:"vpi-align-left menu-icon"},null,-1)),jn={class:"menu-text"},Gn=m({__name:"VPLocalNav",props:{open:{type:Boolean}},emits:["open-menu"],setup(o){const{theme:e,frontmatter:t}=V(),{hasSidebar:n}=z(),{headers:s}=In(),{y:r}=Ae(),l=I(0);W(()=>{l.value=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--vp-nav-height"))}),oe(()=>{s.value=$e(t.value.outline??e.value.outline)});const v=L(()=>s.value.length===0),p=L(()=>v.value&&!n.value),h=L(()=>({VPLocalNav:!0,"has-sidebar":n.value,empty:v.value,fixed:p.value}));return(g,b)=>i(t).layout!=="home"&&(!p.value||i(r)>=l.value)?(a(),c("div",{key:0,class:N(h.value)},[d("div",On,[i(n)?(a(),c("button",{key:0,class:"menu","aria-expanded":g.open,"aria-controls":"VPSidebarNav",onClick:b[0]||(b[0]=_=>g.$emit("open-menu"))},[Un,d("span",jn,T(i(e).sidebarMenuLabel||"Menu"),1)],8,Dn)):k("",!0),$(Hn,{headers:i(s),navHeight:l.value},null,8,["headers","navHeight"])])],2)):k("",!0)}}),Rn=P(Gn,[["__scopeId","data-v-67540fd2"]]);function zn(){const o=I(!1);function e(){o.value=!0,window.addEventListener("resize",s)}function t(){o.value=!1,window.removeEventListener("resize",s)}function n(){o.value?t():e()}function s(){window.outerWidth>=768&&t()}const r=ne();return R(()=>r.path,t),{isScreenOpen:o,openScreen:e,closeScreen:t,toggleScreen:n}}const qn={},Wn={class:"VPSwitch",type:"button",role:"switch"},Kn={class:"check"},Jn={key:0,class:"icon"};function Xn(o,e){return a(),c("button",Wn,[d("span",Kn,[o.$slots.default?(a(),c("span",Jn,[u(o.$slots,"default",{},void 0,!0)])):k("",!0)])])}const Yn=P(qn,[["render",Xn],["__scopeId","data-v-1f47877a"]]),De=o=>(C("data-v-a3498195"),o=o(),H(),o),Zn=De(()=>d("span",{class:"vpi-sun sun"},null,-1)),Qn=De(()=>d("span",{class:"vpi-moon moon"},null,-1)),xn=m({__name:"VPSwitchAppearance",setup(o){const{isDark:e,theme:t}=V(),n=se("toggle-appearance",()=>{e.value=!e.value}),s=I("");return ke(()=>{s.value=e.value?t.value.lightModeSwitchTitle||"Switch to light theme":t.value.darkModeSwitchTitle||"Switch to dark theme"}),(r,l)=>(a(),y(Yn,{title:s.value,class:"VPSwitchAppearance","aria-checked":i(e),onClick:i(n)},{default:f(()=>[Zn,Qn]),_:1},8,["title","aria-checked","onClick"]))}}),ye=P(xn,[["__scopeId","data-v-a3498195"]]),es={key:0,class:"VPNavBarAppearance"},ts=m({__name:"VPNavBarAppearance",setup(o){const{site:e}=V();return(t,n)=>i(e).appearance&&i(e).appearance!=="force-dark"&&i(e).appearance!=="force-auto"?(a(),c("div",es,[$(ye)])):k("",!0)}}),os=P(ts,[["__scopeId","data-v-fe4284af"]]),Pe=I();let Ue=!1,ce=0;function ns(o){const e=I(!1);if(ae){!Ue&&ss(),ce++;const t=R(Pe,n=>{var s,r,l;n===o.el.value||(s=o.el.value)!=null&&s.contains(n)?(e.value=!0,(r=o.onFocus)==null||r.call(o)):(e.value=!1,(l=o.onBlur)==null||l.call(o))});_e(()=>{t(),ce--,ce||as()})}return st(e)}function ss(){document.addEventListener("focusin",je),Ue=!0,Pe.value=document.activeElement}function as(){document.removeEventListener("focusin",je)}function je(){Pe.value=document.activeElement}const rs={class:"VPMenuLink"},is=m({__name:"VPMenuLink",props:{item:{}},setup(o){const{page:e}=V();return(t,n)=>(a(),c("div",rs,[$(j,{class:N({active:i(K)(i(e).relativePath,t.item.activeMatch||t.item.link,!!t.item.activeMatch)}),href:t.item.link,target:t.item.target,rel:t.item.rel},{default:f(()=>[G(T(t.item.text),1)]),_:1},8,["class","href","target","rel"])]))}}),re=P(is,[["__scopeId","data-v-18f7e3ed"]]),ls={class:"VPMenuGroup"},cs={key:0,class:"title"},us=m({__name:"VPMenuGroup",props:{text:{},items:{}},setup(o){return(e,t)=>(a(),c("div",ls,[e.text?(a(),c("p",cs,T(e.text),1)):k("",!0),(a(!0),c(M,null,E(e.items,n=>(a(),c(M,null,["link"in n?(a(),y(re,{key:0,item:n},null,8,["item"])):k("",!0)],64))),256))]))}}),ds=P(us,[["__scopeId","data-v-f679b301"]]),ps={class:"VPMenu"},vs={key:0,class:"items"},fs=m({__name:"VPMenu",props:{items:{}},setup(o){return(e,t)=>(a(),c("div",ps,[e.items?(a(),c("div",vs,[(a(!0),c(M,null,E(e.items,n=>(a(),c(M,{key:JSON.stringify(n)},["link"in n?(a(),y(re,{key:0,item:n},null,8,["item"])):"component"in n?(a(),y(U(n.component),q({key:1,ref_for:!0},n.props),null,16)):(a(),y(ds,{key:2,text:n.text,items:n.items},null,8,["text","items"]))],64))),128))])):k("",!0),u(e.$slots,"default",{},void 0,!0)]))}}),hs=P(fs,[["__scopeId","data-v-91375545"]]),ms=o=>(C("data-v-a4533092"),o=o(),H(),o),_s=["aria-expanded","aria-label"],ks={key:0,class:"text"},bs=["innerHTML"],gs=ms(()=>d("span",{class:"vpi-chevron-down text-icon"},null,-1)),$s={key:1,class:"vpi-more-horizontal icon"},ys={class:"menu"},Ps=m({__name:"VPFlyout",props:{icon:{},button:{},label:{},items:{}},setup(o){const e=I(!1),t=I();ns({el:t,onBlur:n});function n(){e.value=!1}return(s,r)=>(a(),c("div",{class:"VPFlyout",ref_key:"el",ref:t,onMouseenter:r[1]||(r[1]=l=>e.value=!0),onMouseleave:r[2]||(r[2]=l=>e.value=!1)},[d("button",{type:"button",class:"button","aria-haspopup":"true","aria-expanded":e.value,"aria-label":s.label,onClick:r[0]||(r[0]=l=>e.value=!e.value)},[s.button||s.icon?(a(),c("span",ks,[s.icon?(a(),c("span",{key:0,class:N([s.icon,"option-icon"])},null,2)):k("",!0),s.button?(a(),c("span",{key:1,innerHTML:s.button},null,8,bs)):k("",!0),gs])):(a(),c("span",$s))],8,_s),d("div",ys,[$(hs,{items:s.items},{default:f(()=>[u(s.$slots,"default",{},void 0,!0)]),_:3},8,["items"])])],544))}}),Le=P(Ps,[["__scopeId","data-v-a4533092"]]),Ls=["href","aria-label","innerHTML"],Ss=m({__name:"VPSocialLink",props:{icon:{},link:{},ariaLabel:{}},setup(o){const e=o,t=L(()=>typeof e.icon=="object"?e.icon.svg:`<span class="vpi-social-${e.icon}" />`);return(n,s)=>(a(),c("a",{class:"VPSocialLink no-icon",href:n.link,"aria-label":n.ariaLabel??(typeof n.icon=="string"?n.icon:""),target:"_blank",rel:"noopener",innerHTML:t.value},null,8,Ls))}}),Vs=P(Ss,[["__scopeId","data-v-e0d70bf0"]]),ws={class:"VPSocialLinks"},Ts=m({__name:"VPSocialLinks",props:{links:{}},setup(o){return(e,t)=>(a(),c("div",ws,[(a(!0),c(M,null,E(e.links,({link:n,icon:s,ariaLabel:r})=>(a(),y(Vs,{key:n,icon:s,link:n,ariaLabel:r},null,8,["icon","link","ariaLabel"]))),128))]))}}),Se=P(Ts,[["__scopeId","data-v-3449af14"]]),Is={key:0,class:"group translations"},Ns={class:"trans-title"},Ms={key:1,class:"group"},As={class:"item appearance"},Bs={class:"label"},Es={class:"appearance-action"},Cs={key:2,class:"group"},Hs={class:"item social-links"},Fs=m({__name:"VPNavBarExtra",setup(o){const{site:e,theme:t}=V(),{localeLinks:n,currentLang:s}=Q({correspondingLink:!0}),r=L(()=>n.value.length&&s.value.label||e.value.appearance||t.value.socialLinks);return(l,v)=>r.value?(a(),y(Le,{key:0,class:"VPNavBarExtra",label:"extra navigation"},{default:f(()=>[i(n).length&&i(s).label?(a(),c("div",Is,[d("p",Ns,T(i(s).label),1),(a(!0),c(M,null,E(i(n),p=>(a(),y(re,{key:p.link,item:p},null,8,["item"]))),128))])):k("",!0),i(e).appearance&&i(e).appearance!=="force-dark"&&i(e).appearance!=="force-auto"?(a(),c("div",Ms,[d("div",As,[d("p",Bs,T(i(t).darkModeSwitchLabel||"Appearance"),1),d("div",Es,[$(ye)])])])):k("",!0),i(t).socialLinks?(a(),c("div",Cs,[d("div",Hs,[$(Se,{class:"social-links-list",links:i(t).socialLinks},null,8,["links"])])])):k("",!0)]),_:1})):k("",!0)}}),Os=P(Fs,[["__scopeId","data-v-69fbf2ae"]]),Ds=o=>(C("data-v-9f03ec8e"),o=o(),H(),o),Us=["aria-expanded"],js=Ds(()=>d("span",{class:"container"},[d("span",{class:"top"}),d("span",{class:"middle"}),d("span",{class:"bottom"})],-1)),Gs=[js],Rs=m({__name:"VPNavBarHamburger",props:{active:{type:Boolean}},emits:["click"],setup(o){return(e,t)=>(a(),c("button",{type:"button",class:N(["VPNavBarHamburger",{active:e.active}]),"aria-label":"mobile navigation","aria-expanded":e.active,"aria-controls":"VPNavScreen",onClick:t[0]||(t[0]=n=>e.$emit("click"))},Gs,10,Us))}}),zs=P(Rs,[["__scopeId","data-v-9f03ec8e"]]),qs=["innerHTML"],Ws=m({__name:"VPNavBarMenuLink",props:{item:{}},setup(o){const{page:e}=V();return(t,n)=>(a(),y(j,{class:N({VPNavBarMenuLink:!0,active:i(K)(i(e).relativePath,t.item.activeMatch||t.item.link,!!t.item.activeMatch)}),href:t.item.link,noIcon:t.item.noIcon,target:t.item.target,rel:t.item.rel,tabindex:"0"},{default:f(()=>[d("span",{innerHTML:t.item.text},null,8,qs)]),_:1},8,["class","href","noIcon","target","rel"]))}}),Ks=P(Ws,[["__scopeId","data-v-7207a46d"]]),Js=m({__name:"VPNavBarMenuGroup",props:{item:{}},setup(o){const e=o,{page:t}=V(),n=r=>"component"in r?!1:"link"in r?K(t.value.relativePath,r.link,!!e.item.activeMatch):r.items.some(n),s=L(()=>n(e.item));return(r,l)=>(a(),y(Le,{class:N({VPNavBarMenuGroup:!0,active:i(K)(i(t).relativePath,r.item.activeMatch,!!r.item.activeMatch)||s.value}),button:r.item.text,items:r.item.items},null,8,["class","button","items"]))}}),Xs=o=>(C("data-v-7ee39415"),o=o(),H(),o),Ys={key:0,"aria-labelledby":"main-nav-aria-label",class:"VPNavBarMenu"},Zs=Xs(()=>d("span",{id:"main-nav-aria-label",class:"visually-hidden"}," Main Navigation ",-1)),Qs=m({__name:"VPNavBarMenu",setup(o){const{theme:e}=V();return(t,n)=>i(e).nav?(a(),c("nav",Ys,[Zs,(a(!0),c(M,null,E(i(e).nav,s=>(a(),c(M,{key:JSON.stringify(s)},["link"in s?(a(),y(Ks,{key:0,item:s},null,8,["item"])):"component"in s?(a(),y(U(s.component),q({key:1,ref_for:!0},s.props),null,16)):(a(),y(Js,{key:2,item:s},null,8,["item"]))],64))),128))])):k("",!0)}}),xs=P(Qs,[["__scopeId","data-v-7ee39415"]]);function ea(o){const{localeIndex:e,theme:t}=V();function n(s){var A,B,w;const r=s.split("."),l=(A=t.value.search)==null?void 0:A.options,v=l&&typeof l=="object",p=v&&((w=(B=l.locales)==null?void 0:B[e.value])==null?void 0:w.translations)||null,h=v&&l.translations||null;let g=p,b=h,_=o;const S=r.pop();for(const D of r){let F=null;const O=_==null?void 0:_[D];O&&(F=_=O);const ie=b==null?void 0:b[D];ie&&(F=b=ie);const le=g==null?void 0:g[D];le&&(F=g=le),O||(_=F),ie||(b=F),le||(g=F)}return(g==null?void 0:g[S])??(b==null?void 0:b[S])??(_==null?void 0:_[S])??""}return n}const ta=["aria-label"],oa={class:"DocSearch-Button-Container"},na=d("span",{class:"vp-icon DocSearch-Search-Icon"},null,-1),sa={class:"DocSearch-Button-Placeholder"},aa=d("span",{class:"DocSearch-Button-Keys"},[d("kbd",{class:"DocSearch-Button-Key"}),d("kbd",{class:"DocSearch-Button-Key"},"K")],-1),we=m({__name:"VPNavBarSearchButton",setup(o){const t=ea({button:{buttonText:"Search",buttonAriaLabel:"Search"}});return(n,s)=>(a(),c("button",{type:"button",class:"DocSearch DocSearch-Button","aria-label":i(t)("button.buttonAriaLabel")},[d("span",oa,[na,d("span",sa,T(i(t)("button.buttonText")),1)]),aa],8,ta))}}),ra={class:"VPNavBarSearch"},ia={id:"local-search"},la={key:1,id:"docsearch"},ca=m({__name:"VPNavBarSearch",setup(o){const e=at(()=>be(()=>import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1721398242559/files/.vitepress/dist"+u}return u})("./VPLocalSearchBox.Bp6Ei_nm.js")),[])),t=()=>null,{theme:n}=V(),s=I(!1),r=I(!1);W(()=>{});function l(){s.value||(s.value=!0,setTimeout(v,16))}function v(){const b=new Event("keydown");b.key="k",b.metaKey=!0,window.dispatchEvent(b),setTimeout(()=>{document.querySelector(".DocSearch-Modal")||v()},16)}function p(b){const _=b.target,S=_.tagName;return _.isContentEditable||S==="INPUT"||S==="SELECT"||S==="TEXTAREA"}const h=I(!1);de("k",b=>{(b.ctrlKey||b.metaKey)&&(b.preventDefault(),h.value=!0)}),de("/",b=>{p(b)||(b.preventDefault(),h.value=!0)});const g="local";return(b,_)=>{var S;return a(),c("div",ra,[i(g)==="local"?(a(),c(M,{key:0},[h.value?(a(),y(i(e),{key:0,onClose:_[0]||(_[0]=A=>h.value=!1)})):k("",!0),d("div",ia,[$(we,{onClick:_[1]||(_[1]=A=>h.value=!0)})])],64)):i(g)==="algolia"?(a(),c(M,{key:1},[s.value?(a(),y(i(t),{key:0,algolia:((S=i(n).search)==null?void 0:S.options)??i(n).algolia,onVnodeBeforeMount:_[2]||(_[2]=A=>r.value=!0)},null,8,["algolia"])):k("",!0),r.value?k("",!0):(a(),c("div",la,[$(we,{onClick:l})]))],64)):k("",!0)])}}}),ua=m({__name:"VPNavBarSocialLinks",setup(o){const{theme:e}=V();return(t,n)=>i(e).socialLinks?(a(),y(Se,{key:0,class:"VPNavBarSocialLinks",links:i(e).socialLinks},null,8,["links"])):k("",!0)}}),da=P(ua,[["__scopeId","data-v-9131d9e0"]]),pa=["href","rel","target"],va={key:1},fa={key:2},ha=m({__name:"VPNavBarTitle",setup(o){const{site:e,theme:t}=V(),{hasSidebar:n}=z(),{currentLang:s}=Q(),r=L(()=>{var p;return typeof t.value.logoLink=="string"?t.value.logoLink:(p=t.value.logoLink)==null?void 0:p.link}),l=L(()=>{var p;return typeof t.value.logoLink=="string"||(p=t.value.logoLink)==null?void 0:p.rel}),v=L(()=>{var p;return typeof t.value.logoLink=="string"||(p=t.value.logoLink)==null?void 0:p.target});return(p,h)=>(a(),c("div",{class:N(["VPNavBarTitle",{"has-sidebar":i(n)}])},[d("a",{class:"title",href:r.value??i(ge)(i(s).link),rel:l.value,target:v.value},[u(p.$slots,"nav-bar-title-before",{},void 0,!0),i(t).logo?(a(),y(ee,{key:0,class:"logo",image:i(t).logo},null,8,["image"])):k("",!0),i(t).siteTitle?(a(),c("span",va,T(i(t).siteTitle),1)):i(t).siteTitle===void 0?(a(),c("span",fa,T(i(e).title),1)):k("",!0),u(p.$slots,"nav-bar-title-after",{},void 0,!0)],8,pa)],2))}}),ma=P(ha,[["__scopeId","data-v-48d13375"]]),_a={class:"items"},ka={class:"title"},ba=m({__name:"VPNavBarTranslations",setup(o){const{theme:e}=V(),{localeLinks:t,currentLang:n}=Q({correspondingLink:!0});return(s,r)=>i(t).length&&i(n).label?(a(),y(Le,{key:0,class:"VPNavBarTranslations",icon:"vpi-languages",label:i(e).langMenuLabel||"Change language"},{default:f(()=>[d("div",_a,[d("p",ka,T(i(n).label),1),(a(!0),c(M,null,E(i(t),l=>(a(),y(re,{key:l.link,item:l},null,8,["item"]))),128))])]),_:1},8,["label"])):k("",!0)}}),ga=P(ba,[["__scopeId","data-v-6f673c27"]]),$a=o=>(C("data-v-daf9281d"),o=o(),H(),o),ya={class:"wrapper"},Pa={class:"container"},La={class:"title"},Sa={class:"content"},Va={class:"content-body"},wa=$a(()=>d("div",{class:"divider"},[d("div",{class:"divider-line"})],-1)),Ta=m({__name:"VPNavBar",props:{isScreenOpen:{type:Boolean}},emits:["toggle-screen"],setup(o){const e=o,{y:t}=Ae(),{hasSidebar:n}=z(),{frontmatter:s}=V(),r=I({});return ke(()=>{r.value={"has-sidebar":n.value,home:s.value.layout==="home",top:t.value===0,"screen-open":e.isScreenOpen}}),(l,v)=>(a(),c("div",{class:N(["VPNavBar",r.value])},[d("div",ya,[d("div",Pa,[d("div",La,[$(ma,null,{"nav-bar-title-before":f(()=>[u(l.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":f(()=>[u(l.$slots,"nav-bar-title-after",{},void 0,!0)]),_:3})]),d("div",Sa,[d("div",Va,[u(l.$slots,"nav-bar-content-before",{},void 0,!0),$(ca,{class:"search"}),$(xs,{class:"menu"}),$(ga,{class:"translations"}),$(os,{class:"appearance"}),$(da,{class:"social-links"}),$(Os,{class:"extra"}),u(l.$slots,"nav-bar-content-after",{},void 0,!0),$(zs,{class:"hamburger",active:l.isScreenOpen,onClick:v[0]||(v[0]=p=>l.$emit("toggle-screen"))},null,8,["active"])])])])]),wa],2))}}),Ia=P(Ta,[["__scopeId","data-v-daf9281d"]]),Na={key:0,class:"VPNavScreenAppearance"},Ma={class:"text"},Aa=m({__name:"VPNavScreenAppearance",setup(o){const{site:e,theme:t}=V();return(n,s)=>i(e).appearance&&i(e).appearance!=="force-dark"&&i(e).appearance!=="force-auto"?(a(),c("div",Na,[d("p",Ma,T(i(t).darkModeSwitchLabel||"Appearance"),1),$(ye)])):k("",!0)}}),Ba=P(Aa,[["__scopeId","data-v-62fe2233"]]),Ea=m({__name:"VPNavScreenMenuLink",props:{item:{}},setup(o){const e=se("close-screen");return(t,n)=>(a(),y(j,{class:"VPNavScreenMenuLink",href:t.item.link,target:t.item.target,rel:t.item.rel,onClick:i(e),innerHTML:t.item.text},null,8,["href","target","rel","onClick","innerHTML"]))}}),Ca=P(Ea,[["__scopeId","data-v-6c9cb97f"]]),Ha=m({__name:"VPNavScreenMenuGroupLink",props:{item:{}},setup(o){const e=se("close-screen");return(t,n)=>(a(),y(j,{class:"VPNavScreenMenuGroupLink",href:t.item.link,target:t.item.target,rel:t.item.rel,onClick:i(e)},{default:f(()=>[G(T(t.item.text),1)]),_:1},8,["href","target","rel","onClick"]))}}),Ge=P(Ha,[["__scopeId","data-v-3cb35375"]]),Fa={class:"VPNavScreenMenuGroupSection"},Oa={key:0,class:"title"},Da=m({__name:"VPNavScreenMenuGroupSection",props:{text:{},items:{}},setup(o){return(e,t)=>(a(),c("div",Fa,[e.text?(a(),c("p",Oa,T(e.text),1)):k("",!0),(a(!0),c(M,null,E(e.items,n=>(a(),y(Ge,{key:n.text,item:n},null,8,["item"]))),128))]))}}),Ua=P(Da,[["__scopeId","data-v-0ad6beaa"]]),ja=o=>(C("data-v-14f5db95"),o=o(),H(),o),Ga=["aria-controls","aria-expanded"],Ra=["innerHTML"],za=ja(()=>d("span",{class:"vpi-plus button-icon"},null,-1)),qa=["id"],Wa={key:0,class:"item"},Ka={key:1,class:"item"},Ja={key:2,class:"group"},Xa=m({__name:"VPNavScreenMenuGroup",props:{text:{},items:{}},setup(o){const e=o,t=I(!1),n=L(()=>`NavScreenGroup-${e.text.replace(" ","-").toLowerCase()}`);function s(){t.value=!t.value}return(r,l)=>(a(),c("div",{class:N(["VPNavScreenMenuGroup",{open:t.value}])},[d("button",{class:"button","aria-controls":n.value,"aria-expanded":t.value,onClick:s},[d("span",{class:"button-text",innerHTML:r.text},null,8,Ra),za],8,Ga),d("div",{id:n.value,class:"items"},[(a(!0),c(M,null,E(r.items,v=>(a(),c(M,{key:JSON.stringify(v)},["link"in v?(a(),c("div",Wa,[$(Ge,{item:v},null,8,["item"])])):"component"in v?(a(),c("div",Ka,[(a(),y(U(v.component),q({ref_for:!0},v.props,{"screen-menu":""}),null,16))])):(a(),c("div",Ja,[$(Ua,{text:v.text,items:v.items},null,8,["text","items"])]))],64))),128))],8,qa)],2))}}),Ya=P(Xa,[["__scopeId","data-v-14f5db95"]]),Za={key:0,class:"VPNavScreenMenu"},Qa=m({__name:"VPNavScreenMenu",setup(o){const{theme:e}=V();return(t,n)=>i(e).nav?(a(),c("nav",Za,[(a(!0),c(M,null,E(i(e).nav,s=>(a(),c(M,{key:JSON.stringify(s)},["link"in s?(a(),y(Ca,{key:0,item:s},null,8,["item"])):"component"in s?(a(),y(U(s.component),q({key:1,ref_for:!0},s.props,{"screen-menu":""}),null,16)):(a(),y(Ya,{key:2,text:s.text||"",items:s.items},null,8,["text","items"]))],64))),128))])):k("",!0)}}),xa=m({__name:"VPNavScreenSocialLinks",setup(o){const{theme:e}=V();return(t,n)=>i(e).socialLinks?(a(),y(Se,{key:0,class:"VPNavScreenSocialLinks",links:i(e).socialLinks},null,8,["links"])):k("",!0)}}),Re=o=>(C("data-v-d7a94d90"),o=o(),H(),o),er=Re(()=>d("span",{class:"vpi-languages icon lang"},null,-1)),tr=Re(()=>d("span",{class:"vpi-chevron-down icon chevron"},null,-1)),or={class:"list"},nr=m({__name:"VPNavScreenTranslations",setup(o){const{localeLinks:e,currentLang:t}=Q({correspondingLink:!0}),n=I(!1);function s(){n.value=!n.value}return(r,l)=>i(e).length&&i(t).label?(a(),c("div",{key:0,class:N(["VPNavScreenTranslations",{open:n.value}])},[d("button",{class:"title",onClick:s},[er,G(" "+T(i(t).label)+" ",1),tr]),d("ul",or,[(a(!0),c(M,null,E(i(e),v=>(a(),c("li",{key:v.link,class:"item"},[$(j,{class:"link",href:v.link},{default:f(()=>[G(T(v.text),1)]),_:2},1032,["href"])]))),128))])],2)):k("",!0)}}),sr=P(nr,[["__scopeId","data-v-d7a94d90"]]),ar={class:"container"},rr=m({__name:"VPNavScreen",props:{open:{type:Boolean}},setup(o){const e=I(null),t=Be(ae?document.body:null);return(n,s)=>(a(),y(he,{name:"fade",onEnter:s[0]||(s[0]=r=>t.value=!0),onAfterLeave:s[1]||(s[1]=r=>t.value=!1)},{default:f(()=>[n.open?(a(),c("div",{key:0,class:"VPNavScreen",ref_key:"screen",ref:e,id:"VPNavScreen"},[d("div",ar,[u(n.$slots,"nav-screen-content-before",{},void 0,!0),$(Qa,{class:"menu"}),$(sr,{class:"translations"}),$(Ba,{class:"appearance"}),$(xa,{class:"social-links"}),u(n.$slots,"nav-screen-content-after",{},void 0,!0)])],512)):k("",!0)]),_:3}))}}),ir=P(rr,[["__scopeId","data-v-5b7b3bfb"]]),lr={key:0,class:"VPNav"},cr=m({__name:"VPNav",setup(o){const{isScreenOpen:e,closeScreen:t,toggleScreen:n}=zn(),{frontmatter:s}=V(),r=L(()=>s.value.navbar!==!1);return Ee("close-screen",t),te(()=>{ae&&document.documentElement.classList.toggle("hide-nav",!r.value)}),(l,v)=>r.value?(a(),c("header",lr,[$(Ia,{"is-screen-open":i(e),onToggleScreen:i(n)},{"nav-bar-title-before":f(()=>[u(l.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":f(()=>[u(l.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":f(()=>[u(l.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":f(()=>[u(l.$slots,"nav-bar-content-after",{},void 0,!0)]),_:3},8,["is-screen-open","onToggleScreen"]),$(ir,{open:i(e)},{"nav-screen-content-before":f(()=>[u(l.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":f(()=>[u(l.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3},8,["open"])])):k("",!0)}}),ur=P(cr,[["__scopeId","data-v-13513e83"]]),ze=o=>(C("data-v-e05ac508"),o=o(),H(),o),dr=["role","tabindex"],pr=ze(()=>d("div",{class:"indicator"},null,-1)),vr=ze(()=>d("span",{class:"vpi-chevron-right caret-icon"},null,-1)),fr=[vr],hr={key:1,class:"items"},mr=m({__name:"VPSidebarItem",props:{item:{},depth:{}},setup(o){const e=o,{collapsed:t,collapsible:n,isLink:s,isActiveLink:r,hasActiveLink:l,hasChildren:v,toggle:p}=Bt(L(()=>e.item)),h=L(()=>v.value?"section":"div"),g=L(()=>s.value?"a":"div"),b=L(()=>v.value?e.depth+2===7?"p":`h${e.depth+2}`:"p"),_=L(()=>s.value?void 0:"button"),S=L(()=>[[`level-${e.depth}`],{collapsible:n.value},{collapsed:t.value},{"is-link":s.value},{"is-active":r.value},{"has-active":l.value}]);function A(w){"key"in w&&w.key!=="Enter"||!e.item.link&&p()}function B(){e.item.link&&p()}return(w,D)=>{const F=J("VPSidebarItem",!0);return a(),y(U(h.value),{class:N(["VPSidebarItem",S.value])},{default:f(()=>[w.item.text?(a(),c("div",q({key:0,class:"item",role:_.value},rt(w.item.items?{click:A,keydown:A}:{},!0),{tabindex:w.item.items&&0}),[pr,w.item.link?(a(),y(j,{key:0,tag:g.value,class:"link",href:w.item.link,rel:w.item.rel,target:w.item.target},{default:f(()=>[(a(),y(U(b.value),{class:"text",innerHTML:w.item.text},null,8,["innerHTML"]))]),_:1},8,["tag","href","rel","target"])):(a(),y(U(b.value),{key:1,class:"text",innerHTML:w.item.text},null,8,["innerHTML"])),w.item.collapsed!=null&&w.item.items&&w.item.items.length?(a(),c("div",{key:2,class:"caret",role:"button","aria-label":"toggle section",onClick:B,onKeydown:it(B,["enter"]),tabindex:"0"},fr,32)):k("",!0)],16,dr)):k("",!0),w.item.items&&w.item.items.length?(a(),c("div",hr,[w.depth<5?(a(!0),c(M,{key:0},E(w.item.items,O=>(a(),y(F,{key:O.text,item:O,depth:w.depth+1},null,8,["item","depth"]))),128)):k("",!0)])):k("",!0)]),_:1},8,["class"])}}}),_r=P(mr,[["__scopeId","data-v-e05ac508"]]),kr=m({__name:"VPSidebarGroup",props:{items:{}},setup(o){const e=I(!0);let t=null;return W(()=>{t=setTimeout(()=>{t=null,e.value=!1},300)}),lt(()=>{t!=null&&(clearTimeout(t),t=null)}),(n,s)=>(a(!0),c(M,null,E(n.items,r=>(a(),c("div",{key:r.text,class:N(["group",{"no-transition":e.value}])},[$(_r,{item:r,depth:0},null,8,["item"])],2))),128))}}),br=P(kr,[["__scopeId","data-v-9c4ee204"]]),qe=o=>(C("data-v-801d4e4b"),o=o(),H(),o),gr=qe(()=>d("div",{class:"curtain"},null,-1)),$r={class:"nav",id:"VPSidebarNav","aria-labelledby":"sidebar-aria-label",tabindex:"-1"},yr=qe(()=>d("span",{class:"visually-hidden",id:"sidebar-aria-label"}," Sidebar Navigation ",-1)),Pr=m({__name:"VPSidebar",props:{open:{type:Boolean}},setup(o){const{sidebarGroups:e,hasSidebar:t}=z(),n=o,s=I(null),r=Be(ae?document.body:null);R([n,s],()=>{var v;n.open?(r.value=!0,(v=s.value)==null||v.focus()):r.value=!1},{immediate:!0,flush:"post"});const l=I(0);return R(e,()=>{l.value+=1},{deep:!0}),(v,p)=>i(t)?(a(),c("aside",{key:0,class:N(["VPSidebar",{open:v.open}]),ref_key:"navEl",ref:s,onClick:p[0]||(p[0]=ct(()=>{},["stop"]))},[gr,d("nav",$r,[yr,u(v.$slots,"sidebar-nav-before",{},void 0,!0),(a(),y(br,{items:i(e),key:l.value},null,8,["items"])),u(v.$slots,"sidebar-nav-after",{},void 0,!0)])],2)):k("",!0)}}),Lr=P(Pr,[["__scopeId","data-v-801d4e4b"]]),Sr=m({__name:"VPSkipLink",setup(o){const e=ne(),t=I();R(()=>e.path,()=>t.value.focus());function n({target:s}){const r=document.getElementById(decodeURIComponent(s.hash).slice(1));if(r){const l=()=>{r.removeAttribute("tabindex"),r.removeEventListener("blur",l)};r.setAttribute("tabindex","-1"),r.addEventListener("blur",l),r.focus(),window.scrollTo(0,0)}}return(s,r)=>(a(),c(M,null,[d("span",{ref_key:"backToTop",ref:t,tabindex:"-1"},null,512),d("a",{href:"#VPContent",class:"VPSkipLink visually-hidden",onClick:n}," Skip to content ")],64))}}),Vr=P(Sr,[["__scopeId","data-v-0685e330"]]),wr=m({__name:"Layout",setup(o){const{isOpen:e,open:t,close:n}=z(),s=ne();R(()=>s.path,n),At(e,n);const{frontmatter:r}=V(),l=ut(),v=L(()=>!!l["home-hero-image"]);return Ee("hero-image-slot-exists",v),(p,h)=>{const g=J("Content");return i(r).layout!==!1?(a(),c("div",{key:0,class:N(["Layout",i(r).pageClass])},[u(p.$slots,"layout-top",{},void 0,!0),$(Vr),$(_t,{class:"backdrop",show:i(e),onClick:i(n)},null,8,["show","onClick"]),$(ur,null,{"nav-bar-title-before":f(()=>[u(p.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":f(()=>[u(p.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":f(()=>[u(p.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":f(()=>[u(p.$slots,"nav-bar-content-after",{},void 0,!0)]),"nav-screen-content-before":f(()=>[u(p.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":f(()=>[u(p.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3}),$(Rn,{open:i(e),onOpenMenu:i(t)},null,8,["open","onOpenMenu"]),$(Lr,{open:i(e)},{"sidebar-nav-before":f(()=>[u(p.$slots,"sidebar-nav-before",{},void 0,!0)]),"sidebar-nav-after":f(()=>[u(p.$slots,"sidebar-nav-after",{},void 0,!0)]),_:3},8,["open"]),$(Pn,null,{"page-top":f(()=>[u(p.$slots,"page-top",{},void 0,!0)]),"page-bottom":f(()=>[u(p.$slots,"page-bottom",{},void 0,!0)]),"not-found":f(()=>[u(p.$slots,"not-found",{},void 0,!0)]),"home-hero-before":f(()=>[u(p.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":f(()=>[u(p.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":f(()=>[u(p.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":f(()=>[u(p.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":f(()=>[u(p.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":f(()=>[u(p.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":f(()=>[u(p.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":f(()=>[u(p.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":f(()=>[u(p.$slots,"home-features-after",{},void 0,!0)]),"doc-footer-before":f(()=>[u(p.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":f(()=>[u(p.$slots,"doc-before",{},void 0,!0)]),"doc-after":f(()=>[u(p.$slots,"doc-after",{},void 0,!0)]),"doc-top":f(()=>[u(p.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":f(()=>[u(p.$slots,"doc-bottom",{},void 0,!0)]),"aside-top":f(()=>[u(p.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":f(()=>[u(p.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":f(()=>[u(p.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":f(()=>[u(p.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":f(()=>[u(p.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":f(()=>[u(p.$slots,"aside-ads-after",{},void 0,!0)]),_:3}),$(Tn),u(p.$slots,"layout-bottom",{},void 0,!0)],2)):(a(),y(g,{key:1}))}}}),Tr=P(wr,[["__scopeId","data-v-03d7f5d7"]]),Ir={Layout:Tr,enhanceApp:({app:o})=>{o.component("Badge",ft)}},Nr=m((o,e)=>()=>{var t,n;return(n=(t=e.slots).default)==null?void 0:n.call(t)}),We=o=>(o.loader(),m((e,t)=>{const n=X();return n.value||o.loader().then(s=>{n.value=s}),()=>n.value?Z(n.value,e,t.slots):Z(o.placeholder,e,t.slots)},{props:o.props})),Ke=["alt","height","imgProps","previewedImgProps","lazy","intersectionObserverOptions","objectFit","previewSrc","fallbackSrc","width","src","previewDisabled","loadDescription","onError","onLoad","theme","themeOverrides","builtinThemeOverrides","onPreviewPrev","onPreviewNext","showToolbar","showToolbarTooltip","renderToolbar"],Mr=m((o,e)=>()=>Z("div",{class:"n-image"},Z("img",o,e.slots)),{props:Ke}),Ve=We({loader:()=>be(()=>import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1721398242559/files/.vitepress/dist"+u}return u})("./index.B6slXCSj.js")),[]).then(o=>o.NImage),placeholder:Mr,props:Ke}),Je=We({loader:()=>be(()=>import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1721398242559/files/.vitepress/dist"+u}return u})("./index.B6slXCSj.js")),[]).then(o=>o.NImageGroup),placeholder:Nr}),Ar={NImage:Ve,NImageGroup:Je},Te=()=>"https://registry.npmmirror.com/@gkd-kit/assets/0.0.7/files/assets/",Ie="https://a.gkd.li/",Xe=o=>o&&o.startsWith("https:")?o.startsWith(Ie)?Te()+o.slice(Ie.length):o:Te()+o,Br=m(o=>()=>Z(Ve,{src:Xe(o.src),width:o.width}),{props:["src","width"]}),Er=m({__name:"ImageTable",props:{images:{}},setup(o){return(e,t)=>(a(),c("table",null,[d("tbody",null,[$(i(Je),null,{default:f(()=>[(a(!0),c(M,null,E(e.images,(n,s)=>(a(),c("tr",{key:s},[(a(!0),c(M,null,E(n,r=>(a(),c("td",{key:r},[$(i(Ve),{src:i(Xe)(r)},null,8,["src"])]))),128))]))),128))]),_:1})])]))}}),Cr=m({__name:"IdentifierField",setup(o){const e=X(""),t=/^[_a-zA-Z][a-zA-Z0-9_]*$/,n=dt(e,300),s=L(()=>n.value!=="null"&&n.value!=="true"&&n.value!=="false"&&t.test(n.value));return(r,l)=>(a(),c("div",null,[pt(d("input",{placeholder:"请输入标识符测试是否合法",type:"text","onUpdate:modelValue":l[0]||(l[0]=v=>e.value=v),class:"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50"},null,512),[[vt,e.value]]),d("div",{"mt-4px":"",class:N({"color-red":!s.value,"opacity-0":!i(n)||!e.value})},T(s.value?"合法标识符✅":"非法标识符❌"),3)]))}});var Y=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ye={exports:{}};(function(o,e){(function(t,n){n()})(Y,function(){function t(h,g){return typeof g>"u"?g={autoBom:!1}:typeof g!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),g={autoBom:!g}),g.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(h.type)?new Blob(["\uFEFF",h],{type:h.type}):h}function n(h,g,b){var _=new XMLHttpRequest;_.open("GET",h),_.responseType="blob",_.onload=function(){p(_.response,g,b)},_.onerror=function(){console.error("could not download file")},_.send()}function s(h){var g=new XMLHttpRequest;g.open("HEAD",h,!1);try{g.send()}catch{}return 200<=g.status&&299>=g.status}function r(h){try{h.dispatchEvent(new MouseEvent("click"))}catch{var g=document.createEvent("MouseEvents");g.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),h.dispatchEvent(g)}}var l=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Y=="object"&&Y.global===Y?Y:void 0,v=l.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),p=l.saveAs||(typeof window!="object"||window!==l?function(){}:"download"in HTMLAnchorElement.prototype&&!v?function(h,g,b){var _=l.URL||l.webkitURL,S=document.createElement("a");g=g||h.name||"download",S.download=g,S.rel="noopener",typeof h=="string"?(S.href=h,S.origin===location.origin?r(S):s(S.href)?n(h,g,b):r(S,S.target="_blank")):(S.href=_.createObjectURL(h),setTimeout(function(){_.revokeObjectURL(S.href)},4e4),setTimeout(function(){r(S)},0))}:"msSaveOrOpenBlob"in navigator?function(h,g,b){if(g=g||h.name||"download",typeof h!="string")navigator.msSaveOrOpenBlob(t(h,b),g);else if(s(h))n(h,g,b);else{var _=document.createElement("a");_.href=h,_.target="_blank",setTimeout(function(){r(_)})}}:function(h,g,b,_){if(_=_||open("","_blank"),_&&(_.document.title=_.document.body.innerText="downloading..."),typeof h=="string")return n(h,g,b);var S=h.type==="application/octet-stream",A=/constructor/i.test(l.HTMLElement)||l.safari,B=/CriOS\/[\d]+/.test(navigator.userAgent);if((B||S&&A||v)&&typeof FileReader<"u"){var w=new FileReader;w.onloadend=function(){var O=w.result;O=B?O:O.replace(/^data:[^;]*;/,"data:attachment/file;"),_?_.location.href=O:location=O,_=null},w.readAsDataURL(h)}else{var D=l.URL||l.webkitURL,F=D.createObjectURL(h);_?_.location=F:location.href=F,_=null,setTimeout(function(){D.revokeObjectURL(F)},4e4)}});l.saveAs=p.saveAs=p,o.exports=p})})(Ye);var Hr=Ye.exports;const Fr={"inline-flex":"","items-center":"","gap-10px":""},Or={key:0,"animate-spin":"","size-16px":"",viewBox:"0 0 16 16",fill:"none"},Dr=d("circle",{cx:"8",cy:"8",r:"7",stroke:"currentColor","stroke-opacity":"0.25","stroke-width":"2","vector-effect":"non-scaling-stroke"},null,-1),Ur=d("path",{d:"M15 8a7.002 7.002 0 00-7-7",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","vector-effect":"non-scaling-stroke"},null,-1),jr=[Dr,Ur],Gr=m({__name:"ApkDownloadButton",setup(o){const e=X(""),t=L(()=>(e.value.split("/").at(-1)||"").replace(".wasm",".apk")),n=X(!1),s=async()=>{if(!e.value||n.value)return;n.value=!0;const r=await fetch(e.value).then(l=>l.arrayBuffer()).then(l=>new File([l],t.value,{type:"application/vnd.android.package-archive"})).finally(()=>{n.value=!1});Hr.saveAs(r,t.value)};return W(async()=>{e.value=localStorage.getItem("apkUrl")||"";const l=await fetch("https://registry.npmmirror.com/@gkd-kit/app/latest/files"),v=await l.json();e.value=new URL(v.downloadUrl,l.url).href,localStorage.setItem("apkUrl",e.value)}),(r,l)=>(a(),c("div",Fr,[d("a",{class:N({"cursor-progress":n.value,"opacity-50":n.value,"cursor-pointer":!n.value}),onClick:s},T(t.value),3),n.value?(a(),c("svg",Or,jr)):k("",!0)]))}}),Rr={...Ar,GImg:Br,ImageTable:Er,IdentifierField:Cr,ApkDownloadButton:Gr},qr={extends:Ir,enhanceApp({app:o}){Object.entries(Rr).forEach(([e,t])=>{o.component(e,t)})}};export{qr as R,ea as c,V as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as n,D as i,c as r,I as a,a8 as s,j as e,a as o,o as l}from"./chunks/framework.DAuRlsJR.js";const N=JSON.parse('{"title":"疑难解答","description":"","frontmatter":{},"headers":[],"relativePath":"guide/faq.md","filePath":"guide/faq.md","lastUpdated":
|
|
1
|
+
import{_ as n,D as i,c as r,I as a,a8 as s,j as e,a as o,o as l}from"./chunks/framework.DAuRlsJR.js";const N=JSON.parse('{"title":"疑难解答","description":"","frontmatter":{},"headers":[],"relativePath":"guide/faq.md","filePath":"guide/faq.md","lastUpdated":1721398220000}'),_={name:"guide/faq.md"},p=s('<h1 id="title" tabindex="-1">疑难解答 <a class="header-anchor" href="#title" aria-label="Permalink to "疑难解答 {#title}""></a></h1><p>一些可能影响使用体验的问题和对应解决方案, 某些方案可能并不适用您的机型系统</p><p>如您有更好的方案或想对现有方案进行补充, 请点击底部 <code>为此页提供修改建议</code></p><h2 id="restriction" tabindex="-1">受限制的设置 <a class="header-anchor" href="#restriction" aria-label="Permalink to "受限制的设置 {#restriction}""></a></h2><p>无障碍列表界面提示 <code>受限制的设置(出于安全考虑,此设置目前不可用)</code></p><p>这是 Android13 的限制, 对于不在应用商店等可信任来源安装的应用不能直接开启无障碍权限</p><p>您需要解除这个限制, 到系统设置-应用管理-找到并点击GKD-右上角-允许受限制的设置</p><p>以 LineageOS 20 为例, 下面为完整的解除限制流程截图, 此处感谢来自 <a href="https://github.com/gkd-kit/docs/issues/2" target="_blank" rel="noreferrer">CyrusYip</a> 的截图</p>',8),c=s('<p>如果您按照以上步骤设置后回到 无障碍列表 仍然提示不可用, 您可以试试 <strong>重启手机</strong>, 此解决方案来自 <a href="https://github.com/orgs/gkd-kit/discussions/433#discussioncomment-8899920" target="_blank" rel="noreferrer">Herobrine2005928</a></p><h2 id="persistent" tabindex="-1">后台运行 <a class="header-anchor" href="#persistent" aria-label="Permalink to "后台运行 {#persistent}""></a></h2><p>如何尽量保持后台运行不被系统回收</p><ul><li>任务切换界面给 GKD 应用卡片加锁即可</li></ul><p>一般情况下, 使用此项即可正常后台运行, 如果不行请使用下面的步骤</p><ul><li>打开 GKD 首页, 开启 <code>常驻通知</code></li><li>打开 GKD 设置, 开启 <code>后台隐藏</code></li><li>允许后台活动, 关闭省电策略, 或者设置 GKD 的省电策略为无限制</li><li>允许 GKD 自启动</li></ul><h2 id="close_warn_dialog" tabindex="-1">关闭无障碍警告弹窗 <a class="header-anchor" href="#close_warn_dialog" aria-label="Permalink to "关闭无障碍警告弹窗 {#close_warn_dialog}""></a></h2><p>请注意: <strong>这个方案不一定适用所有机型</strong></p><p>大多数设备开启无障碍时都会出现 10s 的无障碍警告弹窗, 若是只需要开启一次则无所谓, 但是如果开启次数比较多每次都有这个警告等待就很烦人了</p>',9),d=e("p",null,[o("你可能已经看到这个界面还有一个开关, 也就是下方的 "),e("code",null,"快捷方式"),o(" 开关")],-1),h=e("p",null,"打开一次下面这个快捷方式开关后, 上面的的开启按钮就不会出现警告弹窗了, 但是你会发现屏幕侧边出现了一个应用小图标, 多数情况下我们并不需要这个图标",-1),u=e("p",null,'到无障碍界面-"无障碍"按钮-使用按钮或手势-点击切换为手势即可隐藏',-1),g=e("p",null,"以 Xiaomi HyperOS 为例子, 下面是完整的关闭弹窗流程截图",-1),m=e("h2",{id:"power",tabindex:"-1"},[o("耗电说明 "),e("a",{class:"header-anchor",href:"#power","aria-label":'Permalink to "耗电说明 {#power}"'},"")],-1),f=e("p",null,"首先 GKD 默认情况下并不耗电,有的人以为关闭更新检测,关闭日志就能减少耗电,并不正确",-1),b=e("p",null,"真正的耗电在于 启用的规则 和 当前应用界面无障碍节点数量及无障碍事件刷新频率",-1),T=e("p",null,"如果想追求低耗电,那应该开启少量的规则,由于之前的默认规则数量有 1300+,很多人喜欢无脑开启规则",-1),k=e("p",null,"开启这么多规则,并且在这些规则匹配的界面使用手机,不耗电是不可能的",-1),q=e("p",null,"此外,某些软件如抖音的无障碍节点数量比较多,并且产生无障碍事件频率也比较高",-1),D=e("p",null,"长时间下使用此类软件的规则会比较耗电,请自行考虑后再启用",-1);function P(S,x,V,A,G,I){const t=i("ImageTable");return l(),r("div",null,[p,a(t,{images:[["0013.png","0014.png","0015.png","0016.png"],["0017.png","0018.png"]]}),c,a(t,{images:[["0004.png","0005.png"]]}),d,h,u,g,a(t,{images:[["0009.png","0010.png","0011.png","0012.png"]]}),m,f,b,T,k,q,D])}const w=n(_,[["render",P]]);export{N as __pageData,w as default};
|
package/.vitepress/dist/assets/{guide_faq.md.CQh24LD7.lean.js → guide_faq.md.CevrZObU.lean.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as n,D as i,c as r,I as a,a8 as s,j as e,a as o,o as l}from"./chunks/framework.DAuRlsJR.js";const N=JSON.parse('{"title":"疑难解答","description":"","frontmatter":{},"headers":[],"relativePath":"guide/faq.md","filePath":"guide/faq.md","lastUpdated":
|
|
1
|
+
import{_ as n,D as i,c as r,I as a,a8 as s,j as e,a as o,o as l}from"./chunks/framework.DAuRlsJR.js";const N=JSON.parse('{"title":"疑难解答","description":"","frontmatter":{},"headers":[],"relativePath":"guide/faq.md","filePath":"guide/faq.md","lastUpdated":1721398220000}'),_={name:"guide/faq.md"},p=s("",8),c=s("",9),d=e("p",null,[o("你可能已经看到这个界面还有一个开关, 也就是下方的 "),e("code",null,"快捷方式"),o(" 开关")],-1),h=e("p",null,"打开一次下面这个快捷方式开关后, 上面的的开启按钮就不会出现警告弹窗了, 但是你会发现屏幕侧边出现了一个应用小图标, 多数情况下我们并不需要这个图标",-1),u=e("p",null,'到无障碍界面-"无障碍"按钮-使用按钮或手势-点击切换为手势即可隐藏',-1),g=e("p",null,"以 Xiaomi HyperOS 为例子, 下面是完整的关闭弹窗流程截图",-1),m=e("h2",{id:"power",tabindex:"-1"},[o("耗电说明 "),e("a",{class:"header-anchor",href:"#power","aria-label":'Permalink to "耗电说明 {#power}"'},"")],-1),f=e("p",null,"首先 GKD 默认情况下并不耗电,有的人以为关闭更新检测,关闭日志就能减少耗电,并不正确",-1),b=e("p",null,"真正的耗电在于 启用的规则 和 当前应用界面无障碍节点数量及无障碍事件刷新频率",-1),T=e("p",null,"如果想追求低耗电,那应该开启少量的规则,由于之前的默认规则数量有 1300+,很多人喜欢无脑开启规则",-1),k=e("p",null,"开启这么多规则,并且在这些规则匹配的界面使用手机,不耗电是不可能的",-1),q=e("p",null,"此外,某些软件如抖音的无障碍节点数量比较多,并且产生无障碍事件频率也比较高",-1),D=e("p",null,"长时间下使用此类软件的规则会比较耗电,请自行考虑后再启用",-1);function P(S,x,V,A,G,I){const t=i("ImageTable");return l(),r("div",null,[p,a(t,{images:[["0013.png","0014.png","0015.png","0016.png"],["0017.png","0018.png"]]}),c,a(t,{images:[["0004.png","0005.png"]]}),d,h,u,g,a(t,{images:[["0009.png","0010.png","0011.png","0012.png"]]}),m,f,b,T,k,q,D])}const w=n(_,[["render",P]]);export{N as __pageData,w as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as i,D as n,c as d,j as e,a as t,I as a,w as r,o as c}from"./chunks/framework.DAuRlsJR.js";const y=JSON.parse('{"title":"开始使用","description":"","frontmatter":{},"headers":[],"relativePath":"guide/index.md","filePath":"guide/index.md","lastUpdated":1721398220000}'),_={name:"guide/index.md"},p=e("h1",{id:"title",tabindex:"-1"},[t("开始使用 "),e("a",{class:"header-anchor",href:"#title","aria-label":'Permalink to "开始使用 {#title}"'},"")],-1),h=e("h2",{id:"install",tabindex:"-1"},[t("下载安装 "),e("a",{class:"header-anchor",href:"#install","aria-label":'Permalink to "下载安装 {#install}"'},"")],-1),u=e("li",null,[e("p",null,[t("Github "),e("a",{href:"https://github.com/gkd-kit/gkd/releases/latest",target:"_blank",rel:"noreferrer"},"releases")])],-1),g=e("p",null,"下载完毕后, 在您的 Android 手机上安装并打开",-1),m=e("h2",{id:"usage",tabindex:"-1"},[t("授权使用 "),e("a",{class:"header-anchor",href:"#usage","aria-label":'Permalink to "授权使用 {#usage}"'},"")],-1),f=e("p",null,"打开后进入 GKD 的首页, 要想 GKD 正常工作需要授权无障碍权限",-1),x=e("p",null,[t("点击无障碍权限右侧的 "),e("code",null,"授权"),t(" 按钮即可前往设置的无障碍界面授权")],-1),b=e("p",null,"以 Xiaomi HyperOS 为例, 下面为完整的授权流程截图",-1),k=e("p",null,[t("如果您的手机的无障碍列表界面无法授权 GKD 或者显示 "),e("code",null,"受限制的设置(出于安全考虑,此设置目前不可用)")],-1),D=e("p",null,"这是 Android13 的限制, 对于不在应用商店等可信任来源安装的应用不能直接开启无障碍权限",-1),B=e("p",null,[t("您需要解除这个限制, 解除限制的方法在 "),e("a",{href:"/guide/faq"},"疑难解答")],-1),P=e("p",null,"限制解除后, 重新按照上面的授权流程即可开启无障碍权限",-1);function w(A,C,G,N,O,$){const l=n("ApkDownloadButton"),o=n("ClientOnly"),s=n("ImageTable");return c(),d("div",null,[p,h,e("ul",null,[e("li",null,[e("p",null,[t("镜像加速 "),a(o,null,{default:r(()=>[a(l)]),_:1})])]),u]),g,m,f,x,b,a(s,{images:[["0001.png","0002.png","0003.png","0004.png"],["0005.png","0006.png","0007.png","0008.png"]]}),k,D,B,P])}const I=i(_,[["render",w]]);export{y as __pageData,I as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as i,D as n,c as d,j as e,a as t,I as a,w as r,o as c}from"./chunks/framework.DAuRlsJR.js";const y=JSON.parse('{"title":"开始使用","description":"","frontmatter":{},"headers":[],"relativePath":"guide/index.md","filePath":"guide/index.md","lastUpdated":1721398220000}'),_={name:"guide/index.md"},p=e("h1",{id:"title",tabindex:"-1"},[t("开始使用 "),e("a",{class:"header-anchor",href:"#title","aria-label":'Permalink to "开始使用 {#title}"'},"")],-1),h=e("h2",{id:"install",tabindex:"-1"},[t("下载安装 "),e("a",{class:"header-anchor",href:"#install","aria-label":'Permalink to "下载安装 {#install}"'},"")],-1),u=e("li",null,[e("p",null,[t("Github "),e("a",{href:"https://github.com/gkd-kit/gkd/releases/latest",target:"_blank",rel:"noreferrer"},"releases")])],-1),g=e("p",null,"下载完毕后, 在您的 Android 手机上安装并打开",-1),m=e("h2",{id:"usage",tabindex:"-1"},[t("授权使用 "),e("a",{class:"header-anchor",href:"#usage","aria-label":'Permalink to "授权使用 {#usage}"'},"")],-1),f=e("p",null,"打开后进入 GKD 的首页, 要想 GKD 正常工作需要授权无障碍权限",-1),x=e("p",null,[t("点击无障碍权限右侧的 "),e("code",null,"授权"),t(" 按钮即可前往设置的无障碍界面授权")],-1),b=e("p",null,"以 Xiaomi HyperOS 为例, 下面为完整的授权流程截图",-1),k=e("p",null,[t("如果您的手机的无障碍列表界面无法授权 GKD 或者显示 "),e("code",null,"受限制的设置(出于安全考虑,此设置目前不可用)")],-1),D=e("p",null,"这是 Android13 的限制, 对于不在应用商店等可信任来源安装的应用不能直接开启无障碍权限",-1),B=e("p",null,[t("您需要解除这个限制, 解除限制的方法在 "),e("a",{href:"/guide/faq"},"疑难解答")],-1),P=e("p",null,"限制解除后, 重新按照上面的授权流程即可开启无障碍权限",-1);function w(A,C,G,N,O,$){const l=n("ApkDownloadButton"),o=n("ClientOnly"),s=n("ImageTable");return c(),d("div",null,[p,h,e("ul",null,[e("li",null,[e("p",null,[t("镜像加速 "),a(o,null,{default:r(()=>[a(l)]),_:1})])]),u]),g,m,f,x,b,a(s,{images:[["0001.png","0002.png","0003.png","0004.png"],["0005.png","0006.png","0007.png","0008.png"]]}),k,D,B,P])}const I=i(_,[["render",w]]);export{y as __pageData,I as default};
|
package/.vitepress/dist/assets/{guide_snapshot.md.DdWrSBgV.js → guide_snapshot.md.DySkdDR0.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as t,c as o,o as s,a8 as i,j as a,a as e}from"./chunks/framework.DAuRlsJR.js";const N=JSON.parse('{"title":"快照审查","description":"","frontmatter":{},"headers":[],"relativePath":"guide/snapshot.md","filePath":"guide/snapshot.md","lastUpdated":
|
|
1
|
+
import{_ as t,c as o,o as s,a8 as i,j as a,a as e}from"./chunks/framework.DAuRlsJR.js";const N=JSON.parse('{"title":"快照审查","description":"","frontmatter":{},"headers":[],"relativePath":"guide/snapshot.md","filePath":"guide/snapshot.md","lastUpdated":1721398220000}'),l={name:"guide/snapshot.md"},r=i('<h1 id="title" tabindex="-1">快照审查 <a class="header-anchor" href="#title" aria-label="Permalink to "快照审查 {#title}""></a></h1><p>关于快照的一些知识</p><h2 id="what-is" tabindex="-1">什么是快照 <a class="header-anchor" href="#what-is" aria-label="Permalink to "什么是快照 {#what-is}""></a></h2><p>快照是一个 zip 文件, 保存了设备在某个时间点的状态, 包含以下内容</p><ul><li>截图</li><li>设备信息</li><li>界面信息</li><li>无障碍节点信息</li></ul><p>以前开发者和用户必须下载指定应用然后到指定界面使用类似 autojs 之类的界面才能审查界面</p><p>有了快照之后, 用户只需要在指定页面抓取快照分享给开发者即可</p><p>另外对于某些出现频率极低的界面, 快照能直接保留这些界面的状态</p><h2 id="capture" tabindex="-1">抓取快照 <a class="header-anchor" href="#capture" aria-label="Permalink to "抓取快照 {#capture}""></a></h2><p>在 GKD 内可以通过多种方式抓取快照, 需要一些前置条件</p><p>抓取快照时必须<strong>开启无障碍权限</strong>, 否则无法获取 界面信息 和 无障碍节点信息</p><p>如果你的设备满足 Android>=11, 无障碍权限可以获取截图, 否则需要额外开启截屏服务</p><p>到 <code>主页-设置-高级模式-截屏服务</code> 开启即可</p><p>不开启时 GKD 会使用 同尺寸透明图片 作为截图保存到快照里</p><p>以下是抓取快照的方式</p>',15),n=a("h3",{"by-float-button":"",id:"通过悬浮窗按钮",tabindex:"-1"},[e("通过悬浮窗按钮 "),a("a",{class:"header-anchor",href:"#通过悬浮窗按钮","aria-label":'Permalink to "通过悬浮窗按钮 {by-float-button}"'},"")],-1),d=a("p",null,[e("打开 "),a("code",null,"主页-设置-高级模式-悬浮窗服务"),e(" 后界面会出现一个可拖动的按钮, 在任意界面点击这个按钮即可抓取快照")],-1),h=a("h3",{"by-tile":"",id:"通过快捷开关",tabindex:"-1"},[e("通过快捷开关 "),a("a",{class:"header-anchor",href:"#通过快捷开关","aria-label":'Permalink to "通过快捷开关 {by-tile}"'},"")],-1),c=a("p",null,[e("下拉打开状态栏, 左右滑动切换到有图标的界面, 点击添加或编辑, 在应用快捷开关找到 "),a("code",null,"捕获快照"),e(", 图标和上面介绍的悬浮窗按钮一样")],-1),p=a("p",null,"添加这个快捷开关到状态栏界面, 添加完毕后在任意界面下拉状态栏点击这个图标即可抓取快照",-1),_=a("h2",{id:"通过",tabindex:"-1"},[e("通过 "),a("a",{class:"header-anchor",href:"#通过","aria-label":'Permalink to "通过"'},"")],-1),u=a("h2",{id:"share",tabindex:"-1"},[e("分享快照 "),a("a",{class:"header-anchor",href:"#share","aria-label":'Permalink to "分享快照 {#share}"'},"")],-1),b=a("p",null,"GKD 没有自己的文件存储服务器",-1),f=[r,n,d,h,c,p,_,u,b];function m(x,P,k,g,T,q){return s(),o("div",null,f)}const S=t(l,[["render",m]]);export{N as __pageData,S as default};
|