@gkd-kit/docs 0.0.1750342481399 → 0.0.1750344534248

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.
Files changed (98) hide show
  1. package/.vitepress/dist/404.html +8 -8
  2. package/.vitepress/dist/404_.md +8 -8
  3. package/.vitepress/dist/_config.json +1 -1
  4. package/.vitepress/dist/api/index.html +11 -11
  5. package/.vitepress/dist/api/index_.md +11 -11
  6. package/.vitepress/dist/api/interfaces/RawApp.html +11 -11
  7. package/.vitepress/dist/api/interfaces/RawAppGroup.html +11 -11
  8. package/.vitepress/dist/api/interfaces/RawAppGroup_.md +11 -11
  9. package/.vitepress/dist/api/interfaces/RawAppRule.html +11 -11
  10. package/.vitepress/dist/api/interfaces/RawAppRuleProps.html +11 -11
  11. package/.vitepress/dist/api/interfaces/RawAppRuleProps_.md +11 -11
  12. package/.vitepress/dist/api/interfaces/RawAppRule_.md +11 -11
  13. package/.vitepress/dist/api/interfaces/RawApp_.md +11 -11
  14. package/.vitepress/dist/api/interfaces/RawCategory.html +11 -11
  15. package/.vitepress/dist/api/interfaces/RawCategory_.md +11 -11
  16. package/.vitepress/dist/api/interfaces/RawCommonProps.html +11 -11
  17. package/.vitepress/dist/api/interfaces/RawCommonProps_.md +11 -11
  18. package/.vitepress/dist/api/interfaces/RawGlobalApp.html +11 -11
  19. package/.vitepress/dist/api/interfaces/RawGlobalApp_.md +11 -11
  20. package/.vitepress/dist/api/interfaces/RawGlobalGroup.html +11 -11
  21. package/.vitepress/dist/api/interfaces/RawGlobalGroup_.md +11 -11
  22. package/.vitepress/dist/api/interfaces/RawGlobalRule.html +11 -11
  23. package/.vitepress/dist/api/interfaces/RawGlobalRuleProps.html +11 -11
  24. package/.vitepress/dist/api/interfaces/RawGlobalRuleProps_.md +11 -11
  25. package/.vitepress/dist/api/interfaces/RawGlobalRule_.md +11 -11
  26. package/.vitepress/dist/api/interfaces/RawGroupProps.html +11 -11
  27. package/.vitepress/dist/api/interfaces/RawGroupProps_.md +11 -11
  28. package/.vitepress/dist/api/interfaces/RawRuleProps.html +11 -11
  29. package/.vitepress/dist/api/interfaces/RawRuleProps_.md +11 -11
  30. package/.vitepress/dist/api/interfaces/RawSubscription.html +11 -11
  31. package/.vitepress/dist/api/interfaces/RawSubscription_.md +11 -11
  32. package/.vitepress/dist/api/type-aliases/IArray.html +11 -11
  33. package/.vitepress/dist/api/type-aliases/IArray_.md +11 -11
  34. package/.vitepress/dist/api/type-aliases/Integer.html +11 -11
  35. package/.vitepress/dist/api/type-aliases/Integer_.md +11 -11
  36. package/.vitepress/dist/api/type-aliases/Position.html +11 -11
  37. package/.vitepress/dist/api/type-aliases/Position_.md +11 -11
  38. package/.vitepress/dist/assets/{app.CpaF2ZrK.js → app.dVTh7jdJ.js} +1 -1
  39. package/.vitepress/dist/assets/chunks/{@localSearchIndexroot.DB3C9NkQ.js → @localSearchIndexroot.C1FXYcv1.js} +1 -1
  40. package/.vitepress/dist/assets/chunks/{VPLocalSearchBox.9lOyK_8X.js → VPLocalSearchBox.CQScatPC.js} +2 -2
  41. package/.vitepress/dist/assets/chunks/theme.CeAzou44.js +1 -0
  42. package/.vitepress/dist/assets/{guide_example.md.D6nYUN6B.js → guide_example.md.C-xH0jwo.js} +1 -1
  43. package/.vitepress/dist/assets/{guide_example.md.D6nYUN6B.lean.js → guide_example.md.C-xH0jwo.lean.js} +1 -1
  44. package/.vitepress/dist/assets/{guide_external.md.BvaK3nxt.js → guide_external.md.BHDEqu4c.js} +1 -1
  45. package/.vitepress/dist/assets/{guide_external.md.BvaK3nxt.lean.js → guide_external.md.BHDEqu4c.lean.js} +1 -1
  46. package/.vitepress/dist/assets/{guide_faq.md.MVP_Odlg.js → guide_faq.md.C7eFHcI4.js} +1 -1
  47. package/.vitepress/dist/assets/{guide_faq.md.MVP_Odlg.lean.js → guide_faq.md.C7eFHcI4.lean.js} +1 -1
  48. package/.vitepress/dist/assets/{guide_index.md.BGAV4o16.js → guide_index.md.nJ2xhhxC.js} +1 -1
  49. package/.vitepress/dist/assets/{guide_index.md.BGAV4o16.lean.js → guide_index.md.nJ2xhhxC.lean.js} +1 -1
  50. package/.vitepress/dist/assets/{guide_node.md.CbOWtnVJ.js → guide_node.md.Z8QhC-3O.js} +1 -1
  51. package/.vitepress/dist/assets/{guide_node.md.CbOWtnVJ.lean.js → guide_node.md.Z8QhC-3O.lean.js} +1 -1
  52. package/.vitepress/dist/assets/{guide_optimize.md.I7w3WpE9.js → guide_optimize.md.Bj4oq6Er.js} +1 -1
  53. package/.vitepress/dist/assets/{guide_optimize.md.I7w3WpE9.lean.js → guide_optimize.md.Bj4oq6Er.lean.js} +1 -1
  54. package/.vitepress/dist/assets/{guide_privacy.md.Ckch4yjO.js → guide_privacy.md.DqLodnbN.js} +1 -1
  55. package/.vitepress/dist/assets/{guide_privacy.md.Ckch4yjO.lean.js → guide_privacy.md.DqLodnbN.lean.js} +1 -1
  56. package/.vitepress/dist/assets/{guide_selector.md.PqEeDCyx.js → guide_selector.md.BhHjhCE6.js} +1 -1
  57. package/.vitepress/dist/assets/{guide_selector.md.PqEeDCyx.lean.js → guide_selector.md.BhHjhCE6.lean.js} +1 -1
  58. package/.vitepress/dist/assets/{guide_snapshot.md.D88sUuZI.js → guide_snapshot.md.BIwd-dfb.js} +1 -1
  59. package/.vitepress/dist/assets/{guide_snapshot.md.D88sUuZI.lean.js → guide_snapshot.md.BIwd-dfb.lean.js} +1 -1
  60. package/.vitepress/dist/assets/{guide_sponsor.md.CsM3RiYv.js → guide_sponsor.md.g2WQXpmR.js} +1 -1
  61. package/.vitepress/dist/assets/{guide_sponsor.md.CsM3RiYv.lean.js → guide_sponsor.md.g2WQXpmR.lean.js} +1 -1
  62. package/.vitepress/dist/assets/{guide_subscription.md.CVmJfd74.js → guide_subscription.md.Crbm6W6X.js} +1 -1
  63. package/.vitepress/dist/assets/{guide_subscription.md.CVmJfd74.lean.js → guide_subscription.md.Crbm6W6X.lean.js} +1 -1
  64. package/.vitepress/dist/assets/{guide_what-is-gkd.md.C2Q0AyJW.js → guide_what-is-gkd.md.DCYKK775.js} +1 -1
  65. package/.vitepress/dist/assets/{guide_what-is-gkd.md.C2Q0AyJW.lean.js → guide_what-is-gkd.md.DCYKK775.lean.js} +1 -1
  66. package/.vitepress/dist/assets/{index.md.e1D5T4Hn.js → index.md.DS6he-J_.js} +1 -1
  67. package/.vitepress/dist/assets/{index.md.e1D5T4Hn.lean.js → index.md.DS6he-J_.lean.js} +1 -1
  68. package/.vitepress/dist/assets/style.DmRq6upP.css +1 -1
  69. package/.vitepress/dist/guide/example.html +12 -12
  70. package/.vitepress/dist/guide/example_.md +12 -12
  71. package/.vitepress/dist/guide/external.html +12 -12
  72. package/.vitepress/dist/guide/external_.md +12 -12
  73. package/.vitepress/dist/guide/faq.html +12 -12
  74. package/.vitepress/dist/guide/faq_.md +12 -12
  75. package/.vitepress/dist/guide/index.html +12 -12
  76. package/.vitepress/dist/guide/index_.md +12 -12
  77. package/.vitepress/dist/guide/node.html +12 -12
  78. package/.vitepress/dist/guide/node_.md +12 -12
  79. package/.vitepress/dist/guide/optimize.html +12 -12
  80. package/.vitepress/dist/guide/optimize_.md +12 -12
  81. package/.vitepress/dist/guide/privacy.html +12 -12
  82. package/.vitepress/dist/guide/privacy_.md +12 -12
  83. package/.vitepress/dist/guide/selector.html +12 -12
  84. package/.vitepress/dist/guide/selector_.md +12 -12
  85. package/.vitepress/dist/guide/snapshot.html +12 -12
  86. package/.vitepress/dist/guide/snapshot_.md +12 -12
  87. package/.vitepress/dist/guide/sponsor.html +12 -12
  88. package/.vitepress/dist/guide/sponsor_.md +12 -12
  89. package/.vitepress/dist/guide/subscription.html +12 -12
  90. package/.vitepress/dist/guide/subscription_.md +12 -12
  91. package/.vitepress/dist/guide/what-is-gkd.html +12 -12
  92. package/.vitepress/dist/guide/what-is-gkd_.md +12 -12
  93. package/.vitepress/dist/hashmap.json +1 -1
  94. package/.vitepress/dist/index.html +12 -12
  95. package/.vitepress/dist/index_.md +12 -12
  96. package/_config.json +1 -1
  97. package/package.json +1 -1
  98. package/.vitepress/dist/assets/chunks/theme.D2YhHsNR.js +0 -1
@@ -1,2 +1,2 @@
1
- var Ot=Object.defineProperty;var Ct=(a,e,t)=>e in a?Ot(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var Ae=(a,e,t)=>Ct(a,typeof e!="symbol"?e+"":e,t);import{W as Rt,B as le,h as ge,aA as nt,aB as At,aC as Mt,aD as Lt,z as je,aE as Dt,d as zt,aF as st,x as fe,aG as Pt,aH as Vt,y as $t,aI as jt,p as Me,R as he,Q as Se,ac as Bt,a8 as Wt,X as Kt,D as Jt,a0 as Ut,b as qt,o as H,j as _,a1 as Gt,a6 as Ht,k as L,a7 as Qt,aJ as Yt,c as X,e as Ee,n as it,H as rt,G as at,a as pe,t as me,ab as Zt,aK as ot,aL as Xt,ag as en,al as tn,aM as nn,_ as sn}from"./framework.C9O3MI31.js";import{u as rn,c as an}from"./theme.D2YhHsNR.js";const on={root:()=>Rt(()=>import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1750342481399/files/.vitepress/dist"+u}return u})("./@localSearchIndexroot.DB3C9NkQ.js")),[])};var gt=["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])"],Ne=gt.join(","),bt=typeof Element>"u",re=bt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Fe=!bt&&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},Oe=function a(e,t){var n;t===void 0&&(t=!0);var s=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),r=s===""||s==="true",i=r||t&&e&&a(e.parentNode);return i},ln=function(e){var t,n=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return n===""||n==="true"},yt=function(e,t,n){if(Oe(e))return[];var s=Array.prototype.slice.apply(e.querySelectorAll(Ne));return t&&re.call(e,Ne)&&s.unshift(e),s=s.filter(n),s},wt=function a(e,t,n){for(var s=[],r=Array.from(e);r.length;){var i=r.shift();if(!Oe(i,!1))if(i.tagName==="SLOT"){var o=i.assignedElements(),l=o.length?o:i.children,c=a(l,!0,n);n.flatten?s.push.apply(s,c):s.push({scopeParent:i,candidates:c})}else{var f=re.call(i,Ne);f&&n.filter(i)&&(t||!e.includes(i))&&s.push(i);var v=i.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(i),h=!Oe(v,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(v&&h){var b=a(v===!0?i.children:v.children,!0,n);n.flatten?s.push.apply(s,b):s.push({scopeParent:i,candidates:b})}else r.unshift.apply(r,i.children)}}return s},xt=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)||ln(e))&&!xt(e)?0:e.tabIndex},cn=function(e,t){var n=ie(e);return n<0&&t&&!xt(e)?0:n},un=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},_t=function(e){return e.tagName==="INPUT"},dn=function(e){return _t(e)&&e.type==="hidden"},fn=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return t},hn=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},pn=function(e){if(!e.name)return!0;var t=e.form||Fe(e),n=function(o){return t.querySelectorAll('input[type="radio"][name="'+o+'"]')},s;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")s=n(window.CSS.escape(e.name));else try{s=n(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=hn(s,e.form);return!r||r===e},mn=function(e){return _t(e)&&e.type==="radio"},vn=function(e){return mn(e)&&!pn(e)},gn=function(e){var t,n=e&&Fe(e),s=(t=n)===null||t===void 0?void 0:t.host,r=!1;if(n&&n!==e){var i,o,l;for(r=!!((i=s)!==null&&i!==void 0&&(o=i.ownerDocument)!==null&&o!==void 0&&o.contains(s)||e!=null&&(l=e.ownerDocument)!==null&&l!==void 0&&l.contains(e));!r&&s;){var c,f,v;n=Fe(s),s=(c=n)===null||c===void 0?void 0:c.host,r=!!((f=s)!==null&&f!==void 0&&(v=f.ownerDocument)!==null&&v!==void 0&&v.contains(s))}}return r},lt=function(e){var t=e.getBoundingClientRect(),n=t.width,s=t.height;return n===0&&s===0},bn=function(e,t){var n=t.displayCheck,s=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(!n||n==="full"||n==="legacy-full"){if(typeof s=="function"){for(var o=e;e;){var l=e.parentElement,c=Fe(e);if(l&&!l.shadowRoot&&s(l)===!0)return lt(e);e.assignedSlot?e=e.assignedSlot:!l&&c!==e.ownerDocument?e=c.host:e=l}e=o}if(gn(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return lt(e);return!1},yn=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var n=0;n<t.children.length;n++){var s=t.children.item(n);if(s.tagName==="LEGEND")return re.call(t,"fieldset[disabled] *")?!0:!s.contains(e)}return!0}t=t.parentElement}return!1},Ce=function(e,t){return!(t.disabled||Oe(t)||dn(t)||bn(t,e)||fn(t)||yn(t))},Be=function(e,t){return!(vn(t)||ie(t)<0||!Ce(e,t))},wn=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},xn=function a(e){var t=[],n=[];return e.forEach(function(s,r){var i=!!s.scopeParent,o=i?s.scopeParent:s,l=cn(o,i),c=i?a(s.candidates):o;l===0?i?t.push.apply(t,c):t.push(o):n.push({documentOrder:r,tabIndex:l,item:s,isScope:i,content:c})}),n.sort(un).reduce(function(s,r){return r.isScope?s.push.apply(s,r.content):s.push(r.content),s},[]).concat(t)},_n=function(e,t){t=t||{};var n;return t.getShadowRoot?n=wt([e],t.includeContainer,{filter:Be.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:wn}):n=yt(e,t.includeContainer,Be.bind(null,t)),xn(n)},Sn=function(e,t){t=t||{};var n;return t.getShadowRoot?n=wt([e],t.includeContainer,{filter:Ce.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):n=yt(e,t.includeContainer,Ce.bind(null,t)),n},ae=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return re.call(e,Ne)===!1?!1:Be(t,e)},En=gt.concat("iframe").join(","),Le=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return re.call(e,En)===!1?!1:Ce(t,e)};function We(a,e){(e==null||e>a.length)&&(e=a.length);for(var t=0,n=Array(e);t<e;t++)n[t]=a[t];return n}function Tn(a){if(Array.isArray(a))return We(a)}function In(a,e,t){return(e=Cn(e))in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function kn(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function Nn(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ct(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),t.push.apply(t,n)}return t}function ut(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ct(Object(t),!0).forEach(function(n){In(a,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):ct(Object(t)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(t,n))})}return a}function Fn(a){return Tn(a)||kn(a)||Rn(a)||Nn()}function On(a,e){if(typeof a!="object"||!a)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var n=t.call(a,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}function Cn(a){var e=On(a,"string");return typeof e=="symbol"?e:e+""}function Rn(a,e){if(a){if(typeof a=="string")return We(a,e);var t={}.toString.call(a).slice(8,-1);return t==="Object"&&a.constructor&&(t=a.constructor.name),t==="Map"||t==="Set"?Array.from(a):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?We(a,e):void 0}}var dt={activateTrap:function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n._setPausedState(!0)}var s=e.indexOf(t);s===-1||e.splice(s,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)}},An=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Mn=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},be=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},Ln=function(e){return be(e)&&!e.shiftKey},Dn=function(e){return be(e)&&e.shiftKey},ft=function(e){return setTimeout(e,0)},ve=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];return typeof e=="function"?e.apply(void 0,n):e},Te=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},zn=[],Pn=function(e,t){var n=(t==null?void 0:t.document)||document,s=(t==null?void 0:t.trapStack)||zn,r=ut({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Ln,isKeyBackward:Dn},t),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},o,l=function(u,d,g){return u&&u[d]!==void 0?u[d]:r[g||d]},c=function(u,d){var g=typeof(d==null?void 0:d.composedPath)=="function"?d.composedPath():void 0;return i.containerGroups.findIndex(function(E){var T=E.container,F=E.tabbableNodes;return T.contains(u)||(g==null?void 0:g.includes(T))||F.find(function(S){return S===u})})},f=function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},g=d.hasFallback,E=g===void 0?!1:g,T=d.params,F=T===void 0?[]:T,S=r[u];if(typeof S=="function"&&(S=S.apply(void 0,Fn(F))),S===!0&&(S=void 0),!S){if(S===void 0||S===!1)return S;throw new Error("`".concat(u,"` was specified but was not a node, or did not return a node"))}var C=S;if(typeof S=="string"){try{C=n.querySelector(S)}catch(m){throw new Error("`".concat(u,'` appears to be an invalid selector; error="').concat(m.message,'"'))}if(!C&&!E)throw new Error("`".concat(u,"` as selector refers to no known node"))}return C},v=function(){var u=f("initialFocus",{hasFallback:!0});if(u===!1)return!1;if(u===void 0||u&&!Le(u,r.tabbableOptions))if(c(n.activeElement)>=0)u=n.activeElement;else{var d=i.tabbableGroups[0],g=d&&d.firstTabbableNode;u=g||f("fallbackFocus")}else u===null&&(u=f("fallbackFocus"));if(!u)throw new Error("Your focus-trap needs to have at least one focusable element");return u},h=function(){if(i.containerGroups=i.containers.map(function(u){var d=_n(u,r.tabbableOptions),g=Sn(u,r.tabbableOptions),E=d.length>0?d[0]:void 0,T=d.length>0?d[d.length-1]:void 0,F=g.find(function(m){return ae(m)}),S=g.slice().reverse().find(function(m){return ae(m)}),C=!!d.find(function(m){return ie(m)>0});return{container:u,tabbableNodes:d,focusableNodes:g,posTabIndexesFound:C,firstTabbableNode:E,lastTabbableNode:T,firstDomTabbableNode:F,lastDomTabbableNode:S,nextTabbableNode:function(p){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,O=d.indexOf(p);return O<0?I?g.slice(g.indexOf(p)+1).find(function(z){return ae(z)}):g.slice(0,g.indexOf(p)).reverse().find(function(z){return ae(z)}):d[O+(I?1:-1)]}}}),i.tabbableGroups=i.containerGroups.filter(function(u){return u.tabbableNodes.length>0}),i.tabbableGroups.length<=0&&!f("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.")},b=function(u){var d=u.activeElement;if(d)return d.shadowRoot&&d.shadowRoot.activeElement!==null?b(d.shadowRoot):d},y=function(u){if(u!==!1&&u!==b(document)){if(!u||!u.focus){y(v());return}u.focus({preventScroll:!!r.preventScroll}),i.mostRecentlyFocusedNode=u,An(u)&&u.select()}},x=function(u){var d=f("setReturnFocus",{params:[u]});return d||(d===!1?!1:u)},w=function(u){var d=u.target,g=u.event,E=u.isBackward,T=E===void 0?!1:E;d=d||Te(g),h();var F=null;if(i.tabbableGroups.length>0){var S=c(d,g),C=S>=0?i.containerGroups[S]:void 0;if(S<0)T?F=i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:F=i.tabbableGroups[0].firstTabbableNode;else if(T){var m=i.tabbableGroups.findIndex(function(V){var k=V.firstTabbableNode;return d===k});if(m<0&&(C.container===d||Le(d,r.tabbableOptions)&&!ae(d,r.tabbableOptions)&&!C.nextTabbableNode(d,!1))&&(m=S),m>=0){var p=m===0?i.tabbableGroups.length-1:m-1,I=i.tabbableGroups[p];F=ie(d)>=0?I.lastTabbableNode:I.lastDomTabbableNode}else be(g)||(F=C.nextTabbableNode(d,!1))}else{var O=i.tabbableGroups.findIndex(function(V){var k=V.lastTabbableNode;return d===k});if(O<0&&(C.container===d||Le(d,r.tabbableOptions)&&!ae(d,r.tabbableOptions)&&!C.nextTabbableNode(d))&&(O=S),O>=0){var z=O===i.tabbableGroups.length-1?0:O+1,P=i.tabbableGroups[z];F=ie(d)>=0?P.firstTabbableNode:P.firstDomTabbableNode}else be(g)||(F=C.nextTabbableNode(d))}}else F=f("fallbackFocus");return F},R=function(u){var d=Te(u);if(!(c(d,u)>=0)){if(ve(r.clickOutsideDeactivates,u)){o.deactivate({returnFocus:r.returnFocusOnDeactivate});return}ve(r.allowOutsideClick,u)||u.preventDefault()}},A=function(u){var d=Te(u),g=c(d,u)>=0;if(g||d instanceof Document)g&&(i.mostRecentlyFocusedNode=d);else{u.stopImmediatePropagation();var E,T=!0;if(i.mostRecentlyFocusedNode)if(ie(i.mostRecentlyFocusedNode)>0){var F=c(i.mostRecentlyFocusedNode),S=i.containerGroups[F].tabbableNodes;if(S.length>0){var C=S.findIndex(function(m){return m===i.mostRecentlyFocusedNode});C>=0&&(r.isKeyForward(i.recentNavEvent)?C+1<S.length&&(E=S[C+1],T=!1):C-1>=0&&(E=S[C-1],T=!1))}}else i.containerGroups.some(function(m){return m.tabbableNodes.some(function(p){return ie(p)>0})})||(T=!1);else T=!1;T&&(E=w({target:i.mostRecentlyFocusedNode,isBackward:r.isKeyBackward(i.recentNavEvent)})),y(E||i.mostRecentlyFocusedNode||v())}i.recentNavEvent=void 0},J=function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;i.recentNavEvent=u;var g=w({event:u,isBackward:d});g&&(be(u)&&u.preventDefault(),y(g))},Q=function(u){(r.isKeyForward(u)||r.isKeyBackward(u))&&J(u,r.isKeyBackward(u))},K=function(u){Mn(u)&&ve(r.escapeDeactivates,u)!==!1&&(u.preventDefault(),o.deactivate())},j=function(u){var d=Te(u);c(d,u)>=0||ve(r.clickOutsideDeactivates,u)||ve(r.allowOutsideClick,u)||(u.preventDefault(),u.stopImmediatePropagation())},B=function(){if(i.active)return dt.activateTrap(s,o),i.delayInitialFocusTimer=r.delayInitialFocus?ft(function(){y(v())}):y(v()),n.addEventListener("focusin",A,!0),n.addEventListener("mousedown",R,{capture:!0,passive:!1}),n.addEventListener("touchstart",R,{capture:!0,passive:!1}),n.addEventListener("click",j,{capture:!0,passive:!1}),n.addEventListener("keydown",Q,{capture:!0,passive:!1}),n.addEventListener("keydown",K),o},ye=function(){if(i.active)return n.removeEventListener("focusin",A,!0),n.removeEventListener("mousedown",R,!0),n.removeEventListener("touchstart",R,!0),n.removeEventListener("click",j,!0),n.removeEventListener("keydown",Q,!0),n.removeEventListener("keydown",K),o},M=function(u){var d=u.some(function(g){var E=Array.from(g.removedNodes);return E.some(function(T){return T===i.mostRecentlyFocusedNode})});d&&y(v())},U=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(M):void 0,q=function(){U&&(U.disconnect(),i.active&&!i.paused&&i.containers.map(function(u){U.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=l(u,"onActivate"),g=l(u,"onPostActivate"),E=l(u,"checkCanFocusTrap");E||h(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=n.activeElement,d==null||d();var T=function(){E&&h(),B(),q(),g==null||g()};return E?(E(i.containers.concat()).then(T,T),this):(T(),this)},deactivate:function(u){if(!i.active)return this;var d=ut({onDeactivate:r.onDeactivate,onPostDeactivate:r.onPostDeactivate,checkCanReturnFocus:r.checkCanReturnFocus},u);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,ye(),i.active=!1,i.paused=!1,q(),dt.deactivateTrap(s,o);var g=l(d,"onDeactivate"),E=l(d,"onPostDeactivate"),T=l(d,"checkCanReturnFocus"),F=l(d,"returnFocus","returnFocusOnDeactivate");g==null||g();var S=function(){ft(function(){F&&y(x(i.nodeFocusedBeforeActivation)),E==null||E()})};return F&&T?(T(x(i.nodeFocusedBeforeActivation)).then(S,S),this):(S(),this)},pause:function(u){return i.active?(i.manuallyPaused=!0,this._setPausedState(!0,u)):this},unpause:function(u){return i.active?(i.manuallyPaused=!1,s[s.length-1]!==this?this:this._setPausedState(!1,u)):this},updateContainerElements:function(u){var d=[].concat(u).filter(Boolean);return i.containers=d.map(function(g){return typeof g=="string"?n.querySelector(g):g}),i.active&&h(),q(),this}},Object.defineProperties(o,{_isManuallyPaused:{value:function(){return i.manuallyPaused}},_setPausedState:{value:function(u,d){if(i.paused===u)return this;if(i.paused=u,u){var g=l(d,"onPause"),E=l(d,"onPostPause");g==null||g(),ye(),q(),E==null||E()}else{var T=l(d,"onUnpause"),F=l(d,"onPostUnpause");T==null||T(),h(),B(),q(),F==null||F()}return this}}}),o.updateContainerElements(e),o};function Vn(a,e={}){let t;const{immediate:n,...s}=e,r=le(!1),i=le(!1),o=h=>t&&t.activate(h),l=h=>t&&t.deactivate(h),c=()=>{t&&(t.pause(),i.value=!0)},f=()=>{t&&(t.unpause(),i.value=!1)},v=ge(()=>{const h=nt(a);return At(h).map(b=>{const y=nt(b);return typeof y=="string"?y:Mt(y)}).filter(Lt)});return je(v,h=>{h.length&&(t=Pn(h,{...s,onActivate(){r.value=!0,e.onActivate&&e.onActivate()},onDeactivate(){r.value=!1,e.onDeactivate&&e.onDeactivate()}}),n&&o())},{flush:"post"}),Dt(()=>l()),{hasFocus:r,isPaused:i,activate:o,deactivate:l,pause:c,unpause:f}}class ce{constructor(e,t=!0,n=[],s=5e3){this.ctx=e,this.iframes=t,this.exclude=n,this.iframesTimeout=s}static matches(e,t){const n=typeof t=="string"?[t]:t,s=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(s){let r=!1;return n.every(i=>s.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(n=>{const s=t.filter(r=>r.contains(n)).length>0;t.indexOf(n)===-1&&!s&&t.push(n)}),t}getIframeContents(e,t,n=()=>{}){let s;try{const r=e.contentWindow;if(s=r.document,!r||!s)throw new Error("iframe inaccessible")}catch{n()}s&&t(s)}isIframeBlank(e){const t="about:blank",n=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&n!==t&&n}observeIframeLoad(e,t,n){let s=!1,r=null;const i=()=>{if(!s){s=!0,clearTimeout(r);try{this.isIframeBlank(e)||(e.removeEventListener("load",i),this.getIframeContents(e,t,n))}catch{n()}}};e.addEventListener("load",i),r=setTimeout(i,this.iframesTimeout)}onIframeReady(e,t,n){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,n):this.getIframeContents(e,t,n):this.observeIframeLoad(e,t,n)}catch{n()}}waitForIframes(e,t){let n=0;this.forEachIframe(e,()=>!0,s=>{n++,this.waitForIframes(s.querySelector("html"),()=>{--n||t()})},s=>{s||t()})}forEachIframe(e,t,n,s=()=>{}){let r=e.querySelectorAll("iframe"),i=r.length,o=0;r=Array.prototype.slice.call(r);const l=()=>{--i<=0&&s(o)};i||l(),r.forEach(c=>{ce.matches(c,this.exclude)?l():this.onIframeReady(c,f=>{t(c)&&(o++,n(f)),l()},l)})}createIterator(e,t,n){return document.createNodeIterator(e,t,n,!1)}createInstanceOnIframe(e){return new ce(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,n){const s=e.compareDocumentPosition(n),r=Node.DOCUMENT_POSITION_PRECEDING;if(s&r)if(t!==null){const i=t.compareDocumentPosition(n),o=Node.DOCUMENT_POSITION_FOLLOWING;if(i&o)return!0}else return!0;return!1}getIteratorNode(e){const t=e.previousNode();let n;return t===null?n=e.nextNode():n=e.nextNode()&&e.nextNode(),{prevNode:t,node:n}}checkIframeFilter(e,t,n,s){let r=!1,i=!1;return s.forEach((o,l)=>{o.val===n&&(r=l,i=o.handled)}),this.compareNodeIframe(e,t,n)?(r===!1&&!i?s.push({val:n,handled:!0}):r!==!1&&!i&&(s[r].handled=!0),!0):(r===!1&&s.push({val:n,handled:!1}),!1)}handleOpenIframes(e,t,n,s){e.forEach(r=>{r.handled||this.getIframeContents(r.val,i=>{this.createInstanceOnIframe(i).forEachNode(t,n,s)})})}iterateThroughNodes(e,t,n,s,r){const i=this.createIterator(t,e,s);let o=[],l=[],c,f,v=()=>({prevNode:f,node:c}=this.getIteratorNode(i),c);for(;v();)this.iframes&&this.forEachIframe(t,h=>this.checkIframeFilter(c,f,h,o),h=>{this.createInstanceOnIframe(h).forEachNode(e,b=>l.push(b),s)}),l.push(c);l.forEach(h=>{n(h)}),this.iframes&&this.handleOpenIframes(o,e,n,s),r()}forEachNode(e,t,n,s=()=>{}){const r=this.getContexts();let i=r.length;i||s(),r.forEach(o=>{const l=()=>{this.iterateThroughNodes(e,o,t,n,()=>{--i<=0&&s()})};this.iframes?this.waitForIframes(o,l):l()})}}let $n=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 n=this.opt.log;this.opt.debug&&typeof n=="object"&&typeof n[t]=="function"&&n[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,n=this.opt.caseSensitive?"":"i",s=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),l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(i):this.escapeStr(i);o!==""&&l!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(o)}|${this.escapeStr(l)})`,`gm${n}`),s+`(${this.processSynomyms(o)}|${this.processSynomyms(l)})`+s))}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,n,s)=>{let r=s.charAt(n+1);return/[(|)\\]/.test(r)||r===""?t:t+"\0"})}createJoinersRegExp(e){let t=[];const n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&t.push(this.escapeStr(n.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",n=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 s=[];return e.split("").forEach(r=>{n.every(i=>{if(i.indexOf(r)!==-1){if(s.indexOf(i)>-1)return!1;e=e.replace(new RegExp(`[${i}]`,`gm${t}`),`[${i}]`),s.push(i)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){const t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿";let n=this.opt.accuracy,s=typeof n=="string"?n:n.value,r=typeof n=="string"?[]:n.limiters,i="";switch(r.forEach(o=>{i+=`|${this.escapeStr(o)}`}),s){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(n=>{this.opt.separateWordSearch?n.split(" ").forEach(s=>{s.trim()&&t.indexOf(s)===-1&&t.push(s)}):n.trim()&&t.indexOf(n)===-1&&t.push(n)}),{keywords:t.sort((n,s)=>s.length-n.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 n=0;return e.sort((s,r)=>s.start-r.start).forEach(s=>{let{start:r,end:i,valid:o}=this.callNoMatchOnInvalidRanges(s,n);o&&(s.start=r,s.length=i-r,t.push(s),n=i)}),t}callNoMatchOnInvalidRanges(e,t){let n,s,r=!1;return e&&typeof e.start<"u"?(n=parseInt(e.start,10),s=n+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&s-t>0&&s-n>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:n,end:s,valid:r}}checkWhitespaceRanges(e,t,n){let s,r=!0,i=n.length,o=t-i,l=parseInt(e.start,10)-o;return l=l>i?i:l,s=l+parseInt(e.length,10),s>i&&(s=i,this.log(`End range automatically set to the max value of ${i}`)),l<0||s-l<0||l>i||s>i?(r=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):n.substring(l,s).replace(/\s+/g,"")===""&&(r=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:l,end:s,valid:r}}getTextNodes(e){let t="",n=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,s=>{n.push({start:t.length,end:(t+=s.textContent).length,node:s})},s=>this.matchesExclude(s.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:n})})}matchesExclude(e){return ce.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,n){const s=this.opt.element?this.opt.element:"mark",r=e.splitText(t),i=r.splitText(n-t);let o=document.createElement(s);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,n,s,r){e.nodes.every((i,o)=>{const l=e.nodes[o+1];if(typeof l>"u"||l.start>t){if(!s(i.node))return!1;const c=t-i.start,f=(n>i.end?i.end:n)-i.start,v=e.value.substr(0,i.start),h=e.value.substr(f+i.start);if(i.node=this.wrapRangeInTextNode(i.node,c,f),e.value=v+h,e.nodes.forEach((b,y)=>{y>=o&&(e.nodes[y].start>0&&y!==o&&(e.nodes[y].start-=f),e.nodes[y].end-=f)}),n-=f,r(i.node.previousSibling,i.start),n>i.end)t=i.end;else return!1}return!0})}wrapMatches(e,t,n,s,r){const i=t===0?0:t+1;this.getTextNodes(o=>{o.nodes.forEach(l=>{l=l.node;let c;for(;(c=e.exec(l.textContent))!==null&&c[i]!=="";){if(!n(c[i],l))continue;let f=c.index;if(i!==0)for(let v=1;v<i;v++)f+=c[v].length;l=this.wrapRangeInTextNode(l,f,f+c[i].length),s(l.previousSibling),e.lastIndex=0}}),r()})}wrapMatchesAcrossElements(e,t,n,s,r){const i=t===0?0:t+1;this.getTextNodes(o=>{let l;for(;(l=e.exec(o.value))!==null&&l[i]!=="";){let c=l.index;if(i!==0)for(let v=1;v<i;v++)c+=l[v].length;const f=c+l[i].length;this.wrapRangeInMappedTextNode(o,c,f,v=>n(l[i],v),(v,h)=>{e.lastIndex=h,s(v)})}r()})}wrapRangeFromIndex(e,t,n,s){this.getTextNodes(r=>{const i=r.value.length;e.forEach((o,l)=>{let{start:c,end:f,valid:v}=this.checkWhitespaceRanges(o,i,r.value);v&&this.wrapRangeInMappedTextNode(r,c,f,h=>t(h,o,r.value.substring(c,f),l),h=>{n(h,o)})}),s()})}unwrapMatches(e){const t=e.parentNode;let n=document.createDocumentFragment();for(;e.firstChild;)n.appendChild(e.removeChild(e.firstChild));t.replaceChild(n,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 n=0,s="wrapMatches";const r=i=>{n++,this.opt.each(i)};this.opt.acrossElements&&(s="wrapMatchesAcrossElements"),this[s](e,this.opt.ignoreGroups,(i,o)=>this.opt.filter(o,i,n),r,()=>{n===0&&this.opt.noMatch(e),this.opt.done(n)})}mark(e,t){this.opt=t;let n=0,s="wrapMatches";const{keywords:r,length:i}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),o=this.opt.caseSensitive?"":"i",l=c=>{let f=new RegExp(this.createRegExp(c),`gm${o}`),v=0;this.log(`Searching with expression "${f}"`),this[s](f,1,(h,b)=>this.opt.filter(b,c,n,v),h=>{v++,n++,this.opt.each(h)},()=>{v===0&&this.opt.noMatch(c),r[i-1]===c?this.opt.done(n):l(r[r.indexOf(c)+1])})};this.opt.acrossElements&&(s="wrapMatchesAcrossElements"),i===0?this.opt.done(n):l(r[0])}markRanges(e,t){this.opt=t;let n=0,s=this.checkRanges(e);s&&s.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(s)),this.wrapRangeFromIndex(s,(r,i,o,l)=>this.opt.filter(r,i,o,l),(r,i)=>{n++,this.opt.each(r,i)},()=>{this.opt.done(n)})):this.opt.done(n)}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,n=>{this.unwrapMatches(n)},n=>{const s=ce.matches(n,t),r=this.matchesExclude(n);return!s||r?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function jn(a){const e=new $n(a);return this.mark=(t,n)=>(e.mark(t,n),this),this.markRegExp=(t,n)=>(e.markRegExp(t,n),this),this.markRanges=(t,n)=>(e.markRanges(t,n),this),this.unmark=t=>(e.unmark(t),this),this}const Bn="ENTRIES",St="KEYS",Et="VALUES",D="";class De{constructor(e,t){const n=e._tree,s=Array.from(n.keys());this.set=e,this._type=t,this._path=s.length>0?[{node:n,keys:s}]:[]}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)===D)return{done:!1,value:this.result()};const n=e.get(oe(t));return this._path.push({node:n,keys:Array.from(n.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!==D).join("")}value(){return oe(this._path).node.get(D)}result(){switch(this._type){case Et:return this.value();case St:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}}const oe=a=>a[a.length-1],Wn=(a,e,t)=>{const n=new Map;if(e===void 0)return n;const s=e.length+1,r=s+t,i=new Uint8Array(r*s).fill(t+1);for(let o=0;o<s;++o)i[o]=o;for(let o=1;o<r;++o)i[o*s]=o;return Tt(a,e,t,n,i,1,s,""),n},Tt=(a,e,t,n,s,r,i,o)=>{const l=r*i;e:for(const c of a.keys())if(c===D){const f=s[l-1];f<=t&&n.set(o,[a.get(c),f])}else{let f=r;for(let v=0;v<c.length;++v,++f){const h=c[v],b=i*f,y=b-i;let x=s[b];const w=Math.max(0,f-t-1),R=Math.min(i-1,f+t);for(let A=w;A<R;++A){const J=h!==e[A],Q=s[y+A]+ +J,K=s[y+A+1]+1,j=s[b+A]+1,B=s[b+A+1]=Math.min(Q,K,j);B<x&&(x=B)}if(x>t)continue e}Tt(a.get(c),e,t,n,s,f,i,o+c)}};class ee{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,n]=Re(this._tree,e.slice(this._prefix.length));if(t===void 0){const[s,r]=qe(n);for(const i of s.keys())if(i!==D&&i.startsWith(r)){const o=new Map;return o.set(i.slice(r.length),s.get(i)),new ee(o,e)}}return new ee(t,e)}clear(){this._size=void 0,this._tree.clear()}delete(e){return this._size=void 0,Kn(this._tree,e)}entries(){return new De(this,Bn)}forEach(e){for(const[t,n]of this)e(t,n,this)}fuzzyGet(e,t){return Wn(this._tree,e,t)}get(e){const t=Ke(this._tree,e);return t!==void 0?t.get(D):void 0}has(e){const t=Ke(this._tree,e);return t!==void 0&&t.has(D)}keys(){return new De(this,St)}set(e,t){if(typeof e!="string")throw new Error("key must be a string");return this._size=void 0,ze(this._tree,e).set(D,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 n=ze(this._tree,e);return n.set(D,t(n.get(D))),this}fetch(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;const n=ze(this._tree,e);let s=n.get(D);return s===void 0&&n.set(D,s=t()),s}values(){return new De(this,Et)}[Symbol.iterator](){return this.entries()}static from(e){const t=new ee;for(const[n,s]of e)t.set(n,s);return t}static fromObject(e){return ee.from(Object.entries(e))}}const Re=(a,e,t=[])=>{if(e.length===0||a==null)return[a,t];for(const n of a.keys())if(n!==D&&e.startsWith(n))return t.push([a,n]),Re(a.get(n),e.slice(n.length),t);return t.push([a,e]),Re(void 0,"",t)},Ke=(a,e)=>{if(e.length===0||a==null)return a;for(const t of a.keys())if(t!==D&&e.startsWith(t))return Ke(a.get(t),e.slice(t.length))},ze=(a,e)=>{const t=e.length;e:for(let n=0;a&&n<t;){for(const r of a.keys())if(r!==D&&e[n]===r[0]){const i=Math.min(t-n,r.length);let o=1;for(;o<i&&e[n+o]===r[o];)++o;const l=a.get(r);if(o===r.length)a=l;else{const c=new Map;c.set(r.slice(o),l),a.set(e.slice(n,n+o),c),a.delete(r),a=c}n+=o;continue e}const s=new Map;return a.set(e.slice(n),s),s}return a},Kn=(a,e)=>{const[t,n]=Re(a,e);if(t!==void 0){if(t.delete(D),t.size===0)It(n);else if(t.size===1){const[s,r]=t.entries().next().value;kt(n,s,r)}}},It=a=>{if(a.length===0)return;const[e,t]=qe(a);if(e.delete(t),e.size===0)It(a.slice(0,-1));else if(e.size===1){const[n,s]=e.entries().next().value;n!==D&&kt(a.slice(0,-1),n,s)}},kt=(a,e,t)=>{if(a.length===0)return;const[n,s]=qe(a);n.set(s+e,t),n.delete(s)},qe=a=>a[a.length-1],Ge="or",Nt="and",Jn="and_not";class ue{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?$e:e.autoVacuum;this._options={...Ve,...e,autoVacuum:t,searchOptions:{...ht,...e.searchOptions||{}},autoSuggestOptions:{...Qn,...e.autoSuggestOptions||{}}},this._index=new ee,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=Ue,this.addFields(this._options.fields)}add(e){const{extractField:t,tokenize:n,processTerm:s,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 l=this.addDocumentId(o);this.saveStoredFields(l,e);for(const c of r){const f=t(e,c);if(f==null)continue;const v=n(f.toString(),c),h=this._fieldIds[c],b=new Set(v).size;this.addFieldLength(l,h,this._documentCount-1,b);for(const y of v){const x=s(y,c);if(Array.isArray(x))for(const w of x)this.addTerm(h,l,w);else x&&this.addTerm(h,l,x)}}}addAll(e){for(const t of e)this.add(t)}addAllAsync(e,t={}){const{chunkSize:n=10}=t,s={chunk:[],promise:Promise.resolve()},{chunk:r,promise:i}=e.reduce(({chunk:o,promise:l},c,f)=>(o.push(c),(f+1)%n===0?{chunk:[],promise:l.then(()=>new Promise(v=>setTimeout(v,0))).then(()=>this.addAll(o))}:{chunk:o,promise:l}),s);return i.then(()=>this.addAll(r))}remove(e){const{tokenize:t,processTerm:n,extractField:s,fields:r,idField:i}=this._options,o=s(e,i);if(o==null)throw new Error(`MiniSearch: document does not have ID field "${i}"`);const l=this._idToShortId.get(o);if(l==null)throw new Error(`MiniSearch: cannot remove document with ID ${o}: it is not in the index`);for(const c of r){const f=s(e,c);if(f==null)continue;const v=t(f.toString(),c),h=this._fieldIds[c],b=new Set(v).size;this.removeFieldLength(l,h,this._documentCount,b);for(const y of v){const x=n(y,c);if(Array.isArray(x))for(const w of x)this.removeTerm(h,l,w);else x&&this.removeTerm(h,l,x)}}this._storedFields.delete(l),this._documentIds.delete(l),this._idToShortId.delete(o),this._fieldLength.delete(l),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 ee,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((n,s)=>{this.removeFieldLength(t,s,this._documentCount,n)}),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:n,batchWait:s}=this._options.autoVacuum;this.conditionalVacuum({batchSize:n,batchWait:s},{minDirtCount:t,minDirtFactor:e})}discardAll(e){const t=this._options.autoVacuum;try{this._options.autoVacuum=!1;for(const n of e)this.discard(n)}finally{this._options.autoVacuum=t}this.maybeAutoVacuum()}replace(e){const{idField:t,extractField:n}=this._options,s=n(e,t);this.discard(s),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 n=this._enqueuedVacuumConditions;return this._enqueuedVacuumConditions=Ue,this.performVacuuming(e,n)}),this._enqueuedVacuum)):this.vacuumConditionsMet(t)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(e),this._currentVacuum)}async performVacuuming(e,t){const n=this._dirtCount;if(this.vacuumConditionsMet(t)){const s=e.batchSize||Je.batchSize,r=e.batchWait||Je.batchWait;let i=1;for(const[o,l]of this._index){for(const[c,f]of l)for(const[v]of f)this._documentIds.has(v)||(f.size<=1?l.delete(c):f.delete(v));this._index.get(o).size===0&&this._index.delete(o),i%s===0&&await new Promise(c=>setTimeout(c,r)),i+=1}this._dirtCount-=n}await null,this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null}vacuumConditionsMet(e){if(e==null)return!0;let{minDirtCount:t,minDirtFactor:n}=e;return t=t||$e.minDirtCount,n=n||$e.minDirtFactor,this.dirtCount>=t&&this.dirtFactor>=n}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{searchOptions:n}=this._options,s={...n,...t},r=this.executeQuery(e,t),i=[];for(const[o,{score:l,terms:c,match:f}]of r){const v=c.length||1,h={id:this._documentIds.get(o),score:l*v,terms:Object.keys(f),queryTerms:c,match:f};Object.assign(h,this._storedFields.get(o)),(s.filter==null||s.filter(h))&&i.push(h)}return e===ue.wildcard&&s.boostDocument==null||i.sort(mt),i}autoSuggest(e,t={}){t={...this._options.autoSuggestOptions,...t};const n=new Map;for(const{score:r,terms:i}of this.search(e,t)){const o=i.join(" "),l=n.get(o);l!=null?(l.score+=r,l.count+=1):n.set(o,{score:r,terms:i,count:1})}const s=[];for(const[r,{score:i,terms:o,count:l}]of n)s.push({suggestion:r,terms:o,score:i/l});return s.sort(mt),s}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 async loadJSONAsync(e,t){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(Ve.hasOwnProperty(e))return Pe(Ve,e);throw new Error(`MiniSearch: unknown option "${e}"`)}static loadJS(e,t){const{index:n,documentIds:s,fieldLength:r,storedFields:i,serializationVersion:o}=e,l=this.instantiateMiniSearch(e,t);l._documentIds=Ie(s),l._fieldLength=Ie(r),l._storedFields=Ie(i);for(const[c,f]of l._documentIds)l._idToShortId.set(f,c);for(const[c,f]of n){const v=new Map;for(const h of Object.keys(f)){let b=f[h];o===1&&(b=b.ds),v.set(parseInt(h,10),Ie(b))}l._index.set(c,v)}return l}static async loadJSAsync(e,t){const{index:n,documentIds:s,fieldLength:r,storedFields:i,serializationVersion:o}=e,l=this.instantiateMiniSearch(e,t);l._documentIds=await ke(s),l._fieldLength=await ke(r),l._storedFields=await ke(i);for(const[f,v]of l._documentIds)l._idToShortId.set(v,f);let c=0;for(const[f,v]of n){const h=new Map;for(const b of Object.keys(v)){let y=v[b];o===1&&(y=y.ds),h.set(parseInt(b,10),await ke(y))}++c%1e3===0&&await Ft(0),l._index.set(f,h)}return l}static instantiateMiniSearch(e,t){const{documentCount:n,nextId:s,fieldIds:r,averageFieldLength:i,dirtCount:o,serializationVersion:l}=e;if(l!==1&&l!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");const c=new ue(t);return c._documentCount=n,c._nextId=s,c._idToShortId=new Map,c._fieldIds=r,c._avgFieldLength=i,c._dirtCount=o||0,c._index=new ee,c}executeQuery(e,t={}){if(e===ue.wildcard)return this.executeWildcardQuery(t);if(typeof e!="string"){const h={...t,...e,queries:void 0},b=e.queries.map(y=>this.executeQuery(y,h));return this.combineResults(b,h.combineWith)}const{tokenize:n,processTerm:s,searchOptions:r}=this._options,i={tokenize:n,processTerm:s,...r,...t},{tokenize:o,processTerm:l}=i,v=o(e).flatMap(h=>l(h)).filter(h=>!!h).map(Hn(i)).map(h=>this.executeQuerySpec(h,i));return this.combineResults(v,i.combineWith)}executeQuerySpec(e,t){const n={...this._options.searchOptions,...t},s=(n.fields||this._options.fields).reduce((x,w)=>({...x,[w]:Pe(n.boost,w)||1}),{}),{boostDocument:r,weights:i,maxFuzzy:o,bm25:l}=n,{fuzzy:c,prefix:f}={...ht.weights,...i},v=this._index.get(e.term),h=this.termResults(e.term,e.term,1,e.termBoost,v,s,r,l);let b,y;if(e.prefix&&(b=this._index.atPrefix(e.term)),e.fuzzy){const x=e.fuzzy===!0?.2:e.fuzzy,w=x<1?Math.min(o,Math.round(e.term.length*x)):x;w&&(y=this._index.fuzzyGet(e.term,w))}if(b)for(const[x,w]of b){const R=x.length-e.term.length;if(!R)continue;y==null||y.delete(x);const A=f*x.length/(x.length+.3*R);this.termResults(e.term,x,A,e.termBoost,w,s,r,l,h)}if(y)for(const x of y.keys()){const[w,R]=y.get(x);if(!R)continue;const A=c*x.length/(x.length+R);this.termResults(e.term,x,A,e.termBoost,w,s,r,l,h)}return h}executeWildcardQuery(e){const t=new Map,n={...this._options.searchOptions,...e};for(const[s,r]of this._documentIds){const i=n.boostDocument?n.boostDocument(r,"",this._storedFields.get(s)):1;t.set(s,{score:i,terms:[],match:{}})}return t}combineResults(e,t=Ge){if(e.length===0)return new Map;const n=t.toLowerCase(),s=Un[n];if(!s)throw new Error(`Invalid combination operator: ${t}`);return e.reduce(s)||new Map}toJSON(){const e=[];for(const[t,n]of this._index){const s={};for(const[r,i]of n)s[r]=Object.fromEntries(i);e.push([t,s])}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,n,s,r,i,o,l,c=new Map){if(r==null)return c;for(const f of Object.keys(i)){const v=i[f],h=this._fieldIds[f],b=r.get(h);if(b==null)continue;let y=b.size;const x=this._avgFieldLength[h];for(const w of b.keys()){if(!this._documentIds.has(w)){this.removeTerm(h,w,t),y-=1;continue}const R=o?o(this._documentIds.get(w),t,this._storedFields.get(w)):1;if(!R)continue;const A=b.get(w),J=this._fieldLength.get(w)[h],Q=Gn(A,y,this._documentCount,J,x,l),K=n*s*v*R*Q,j=c.get(w);if(j){j.score+=K,Yn(j.terms,e);const B=Pe(j.match,t);B?B.push(f):j.match[t]=[f]}else c.set(w,{score:K,terms:[e],match:{[t]:[f]}})}}return c}addTerm(e,t,n){const s=this._index.fetch(n,vt);let r=s.get(e);if(r==null)r=new Map,r.set(t,1),s.set(e,r);else{const i=r.get(t);r.set(t,(i||0)+1)}}removeTerm(e,t,n){if(!this._index.has(n)){this.warnDocumentChanged(t,e,n);return}const s=this._index.fetch(n,vt),r=s.get(e);r==null||r.get(t)==null?this.warnDocumentChanged(t,e,n):r.get(t)<=1?r.size<=1?s.delete(e):r.delete(t):r.set(t,r.get(t)-1),this._index.get(n).size===0&&this._index.delete(n)}warnDocumentChanged(e,t,n){for(const s of Object.keys(this._fieldIds))if(this._fieldIds[s]===t){this._options.logger("warn",`MiniSearch: document with ID ${this._documentIds.get(e)} has changed before removal: term "${n}" was not present in field "${s}". 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,n,s){let r=this._fieldLength.get(e);r==null&&this._fieldLength.set(e,r=[]),r[t]=s;const o=(this._avgFieldLength[t]||0)*n+s;this._avgFieldLength[t]=o/(n+1)}removeFieldLength(e,t,n,s){if(n===1){this._avgFieldLength[t]=0;return}const r=this._avgFieldLength[t]*n-s;this._avgFieldLength[t]=r/(n-1)}saveStoredFields(e,t){const{storeFields:n,extractField:s}=this._options;if(n==null||n.length===0)return;let r=this._storedFields.get(e);r==null&&this._storedFields.set(e,r={});for(const i of n){const o=s(t,i);o!==void 0&&(r[i]=o)}}}ue.wildcard=Symbol("*");const Pe=(a,e)=>Object.prototype.hasOwnProperty.call(a,e)?a[e]:void 0,Un={[Ge]:(a,e)=>{for(const t of e.keys()){const n=a.get(t);if(n==null)a.set(t,e.get(t));else{const{score:s,terms:r,match:i}=e.get(t);n.score=n.score+s,n.match=Object.assign(n.match,i),pt(n.terms,r)}}return a},[Nt]:(a,e)=>{const t=new Map;for(const n of e.keys()){const s=a.get(n);if(s==null)continue;const{score:r,terms:i,match:o}=e.get(n);pt(s.terms,i),t.set(n,{score:s.score+r,terms:s.terms,match:Object.assign(s.match,o)})}return t},[Jn]:(a,e)=>{for(const t of e.keys())a.delete(t);return a}},qn={k:1.2,b:.7,d:.5},Gn=(a,e,t,n,s,r)=>{const{k:i,b:o,d:l}=r;return Math.log(1+(t-e+.5)/(e+.5))*(l+a*(i+1)/(a+i*(1-o+o*n/s)))},Hn=a=>(e,t,n)=>{const s=typeof a.fuzzy=="function"?a.fuzzy(e,t,n):a.fuzzy||!1,r=typeof a.prefix=="function"?a.prefix(e,t,n):a.prefix===!0,i=typeof a.boostTerm=="function"?a.boostTerm(e,t,n):1;return{term:e,fuzzy:s,prefix:r,termBoost:i}},Ve={idField:"id",extractField:(a,e)=>a[e],tokenize:a=>a.split(Zn),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},ht={combineWith:Ge,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:qn},Qn={combineWith:Nt,prefix:(a,e,t)=>e===t.length-1},Je={batchSize:1e3,batchWait:10},Ue={minDirtFactor:.1,minDirtCount:20},$e={...Je,...Ue},Yn=(a,e)=>{a.includes(e)||a.push(e)},pt=(a,e)=>{for(const t of e)a.includes(t)||a.push(t)},mt=({score:a},{score:e})=>e-a,vt=()=>new Map,Ie=a=>{const e=new Map;for(const t of Object.keys(a))e.set(parseInt(t,10),a[t]);return e},ke=async a=>{const e=new Map;let t=0;for(const n of Object.keys(a))e.set(parseInt(n,10),a[n]),++t%1e3===0&&await Ft(0);return e},Ft=a=>new Promise(e=>setTimeout(e,a)),Zn=/[\n\r\p{Z}\p{P}]+/u;class Xn{constructor(e=10){Ae(this,"max");Ae(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 es=["aria-owns"],ts={class:"shell"},ns=["title"],ss={class:"search-actions before"},is=["title"],rs=["aria-activedescendant","aria-controls","placeholder"],as={class:"search-actions"},os=["title"],ls=["disabled","title"],cs=["id","role","aria-labelledby"],us=["id","aria-selected"],ds=["href","aria-label","onMouseenter","onFocusin","data-index"],fs={class:"titles"},hs=["innerHTML"],ps={class:"title main"},ms=["innerHTML"],vs={key:0,class:"excerpt-wrapper"},gs={key:0,class:"excerpt",inert:""},bs=["innerHTML"],ys={key:0,class:"no-results"},ws={class:"search-keyboard-shortcuts"},xs=["aria-label"],_s=["aria-label"],Ss=["aria-label"],Es=["aria-label"],Ts=zt({__name:"VPLocalSearchBox",emits:["close"],setup(a,{emit:e}){var S,C;const t=e,n=le(),s=le(),r=le(on),i=rn(),{activate:o}=Vn(n,{immediate:!0,allowOutsideClick:!0,clickOutsideDeactivates:!0,escapeDeactivates:!0}),{localeIndex:l,theme:c}=i,f=st(async()=>{var m,p,I,O,z,P,V,k,$;return ot(ue.loadJSON((I=await((p=(m=r.value)[l.value])==null?void 0:p.call(m)))==null?void 0:I.default,{fields:["title","titles","text"],storeFields:["title","titles"],searchOptions:{fuzzy:.2,prefix:!0,boost:{title:4,text:2,titles:1},...((O=c.value.search)==null?void 0:O.provider)==="local"&&((P=(z=c.value.search.options)==null?void 0:z.miniSearch)==null?void 0:P.searchOptions)},...((V=c.value.search)==null?void 0:V.provider)==="local"&&(($=(k=c.value.search.options)==null?void 0:k.miniSearch)==null?void 0:$.options)}))}),h=ge(()=>{var m,p;return((m=c.value.search)==null?void 0:m.provider)==="local"&&((p=c.value.search.options)==null?void 0:p.disableQueryPersistence)===!0}).value?fe(""):Pt("vitepress:local-search-filter",""),b=Vt("vitepress:local-search-detailed-list",((S=c.value.search)==null?void 0:S.provider)==="local"&&((C=c.value.search.options)==null?void 0:C.detailedView)===!0),y=ge(()=>{var m,p,I;return((m=c.value.search)==null?void 0:m.provider)==="local"&&(((p=c.value.search.options)==null?void 0:p.disableDetailedView)===!0||((I=c.value.search.options)==null?void 0:I.detailedView)===!1)}),x=ge(()=>{var p,I,O,z,P,V,k,$;const m=(I=(p=c.value.search)==null?void 0:p.options)!=null?I:c.value.algolia;return((V=(P=(z=(O=m==null?void 0:m.locales)==null?void 0:O[l.value])==null?void 0:z.translations)==null?void 0:P.button)==null?void 0:V.buttonText)||(($=(k=m==null?void 0:m.translations)==null?void 0:k.button)==null?void 0:$.buttonText)||"Search"});$t(()=>{y.value&&(b.value=!1)});const w=le([]),R=fe(!1);je(h,()=>{R.value=!1});const A=st(async()=>{if(s.value)return ot(new jn(s.value))},null),J=new Xn(16);jt(()=>[f.value,h.value,b.value],async([m,p,I],O,z)=>{var te,we,He,Qe,Ye,Ze;(O==null?void 0:O[0])!==m&&J.clear();let P=!1;if(z(()=>{P=!0}),!m)return;w.value=m.search(p).slice(0,16),R.value=!0;const V=I?await Promise.all(w.value.map(W=>Q(W.id))):[];if(P)return;for(const{id:W,mod:ne}of V){const se=W.slice(0,W.indexOf("#"));let Y=J.get(se);if(Y)continue;Y=new Map,J.set(se,Y);const G=(te=ne.default)!=null?te:ne;if(G!=null&&G.render||G!=null&&G.setup){const Z=Xt(G);Z.config.warnHandler=()=>{},Z.provide(en,i),Object.defineProperties(Z.config.globalProperties,{$frontmatter:{get(){return i.frontmatter.value}},$params:{get(){return i.page.value.params}}});const xe=document.createElement("div");Z.mount(xe),xe.querySelectorAll("h1, h2, h3, h4, h5, h6").forEach(de=>{var tt;const _e=(tt=de.querySelector("a"))==null?void 0:tt.getAttribute("href"),Xe=(_e==null?void 0:_e.startsWith("#"))&&_e.slice(1);if(!Xe)return;let et="";for(;(de=de.nextElementSibling)&&!/^h[1-6]$/i.test(de.tagName);)et+=de.outerHTML;Y.set(Xe,et)}),Z.unmount()}if(P)return}const k=new Set;if(w.value=w.value.map(W=>{var Z;const[ne,se]=W.id.split("#"),Y=J.get(ne),G=(Z=Y==null?void 0:Y.get(se))!=null?Z:"";for(const xe in W.match)k.add(xe);return{...W,text:G}}),await he(),P)return;await new Promise(W=>{var ne;(ne=A.value)==null||ne.unmark({done:()=>{var se;(se=A.value)==null||se.markRegExp(T(k),{done:W})}})});const $=(He=(we=n.value)==null?void 0:we.querySelectorAll(".result .excerpt"))!=null?He:[];for(const W of $)(Qe=W.querySelector('mark[data-markjs="true"]'))==null||Qe.scrollIntoView({block:"center"});(Ze=(Ye=s.value)==null?void 0:Ye.firstElementChild)==null||Ze.scrollIntoView({block:"start"})},{debounce:200,immediate:!0});async function Q(m){const p=tn(m.slice(0,m.indexOf("#")));try{if(!p)throw new Error(`Cannot find file for id: ${m}`);return{id:m,mod:await import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1750342481399/files/.vitepress/dist"+u}return u})(p))}}catch(I){return console.error(I),{id:m,mod:{}}}}const K=fe(),j=ge(()=>{var m;return((m=h.value)==null?void 0:m.length)<=0});function B(m=!0){var p,I;(p=K.value)==null||p.focus(),m&&((I=K.value)==null||I.select())}Me(()=>{B()});function ye(m){m.pointerType==="mouse"&&B()}const M=fe(-1),U=fe(!0);je(w,m=>{M.value=m.length?0:-1,q()});function q(){he(()=>{const m=document.querySelector(".result.selected");m==null||m.scrollIntoView({block:"nearest"})})}Se("ArrowUp",m=>{m.preventDefault(),M.value--,M.value<0&&(M.value=w.value.length-1),U.value=!0,q()}),Se("ArrowDown",m=>{m.preventDefault(),M.value++,M.value>=w.value.length&&(M.value=0),U.value=!0,q()});const N=Bt();Se("Enter",m=>{if(m.isComposing||m.target instanceof HTMLButtonElement&&m.target.type!=="submit")return;const p=w.value[M.value];if(m.target instanceof HTMLInputElement&&!p){m.preventDefault();return}p&&(N.go(p.id),t("close"))}),Se("Escape",()=>{t("close")});const d=an({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)}),Wt("popstate",m=>{m.preventDefault(),t("close")});const g=Kt(Jt?document.body:null);Me(()=>{he(()=>{g.value=!0,he().then(()=>o())})}),Ut(()=>{g.value=!1});function E(){h.value="",he().then(()=>B(!1))}function T(m){return new RegExp([...m].sort((p,I)=>I.length-p.length).map(p=>`(${nn(p)})`).join("|"),"gi")}function F(m){var O;if(!U.value)return;const p=(O=m.target)==null?void 0:O.closest(".result"),I=Number.parseInt(p==null?void 0:p.dataset.index);I>=0&&I!==M.value&&(M.value=I),U.value=!1}return(m,p)=>{var I,O,z,P,V;return H(),qt(Zt,{to:"body"},[_("div",{ref_key:"el",ref:n,role:"button","aria-owns":(I=w.value)!=null&&I.length?"localsearch-list":void 0,"aria-expanded":"true","aria-haspopup":"listbox","aria-labelledby":"localsearch-label",class:"VPLocalSearchBox"},[_("div",{class:"backdrop",onClick:p[0]||(p[0]=k=>m.$emit("close"))}),_("div",ts,[_("form",{class:"search-bar",onPointerup:p[4]||(p[4]=k=>ye(k)),onSubmit:p[5]||(p[5]=Gt(()=>{},["prevent"]))},[_("label",{title:x.value,id:"localsearch-label",for:"localsearch-input"},p[7]||(p[7]=[_("span",{"aria-hidden":"true",class:"vpi-search search-icon local-search-icon"},null,-1)]),8,ns),_("div",ss,[_("button",{class:"back-button",title:L(d)("modal.backButtonTitle"),onClick:p[1]||(p[1]=k=>m.$emit("close"))},p[8]||(p[8]=[_("span",{class:"vpi-arrow-left local-search-icon"},null,-1)]),8,is)]),Ht(_("input",{ref_key:"searchInput",ref:K,"onUpdate:modelValue":p[2]||(p[2]=k=>Yt(h)?h.value=k:null),"aria-activedescendant":M.value>-1?"localsearch-item-"+M.value:void 0,"aria-autocomplete":"both","aria-controls":(O=w.value)!=null&&O.length?"localsearch-list":void 0,"aria-labelledby":"localsearch-label",autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:"search-input",id:"localsearch-input",enterkeyhint:"go",maxlength:"64",placeholder:x.value,spellcheck:"false",type:"search"},null,8,rs),[[Qt,L(h)]]),_("div",as,[y.value?Ee("",!0):(H(),X("button",{key:0,class:it(["toggle-layout-button",{"detailed-list":L(b)}]),type:"button",title:L(d)("modal.displayDetails"),onClick:p[3]||(p[3]=k=>M.value>-1&&(b.value=!L(b)))},p[9]||(p[9]=[_("span",{class:"vpi-layout-list local-search-icon"},null,-1)]),10,os)),_("button",{class:"clear-button",type:"reset",disabled:j.value,title:L(d)("modal.resetButtonTitle"),onClick:E},p[10]||(p[10]=[_("span",{class:"vpi-delete local-search-icon"},null,-1)]),8,ls)])],32),_("ul",{ref_key:"resultsEl",ref:s,id:(z=w.value)!=null&&z.length?"localsearch-list":void 0,role:(P=w.value)!=null&&P.length?"listbox":void 0,"aria-labelledby":(V=w.value)!=null&&V.length?"localsearch-label":void 0,class:"results",onMousemove:F},[(H(!0),X(at,null,rt(w.value,(k,$)=>(H(),X("li",{key:k.id,id:"localsearch-item-"+$,"aria-selected":M.value===$?"true":"false",role:"option"},[_("a",{href:k.id,class:it(["result",{selected:M.value===$}]),"aria-label":[...k.titles,k.title].join(" > "),onMouseenter:te=>!U.value&&(M.value=$),onFocusin:te=>M.value=$,onClick:p[6]||(p[6]=te=>m.$emit("close")),"data-index":$},[_("div",null,[_("div",fs,[p[12]||(p[12]=_("span",{class:"title-icon"},"#",-1)),(H(!0),X(at,null,rt(k.titles,(te,we)=>(H(),X("span",{key:we,class:"title"},[_("span",{class:"text",innerHTML:te},null,8,hs),p[11]||(p[11]=_("span",{class:"vpi-chevron-right local-search-icon"},null,-1))]))),128)),_("span",ps,[_("span",{class:"text",innerHTML:k.title},null,8,ms)])]),L(b)?(H(),X("div",vs,[k.text?(H(),X("div",gs,[_("div",{class:"vp-doc",innerHTML:k.text},null,8,bs)])):Ee("",!0),p[13]||(p[13]=_("div",{class:"excerpt-gradient-bottom"},null,-1)),p[14]||(p[14]=_("div",{class:"excerpt-gradient-top"},null,-1))])):Ee("",!0)])],42,ds)],8,us))),128)),L(h)&&!w.value.length&&R.value?(H(),X("li",ys,[pe(me(L(d)("modal.noResultsText"))+' "',1),_("strong",null,me(L(h)),1),p[15]||(p[15]=pe('" '))])):Ee("",!0)],40,cs),_("div",ws,[_("span",null,[_("kbd",{"aria-label":L(d)("modal.footer.navigateUpKeyAriaLabel")},p[16]||(p[16]=[_("span",{class:"vpi-arrow-up navigate-icon"},null,-1)]),8,xs),_("kbd",{"aria-label":L(d)("modal.footer.navigateDownKeyAriaLabel")},p[17]||(p[17]=[_("span",{class:"vpi-arrow-down navigate-icon"},null,-1)]),8,_s),pe(" "+me(L(d)("modal.footer.navigateText")),1)]),_("span",null,[_("kbd",{"aria-label":L(d)("modal.footer.selectKeyAriaLabel")},p[18]||(p[18]=[_("span",{class:"vpi-corner-down-left navigate-icon"},null,-1)]),8,Ss),pe(" "+me(L(d)("modal.footer.selectText")),1)]),_("span",null,[_("kbd",{"aria-label":L(d)("modal.footer.closeKeyAriaLabel")},"esc",8,Es),pe(" "+me(L(d)("modal.footer.closeText")),1)])])])],8,es)])}}}),Cs=sn(Ts,[["__scopeId","data-v-2631dcb4"]]);export{Cs as default};
1
+ var Ot=Object.defineProperty;var Ct=(a,e,t)=>e in a?Ot(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var Ae=(a,e,t)=>Ct(a,typeof e!="symbol"?e+"":e,t);import{W as Rt,B as le,h as ge,aA as nt,aB as At,aC as Mt,aD as Lt,z as je,aE as Dt,d as zt,aF as st,x as fe,aG as Pt,aH as Vt,y as $t,aI as jt,p as Me,R as he,Q as Se,ac as Bt,a8 as Wt,X as Kt,D as Jt,a0 as Ut,b as qt,o as H,j as _,a1 as Gt,a6 as Ht,k as L,a7 as Qt,aJ as Yt,c as X,e as Ee,n as it,H as rt,G as at,a as pe,t as me,ab as Zt,aK as ot,aL as Xt,ag as en,al as tn,aM as nn,_ as sn}from"./framework.C9O3MI31.js";import{u as rn,c as an}from"./theme.CeAzou44.js";const on={root:()=>Rt(()=>import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1750344534248/files/.vitepress/dist"+u}return u})("./@localSearchIndexroot.C1FXYcv1.js")),[])};var gt=["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])"],Ne=gt.join(","),bt=typeof Element>"u",re=bt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Fe=!bt&&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},Oe=function a(e,t){var n;t===void 0&&(t=!0);var s=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),r=s===""||s==="true",i=r||t&&e&&a(e.parentNode);return i},ln=function(e){var t,n=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return n===""||n==="true"},yt=function(e,t,n){if(Oe(e))return[];var s=Array.prototype.slice.apply(e.querySelectorAll(Ne));return t&&re.call(e,Ne)&&s.unshift(e),s=s.filter(n),s},wt=function a(e,t,n){for(var s=[],r=Array.from(e);r.length;){var i=r.shift();if(!Oe(i,!1))if(i.tagName==="SLOT"){var o=i.assignedElements(),l=o.length?o:i.children,c=a(l,!0,n);n.flatten?s.push.apply(s,c):s.push({scopeParent:i,candidates:c})}else{var f=re.call(i,Ne);f&&n.filter(i)&&(t||!e.includes(i))&&s.push(i);var v=i.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(i),h=!Oe(v,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(v&&h){var b=a(v===!0?i.children:v.children,!0,n);n.flatten?s.push.apply(s,b):s.push({scopeParent:i,candidates:b})}else r.unshift.apply(r,i.children)}}return s},xt=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)||ln(e))&&!xt(e)?0:e.tabIndex},cn=function(e,t){var n=ie(e);return n<0&&t&&!xt(e)?0:n},un=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},_t=function(e){return e.tagName==="INPUT"},dn=function(e){return _t(e)&&e.type==="hidden"},fn=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return t},hn=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},pn=function(e){if(!e.name)return!0;var t=e.form||Fe(e),n=function(o){return t.querySelectorAll('input[type="radio"][name="'+o+'"]')},s;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")s=n(window.CSS.escape(e.name));else try{s=n(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=hn(s,e.form);return!r||r===e},mn=function(e){return _t(e)&&e.type==="radio"},vn=function(e){return mn(e)&&!pn(e)},gn=function(e){var t,n=e&&Fe(e),s=(t=n)===null||t===void 0?void 0:t.host,r=!1;if(n&&n!==e){var i,o,l;for(r=!!((i=s)!==null&&i!==void 0&&(o=i.ownerDocument)!==null&&o!==void 0&&o.contains(s)||e!=null&&(l=e.ownerDocument)!==null&&l!==void 0&&l.contains(e));!r&&s;){var c,f,v;n=Fe(s),s=(c=n)===null||c===void 0?void 0:c.host,r=!!((f=s)!==null&&f!==void 0&&(v=f.ownerDocument)!==null&&v!==void 0&&v.contains(s))}}return r},lt=function(e){var t=e.getBoundingClientRect(),n=t.width,s=t.height;return n===0&&s===0},bn=function(e,t){var n=t.displayCheck,s=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(!n||n==="full"||n==="legacy-full"){if(typeof s=="function"){for(var o=e;e;){var l=e.parentElement,c=Fe(e);if(l&&!l.shadowRoot&&s(l)===!0)return lt(e);e.assignedSlot?e=e.assignedSlot:!l&&c!==e.ownerDocument?e=c.host:e=l}e=o}if(gn(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return lt(e);return!1},yn=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var n=0;n<t.children.length;n++){var s=t.children.item(n);if(s.tagName==="LEGEND")return re.call(t,"fieldset[disabled] *")?!0:!s.contains(e)}return!0}t=t.parentElement}return!1},Ce=function(e,t){return!(t.disabled||Oe(t)||dn(t)||bn(t,e)||fn(t)||yn(t))},Be=function(e,t){return!(vn(t)||ie(t)<0||!Ce(e,t))},wn=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},xn=function a(e){var t=[],n=[];return e.forEach(function(s,r){var i=!!s.scopeParent,o=i?s.scopeParent:s,l=cn(o,i),c=i?a(s.candidates):o;l===0?i?t.push.apply(t,c):t.push(o):n.push({documentOrder:r,tabIndex:l,item:s,isScope:i,content:c})}),n.sort(un).reduce(function(s,r){return r.isScope?s.push.apply(s,r.content):s.push(r.content),s},[]).concat(t)},_n=function(e,t){t=t||{};var n;return t.getShadowRoot?n=wt([e],t.includeContainer,{filter:Be.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:wn}):n=yt(e,t.includeContainer,Be.bind(null,t)),xn(n)},Sn=function(e,t){t=t||{};var n;return t.getShadowRoot?n=wt([e],t.includeContainer,{filter:Ce.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):n=yt(e,t.includeContainer,Ce.bind(null,t)),n},ae=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return re.call(e,Ne)===!1?!1:Be(t,e)},En=gt.concat("iframe").join(","),Le=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return re.call(e,En)===!1?!1:Ce(t,e)};function We(a,e){(e==null||e>a.length)&&(e=a.length);for(var t=0,n=Array(e);t<e;t++)n[t]=a[t];return n}function Tn(a){if(Array.isArray(a))return We(a)}function In(a,e,t){return(e=Cn(e))in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function kn(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function Nn(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ct(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),t.push.apply(t,n)}return t}function ut(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ct(Object(t),!0).forEach(function(n){In(a,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):ct(Object(t)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(t,n))})}return a}function Fn(a){return Tn(a)||kn(a)||Rn(a)||Nn()}function On(a,e){if(typeof a!="object"||!a)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var n=t.call(a,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}function Cn(a){var e=On(a,"string");return typeof e=="symbol"?e:e+""}function Rn(a,e){if(a){if(typeof a=="string")return We(a,e);var t={}.toString.call(a).slice(8,-1);return t==="Object"&&a.constructor&&(t=a.constructor.name),t==="Map"||t==="Set"?Array.from(a):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?We(a,e):void 0}}var dt={activateTrap:function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n._setPausedState(!0)}var s=e.indexOf(t);s===-1||e.splice(s,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)}},An=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Mn=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},be=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},Ln=function(e){return be(e)&&!e.shiftKey},Dn=function(e){return be(e)&&e.shiftKey},ft=function(e){return setTimeout(e,0)},ve=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];return typeof e=="function"?e.apply(void 0,n):e},Te=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},zn=[],Pn=function(e,t){var n=(t==null?void 0:t.document)||document,s=(t==null?void 0:t.trapStack)||zn,r=ut({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Ln,isKeyBackward:Dn},t),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},o,l=function(u,d,g){return u&&u[d]!==void 0?u[d]:r[g||d]},c=function(u,d){var g=typeof(d==null?void 0:d.composedPath)=="function"?d.composedPath():void 0;return i.containerGroups.findIndex(function(E){var T=E.container,F=E.tabbableNodes;return T.contains(u)||(g==null?void 0:g.includes(T))||F.find(function(S){return S===u})})},f=function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},g=d.hasFallback,E=g===void 0?!1:g,T=d.params,F=T===void 0?[]:T,S=r[u];if(typeof S=="function"&&(S=S.apply(void 0,Fn(F))),S===!0&&(S=void 0),!S){if(S===void 0||S===!1)return S;throw new Error("`".concat(u,"` was specified but was not a node, or did not return a node"))}var C=S;if(typeof S=="string"){try{C=n.querySelector(S)}catch(m){throw new Error("`".concat(u,'` appears to be an invalid selector; error="').concat(m.message,'"'))}if(!C&&!E)throw new Error("`".concat(u,"` as selector refers to no known node"))}return C},v=function(){var u=f("initialFocus",{hasFallback:!0});if(u===!1)return!1;if(u===void 0||u&&!Le(u,r.tabbableOptions))if(c(n.activeElement)>=0)u=n.activeElement;else{var d=i.tabbableGroups[0],g=d&&d.firstTabbableNode;u=g||f("fallbackFocus")}else u===null&&(u=f("fallbackFocus"));if(!u)throw new Error("Your focus-trap needs to have at least one focusable element");return u},h=function(){if(i.containerGroups=i.containers.map(function(u){var d=_n(u,r.tabbableOptions),g=Sn(u,r.tabbableOptions),E=d.length>0?d[0]:void 0,T=d.length>0?d[d.length-1]:void 0,F=g.find(function(m){return ae(m)}),S=g.slice().reverse().find(function(m){return ae(m)}),C=!!d.find(function(m){return ie(m)>0});return{container:u,tabbableNodes:d,focusableNodes:g,posTabIndexesFound:C,firstTabbableNode:E,lastTabbableNode:T,firstDomTabbableNode:F,lastDomTabbableNode:S,nextTabbableNode:function(p){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,O=d.indexOf(p);return O<0?I?g.slice(g.indexOf(p)+1).find(function(z){return ae(z)}):g.slice(0,g.indexOf(p)).reverse().find(function(z){return ae(z)}):d[O+(I?1:-1)]}}}),i.tabbableGroups=i.containerGroups.filter(function(u){return u.tabbableNodes.length>0}),i.tabbableGroups.length<=0&&!f("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.")},b=function(u){var d=u.activeElement;if(d)return d.shadowRoot&&d.shadowRoot.activeElement!==null?b(d.shadowRoot):d},y=function(u){if(u!==!1&&u!==b(document)){if(!u||!u.focus){y(v());return}u.focus({preventScroll:!!r.preventScroll}),i.mostRecentlyFocusedNode=u,An(u)&&u.select()}},x=function(u){var d=f("setReturnFocus",{params:[u]});return d||(d===!1?!1:u)},w=function(u){var d=u.target,g=u.event,E=u.isBackward,T=E===void 0?!1:E;d=d||Te(g),h();var F=null;if(i.tabbableGroups.length>0){var S=c(d,g),C=S>=0?i.containerGroups[S]:void 0;if(S<0)T?F=i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:F=i.tabbableGroups[0].firstTabbableNode;else if(T){var m=i.tabbableGroups.findIndex(function(V){var k=V.firstTabbableNode;return d===k});if(m<0&&(C.container===d||Le(d,r.tabbableOptions)&&!ae(d,r.tabbableOptions)&&!C.nextTabbableNode(d,!1))&&(m=S),m>=0){var p=m===0?i.tabbableGroups.length-1:m-1,I=i.tabbableGroups[p];F=ie(d)>=0?I.lastTabbableNode:I.lastDomTabbableNode}else be(g)||(F=C.nextTabbableNode(d,!1))}else{var O=i.tabbableGroups.findIndex(function(V){var k=V.lastTabbableNode;return d===k});if(O<0&&(C.container===d||Le(d,r.tabbableOptions)&&!ae(d,r.tabbableOptions)&&!C.nextTabbableNode(d))&&(O=S),O>=0){var z=O===i.tabbableGroups.length-1?0:O+1,P=i.tabbableGroups[z];F=ie(d)>=0?P.firstTabbableNode:P.firstDomTabbableNode}else be(g)||(F=C.nextTabbableNode(d))}}else F=f("fallbackFocus");return F},R=function(u){var d=Te(u);if(!(c(d,u)>=0)){if(ve(r.clickOutsideDeactivates,u)){o.deactivate({returnFocus:r.returnFocusOnDeactivate});return}ve(r.allowOutsideClick,u)||u.preventDefault()}},A=function(u){var d=Te(u),g=c(d,u)>=0;if(g||d instanceof Document)g&&(i.mostRecentlyFocusedNode=d);else{u.stopImmediatePropagation();var E,T=!0;if(i.mostRecentlyFocusedNode)if(ie(i.mostRecentlyFocusedNode)>0){var F=c(i.mostRecentlyFocusedNode),S=i.containerGroups[F].tabbableNodes;if(S.length>0){var C=S.findIndex(function(m){return m===i.mostRecentlyFocusedNode});C>=0&&(r.isKeyForward(i.recentNavEvent)?C+1<S.length&&(E=S[C+1],T=!1):C-1>=0&&(E=S[C-1],T=!1))}}else i.containerGroups.some(function(m){return m.tabbableNodes.some(function(p){return ie(p)>0})})||(T=!1);else T=!1;T&&(E=w({target:i.mostRecentlyFocusedNode,isBackward:r.isKeyBackward(i.recentNavEvent)})),y(E||i.mostRecentlyFocusedNode||v())}i.recentNavEvent=void 0},J=function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;i.recentNavEvent=u;var g=w({event:u,isBackward:d});g&&(be(u)&&u.preventDefault(),y(g))},Q=function(u){(r.isKeyForward(u)||r.isKeyBackward(u))&&J(u,r.isKeyBackward(u))},K=function(u){Mn(u)&&ve(r.escapeDeactivates,u)!==!1&&(u.preventDefault(),o.deactivate())},j=function(u){var d=Te(u);c(d,u)>=0||ve(r.clickOutsideDeactivates,u)||ve(r.allowOutsideClick,u)||(u.preventDefault(),u.stopImmediatePropagation())},B=function(){if(i.active)return dt.activateTrap(s,o),i.delayInitialFocusTimer=r.delayInitialFocus?ft(function(){y(v())}):y(v()),n.addEventListener("focusin",A,!0),n.addEventListener("mousedown",R,{capture:!0,passive:!1}),n.addEventListener("touchstart",R,{capture:!0,passive:!1}),n.addEventListener("click",j,{capture:!0,passive:!1}),n.addEventListener("keydown",Q,{capture:!0,passive:!1}),n.addEventListener("keydown",K),o},ye=function(){if(i.active)return n.removeEventListener("focusin",A,!0),n.removeEventListener("mousedown",R,!0),n.removeEventListener("touchstart",R,!0),n.removeEventListener("click",j,!0),n.removeEventListener("keydown",Q,!0),n.removeEventListener("keydown",K),o},M=function(u){var d=u.some(function(g){var E=Array.from(g.removedNodes);return E.some(function(T){return T===i.mostRecentlyFocusedNode})});d&&y(v())},U=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(M):void 0,q=function(){U&&(U.disconnect(),i.active&&!i.paused&&i.containers.map(function(u){U.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=l(u,"onActivate"),g=l(u,"onPostActivate"),E=l(u,"checkCanFocusTrap");E||h(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=n.activeElement,d==null||d();var T=function(){E&&h(),B(),q(),g==null||g()};return E?(E(i.containers.concat()).then(T,T),this):(T(),this)},deactivate:function(u){if(!i.active)return this;var d=ut({onDeactivate:r.onDeactivate,onPostDeactivate:r.onPostDeactivate,checkCanReturnFocus:r.checkCanReturnFocus},u);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,ye(),i.active=!1,i.paused=!1,q(),dt.deactivateTrap(s,o);var g=l(d,"onDeactivate"),E=l(d,"onPostDeactivate"),T=l(d,"checkCanReturnFocus"),F=l(d,"returnFocus","returnFocusOnDeactivate");g==null||g();var S=function(){ft(function(){F&&y(x(i.nodeFocusedBeforeActivation)),E==null||E()})};return F&&T?(T(x(i.nodeFocusedBeforeActivation)).then(S,S),this):(S(),this)},pause:function(u){return i.active?(i.manuallyPaused=!0,this._setPausedState(!0,u)):this},unpause:function(u){return i.active?(i.manuallyPaused=!1,s[s.length-1]!==this?this:this._setPausedState(!1,u)):this},updateContainerElements:function(u){var d=[].concat(u).filter(Boolean);return i.containers=d.map(function(g){return typeof g=="string"?n.querySelector(g):g}),i.active&&h(),q(),this}},Object.defineProperties(o,{_isManuallyPaused:{value:function(){return i.manuallyPaused}},_setPausedState:{value:function(u,d){if(i.paused===u)return this;if(i.paused=u,u){var g=l(d,"onPause"),E=l(d,"onPostPause");g==null||g(),ye(),q(),E==null||E()}else{var T=l(d,"onUnpause"),F=l(d,"onPostUnpause");T==null||T(),h(),B(),q(),F==null||F()}return this}}}),o.updateContainerElements(e),o};function Vn(a,e={}){let t;const{immediate:n,...s}=e,r=le(!1),i=le(!1),o=h=>t&&t.activate(h),l=h=>t&&t.deactivate(h),c=()=>{t&&(t.pause(),i.value=!0)},f=()=>{t&&(t.unpause(),i.value=!1)},v=ge(()=>{const h=nt(a);return At(h).map(b=>{const y=nt(b);return typeof y=="string"?y:Mt(y)}).filter(Lt)});return je(v,h=>{h.length&&(t=Pn(h,{...s,onActivate(){r.value=!0,e.onActivate&&e.onActivate()},onDeactivate(){r.value=!1,e.onDeactivate&&e.onDeactivate()}}),n&&o())},{flush:"post"}),Dt(()=>l()),{hasFocus:r,isPaused:i,activate:o,deactivate:l,pause:c,unpause:f}}class ce{constructor(e,t=!0,n=[],s=5e3){this.ctx=e,this.iframes=t,this.exclude=n,this.iframesTimeout=s}static matches(e,t){const n=typeof t=="string"?[t]:t,s=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(s){let r=!1;return n.every(i=>s.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(n=>{const s=t.filter(r=>r.contains(n)).length>0;t.indexOf(n)===-1&&!s&&t.push(n)}),t}getIframeContents(e,t,n=()=>{}){let s;try{const r=e.contentWindow;if(s=r.document,!r||!s)throw new Error("iframe inaccessible")}catch{n()}s&&t(s)}isIframeBlank(e){const t="about:blank",n=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&n!==t&&n}observeIframeLoad(e,t,n){let s=!1,r=null;const i=()=>{if(!s){s=!0,clearTimeout(r);try{this.isIframeBlank(e)||(e.removeEventListener("load",i),this.getIframeContents(e,t,n))}catch{n()}}};e.addEventListener("load",i),r=setTimeout(i,this.iframesTimeout)}onIframeReady(e,t,n){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,n):this.getIframeContents(e,t,n):this.observeIframeLoad(e,t,n)}catch{n()}}waitForIframes(e,t){let n=0;this.forEachIframe(e,()=>!0,s=>{n++,this.waitForIframes(s.querySelector("html"),()=>{--n||t()})},s=>{s||t()})}forEachIframe(e,t,n,s=()=>{}){let r=e.querySelectorAll("iframe"),i=r.length,o=0;r=Array.prototype.slice.call(r);const l=()=>{--i<=0&&s(o)};i||l(),r.forEach(c=>{ce.matches(c,this.exclude)?l():this.onIframeReady(c,f=>{t(c)&&(o++,n(f)),l()},l)})}createIterator(e,t,n){return document.createNodeIterator(e,t,n,!1)}createInstanceOnIframe(e){return new ce(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,n){const s=e.compareDocumentPosition(n),r=Node.DOCUMENT_POSITION_PRECEDING;if(s&r)if(t!==null){const i=t.compareDocumentPosition(n),o=Node.DOCUMENT_POSITION_FOLLOWING;if(i&o)return!0}else return!0;return!1}getIteratorNode(e){const t=e.previousNode();let n;return t===null?n=e.nextNode():n=e.nextNode()&&e.nextNode(),{prevNode:t,node:n}}checkIframeFilter(e,t,n,s){let r=!1,i=!1;return s.forEach((o,l)=>{o.val===n&&(r=l,i=o.handled)}),this.compareNodeIframe(e,t,n)?(r===!1&&!i?s.push({val:n,handled:!0}):r!==!1&&!i&&(s[r].handled=!0),!0):(r===!1&&s.push({val:n,handled:!1}),!1)}handleOpenIframes(e,t,n,s){e.forEach(r=>{r.handled||this.getIframeContents(r.val,i=>{this.createInstanceOnIframe(i).forEachNode(t,n,s)})})}iterateThroughNodes(e,t,n,s,r){const i=this.createIterator(t,e,s);let o=[],l=[],c,f,v=()=>({prevNode:f,node:c}=this.getIteratorNode(i),c);for(;v();)this.iframes&&this.forEachIframe(t,h=>this.checkIframeFilter(c,f,h,o),h=>{this.createInstanceOnIframe(h).forEachNode(e,b=>l.push(b),s)}),l.push(c);l.forEach(h=>{n(h)}),this.iframes&&this.handleOpenIframes(o,e,n,s),r()}forEachNode(e,t,n,s=()=>{}){const r=this.getContexts();let i=r.length;i||s(),r.forEach(o=>{const l=()=>{this.iterateThroughNodes(e,o,t,n,()=>{--i<=0&&s()})};this.iframes?this.waitForIframes(o,l):l()})}}let $n=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 n=this.opt.log;this.opt.debug&&typeof n=="object"&&typeof n[t]=="function"&&n[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,n=this.opt.caseSensitive?"":"i",s=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),l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(i):this.escapeStr(i);o!==""&&l!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(o)}|${this.escapeStr(l)})`,`gm${n}`),s+`(${this.processSynomyms(o)}|${this.processSynomyms(l)})`+s))}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,n,s)=>{let r=s.charAt(n+1);return/[(|)\\]/.test(r)||r===""?t:t+"\0"})}createJoinersRegExp(e){let t=[];const n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&t.push(this.escapeStr(n.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",n=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 s=[];return e.split("").forEach(r=>{n.every(i=>{if(i.indexOf(r)!==-1){if(s.indexOf(i)>-1)return!1;e=e.replace(new RegExp(`[${i}]`,`gm${t}`),`[${i}]`),s.push(i)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){const t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿";let n=this.opt.accuracy,s=typeof n=="string"?n:n.value,r=typeof n=="string"?[]:n.limiters,i="";switch(r.forEach(o=>{i+=`|${this.escapeStr(o)}`}),s){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(n=>{this.opt.separateWordSearch?n.split(" ").forEach(s=>{s.trim()&&t.indexOf(s)===-1&&t.push(s)}):n.trim()&&t.indexOf(n)===-1&&t.push(n)}),{keywords:t.sort((n,s)=>s.length-n.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 n=0;return e.sort((s,r)=>s.start-r.start).forEach(s=>{let{start:r,end:i,valid:o}=this.callNoMatchOnInvalidRanges(s,n);o&&(s.start=r,s.length=i-r,t.push(s),n=i)}),t}callNoMatchOnInvalidRanges(e,t){let n,s,r=!1;return e&&typeof e.start<"u"?(n=parseInt(e.start,10),s=n+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&s-t>0&&s-n>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:n,end:s,valid:r}}checkWhitespaceRanges(e,t,n){let s,r=!0,i=n.length,o=t-i,l=parseInt(e.start,10)-o;return l=l>i?i:l,s=l+parseInt(e.length,10),s>i&&(s=i,this.log(`End range automatically set to the max value of ${i}`)),l<0||s-l<0||l>i||s>i?(r=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):n.substring(l,s).replace(/\s+/g,"")===""&&(r=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:l,end:s,valid:r}}getTextNodes(e){let t="",n=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,s=>{n.push({start:t.length,end:(t+=s.textContent).length,node:s})},s=>this.matchesExclude(s.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:n})})}matchesExclude(e){return ce.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,n){const s=this.opt.element?this.opt.element:"mark",r=e.splitText(t),i=r.splitText(n-t);let o=document.createElement(s);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,n,s,r){e.nodes.every((i,o)=>{const l=e.nodes[o+1];if(typeof l>"u"||l.start>t){if(!s(i.node))return!1;const c=t-i.start,f=(n>i.end?i.end:n)-i.start,v=e.value.substr(0,i.start),h=e.value.substr(f+i.start);if(i.node=this.wrapRangeInTextNode(i.node,c,f),e.value=v+h,e.nodes.forEach((b,y)=>{y>=o&&(e.nodes[y].start>0&&y!==o&&(e.nodes[y].start-=f),e.nodes[y].end-=f)}),n-=f,r(i.node.previousSibling,i.start),n>i.end)t=i.end;else return!1}return!0})}wrapMatches(e,t,n,s,r){const i=t===0?0:t+1;this.getTextNodes(o=>{o.nodes.forEach(l=>{l=l.node;let c;for(;(c=e.exec(l.textContent))!==null&&c[i]!=="";){if(!n(c[i],l))continue;let f=c.index;if(i!==0)for(let v=1;v<i;v++)f+=c[v].length;l=this.wrapRangeInTextNode(l,f,f+c[i].length),s(l.previousSibling),e.lastIndex=0}}),r()})}wrapMatchesAcrossElements(e,t,n,s,r){const i=t===0?0:t+1;this.getTextNodes(o=>{let l;for(;(l=e.exec(o.value))!==null&&l[i]!=="";){let c=l.index;if(i!==0)for(let v=1;v<i;v++)c+=l[v].length;const f=c+l[i].length;this.wrapRangeInMappedTextNode(o,c,f,v=>n(l[i],v),(v,h)=>{e.lastIndex=h,s(v)})}r()})}wrapRangeFromIndex(e,t,n,s){this.getTextNodes(r=>{const i=r.value.length;e.forEach((o,l)=>{let{start:c,end:f,valid:v}=this.checkWhitespaceRanges(o,i,r.value);v&&this.wrapRangeInMappedTextNode(r,c,f,h=>t(h,o,r.value.substring(c,f),l),h=>{n(h,o)})}),s()})}unwrapMatches(e){const t=e.parentNode;let n=document.createDocumentFragment();for(;e.firstChild;)n.appendChild(e.removeChild(e.firstChild));t.replaceChild(n,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 n=0,s="wrapMatches";const r=i=>{n++,this.opt.each(i)};this.opt.acrossElements&&(s="wrapMatchesAcrossElements"),this[s](e,this.opt.ignoreGroups,(i,o)=>this.opt.filter(o,i,n),r,()=>{n===0&&this.opt.noMatch(e),this.opt.done(n)})}mark(e,t){this.opt=t;let n=0,s="wrapMatches";const{keywords:r,length:i}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),o=this.opt.caseSensitive?"":"i",l=c=>{let f=new RegExp(this.createRegExp(c),`gm${o}`),v=0;this.log(`Searching with expression "${f}"`),this[s](f,1,(h,b)=>this.opt.filter(b,c,n,v),h=>{v++,n++,this.opt.each(h)},()=>{v===0&&this.opt.noMatch(c),r[i-1]===c?this.opt.done(n):l(r[r.indexOf(c)+1])})};this.opt.acrossElements&&(s="wrapMatchesAcrossElements"),i===0?this.opt.done(n):l(r[0])}markRanges(e,t){this.opt=t;let n=0,s=this.checkRanges(e);s&&s.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(s)),this.wrapRangeFromIndex(s,(r,i,o,l)=>this.opt.filter(r,i,o,l),(r,i)=>{n++,this.opt.each(r,i)},()=>{this.opt.done(n)})):this.opt.done(n)}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,n=>{this.unwrapMatches(n)},n=>{const s=ce.matches(n,t),r=this.matchesExclude(n);return!s||r?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function jn(a){const e=new $n(a);return this.mark=(t,n)=>(e.mark(t,n),this),this.markRegExp=(t,n)=>(e.markRegExp(t,n),this),this.markRanges=(t,n)=>(e.markRanges(t,n),this),this.unmark=t=>(e.unmark(t),this),this}const Bn="ENTRIES",St="KEYS",Et="VALUES",D="";class De{constructor(e,t){const n=e._tree,s=Array.from(n.keys());this.set=e,this._type=t,this._path=s.length>0?[{node:n,keys:s}]:[]}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)===D)return{done:!1,value:this.result()};const n=e.get(oe(t));return this._path.push({node:n,keys:Array.from(n.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!==D).join("")}value(){return oe(this._path).node.get(D)}result(){switch(this._type){case Et:return this.value();case St:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}}const oe=a=>a[a.length-1],Wn=(a,e,t)=>{const n=new Map;if(e===void 0)return n;const s=e.length+1,r=s+t,i=new Uint8Array(r*s).fill(t+1);for(let o=0;o<s;++o)i[o]=o;for(let o=1;o<r;++o)i[o*s]=o;return Tt(a,e,t,n,i,1,s,""),n},Tt=(a,e,t,n,s,r,i,o)=>{const l=r*i;e:for(const c of a.keys())if(c===D){const f=s[l-1];f<=t&&n.set(o,[a.get(c),f])}else{let f=r;for(let v=0;v<c.length;++v,++f){const h=c[v],b=i*f,y=b-i;let x=s[b];const w=Math.max(0,f-t-1),R=Math.min(i-1,f+t);for(let A=w;A<R;++A){const J=h!==e[A],Q=s[y+A]+ +J,K=s[y+A+1]+1,j=s[b+A]+1,B=s[b+A+1]=Math.min(Q,K,j);B<x&&(x=B)}if(x>t)continue e}Tt(a.get(c),e,t,n,s,f,i,o+c)}};class ee{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,n]=Re(this._tree,e.slice(this._prefix.length));if(t===void 0){const[s,r]=qe(n);for(const i of s.keys())if(i!==D&&i.startsWith(r)){const o=new Map;return o.set(i.slice(r.length),s.get(i)),new ee(o,e)}}return new ee(t,e)}clear(){this._size=void 0,this._tree.clear()}delete(e){return this._size=void 0,Kn(this._tree,e)}entries(){return new De(this,Bn)}forEach(e){for(const[t,n]of this)e(t,n,this)}fuzzyGet(e,t){return Wn(this._tree,e,t)}get(e){const t=Ke(this._tree,e);return t!==void 0?t.get(D):void 0}has(e){const t=Ke(this._tree,e);return t!==void 0&&t.has(D)}keys(){return new De(this,St)}set(e,t){if(typeof e!="string")throw new Error("key must be a string");return this._size=void 0,ze(this._tree,e).set(D,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 n=ze(this._tree,e);return n.set(D,t(n.get(D))),this}fetch(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;const n=ze(this._tree,e);let s=n.get(D);return s===void 0&&n.set(D,s=t()),s}values(){return new De(this,Et)}[Symbol.iterator](){return this.entries()}static from(e){const t=new ee;for(const[n,s]of e)t.set(n,s);return t}static fromObject(e){return ee.from(Object.entries(e))}}const Re=(a,e,t=[])=>{if(e.length===0||a==null)return[a,t];for(const n of a.keys())if(n!==D&&e.startsWith(n))return t.push([a,n]),Re(a.get(n),e.slice(n.length),t);return t.push([a,e]),Re(void 0,"",t)},Ke=(a,e)=>{if(e.length===0||a==null)return a;for(const t of a.keys())if(t!==D&&e.startsWith(t))return Ke(a.get(t),e.slice(t.length))},ze=(a,e)=>{const t=e.length;e:for(let n=0;a&&n<t;){for(const r of a.keys())if(r!==D&&e[n]===r[0]){const i=Math.min(t-n,r.length);let o=1;for(;o<i&&e[n+o]===r[o];)++o;const l=a.get(r);if(o===r.length)a=l;else{const c=new Map;c.set(r.slice(o),l),a.set(e.slice(n,n+o),c),a.delete(r),a=c}n+=o;continue e}const s=new Map;return a.set(e.slice(n),s),s}return a},Kn=(a,e)=>{const[t,n]=Re(a,e);if(t!==void 0){if(t.delete(D),t.size===0)It(n);else if(t.size===1){const[s,r]=t.entries().next().value;kt(n,s,r)}}},It=a=>{if(a.length===0)return;const[e,t]=qe(a);if(e.delete(t),e.size===0)It(a.slice(0,-1));else if(e.size===1){const[n,s]=e.entries().next().value;n!==D&&kt(a.slice(0,-1),n,s)}},kt=(a,e,t)=>{if(a.length===0)return;const[n,s]=qe(a);n.set(s+e,t),n.delete(s)},qe=a=>a[a.length-1],Ge="or",Nt="and",Jn="and_not";class ue{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?$e:e.autoVacuum;this._options={...Ve,...e,autoVacuum:t,searchOptions:{...ht,...e.searchOptions||{}},autoSuggestOptions:{...Qn,...e.autoSuggestOptions||{}}},this._index=new ee,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=Ue,this.addFields(this._options.fields)}add(e){const{extractField:t,tokenize:n,processTerm:s,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 l=this.addDocumentId(o);this.saveStoredFields(l,e);for(const c of r){const f=t(e,c);if(f==null)continue;const v=n(f.toString(),c),h=this._fieldIds[c],b=new Set(v).size;this.addFieldLength(l,h,this._documentCount-1,b);for(const y of v){const x=s(y,c);if(Array.isArray(x))for(const w of x)this.addTerm(h,l,w);else x&&this.addTerm(h,l,x)}}}addAll(e){for(const t of e)this.add(t)}addAllAsync(e,t={}){const{chunkSize:n=10}=t,s={chunk:[],promise:Promise.resolve()},{chunk:r,promise:i}=e.reduce(({chunk:o,promise:l},c,f)=>(o.push(c),(f+1)%n===0?{chunk:[],promise:l.then(()=>new Promise(v=>setTimeout(v,0))).then(()=>this.addAll(o))}:{chunk:o,promise:l}),s);return i.then(()=>this.addAll(r))}remove(e){const{tokenize:t,processTerm:n,extractField:s,fields:r,idField:i}=this._options,o=s(e,i);if(o==null)throw new Error(`MiniSearch: document does not have ID field "${i}"`);const l=this._idToShortId.get(o);if(l==null)throw new Error(`MiniSearch: cannot remove document with ID ${o}: it is not in the index`);for(const c of r){const f=s(e,c);if(f==null)continue;const v=t(f.toString(),c),h=this._fieldIds[c],b=new Set(v).size;this.removeFieldLength(l,h,this._documentCount,b);for(const y of v){const x=n(y,c);if(Array.isArray(x))for(const w of x)this.removeTerm(h,l,w);else x&&this.removeTerm(h,l,x)}}this._storedFields.delete(l),this._documentIds.delete(l),this._idToShortId.delete(o),this._fieldLength.delete(l),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 ee,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((n,s)=>{this.removeFieldLength(t,s,this._documentCount,n)}),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:n,batchWait:s}=this._options.autoVacuum;this.conditionalVacuum({batchSize:n,batchWait:s},{minDirtCount:t,minDirtFactor:e})}discardAll(e){const t=this._options.autoVacuum;try{this._options.autoVacuum=!1;for(const n of e)this.discard(n)}finally{this._options.autoVacuum=t}this.maybeAutoVacuum()}replace(e){const{idField:t,extractField:n}=this._options,s=n(e,t);this.discard(s),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 n=this._enqueuedVacuumConditions;return this._enqueuedVacuumConditions=Ue,this.performVacuuming(e,n)}),this._enqueuedVacuum)):this.vacuumConditionsMet(t)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(e),this._currentVacuum)}async performVacuuming(e,t){const n=this._dirtCount;if(this.vacuumConditionsMet(t)){const s=e.batchSize||Je.batchSize,r=e.batchWait||Je.batchWait;let i=1;for(const[o,l]of this._index){for(const[c,f]of l)for(const[v]of f)this._documentIds.has(v)||(f.size<=1?l.delete(c):f.delete(v));this._index.get(o).size===0&&this._index.delete(o),i%s===0&&await new Promise(c=>setTimeout(c,r)),i+=1}this._dirtCount-=n}await null,this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null}vacuumConditionsMet(e){if(e==null)return!0;let{minDirtCount:t,minDirtFactor:n}=e;return t=t||$e.minDirtCount,n=n||$e.minDirtFactor,this.dirtCount>=t&&this.dirtFactor>=n}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{searchOptions:n}=this._options,s={...n,...t},r=this.executeQuery(e,t),i=[];for(const[o,{score:l,terms:c,match:f}]of r){const v=c.length||1,h={id:this._documentIds.get(o),score:l*v,terms:Object.keys(f),queryTerms:c,match:f};Object.assign(h,this._storedFields.get(o)),(s.filter==null||s.filter(h))&&i.push(h)}return e===ue.wildcard&&s.boostDocument==null||i.sort(mt),i}autoSuggest(e,t={}){t={...this._options.autoSuggestOptions,...t};const n=new Map;for(const{score:r,terms:i}of this.search(e,t)){const o=i.join(" "),l=n.get(o);l!=null?(l.score+=r,l.count+=1):n.set(o,{score:r,terms:i,count:1})}const s=[];for(const[r,{score:i,terms:o,count:l}]of n)s.push({suggestion:r,terms:o,score:i/l});return s.sort(mt),s}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 async loadJSONAsync(e,t){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(Ve.hasOwnProperty(e))return Pe(Ve,e);throw new Error(`MiniSearch: unknown option "${e}"`)}static loadJS(e,t){const{index:n,documentIds:s,fieldLength:r,storedFields:i,serializationVersion:o}=e,l=this.instantiateMiniSearch(e,t);l._documentIds=Ie(s),l._fieldLength=Ie(r),l._storedFields=Ie(i);for(const[c,f]of l._documentIds)l._idToShortId.set(f,c);for(const[c,f]of n){const v=new Map;for(const h of Object.keys(f)){let b=f[h];o===1&&(b=b.ds),v.set(parseInt(h,10),Ie(b))}l._index.set(c,v)}return l}static async loadJSAsync(e,t){const{index:n,documentIds:s,fieldLength:r,storedFields:i,serializationVersion:o}=e,l=this.instantiateMiniSearch(e,t);l._documentIds=await ke(s),l._fieldLength=await ke(r),l._storedFields=await ke(i);for(const[f,v]of l._documentIds)l._idToShortId.set(v,f);let c=0;for(const[f,v]of n){const h=new Map;for(const b of Object.keys(v)){let y=v[b];o===1&&(y=y.ds),h.set(parseInt(b,10),await ke(y))}++c%1e3===0&&await Ft(0),l._index.set(f,h)}return l}static instantiateMiniSearch(e,t){const{documentCount:n,nextId:s,fieldIds:r,averageFieldLength:i,dirtCount:o,serializationVersion:l}=e;if(l!==1&&l!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");const c=new ue(t);return c._documentCount=n,c._nextId=s,c._idToShortId=new Map,c._fieldIds=r,c._avgFieldLength=i,c._dirtCount=o||0,c._index=new ee,c}executeQuery(e,t={}){if(e===ue.wildcard)return this.executeWildcardQuery(t);if(typeof e!="string"){const h={...t,...e,queries:void 0},b=e.queries.map(y=>this.executeQuery(y,h));return this.combineResults(b,h.combineWith)}const{tokenize:n,processTerm:s,searchOptions:r}=this._options,i={tokenize:n,processTerm:s,...r,...t},{tokenize:o,processTerm:l}=i,v=o(e).flatMap(h=>l(h)).filter(h=>!!h).map(Hn(i)).map(h=>this.executeQuerySpec(h,i));return this.combineResults(v,i.combineWith)}executeQuerySpec(e,t){const n={...this._options.searchOptions,...t},s=(n.fields||this._options.fields).reduce((x,w)=>({...x,[w]:Pe(n.boost,w)||1}),{}),{boostDocument:r,weights:i,maxFuzzy:o,bm25:l}=n,{fuzzy:c,prefix:f}={...ht.weights,...i},v=this._index.get(e.term),h=this.termResults(e.term,e.term,1,e.termBoost,v,s,r,l);let b,y;if(e.prefix&&(b=this._index.atPrefix(e.term)),e.fuzzy){const x=e.fuzzy===!0?.2:e.fuzzy,w=x<1?Math.min(o,Math.round(e.term.length*x)):x;w&&(y=this._index.fuzzyGet(e.term,w))}if(b)for(const[x,w]of b){const R=x.length-e.term.length;if(!R)continue;y==null||y.delete(x);const A=f*x.length/(x.length+.3*R);this.termResults(e.term,x,A,e.termBoost,w,s,r,l,h)}if(y)for(const x of y.keys()){const[w,R]=y.get(x);if(!R)continue;const A=c*x.length/(x.length+R);this.termResults(e.term,x,A,e.termBoost,w,s,r,l,h)}return h}executeWildcardQuery(e){const t=new Map,n={...this._options.searchOptions,...e};for(const[s,r]of this._documentIds){const i=n.boostDocument?n.boostDocument(r,"",this._storedFields.get(s)):1;t.set(s,{score:i,terms:[],match:{}})}return t}combineResults(e,t=Ge){if(e.length===0)return new Map;const n=t.toLowerCase(),s=Un[n];if(!s)throw new Error(`Invalid combination operator: ${t}`);return e.reduce(s)||new Map}toJSON(){const e=[];for(const[t,n]of this._index){const s={};for(const[r,i]of n)s[r]=Object.fromEntries(i);e.push([t,s])}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,n,s,r,i,o,l,c=new Map){if(r==null)return c;for(const f of Object.keys(i)){const v=i[f],h=this._fieldIds[f],b=r.get(h);if(b==null)continue;let y=b.size;const x=this._avgFieldLength[h];for(const w of b.keys()){if(!this._documentIds.has(w)){this.removeTerm(h,w,t),y-=1;continue}const R=o?o(this._documentIds.get(w),t,this._storedFields.get(w)):1;if(!R)continue;const A=b.get(w),J=this._fieldLength.get(w)[h],Q=Gn(A,y,this._documentCount,J,x,l),K=n*s*v*R*Q,j=c.get(w);if(j){j.score+=K,Yn(j.terms,e);const B=Pe(j.match,t);B?B.push(f):j.match[t]=[f]}else c.set(w,{score:K,terms:[e],match:{[t]:[f]}})}}return c}addTerm(e,t,n){const s=this._index.fetch(n,vt);let r=s.get(e);if(r==null)r=new Map,r.set(t,1),s.set(e,r);else{const i=r.get(t);r.set(t,(i||0)+1)}}removeTerm(e,t,n){if(!this._index.has(n)){this.warnDocumentChanged(t,e,n);return}const s=this._index.fetch(n,vt),r=s.get(e);r==null||r.get(t)==null?this.warnDocumentChanged(t,e,n):r.get(t)<=1?r.size<=1?s.delete(e):r.delete(t):r.set(t,r.get(t)-1),this._index.get(n).size===0&&this._index.delete(n)}warnDocumentChanged(e,t,n){for(const s of Object.keys(this._fieldIds))if(this._fieldIds[s]===t){this._options.logger("warn",`MiniSearch: document with ID ${this._documentIds.get(e)} has changed before removal: term "${n}" was not present in field "${s}". 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,n,s){let r=this._fieldLength.get(e);r==null&&this._fieldLength.set(e,r=[]),r[t]=s;const o=(this._avgFieldLength[t]||0)*n+s;this._avgFieldLength[t]=o/(n+1)}removeFieldLength(e,t,n,s){if(n===1){this._avgFieldLength[t]=0;return}const r=this._avgFieldLength[t]*n-s;this._avgFieldLength[t]=r/(n-1)}saveStoredFields(e,t){const{storeFields:n,extractField:s}=this._options;if(n==null||n.length===0)return;let r=this._storedFields.get(e);r==null&&this._storedFields.set(e,r={});for(const i of n){const o=s(t,i);o!==void 0&&(r[i]=o)}}}ue.wildcard=Symbol("*");const Pe=(a,e)=>Object.prototype.hasOwnProperty.call(a,e)?a[e]:void 0,Un={[Ge]:(a,e)=>{for(const t of e.keys()){const n=a.get(t);if(n==null)a.set(t,e.get(t));else{const{score:s,terms:r,match:i}=e.get(t);n.score=n.score+s,n.match=Object.assign(n.match,i),pt(n.terms,r)}}return a},[Nt]:(a,e)=>{const t=new Map;for(const n of e.keys()){const s=a.get(n);if(s==null)continue;const{score:r,terms:i,match:o}=e.get(n);pt(s.terms,i),t.set(n,{score:s.score+r,terms:s.terms,match:Object.assign(s.match,o)})}return t},[Jn]:(a,e)=>{for(const t of e.keys())a.delete(t);return a}},qn={k:1.2,b:.7,d:.5},Gn=(a,e,t,n,s,r)=>{const{k:i,b:o,d:l}=r;return Math.log(1+(t-e+.5)/(e+.5))*(l+a*(i+1)/(a+i*(1-o+o*n/s)))},Hn=a=>(e,t,n)=>{const s=typeof a.fuzzy=="function"?a.fuzzy(e,t,n):a.fuzzy||!1,r=typeof a.prefix=="function"?a.prefix(e,t,n):a.prefix===!0,i=typeof a.boostTerm=="function"?a.boostTerm(e,t,n):1;return{term:e,fuzzy:s,prefix:r,termBoost:i}},Ve={idField:"id",extractField:(a,e)=>a[e],tokenize:a=>a.split(Zn),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},ht={combineWith:Ge,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:qn},Qn={combineWith:Nt,prefix:(a,e,t)=>e===t.length-1},Je={batchSize:1e3,batchWait:10},Ue={minDirtFactor:.1,minDirtCount:20},$e={...Je,...Ue},Yn=(a,e)=>{a.includes(e)||a.push(e)},pt=(a,e)=>{for(const t of e)a.includes(t)||a.push(t)},mt=({score:a},{score:e})=>e-a,vt=()=>new Map,Ie=a=>{const e=new Map;for(const t of Object.keys(a))e.set(parseInt(t,10),a[t]);return e},ke=async a=>{const e=new Map;let t=0;for(const n of Object.keys(a))e.set(parseInt(n,10),a[n]),++t%1e3===0&&await Ft(0);return e},Ft=a=>new Promise(e=>setTimeout(e,a)),Zn=/[\n\r\p{Z}\p{P}]+/u;class Xn{constructor(e=10){Ae(this,"max");Ae(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 es=["aria-owns"],ts={class:"shell"},ns=["title"],ss={class:"search-actions before"},is=["title"],rs=["aria-activedescendant","aria-controls","placeholder"],as={class:"search-actions"},os=["title"],ls=["disabled","title"],cs=["id","role","aria-labelledby"],us=["id","aria-selected"],ds=["href","aria-label","onMouseenter","onFocusin","data-index"],fs={class:"titles"},hs=["innerHTML"],ps={class:"title main"},ms=["innerHTML"],vs={key:0,class:"excerpt-wrapper"},gs={key:0,class:"excerpt",inert:""},bs=["innerHTML"],ys={key:0,class:"no-results"},ws={class:"search-keyboard-shortcuts"},xs=["aria-label"],_s=["aria-label"],Ss=["aria-label"],Es=["aria-label"],Ts=zt({__name:"VPLocalSearchBox",emits:["close"],setup(a,{emit:e}){var S,C;const t=e,n=le(),s=le(),r=le(on),i=rn(),{activate:o}=Vn(n,{immediate:!0,allowOutsideClick:!0,clickOutsideDeactivates:!0,escapeDeactivates:!0}),{localeIndex:l,theme:c}=i,f=st(async()=>{var m,p,I,O,z,P,V,k,$;return ot(ue.loadJSON((I=await((p=(m=r.value)[l.value])==null?void 0:p.call(m)))==null?void 0:I.default,{fields:["title","titles","text"],storeFields:["title","titles"],searchOptions:{fuzzy:.2,prefix:!0,boost:{title:4,text:2,titles:1},...((O=c.value.search)==null?void 0:O.provider)==="local"&&((P=(z=c.value.search.options)==null?void 0:z.miniSearch)==null?void 0:P.searchOptions)},...((V=c.value.search)==null?void 0:V.provider)==="local"&&(($=(k=c.value.search.options)==null?void 0:k.miniSearch)==null?void 0:$.options)}))}),h=ge(()=>{var m,p;return((m=c.value.search)==null?void 0:m.provider)==="local"&&((p=c.value.search.options)==null?void 0:p.disableQueryPersistence)===!0}).value?fe(""):Pt("vitepress:local-search-filter",""),b=Vt("vitepress:local-search-detailed-list",((S=c.value.search)==null?void 0:S.provider)==="local"&&((C=c.value.search.options)==null?void 0:C.detailedView)===!0),y=ge(()=>{var m,p,I;return((m=c.value.search)==null?void 0:m.provider)==="local"&&(((p=c.value.search.options)==null?void 0:p.disableDetailedView)===!0||((I=c.value.search.options)==null?void 0:I.detailedView)===!1)}),x=ge(()=>{var p,I,O,z,P,V,k,$;const m=(I=(p=c.value.search)==null?void 0:p.options)!=null?I:c.value.algolia;return((V=(P=(z=(O=m==null?void 0:m.locales)==null?void 0:O[l.value])==null?void 0:z.translations)==null?void 0:P.button)==null?void 0:V.buttonText)||(($=(k=m==null?void 0:m.translations)==null?void 0:k.button)==null?void 0:$.buttonText)||"Search"});$t(()=>{y.value&&(b.value=!1)});const w=le([]),R=fe(!1);je(h,()=>{R.value=!1});const A=st(async()=>{if(s.value)return ot(new jn(s.value))},null),J=new Xn(16);jt(()=>[f.value,h.value,b.value],async([m,p,I],O,z)=>{var te,we,He,Qe,Ye,Ze;(O==null?void 0:O[0])!==m&&J.clear();let P=!1;if(z(()=>{P=!0}),!m)return;w.value=m.search(p).slice(0,16),R.value=!0;const V=I?await Promise.all(w.value.map(W=>Q(W.id))):[];if(P)return;for(const{id:W,mod:ne}of V){const se=W.slice(0,W.indexOf("#"));let Y=J.get(se);if(Y)continue;Y=new Map,J.set(se,Y);const G=(te=ne.default)!=null?te:ne;if(G!=null&&G.render||G!=null&&G.setup){const Z=Xt(G);Z.config.warnHandler=()=>{},Z.provide(en,i),Object.defineProperties(Z.config.globalProperties,{$frontmatter:{get(){return i.frontmatter.value}},$params:{get(){return i.page.value.params}}});const xe=document.createElement("div");Z.mount(xe),xe.querySelectorAll("h1, h2, h3, h4, h5, h6").forEach(de=>{var tt;const _e=(tt=de.querySelector("a"))==null?void 0:tt.getAttribute("href"),Xe=(_e==null?void 0:_e.startsWith("#"))&&_e.slice(1);if(!Xe)return;let et="";for(;(de=de.nextElementSibling)&&!/^h[1-6]$/i.test(de.tagName);)et+=de.outerHTML;Y.set(Xe,et)}),Z.unmount()}if(P)return}const k=new Set;if(w.value=w.value.map(W=>{var Z;const[ne,se]=W.id.split("#"),Y=J.get(ne),G=(Z=Y==null?void 0:Y.get(se))!=null?Z:"";for(const xe in W.match)k.add(xe);return{...W,text:G}}),await he(),P)return;await new Promise(W=>{var ne;(ne=A.value)==null||ne.unmark({done:()=>{var se;(se=A.value)==null||se.markRegExp(T(k),{done:W})}})});const $=(He=(we=n.value)==null?void 0:we.querySelectorAll(".result .excerpt"))!=null?He:[];for(const W of $)(Qe=W.querySelector('mark[data-markjs="true"]'))==null||Qe.scrollIntoView({block:"center"});(Ze=(Ye=s.value)==null?void 0:Ye.firstElementChild)==null||Ze.scrollIntoView({block:"start"})},{debounce:200,immediate:!0});async function Q(m){const p=tn(m.slice(0,m.indexOf("#")));try{if(!p)throw new Error(`Cannot find file for id: ${m}`);return{id:m,mod:await import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1750344534248/files/.vitepress/dist"+u}return u})(p))}}catch(I){return console.error(I),{id:m,mod:{}}}}const K=fe(),j=ge(()=>{var m;return((m=h.value)==null?void 0:m.length)<=0});function B(m=!0){var p,I;(p=K.value)==null||p.focus(),m&&((I=K.value)==null||I.select())}Me(()=>{B()});function ye(m){m.pointerType==="mouse"&&B()}const M=fe(-1),U=fe(!0);je(w,m=>{M.value=m.length?0:-1,q()});function q(){he(()=>{const m=document.querySelector(".result.selected");m==null||m.scrollIntoView({block:"nearest"})})}Se("ArrowUp",m=>{m.preventDefault(),M.value--,M.value<0&&(M.value=w.value.length-1),U.value=!0,q()}),Se("ArrowDown",m=>{m.preventDefault(),M.value++,M.value>=w.value.length&&(M.value=0),U.value=!0,q()});const N=Bt();Se("Enter",m=>{if(m.isComposing||m.target instanceof HTMLButtonElement&&m.target.type!=="submit")return;const p=w.value[M.value];if(m.target instanceof HTMLInputElement&&!p){m.preventDefault();return}p&&(N.go(p.id),t("close"))}),Se("Escape",()=>{t("close")});const d=an({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)}),Wt("popstate",m=>{m.preventDefault(),t("close")});const g=Kt(Jt?document.body:null);Me(()=>{he(()=>{g.value=!0,he().then(()=>o())})}),Ut(()=>{g.value=!1});function E(){h.value="",he().then(()=>B(!1))}function T(m){return new RegExp([...m].sort((p,I)=>I.length-p.length).map(p=>`(${nn(p)})`).join("|"),"gi")}function F(m){var O;if(!U.value)return;const p=(O=m.target)==null?void 0:O.closest(".result"),I=Number.parseInt(p==null?void 0:p.dataset.index);I>=0&&I!==M.value&&(M.value=I),U.value=!1}return(m,p)=>{var I,O,z,P,V;return H(),qt(Zt,{to:"body"},[_("div",{ref_key:"el",ref:n,role:"button","aria-owns":(I=w.value)!=null&&I.length?"localsearch-list":void 0,"aria-expanded":"true","aria-haspopup":"listbox","aria-labelledby":"localsearch-label",class:"VPLocalSearchBox"},[_("div",{class:"backdrop",onClick:p[0]||(p[0]=k=>m.$emit("close"))}),_("div",ts,[_("form",{class:"search-bar",onPointerup:p[4]||(p[4]=k=>ye(k)),onSubmit:p[5]||(p[5]=Gt(()=>{},["prevent"]))},[_("label",{title:x.value,id:"localsearch-label",for:"localsearch-input"},p[7]||(p[7]=[_("span",{"aria-hidden":"true",class:"vpi-search search-icon local-search-icon"},null,-1)]),8,ns),_("div",ss,[_("button",{class:"back-button",title:L(d)("modal.backButtonTitle"),onClick:p[1]||(p[1]=k=>m.$emit("close"))},p[8]||(p[8]=[_("span",{class:"vpi-arrow-left local-search-icon"},null,-1)]),8,is)]),Ht(_("input",{ref_key:"searchInput",ref:K,"onUpdate:modelValue":p[2]||(p[2]=k=>Yt(h)?h.value=k:null),"aria-activedescendant":M.value>-1?"localsearch-item-"+M.value:void 0,"aria-autocomplete":"both","aria-controls":(O=w.value)!=null&&O.length?"localsearch-list":void 0,"aria-labelledby":"localsearch-label",autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:"search-input",id:"localsearch-input",enterkeyhint:"go",maxlength:"64",placeholder:x.value,spellcheck:"false",type:"search"},null,8,rs),[[Qt,L(h)]]),_("div",as,[y.value?Ee("",!0):(H(),X("button",{key:0,class:it(["toggle-layout-button",{"detailed-list":L(b)}]),type:"button",title:L(d)("modal.displayDetails"),onClick:p[3]||(p[3]=k=>M.value>-1&&(b.value=!L(b)))},p[9]||(p[9]=[_("span",{class:"vpi-layout-list local-search-icon"},null,-1)]),10,os)),_("button",{class:"clear-button",type:"reset",disabled:j.value,title:L(d)("modal.resetButtonTitle"),onClick:E},p[10]||(p[10]=[_("span",{class:"vpi-delete local-search-icon"},null,-1)]),8,ls)])],32),_("ul",{ref_key:"resultsEl",ref:s,id:(z=w.value)!=null&&z.length?"localsearch-list":void 0,role:(P=w.value)!=null&&P.length?"listbox":void 0,"aria-labelledby":(V=w.value)!=null&&V.length?"localsearch-label":void 0,class:"results",onMousemove:F},[(H(!0),X(at,null,rt(w.value,(k,$)=>(H(),X("li",{key:k.id,id:"localsearch-item-"+$,"aria-selected":M.value===$?"true":"false",role:"option"},[_("a",{href:k.id,class:it(["result",{selected:M.value===$}]),"aria-label":[...k.titles,k.title].join(" > "),onMouseenter:te=>!U.value&&(M.value=$),onFocusin:te=>M.value=$,onClick:p[6]||(p[6]=te=>m.$emit("close")),"data-index":$},[_("div",null,[_("div",fs,[p[12]||(p[12]=_("span",{class:"title-icon"},"#",-1)),(H(!0),X(at,null,rt(k.titles,(te,we)=>(H(),X("span",{key:we,class:"title"},[_("span",{class:"text",innerHTML:te},null,8,hs),p[11]||(p[11]=_("span",{class:"vpi-chevron-right local-search-icon"},null,-1))]))),128)),_("span",ps,[_("span",{class:"text",innerHTML:k.title},null,8,ms)])]),L(b)?(H(),X("div",vs,[k.text?(H(),X("div",gs,[_("div",{class:"vp-doc",innerHTML:k.text},null,8,bs)])):Ee("",!0),p[13]||(p[13]=_("div",{class:"excerpt-gradient-bottom"},null,-1)),p[14]||(p[14]=_("div",{class:"excerpt-gradient-top"},null,-1))])):Ee("",!0)])],42,ds)],8,us))),128)),L(h)&&!w.value.length&&R.value?(H(),X("li",ys,[pe(me(L(d)("modal.noResultsText"))+' "',1),_("strong",null,me(L(h)),1),p[15]||(p[15]=pe('" '))])):Ee("",!0)],40,cs),_("div",ws,[_("span",null,[_("kbd",{"aria-label":L(d)("modal.footer.navigateUpKeyAriaLabel")},p[16]||(p[16]=[_("span",{class:"vpi-arrow-up navigate-icon"},null,-1)]),8,xs),_("kbd",{"aria-label":L(d)("modal.footer.navigateDownKeyAriaLabel")},p[17]||(p[17]=[_("span",{class:"vpi-arrow-down navigate-icon"},null,-1)]),8,_s),pe(" "+me(L(d)("modal.footer.navigateText")),1)]),_("span",null,[_("kbd",{"aria-label":L(d)("modal.footer.selectKeyAriaLabel")},p[18]||(p[18]=[_("span",{class:"vpi-corner-down-left navigate-icon"},null,-1)]),8,Ss),pe(" "+me(L(d)("modal.footer.selectText")),1)]),_("span",null,[_("kbd",{"aria-label":L(d)("modal.footer.closeKeyAriaLabel")},"esc",8,Es),pe(" "+me(L(d)("modal.footer.closeText")),1)])])])],8,es)])}}}),Cs=sn(Ts,[["__scopeId","data-v-2631dcb4"]]);export{Cs as default};
@@ -0,0 +1 @@
1
+ import{d as h,c as d,r as p,n as T,a as ne,t as S,o as r,b as g,w as v,T as He,e as m,_ as $,u as gt,i as kt,f as bt,g as Be,h as k,j as u,k as i,l as oe,m as Ge,p as G,q as yt,s as Ae,v as $t,x as C,y as _e,z as K,A as Ee,B as R,C as Ze,D as de,E as ge,F as We,G as H,H as E,I as J,J as _,K as q,L as Qe,M as x,N as ke,O as xe,P as he,Q as Le,R as be,S as et,U as wt,V as Pt,W as ue,X as tt,Y as nt,Z as Lt,$ as Vt,a0 as St,a1 as Ve,a2 as Tt,a3 as U,a4 as It,a5 as Nt,a6 as ot,a7 as Mt,a8 as se,a9 as Ct,aa as Ht,ab as Bt,ac as At}from"./framework.C9O3MI31.js";const Et=h({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(n){return(e,t)=>(r(),d("span",{class:T(["VPBadge",e.type])},[p(e.$slots,"default",{},()=>[ne(S(e.text),1)])],2))}}),Dt={key:0,class:"VPBackdrop"},Ft=h({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(n){return(e,t)=>(r(),g(He,{name:"fade"},{default:v(()=>[e.show?(r(),d("div",Dt)):m("",!0)]),_:1}))}}),Ot=$(Ft,[["__scopeId","data-v-5e267d81"]]),L=gt;function Rt(n,e){let t,o=!1;return()=>{t&&clearTimeout(t),o?t=setTimeout(n,e):(n(),(o=!0)&&setTimeout(()=>o=!1,e))}}function Se(n){return n.startsWith("/")?n:`/${n}`}function De(n){const{pathname:e,search:t,hash:o,protocol:s}=new URL(n,"http://a.com");if(kt(n)||n.startsWith("#")||!s.startsWith("http")||!bt(e))return n;const{site:a}=L(),c=e.endsWith("/")||e.endsWith(".html")?n:n.replace(/(?:(^\.+)\/)?.*$/,`$1${e.replace(/(\.md)?$/,a.value.cleanUrls?"":".html")}${t}${o}`);return Be(c)}function pe({correspondingLink:n=!1}={}){const{site:e,localeIndex:t,page:o,theme:s,hash:a}=L(),c=k(()=>{var f,b;return{label:(f=e.value.locales[t.value])==null?void 0:f.label,link:((b=e.value.locales[t.value])==null?void 0:b.link)||(t.value==="root"?"/":`/${t.value}/`)}});return{localeLinks:k(()=>Object.entries(e.value.locales).flatMap(([f,b])=>c.value.label===b.label?[]:{text:b.label,link:jt(b.link||(f==="root"?"/":`/${f}/`),s.value.i18nRouting!==!1&&n,o.value.relativePath.slice(c.value.link.length-1),!e.value.cleanUrls)+a.value})),currentLang:c}}function jt(n,e,t,o){return e?n.replace(/\/$/,"")+Se(t.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,o?".html":"")):n}const Ut={class:"NotFound"},Gt={class:"code"},Wt={class:"title"},zt={class:"quote"},qt={class:"action"},Xt=["href","aria-label"],Yt=h({__name:"NotFound",setup(n){const{theme:e}=L(),{currentLang:t}=pe();return(o,s)=>{var a,c,l,f,b,w,y,P,V,N,B,I;return r(),d("div",Ut,[u("p",Gt,S((c=(a=i(e).notFound)==null?void 0:a.code)!=null?c:"404"),1),u("h1",Wt,S((f=(l=i(e).notFound)==null?void 0:l.title)!=null?f:"PAGE NOT FOUND"),1),s[0]||(s[0]=u("div",{class:"divider"},null,-1)),u("blockquote",zt,S((w=(b=i(e).notFound)==null?void 0:b.quote)!=null?w:"But if you don't change your direction, and if you keep looking, you may end up where you are heading."),1),u("div",qt,[u("a",{class:"link",href:i(Be)((P=(y=i(e).notFound)==null?void 0:y.link)!=null?P:i(t).link),"aria-label":(N=(V=i(e).notFound)==null?void 0:V.linkLabel)!=null?N:"go to home"},S((I=(B=i(e).notFound)==null?void 0:B.linkText)!=null?I:"Take me home"),9,Xt)])])}}}),Kt=$(Yt,[["__scopeId","data-v-9a97510e"]]);function st(n,e){if(Array.isArray(n))return ve(n);if(n==null)return[];e=Se(e);const t=Object.keys(n).sort((s,a)=>a.split("/").length-s.split("/").length).find(s=>e.startsWith(Se(s))),o=t?n[t]:[];return Array.isArray(o)?ve(o):ve(o.items,o.base)}function Jt(n){const e=[];let t=0;for(const o in n){const s=n[o];if(s.items){t=e.push(s);continue}e[t]||e.push({items:[]}),e[t].items.push(s)}return e}function Zt(n){const e=[];function t(o){for(const s of o)s.text&&s.link&&e.push({text:s.text,link:s.link,docFooterText:s.docFooterText}),s.items&&t(s.items)}return t(n),e}function Te(n,e){return Array.isArray(e)?e.some(t=>Te(n,t)):oe(n,e.link)?!0:e.items?Te(n,e.items):!1}function ve(n,e){return[...n].map(t=>{const o={...t},s=o.base||e;return s&&o.link&&(o.link=s+o.link),o.items&&(o.items=ve(o.items,s)),o})}function Qt(){const{hasSidebar:n}=Z(),e=Ge("(min-width: 960px)"),t=Ge("(min-width: 1280px)");return{isAsideEnabled:k(()=>!t.value&&!e.value?!1:n.value?t.value:e.value)}}const xt=/\b(?:VPBadge|header-anchor|footnote-ref|ignore-header)\b/,Ie=[];function at(n){return typeof n.outline=="object"&&!Array.isArray(n.outline)&&n.outline.label||n.outlineTitle||"On this page"}function en(n){const e=[...document.querySelectorAll(".VPDoc :where(h1,h2,h3,h4,h5,h6)")].filter(t=>t.id&&t.hasChildNodes()).map(t=>{const o=Number(t.tagName[1]);return{element:t,title:tn(t),link:"#"+t.id,level:o}});return nn(e,n)}function tn(n){let e="";for(const t of n.childNodes)if(t.nodeType===1){if(xt.test(t.className))continue;e+=t.textContent}else t.nodeType===3&&(e+=t.textContent);return e.trim()}function nn(n,e){if(e===!1)return[];const t=(typeof e=="object"&&!Array.isArray(e)?e.level:e)||2,[o,s]=typeof t=="number"?[t,t]:t==="deep"?[2,6]:t;return an(n,o,s)}function on(n,e){const{isAsideEnabled:t}=Qt(),o=Rt(a,100);let s=null;G(()=>{requestAnimationFrame(a),window.addEventListener("scroll",o)}),yt(()=>{c(location.hash)}),Ae(()=>{window.removeEventListener("scroll",o)});function a(){if(!t.value)return;const l=window.scrollY,f=window.innerHeight,b=document.body.offsetHeight,w=Math.abs(l+f-b)<1,y=Ie.map(({element:V,link:N})=>({link:N,top:sn(V)})).filter(({top:V})=>!Number.isNaN(V)).sort((V,N)=>V.top-N.top);if(!y.length){c(null);return}if(l<1){c(null);return}if(w){c(y[y.length-1].link);return}let P=null;for(const{link:V,top:N}of y){if(N>l+$t()+4)break;P=V}c(P)}function c(l){s&&s.classList.remove("active"),l==null?s=null:s=n.value.querySelector(`a[href="${decodeURIComponent(l)}"]`);const f=s;f?(f.classList.add("active"),e.value.style.top=f.offsetTop+39+"px",e.value.style.opacity="1"):(e.value.style.top="33px",e.value.style.opacity="0")}}function sn(n){let e=0;for(;n!==document.body;){if(n===null)return NaN;e+=n.offsetTop,n=n.offsetParent}return e}function an(n,e,t){Ie.length=0;const o=[],s=[];return n.forEach(a=>{const c={...a,children:[]};let l=s[s.length-1];for(;l&&l.level>=c.level;)s.pop(),l=s[s.length-1];if(c.element.classList.contains("ignore-header")||l&&"shouldIgnore"in l){s.push({level:c.level,shouldIgnore:!0});return}c.level>t||c.level<e||(Ie.push({element:c.element,link:c.link}),l?l.children.push(c):o.push(c),s.push(c))}),o}const ie=C(!1);function rn(n){let e;_e(()=>{e=ie.value?document.activeElement:void 0}),G(()=>{window.addEventListener("keyup",t)}),Ae(()=>{window.removeEventListener("keyup",t)});function t(o){o.key==="Escape"&&ie.value&&(n(),e==null||e.focus())}}function ln(){function n(){ie.value=!0}function e(){ie.value=!1}function t(){ie.value?e():n()}return{isOpen:ie,open:n,close:e,toggle:t}}function cn(n){const{page:e,hash:t}=L(),o=C(!1),s=k(()=>n.value.collapsed!=null),a=k(()=>!!n.value.link),c=C(!1),l=()=>{c.value=oe(e.value.relativePath,n.value.link)};K([e,n,t],l),G(l);const f=k(()=>c.value?!0:n.value.items?Te(e.value.relativePath,n.value.items):!1),b=k(()=>!!(n.value.items&&n.value.items.length));_e(()=>{o.value=!!(s.value&&n.value.collapsed)}),Ee(()=>{(c.value||f.value)&&(o.value=!1)});function w(){s.value&&(o.value=!o.value)}return{collapsed:o,collapsible:s,isLink:a,isActiveLink:c,hasActiveLink:f,hasChildren:b,toggle:w}}const Ne=R([]),ce=R([]),Me=R(!1);function Z(){const{frontmatter:n,theme:e}=L(),t=k(()=>{var b;return!!((b=n.value.isHome)!=null?b:n.value.layout==="home")}),o=k(()=>n.value.sidebar!==!1&&ce.value.length>0&&!t.value),s=k(()=>o.value&&Me.value),a=k(()=>o.value?Jt(ce.value):[]),c=k(()=>t.value?!1:n.value.aside!=null?!!n.value.aside:e.value.aside!==!1),l=k(()=>c.value?n.value.aside==null?e.value.aside==="left":n.value.aside==="left":!1),f=k(()=>Ne.value.length>0);return{isHome:t,sidebar:We(ce),sidebarGroups:a,hasSidebar:o,isSidebarEnabled:s,hasAside:c,leftAside:l,headers:We(Ne),hasLocalNav:f}}function un({closeSidebar:n}){const{frontmatter:e,page:t,theme:o}=L();K(()=>[t.value.relativePath,o.value.sidebar],([a,c])=>{const l=c?st(c,a):[];JSON.stringify(l)!==JSON.stringify(ce.value)&&(ce.value=l)},{immediate:!0,deep:!0,flush:"sync"}),Ze(()=>{var a;Ne.value=en((a=e.value.outline)!=null?a:o.value.outline)}),de&&(Me.value=window.innerWidth>=960,window.addEventListener("resize",()=>{Me.value=window.innerWidth>=960},{passive:!0}));const s=ge();K(()=>s.path,n),rn(n)}const dn=["href","title"],pn=h({__name:"VPDocOutlineItem",props:{headers:{},root:{type:Boolean}},setup(n){function e({target:t}){const o=t.href.split("#")[1],s=document.getElementById(decodeURIComponent(o));s==null||s.focus({preventScroll:!0})}return(t,o)=>{const s=J("VPDocOutlineItem",!0);return r(),d("ul",{class:T(["VPDocOutlineItem",t.root?"root":"nested"])},[(r(!0),d(H,null,E(t.headers,({children:a,link:c,title:l})=>(r(),d("li",null,[u("a",{class:"outline-link",href:c,onClick:e,title:l},S(l),9,dn),a!=null&&a.length?(r(),g(s,{key:0,headers:a},null,8,["headers"])):m("",!0)]))),256))],2)}}}),rt=$(pn,[["__scopeId","data-v-bc34e68d"]]),vn={class:"content"},hn={"aria-level":"2",class:"outline-title",id:"doc-outline-aria-label",role:"heading"},fn=h({__name:"VPDocAsideOutline",setup(n){const{theme:e}=L(),t=C(),o=C(),{headers:s,hasLocalNav:a}=Z();return on(t,o),(c,l)=>(r(),d("nav",{"aria-labelledby":"doc-outline-aria-label",class:T(["VPDocAsideOutline",{"has-outline":i(a)}]),ref_key:"container",ref:t},[u("div",vn,[u("div",{class:"outline-marker",ref_key:"marker",ref:o},null,512),u("div",hn,S(i(at)(i(e))),1),_(rt,{headers:i(s),root:!0},null,8,["headers"])])],2))}}),mn=$(fn,[["__scopeId","data-v-09be1c2c"]]),_n={class:"VPDocAsideCarbonAds"},gn=h({__name:"VPDocAsideCarbonAds",props:{carbonAds:{}},setup(n){const e=()=>null;return(t,o)=>(r(),d("div",_n,[_(i(e),{"carbon-ads":t.carbonAds},null,8,["carbon-ads"])]))}}),kn={class:"VPDocAside"},bn=h({__name:"VPDocAside",setup(n){const{theme:e}=L();return(t,o)=>(r(),d("div",kn,[p(t.$slots,"aside-top",{},void 0,!0),p(t.$slots,"aside-outline-before",{},void 0,!0),_(mn),p(t.$slots,"aside-outline-after",{},void 0,!0),o[0]||(o[0]=u("div",{class:"spacer"},null,-1)),p(t.$slots,"aside-ads-before",{},void 0,!0),i(e).carbonAds?(r(),g(gn,{key:0,"carbon-ads":i(e).carbonAds},null,8,["carbon-ads"])):m("",!0),p(t.$slots,"aside-ads-after",{},void 0,!0),p(t.$slots,"aside-bottom",{},void 0,!0)]))}}),yn=$(bn,[["__scopeId","data-v-5b794d3b"]]);function $n(){const{theme:n,page:e}=L();return k(()=>{const{text:t="Edit this page",pattern:o=""}=n.value.editLink||{};let s;return typeof o=="function"?s=o(e.value):s=o.replace(/:path/g,e.value.filePath),{url:s,text:t}})}function wn(){const{page:n,theme:e,frontmatter:t}=L();return k(()=>{var b,w,y,P,V,N,B,I,D,W,z,Q,F,O;const o=st(e.value.sidebar,n.value.relativePath),s=Zt(o),a=Pn(s,Y=>Y.link.replace(/[?#].*$/,"")),c=a.findIndex(Y=>oe(n.value.relativePath,Y.link)),l=((b=e.value.docFooter)==null?void 0:b.prev)===!1&&!t.value.prev||t.value.prev===!1,f=((w=e.value.docFooter)==null?void 0:w.next)===!1&&!t.value.next||t.value.next===!1;return{prev:l?void 0:{text:(N=(P=typeof t.value.prev=="string"?t.value.prev:typeof t.value.prev=="object"?t.value.prev.text:void 0)!=null?P:(y=a[c-1])==null?void 0:y.docFooterText)!=null?N:(V=a[c-1])==null?void 0:V.text,link:(I=typeof t.value.prev=="object"?t.value.prev.link:void 0)!=null?I:(B=a[c-1])==null?void 0:B.link},next:f?void 0:{text:(Q=(W=typeof t.value.next=="string"?t.value.next:typeof t.value.next=="object"?t.value.next.text:void 0)!=null?W:(D=a[c+1])==null?void 0:D.docFooterText)!=null?Q:(z=a[c+1])==null?void 0:z.text,link:(O=typeof t.value.next=="object"?t.value.next.link:void 0)!=null?O:(F=a[c+1])==null?void 0:F.link}}})}function Pn(n,e){const t=new Set;return n.filter(o=>{const s=e(o);return t.has(s)?!1:t.add(s)})}const X=h({__name:"VPLink",props:{tag:{},href:{},noIcon:{type:Boolean},target:{},rel:{}},setup(n){const e=n,t=k(()=>{var s;return(s=e.tag)!=null?s:e.href?"a":"span"}),o=k(()=>e.href&&Qe.test(e.href)||e.target==="_blank");return(s,a)=>{var c,l;return r(),g(q(t.value),{class:T(["VPLink",{link:s.href,"vp-external-link-icon":o.value,"no-icon":s.noIcon}]),href:s.href?i(De)(s.href):void 0,target:(c=s.target)!=null?c:o.value?"_blank":void 0,rel:(l=s.rel)!=null?l:o.value?"noreferrer":void 0},{default:v(()=>[p(s.$slots,"default")]),_:3},8,["class","href","target","rel"])}}}),Ln={class:"VPLastUpdated"},Vn=["datetime"],Sn=h({__name:"VPDocFooterLastUpdated",setup(n){const{theme:e,page:t,lang:o}=L(),s=k(()=>new Date(t.value.lastUpdated)),a=k(()=>s.value.toISOString()),c=C("");return G(()=>{_e(()=>{var l,f,b,w;c.value=new Intl.DateTimeFormat((f=(l=e.value.lastUpdated)==null?void 0:l.formatOptions)!=null&&f.forceLocale?o.value:void 0,(w=(b=e.value.lastUpdated)==null?void 0:b.formatOptions)!=null?w:{dateStyle:"short",timeStyle:"short"}).format(s.value)})}),(l,f)=>{var b;return r(),d("p",Ln,[ne(S(((b=i(e).lastUpdated)==null?void 0:b.text)||i(e).lastUpdatedText||"Last updated")+": ",1),u("time",{datetime:a.value},S(c.value),9,Vn)])}}}),Tn=$(Sn,[["__scopeId","data-v-3c0ab652"]]),In={key:0,class:"VPDocFooter"},Nn={key:0,class:"edit-info"},Mn={key:0,class:"edit-link"},Cn={key:1,class:"last-updated"},Hn={key:1,class:"prev-next","aria-labelledby":"doc-footer-aria-label"},Bn={class:"pager"},An=["innerHTML"],En=["innerHTML"],Dn={class:"pager"},Fn=["innerHTML"],On=["innerHTML"],Rn=h({__name:"VPDocFooter",setup(n){const{theme:e,page:t,frontmatter:o}=L(),s=$n(),a=wn(),c=k(()=>e.value.editLink&&o.value.editLink!==!1),l=k(()=>t.value.lastUpdated),f=k(()=>c.value||l.value||a.value.prev||a.value.next);return(b,w)=>{var y,P,V,N;return f.value?(r(),d("footer",In,[p(b.$slots,"doc-footer-before",{},void 0,!0),c.value||l.value?(r(),d("div",Nn,[c.value?(r(),d("div",Mn,[_(X,{class:"edit-link-button",href:i(s).url,"no-icon":!0},{default:v(()=>[w[0]||(w[0]=u("span",{class:"vpi-square-pen edit-link-icon"},null,-1)),ne(" "+S(i(s).text),1)]),_:1},8,["href"])])):m("",!0),l.value?(r(),d("div",Cn,[_(Tn)])):m("",!0)])):m("",!0),(y=i(a).prev)!=null&&y.link||(P=i(a).next)!=null&&P.link?(r(),d("nav",Hn,[w[1]||(w[1]=u("span",{class:"visually-hidden",id:"doc-footer-aria-label"},"Pager",-1)),u("div",Bn,[(V=i(a).prev)!=null&&V.link?(r(),g(X,{key:0,class:"pager-link prev",href:i(a).prev.link},{default:v(()=>{var B;return[u("span",{class:"desc",innerHTML:((B=i(e).docFooter)==null?void 0:B.prev)||"Previous page"},null,8,An),u("span",{class:"title",innerHTML:i(a).prev.text},null,8,En)]}),_:1},8,["href"])):m("",!0)]),u("div",Dn,[(N=i(a).next)!=null&&N.link?(r(),g(X,{key:0,class:"pager-link next",href:i(a).next.link},{default:v(()=>{var B;return[u("span",{class:"desc",innerHTML:((B=i(e).docFooter)==null?void 0:B.next)||"Next page"},null,8,Fn),u("span",{class:"title",innerHTML:i(a).next.text},null,8,On)]}),_:1},8,["href"])):m("",!0)])])):m("",!0)])):m("",!0)}}}),jn=$(Rn,[["__scopeId","data-v-a1b438f2"]]),Un={class:"container"},Gn={class:"aside-container"},Wn={class:"aside-content"},zn={class:"content"},qn={class:"content-container"},Xn={class:"main"},Yn=h({__name:"VPDoc",setup(n){const{theme:e}=L(),t=ge(),{hasSidebar:o,hasAside:s,leftAside:a}=Z(),c=k(()=>t.path.replace(/[./]+/g,"_").replace(/_html$/,""));return(l,f)=>{const b=J("Content");return r(),d("div",{class:T(["VPDoc",{"has-sidebar":i(o),"has-aside":i(s)}])},[p(l.$slots,"doc-top",{},void 0,!0),u("div",Un,[i(s)?(r(),d("div",{key:0,class:T(["aside",{"left-aside":i(a)}])},[f[0]||(f[0]=u("div",{class:"aside-curtain"},null,-1)),u("div",Gn,[u("div",Wn,[_(yn,null,{"aside-top":v(()=>[p(l.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":v(()=>[p(l.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":v(()=>[p(l.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":v(()=>[p(l.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":v(()=>[p(l.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":v(()=>[p(l.$slots,"aside-ads-after",{},void 0,!0)]),_:3})])])],2)):m("",!0),u("div",zn,[u("div",qn,[p(l.$slots,"doc-before",{},void 0,!0),u("main",Xn,[_(b,{class:T(["vp-doc",[c.value,i(e).externalLinkIcon&&"external-link-icon-enabled"]])},null,8,["class"])]),_(jn,null,{"doc-footer-before":v(()=>[p(l.$slots,"doc-footer-before",{},void 0,!0)]),_:3}),p(l.$slots,"doc-after",{},void 0,!0)])])]),p(l.$slots,"doc-bottom",{},void 0,!0)],2)}}}),Kn=$(Yn,[["__scopeId","data-v-fca3d7b4"]]),Jn=h({__name:"VPButton",props:{tag:{},size:{default:"medium"},theme:{default:"brand"},text:{},href:{},target:{},rel:{}},setup(n){const e=n,t=k(()=>e.href&&Qe.test(e.href)),o=k(()=>e.tag||(e.href?"a":"button"));return(s,a)=>{var c,l;return r(),g(q(o.value),{class:T(["VPButton",[s.size,s.theme]]),href:s.href?i(De)(s.href):void 0,target:(c=e.target)!=null?c:t.value?"_blank":void 0,rel:(l=e.rel)!=null?l:t.value?"noreferrer":void 0},{default:v(()=>[p(s.$slots,"default",{},()=>[ne(S(s.text),1)],!0)]),_:3},8,["class","href","target","rel"])}}}),Zn=$(Jn,[["__scopeId","data-v-e65c33bf"]]),Qn=["src","alt"],xn=h({inheritAttrs:!1,__name:"VPImage",props:{image:{},alt:{}},setup(n){return(e,t)=>{var s;const o=J("VPImage",!0);return e.image?(r(),d(H,{key:0},[typeof e.image=="string"||"src"in e.image?(r(),d("img",x({key:0,class:"VPImage"},typeof e.image=="string"?e.$attrs:{...e.image,...e.$attrs},{src:i(Be)(typeof e.image=="string"?e.image:e.image.src),alt:(s=e.alt)!=null?s:typeof e.image=="string"?"":e.image.alt||""}),null,16,Qn)):(r(),d(H,{key:1},[_(o,x({class:"dark",image:e.image.dark,alt:e.image.alt},e.$attrs),null,16,["image","alt"]),_(o,x({class:"light",image:e.image.light,alt:e.image.alt},e.$attrs),null,16,["image","alt"])],64))],64)):m("",!0)}}}),fe=$(xn,[["__scopeId","data-v-4411b5a1"]]),eo={class:"container"},to={class:"main"},no={class:"heading"},oo=["innerHTML"],so=["innerHTML"],ao=["innerHTML"],ro={key:0,class:"actions"},io={key:0,class:"image"},lo={class:"image-container"},co=h({__name:"VPHero",props:{name:{},text:{},tagline:{},image:{},actions:{}},setup(n){const e=ke("hero-image-slot-exists");return(t,o)=>(r(),d("div",{class:T(["VPHero",{"has-image":t.image||i(e)}])},[u("div",eo,[u("div",to,[p(t.$slots,"home-hero-info-before",{},void 0,!0),p(t.$slots,"home-hero-info",{},()=>[u("h1",no,[t.name?(r(),d("span",{key:0,innerHTML:t.name,class:"name clip"},null,8,oo)):m("",!0),t.text?(r(),d("span",{key:1,innerHTML:t.text,class:"text"},null,8,so)):m("",!0)]),t.tagline?(r(),d("p",{key:0,innerHTML:t.tagline,class:"tagline"},null,8,ao)):m("",!0)],!0),p(t.$slots,"home-hero-info-after",{},void 0,!0),t.actions?(r(),d("div",ro,[(r(!0),d(H,null,E(t.actions,s=>(r(),d("div",{key:s.link,class:"action"},[_(Zn,{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))])):m("",!0),p(t.$slots,"home-hero-actions-after",{},void 0,!0)]),t.image||i(e)?(r(),d("div",io,[u("div",lo,[o[0]||(o[0]=u("div",{class:"image-bg"},null,-1)),p(t.$slots,"home-hero-image",{},()=>[t.image?(r(),g(fe,{key:0,class:"image-src",image:t.image},null,8,["image"])):m("",!0)],!0)])])):m("",!0)])],2))}}),uo=$(co,[["__scopeId","data-v-37aacaf6"]]),po=h({__name:"VPHomeHero",setup(n){const{frontmatter:e}=L();return(t,o)=>i(e).hero?(r(),g(uo,{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":v(()=>[p(t.$slots,"home-hero-info-before")]),"home-hero-info":v(()=>[p(t.$slots,"home-hero-info")]),"home-hero-info-after":v(()=>[p(t.$slots,"home-hero-info-after")]),"home-hero-actions-after":v(()=>[p(t.$slots,"home-hero-actions-after")]),"home-hero-image":v(()=>[p(t.$slots,"home-hero-image")]),_:3},8,["name","text","tagline","image","actions"])):m("",!0)}}),vo={class:"box"},ho={key:0,class:"icon"},fo=["innerHTML"],mo=["innerHTML"],_o=["innerHTML"],go={key:4,class:"link-text"},ko={class:"link-text-value"},bo=h({__name:"VPFeature",props:{icon:{},title:{},details:{},link:{},linkText:{},rel:{},target:{}},setup(n){return(e,t)=>(r(),g(X,{class:"VPFeature",href:e.link,rel:e.rel,target:e.target,"no-icon":!0,tag:e.link?"a":"div"},{default:v(()=>[u("article",vo,[typeof e.icon=="object"&&e.icon.wrap?(r(),d("div",ho,[_(fe,{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"?(r(),g(fe,{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?(r(),d("div",{key:2,class:"icon",innerHTML:e.icon},null,8,fo)):m("",!0),u("h2",{class:"title",innerHTML:e.title},null,8,mo),e.details?(r(),d("p",{key:3,class:"details",innerHTML:e.details},null,8,_o)):m("",!0),e.linkText?(r(),d("div",go,[u("p",ko,[ne(S(e.linkText)+" ",1),t[0]||(t[0]=u("span",{class:"vpi-arrow-right link-text-icon"},null,-1))])])):m("",!0)])]),_:1},8,["href","rel","target","tag"]))}}),yo=$(bo,[["__scopeId","data-v-2e99674c"]]),$o={key:0,class:"VPFeatures"},wo={class:"container"},Po={class:"items"},Lo=h({__name:"VPFeatures",props:{features:{}},setup(n){const e=n,t=k(()=>{const o=e.features.length;if(o){if(o===2)return"grid-2";if(o===3)return"grid-3";if(o%3===0)return"grid-6";if(o>3)return"grid-4"}else return});return(o,s)=>o.features?(r(),d("div",$o,[u("div",wo,[u("div",Po,[(r(!0),d(H,null,E(o.features,a=>(r(),d("div",{key:a.title,class:T(["item",[t.value]])},[_(yo,{icon:a.icon,title:a.title,details:a.details,link:a.link,"link-text":a.linkText,rel:a.rel,target:a.target},null,8,["icon","title","details","link","link-text","rel","target"])],2))),128))])])])):m("",!0)}}),Vo=$(Lo,[["__scopeId","data-v-4cd51504"]]),So=h({__name:"VPHomeFeatures",setup(n){const{frontmatter:e}=L();return(t,o)=>i(e).features?(r(),g(Vo,{key:0,class:"VPHomeFeatures",features:i(e).features},null,8,["features"])):m("",!0)}}),To=h({__name:"VPHomeContent",setup(n){const{width:e}=xe({initialWidth:0,includeScrollbar:!1});return(t,o)=>(r(),d("div",{class:"vp-doc container",style:he(i(e)?{"--vp-offset":`calc(50% - ${i(e)/2}px)`}:{})},[p(t.$slots,"default",{},void 0,!0)],4))}}),Io=$(To,[["__scopeId","data-v-d4f16320"]]),No=h({__name:"VPHome",setup(n){const{frontmatter:e,theme:t}=L();return(o,s)=>{const a=J("Content");return r(),d("div",{class:T(["VPHome",{"external-link-icon-enabled":i(t).externalLinkIcon}])},[p(o.$slots,"home-hero-before",{},void 0,!0),_(po,null,{"home-hero-info-before":v(()=>[p(o.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":v(()=>[p(o.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":v(()=>[p(o.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":v(()=>[p(o.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":v(()=>[p(o.$slots,"home-hero-image",{},void 0,!0)]),_:3}),p(o.$slots,"home-hero-after",{},void 0,!0),p(o.$slots,"home-features-before",{},void 0,!0),_(So),p(o.$slots,"home-features-after",{},void 0,!0),i(e).markdownStyles!==!1?(r(),g(Io,{key:0},{default:v(()=>[_(a)]),_:1})):(r(),g(a,{key:1}))],2)}}}),Mo=$(No,[["__scopeId","data-v-4b5bcac4"]]),Co={},Ho={class:"VPPage"};function Bo(n,e){const t=J("Content");return r(),d("div",Ho,[p(n.$slots,"page-top"),_(t),p(n.$slots,"page-bottom")])}const Ao=$(Co,[["render",Bo]]),Eo=h({__name:"VPContent",setup(n){const{page:e,frontmatter:t}=L(),{isHome:o,hasSidebar:s}=Z();return(a,c)=>(r(),d("div",{class:T(["VPContent",{"has-sidebar":i(s),"is-home":i(o)}]),id:"VPContent"},[i(e).isNotFound?p(a.$slots,"not-found",{key:0},()=>[_(Kt)],!0):i(t).layout==="page"?(r(),g(Ao,{key:1},{"page-top":v(()=>[p(a.$slots,"page-top",{},void 0,!0)]),"page-bottom":v(()=>[p(a.$slots,"page-bottom",{},void 0,!0)]),_:3})):i(t).layout==="home"?(r(),g(Mo,{key:2},{"home-hero-before":v(()=>[p(a.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":v(()=>[p(a.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":v(()=>[p(a.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":v(()=>[p(a.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":v(()=>[p(a.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":v(()=>[p(a.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":v(()=>[p(a.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":v(()=>[p(a.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":v(()=>[p(a.$slots,"home-features-after",{},void 0,!0)]),_:3})):i(t).layout&&i(t).layout!=="doc"?(r(),g(q(i(t).layout),{key:3})):(r(),g(Kn,{key:4},{"doc-top":v(()=>[p(a.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":v(()=>[p(a.$slots,"doc-bottom",{},void 0,!0)]),"doc-footer-before":v(()=>[p(a.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":v(()=>[p(a.$slots,"doc-before",{},void 0,!0)]),"doc-after":v(()=>[p(a.$slots,"doc-after",{},void 0,!0)]),"aside-top":v(()=>[p(a.$slots,"aside-top",{},void 0,!0)]),"aside-outline-before":v(()=>[p(a.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":v(()=>[p(a.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":v(()=>[p(a.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":v(()=>[p(a.$slots,"aside-ads-after",{},void 0,!0)]),"aside-bottom":v(()=>[p(a.$slots,"aside-bottom",{},void 0,!0)]),_:3}))],2))}}),Do=$(Eo,[["__scopeId","data-v-2bf60481"]]),Fo={class:"container"},Oo=["innerHTML"],Ro=["innerHTML"],jo=h({__name:"VPFooter",setup(n){const{theme:e,frontmatter:t}=L(),{hasSidebar:o}=Z();return(s,a)=>i(e).footer&&i(t).footer!==!1?(r(),d("footer",{key:0,class:T(["VPFooter",{"has-sidebar":i(o)}])},[u("div",Fo,[i(e).footer.message?(r(),d("p",{key:0,class:"message",innerHTML:i(e).footer.message},null,8,Oo)):m("",!0),i(e).footer.copyright?(r(),d("p",{key:1,class:"copyright",innerHTML:i(e).footer.copyright},null,8,Ro)):m("",!0)])],2)):m("",!0)}}),Uo=$(jo,[["__scopeId","data-v-dfd62421"]]),Go={class:"menu-text"},Wo={class:"header"},zo={class:"outline"},qo=h({__name:"VPLocalNavOutlineDropdown",props:{headers:{},navHeight:{}},setup(n){const e=n,{theme:t}=L(),o=C(!1),s=C(0),a=C(),c=C();function l(y){var P;(P=a.value)!=null&&P.contains(y.target)||(o.value=!1)}K(o,y=>{if(y){document.addEventListener("click",l);return}document.removeEventListener("click",l)}),Le("Escape",()=>{o.value=!1}),Ze(()=>{o.value=!1});function f(){o.value=!o.value,s.value=window.innerHeight+Math.min(window.scrollY-e.navHeight,0)}function b(y){y.target.classList.contains("outline-link")&&(c.value&&(c.value.style.transition="none"),be(()=>{o.value=!1}))}function w(){o.value=!1,window.scrollTo({top:0,left:0,behavior:"smooth"})}return(y,P)=>(r(),d("div",{class:"VPLocalNavOutlineDropdown",style:he({"--vp-vh":s.value+"px"}),ref_key:"main",ref:a},[y.headers.length>0?(r(),d("button",{key:0,onClick:f,class:T({open:o.value})},[u("span",Go,S(i(at)(i(t))),1),P[0]||(P[0]=u("span",{class:"vpi-chevron-right icon"},null,-1))],2)):(r(),d("button",{key:1,onClick:w},S(i(t).returnToTopLabel||"Return to top"),1)),_(He,{name:"flyout"},{default:v(()=>[o.value?(r(),d("div",{key:0,ref_key:"items",ref:c,class:"items",onClick:b},[u("div",Wo,[u("a",{class:"top-link",href:"#",onClick:w},S(i(t).returnToTopLabel||"Return to top"),1)]),u("div",zo,[_(rt,{headers:y.headers},null,8,["headers"])])],512)):m("",!0)]),_:1})],4))}}),Xo=$(qo,[["__scopeId","data-v-140ec73d"]]),Yo={class:"container"},Ko=["aria-expanded"],Jo={class:"menu-text"},Zo=h({__name:"VPLocalNav",props:{open:{type:Boolean}},emits:["open-menu"],setup(n){const{theme:e}=L(),{isHome:t,hasSidebar:o,headers:s,hasLocalNav:a}=Z(),{y:c}=et(),l=C(0);G(()=>{l.value=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--vp-nav-height"))});const f=k(()=>({VPLocalNav:!0,"has-sidebar":o.value,empty:!a.value,fixed:!a.value&&!o.value}));return(b,w)=>!i(t)&&(i(a)||i(o)||i(c)>=l.value)?(r(),d("div",{key:0,class:T(f.value)},[u("div",Yo,[i(o)?(r(),d("button",{key:0,class:"menu","aria-expanded":b.open,"aria-controls":"VPSidebarNav",onClick:w[0]||(w[0]=y=>b.$emit("open-menu"))},[w[1]||(w[1]=u("span",{class:"vpi-align-left menu-icon"},null,-1)),u("span",Jo,S(i(e).sidebarMenuLabel||"Menu"),1)],8,Ko)):m("",!0),_(Xo,{headers:i(s),navHeight:l.value},null,8,["headers","navHeight"])])],2)):m("",!0)}}),Qo=$(Zo,[["__scopeId","data-v-184d83e3"]]);function xo(){const n=C(!1);function e(){n.value=!0,window.addEventListener("resize",s)}function t(){n.value=!1,window.removeEventListener("resize",s)}function o(){n.value?t():e()}function s(){window.outerWidth>=768&&t()}const a=ge();return K(()=>a.path,t),{isScreenOpen:n,openScreen:e,closeScreen:t,toggleScreen:o}}const es={},ts={class:"VPSwitch",type:"button",role:"switch"},ns={class:"check"},os={key:0,class:"icon"};function ss(n,e){return r(),d("button",ts,[u("span",ns,[n.$slots.default?(r(),d("span",os,[p(n.$slots,"default",{},void 0,!0)])):m("",!0)])])}const as=$(es,[["render",ss],["__scopeId","data-v-4b902073"]]),rs=h({__name:"VPSwitchAppearance",setup(n){const{isDark:e,theme:t}=L(),o=ke("toggle-appearance",()=>{e.value=!e.value}),s=C("");return Ee(()=>{s.value=e.value?t.value.lightModeSwitchTitle||"Switch to light theme":t.value.darkModeSwitchTitle||"Switch to dark theme"}),(a,c)=>(r(),g(as,{title:s.value,class:"VPSwitchAppearance","aria-checked":i(e),onClick:i(o)},{default:v(()=>c[0]||(c[0]=[u("span",{class:"vpi-sun sun"},null,-1),u("span",{class:"vpi-moon moon"},null,-1)])),_:1},8,["title","aria-checked","onClick"]))}}),Fe=$(rs,[["__scopeId","data-v-90ab656d"]]),is={key:0,class:"VPNavBarAppearance"},ls=h({__name:"VPNavBarAppearance",setup(n){const{site:e}=L();return(t,o)=>i(e).appearance&&i(e).appearance!=="force-dark"&&i(e).appearance!=="force-auto"?(r(),d("div",is,[_(Fe)])):m("",!0)}}),cs=$(ls,[["__scopeId","data-v-61b7e458"]]),Oe=C();let it=!1,we=0;function us(n){const e=C(!1);if(de){!it&&ds(),we++;const t=K(Oe,o=>{var s,a,c;o===n.el.value||(s=n.el.value)!=null&&s.contains(o)?(e.value=!0,(a=n.onFocus)==null||a.call(n)):(e.value=!1,(c=n.onBlur)==null||c.call(n))});Ae(()=>{t(),we--,we||ps()})}return wt(e)}function ds(){document.addEventListener("focusin",lt),it=!0,Oe.value=document.activeElement}function ps(){document.removeEventListener("focusin",lt)}function lt(){Oe.value=document.activeElement}const vs={class:"VPMenuLink"},hs=["innerHTML"],fs=h({__name:"VPMenuLink",props:{item:{}},setup(n){const{page:e}=L();return(t,o)=>(r(),d("div",vs,[_(X,{class:T({active:i(oe)(i(e).relativePath,t.item.activeMatch||t.item.link,!!t.item.activeMatch)}),href:t.item.link,target:t.item.target,rel:t.item.rel,"no-icon":t.item.noIcon},{default:v(()=>[u("span",{innerHTML:t.item.text},null,8,hs)]),_:1},8,["class","href","target","rel","no-icon"])]))}}),ye=$(fs,[["__scopeId","data-v-ef2259e2"]]),ms={class:"VPMenuGroup"},_s={key:0,class:"title"},gs=h({__name:"VPMenuGroup",props:{text:{},items:{}},setup(n){return(e,t)=>(r(),d("div",ms,[e.text?(r(),d("p",_s,S(e.text),1)):m("",!0),(r(!0),d(H,null,E(e.items,o=>(r(),d(H,null,["link"in o?(r(),g(ye,{key:0,item:o},null,8,["item"])):m("",!0)],64))),256))]))}}),ks=$(gs,[["__scopeId","data-v-0e873531"]]),bs={class:"VPMenu"},ys={key:0,class:"items"},$s=h({__name:"VPMenu",props:{items:{}},setup(n){return(e,t)=>(r(),d("div",bs,[e.items?(r(),d("div",ys,[(r(!0),d(H,null,E(e.items,o=>(r(),d(H,{key:JSON.stringify(o)},["link"in o?(r(),g(ye,{key:0,item:o},null,8,["item"])):"component"in o?(r(),g(q(o.component),x({key:1,ref_for:!0},o.props),null,16)):(r(),g(ks,{key:2,text:o.text,items:o.items},null,8,["text","items"]))],64))),128))])):m("",!0),p(e.$slots,"default",{},void 0,!0)]))}}),ws=$($s,[["__scopeId","data-v-84e140b8"]]),Ps=["aria-expanded","aria-label"],Ls={key:0,class:"text"},Vs=["innerHTML"],Ss={key:1,class:"vpi-more-horizontal icon"},Ts={class:"menu"},Is=h({__name:"VPFlyout",props:{icon:{},button:{},label:{},items:{}},setup(n){const e=C(!1),t=C();us({el:t,onBlur:o});function o(){e.value=!1}return(s,a)=>(r(),d("div",{class:"VPFlyout",ref_key:"el",ref:t,onMouseenter:a[1]||(a[1]=c=>e.value=!0),onMouseleave:a[2]||(a[2]=c=>e.value=!1)},[u("button",{type:"button",class:"button","aria-haspopup":"true","aria-expanded":e.value,"aria-label":s.label,onClick:a[0]||(a[0]=c=>e.value=!e.value)},[s.button||s.icon?(r(),d("span",Ls,[s.icon?(r(),d("span",{key:0,class:T([s.icon,"option-icon"])},null,2)):m("",!0),s.button?(r(),d("span",{key:1,innerHTML:s.button},null,8,Vs)):m("",!0),a[3]||(a[3]=u("span",{class:"vpi-chevron-down text-icon"},null,-1))])):(r(),d("span",Ss))],8,Ps),u("div",Ts,[_(ws,{items:s.items},{default:v(()=>[p(s.$slots,"default",{},void 0,!0)]),_:3},8,["items"])])],544))}}),Re=$(Is,[["__scopeId","data-v-39bffa16"]]),Ns=["href","aria-label","innerHTML"],Ms=h({__name:"VPSocialLink",props:{icon:{},link:{},ariaLabel:{}},setup(n){const e=n,t=C();G(async()=>{var a;await be();const s=(a=t.value)==null?void 0:a.children[0];s instanceof HTMLElement&&s.className.startsWith("vpi-social-")&&(getComputedStyle(s).maskImage||getComputedStyle(s).webkitMaskImage)==="none"&&s.style.setProperty("--icon",`url('https://api.iconify.design/simple-icons/${e.icon}.svg')`)});const o=k(()=>typeof e.icon=="object"?e.icon.svg:`<span class="vpi-social-${e.icon}"></span>`);return(s,a)=>{var c;return r(),d("a",{ref_key:"el",ref:t,class:"VPSocialLink no-icon",href:s.link,"aria-label":(c=s.ariaLabel)!=null?c:typeof s.icon=="string"?s.icon:"",target:"_blank",rel:"noopener",innerHTML:o.value},null,8,Ns)}}}),Cs=$(Ms,[["__scopeId","data-v-407d0ee0"]]),Hs={class:"VPSocialLinks"},Bs=h({__name:"VPSocialLinks",props:{links:{}},setup(n){return(e,t)=>(r(),d("div",Hs,[(r(!0),d(H,null,E(e.links,({link:o,icon:s,ariaLabel:a})=>(r(),g(Cs,{key:o,icon:s,link:o,ariaLabel:a},null,8,["icon","link","ariaLabel"]))),128))]))}}),je=$(Bs,[["__scopeId","data-v-48a3b1ba"]]),As={key:0,class:"group translations"},Es={class:"trans-title"},Ds={key:1,class:"group"},Fs={class:"item appearance"},Os={class:"label"},Rs={class:"appearance-action"},js={key:2,class:"group"},Us={class:"item social-links"},Gs=h({__name:"VPNavBarExtra",setup(n){const{site:e,theme:t}=L(),{localeLinks:o,currentLang:s}=pe({correspondingLink:!0}),a=k(()=>o.value.length&&s.value.label||e.value.appearance||t.value.socialLinks);return(c,l)=>a.value?(r(),g(Re,{key:0,class:"VPNavBarExtra",label:"extra navigation"},{default:v(()=>[i(o).length&&i(s).label?(r(),d("div",As,[u("p",Es,S(i(s).label),1),(r(!0),d(H,null,E(i(o),f=>(r(),g(ye,{key:f.link,item:f},null,8,["item"]))),128))])):m("",!0),i(e).appearance&&i(e).appearance!=="force-dark"&&i(e).appearance!=="force-auto"?(r(),d("div",Ds,[u("div",Fs,[u("p",Os,S(i(t).darkModeSwitchLabel||"Appearance"),1),u("div",Rs,[_(Fe)])])])):m("",!0),i(t).socialLinks?(r(),d("div",js,[u("div",Us,[_(je,{class:"social-links-list",links:i(t).socialLinks},null,8,["links"])])])):m("",!0)]),_:1})):m("",!0)}}),Ws=$(Gs,[["__scopeId","data-v-3eec47db"]]),zs=["aria-expanded"],qs=h({__name:"VPNavBarHamburger",props:{active:{type:Boolean}},emits:["click"],setup(n){return(e,t)=>(r(),d("button",{type:"button",class:T(["VPNavBarHamburger",{active:e.active}]),"aria-label":"mobile navigation","aria-expanded":e.active,"aria-controls":"VPNavScreen",onClick:t[0]||(t[0]=o=>e.$emit("click"))},t[1]||(t[1]=[u("span",{class:"container"},[u("span",{class:"top"}),u("span",{class:"middle"}),u("span",{class:"bottom"})],-1)]),10,zs))}}),Xs=$(qs,[["__scopeId","data-v-65cc5a44"]]),Ys=["innerHTML"],Ks=h({__name:"VPNavBarMenuLink",props:{item:{}},setup(n){const{page:e}=L();return(t,o)=>(r(),g(X,{class:T({VPNavBarMenuLink:!0,active:i(oe)(i(e).relativePath,t.item.activeMatch||t.item.link,!!t.item.activeMatch)}),href:t.item.link,target:t.item.target,rel:t.item.rel,"no-icon":t.item.noIcon,tabindex:"0"},{default:v(()=>[u("span",{innerHTML:t.item.text},null,8,Ys)]),_:1},8,["class","href","target","rel","no-icon"]))}}),Js=$(Ks,[["__scopeId","data-v-ce42cd5c"]]),Zs=h({__name:"VPNavBarMenuGroup",props:{item:{}},setup(n){const e=n,{page:t}=L(),o=a=>"component"in a?!1:"link"in a?oe(t.value.relativePath,a.link,!!e.item.activeMatch):a.items.some(o),s=k(()=>o(e.item));return(a,c)=>(r(),g(Re,{class:T({VPNavBarMenuGroup:!0,active:i(oe)(i(t).relativePath,a.item.activeMatch,!!a.item.activeMatch)||s.value}),button:a.item.text,items:a.item.items},null,8,["class","button","items"]))}}),Qs={key:0,"aria-labelledby":"main-nav-aria-label",class:"VPNavBarMenu"},xs=h({__name:"VPNavBarMenu",setup(n){const{theme:e}=L();return(t,o)=>i(e).nav?(r(),d("nav",Qs,[o[0]||(o[0]=u("span",{id:"main-nav-aria-label",class:"visually-hidden"}," Main Navigation ",-1)),(r(!0),d(H,null,E(i(e).nav,s=>(r(),d(H,{key:JSON.stringify(s)},["link"in s?(r(),g(Js,{key:0,item:s},null,8,["item"])):"component"in s?(r(),g(q(s.component),x({key:1,ref_for:!0},s.props),null,16)):(r(),g(Zs,{key:2,item:s},null,8,["item"]))],64))),128))])):m("",!0)}}),ea=$(xs,[["__scopeId","data-v-59bbf754"]]);function ta(n){const{localeIndex:e,theme:t}=L();function o(s){var N,B,I,D,W,z;const a=s.split("."),c=(N=t.value.search)==null?void 0:N.options,l=c&&typeof c=="object",f=l&&((I=(B=c.locales)==null?void 0:B[e.value])==null?void 0:I.translations)||null,b=l&&c.translations||null;let w=f,y=b,P=n;const V=a.pop();for(const Q of a){let F=null;const O=P==null?void 0:P[Q];O&&(F=P=O);const Y=y==null?void 0:y[Q];Y&&(F=y=Y);const M=w==null?void 0:w[Q];M&&(F=w=M),O||(P=F),Y||(y=F),M||(w=F)}return(z=(W=(D=w==null?void 0:w[V])!=null?D:y==null?void 0:y[V])!=null?W:P==null?void 0:P[V])!=null?z:""}return o}const na=["aria-label"],oa={class:"DocSearch-Button-Container"},sa={class:"DocSearch-Button-Placeholder"},ze=h({__name:"VPNavBarSearchButton",setup(n){const t=ta({button:{buttonText:"Search",buttonAriaLabel:"Search"}});return(o,s)=>(r(),d("button",{type:"button",class:"DocSearch DocSearch-Button","aria-label":i(t)("button.buttonAriaLabel")},[u("span",oa,[s[0]||(s[0]=u("span",{class:"vp-icon DocSearch-Search-Icon"},null,-1)),u("span",sa,S(i(t)("button.buttonText")),1)]),s[1]||(s[1]=u("span",{class:"DocSearch-Button-Keys"},[u("kbd",{class:"DocSearch-Button-Key"}),u("kbd",{class:"DocSearch-Button-Key"},"K")],-1))],8,na))}}),aa={class:"VPNavBarSearch"},ra={id:"local-search"},ia={key:1,id:"docsearch"},la=h({__name:"VPNavBarSearch",setup(n){const e=Pt(()=>ue(()=>import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1750344534248/files/.vitepress/dist"+u}return u})("./VPLocalSearchBox.CQScatPC.js")),[])),t=()=>null,{theme:o}=L(),s=C(!1),a=C(!1);G(()=>{});function c(){s.value||(s.value=!0,setTimeout(l,16))}function l(){const y=new Event("keydown");y.key="k",y.metaKey=!0,window.dispatchEvent(y),setTimeout(()=>{document.querySelector(".DocSearch-Modal")||l()},16)}function f(y){const P=y.target,V=P.tagName;return P.isContentEditable||V==="INPUT"||V==="SELECT"||V==="TEXTAREA"}const b=C(!1);Le("k",y=>{(y.ctrlKey||y.metaKey)&&(y.preventDefault(),b.value=!0)}),Le("/",y=>{f(y)||(y.preventDefault(),b.value=!0)});const w="local";return(y,P)=>{var V,N;return r(),d("div",aa,[i(w)==="local"?(r(),d(H,{key:0},[b.value?(r(),g(i(e),{key:0,onClose:P[0]||(P[0]=B=>b.value=!1)})):m("",!0),u("div",ra,[_(ze,{onClick:P[1]||(P[1]=B=>b.value=!0)})])],64)):i(w)==="algolia"?(r(),d(H,{key:1},[s.value?(r(),g(i(t),{key:0,algolia:(N=(V=i(o).search)==null?void 0:V.options)!=null?N:i(o).algolia,onVnodeBeforeMount:P[2]||(P[2]=B=>a.value=!0)},null,8,["algolia"])):m("",!0),a.value?m("",!0):(r(),d("div",ia,[_(ze,{onClick:c})]))],64)):m("",!0)])}}}),ca=h({__name:"VPNavBarSocialLinks",setup(n){const{theme:e}=L();return(t,o)=>i(e).socialLinks?(r(),g(je,{key:0,class:"VPNavBarSocialLinks",links:i(e).socialLinks},null,8,["links"])):m("",!0)}}),ua=$(ca,[["__scopeId","data-v-8eba4111"]]),da=["href","rel","target"],pa=["innerHTML"],va={key:2},ha=h({__name:"VPNavBarTitle",setup(n){const{site:e,theme:t}=L(),{hasSidebar:o}=Z(),{currentLang:s}=pe(),a=k(()=>{var f;return typeof t.value.logoLink=="string"?t.value.logoLink:(f=t.value.logoLink)==null?void 0:f.link}),c=k(()=>{var f;return typeof t.value.logoLink=="string"||(f=t.value.logoLink)==null?void 0:f.rel}),l=k(()=>{var f;return typeof t.value.logoLink=="string"||(f=t.value.logoLink)==null?void 0:f.target});return(f,b)=>{var w;return r(),d("div",{class:T(["VPNavBarTitle",{"has-sidebar":i(o)}])},[u("a",{class:"title",href:(w=a.value)!=null?w:i(De)(i(s).link),rel:c.value,target:l.value},[p(f.$slots,"nav-bar-title-before",{},void 0,!0),i(t).logo?(r(),g(fe,{key:0,class:"logo",image:i(t).logo},null,8,["image"])):m("",!0),i(t).siteTitle?(r(),d("span",{key:1,innerHTML:i(t).siteTitle},null,8,pa)):i(t).siteTitle===void 0?(r(),d("span",va,S(i(e).title),1)):m("",!0),p(f.$slots,"nav-bar-title-after",{},void 0,!0)],8,da)],2)}}}),fa=$(ha,[["__scopeId","data-v-523c6416"]]),ma={class:"items"},_a={class:"title"},ga=h({__name:"VPNavBarTranslations",setup(n){const{theme:e}=L(),{localeLinks:t,currentLang:o}=pe({correspondingLink:!0});return(s,a)=>i(t).length&&i(o).label?(r(),g(Re,{key:0,class:"VPNavBarTranslations",icon:"vpi-languages",label:i(e).langMenuLabel||"Change language"},{default:v(()=>[u("div",ma,[u("p",_a,S(i(o).label),1),(r(!0),d(H,null,E(i(t),c=>(r(),g(ye,{key:c.link,item:c},null,8,["item"]))),128))])]),_:1},8,["label"])):m("",!0)}}),ka=$(ga,[["__scopeId","data-v-828bf90e"]]),ba={class:"wrapper"},ya={class:"container"},$a={class:"title"},wa={class:"content"},Pa={class:"content-body"},La=h({__name:"VPNavBar",props:{isScreenOpen:{type:Boolean}},emits:["toggle-screen"],setup(n){const e=n,{y:t}=et(),{isHome:o,hasSidebar:s}=Z(),a=C({});return Ee(()=>{a.value={"has-sidebar":s.value,home:o.value,top:t.value===0,"screen-open":e.isScreenOpen}}),(c,l)=>(r(),d("div",{class:T(["VPNavBar",a.value])},[u("div",ba,[u("div",ya,[u("div",$a,[_(fa,null,{"nav-bar-title-before":v(()=>[p(c.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":v(()=>[p(c.$slots,"nav-bar-title-after",{},void 0,!0)]),_:3})]),u("div",wa,[u("div",Pa,[p(c.$slots,"nav-bar-content-before",{},void 0,!0),_(la,{class:"search"}),_(ea,{class:"menu"}),_(ka,{class:"translations"}),_(cs,{class:"appearance"}),_(ua,{class:"social-links"}),_(Ws,{class:"extra"}),p(c.$slots,"nav-bar-content-after",{},void 0,!0),_(Xs,{class:"hamburger",active:c.isScreenOpen,onClick:l[0]||(l[0]=f=>c.$emit("toggle-screen"))},null,8,["active"])])])])]),l[1]||(l[1]=u("div",{class:"divider"},[u("div",{class:"divider-line"})],-1))],2))}}),Va=$(La,[["__scopeId","data-v-93e81c36"]]),Sa={key:0,class:"VPNavScreenAppearance"},Ta={class:"text"},Ia=h({__name:"VPNavScreenAppearance",setup(n){const{site:e,theme:t}=L();return(o,s)=>i(e).appearance&&i(e).appearance!=="force-dark"&&i(e).appearance!=="force-auto"?(r(),d("div",Sa,[u("p",Ta,S(i(t).darkModeSwitchLabel||"Appearance"),1),_(Fe)])):m("",!0)}}),Na=$(Ia,[["__scopeId","data-v-941483d9"]]),Ma=["innerHTML"],Ca=h({__name:"VPNavScreenMenuLink",props:{item:{}},setup(n){const e=ke("close-screen");return(t,o)=>(r(),g(X,{class:"VPNavScreenMenuLink",href:t.item.link,target:t.item.target,rel:t.item.rel,"no-icon":t.item.noIcon,onClick:i(e)},{default:v(()=>[u("span",{innerHTML:t.item.text},null,8,Ma)]),_:1},8,["href","target","rel","no-icon","onClick"]))}}),Ha=$(Ca,[["__scopeId","data-v-d8f476a5"]]),Ba=["innerHTML"],Aa=h({__name:"VPNavScreenMenuGroupLink",props:{item:{}},setup(n){const e=ke("close-screen");return(t,o)=>(r(),g(X,{class:"VPNavScreenMenuGroupLink",href:t.item.link,target:t.item.target,rel:t.item.rel,"no-icon":t.item.noIcon,onClick:i(e)},{default:v(()=>[u("span",{innerHTML:t.item.text},null,8,Ba)]),_:1},8,["href","target","rel","no-icon","onClick"]))}}),ct=$(Aa,[["__scopeId","data-v-61bcaf81"]]),Ea={class:"VPNavScreenMenuGroupSection"},Da={key:0,class:"title"},Fa=h({__name:"VPNavScreenMenuGroupSection",props:{text:{},items:{}},setup(n){return(e,t)=>(r(),d("div",Ea,[e.text?(r(),d("p",Da,S(e.text),1)):m("",!0),(r(!0),d(H,null,E(e.items,o=>(r(),g(ct,{key:o.text,item:o},null,8,["item"]))),128))]))}}),Oa=$(Fa,[["__scopeId","data-v-a1d97f48"]]),Ra=["aria-controls","aria-expanded"],ja=["innerHTML"],Ua=["id"],Ga={key:0,class:"item"},Wa={key:1,class:"item"},za={key:2,class:"group"},qa=h({__name:"VPNavScreenMenuGroup",props:{text:{},items:{}},setup(n){const e=n,t=C(!1),o=k(()=>`NavScreenGroup-${e.text.replace(" ","-").toLowerCase()}`);function s(){t.value=!t.value}return(a,c)=>(r(),d("div",{class:T(["VPNavScreenMenuGroup",{open:t.value}])},[u("button",{class:"button","aria-controls":o.value,"aria-expanded":t.value,onClick:s},[u("span",{class:"button-text",innerHTML:a.text},null,8,ja),c[0]||(c[0]=u("span",{class:"vpi-plus button-icon"},null,-1))],8,Ra),u("div",{id:o.value,class:"items"},[(r(!0),d(H,null,E(a.items,l=>(r(),d(H,{key:JSON.stringify(l)},["link"in l?(r(),d("div",Ga,[_(ct,{item:l},null,8,["item"])])):"component"in l?(r(),d("div",Wa,[(r(),g(q(l.component),x({ref_for:!0},l.props,{"screen-menu":""}),null,16))])):(r(),d("div",za,[_(Oa,{text:l.text,items:l.items},null,8,["text","items"])]))],64))),128))],8,Ua)],2))}}),Xa=$(qa,[["__scopeId","data-v-23ebbd87"]]),Ya={key:0,class:"VPNavScreenMenu"},Ka=h({__name:"VPNavScreenMenu",setup(n){const{theme:e}=L();return(t,o)=>i(e).nav?(r(),d("nav",Ya,[(r(!0),d(H,null,E(i(e).nav,s=>(r(),d(H,{key:JSON.stringify(s)},["link"in s?(r(),g(Ha,{key:0,item:s},null,8,["item"])):"component"in s?(r(),g(q(s.component),x({key:1,ref_for:!0},s.props,{"screen-menu":""}),null,16)):(r(),g(Xa,{key:2,text:s.text||"",items:s.items},null,8,["text","items"]))],64))),128))])):m("",!0)}}),Ja=h({__name:"VPNavScreenSocialLinks",setup(n){const{theme:e}=L();return(t,o)=>i(e).socialLinks?(r(),g(je,{key:0,class:"VPNavScreenSocialLinks",links:i(e).socialLinks},null,8,["links"])):m("",!0)}}),Za={class:"list"},Qa=h({__name:"VPNavScreenTranslations",setup(n){const{localeLinks:e,currentLang:t}=pe({correspondingLink:!0}),o=C(!1);function s(){o.value=!o.value}return(a,c)=>i(e).length&&i(t).label?(r(),d("div",{key:0,class:T(["VPNavScreenTranslations",{open:o.value}])},[u("button",{class:"title",onClick:s},[c[0]||(c[0]=u("span",{class:"vpi-languages icon lang"},null,-1)),ne(" "+S(i(t).label)+" ",1),c[1]||(c[1]=u("span",{class:"vpi-chevron-down icon chevron"},null,-1))]),u("ul",Za,[(r(!0),d(H,null,E(i(e),l=>(r(),d("li",{key:l.link,class:"item"},[_(X,{class:"link",href:l.link},{default:v(()=>[ne(S(l.text),1)]),_:2},1032,["href"])]))),128))])],2)):m("",!0)}}),xa=$(Qa,[["__scopeId","data-v-5d278ebd"]]),er={class:"container"},tr=h({__name:"VPNavScreen",props:{open:{type:Boolean}},setup(n){const e=C(null),t=tt(de?document.body:null);return(o,s)=>(r(),g(He,{name:"fade",onEnter:s[0]||(s[0]=a=>t.value=!0),onAfterLeave:s[1]||(s[1]=a=>t.value=!1)},{default:v(()=>[o.open?(r(),d("div",{key:0,class:"VPNavScreen",ref_key:"screen",ref:e,id:"VPNavScreen"},[u("div",er,[p(o.$slots,"nav-screen-content-before",{},void 0,!0),_(Ka,{class:"menu"}),_(xa,{class:"translations"}),_(Na,{class:"appearance"}),_(Ja,{class:"social-links"}),p(o.$slots,"nav-screen-content-after",{},void 0,!0)])],512)):m("",!0)]),_:3}))}}),nr=$(tr,[["__scopeId","data-v-73bcd42b"]]),or={key:0,class:"VPNav"},sr=h({__name:"VPNav",setup(n){const{isScreenOpen:e,closeScreen:t,toggleScreen:o}=xo(),{frontmatter:s}=L(),a=k(()=>s.value.navbar!==!1);return nt("close-screen",t),_e(()=>{de&&document.documentElement.classList.toggle("hide-nav",!a.value)}),(c,l)=>a.value?(r(),d("header",or,[_(Va,{"is-screen-open":i(e),onToggleScreen:i(o)},{"nav-bar-title-before":v(()=>[p(c.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":v(()=>[p(c.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":v(()=>[p(c.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":v(()=>[p(c.$slots,"nav-bar-content-after",{},void 0,!0)]),_:3},8,["is-screen-open","onToggleScreen"]),_(nr,{open:i(e)},{"nav-screen-content-before":v(()=>[p(c.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":v(()=>[p(c.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3},8,["open"])])):m("",!0)}}),ar=$(sr,[["__scopeId","data-v-b47d639c"]]),rr=["role","tabindex"],ir={key:1,class:"items"},lr=h({__name:"VPSidebarItem",props:{item:{},depth:{}},setup(n){const e=n,{collapsed:t,collapsible:o,isLink:s,isActiveLink:a,hasActiveLink:c,hasChildren:l,toggle:f}=cn(k(()=>e.item)),b=k(()=>l.value?"section":"div"),w=k(()=>s.value?"a":"div"),y=k(()=>l.value?e.depth+2===7?"p":`h${e.depth+2}`:"p"),P=k(()=>s.value?void 0:"button"),V=k(()=>[[`level-${e.depth}`],{collapsible:o.value},{collapsed:t.value},{"is-link":s.value},{"is-active":a.value},{"has-active":c.value}]);function N(I){"key"in I&&I.key!=="Enter"||!e.item.link&&f()}function B(){e.item.link&&f()}return(I,D)=>{const W=J("VPSidebarItem",!0);return r(),g(q(b.value),{class:T(["VPSidebarItem",V.value])},{default:v(()=>[I.item.text?(r(),d("div",x({key:0,class:"item",role:P.value},Lt(I.item.items?{click:N,keydown:N}:{},!0),{tabindex:I.item.items&&0}),[D[1]||(D[1]=u("div",{class:"indicator"},null,-1)),I.item.link?(r(),g(X,{key:0,tag:w.value,class:"link",href:I.item.link,rel:I.item.rel,target:I.item.target},{default:v(()=>[(r(),g(q(y.value),{class:"text",innerHTML:I.item.text},null,8,["innerHTML"]))]),_:1},8,["tag","href","rel","target"])):(r(),g(q(y.value),{key:1,class:"text",innerHTML:I.item.text},null,8,["innerHTML"])),I.item.collapsed!=null&&I.item.items&&I.item.items.length?(r(),d("div",{key:2,class:"caret",role:"button","aria-label":"toggle section",onClick:B,onKeydown:Vt(B,["enter"]),tabindex:"0"},D[0]||(D[0]=[u("span",{class:"vpi-chevron-right caret-icon"},null,-1)]),32)):m("",!0)],16,rr)):m("",!0),I.item.items&&I.item.items.length?(r(),d("div",ir,[I.depth<5?(r(!0),d(H,{key:0},E(I.item.items,z=>(r(),g(W,{key:z.text,item:z,depth:I.depth+1},null,8,["item","depth"]))),128)):m("",!0)])):m("",!0)]),_:1},8,["class"])}}}),cr=$(lr,[["__scopeId","data-v-b1557fcf"]]),ur=h({__name:"VPSidebarGroup",props:{items:{}},setup(n){const e=C(!0);let t=null;return G(()=>{t=setTimeout(()=>{t=null,e.value=!1},300)}),St(()=>{t!=null&&(clearTimeout(t),t=null)}),(o,s)=>(r(!0),d(H,null,E(o.items,a=>(r(),d("div",{key:a.text,class:T(["group",{"no-transition":e.value}])},[_(cr,{item:a,depth:0},null,8,["item"])],2))),128))}}),dr=$(ur,[["__scopeId","data-v-c211cde9"]]),pr={class:"nav",id:"VPSidebarNav","aria-labelledby":"sidebar-aria-label",tabindex:"-1"},vr=h({__name:"VPSidebar",props:{open:{type:Boolean}},setup(n){const{sidebarGroups:e,hasSidebar:t}=Z(),o=n,s=C(null),a=tt(de?document.body:null);K([o,s],()=>{var l;o.open?(a.value=!0,(l=s.value)==null||l.focus()):a.value=!1},{immediate:!0,flush:"post"});const c=C(0);return K(e,()=>{c.value+=1},{deep:!0}),(l,f)=>i(t)?(r(),d("aside",{key:0,class:T(["VPSidebar",{open:l.open}]),ref_key:"navEl",ref:s,onClick:f[0]||(f[0]=Ve(()=>{},["stop"]))},[f[2]||(f[2]=u("div",{class:"curtain"},null,-1)),u("nav",pr,[f[1]||(f[1]=u("span",{class:"visually-hidden",id:"sidebar-aria-label"}," Sidebar Navigation ",-1)),p(l.$slots,"sidebar-nav-before",{},void 0,!0),(r(),g(dr,{items:i(e),key:c.value},null,8,["items"])),p(l.$slots,"sidebar-nav-after",{},void 0,!0)])],2)):m("",!0)}}),hr=$(vr,[["__scopeId","data-v-f106dd72"]]),fr=h({__name:"VPSkipLink",setup(n){const{theme:e}=L(),t=ge(),o=C();K(()=>t.path,()=>o.value.focus());function s({target:a}){const c=document.getElementById(decodeURIComponent(a.hash).slice(1));if(c){const l=()=>{c.removeAttribute("tabindex"),c.removeEventListener("blur",l)};c.setAttribute("tabindex","-1"),c.addEventListener("blur",l),c.focus(),window.scrollTo(0,0)}}return(a,c)=>(r(),d(H,null,[u("span",{ref_key:"backToTop",ref:o,tabindex:"-1"},null,512),u("a",{href:"#VPContent",class:"VPSkipLink visually-hidden",onClick:s},S(i(e).skipToContentLabel||"Skip to content"),1)],64))}}),mr=$(fr,[["__scopeId","data-v-b96917a7"]]),_r=h({__name:"Layout",setup(n){const{isOpen:e,open:t,close:o}=ln();un({closeSidebar:o});const{frontmatter:s}=L(),a=Tt(),c=k(()=>!!a["home-hero-image"]);return nt("hero-image-slot-exists",c),(l,f)=>{const b=J("Content");return i(s).layout!==!1?(r(),d("div",{key:0,class:T(["Layout",i(s).pageClass])},[p(l.$slots,"layout-top",{},void 0,!0),_(mr),_(Ot,{class:"backdrop",show:i(e),onClick:i(o)},null,8,["show","onClick"]),_(ar,null,{"nav-bar-title-before":v(()=>[p(l.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":v(()=>[p(l.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":v(()=>[p(l.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":v(()=>[p(l.$slots,"nav-bar-content-after",{},void 0,!0)]),"nav-screen-content-before":v(()=>[p(l.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":v(()=>[p(l.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3}),_(Qo,{open:i(e),onOpenMenu:i(t)},null,8,["open","onOpenMenu"]),_(hr,{open:i(e)},{"sidebar-nav-before":v(()=>[p(l.$slots,"sidebar-nav-before",{},void 0,!0)]),"sidebar-nav-after":v(()=>[p(l.$slots,"sidebar-nav-after",{},void 0,!0)]),_:3},8,["open"]),_(Do,null,{"page-top":v(()=>[p(l.$slots,"page-top",{},void 0,!0)]),"page-bottom":v(()=>[p(l.$slots,"page-bottom",{},void 0,!0)]),"not-found":v(()=>[p(l.$slots,"not-found",{},void 0,!0)]),"home-hero-before":v(()=>[p(l.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":v(()=>[p(l.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":v(()=>[p(l.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":v(()=>[p(l.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":v(()=>[p(l.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":v(()=>[p(l.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":v(()=>[p(l.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":v(()=>[p(l.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":v(()=>[p(l.$slots,"home-features-after",{},void 0,!0)]),"doc-footer-before":v(()=>[p(l.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":v(()=>[p(l.$slots,"doc-before",{},void 0,!0)]),"doc-after":v(()=>[p(l.$slots,"doc-after",{},void 0,!0)]),"doc-top":v(()=>[p(l.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":v(()=>[p(l.$slots,"doc-bottom",{},void 0,!0)]),"aside-top":v(()=>[p(l.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":v(()=>[p(l.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":v(()=>[p(l.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":v(()=>[p(l.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":v(()=>[p(l.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":v(()=>[p(l.$slots,"aside-ads-after",{},void 0,!0)]),_:3}),_(Uo),p(l.$slots,"layout-bottom",{},void 0,!0)],2)):(r(),g(b,{key:1}))}}}),gr=$(_r,[["__scopeId","data-v-c1ec0855"]]),qe={Layout:gr,enhanceApp:({app:n})=>{n.component("Badge",Et)}},kr=["data-href"],br={key:0,"pointer-events-none":"",absolute:"",left:"1/1","top-0":"","bottom-0":"",flex:"","items-center":"","pl-4px":""},Xe=h({__name:"DownloadText",props:{href:{},name:{},type:{default:"application/vnd.android.package-archive"}},setup(n){const e=n,t=R(!1),o=async()=>{if(t.value)return;t.value=!0,ue(()=>import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1750344534248/files/.vitepress/dist"+u}return u})("./FileSaver.min.BxHcgHsl.js")).then(a=>a.F),[]);const s=`gkd-${e.name}`;try{const a=await fetch(e.href).then(l=>l.arrayBuffer()).then(l=>new File([l],s,{type:e.type})),{saveAs:c}=await ue(async()=>{const{saveAs:l}=await import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1750344534248/files/.vitepress/dist"+u}return u})("./FileSaver.min.BxHcgHsl.js")).then(f=>f.F);return{saveAs:l}},[]);c(a,s)}finally{t.value=!1}};return(s,a)=>(r(),d("a",{relative:"",class:T({"cursor-progress":t.value,"cursor-pointer":!t.value}),onClick:o,"data-href":s.href},[u("span",{class:T({"opacity-50":t.value})},S(s.name),3),t.value?(r(),d("div",br,a[0]||(a[0]=[u("svg",{"animate-spin":"","size-16px":"",viewBox:"0 0 16 16",fill:"none"},[u("circle",{cx:"8",cy:"8",r:"7",stroke:"currentColor","stroke-opacity":"0.25","stroke-width":"2","vector-effect":"non-scaling-stroke"}),u("path",{d:"M15 8a7.002 7.002 0 00-7-7",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","vector-effect":"non-scaling-stroke"})],-1)]))):m("",!0)],10,kr))}}),yr={name:"1.10.4",href:"https://registry.npmmirror.com/@gkd-kit/app-beta/0.0.29/files/dist/gkd-v1.10.4.wasm",date:"2025-05-26",filename:"v1.10.4.apk",fileSizeDesc:"6.49MB"},$r={name:"1.10.4",href:"https://registry.npmmirror.com/@gkd-kit/app/2.0.33/files/dist/gkd-v1.10.4.wasm",date:"2025-05-26",filename:"v1.10.4.apk",fileSizeDesc:"6.49MB"},wr=10,Pr=async(n,e)=>{let t=wr;for(;;)try{return await fetch(n,e)}catch(o){if(t--,t<=0)throw o;await new Promise(s=>setTimeout(s,500))}},Lr=n=>n<1024?n+"B":n<1024*1024?(n/1024).toFixed(2)+"KB":n<1024*1024*1024?(n/(1024*1024)).toFixed(2)+"MB":(n/(1024*1024*1024)).toFixed(2)+"GB",Vr=async n=>{const e=await Pr(n),t=await e.json();return{name:t.versionName,href:new URL(t.downloadUrl,e.url).href,date:t.date,filename:"v"+t.versionName+".apk",fileSizeDesc:Lr(t.fileSize)}},Ye=async n=>Vr(n?"https://registry.npmmirror.com/@gkd-kit/app/latest/files/index.json":"https://registry.npmmirror.com/@gkd-kit/app-beta/latest/files/index.json"),ae=R($r),re=R(yr);let Ke=!1;const Sr=async()=>{Ke||(Ke=!0,await Promise.all([Ye(!0).then(n=>{ae.value=n}),Ye(!1).then(n=>{re.value=n})]))},Tr={key:0},Ir=h({__name:"ApkTable",setup(n){return G(Sr),(e,t)=>(r(),d("table",null,[t[4]||(t[4]=u("thead",null,[u("tr",null,[u("th",null,"版本"),u("th",null,"下载"),u("th",null,"大小"),u("th",null,"日期"),u("th",null,"备注")])],-1)),u("tbody",null,[u("tr",null,[t[0]||(t[0]=u("td",null,"正式版",-1)),u("td",null,[_(Xe,{href:i(ae).href,name:i(ae).filename},null,8,["href","name"])]),u("td",null,S(i(ae).fileSizeDesc),1),u("td",null,S(i(ae).date),1),t[1]||(t[1]=u("td",null,"稳定版",-1))]),i(re).filename!==i(ae).filename?(r(),d("tr",Tr,[t[2]||(t[2]=u("td",null,"测试版",-1)),u("td",null,[_(Xe,{href:i(re).href,name:i(re).filename},null,8,["href","name"])]),u("td",null,S(i(re).fileSizeDesc),1),u("td",null,S(i(re).date),1),t[3]||(t[3]=u("td",null,"更新快不稳定",-1))])):m("",!0)])]))}}),Nr=h((n,e)=>()=>{var t,o;return(o=(t=e.slots).default)==null?void 0:o.call(t)}),ut=n=>(n.loader(),h((e,t)=>{const o=R();return o.value||n.loader().then(s=>{o.value=s}),()=>o.value?U(o.value,e,t.slots):U(n.placeholder,e,t.slots)},{props:n.props})),dt=["alt","height","imgProps","previewedImgProps","lazy","intersectionObserverOptions","objectFit","previewSrc","fallbackSrc","width","src","previewDisabled","loadDescription","onError","onLoad","theme","themeOverrides","builtinThemeOverrides","onPreviewPrev","onPreviewNext","showToolbar","showToolbarTooltip","renderToolbar"],Mr=h((n,e)=>()=>U("div",{class:"n-image"},U("img",n,e.slots)),{props:dt}),pt=ut({loader:()=>ue(()=>import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1750344534248/files/.vitepress/dist"+u}return u})("./index.BJCOYsj9.js")),[]).then(n=>n.NImage),placeholder:Mr,props:dt}),vt=ut({loader:()=>ue(()=>import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1750344534248/files/.vitepress/dist"+u}return u})("./index.BJCOYsj9.js")),[]).then(n=>n.NImageGroup),placeholder:Nr}),Cr={NImage:pt,NImageGroup:vt},Hr="https://registry.npmmirror.com/@gkd-kit/assets/0.0.20/files/assets/",Br=[{name:"0001.png",width:816,height:1808},{name:"0002.png",width:613,height:1363},{name:"0003.png",width:613,height:1363},{name:"0004.png",width:613,height:1363},{name:"0005.png",width:613,height:1363},{name:"0006.png",width:613,height:1363},{name:"0007.png",width:613,height:1363},{name:"0008.png",width:613,height:1363},{name:"0009.png",width:613,height:1363},{name:"0010.png",width:613,height:1363},{name:"0011.png",width:613,height:1363},{name:"0012.png",width:613,height:1363},{name:"0013.png",width:1080,height:2400},{name:"0014.png",width:1080,height:2400},{name:"0015.png",width:1080,height:2400},{name:"0016.png",width:1080,height:2400},{name:"0017.png",width:1080,height:2400},{name:"0018.png",width:1080,height:2400},{name:"0019.gif",width:536,height:1204},{name:"0020.png",width:927,height:927},{name:"0021.png",width:927,height:927},{name:"0022.png",width:927,height:927},{name:"0023.png",width:927,height:927},{name:"0024.png",width:927,height:927},{name:"0025.png",width:445,height:75},{name:"0026.png",width:816,height:1814},{name:"0027.png",width:816,height:1808},{name:"0028.png",width:816,height:1808},{name:"0029.png",width:816,height:1808},{name:"0030.png",width:816,height:1808},{name:"0031.png",width:816,height:1808},{name:"0032.png",width:816,height:1808},{name:"0033.png",width:816,height:1808},{name:"0034.png",width:1920,height:1080},{name:"0035.png",width:810,height:1808},{name:"0036.png",width:810,height:1808},{name:"0037.png",width:816,height:1808},{name:"0038.jpg",width:1280,height:2800},{name:"0039.jpg",width:1200,height:2670},{name:"0040.jpg",width:1080,height:2400},{name:"0041.jpg",width:1220,height:2712},{name:"0042.jpg",width:1080,height:2340},{name:"0043.jpg",width:1080,height:2340},{name:"0044.jpg",width:1080,height:2340},{name:"0045.jpg",width:1080,height:2340},{name:"0046.png",width:1e3,height:1080},{name:"0047.png",width:1e3,height:1080}],ht=n=>n.startsWith("https:")?n:Hr+n,ft=It({}),Ar=async n=>{const e=new Image;e.src=n,await new Promise((t,o)=>{e.onload=()=>t(),e.onerror=o}),ft[n]=!0},Er=n=>{Ar(n);const e=Br.find(t=>n.endsWith(t.name));return e?"data:image/svg+xml,"+encodeURIComponent(`<svg xmlns="http://www.w3.org/2000/svg" width="${e.width}" height="${e.height}" viewBox="0 0 ${e.width} ${e.height}"></svg>`):(console.error(`Image size not found for ${n}`),n)},mt=h((n,e)=>{const t=k(()=>ht(n.src)),o=k(()=>ft[t.value]?t.value:Er(t.value));return()=>U(pt,{src:o.value,"data-src":t.value,...e.attrs})},{props:["src"]}),Dr=h({__name:"IdentifierField",setup(n){const e=R(""),t=/^[_a-zA-Z][a-zA-Z0-9_]*$/,o=Nt(e,300),s=k(()=>o.value!=="null"&&o.value!=="true"&&o.value!=="false"&&t.test(o.value));return(a,c)=>(r(),d("div",null,[ot(u("input",{placeholder:"请输入标识符测试是否合法",type:"text","onUpdate:modelValue":c[0]||(c[0]=l=>e.value=l),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),[[Mt,e.value]]),u("div",{"mt-4px":"",class:T({"color-red":!s.value,"opacity-0":!i(o)||!e.value})},S(s.value?"合法标识符✅":"非法标识符❌"),3)]))}}),Fr=h({__name:"ImageTable",props:{images:{}},setup(n){return(e,t)=>(r(),d("table",null,[u("tbody",null,[_(i(vt),null,{default:v(()=>[(r(!0),d(H,null,E(e.images,(o,s)=>(r(),d("tr",{key:s},[(r(!0),d(H,null,E(o,a=>(r(),d("td",{key:a},[_(i(mt),{src:i(ht)(a)},null,8,["src"])]))),128))]))),128))]),_:1})])]))}}),Or=h({__name:"GkdOnly",props:{not:{type:Boolean}},setup(n){const e=()=>Reflect.get(globalThis,"gkd");return(t,o)=>{const s=J("ClientOnly");return r(),g(s,null,{default:v(()=>[(t.not?!e():e())?p(t.$slots,"default",{key:0}):m("",!0)]),_:3})}}}),Rr=h({__name:"MobileOnly",props:{not:{type:Boolean}},setup(n){const e=()=>globalThis.document&&"ontouchstart"in globalThis.document.documentElement;return(t,o)=>{const s=J("ClientOnly");return r(),g(s,null,{default:v(()=>[(t.not?!e():e())?p(t.$slots,"default",{key:0}):m("",!0)]),_:3})}}}),jr={...Cr,GImg:mt,ImageTable:Fr,IdentifierField:Dr,ApkTable:Ir,GkdOnly:Or,MobileOnly:Rr},Ur={fixed:"","z-100":"",class:"BodyScrollbar"},Je=2,Gr=h({__name:"BodyScrollbar",setup(n){const e=R(0),t=R(0),o=M=>{window.scroll({left:M})},s=M=>{window.scroll({top:M})};se("scroll",()=>{e.value=window.scrollX,t.value=window.scrollY});const{height:a,width:c}=xe(),l=Ct(document.body),f=k(()=>l.height.value>a.value+Je),b=k(()=>{const A=l.height.value;return a.value/A*a.value}),w=k(()=>{const M=l.height.value,A=b.value;return t.value/(M-a.value)*(a.value-A)}),y=k(()=>f.value?{transform:`translateY(${w.value}px)`,height:`${b.value}px`}:{}),P=async M=>{const A=b.value*.9*(M.clientY<b.value+w.value?-1:1),j=l.height.value,ee=j,te=a.value/ee*a.value;s(t.value+A/(a.value-te)*(j-a.value))},V=R(!1);let N;const B=M=>{N=M,V.value=!0};se("pointermove",M=>{if(!N)return;const A=M.clientY-N.clientY;N=M;const j=l.height.value,ee=j,te=a.value/ee*a.value;s(t.value+A/(a.value-te)*(j-a.value))}),se("pointerup",()=>{N=void 0,V.value=!1});const I=k(()=>l.width.value>c.value+Je),D=k(()=>{const A=l.width.value;return c.value/A*c.value}),W=k(()=>{const M=l.width.value,A=D.value;return e.value/(M-c.value)*(c.value-A)}),z=k(()=>I.value?{transform:`translateX(${W.value}px)`,width:`${D.value}px`}:{}),Q=M=>{const A=D.value*.9*(M.clientX<D.value+W.value?-1:1),j=l.width.value,ee=j,te=c.value/ee*c.value,$e=e.value+A/(c.value-te)*(j-c.value);o($e)},F=R(!1);let O;const Y=M=>{O=M,F.value=!0};return se("pointermove",M=>{if(!O)return;const A=M.clientX-O.clientX;O=M;const j=l.width.value,ee=j,te=c.value/ee*c.value,$e=e.value+A/(c.value-te)*(j-c.value);o($e)}),se("pointerup",()=>{O=void 0,F.value=!1}),se("selectstart",M=>{(O||N)&&M.preventDefault()}),(M,A)=>(r(),d("div",Ur,[ot(u("div",{"scrollbar-y":"",fixed:"","right-2px":"","top-0":"","bottom-0":"","w-8px":"",onPointerdown:B,onClick:P},[u("div",{onClick:A[0]||(A[0]=Ve(()=>{},["stop"])),"w-full":"",bg:"#909399","opacity-30":"","hover:opacity":"50",style:he(y.value),class:T({"opacity-50":V.value})},null,6)],544),[[Ht,f.value]]),I.value?(r(),d("div",{key:0,"scrollbar-x":"",fixed:"","bottom-2px":"","left-0":"","right-0":"","h-8px":"",onPointerdown:Y,onClick:Q},[u("div",{onClick:A[1]||(A[1]=Ve(()=>{},["stop"])),"h-full":"",bg:"#909399","opacity-30":"","hover:opacity":"50",style:he(z.value),class:T({"opacity-50":F.value})},null,6)],32)):m("",!0)]))}}),Wr=h(()=>{const n=R(!1);return G(()=>{const e="ontouchstart"in document.documentElement;n.value=!e,e&&(document.body.classList.add("mobile"),document.documentElement.classList.add("mobile"))}),()=>n.value?U(Bt,{to:document.body},U(Gr)):void 0}),zr=n=>{const e=n.getBoundingClientRect(),t=window.innerHeight*.15;return e.top-t>=0&&e.bottom+t<=window.innerHeight},qr=()=>{const n=document.images;for(let e=0;e<n.length;e++)if(!n[e].complete)return!1;return!0},me=(n=0)=>new Promise(e=>setTimeout(e,n));let le,Ce=!0;setTimeout(()=>{Ce=!1},1e3);const Ue=async n=>{if(location.hash&&(n!=null||(n=document.querySelector(location.hash)||void 0)),!n)return;const e="animate-hash-hint";le&&le.classList.remove(e),n.classList.contains(e)&&(n.classList.remove(e),await me(25)),n.classList.add(e),le=n;const t=500*2*(Ce?5:2);Ce=!1,await me(t),n.classList.remove(e),le===n&&(le=void 0)},_t=()=>new URLSearchParams(location.search).get("r")||"",Pe=()=>{var e;const n=document.getElementById("hidden-layout-style");n&&((e=n.parentElement)==null||e.removeChild(n))};if(location.pathname==="/"&&/\d+/.test(_t())){const n=document.createElement("style");n.textContent=".Layout { visibility: hidden; }",n.id="hidden-layout-style",document.head.appendChild(n)}const Xr=async n=>{const e=location.href.substring(location.origin.length),t=async o=>{history.replaceState(null,"",o),await n.go(o)};if(location.pathname.startsWith("/selector/"))location.pathname.at(-1)==="/"?t("/guide/selector"):t(location.pathname.replace("/selector/","/guide/"));else if(location.pathname==="/subscription/"||location.pathname==="/subscription")await t("/guide/subscription");else if(location.pathname==="/"){const o=_t(),s=async a=>{await n.go(a).catch(()=>{}),Pe()};if(o==="1")s("/guide/snapshot#how-to-upload");else if(o==="2")s("/guide/faq#restriction");else if(o==="3")s("/guide/faq#adb_failed");else if(o==="4"){location.href="https://shizuku.rikka.app",Pe();return}else o==="5"?s("/guide/subscription"):o==="6"?s("/guide/faq#power"):o==="7"?s("/guide/faq#exact-activity"):o==="8"?s("/guide/faq#forced-tap"):o==="9"?s("/guide/faq#work-profile"):o==="10"?s("/guide/sponsor"):o==="11"?s("/guide/privacy"):Pe()}else e==="/guide/faq#fail_setting_secure_settings"&&(location.hash="adb_failed");if(await be(),location.hash){const o=await(async()=>{const s=location.href;let a=0;for(;a<25;){if(s!==location.href)return;const c=document.querySelector(location.hash);if(c)return c;a++,await me(100)}})();if(o){if(!zr(o)){let s=0;for(;s<25&&!qr();)await new Promise(c=>setTimeout(c,100)),s++;const a=document.querySelector(`a.header-anchor[href="${location.hash}"]`);a?a.click():o.scrollIntoView({behavior:"smooth",block:"center"})}Ue(o)}}};window.addEventListener("hashchange",async()=>{Ue()});const Yr=h(()=>{const n=At();return G(()=>{Xr(n),n.onAfterPageLoad=()=>{be().then(async()=>{await me(100),Ue()})}}),()=>{}}),Jr={extends:qe,Layout(){return U(H,null,[U(qe.Layout),U(Wr),U(Yr)])},enhanceApp({app:n}){Object.entries(jr).forEach(([e,t])=>{n.component(e,t)})}};export{Jr as R,ta as c,L as u};
@@ -1 +1 @@
1
- import{_ as t,c as o,o as a,aq as d}from"./chunks/framework.C9O3MI31.js";const q=JSON.parse('{"title":"选择示例","description":"","frontmatter":{},"headers":[],"relativePath":"guide/example.md","filePath":"guide/example.md","lastUpdated":1750342460000}'),i={name:"guide/example.md"};function r(l,e,u,c,n,p){return a(),o("div",null,e[0]||(e[0]=[d('<h1 id="title" tabindex="-1">选择示例 <a class="header-anchor" href="#title" aria-label="Permalink to “选择示例”">​</a></h1><p>一些选择器及其相关作用说明</p><h2 id="e-1" tabindex="-1">选择根节点 <a class="header-anchor" href="#e-1" aria-label="Permalink to “选择根节点”">​</a></h2><ul><li><code>[parent=null]</code></li><li><code>[depth=0]</code></li></ul><h2 id="e-2" tabindex="-1">选择子节点 <a class="header-anchor" href="#e-2" aria-label="Permalink to “选择子节点”">​</a></h2><p>选择一个 <code>ImageView</code> 节点, 并要求其父节点是 <code>LinearLayout</code></p><p><a href="https://i.gkd.li/i/16076188?gkd=TGluZWFyTGF5b3V0ID4gSW1hZ2VWaWV3" target="_blank" rel="noreferrer"><code>LinearLayout &gt; ImageView</code></a></p><p>选择一个 <code>ImageView</code> 节点, 并要求其父节点的父节点是 <code>ViewGroup[vid=&quot;avatar_layout&quot;]</code></p><p><a href="https://i.gkd.li/i/16076188?gkd=Vmlld0dyb3VwW3ZpZD0iYXZhdGFyX2xheW91dCJdID4yIEltYWdlVmlldw" target="_blank" rel="noreferrer"><code>ViewGroup[vid=&quot;avatar_layout&quot;] &gt;2 ImageView</code></a></p><p>选择一个 <code>ImageView[vid=&quot;search_icon&quot;]</code> 节点, 并要求祖先节点是 <code>FrameLayout[vid=&quot;content_layout&quot;]</code>, <code>n</code>可以是任意正整数, 下同</p><p><a href="https://i.gkd.li/i/16076188?gkd=RnJhbWVMYXlvdXRbdmlkPSJjb250ZW50X2xheW91dCJdIEltYWdlVmlld1t2aWQ9InNlYXJjaF9pY29uIl0" target="_blank" rel="noreferrer"><code>FrameLayout[vid=&quot;content_layout&quot;] &gt;n ImageView[vid=&quot;search_icon&quot;]</code></a></p><h2 id="e-3" tabindex="-1">末尾子节点 <a class="header-anchor" href="#e-3" aria-label="Permalink to “末尾子节点”">​</a></h2><p>选择一个 <code>ImageView</code> 节点, 并要求是其父节点是最后一个子节点</p><p><a href="https://i.gkd.li/i/16076188?gkd=SW1hZ2VWaWV3W2luZGV4PXBhcmVudC5jaGlsZENvdW50Lm1pbnVzKDEpXQ" target="_blank" rel="noreferrer"><code>ImageView[index=parent.childCount.minus(1)]</code></a></p><h2 id="e-4" tabindex="-1">选择兄弟节点 <a class="header-anchor" href="#e-4" aria-label="Permalink to “选择兄弟节点”">​</a></h2><p>选择一个 <code>LinearLayout[desc=&quot;搜索栏,按钮&quot;]</code> 节点, 并要求其兄弟节点是 <code>ViewGroup[desc=&quot;个人主页,按钮&quot;]</code></p><ul><li><a href="https://i.gkd.li/i/16076188?gkd=Vmlld0dyb3VwW2Rlc2M9IuS4quS6uuS4u-mhte-8jOaMiemSriJdICsgTGluZWFyTGF5b3V0W2Rlc2M9IuaQnOe0ouagj--8jOaMiemSriJd" target="_blank" rel="noreferrer"><code>ViewGroup[desc=&quot;个人主页,按钮&quot;] + LinearLayout[desc=&quot;搜索栏,按钮&quot;]</code></a></li><li><a href="https://i.gkd.li/i/16076188?gkd=QExpbmVhckxheW91dFtkZXNjPSLmkJzntKLmoI_vvIzmjInpkq4iXSAtIFZpZXdHcm91cFtkZXNjPSLkuKrkurrkuLvpobXvvIzmjInpkq4iXQ" target="_blank" rel="noreferrer"><code>@LinearLayout[desc=&quot;搜索栏,按钮&quot;] - ViewGroup[desc=&quot;个人主页,按钮&quot;]</code></a></li></ul><p>选择一个 <code>[text$=&quot;顶级入耳&quot;]</code> 节点, 并要求其兄弟节点是 <code>[vid=&quot;cover_layout&quot;]</code></p><ul><li><a href="https://i.gkd.li/i/16076188?gkd=W3ZpZD0iY292ZXJfbGF5b3V0Il0gK24gW3RleHQkPSLpobbnuqflhaXogLMiXQ" target="_blank" rel="noreferrer"><code>[vid=&quot;cover_layout&quot;] +n [text$=&quot;顶级入耳&quot;]</code></a></li><li><a href="https://i.gkd.li/i/16076188?gkd=QFt0ZXh0JD0i6aG257qn5YWl6ICzIl0gLW4gW3ZpZD0iY292ZXJfbGF5b3V0Il0" target="_blank" rel="noreferrer"><code>@[text$=&quot;顶级入耳&quot;] -n [vid=&quot;cover_layout&quot;]</code></a></li></ul><h2 id="e-5" tabindex="-1">选择父节点 <a class="header-anchor" href="#e-5" aria-label="Permalink to “选择父节点”">​</a></h2><p>选择一个 <code>ViewGroup[desc^=&quot;直播&quot;]</code> 节点, 并要求其子节点是 <code>FrameLayout[vid=&quot;cover_layout&quot;]</code> 或 <code>ViewGroup[vid=&quot;live_text_container&quot;]</code> 或 <code>TextView[vid=&quot;title_v2&quot;]</code></p><ul><li><a href="https://i.gkd.li/i/16076188?gkd=RnJhbWVMYXlvdXRbdmlkPSJjb3Zlcl9sYXlvdXQiXSA8IFZpZXdHcm91cFtkZXNjXj0i55u05pKtIl0" target="_blank" rel="noreferrer"><code>FrameLayout[vid=&quot;cover_layout&quot;] &lt; ViewGroup[desc^=&quot;直播&quot;]</code></a></li><li><a href="https://i.gkd.li/i/16076188?gkd=Vmlld0dyb3VwW3ZpZD0ibGl2ZV90ZXh0X2NvbnRhaW5lciJdIDwzIFZpZXdHcm91cFtkZXNjXj0i55u05pKtIl0" target="_blank" rel="noreferrer"><code>ViewGroup[vid=&quot;live_text_container&quot;] &lt;3 ViewGroup[desc^=&quot;直播&quot;]</code></a></li><li><a href="https://i.gkd.li/i/16076188?gkd=VGV4dFZpZXdbdmlkPSJ0aXRsZV92MiJdIDxuIFZpZXdHcm91cFtkZXNjXj0i55u05pKtIl0" target="_blank" rel="noreferrer"><code>TextView[vid=&quot;title_v2&quot;] &lt;n ViewGroup[desc^=&quot;直播&quot;]</code></a></li></ul><h2 id="e-6" tabindex="-1">在指定节点的子节点内查找指定选择器 <a class="header-anchor" href="#e-6" aria-label="Permalink to “在指定节点的子节点内查找指定选择器”">​</a></h2><p>一般在末尾节点支持 <a href="/guide/optimize#fast-query">快速查询</a> 的情况下使用</p><p>在节点 <code>ViewGroup[vid=&quot;live_text_container&quot;]</code> 的子节点内查找 <code>[text=&quot;直播&quot;]</code></p><p><a href="https://i.gkd.li/i/16076188?gkd=QFt0ZXh0PSLnm7Tmkq0iXSA8PG4gVmlld0dyb3VwW3ZpZD0ibGl2ZV90ZXh0X2NvbnRhaW5lciJd" target="_blank" rel="noreferrer"><code>@[text=&quot;直播&quot;] &lt;&lt;n ViewGroup[vid=&quot;live_text_container&quot;]</code></a></p><p>在节点 <code>FrameLayout[vid=&quot;swipe_layout&quot;]</code> 的子节点内查找 <code>LinearLayout &gt; @[text=&quot;直播&quot;]</code></p><p><a href="https://i.gkd.li/i/16076188?gkd=TGluZWFyTGF5b3V0ID4gQFt0ZXh0PSLnm7Tmkq0iXSA8PG4gW3ZpZD0ic3dpcGVfbGF5b3V0Il0" target="_blank" rel="noreferrer"><code>LinearLayout &gt; @[text=&quot;直播&quot;] &lt;&lt;n [vid=&quot;swipe_layout&quot;]</code></a></p><h2 id="e-7" tabindex="-1">组合使用 <a class="header-anchor" href="#e-7" aria-label="Permalink to “组合使用”">​</a></h2><p><a href="https://i.gkd.li/i/16076188?gkd=SW1hZ2VWaWV3IDwgRnJhbWVMYXlvdXQgPG4gVmlld0dyb3VwW2Rlc2NePSLnm7Tmkq0iXSAtIFZpZXdHcm91cCA-NCBGcmFtZUxheW91dFtpbmRleD0wXSArMiBGcmFtZUxheW91dCA-IEBUZXh0Vmlld1tpbmRleD1wYXJlbnQuY2hpbGRDb3VudC5taW51cygxKV0gPDxuIEZyYW1lTGF5b3V0W3ZpZD0iY29udGVudCJd" target="_blank" rel="noreferrer"><code>ImageView &lt; FrameLayout &lt;n ViewGroup[desc^=&quot;直播&quot;] - ViewGroup &gt;4 FrameLayout[index=0] +2 FrameLayout &gt; @TextView[index=parent.childCount.minus(1)] &lt;&lt;n FrameLayout[vid=&quot;content&quot;]</code></a></p>',30)]))}const g=t(i,[["render",r]]);export{q as __pageData,g as default};
1
+ import{_ as t,c as o,o as a,aq as d}from"./chunks/framework.C9O3MI31.js";const q=JSON.parse('{"title":"选择示例","description":"","frontmatter":{},"headers":[],"relativePath":"guide/example.md","filePath":"guide/example.md","lastUpdated":1750344514000}'),i={name:"guide/example.md"};function r(l,e,u,c,n,p){return a(),o("div",null,e[0]||(e[0]=[d('<h1 id="title" tabindex="-1">选择示例 <a class="header-anchor" href="#title" aria-label="Permalink to “选择示例”">​</a></h1><p>一些选择器及其相关作用说明</p><h2 id="e-1" tabindex="-1">选择根节点 <a class="header-anchor" href="#e-1" aria-label="Permalink to “选择根节点”">​</a></h2><ul><li><code>[parent=null]</code></li><li><code>[depth=0]</code></li></ul><h2 id="e-2" tabindex="-1">选择子节点 <a class="header-anchor" href="#e-2" aria-label="Permalink to “选择子节点”">​</a></h2><p>选择一个 <code>ImageView</code> 节点, 并要求其父节点是 <code>LinearLayout</code></p><p><a href="https://i.gkd.li/i/16076188?gkd=TGluZWFyTGF5b3V0ID4gSW1hZ2VWaWV3" target="_blank" rel="noreferrer"><code>LinearLayout &gt; ImageView</code></a></p><p>选择一个 <code>ImageView</code> 节点, 并要求其父节点的父节点是 <code>ViewGroup[vid=&quot;avatar_layout&quot;]</code></p><p><a href="https://i.gkd.li/i/16076188?gkd=Vmlld0dyb3VwW3ZpZD0iYXZhdGFyX2xheW91dCJdID4yIEltYWdlVmlldw" target="_blank" rel="noreferrer"><code>ViewGroup[vid=&quot;avatar_layout&quot;] &gt;2 ImageView</code></a></p><p>选择一个 <code>ImageView[vid=&quot;search_icon&quot;]</code> 节点, 并要求祖先节点是 <code>FrameLayout[vid=&quot;content_layout&quot;]</code>, <code>n</code>可以是任意正整数, 下同</p><p><a href="https://i.gkd.li/i/16076188?gkd=RnJhbWVMYXlvdXRbdmlkPSJjb250ZW50X2xheW91dCJdIEltYWdlVmlld1t2aWQ9InNlYXJjaF9pY29uIl0" target="_blank" rel="noreferrer"><code>FrameLayout[vid=&quot;content_layout&quot;] &gt;n ImageView[vid=&quot;search_icon&quot;]</code></a></p><h2 id="e-3" tabindex="-1">末尾子节点 <a class="header-anchor" href="#e-3" aria-label="Permalink to “末尾子节点”">​</a></h2><p>选择一个 <code>ImageView</code> 节点, 并要求是其父节点是最后一个子节点</p><p><a href="https://i.gkd.li/i/16076188?gkd=SW1hZ2VWaWV3W2luZGV4PXBhcmVudC5jaGlsZENvdW50Lm1pbnVzKDEpXQ" target="_blank" rel="noreferrer"><code>ImageView[index=parent.childCount.minus(1)]</code></a></p><h2 id="e-4" tabindex="-1">选择兄弟节点 <a class="header-anchor" href="#e-4" aria-label="Permalink to “选择兄弟节点”">​</a></h2><p>选择一个 <code>LinearLayout[desc=&quot;搜索栏,按钮&quot;]</code> 节点, 并要求其兄弟节点是 <code>ViewGroup[desc=&quot;个人主页,按钮&quot;]</code></p><ul><li><a href="https://i.gkd.li/i/16076188?gkd=Vmlld0dyb3VwW2Rlc2M9IuS4quS6uuS4u-mhte-8jOaMiemSriJdICsgTGluZWFyTGF5b3V0W2Rlc2M9IuaQnOe0ouagj--8jOaMiemSriJd" target="_blank" rel="noreferrer"><code>ViewGroup[desc=&quot;个人主页,按钮&quot;] + LinearLayout[desc=&quot;搜索栏,按钮&quot;]</code></a></li><li><a href="https://i.gkd.li/i/16076188?gkd=QExpbmVhckxheW91dFtkZXNjPSLmkJzntKLmoI_vvIzmjInpkq4iXSAtIFZpZXdHcm91cFtkZXNjPSLkuKrkurrkuLvpobXvvIzmjInpkq4iXQ" target="_blank" rel="noreferrer"><code>@LinearLayout[desc=&quot;搜索栏,按钮&quot;] - ViewGroup[desc=&quot;个人主页,按钮&quot;]</code></a></li></ul><p>选择一个 <code>[text$=&quot;顶级入耳&quot;]</code> 节点, 并要求其兄弟节点是 <code>[vid=&quot;cover_layout&quot;]</code></p><ul><li><a href="https://i.gkd.li/i/16076188?gkd=W3ZpZD0iY292ZXJfbGF5b3V0Il0gK24gW3RleHQkPSLpobbnuqflhaXogLMiXQ" target="_blank" rel="noreferrer"><code>[vid=&quot;cover_layout&quot;] +n [text$=&quot;顶级入耳&quot;]</code></a></li><li><a href="https://i.gkd.li/i/16076188?gkd=QFt0ZXh0JD0i6aG257qn5YWl6ICzIl0gLW4gW3ZpZD0iY292ZXJfbGF5b3V0Il0" target="_blank" rel="noreferrer"><code>@[text$=&quot;顶级入耳&quot;] -n [vid=&quot;cover_layout&quot;]</code></a></li></ul><h2 id="e-5" tabindex="-1">选择父节点 <a class="header-anchor" href="#e-5" aria-label="Permalink to “选择父节点”">​</a></h2><p>选择一个 <code>ViewGroup[desc^=&quot;直播&quot;]</code> 节点, 并要求其子节点是 <code>FrameLayout[vid=&quot;cover_layout&quot;]</code> 或 <code>ViewGroup[vid=&quot;live_text_container&quot;]</code> 或 <code>TextView[vid=&quot;title_v2&quot;]</code></p><ul><li><a href="https://i.gkd.li/i/16076188?gkd=RnJhbWVMYXlvdXRbdmlkPSJjb3Zlcl9sYXlvdXQiXSA8IFZpZXdHcm91cFtkZXNjXj0i55u05pKtIl0" target="_blank" rel="noreferrer"><code>FrameLayout[vid=&quot;cover_layout&quot;] &lt; ViewGroup[desc^=&quot;直播&quot;]</code></a></li><li><a href="https://i.gkd.li/i/16076188?gkd=Vmlld0dyb3VwW3ZpZD0ibGl2ZV90ZXh0X2NvbnRhaW5lciJdIDwzIFZpZXdHcm91cFtkZXNjXj0i55u05pKtIl0" target="_blank" rel="noreferrer"><code>ViewGroup[vid=&quot;live_text_container&quot;] &lt;3 ViewGroup[desc^=&quot;直播&quot;]</code></a></li><li><a href="https://i.gkd.li/i/16076188?gkd=VGV4dFZpZXdbdmlkPSJ0aXRsZV92MiJdIDxuIFZpZXdHcm91cFtkZXNjXj0i55u05pKtIl0" target="_blank" rel="noreferrer"><code>TextView[vid=&quot;title_v2&quot;] &lt;n ViewGroup[desc^=&quot;直播&quot;]</code></a></li></ul><h2 id="e-6" tabindex="-1">在指定节点的子节点内查找指定选择器 <a class="header-anchor" href="#e-6" aria-label="Permalink to “在指定节点的子节点内查找指定选择器”">​</a></h2><p>一般在末尾节点支持 <a href="/guide/optimize#fast-query">快速查询</a> 的情况下使用</p><p>在节点 <code>ViewGroup[vid=&quot;live_text_container&quot;]</code> 的子节点内查找 <code>[text=&quot;直播&quot;]</code></p><p><a href="https://i.gkd.li/i/16076188?gkd=QFt0ZXh0PSLnm7Tmkq0iXSA8PG4gVmlld0dyb3VwW3ZpZD0ibGl2ZV90ZXh0X2NvbnRhaW5lciJd" target="_blank" rel="noreferrer"><code>@[text=&quot;直播&quot;] &lt;&lt;n ViewGroup[vid=&quot;live_text_container&quot;]</code></a></p><p>在节点 <code>FrameLayout[vid=&quot;swipe_layout&quot;]</code> 的子节点内查找 <code>LinearLayout &gt; @[text=&quot;直播&quot;]</code></p><p><a href="https://i.gkd.li/i/16076188?gkd=TGluZWFyTGF5b3V0ID4gQFt0ZXh0PSLnm7Tmkq0iXSA8PG4gW3ZpZD0ic3dpcGVfbGF5b3V0Il0" target="_blank" rel="noreferrer"><code>LinearLayout &gt; @[text=&quot;直播&quot;] &lt;&lt;n [vid=&quot;swipe_layout&quot;]</code></a></p><h2 id="e-7" tabindex="-1">组合使用 <a class="header-anchor" href="#e-7" aria-label="Permalink to “组合使用”">​</a></h2><p><a href="https://i.gkd.li/i/16076188?gkd=SW1hZ2VWaWV3IDwgRnJhbWVMYXlvdXQgPG4gVmlld0dyb3VwW2Rlc2NePSLnm7Tmkq0iXSAtIFZpZXdHcm91cCA-NCBGcmFtZUxheW91dFtpbmRleD0wXSArMiBGcmFtZUxheW91dCA-IEBUZXh0Vmlld1tpbmRleD1wYXJlbnQuY2hpbGRDb3VudC5taW51cygxKV0gPDxuIEZyYW1lTGF5b3V0W3ZpZD0iY29udGVudCJd" target="_blank" rel="noreferrer"><code>ImageView &lt; FrameLayout &lt;n ViewGroup[desc^=&quot;直播&quot;] - ViewGroup &gt;4 FrameLayout[index=0] +2 FrameLayout &gt; @TextView[index=parent.childCount.minus(1)] &lt;&lt;n FrameLayout[vid=&quot;content&quot;]</code></a></p>',30)]))}const g=t(i,[["render",r]]);export{q as __pageData,g as default};
@@ -1 +1 @@
1
- import{_ as t,c as o,o as a,aq as d}from"./chunks/framework.C9O3MI31.js";const q=JSON.parse('{"title":"选择示例","description":"","frontmatter":{},"headers":[],"relativePath":"guide/example.md","filePath":"guide/example.md","lastUpdated":1750342460000}'),i={name:"guide/example.md"};function r(l,e,u,c,n,p){return a(),o("div",null,e[0]||(e[0]=[d("",30)]))}const g=t(i,[["render",r]]);export{q as __pageData,g as default};
1
+ import{_ as t,c as o,o as a,aq as d}from"./chunks/framework.C9O3MI31.js";const q=JSON.parse('{"title":"选择示例","description":"","frontmatter":{},"headers":[],"relativePath":"guide/example.md","filePath":"guide/example.md","lastUpdated":1750344514000}'),i={name:"guide/example.md"};function r(l,e,u,c,n,p){return a(),o("div",null,e[0]||(e[0]=[d("",30)]))}const g=t(i,[["render",r]]);export{q as __pageData,g as default};