@gkd-kit/docs 0.0.1749922662721 → 0.0.1749928706535
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vitepress/dist/404.html +7 -7
- package/.vitepress/dist/404_.md +7 -7
- package/.vitepress/dist/_config.json +1 -1
- package/.vitepress/dist/api/index.html +10 -10
- package/.vitepress/dist/api/index_.md +10 -10
- package/.vitepress/dist/api/interfaces/RawApp.html +10 -10
- package/.vitepress/dist/api/interfaces/RawAppGroup.html +10 -10
- package/.vitepress/dist/api/interfaces/RawAppGroup_.md +10 -10
- package/.vitepress/dist/api/interfaces/RawAppRule.html +10 -10
- package/.vitepress/dist/api/interfaces/RawAppRuleProps.html +10 -10
- package/.vitepress/dist/api/interfaces/RawAppRuleProps_.md +10 -10
- package/.vitepress/dist/api/interfaces/RawAppRule_.md +10 -10
- package/.vitepress/dist/api/interfaces/RawApp_.md +10 -10
- package/.vitepress/dist/api/interfaces/RawCategory.html +10 -10
- package/.vitepress/dist/api/interfaces/RawCategory_.md +10 -10
- package/.vitepress/dist/api/interfaces/RawCommonProps.html +10 -10
- package/.vitepress/dist/api/interfaces/RawCommonProps_.md +10 -10
- package/.vitepress/dist/api/interfaces/RawGlobalApp.html +10 -10
- package/.vitepress/dist/api/interfaces/RawGlobalApp_.md +10 -10
- package/.vitepress/dist/api/interfaces/RawGlobalGroup.html +10 -10
- package/.vitepress/dist/api/interfaces/RawGlobalGroup_.md +10 -10
- package/.vitepress/dist/api/interfaces/RawGlobalRule.html +10 -10
- package/.vitepress/dist/api/interfaces/RawGlobalRuleProps.html +10 -10
- package/.vitepress/dist/api/interfaces/RawGlobalRuleProps_.md +10 -10
- package/.vitepress/dist/api/interfaces/RawGlobalRule_.md +10 -10
- package/.vitepress/dist/api/interfaces/RawGroupProps.html +10 -10
- package/.vitepress/dist/api/interfaces/RawGroupProps_.md +10 -10
- package/.vitepress/dist/api/interfaces/RawRuleProps.html +10 -10
- package/.vitepress/dist/api/interfaces/RawRuleProps_.md +10 -10
- package/.vitepress/dist/api/interfaces/RawSubscription.html +10 -10
- package/.vitepress/dist/api/interfaces/RawSubscription_.md +10 -10
- package/.vitepress/dist/api/type-aliases/IArray.html +10 -10
- package/.vitepress/dist/api/type-aliases/IArray_.md +10 -10
- package/.vitepress/dist/api/type-aliases/Integer.html +10 -10
- package/.vitepress/dist/api/type-aliases/Integer_.md +10 -10
- package/.vitepress/dist/api/type-aliases/Position.html +10 -10
- package/.vitepress/dist/api/type-aliases/Position_.md +10 -10
- package/.vitepress/dist/assets/{app.DLDTMt_Q.js → app.BQ2Ip0yQ.js} +1 -1
- package/.vitepress/dist/assets/chunks/@localSearchIndexroot.DSFMjPL0.js +1 -0
- package/.vitepress/dist/assets/chunks/{VPLocalSearchBox.D8sm1aUu.js → VPLocalSearchBox.CZsxd5R2.js} +2 -2
- package/.vitepress/dist/assets/chunks/theme.DVB11WQA.js +1 -0
- package/.vitepress/dist/assets/{guide_example.md.DX1QnTKX.js → guide_example.md.DotHUxWF.js} +1 -1
- package/.vitepress/dist/assets/{guide_example.md.DX1QnTKX.lean.js → guide_example.md.DotHUxWF.lean.js} +1 -1
- package/.vitepress/dist/assets/{guide_external.md.q2RphPW4.js → guide_external.md.B181mWrD.js} +1 -1
- package/.vitepress/dist/assets/{guide_external.md.q2RphPW4.lean.js → guide_external.md.B181mWrD.lean.js} +1 -1
- package/.vitepress/dist/assets/{guide_faq.md.BHQBqAjh.js → guide_faq.md.CXbUZlwo.js} +1 -1
- package/.vitepress/dist/assets/{guide_faq.md.BHQBqAjh.lean.js → guide_faq.md.CXbUZlwo.lean.js} +1 -1
- package/.vitepress/dist/assets/guide_index.md.6H-P_Lzq.js +1 -0
- package/.vitepress/dist/assets/guide_index.md.6H-P_Lzq.lean.js +1 -0
- package/.vitepress/dist/assets/{guide_node.md.BUPoymzs.js → guide_node.md.DhkJh1yk.js} +1 -1
- package/.vitepress/dist/assets/{guide_node.md.BUPoymzs.lean.js → guide_node.md.DhkJh1yk.lean.js} +1 -1
- package/.vitepress/dist/assets/{guide_optimize.md.BSu0LvDd.js → guide_optimize.md.DvlEGDzS.js} +1 -1
- package/.vitepress/dist/assets/{guide_optimize.md.BSu0LvDd.lean.js → guide_optimize.md.DvlEGDzS.lean.js} +1 -1
- package/.vitepress/dist/assets/{guide_privacy.md.CeNFyHDe.js → guide_privacy.md.FkDvIiKe.js} +1 -1
- package/.vitepress/dist/assets/{guide_privacy.md.CeNFyHDe.lean.js → guide_privacy.md.FkDvIiKe.lean.js} +1 -1
- package/.vitepress/dist/assets/{guide_selector.md.CgQg2yWe.js → guide_selector.md.Bb155_4K.js} +1 -1
- package/.vitepress/dist/assets/{guide_selector.md.CgQg2yWe.lean.js → guide_selector.md.Bb155_4K.lean.js} +1 -1
- package/.vitepress/dist/assets/{guide_snapshot.md.C6vdUFSA.js → guide_snapshot.md.D8a8Fk6Z.js} +1 -1
- package/.vitepress/dist/assets/{guide_snapshot.md.C6vdUFSA.lean.js → guide_snapshot.md.D8a8Fk6Z.lean.js} +1 -1
- package/.vitepress/dist/assets/guide_sponsor.md.BQ0IAIcK.js +1 -0
- package/.vitepress/dist/assets/guide_sponsor.md.BQ0IAIcK.lean.js +1 -0
- package/.vitepress/dist/assets/{guide_subscription.md.B8n8PA5G.js → guide_subscription.md.DiMTOnxq.js} +1 -1
- package/.vitepress/dist/assets/{guide_subscription.md.B8n8PA5G.lean.js → guide_subscription.md.DiMTOnxq.lean.js} +1 -1
- package/.vitepress/dist/assets/{guide_what-is-gkd.md.BjPkxMEx.js → guide_what-is-gkd.md.Chvpb6JG.js} +1 -1
- package/.vitepress/dist/assets/{guide_what-is-gkd.md.BjPkxMEx.lean.js → guide_what-is-gkd.md.Chvpb6JG.lean.js} +1 -1
- package/.vitepress/dist/assets/{index.md.7t-oY7C1.js → index.md.DS87ClI1.js} +1 -1
- package/.vitepress/dist/assets/{index.md.7t-oY7C1.lean.js → index.md.DS87ClI1.lean.js} +1 -1
- package/.vitepress/dist/assets/style.CuzzImqp.css +1 -1
- package/.vitepress/dist/guide/example.html +11 -11
- package/.vitepress/dist/guide/example_.md +11 -11
- package/.vitepress/dist/guide/external.html +11 -11
- package/.vitepress/dist/guide/external_.md +11 -11
- package/.vitepress/dist/guide/faq.html +11 -11
- package/.vitepress/dist/guide/faq_.md +11 -11
- package/.vitepress/dist/guide/index.html +11 -11
- package/.vitepress/dist/guide/index_.md +11 -11
- package/.vitepress/dist/guide/node.html +11 -11
- package/.vitepress/dist/guide/node_.md +11 -11
- package/.vitepress/dist/guide/optimize.html +11 -11
- package/.vitepress/dist/guide/optimize_.md +11 -11
- package/.vitepress/dist/guide/privacy.html +11 -11
- package/.vitepress/dist/guide/privacy_.md +11 -11
- package/.vitepress/dist/guide/selector.html +11 -11
- package/.vitepress/dist/guide/selector_.md +11 -11
- package/.vitepress/dist/guide/snapshot.html +11 -11
- package/.vitepress/dist/guide/snapshot_.md +11 -11
- package/.vitepress/dist/guide/sponsor.html +11 -11
- package/.vitepress/dist/guide/sponsor_.md +11 -11
- package/.vitepress/dist/guide/subscription.html +11 -11
- package/.vitepress/dist/guide/subscription_.md +11 -11
- package/.vitepress/dist/guide/what-is-gkd.html +11 -11
- package/.vitepress/dist/guide/what-is-gkd_.md +11 -11
- package/.vitepress/dist/hashmap.json +1 -1
- package/.vitepress/dist/index.html +11 -11
- package/.vitepress/dist/index_.md +11 -11
- package/_config.json +1 -1
- package/package.json +1 -1
- package/.vitepress/dist/assets/chunks/@localSearchIndexroot.C9wJt6xf.js +0 -1
- package/.vitepress/dist/assets/chunks/theme.k11nSN5U.js +0 -1
- package/.vitepress/dist/assets/guide_index.md.BieoJ3m-.js +0 -1
- package/.vitepress/dist/assets/guide_index.md.BieoJ3m-.lean.js +0 -1
- package/.vitepress/dist/assets/guide_sponsor.md.B9RbUqyg.js +0 -1
- package/.vitepress/dist/assets/guide_sponsor.md.B9RbUqyg.lean.js +0 -1
package/.vitepress/dist/assets/chunks/{VPLocalSearchBox.D8sm1aUu.js → VPLocalSearchBox.CZsxd5R2.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var Nt=Object.defineProperty;var Ft=(a,e,t)=>e in a?Nt(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var Re=(a,e,t)=>Ft(a,typeof e!="symbol"?e+"":e,t);import{W as Ot,B as le,h as ge,aA as et,aB as Ct,aC as Rt,aD as At,z as $e,aE as Mt,d as Lt,aF as tt,x as fe,aG as Dt,aH as zt,y as Pt,aI as Vt,p as Ae,R as he,Q as _e,ac as $t,a8 as jt,X as Bt,D as Wt,a0 as Kt,b as Jt,o as H,j as _,a1 as Ut,a6 as qt,k as L,a7 as Gt,aJ as Ht,c as Z,e as Se,n as nt,H as st,G as it,a as pe,t as me,ab as Qt,aK as rt,aL as Yt,ag as Zt,al as Xt,aM as en,_ as tn}from"./framework.CBQNBEo4.js";import{u as nn,c as sn}from"./theme.
|
|
1
|
+
var Nt=Object.defineProperty;var Ft=(a,e,t)=>e in a?Nt(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var Re=(a,e,t)=>Ft(a,typeof e!="symbol"?e+"":e,t);import{W as Ot,B as le,h as ge,aA as et,aB as Ct,aC as Rt,aD as At,z as $e,aE as Mt,d as Lt,aF as tt,x as fe,aG as Dt,aH as zt,y as Pt,aI as Vt,p as Ae,R as he,Q as _e,ac as $t,a8 as jt,X as Bt,D as Wt,a0 as Kt,b as Jt,o as H,j as _,a1 as Ut,a6 as qt,k as L,a7 as Gt,aJ as Ht,c as Z,e as Se,n as nt,H as st,G as it,a as pe,t as me,ab as Qt,aK as rt,aL as Yt,ag as Zt,al as Xt,aM as en,_ as tn}from"./framework.CBQNBEo4.js";import{u as nn,c as sn}from"./theme.DVB11WQA.js";const rn={root:()=>Ot(()=>import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1749928706535/files/.vitepress/dist"+u}return u})("./@localSearchIndexroot.DSFMjPL0.js")),[])};/*!
|
|
2
2
|
* tabbable 6.2.0
|
|
3
3
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
4
4
|
*/var mt=["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])"],ke=mt.join(","),vt=typeof Element>"u",re=vt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ne=!vt&&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},Fe=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},an=function(e){var t,n=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return n===""||n==="true"},gt=function(e,t,n){if(Fe(e))return[];var s=Array.prototype.slice.apply(e.querySelectorAll(ke));return t&&re.call(e,ke)&&s.unshift(e),s=s.filter(n),s},bt=function a(e,t,n){for(var s=[],r=Array.from(e);r.length;){var i=r.shift();if(!Fe(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,ke);f&&n.filter(i)&&(t||!e.includes(i))&&s.push(i);var v=i.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(i),h=!Fe(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},yt=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},ie=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||an(e))&&!yt(e)?0:e.tabIndex},on=function(e,t){var n=ie(e);return n<0&&t&&!yt(e)?0:n},ln=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},wt=function(e){return e.tagName==="INPUT"},cn=function(e){return wt(e)&&e.type==="hidden"},un=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return t},dn=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},fn=function(e){if(!e.name)return!0;var t=e.form||Ne(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=dn(s,e.form);return!r||r===e},hn=function(e){return wt(e)&&e.type==="radio"},pn=function(e){return hn(e)&&!fn(e)},mn=function(e){var t,n=e&&Ne(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=Ne(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},at=function(e){var t=e.getBoundingClientRect(),n=t.width,s=t.height;return n===0&&s===0},vn=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=Ne(e);if(l&&!l.shadowRoot&&s(l)===!0)return at(e);e.assignedSlot?e=e.assignedSlot:!l&&c!==e.ownerDocument?e=c.host:e=l}e=o}if(mn(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return at(e);return!1},gn=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},Oe=function(e,t){return!(t.disabled||Fe(t)||cn(t)||vn(t,e)||un(t)||gn(t))},je=function(e,t){return!(pn(t)||ie(t)<0||!Oe(e,t))},bn=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},yn=function a(e){var t=[],n=[];return e.forEach(function(s,r){var i=!!s.scopeParent,o=i?s.scopeParent:s,l=on(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(ln).reduce(function(s,r){return r.isScope?s.push.apply(s,r.content):s.push(r.content),s},[]).concat(t)},wn=function(e,t){t=t||{};var n;return t.getShadowRoot?n=bt([e],t.includeContainer,{filter:je.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:bn}):n=gt(e,t.includeContainer,je.bind(null,t)),yn(n)},xn=function(e,t){t=t||{};var n;return t.getShadowRoot?n=bt([e],t.includeContainer,{filter:Oe.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):n=gt(e,t.includeContainer,Oe.bind(null,t)),n},ae=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return re.call(e,ke)===!1?!1:je(t,e)},_n=mt.concat("iframe").join(","),Me=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return re.call(e,_n)===!1?!1:Oe(t,e)};/*!
|
|
5
5
|
* focus-trap 7.6.4
|
|
6
6
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
7
7
|
*/function Be(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 Sn(a){if(Array.isArray(a))return Be(a)}function En(a,e,t){return(e=Fn(e))in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function Tn(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function In(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
8
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ot(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 lt(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ot(Object(t),!0).forEach(function(n){En(a,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):ot(Object(t)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(t,n))})}return a}function kn(a){return Sn(a)||Tn(a)||On(a)||In()}function Nn(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 Fn(a){var e=Nn(a,"string");return typeof e=="symbol"?e:e+""}function On(a,e){if(a){if(typeof a=="string")return Be(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)?Be(a,e):void 0}}var ct={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)}},Cn=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Rn=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},An=function(e){return be(e)&&!e.shiftKey},Mn=function(e){return be(e)&&e.shiftKey},ut=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},Ee=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},Ln=[],Dn=function(e,t){var n=(t==null?void 0:t.document)||document,s=(t==null?void 0:t.trapStack)||Ln,r=lt({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:An,isKeyBackward:Mn},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,kn(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&&!Me(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=wn(u,r.tabbableOptions),g=xn(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,Cn(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||Ee(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||Me(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||Me(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=Ee(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=Ee(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))},W=function(u){Rn(u)&&ve(r.escapeDeactivates,u)!==!1&&(u.preventDefault(),o.deactivate())},$=function(u){var d=Ee(u);c(d,u)>=0||ve(r.clickOutsideDeactivates,u)||ve(r.allowOutsideClick,u)||(u.preventDefault(),u.stopImmediatePropagation())},j=function(){if(i.active)return ct.activateTrap(s,o),i.delayInitialFocusTimer=r.delayInitialFocus?ut(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",$,{capture:!0,passive:!1}),n.addEventListener("keydown",Q,{capture:!0,passive:!1}),n.addEventListener("keydown",W),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",$,!0),n.removeEventListener("keydown",Q,!0),n.removeEventListener("keydown",W),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(),j(),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=lt({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(),ct.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(){ut(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(),j(),q(),F==null||F()}return this}}}),o.updateContainerElements(e),o};function zn(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=et(a);return Ct(h).map(b=>{const y=et(b);return typeof y=="string"?y:Rt(y)}).filter(At)});return $e(v,h=>{h.length&&(t=Dn(h,{...s,onActivate(){r.value=!0,e.onActivate&&e.onActivate()},onDeactivate(){r.value=!1,e.onDeactivate&&e.onDeactivate()}}),n&&o())},{flush:"post"}),Mt(()=>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 Pn=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 Vn(a){const e=new Pn(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 $n="ENTRIES",xt="KEYS",_t="VALUES",D="";class Le{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 _t:return this.value();case xt:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}}const oe=a=>a[a.length-1],jn=(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 St(a,e,t,n,i,1,s,""),n},St=(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,W=s[y+A+1]+1,$=s[b+A]+1,j=s[b+A+1]=Math.min(Q,W,$);j<x&&(x=j)}if(x>t)continue e}St(a.get(c),e,t,n,s,f,i,o+c)}};class X{constructor(e=new Map,t=""){this._size=void 0,this._tree=e,this._prefix=t}atPrefix(e){if(!e.startsWith(this._prefix))throw new Error("Mismatched prefix");const[t,n]=Ce(this._tree,e.slice(this._prefix.length));if(t===void 0){const[s,r]=Ue(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 X(o,e)}}return new X(t,e)}clear(){this._size=void 0,this._tree.clear()}delete(e){return this._size=void 0,Bn(this._tree,e)}entries(){return new Le(this,$n)}forEach(e){for(const[t,n]of this)e(t,n,this)}fuzzyGet(e,t){return jn(this._tree,e,t)}get(e){const t=We(this._tree,e);return t!==void 0?t.get(D):void 0}has(e){const t=We(this._tree,e);return t!==void 0&&t.has(D)}keys(){return new Le(this,xt)}set(e,t){if(typeof e!="string")throw new Error("key must be a string");return this._size=void 0,De(this._tree,e).set(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=De(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=De(this._tree,e);let s=n.get(D);return s===void 0&&n.set(D,s=t()),s}values(){return new Le(this,_t)}[Symbol.iterator](){return this.entries()}static from(e){const t=new X;for(const[n,s]of e)t.set(n,s);return t}static fromObject(e){return X.from(Object.entries(e))}}const Ce=(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]),Ce(a.get(n),e.slice(n.length),t);return t.push([a,e]),Ce(void 0,"",t)},We=(a,e)=>{if(e.length===0||a==null)return a;for(const t of a.keys())if(t!==D&&e.startsWith(t))return We(a.get(t),e.slice(t.length))},De=(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},Bn=(a,e)=>{const[t,n]=Ce(a,e);if(t!==void 0){if(t.delete(D),t.size===0)Et(n);else if(t.size===1){const[s,r]=t.entries().next().value;Tt(n,s,r)}}},Et=a=>{if(a.length===0)return;const[e,t]=Ue(a);if(e.delete(t),e.size===0)Et(a.slice(0,-1));else if(e.size===1){const[n,s]=e.entries().next().value;n!==D&&Tt(a.slice(0,-1),n,s)}},Tt=(a,e,t)=>{if(a.length===0)return;const[n,s]=Ue(a);n.set(s+e,t),n.delete(s)},Ue=a=>a[a.length-1],qe="or",It="and",Wn="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?Ve:e.autoVacuum;this._options={...Pe,...e,autoVacuum:t,searchOptions:{...dt,...e.searchOptions||{}},autoSuggestOptions:{...Gn,...e.autoSuggestOptions||{}}},this._index=new X,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldIds={},this._fieldLength=new Map,this._avgFieldLength=[],this._nextId=0,this._storedFields=new Map,this._dirtCount=0,this._currentVacuum=null,this._enqueuedVacuum=null,this._enqueuedVacuumConditions=Je,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 X,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}}discard(e){const t=this._idToShortId.get(e);if(t==null)throw new Error(`MiniSearch: cannot discard document with ID ${e}: it is not in the index`);this._idToShortId.delete(e),this._documentIds.delete(t),this._storedFields.delete(t),(this._fieldLength.get(t)||[]).forEach((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=Je,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||Ke.batchSize,r=e.batchWait||Ke.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||Ve.minDirtCount,n=n||Ve.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(ht),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(ht),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(Pe.hasOwnProperty(e))return ze(Pe,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=Te(s),l._fieldLength=Te(r),l._storedFields=Te(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),Te(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 Ie(s),l._fieldLength=await Ie(r),l._storedFields=await Ie(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 Ie(y))}++c%1e3===0&&await kt(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 X,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(qn(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]:ze(n.boost,w)||1}),{}),{boostDocument:r,weights:i,maxFuzzy:o,bm25:l}=n,{fuzzy:c,prefix:f}={...dt.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=qe){if(e.length===0)return new Map;const n=t.toLowerCase(),s=Kn[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=Un(A,y,this._documentCount,J,x,l),W=n*s*v*R*Q,$=c.get(w);if($){$.score+=W,Hn($.terms,e);const j=ze($.match,t);j?j.push(f):$.match[t]=[f]}else c.set(w,{score:W,terms:[e],match:{[t]:[f]}})}}return c}addTerm(e,t,n){const s=this._index.fetch(n,pt);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,pt),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 ze=(a,e)=>Object.prototype.hasOwnProperty.call(a,e)?a[e]:void 0,Kn={[qe]:(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),ft(n.terms,r)}}return a},[It]:(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);ft(s.terms,i),t.set(n,{score:s.score+r,terms:s.terms,match:Object.assign(s.match,o)})}return t},[Wn]:(a,e)=>{for(const t of e.keys())a.delete(t);return a}},Jn={k:1.2,b:.7,d:.5},Un=(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)))},qn=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}},Pe={idField:"id",extractField:(a,e)=>a[e],tokenize:a=>a.split(Qn),processTerm:a=>a.toLowerCase(),fields:void 0,searchOptions:void 0,storeFields:[],logger:(a,e)=>{typeof(console==null?void 0:console[a])=="function"&&console[a](e)},autoVacuum:!0},dt={combineWith:qe,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:Jn},Gn={combineWith:It,prefix:(a,e,t)=>e===t.length-1},Ke={batchSize:1e3,batchWait:10},Je={minDirtFactor:.1,minDirtCount:20},Ve={...Ke,...Je},Hn=(a,e)=>{a.includes(e)||a.push(e)},ft=(a,e)=>{for(const t of e)a.includes(t)||a.push(t)},ht=({score:a},{score:e})=>e-a,pt=()=>new Map,Te=a=>{const e=new Map;for(const t of Object.keys(a))e.set(parseInt(t,10),a[t]);return e},Ie=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 kt(0);return e},kt=a=>new Promise(e=>setTimeout(e,a)),Qn=/[\n\r\p{Z}\p{P}]+/u;class Yn{constructor(e=10){Re(this,"max");Re(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 Zn=["aria-owns"],Xn={class:"shell"},es=["title"],ts={class:"search-actions before"},ns=["title"],ss=["aria-activedescendant","aria-controls","placeholder"],is={class:"search-actions"},rs=["title"],as=["disabled","title"],os=["id","role","aria-labelledby"],ls=["id","aria-selected"],cs=["href","aria-label","onMouseenter","onFocusin","data-index"],us={class:"titles"},ds=["innerHTML"],fs={class:"title main"},hs=["innerHTML"],ps={key:0,class:"excerpt-wrapper"},ms={key:0,class:"excerpt",inert:""},vs=["innerHTML"],gs={key:0,class:"no-results"},bs={class:"search-keyboard-shortcuts"},ys=["aria-label"],ws=["aria-label"],xs=["aria-label"],_s=["aria-label"],Ss=Lt({__name:"VPLocalSearchBox",emits:["close"],setup(a,{emit:e}){var S,C;const t=e,n=le(),s=le(),r=le(rn),i=nn(),{activate:o}=zn(n,{immediate:!0,allowOutsideClick:!0,clickOutsideDeactivates:!0,escapeDeactivates:!0}),{localeIndex:l,theme:c}=i,f=tt(async()=>{var m,p,I,O,z,P,V,k,K;return rt(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=(k=c.value.search.options)==null?void 0:k.miniSearch)==null?void 0:K.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(""):Dt("vitepress:local-search-filter",""),b=zt("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=((p=c.value.search)==null?void 0:p.options)??c.value.algolia;return((P=(z=(O=(I=m==null?void 0:m.locales)==null?void 0:I[l.value])==null?void 0:O.translations)==null?void 0:z.button)==null?void 0:P.buttonText)||((k=(V=m==null?void 0:m.translations)==null?void 0:V.button)==null?void 0:k.buttonText)||"Search"});Pt(()=>{y.value&&(b.value=!1)});const w=le([]),R=fe(!1);$e(h,()=>{R.value=!1});const A=tt(async()=>{if(s.value)return rt(new Vn(s.value))},null),J=new Yn(16);Vt(()=>[f.value,h.value,b.value],async([m,p,I],O,z)=>{var ee,we,Ge,He;(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(B=>Q(B.id))):[];if(P)return;for(const{id:B,mod:te}of V){const ne=B.slice(0,B.indexOf("#"));let Y=J.get(ne);if(Y)continue;Y=new Map,J.set(ne,Y);const G=te.default??te;if(G!=null&&G.render||G!=null&&G.setup){const se=Yt(G);se.config.warnHandler=()=>{},se.provide(Zt,i),Object.defineProperties(se.config.globalProperties,{$frontmatter:{get(){return i.frontmatter.value}},$params:{get(){return i.page.value.params}}});const Qe=document.createElement("div");se.mount(Qe),Qe.querySelectorAll("h1, h2, h3, h4, h5, h6").forEach(de=>{var Xe;const xe=(Xe=de.querySelector("a"))==null?void 0:Xe.getAttribute("href"),Ye=(xe==null?void 0:xe.startsWith("#"))&&xe.slice(1);if(!Ye)return;let Ze="";for(;(de=de.nextElementSibling)&&!/^h[1-6]$/i.test(de.tagName);)Ze+=de.outerHTML;Y.set(Ye,Ze)}),se.unmount()}if(P)return}const k=new Set;if(w.value=w.value.map(B=>{const[te,ne]=B.id.split("#"),Y=J.get(te),G=(Y==null?void 0:Y.get(ne))??"";for(const se in B.match)k.add(se);return{...B,text:G}}),await he(),P)return;await new Promise(B=>{var te;(te=A.value)==null||te.unmark({done:()=>{var ne;(ne=A.value)==null||ne.markRegExp(T(k),{done:B})}})});const K=((ee=n.value)==null?void 0:ee.querySelectorAll(".result .excerpt"))??[];for(const B of K)(we=B.querySelector('mark[data-markjs="true"]'))==null||we.scrollIntoView({block:"center"});(He=(Ge=s.value)==null?void 0:Ge.firstElementChild)==null||He.scrollIntoView({block:"start"})},{debounce:200,immediate:!0});async function Q(m){const p=Xt(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.1749922662721/files/.vitepress/dist"+u}return u})(p))}}catch(I){return console.error(I),{id:m,mod:{}}}}const W=fe(),$=ge(()=>{var m;return((m=h.value)==null?void 0:m.length)<=0});function j(m=!0){var p,I;(p=W.value)==null||p.focus(),m&&((I=W.value)==null||I.select())}Ae(()=>{j()});function ye(m){m.pointerType==="mouse"&&j()}const M=fe(-1),U=fe(!0);$e(w,m=>{M.value=m.length?0:-1,q()});function q(){he(()=>{const m=document.querySelector(".result.selected");m==null||m.scrollIntoView({block:"nearest"})})}_e("ArrowUp",m=>{m.preventDefault(),M.value--,M.value<0&&(M.value=w.value.length-1),U.value=!0,q()}),_e("ArrowDown",m=>{m.preventDefault(),M.value++,M.value>=w.value.length&&(M.value=0),U.value=!0,q()});const N=$t();_e("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"))}),_e("Escape",()=>{t("close")});const d=sn({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"}}});Ae(()=>{window.history.pushState(null,"",null)}),jt("popstate",m=>{m.preventDefault(),t("close")});const g=Bt(Wt?document.body:null);Ae(()=>{he(()=>{g.value=!0,he().then(()=>o())})}),Kt(()=>{g.value=!1});function E(){h.value="",he().then(()=>j(!1))}function T(m){return new RegExp([...m].sort((p,I)=>I.length-p.length).map(p=>`(${en(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(),Jt(Qt,{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",Xn,[_("form",{class:"search-bar",onPointerup:p[4]||(p[4]=k=>ye(k)),onSubmit:p[5]||(p[5]=Ut(()=>{},["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,es),_("div",ts,[_("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,ns)]),qt(_("input",{ref_key:"searchInput",ref:W,"onUpdate:modelValue":p[2]||(p[2]=k=>Ht(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,ss),[[Gt,L(h)]]),_("div",is,[y.value?Se("",!0):(H(),Z("button",{key:0,class:nt(["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,rs)),_("button",{class:"clear-button",type:"reset",disabled:$.value,title:L(d)("modal.resetButtonTitle"),onClick:E},p[10]||(p[10]=[_("span",{class:"vpi-delete local-search-icon"},null,-1)]),8,as)])],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),Z(it,null,st(w.value,(k,K)=>(H(),Z("li",{key:k.id,id:"localsearch-item-"+K,"aria-selected":M.value===K?"true":"false",role:"option"},[_("a",{href:k.id,class:nt(["result",{selected:M.value===K}]),"aria-label":[...k.titles,k.title].join(" > "),onMouseenter:ee=>!U.value&&(M.value=K),onFocusin:ee=>M.value=K,onClick:p[6]||(p[6]=ee=>m.$emit("close")),"data-index":K},[_("div",null,[_("div",us,[p[12]||(p[12]=_("span",{class:"title-icon"},"#",-1)),(H(!0),Z(it,null,st(k.titles,(ee,we)=>(H(),Z("span",{key:we,class:"title"},[_("span",{class:"text",innerHTML:ee},null,8,ds),p[11]||(p[11]=_("span",{class:"vpi-chevron-right local-search-icon"},null,-1))]))),128)),_("span",fs,[_("span",{class:"text",innerHTML:k.title},null,8,hs)])]),L(b)?(H(),Z("div",ps,[k.text?(H(),Z("div",ms,[_("div",{class:"vp-doc",innerHTML:k.text},null,8,vs)])):Se("",!0),p[13]||(p[13]=_("div",{class:"excerpt-gradient-bottom"},null,-1)),p[14]||(p[14]=_("div",{class:"excerpt-gradient-top"},null,-1))])):Se("",!0)])],42,cs)],8,ls))),128)),L(h)&&!w.value.length&&R.value?(H(),Z("li",gs,[pe(me(L(d)("modal.noResultsText"))+' "',1),_("strong",null,me(L(h)),1),p[15]||(p[15]=pe('" '))])):Se("",!0)],40,os),_("div",bs,[_("span",null,[_("kbd",{"aria-label":L(d)("modal.footer.navigateUpKeyAriaLabel")},p[16]||(p[16]=[_("span",{class:"vpi-arrow-up navigate-icon"},null,-1)]),8,ys),_("kbd",{"aria-label":L(d)("modal.footer.navigateDownKeyAriaLabel")},p[17]||(p[17]=[_("span",{class:"vpi-arrow-down navigate-icon"},null,-1)]),8,ws),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,xs),pe(" "+me(L(d)("modal.footer.selectText")),1)]),_("span",null,[_("kbd",{"aria-label":L(d)("modal.footer.closeKeyAriaLabel")},"esc",8,_s),pe(" "+me(L(d)("modal.footer.closeText")),1)])])])],8,Zn)])}}}),Fs=tn(Ss,[["__scopeId","data-v-a9a1c862"]]);export{Fs as default};
|
|
8
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ot(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 lt(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ot(Object(t),!0).forEach(function(n){En(a,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):ot(Object(t)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(t,n))})}return a}function kn(a){return Sn(a)||Tn(a)||On(a)||In()}function Nn(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 Fn(a){var e=Nn(a,"string");return typeof e=="symbol"?e:e+""}function On(a,e){if(a){if(typeof a=="string")return Be(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)?Be(a,e):void 0}}var ct={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)}},Cn=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Rn=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},An=function(e){return be(e)&&!e.shiftKey},Mn=function(e){return be(e)&&e.shiftKey},ut=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},Ee=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},Ln=[],Dn=function(e,t){var n=(t==null?void 0:t.document)||document,s=(t==null?void 0:t.trapStack)||Ln,r=lt({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:An,isKeyBackward:Mn},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,kn(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&&!Me(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=wn(u,r.tabbableOptions),g=xn(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,Cn(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||Ee(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||Me(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||Me(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=Ee(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=Ee(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))},W=function(u){Rn(u)&&ve(r.escapeDeactivates,u)!==!1&&(u.preventDefault(),o.deactivate())},$=function(u){var d=Ee(u);c(d,u)>=0||ve(r.clickOutsideDeactivates,u)||ve(r.allowOutsideClick,u)||(u.preventDefault(),u.stopImmediatePropagation())},j=function(){if(i.active)return ct.activateTrap(s,o),i.delayInitialFocusTimer=r.delayInitialFocus?ut(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",$,{capture:!0,passive:!1}),n.addEventListener("keydown",Q,{capture:!0,passive:!1}),n.addEventListener("keydown",W),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",$,!0),n.removeEventListener("keydown",Q,!0),n.removeEventListener("keydown",W),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(),j(),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=lt({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(),ct.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(){ut(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(),j(),q(),F==null||F()}return this}}}),o.updateContainerElements(e),o};function zn(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=et(a);return Ct(h).map(b=>{const y=et(b);return typeof y=="string"?y:Rt(y)}).filter(At)});return $e(v,h=>{h.length&&(t=Dn(h,{...s,onActivate(){r.value=!0,e.onActivate&&e.onActivate()},onDeactivate(){r.value=!1,e.onDeactivate&&e.onDeactivate()}}),n&&o())},{flush:"post"}),Mt(()=>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 Pn=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 Vn(a){const e=new Pn(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 $n="ENTRIES",xt="KEYS",_t="VALUES",D="";class Le{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 _t:return this.value();case xt:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}}const oe=a=>a[a.length-1],jn=(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 St(a,e,t,n,i,1,s,""),n},St=(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,W=s[y+A+1]+1,$=s[b+A]+1,j=s[b+A+1]=Math.min(Q,W,$);j<x&&(x=j)}if(x>t)continue e}St(a.get(c),e,t,n,s,f,i,o+c)}};class X{constructor(e=new Map,t=""){this._size=void 0,this._tree=e,this._prefix=t}atPrefix(e){if(!e.startsWith(this._prefix))throw new Error("Mismatched prefix");const[t,n]=Ce(this._tree,e.slice(this._prefix.length));if(t===void 0){const[s,r]=Ue(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 X(o,e)}}return new X(t,e)}clear(){this._size=void 0,this._tree.clear()}delete(e){return this._size=void 0,Bn(this._tree,e)}entries(){return new Le(this,$n)}forEach(e){for(const[t,n]of this)e(t,n,this)}fuzzyGet(e,t){return jn(this._tree,e,t)}get(e){const t=We(this._tree,e);return t!==void 0?t.get(D):void 0}has(e){const t=We(this._tree,e);return t!==void 0&&t.has(D)}keys(){return new Le(this,xt)}set(e,t){if(typeof e!="string")throw new Error("key must be a string");return this._size=void 0,De(this._tree,e).set(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=De(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=De(this._tree,e);let s=n.get(D);return s===void 0&&n.set(D,s=t()),s}values(){return new Le(this,_t)}[Symbol.iterator](){return this.entries()}static from(e){const t=new X;for(const[n,s]of e)t.set(n,s);return t}static fromObject(e){return X.from(Object.entries(e))}}const Ce=(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]),Ce(a.get(n),e.slice(n.length),t);return t.push([a,e]),Ce(void 0,"",t)},We=(a,e)=>{if(e.length===0||a==null)return a;for(const t of a.keys())if(t!==D&&e.startsWith(t))return We(a.get(t),e.slice(t.length))},De=(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},Bn=(a,e)=>{const[t,n]=Ce(a,e);if(t!==void 0){if(t.delete(D),t.size===0)Et(n);else if(t.size===1){const[s,r]=t.entries().next().value;Tt(n,s,r)}}},Et=a=>{if(a.length===0)return;const[e,t]=Ue(a);if(e.delete(t),e.size===0)Et(a.slice(0,-1));else if(e.size===1){const[n,s]=e.entries().next().value;n!==D&&Tt(a.slice(0,-1),n,s)}},Tt=(a,e,t)=>{if(a.length===0)return;const[n,s]=Ue(a);n.set(s+e,t),n.delete(s)},Ue=a=>a[a.length-1],qe="or",It="and",Wn="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?Ve:e.autoVacuum;this._options={...Pe,...e,autoVacuum:t,searchOptions:{...dt,...e.searchOptions||{}},autoSuggestOptions:{...Gn,...e.autoSuggestOptions||{}}},this._index=new X,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldIds={},this._fieldLength=new Map,this._avgFieldLength=[],this._nextId=0,this._storedFields=new Map,this._dirtCount=0,this._currentVacuum=null,this._enqueuedVacuum=null,this._enqueuedVacuumConditions=Je,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 X,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}}discard(e){const t=this._idToShortId.get(e);if(t==null)throw new Error(`MiniSearch: cannot discard document with ID ${e}: it is not in the index`);this._idToShortId.delete(e),this._documentIds.delete(t),this._storedFields.delete(t),(this._fieldLength.get(t)||[]).forEach((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=Je,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||Ke.batchSize,r=e.batchWait||Ke.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||Ve.minDirtCount,n=n||Ve.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(ht),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(ht),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(Pe.hasOwnProperty(e))return ze(Pe,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=Te(s),l._fieldLength=Te(r),l._storedFields=Te(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),Te(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 Ie(s),l._fieldLength=await Ie(r),l._storedFields=await Ie(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 Ie(y))}++c%1e3===0&&await kt(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 X,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(qn(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]:ze(n.boost,w)||1}),{}),{boostDocument:r,weights:i,maxFuzzy:o,bm25:l}=n,{fuzzy:c,prefix:f}={...dt.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=qe){if(e.length===0)return new Map;const n=t.toLowerCase(),s=Kn[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=Un(A,y,this._documentCount,J,x,l),W=n*s*v*R*Q,$=c.get(w);if($){$.score+=W,Hn($.terms,e);const j=ze($.match,t);j?j.push(f):$.match[t]=[f]}else c.set(w,{score:W,terms:[e],match:{[t]:[f]}})}}return c}addTerm(e,t,n){const s=this._index.fetch(n,pt);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,pt),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 ze=(a,e)=>Object.prototype.hasOwnProperty.call(a,e)?a[e]:void 0,Kn={[qe]:(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),ft(n.terms,r)}}return a},[It]:(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);ft(s.terms,i),t.set(n,{score:s.score+r,terms:s.terms,match:Object.assign(s.match,o)})}return t},[Wn]:(a,e)=>{for(const t of e.keys())a.delete(t);return a}},Jn={k:1.2,b:.7,d:.5},Un=(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)))},qn=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}},Pe={idField:"id",extractField:(a,e)=>a[e],tokenize:a=>a.split(Qn),processTerm:a=>a.toLowerCase(),fields:void 0,searchOptions:void 0,storeFields:[],logger:(a,e)=>{typeof(console==null?void 0:console[a])=="function"&&console[a](e)},autoVacuum:!0},dt={combineWith:qe,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:Jn},Gn={combineWith:It,prefix:(a,e,t)=>e===t.length-1},Ke={batchSize:1e3,batchWait:10},Je={minDirtFactor:.1,minDirtCount:20},Ve={...Ke,...Je},Hn=(a,e)=>{a.includes(e)||a.push(e)},ft=(a,e)=>{for(const t of e)a.includes(t)||a.push(t)},ht=({score:a},{score:e})=>e-a,pt=()=>new Map,Te=a=>{const e=new Map;for(const t of Object.keys(a))e.set(parseInt(t,10),a[t]);return e},Ie=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 kt(0);return e},kt=a=>new Promise(e=>setTimeout(e,a)),Qn=/[\n\r\p{Z}\p{P}]+/u;class Yn{constructor(e=10){Re(this,"max");Re(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 Zn=["aria-owns"],Xn={class:"shell"},es=["title"],ts={class:"search-actions before"},ns=["title"],ss=["aria-activedescendant","aria-controls","placeholder"],is={class:"search-actions"},rs=["title"],as=["disabled","title"],os=["id","role","aria-labelledby"],ls=["id","aria-selected"],cs=["href","aria-label","onMouseenter","onFocusin","data-index"],us={class:"titles"},ds=["innerHTML"],fs={class:"title main"},hs=["innerHTML"],ps={key:0,class:"excerpt-wrapper"},ms={key:0,class:"excerpt",inert:""},vs=["innerHTML"],gs={key:0,class:"no-results"},bs={class:"search-keyboard-shortcuts"},ys=["aria-label"],ws=["aria-label"],xs=["aria-label"],_s=["aria-label"],Ss=Lt({__name:"VPLocalSearchBox",emits:["close"],setup(a,{emit:e}){var S,C;const t=e,n=le(),s=le(),r=le(rn),i=nn(),{activate:o}=zn(n,{immediate:!0,allowOutsideClick:!0,clickOutsideDeactivates:!0,escapeDeactivates:!0}),{localeIndex:l,theme:c}=i,f=tt(async()=>{var m,p,I,O,z,P,V,k,K;return rt(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=(k=c.value.search.options)==null?void 0:k.miniSearch)==null?void 0:K.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(""):Dt("vitepress:local-search-filter",""),b=zt("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=((p=c.value.search)==null?void 0:p.options)??c.value.algolia;return((P=(z=(O=(I=m==null?void 0:m.locales)==null?void 0:I[l.value])==null?void 0:O.translations)==null?void 0:z.button)==null?void 0:P.buttonText)||((k=(V=m==null?void 0:m.translations)==null?void 0:V.button)==null?void 0:k.buttonText)||"Search"});Pt(()=>{y.value&&(b.value=!1)});const w=le([]),R=fe(!1);$e(h,()=>{R.value=!1});const A=tt(async()=>{if(s.value)return rt(new Vn(s.value))},null),J=new Yn(16);Vt(()=>[f.value,h.value,b.value],async([m,p,I],O,z)=>{var ee,we,Ge,He;(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(B=>Q(B.id))):[];if(P)return;for(const{id:B,mod:te}of V){const ne=B.slice(0,B.indexOf("#"));let Y=J.get(ne);if(Y)continue;Y=new Map,J.set(ne,Y);const G=te.default??te;if(G!=null&&G.render||G!=null&&G.setup){const se=Yt(G);se.config.warnHandler=()=>{},se.provide(Zt,i),Object.defineProperties(se.config.globalProperties,{$frontmatter:{get(){return i.frontmatter.value}},$params:{get(){return i.page.value.params}}});const Qe=document.createElement("div");se.mount(Qe),Qe.querySelectorAll("h1, h2, h3, h4, h5, h6").forEach(de=>{var Xe;const xe=(Xe=de.querySelector("a"))==null?void 0:Xe.getAttribute("href"),Ye=(xe==null?void 0:xe.startsWith("#"))&&xe.slice(1);if(!Ye)return;let Ze="";for(;(de=de.nextElementSibling)&&!/^h[1-6]$/i.test(de.tagName);)Ze+=de.outerHTML;Y.set(Ye,Ze)}),se.unmount()}if(P)return}const k=new Set;if(w.value=w.value.map(B=>{const[te,ne]=B.id.split("#"),Y=J.get(te),G=(Y==null?void 0:Y.get(ne))??"";for(const se in B.match)k.add(se);return{...B,text:G}}),await he(),P)return;await new Promise(B=>{var te;(te=A.value)==null||te.unmark({done:()=>{var ne;(ne=A.value)==null||ne.markRegExp(T(k),{done:B})}})});const K=((ee=n.value)==null?void 0:ee.querySelectorAll(".result .excerpt"))??[];for(const B of K)(we=B.querySelector('mark[data-markjs="true"]'))==null||we.scrollIntoView({block:"center"});(He=(Ge=s.value)==null?void 0:Ge.firstElementChild)==null||He.scrollIntoView({block:"start"})},{debounce:200,immediate:!0});async function Q(m){const p=Xt(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.1749928706535/files/.vitepress/dist"+u}return u})(p))}}catch(I){return console.error(I),{id:m,mod:{}}}}const W=fe(),$=ge(()=>{var m;return((m=h.value)==null?void 0:m.length)<=0});function j(m=!0){var p,I;(p=W.value)==null||p.focus(),m&&((I=W.value)==null||I.select())}Ae(()=>{j()});function ye(m){m.pointerType==="mouse"&&j()}const M=fe(-1),U=fe(!0);$e(w,m=>{M.value=m.length?0:-1,q()});function q(){he(()=>{const m=document.querySelector(".result.selected");m==null||m.scrollIntoView({block:"nearest"})})}_e("ArrowUp",m=>{m.preventDefault(),M.value--,M.value<0&&(M.value=w.value.length-1),U.value=!0,q()}),_e("ArrowDown",m=>{m.preventDefault(),M.value++,M.value>=w.value.length&&(M.value=0),U.value=!0,q()});const N=$t();_e("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"))}),_e("Escape",()=>{t("close")});const d=sn({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"}}});Ae(()=>{window.history.pushState(null,"",null)}),jt("popstate",m=>{m.preventDefault(),t("close")});const g=Bt(Wt?document.body:null);Ae(()=>{he(()=>{g.value=!0,he().then(()=>o())})}),Kt(()=>{g.value=!1});function E(){h.value="",he().then(()=>j(!1))}function T(m){return new RegExp([...m].sort((p,I)=>I.length-p.length).map(p=>`(${en(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(),Jt(Qt,{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",Xn,[_("form",{class:"search-bar",onPointerup:p[4]||(p[4]=k=>ye(k)),onSubmit:p[5]||(p[5]=Ut(()=>{},["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,es),_("div",ts,[_("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,ns)]),qt(_("input",{ref_key:"searchInput",ref:W,"onUpdate:modelValue":p[2]||(p[2]=k=>Ht(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,ss),[[Gt,L(h)]]),_("div",is,[y.value?Se("",!0):(H(),Z("button",{key:0,class:nt(["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,rs)),_("button",{class:"clear-button",type:"reset",disabled:$.value,title:L(d)("modal.resetButtonTitle"),onClick:E},p[10]||(p[10]=[_("span",{class:"vpi-delete local-search-icon"},null,-1)]),8,as)])],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),Z(it,null,st(w.value,(k,K)=>(H(),Z("li",{key:k.id,id:"localsearch-item-"+K,"aria-selected":M.value===K?"true":"false",role:"option"},[_("a",{href:k.id,class:nt(["result",{selected:M.value===K}]),"aria-label":[...k.titles,k.title].join(" > "),onMouseenter:ee=>!U.value&&(M.value=K),onFocusin:ee=>M.value=K,onClick:p[6]||(p[6]=ee=>m.$emit("close")),"data-index":K},[_("div",null,[_("div",us,[p[12]||(p[12]=_("span",{class:"title-icon"},"#",-1)),(H(!0),Z(it,null,st(k.titles,(ee,we)=>(H(),Z("span",{key:we,class:"title"},[_("span",{class:"text",innerHTML:ee},null,8,ds),p[11]||(p[11]=_("span",{class:"vpi-chevron-right local-search-icon"},null,-1))]))),128)),_("span",fs,[_("span",{class:"text",innerHTML:k.title},null,8,hs)])]),L(b)?(H(),Z("div",ps,[k.text?(H(),Z("div",ms,[_("div",{class:"vp-doc",innerHTML:k.text},null,8,vs)])):Se("",!0),p[13]||(p[13]=_("div",{class:"excerpt-gradient-bottom"},null,-1)),p[14]||(p[14]=_("div",{class:"excerpt-gradient-top"},null,-1))])):Se("",!0)])],42,cs)],8,ls))),128)),L(h)&&!w.value.length&&R.value?(H(),Z("li",gs,[pe(me(L(d)("modal.noResultsText"))+' "',1),_("strong",null,me(L(h)),1),p[15]||(p[15]=pe('" '))])):Se("",!0)],40,os),_("div",bs,[_("span",null,[_("kbd",{"aria-label":L(d)("modal.footer.navigateUpKeyAriaLabel")},p[16]||(p[16]=[_("span",{class:"vpi-arrow-up navigate-icon"},null,-1)]),8,ys),_("kbd",{"aria-label":L(d)("modal.footer.navigateDownKeyAriaLabel")},p[17]||(p[17]=[_("span",{class:"vpi-arrow-down navigate-icon"},null,-1)]),8,ws),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,xs),pe(" "+me(L(d)("modal.footer.selectText")),1)]),_("span",null,[_("kbd",{"aria-label":L(d)("modal.footer.closeKeyAriaLabel")},"esc",8,_s),pe(" "+me(L(d)("modal.footer.closeText")),1)])])])],8,Zn)])}}}),Fs=tn(Ss,[["__scopeId","data-v-a9a1c862"]]);export{Fs as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as h,c as d,r as p,n as S,a as x,t as V,o as r,b as g,w as v,T as Me,e as m,_ as b,u as mt,i as _t,f as gt,g as Ce,h as k,j as u,k as i,l as ee,m as je,p as U,q as kt,s as He,v as bt,x as N,y as me,z,A as Ae,B as F,C as Ke,D as ue,E as _e,F as Ue,G as M,H as E,I as q,J as _,K as G,L as Je,M as K,N as ge,O as Ze,P as ve,Q as we,R as ke,S as Qe,U as yt,V as $t,W as ce,X as xe,Y as et,Z as wt,$ as Pt,a0 as Lt,a1 as Pe,a2 as Vt,a3 as j,a4 as St,a5 as Tt,a6 as tt,a7 as It,a8 as ne,a9 as Nt,aa as Mt,ab as Ct,ac as Ht}from"./framework.CBQNBEo4.js";const At=h({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(n){return(e,t)=>(r(),d("span",{class:S(["VPBadge",e.type])},[p(e.$slots,"default",{},()=>[x(V(e.text),1)])],2))}}),Bt={key:0,class:"VPBackdrop"},Et=h({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(n){return(e,t)=>(r(),g(Me,{name:"fade"},{default:v(()=>[e.show?(r(),d("div",Bt)):m("",!0)]),_:1}))}}),Dt=b(Et,[["__scopeId","data-v-0d0d1ed7"]]),P=mt;function Ft(n,e){let t,o=!1;return()=>{t&&clearTimeout(t),o?t=setTimeout(n,e):(n(),(o=!0)&&setTimeout(()=>o=!1,e))}}function Le(n){return n.startsWith("/")?n:`/${n}`}function Be(n){const{pathname:e,search:t,hash:o,protocol:s}=new URL(n,"http://a.com");if(_t(n)||n.startsWith("#")||!s.startsWith("http")||!gt(e))return n;const{site:a}=P(),c=e.endsWith("/")||e.endsWith(".html")?n:n.replace(/(?:(^\.+)\/)?.*$/,`$1${e.replace(/(\.md)?$/,a.value.cleanUrls?"":".html")}${t}${o}`);return Ce(c)}function de({correspondingLink:n=!1}={}){const{site:e,localeIndex:t,page:o,theme:s,hash:a}=P(),c=k(()=>{var f,y;return{label:(f=e.value.locales[t.value])==null?void 0:f.label,link:((y=e.value.locales[t.value])==null?void 0:y.link)||(t.value==="root"?"/":`/${t.value}/`)}});return{localeLinks:k(()=>Object.entries(e.value.locales).flatMap(([f,y])=>c.value.label===y.label?[]:{text:y.label,link:Ot(y.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 Ot(n,e,t,o){return e?n.replace(/\/$/,"")+Le(t.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,o?".html":"")):n}const Rt={class:"NotFound"},jt={class:"code"},Ut={class:"title"},Gt={class:"quote"},Wt={class:"action"},zt=["href","aria-label"],qt=h({__name:"NotFound",setup(n){const{theme:e}=P(),{currentLang:t}=de();return(o,s)=>{var a,c,l,f,y,w;return r(),d("div",Rt,[u("p",jt,V(((a=i(e).notFound)==null?void 0:a.code)??"404"),1),u("h1",Ut,V(((c=i(e).notFound)==null?void 0:c.title)??"PAGE NOT FOUND"),1),s[0]||(s[0]=u("div",{class:"divider"},null,-1)),u("blockquote",Gt,V(((l=i(e).notFound)==null?void 0:l.quote)??"But if you don't change your direction, and if you keep looking, you may end up where you are heading."),1),u("div",Wt,[u("a",{class:"link",href:i(Ce)(((f=i(e).notFound)==null?void 0:f.link)??i(t).link),"aria-label":((y=i(e).notFound)==null?void 0:y.linkLabel)??"go to home"},V(((w=i(e).notFound)==null?void 0:w.linkText)??"Take me home"),9,zt)])])}}}),Xt=b(qt,[["__scopeId","data-v-5c84cdfe"]]);function nt(n,e){if(Array.isArray(n))return pe(n);if(n==null)return[];e=Le(e);const t=Object.keys(n).sort((s,a)=>a.split("/").length-s.split("/").length).find(s=>e.startsWith(Le(s))),o=t?n[t]:[];return Array.isArray(o)?pe(o):pe(o.items,o.base)}function Yt(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 Kt(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 Ve(n,e){return Array.isArray(e)?e.some(t=>Ve(n,t)):ee(n,e.link)?!0:e.items?Ve(n,e.items):!1}function pe(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=pe(o.items,s)),o})}function Jt(){const{hasSidebar:n}=X(),e=je("(min-width: 960px)"),t=je("(min-width: 1280px)");return{isAsideEnabled:k(()=>!t.value&&!e.value?!1:n.value?t.value:e.value)}}const Zt=/\b(?:VPBadge|header-anchor|footnote-ref|ignore-header)\b/,Se=[];function ot(n){return typeof n.outline=="object"&&!Array.isArray(n.outline)&&n.outline.label||n.outlineTitle||"On this page"}function Qt(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:xt(t),link:"#"+t.id,level:o}});return en(e,n)}function xt(n){let e="";for(const t of n.childNodes)if(t.nodeType===1){if(Zt.test(t.className))continue;e+=t.textContent}else t.nodeType===3&&(e+=t.textContent);return e.trim()}function en(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 on(n,o,s)}function tn(n,e){const{isAsideEnabled:t}=Jt(),o=Ft(a,100);let s=null;U(()=>{requestAnimationFrame(a),window.addEventListener("scroll",o)}),kt(()=>{c(location.hash)}),He(()=>{window.removeEventListener("scroll",o)});function a(){if(!t.value)return;const l=window.scrollY,f=window.innerHeight,y=document.body.offsetHeight,w=Math.abs(l+f-y)<1,$=Se.map(({element:T,link:C})=>({link:C,top:nn(T)})).filter(({top:T})=>!Number.isNaN(T)).sort((T,C)=>T.top-C.top);if(!$.length){c(null);return}if(l<1){c(null);return}if(w){c($[$.length-1].link);return}let L=null;for(const{link:T,top:C}of $){if(C>l+bt()+4)break;L=T}c(L)}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 nn(n){let e=0;for(;n!==document.body;){if(n===null)return NaN;e+=n.offsetTop,n=n.offsetParent}return e}function on(n,e,t){Se.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||(Se.push({element:c.element,link:c.link}),l?l.children.push(c):o.push(c),s.push(c))}),o}const ae=N(!1);function sn(n){let e;me(()=>{e=ae.value?document.activeElement:void 0}),U(()=>{window.addEventListener("keyup",t)}),He(()=>{window.removeEventListener("keyup",t)});function t(o){o.key==="Escape"&&ae.value&&(n(),e==null||e.focus())}}function an(){function n(){ae.value=!0}function e(){ae.value=!1}function t(){ae.value?e():n()}return{isOpen:ae,open:n,close:e,toggle:t}}function rn(n){const{page:e,hash:t}=P(),o=N(!1),s=k(()=>n.value.collapsed!=null),a=k(()=>!!n.value.link),c=N(!1),l=()=>{c.value=ee(e.value.relativePath,n.value.link)};z([e,n,t],l),U(l);const f=k(()=>c.value?!0:n.value.items?Ve(e.value.relativePath,n.value.items):!1),y=k(()=>!!(n.value.items&&n.value.items.length));me(()=>{o.value=!!(s.value&&n.value.collapsed)}),Ae(()=>{(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:y,toggle:w}}const Te=F([]),le=F([]),Ie=F(!1);function X(){const{frontmatter:n,theme:e}=P(),t=k(()=>!!(n.value.isHome??n.value.layout==="home")),o=k(()=>n.value.sidebar!==!1&&le.value.length>0&&!t.value),s=k(()=>o.value&&Ie.value),a=k(()=>o.value?Yt(le.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(()=>Te.value.length>0);return{isHome:t,sidebar:Ue(le),sidebarGroups:a,hasSidebar:o,isSidebarEnabled:s,hasAside:c,leftAside:l,headers:Ue(Te),hasLocalNav:f}}function ln({closeSidebar:n}){const{frontmatter:e,page:t,theme:o}=P();z(()=>[t.value.relativePath,o.value.sidebar],([a,c])=>{const l=c?nt(c,a):[];JSON.stringify(l)!==JSON.stringify(le.value)&&(le.value=l)},{immediate:!0,deep:!0,flush:"sync"}),Ke(()=>{Te.value=Qt(e.value.outline??o.value.outline)}),ue&&(Ie.value=window.innerWidth>=960,window.addEventListener("resize",()=>{Ie.value=window.innerWidth>=960},{passive:!0}));const s=_e();z(()=>s.path,n),sn(n)}const cn=["href","title"],un=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=q("VPDocOutlineItem",!0);return r(),d("ul",{class:S(["VPDocOutlineItem",t.root?"root":"nested"])},[(r(!0),d(M,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},V(l),9,cn),a!=null&&a.length?(r(),g(s,{key:0,headers:a},null,8,["headers"])):m("",!0)]))),256))],2)}}}),st=b(un,[["__scopeId","data-v-965164d9"]]),dn={class:"content"},pn={"aria-level":"2",class:"outline-title",id:"doc-outline-aria-label",role:"heading"},vn=h({__name:"VPDocAsideOutline",setup(n){const{theme:e}=P(),t=N(),o=N(),{headers:s,hasLocalNav:a}=X();return tn(t,o),(c,l)=>(r(),d("nav",{"aria-labelledby":"doc-outline-aria-label",class:S(["VPDocAsideOutline",{"has-outline":i(a)}]),ref_key:"container",ref:t},[u("div",dn,[u("div",{class:"outline-marker",ref_key:"marker",ref:o},null,512),u("div",pn,V(i(ot)(i(e))),1),_(st,{headers:i(s),root:!0},null,8,["headers"])])],2))}}),hn=b(vn,[["__scopeId","data-v-4bbd428d"]]),fn={class:"VPDocAsideCarbonAds"},mn=h({__name:"VPDocAsideCarbonAds",props:{carbonAds:{}},setup(n){const e=()=>null;return(t,o)=>(r(),d("div",fn,[_(i(e),{"carbon-ads":t.carbonAds},null,8,["carbon-ads"])]))}}),_n={class:"VPDocAside"},gn=h({__name:"VPDocAside",setup(n){const{theme:e}=P();return(t,o)=>(r(),d("div",_n,[p(t.$slots,"aside-top",{},void 0,!0),p(t.$slots,"aside-outline-before",{},void 0,!0),_(hn),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(mn,{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)]))}}),kn=b(gn,[["__scopeId","data-v-da5241de"]]);function bn(){const{theme:n,page:e}=P();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 yn(){const{page:n,theme:e,frontmatter:t}=P();return k(()=>{var y,w,$,L,T,C,D,I;const o=nt(e.value.sidebar,n.value.relativePath),s=Kt(o),a=$n(s,B=>B.link.replace(/[?#].*$/,"")),c=a.findIndex(B=>ee(n.value.relativePath,B.link)),l=((y=e.value.docFooter)==null?void 0:y.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:(typeof t.value.prev=="string"?t.value.prev:typeof t.value.prev=="object"?t.value.prev.text:void 0)??(($=a[c-1])==null?void 0:$.docFooterText)??((L=a[c-1])==null?void 0:L.text),link:(typeof t.value.prev=="object"?t.value.prev.link:void 0)??((T=a[c-1])==null?void 0:T.link)},next:f?void 0:{text:(typeof t.value.next=="string"?t.value.next:typeof t.value.next=="object"?t.value.next.text:void 0)??((C=a[c+1])==null?void 0:C.docFooterText)??((D=a[c+1])==null?void 0:D.text),link:(typeof t.value.next=="object"?t.value.next.link:void 0)??((I=a[c+1])==null?void 0:I.link)}}})}function $n(n,e){const t=new Set;return n.filter(o=>{const s=e(o);return t.has(s)?!1:t.add(s)})}const W=h({__name:"VPLink",props:{tag:{},href:{},noIcon:{type:Boolean},target:{},rel:{}},setup(n){const e=n,t=k(()=>e.tag??(e.href?"a":"span")),o=k(()=>e.href&&Je.test(e.href)||e.target==="_blank");return(s,a)=>(r(),g(G(t.value),{class:S(["VPLink",{link:s.href,"vp-external-link-icon":o.value,"no-icon":s.noIcon}]),href:s.href?i(Be)(s.href):void 0,target:s.target??(o.value?"_blank":void 0),rel:s.rel??(o.value?"noreferrer":void 0)},{default:v(()=>[p(s.$slots,"default")]),_:3},8,["class","href","target","rel"]))}}),wn={class:"VPLastUpdated"},Pn=["datetime"],Ln=h({__name:"VPDocFooterLastUpdated",setup(n){const{theme:e,page:t,lang:o}=P(),s=k(()=>new Date(t.value.lastUpdated)),a=k(()=>s.value.toISOString()),c=N("");return U(()=>{me(()=>{var l,f,y;c.value=new Intl.DateTimeFormat((f=(l=e.value.lastUpdated)==null?void 0:l.formatOptions)!=null&&f.forceLocale?o.value:void 0,((y=e.value.lastUpdated)==null?void 0:y.formatOptions)??{dateStyle:"short",timeStyle:"short"}).format(s.value)})}),(l,f)=>{var y;return r(),d("p",wn,[x(V(((y=i(e).lastUpdated)==null?void 0:y.text)||i(e).lastUpdatedText||"Last updated")+": ",1),u("time",{datetime:a.value},V(c.value),9,Pn)])}}}),Vn=b(Ln,[["__scopeId","data-v-a33a5d63"]]),Sn={key:0,class:"VPDocFooter"},Tn={key:0,class:"edit-info"},In={key:0,class:"edit-link"},Nn={key:1,class:"last-updated"},Mn={key:1,class:"prev-next","aria-labelledby":"doc-footer-aria-label"},Cn={class:"pager"},Hn=["innerHTML"],An=["innerHTML"],Bn={class:"pager"},En=["innerHTML"],Dn=["innerHTML"],Fn=h({__name:"VPDocFooter",setup(n){const{theme:e,page:t,frontmatter:o}=P(),s=bn(),a=yn(),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(y,w)=>{var $,L,T,C;return f.value?(r(),d("footer",Sn,[p(y.$slots,"doc-footer-before",{},void 0,!0),c.value||l.value?(r(),d("div",Tn,[c.value?(r(),d("div",In,[_(W,{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)),x(" "+V(i(s).text),1)]),_:1},8,["href"])])):m("",!0),l.value?(r(),d("div",Nn,[_(Vn)])):m("",!0)])):m("",!0),($=i(a).prev)!=null&&$.link||(L=i(a).next)!=null&&L.link?(r(),d("nav",Mn,[w[1]||(w[1]=u("span",{class:"visually-hidden",id:"doc-footer-aria-label"},"Pager",-1)),u("div",Cn,[(T=i(a).prev)!=null&&T.link?(r(),g(W,{key:0,class:"pager-link prev",href:i(a).prev.link},{default:v(()=>{var D;return[u("span",{class:"desc",innerHTML:((D=i(e).docFooter)==null?void 0:D.prev)||"Previous page"},null,8,Hn),u("span",{class:"title",innerHTML:i(a).prev.text},null,8,An)]}),_:1},8,["href"])):m("",!0)]),u("div",Bn,[(C=i(a).next)!=null&&C.link?(r(),g(W,{key:0,class:"pager-link next",href:i(a).next.link},{default:v(()=>{var D;return[u("span",{class:"desc",innerHTML:((D=i(e).docFooter)==null?void 0:D.next)||"Next page"},null,8,En),u("span",{class:"title",innerHTML:i(a).next.text},null,8,Dn)]}),_:1},8,["href"])):m("",!0)])])):m("",!0)])):m("",!0)}}}),On=b(Fn,[["__scopeId","data-v-66086e2d"]]),Rn={class:"container"},jn={class:"aside-container"},Un={class:"aside-content"},Gn={class:"content"},Wn={class:"content-container"},zn={class:"main"},qn=h({__name:"VPDoc",setup(n){const{theme:e}=P(),t=_e(),{hasSidebar:o,hasAside:s,leftAside:a}=X(),c=k(()=>t.path.replace(/[./]+/g,"_").replace(/_html$/,""));return(l,f)=>{const y=q("Content");return r(),d("div",{class:S(["VPDoc",{"has-sidebar":i(o),"has-aside":i(s)}])},[p(l.$slots,"doc-top",{},void 0,!0),u("div",Rn,[i(s)?(r(),d("div",{key:0,class:S(["aside",{"left-aside":i(a)}])},[f[0]||(f[0]=u("div",{class:"aside-curtain"},null,-1)),u("div",jn,[u("div",Un,[_(kn,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",Gn,[u("div",Wn,[p(l.$slots,"doc-before",{},void 0,!0),u("main",zn,[_(y,{class:S(["vp-doc",[c.value,i(e).externalLinkIcon&&"external-link-icon-enabled"]])},null,8,["class"])]),_(On,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)}}}),Xn=b(qn,[["__scopeId","data-v-886f3717"]]),Yn=h({__name:"VPButton",props:{tag:{},size:{default:"medium"},theme:{default:"brand"},text:{},href:{},target:{},rel:{}},setup(n){const e=n,t=k(()=>e.href&&Je.test(e.href)),o=k(()=>e.tag||(e.href?"a":"button"));return(s,a)=>(r(),g(G(o.value),{class:S(["VPButton",[s.size,s.theme]]),href:s.href?i(Be)(s.href):void 0,target:e.target??(t.value?"_blank":void 0),rel:e.rel??(t.value?"noreferrer":void 0)},{default:v(()=>[p(s.$slots,"default",{},()=>[x(V(s.text),1)],!0)]),_:3},8,["class","href","target","rel"]))}}),Kn=b(Yn,[["__scopeId","data-v-3d19af64"]]),Jn=["src","alt"],Zn=h({inheritAttrs:!1,__name:"VPImage",props:{image:{},alt:{}},setup(n){return(e,t)=>{const o=q("VPImage",!0);return e.image?(r(),d(M,{key:0},[typeof e.image=="string"||"src"in e.image?(r(),d("img",K({key:0,class:"VPImage"},typeof e.image=="string"?e.$attrs:{...e.image,...e.$attrs},{src:i(Ce)(typeof e.image=="string"?e.image:e.image.src),alt:e.alt??(typeof e.image=="string"?"":e.image.alt||"")}),null,16,Jn)):(r(),d(M,{key:1},[_(o,K({class:"dark",image:e.image.dark,alt:e.image.alt},e.$attrs),null,16,["image","alt"]),_(o,K({class:"light",image:e.image.light,alt:e.image.alt},e.$attrs),null,16,["image","alt"])],64))],64)):m("",!0)}}}),he=b(Zn,[["__scopeId","data-v-e386fc67"]]),Qn={class:"container"},xn={class:"main"},eo={class:"heading"},to=["innerHTML"],no=["innerHTML"],oo=["innerHTML"],so={key:0,class:"actions"},ao={key:0,class:"image"},ro={class:"image-container"},io=h({__name:"VPHero",props:{name:{},text:{},tagline:{},image:{},actions:{}},setup(n){const e=ge("hero-image-slot-exists");return(t,o)=>(r(),d("div",{class:S(["VPHero",{"has-image":t.image||i(e)}])},[u("div",Qn,[u("div",xn,[p(t.$slots,"home-hero-info-before",{},void 0,!0),p(t.$slots,"home-hero-info",{},()=>[u("h1",eo,[t.name?(r(),d("span",{key:0,innerHTML:t.name,class:"name clip"},null,8,to)):m("",!0),t.text?(r(),d("span",{key:1,innerHTML:t.text,class:"text"},null,8,no)):m("",!0)]),t.tagline?(r(),d("p",{key:0,innerHTML:t.tagline,class:"tagline"},null,8,oo)):m("",!0)],!0),p(t.$slots,"home-hero-info-after",{},void 0,!0),t.actions?(r(),d("div",so,[(r(!0),d(M,null,E(t.actions,s=>(r(),d("div",{key:s.link,class:"action"},[_(Kn,{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",ao,[u("div",ro,[o[0]||(o[0]=u("div",{class:"image-bg"},null,-1)),p(t.$slots,"home-hero-image",{},()=>[t.image?(r(),g(he,{key:0,class:"image-src",image:t.image},null,8,["image"])):m("",!0)],!0)])])):m("",!0)])],2))}}),lo=b(io,[["__scopeId","data-v-030b2eaf"]]),co=h({__name:"VPHomeHero",setup(n){const{frontmatter:e}=P();return(t,o)=>i(e).hero?(r(),g(lo,{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)}}),uo={class:"box"},po={key:0,class:"icon"},vo=["innerHTML"],ho=["innerHTML"],fo=["innerHTML"],mo={key:4,class:"link-text"},_o={class:"link-text-value"},go=h({__name:"VPFeature",props:{icon:{},title:{},details:{},link:{},linkText:{},rel:{},target:{}},setup(n){return(e,t)=>(r(),g(W,{class:"VPFeature",href:e.link,rel:e.rel,target:e.target,"no-icon":!0,tag:e.link?"a":"div"},{default:v(()=>[u("article",uo,[typeof e.icon=="object"&&e.icon.wrap?(r(),d("div",po,[_(he,{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(he,{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,vo)):m("",!0),u("h2",{class:"title",innerHTML:e.title},null,8,ho),e.details?(r(),d("p",{key:3,class:"details",innerHTML:e.details},null,8,fo)):m("",!0),e.linkText?(r(),d("div",mo,[u("p",_o,[x(V(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"]))}}),ko=b(go,[["__scopeId","data-v-05e53091"]]),bo={key:0,class:"VPFeatures"},yo={class:"container"},$o={class:"items"},wo=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",bo,[u("div",yo,[u("div",$o,[(r(!0),d(M,null,E(o.features,a=>(r(),d("div",{key:a.title,class:S(["item",[t.value]])},[_(ko,{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)}}),Po=b(wo,[["__scopeId","data-v-53733b3c"]]),Lo=h({__name:"VPHomeFeatures",setup(n){const{frontmatter:e}=P();return(t,o)=>i(e).features?(r(),g(Po,{key:0,class:"VPHomeFeatures",features:i(e).features},null,8,["features"])):m("",!0)}}),Vo=h({__name:"VPHomeContent",setup(n){const{width:e}=Ze({initialWidth:0,includeScrollbar:!1});return(t,o)=>(r(),d("div",{class:"vp-doc container",style:ve(i(e)?{"--vp-offset":`calc(50% - ${i(e)/2}px)`}:{})},[p(t.$slots,"default",{},void 0,!0)],4))}}),So=b(Vo,[["__scopeId","data-v-781f5585"]]),To=h({__name:"VPHome",setup(n){const{frontmatter:e,theme:t}=P();return(o,s)=>{const a=q("Content");return r(),d("div",{class:S(["VPHome",{"external-link-icon-enabled":i(t).externalLinkIcon}])},[p(o.$slots,"home-hero-before",{},void 0,!0),_(co,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),_(Lo),p(o.$slots,"home-features-after",{},void 0,!0),i(e).markdownStyles!==!1?(r(),g(So,{key:0},{default:v(()=>[_(a)]),_:1})):(r(),g(a,{key:1}))],2)}}}),Io=b(To,[["__scopeId","data-v-88242e29"]]),No={},Mo={class:"VPPage"};function Co(n,e){const t=q("Content");return r(),d("div",Mo,[p(n.$slots,"page-top"),_(t),p(n.$slots,"page-bottom")])}const Ho=b(No,[["render",Co]]),Ao=h({__name:"VPContent",setup(n){const{page:e,frontmatter:t}=P(),{isHome:o,hasSidebar:s}=X();return(a,c)=>(r(),d("div",{class:S(["VPContent",{"has-sidebar":i(s),"is-home":i(o)}]),id:"VPContent"},[i(e).isNotFound?p(a.$slots,"not-found",{key:0},()=>[_(Xt)],!0):i(t).layout==="page"?(r(),g(Ho,{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(Io,{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(G(i(t).layout),{key:3})):(r(),g(Xn,{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))}}),Bo=b(Ao,[["__scopeId","data-v-9bd714bd"]]),Eo={class:"container"},Do=["innerHTML"],Fo=["innerHTML"],Oo=h({__name:"VPFooter",setup(n){const{theme:e,frontmatter:t}=P(),{hasSidebar:o}=X();return(s,a)=>i(e).footer&&i(t).footer!==!1?(r(),d("footer",{key:0,class:S(["VPFooter",{"has-sidebar":i(o)}])},[u("div",Eo,[i(e).footer.message?(r(),d("p",{key:0,class:"message",innerHTML:i(e).footer.message},null,8,Do)):m("",!0),i(e).footer.copyright?(r(),d("p",{key:1,class:"copyright",innerHTML:i(e).footer.copyright},null,8,Fo)):m("",!0)])],2)):m("",!0)}}),Ro=b(Oo,[["__scopeId","data-v-ac1ee35a"]]),jo={class:"menu-text"},Uo={class:"header"},Go={class:"outline"},Wo=h({__name:"VPLocalNavOutlineDropdown",props:{headers:{},navHeight:{}},setup(n){const e=n,{theme:t}=P(),o=N(!1),s=N(0),a=N(),c=N();function l($){var L;(L=a.value)!=null&&L.contains($.target)||(o.value=!1)}z(o,$=>{if($){document.addEventListener("click",l);return}document.removeEventListener("click",l)}),we("Escape",()=>{o.value=!1}),Ke(()=>{o.value=!1});function f(){o.value=!o.value,s.value=window.innerHeight+Math.min(window.scrollY-e.navHeight,0)}function y($){$.target.classList.contains("outline-link")&&(c.value&&(c.value.style.transition="none"),ke(()=>{o.value=!1}))}function w(){o.value=!1,window.scrollTo({top:0,left:0,behavior:"smooth"})}return($,L)=>(r(),d("div",{class:"VPLocalNavOutlineDropdown",style:ve({"--vp-vh":s.value+"px"}),ref_key:"main",ref:a},[$.headers.length>0?(r(),d("button",{key:0,onClick:f,class:S({open:o.value})},[u("span",jo,V(i(ot)(i(t))),1),L[0]||(L[0]=u("span",{class:"vpi-chevron-right icon"},null,-1))],2)):(r(),d("button",{key:1,onClick:w},V(i(t).returnToTopLabel||"Return to top"),1)),_(Me,{name:"flyout"},{default:v(()=>[o.value?(r(),d("div",{key:0,ref_key:"items",ref:c,class:"items",onClick:y},[u("div",Uo,[u("a",{class:"top-link",href:"#",onClick:w},V(i(t).returnToTopLabel||"Return to top"),1)]),u("div",Go,[_(st,{headers:$.headers},null,8,["headers"])])],512)):m("",!0)]),_:1})],4))}}),zo=b(Wo,[["__scopeId","data-v-5431e89e"]]),qo={class:"container"},Xo=["aria-expanded"],Yo={class:"menu-text"},Ko=h({__name:"VPLocalNav",props:{open:{type:Boolean}},emits:["open-menu"],setup(n){const{theme:e}=P(),{isHome:t,hasSidebar:o,headers:s,hasLocalNav:a}=X(),{y:c}=Qe(),l=N(0);U(()=>{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(y,w)=>!i(t)&&(i(a)||i(o)||i(c)>=l.value)?(r(),d("div",{key:0,class:S(f.value)},[u("div",qo,[i(o)?(r(),d("button",{key:0,class:"menu","aria-expanded":y.open,"aria-controls":"VPSidebarNav",onClick:w[0]||(w[0]=$=>y.$emit("open-menu"))},[w[1]||(w[1]=u("span",{class:"vpi-align-left menu-icon"},null,-1)),u("span",Yo,V(i(e).sidebarMenuLabel||"Menu"),1)],8,Xo)):m("",!0),_(zo,{headers:i(s),navHeight:l.value},null,8,["headers","navHeight"])])],2)):m("",!0)}}),Jo=b(Ko,[["__scopeId","data-v-a49c1de8"]]);function Zo(){const n=N(!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=_e();return z(()=>a.path,t),{isScreenOpen:n,openScreen:e,closeScreen:t,toggleScreen:o}}const Qo={},xo={class:"VPSwitch",type:"button",role:"switch"},es={class:"check"},ts={key:0,class:"icon"};function ns(n,e){return r(),d("button",xo,[u("span",es,[n.$slots.default?(r(),d("span",ts,[p(n.$slots,"default",{},void 0,!0)])):m("",!0)])])}const os=b(Qo,[["render",ns],["__scopeId","data-v-9f1d78b8"]]),ss=h({__name:"VPSwitchAppearance",setup(n){const{isDark:e,theme:t}=P(),o=ge("toggle-appearance",()=>{e.value=!e.value}),s=N("");return Ae(()=>{s.value=e.value?t.value.lightModeSwitchTitle||"Switch to light theme":t.value.darkModeSwitchTitle||"Switch to dark theme"}),(a,c)=>(r(),g(os,{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"]))}}),Ee=b(ss,[["__scopeId","data-v-3bd246fe"]]),as={key:0,class:"VPNavBarAppearance"},rs=h({__name:"VPNavBarAppearance",setup(n){const{site:e}=P();return(t,o)=>i(e).appearance&&i(e).appearance!=="force-dark"&&i(e).appearance!=="force-auto"?(r(),d("div",as,[_(Ee)])):m("",!0)}}),is=b(rs,[["__scopeId","data-v-9830d7fa"]]),De=N();let at=!1,$e=0;function ls(n){const e=N(!1);if(ue){!at&&cs(),$e++;const t=z(De,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))});He(()=>{t(),$e--,$e||us()})}return yt(e)}function cs(){document.addEventListener("focusin",rt),at=!0,De.value=document.activeElement}function us(){document.removeEventListener("focusin",rt)}function rt(){De.value=document.activeElement}const ds={class:"VPMenuLink"},ps=["innerHTML"],vs=h({__name:"VPMenuLink",props:{item:{}},setup(n){const{page:e}=P();return(t,o)=>(r(),d("div",ds,[_(W,{class:S({active:i(ee)(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,ps)]),_:1},8,["class","href","target","rel","no-icon"])]))}}),be=b(vs,[["__scopeId","data-v-dc364ec5"]]),hs={class:"VPMenuGroup"},fs={key:0,class:"title"},ms=h({__name:"VPMenuGroup",props:{text:{},items:{}},setup(n){return(e,t)=>(r(),d("div",hs,[e.text?(r(),d("p",fs,V(e.text),1)):m("",!0),(r(!0),d(M,null,E(e.items,o=>(r(),d(M,null,["link"in o?(r(),g(be,{key:0,item:o},null,8,["item"])):m("",!0)],64))),256))]))}}),_s=b(ms,[["__scopeId","data-v-3af2bf45"]]),gs={class:"VPMenu"},ks={key:0,class:"items"},bs=h({__name:"VPMenu",props:{items:{}},setup(n){return(e,t)=>(r(),d("div",gs,[e.items?(r(),d("div",ks,[(r(!0),d(M,null,E(e.items,o=>(r(),d(M,{key:JSON.stringify(o)},["link"in o?(r(),g(be,{key:0,item:o},null,8,["item"])):"component"in o?(r(),g(G(o.component),K({key:1,ref_for:!0},o.props),null,16)):(r(),g(_s,{key:2,text:o.text,items:o.items},null,8,["text","items"]))],64))),128))])):m("",!0),p(e.$slots,"default",{},void 0,!0)]))}}),ys=b(bs,[["__scopeId","data-v-102e9867"]]),$s=["aria-expanded","aria-label"],ws={key:0,class:"text"},Ps=["innerHTML"],Ls={key:1,class:"vpi-more-horizontal icon"},Vs={class:"menu"},Ss=h({__name:"VPFlyout",props:{icon:{},button:{},label:{},items:{}},setup(n){const e=N(!1),t=N();ls({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",ws,[s.icon?(r(),d("span",{key:0,class:S([s.icon,"option-icon"])},null,2)):m("",!0),s.button?(r(),d("span",{key:1,innerHTML:s.button},null,8,Ps)):m("",!0),a[3]||(a[3]=u("span",{class:"vpi-chevron-down text-icon"},null,-1))])):(r(),d("span",Ls))],8,$s),u("div",Vs,[_(ys,{items:s.items},{default:v(()=>[p(s.$slots,"default",{},void 0,!0)]),_:3},8,["items"])])],544))}}),Fe=b(Ss,[["__scopeId","data-v-6b2ca944"]]),Ts=["href","aria-label","innerHTML"],Is=h({__name:"VPSocialLink",props:{icon:{},link:{},ariaLabel:{}},setup(n){const e=n,t=N();U(async()=>{var a;await ke();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)=>(r(),d("a",{ref_key:"el",ref:t,class:"VPSocialLink no-icon",href:s.link,"aria-label":s.ariaLabel??(typeof s.icon=="string"?s.icon:""),target:"_blank",rel:"noopener",innerHTML:o.value},null,8,Ts))}}),Ns=b(Is,[["__scopeId","data-v-783bcded"]]),Ms={class:"VPSocialLinks"},Cs=h({__name:"VPSocialLinks",props:{links:{}},setup(n){return(e,t)=>(r(),d("div",Ms,[(r(!0),d(M,null,E(e.links,({link:o,icon:s,ariaLabel:a})=>(r(),g(Ns,{key:o,icon:s,link:o,ariaLabel:a},null,8,["icon","link","ariaLabel"]))),128))]))}}),Oe=b(Cs,[["__scopeId","data-v-574d2611"]]),Hs={key:0,class:"group translations"},As={class:"trans-title"},Bs={key:1,class:"group"},Es={class:"item appearance"},Ds={class:"label"},Fs={class:"appearance-action"},Os={key:2,class:"group"},Rs={class:"item social-links"},js=h({__name:"VPNavBarExtra",setup(n){const{site:e,theme:t}=P(),{localeLinks:o,currentLang:s}=de({correspondingLink:!0}),a=k(()=>o.value.length&&s.value.label||e.value.appearance||t.value.socialLinks);return(c,l)=>a.value?(r(),g(Fe,{key:0,class:"VPNavBarExtra",label:"extra navigation"},{default:v(()=>[i(o).length&&i(s).label?(r(),d("div",Hs,[u("p",As,V(i(s).label),1),(r(!0),d(M,null,E(i(o),f=>(r(),g(be,{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",Bs,[u("div",Es,[u("p",Ds,V(i(t).darkModeSwitchLabel||"Appearance"),1),u("div",Fs,[_(Ee)])])])):m("",!0),i(t).socialLinks?(r(),d("div",Os,[u("div",Rs,[_(Oe,{class:"social-links-list",links:i(t).socialLinks},null,8,["links"])])])):m("",!0)]),_:1})):m("",!0)}}),Us=b(js,[["__scopeId","data-v-6a934b71"]]),Gs=["aria-expanded"],Ws=h({__name:"VPNavBarHamburger",props:{active:{type:Boolean}},emits:["click"],setup(n){return(e,t)=>(r(),d("button",{type:"button",class:S(["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,Gs))}}),zs=b(Ws,[["__scopeId","data-v-40970de0"]]),qs=["innerHTML"],Xs=h({__name:"VPNavBarMenuLink",props:{item:{}},setup(n){const{page:e}=P();return(t,o)=>(r(),g(W,{class:S({VPNavBarMenuLink:!0,active:i(ee)(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,qs)]),_:1},8,["class","href","target","rel","no-icon"]))}}),Ys=b(Xs,[["__scopeId","data-v-47ee035f"]]),Ks=h({__name:"VPNavBarMenuGroup",props:{item:{}},setup(n){const e=n,{page:t}=P(),o=a=>"component"in a?!1:"link"in a?ee(t.value.relativePath,a.link,!!e.item.activeMatch):a.items.some(o),s=k(()=>o(e.item));return(a,c)=>(r(),g(Fe,{class:S({VPNavBarMenuGroup:!0,active:i(ee)(i(t).relativePath,a.item.activeMatch,!!a.item.activeMatch)||s.value}),button:a.item.text,items:a.item.items},null,8,["class","button","items"]))}}),Js={key:0,"aria-labelledby":"main-nav-aria-label",class:"VPNavBarMenu"},Zs=h({__name:"VPNavBarMenu",setup(n){const{theme:e}=P();return(t,o)=>i(e).nav?(r(),d("nav",Js,[o[0]||(o[0]=u("span",{id:"main-nav-aria-label",class:"visually-hidden"}," Main Navigation ",-1)),(r(!0),d(M,null,E(i(e).nav,s=>(r(),d(M,{key:JSON.stringify(s)},["link"in s?(r(),g(Ys,{key:0,item:s},null,8,["item"])):"component"in s?(r(),g(G(s.component),K({key:1,ref_for:!0},s.props),null,16)):(r(),g(Ks,{key:2,item:s},null,8,["item"]))],64))),128))])):m("",!0)}}),Qs=b(Zs,[["__scopeId","data-v-eaafd435"]]);function xs(n){const{localeIndex:e,theme:t}=P();function o(s){var C,D,I;const a=s.split("."),c=(C=t.value.search)==null?void 0:C.options,l=c&&typeof c=="object",f=l&&((I=(D=c.locales)==null?void 0:D[e.value])==null?void 0:I.translations)||null,y=l&&c.translations||null;let w=f,$=y,L=n;const T=a.pop();for(const B of a){let O=null;const Y=L==null?void 0:L[B];Y&&(O=L=Y);const re=$==null?void 0:$[B];re&&(O=$=re);const J=w==null?void 0:w[B];J&&(O=w=J),Y||(L=O),re||($=O),J||(w=O)}return(w==null?void 0:w[T])??($==null?void 0:$[T])??(L==null?void 0:L[T])??""}return o}const ea=["aria-label"],ta={class:"DocSearch-Button-Container"},na={class:"DocSearch-Button-Placeholder"},Ge=h({__name:"VPNavBarSearchButton",setup(n){const t=xs({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",ta,[s[0]||(s[0]=u("span",{class:"vp-icon DocSearch-Search-Icon"},null,-1)),u("span",na,V(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,ea))}}),oa={class:"VPNavBarSearch"},sa={id:"local-search"},aa={key:1,id:"docsearch"},ra=h({__name:"VPNavBarSearch",setup(n){const e=$t(()=>ce(()=>import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1749928706535/files/.vitepress/dist"+u}return u})("./VPLocalSearchBox.CZsxd5R2.js")),[])),t=()=>null,{theme:o}=P(),s=N(!1),a=N(!1);U(()=>{});function c(){s.value||(s.value=!0,setTimeout(l,16))}function l(){const $=new Event("keydown");$.key="k",$.metaKey=!0,window.dispatchEvent($),setTimeout(()=>{document.querySelector(".DocSearch-Modal")||l()},16)}function f($){const L=$.target,T=L.tagName;return L.isContentEditable||T==="INPUT"||T==="SELECT"||T==="TEXTAREA"}const y=N(!1);we("k",$=>{($.ctrlKey||$.metaKey)&&($.preventDefault(),y.value=!0)}),we("/",$=>{f($)||($.preventDefault(),y.value=!0)});const w="local";return($,L)=>{var T;return r(),d("div",oa,[i(w)==="local"?(r(),d(M,{key:0},[y.value?(r(),g(i(e),{key:0,onClose:L[0]||(L[0]=C=>y.value=!1)})):m("",!0),u("div",sa,[_(Ge,{onClick:L[1]||(L[1]=C=>y.value=!0)})])],64)):i(w)==="algolia"?(r(),d(M,{key:1},[s.value?(r(),g(i(t),{key:0,algolia:((T=i(o).search)==null?void 0:T.options)??i(o).algolia,onVnodeBeforeMount:L[2]||(L[2]=C=>a.value=!0)},null,8,["algolia"])):m("",!0),a.value?m("",!0):(r(),d("div",aa,[_(Ge,{onClick:c})]))],64)):m("",!0)])}}}),ia=h({__name:"VPNavBarSocialLinks",setup(n){const{theme:e}=P();return(t,o)=>i(e).socialLinks?(r(),g(Oe,{key:0,class:"VPNavBarSocialLinks",links:i(e).socialLinks},null,8,["links"])):m("",!0)}}),la=b(ia,[["__scopeId","data-v-51ab2939"]]),ca=["href","rel","target"],ua=["innerHTML"],da={key:2},pa=h({__name:"VPNavBarTitle",setup(n){const{site:e,theme:t}=P(),{hasSidebar:o}=X(),{currentLang:s}=de(),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,y)=>(r(),d("div",{class:S(["VPNavBarTitle",{"has-sidebar":i(o)}])},[u("a",{class:"title",href:a.value??i(Be)(i(s).link),rel:c.value,target:l.value},[p(f.$slots,"nav-bar-title-before",{},void 0,!0),i(t).logo?(r(),g(he,{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,ua)):i(t).siteTitle===void 0?(r(),d("span",da,V(i(e).title),1)):m("",!0),p(f.$slots,"nav-bar-title-after",{},void 0,!0)],8,ca)],2))}}),va=b(pa,[["__scopeId","data-v-4ab7de8a"]]),ha={class:"items"},fa={class:"title"},ma=h({__name:"VPNavBarTranslations",setup(n){const{theme:e}=P(),{localeLinks:t,currentLang:o}=de({correspondingLink:!0});return(s,a)=>i(t).length&&i(o).label?(r(),g(Fe,{key:0,class:"VPNavBarTranslations",icon:"vpi-languages",label:i(e).langMenuLabel||"Change language"},{default:v(()=>[u("div",ha,[u("p",fa,V(i(o).label),1),(r(!0),d(M,null,E(i(t),c=>(r(),g(be,{key:c.link,item:c},null,8,["item"]))),128))])]),_:1},8,["label"])):m("",!0)}}),_a=b(ma,[["__scopeId","data-v-c9a24d70"]]),ga={class:"wrapper"},ka={class:"container"},ba={class:"title"},ya={class:"content"},$a={class:"content-body"},wa=h({__name:"VPNavBar",props:{isScreenOpen:{type:Boolean}},emits:["toggle-screen"],setup(n){const e=n,{y:t}=Qe(),{isHome:o,hasSidebar:s}=X(),a=N({});return Ae(()=>{a.value={"has-sidebar":s.value,home:o.value,top:t.value===0,"screen-open":e.isScreenOpen}}),(c,l)=>(r(),d("div",{class:S(["VPNavBar",a.value])},[u("div",ga,[u("div",ka,[u("div",ba,[_(va,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",ya,[u("div",$a,[p(c.$slots,"nav-bar-content-before",{},void 0,!0),_(ra,{class:"search"}),_(Qs,{class:"menu"}),_(_a,{class:"translations"}),_(is,{class:"appearance"}),_(la,{class:"social-links"}),_(Us,{class:"extra"}),p(c.$slots,"nav-bar-content-after",{},void 0,!0),_(zs,{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))}}),Pa=b(wa,[["__scopeId","data-v-ce4a77df"]]),La={key:0,class:"VPNavScreenAppearance"},Va={class:"text"},Sa=h({__name:"VPNavScreenAppearance",setup(n){const{site:e,theme:t}=P();return(o,s)=>i(e).appearance&&i(e).appearance!=="force-dark"&&i(e).appearance!=="force-auto"?(r(),d("div",La,[u("p",Va,V(i(t).darkModeSwitchLabel||"Appearance"),1),_(Ee)])):m("",!0)}}),Ta=b(Sa,[["__scopeId","data-v-b81c95b2"]]),Ia=["innerHTML"],Na=h({__name:"VPNavScreenMenuLink",props:{item:{}},setup(n){const e=ge("close-screen");return(t,o)=>(r(),g(W,{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,Ia)]),_:1},8,["href","target","rel","no-icon","onClick"]))}}),Ma=b(Na,[["__scopeId","data-v-fa1b46dd"]]),Ca=["innerHTML"],Ha=h({__name:"VPNavScreenMenuGroupLink",props:{item:{}},setup(n){const e=ge("close-screen");return(t,o)=>(r(),g(W,{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,Ca)]),_:1},8,["href","target","rel","no-icon","onClick"]))}}),it=b(Ha,[["__scopeId","data-v-71e9590b"]]),Aa={class:"VPNavScreenMenuGroupSection"},Ba={key:0,class:"title"},Ea=h({__name:"VPNavScreenMenuGroupSection",props:{text:{},items:{}},setup(n){return(e,t)=>(r(),d("div",Aa,[e.text?(r(),d("p",Ba,V(e.text),1)):m("",!0),(r(!0),d(M,null,E(e.items,o=>(r(),g(it,{key:o.text,item:o},null,8,["item"]))),128))]))}}),Da=b(Ea,[["__scopeId","data-v-6d08ed38"]]),Fa=["aria-controls","aria-expanded"],Oa=["innerHTML"],Ra=["id"],ja={key:0,class:"item"},Ua={key:1,class:"item"},Ga={key:2,class:"group"},Wa=h({__name:"VPNavScreenMenuGroup",props:{text:{},items:{}},setup(n){const e=n,t=N(!1),o=k(()=>`NavScreenGroup-${e.text.replace(" ","-").toLowerCase()}`);function s(){t.value=!t.value}return(a,c)=>(r(),d("div",{class:S(["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,Oa),c[0]||(c[0]=u("span",{class:"vpi-plus button-icon"},null,-1))],8,Fa),u("div",{id:o.value,class:"items"},[(r(!0),d(M,null,E(a.items,l=>(r(),d(M,{key:JSON.stringify(l)},["link"in l?(r(),d("div",ja,[_(it,{item:l},null,8,["item"])])):"component"in l?(r(),d("div",Ua,[(r(),g(G(l.component),K({ref_for:!0},l.props,{"screen-menu":""}),null,16))])):(r(),d("div",Ga,[_(Da,{text:l.text,items:l.items},null,8,["text","items"])]))],64))),128))],8,Ra)],2))}}),za=b(Wa,[["__scopeId","data-v-1ce92e48"]]),qa={key:0,class:"VPNavScreenMenu"},Xa=h({__name:"VPNavScreenMenu",setup(n){const{theme:e}=P();return(t,o)=>i(e).nav?(r(),d("nav",qa,[(r(!0),d(M,null,E(i(e).nav,s=>(r(),d(M,{key:JSON.stringify(s)},["link"in s?(r(),g(Ma,{key:0,item:s},null,8,["item"])):"component"in s?(r(),g(G(s.component),K({key:1,ref_for:!0},s.props,{"screen-menu":""}),null,16)):(r(),g(za,{key:2,text:s.text||"",items:s.items},null,8,["text","items"]))],64))),128))])):m("",!0)}}),Ya=h({__name:"VPNavScreenSocialLinks",setup(n){const{theme:e}=P();return(t,o)=>i(e).socialLinks?(r(),g(Oe,{key:0,class:"VPNavScreenSocialLinks",links:i(e).socialLinks},null,8,["links"])):m("",!0)}}),Ka={class:"list"},Ja=h({__name:"VPNavScreenTranslations",setup(n){const{localeLinks:e,currentLang:t}=de({correspondingLink:!0}),o=N(!1);function s(){o.value=!o.value}return(a,c)=>i(e).length&&i(t).label?(r(),d("div",{key:0,class:S(["VPNavScreenTranslations",{open:o.value}])},[u("button",{class:"title",onClick:s},[c[0]||(c[0]=u("span",{class:"vpi-languages icon lang"},null,-1)),x(" "+V(i(t).label)+" ",1),c[1]||(c[1]=u("span",{class:"vpi-chevron-down icon chevron"},null,-1))]),u("ul",Ka,[(r(!0),d(M,null,E(i(e),l=>(r(),d("li",{key:l.link,class:"item"},[_(W,{class:"link",href:l.link},{default:v(()=>[x(V(l.text),1)]),_:2},1032,["href"])]))),128))])],2)):m("",!0)}}),Za=b(Ja,[["__scopeId","data-v-bd1bdfa5"]]),Qa={class:"container"},xa=h({__name:"VPNavScreen",props:{open:{type:Boolean}},setup(n){const e=N(null),t=xe(ue?document.body:null);return(o,s)=>(r(),g(Me,{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",Qa,[p(o.$slots,"nav-screen-content-before",{},void 0,!0),_(Xa,{class:"menu"}),_(Za,{class:"translations"}),_(Ta,{class:"appearance"}),_(Ya,{class:"social-links"}),p(o.$slots,"nav-screen-content-after",{},void 0,!0)])],512)):m("",!0)]),_:3}))}}),er=b(xa,[["__scopeId","data-v-c2230406"]]),tr={key:0,class:"VPNav"},nr=h({__name:"VPNav",setup(n){const{isScreenOpen:e,closeScreen:t,toggleScreen:o}=Zo(),{frontmatter:s}=P(),a=k(()=>s.value.navbar!==!1);return et("close-screen",t),me(()=>{ue&&document.documentElement.classList.toggle("hide-nav",!a.value)}),(c,l)=>a.value?(r(),d("header",tr,[_(Pa,{"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"]),_(er,{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)}}),or=b(nr,[["__scopeId","data-v-0daf1988"]]),sr=["role","tabindex"],ar={key:1,class:"items"},rr=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}=rn(k(()=>e.item)),y=k(()=>l.value?"section":"div"),w=k(()=>s.value?"a":"div"),$=k(()=>l.value?e.depth+2===7?"p":`h${e.depth+2}`:"p"),L=k(()=>s.value?void 0:"button"),T=k(()=>[[`level-${e.depth}`],{collapsible:o.value},{collapsed:t.value},{"is-link":s.value},{"is-active":a.value},{"has-active":c.value}]);function C(I){"key"in I&&I.key!=="Enter"||!e.item.link&&f()}function D(){e.item.link&&f()}return(I,B)=>{const O=q("VPSidebarItem",!0);return r(),g(G(y.value),{class:S(["VPSidebarItem",T.value])},{default:v(()=>[I.item.text?(r(),d("div",K({key:0,class:"item",role:L.value},wt(I.item.items?{click:C,keydown:C}:{},!0),{tabindex:I.item.items&&0}),[B[1]||(B[1]=u("div",{class:"indicator"},null,-1)),I.item.link?(r(),g(W,{key:0,tag:w.value,class:"link",href:I.item.link,rel:I.item.rel,target:I.item.target},{default:v(()=>[(r(),g(G($.value),{class:"text",innerHTML:I.item.text},null,8,["innerHTML"]))]),_:1},8,["tag","href","rel","target"])):(r(),g(G($.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:D,onKeydown:Pt(D,["enter"]),tabindex:"0"},B[0]||(B[0]=[u("span",{class:"vpi-chevron-right caret-icon"},null,-1)]),32)):m("",!0)],16,sr)):m("",!0),I.item.items&&I.item.items.length?(r(),d("div",ar,[I.depth<5?(r(!0),d(M,{key:0},E(I.item.items,Y=>(r(),g(O,{key:Y.text,item:Y,depth:I.depth+1},null,8,["item","depth"]))),128)):m("",!0)])):m("",!0)]),_:1},8,["class"])}}}),ir=b(rr,[["__scopeId","data-v-e3dfa39a"]]),lr=h({__name:"VPSidebarGroup",props:{items:{}},setup(n){const e=N(!0);let t=null;return U(()=>{t=setTimeout(()=>{t=null,e.value=!1},300)}),Lt(()=>{t!=null&&(clearTimeout(t),t=null)}),(o,s)=>(r(!0),d(M,null,E(o.items,a=>(r(),d("div",{key:a.text,class:S(["group",{"no-transition":e.value}])},[_(ir,{item:a,depth:0},null,8,["item"])],2))),128))}}),cr=b(lr,[["__scopeId","data-v-21524c17"]]),ur={class:"nav",id:"VPSidebarNav","aria-labelledby":"sidebar-aria-label",tabindex:"-1"},dr=h({__name:"VPSidebar",props:{open:{type:Boolean}},setup(n){const{sidebarGroups:e,hasSidebar:t}=X(),o=n,s=N(null),a=xe(ue?document.body:null);z([o,s],()=>{var l;o.open?(a.value=!0,(l=s.value)==null||l.focus()):a.value=!1},{immediate:!0,flush:"post"});const c=N(0);return z(e,()=>{c.value+=1},{deep:!0}),(l,f)=>i(t)?(r(),d("aside",{key:0,class:S(["VPSidebar",{open:l.open}]),ref_key:"navEl",ref:s,onClick:f[0]||(f[0]=Pe(()=>{},["stop"]))},[f[2]||(f[2]=u("div",{class:"curtain"},null,-1)),u("nav",ur,[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(cr,{items:i(e),key:c.value},null,8,["items"])),p(l.$slots,"sidebar-nav-after",{},void 0,!0)])],2)):m("",!0)}}),pr=b(dr,[["__scopeId","data-v-56272391"]]),vr=h({__name:"VPSkipLink",setup(n){const{theme:e}=P(),t=_e(),o=N();z(()=>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(M,null,[u("span",{ref_key:"backToTop",ref:o,tabindex:"-1"},null,512),u("a",{href:"#VPContent",class:"VPSkipLink visually-hidden",onClick:s},V(i(e).skipToContentLabel||"Skip to content"),1)],64))}}),hr=b(vr,[["__scopeId","data-v-18aa0c86"]]),fr=h({__name:"Layout",setup(n){const{isOpen:e,open:t,close:o}=an();ln({closeSidebar:o});const{frontmatter:s}=P(),a=Vt(),c=k(()=>!!a["home-hero-image"]);return et("hero-image-slot-exists",c),(l,f)=>{const y=q("Content");return i(s).layout!==!1?(r(),d("div",{key:0,class:S(["Layout",i(s).pageClass])},[p(l.$slots,"layout-top",{},void 0,!0),_(hr),_(Dt,{class:"backdrop",show:i(e),onClick:i(o)},null,8,["show","onClick"]),_(or,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}),_(Jo,{open:i(e),onOpenMenu:i(t)},null,8,["open","onOpenMenu"]),_(pr,{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"]),_(Bo,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}),_(Ro),p(l.$slots,"layout-bottom",{},void 0,!0)],2)):(r(),g(y,{key:1}))}}}),mr=b(fr,[["__scopeId","data-v-2b37b52b"]]),We={Layout:mr,enhanceApp:({app:n})=>{n.component("Badge",At)}},_r=["data-href"],gr={key:0,"pointer-events-none":"",absolute:"",left:"1/1","top-0":"","bottom-0":"",flex:"","items-center":"","pl-4px":""},ze=h({__name:"DownloadText",props:{href:{},name:{},type:{default:"application/vnd.android.package-archive"}},setup(n){const e=n,t=F(!1),o=async()=>{if(t.value)return;t.value=!0,ce(()=>import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1749928706535/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 ce(async()=>{const{saveAs:l}=await import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1749928706535/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:S({"cursor-progress":t.value,"cursor-pointer":!t.value}),onClick:o,"data-href":s.href},[u("span",{class:S({"opacity-50":t.value})},V(s.name),3),t.value?(r(),d("div",gr,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,_r))}}),kr={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"},br={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"},yr=10,$r=async(n,e)=>{let t=yr;for(;;)try{return await fetch(n,e)}catch(o){if(t--,t<=0)throw o;await new Promise(s=>setTimeout(s,500))}},wr=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",Pr=async n=>{const e=await $r(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:wr(t.fileSize)}},qe=async n=>Pr(n?"https://registry.npmmirror.com/@gkd-kit/app/latest/files/index.json":"https://registry.npmmirror.com/@gkd-kit/app-beta/latest/files/index.json"),oe=F(br),se=F(kr);let Xe=!1;const Lr=async()=>{Xe||(Xe=!0,await Promise.all([qe(!0).then(n=>{oe.value=n}),qe(!1).then(n=>{se.value=n})]))},Vr={key:0},Sr=h({__name:"ApkTable",setup(n){return U(Lr),(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,[_(ze,{href:i(oe).href,name:i(oe).filename},null,8,["href","name"])]),u("td",null,V(i(oe).fileSizeDesc),1),u("td",null,V(i(oe).date),1),t[1]||(t[1]=u("td",null,"稳定版",-1))]),i(se).filename!==i(oe).filename?(r(),d("tr",Vr,[t[2]||(t[2]=u("td",null,"测试版",-1)),u("td",null,[_(ze,{href:i(se).href,name:i(se).filename},null,8,["href","name"])]),u("td",null,V(i(se).fileSizeDesc),1),u("td",null,V(i(se).date),1),t[3]||(t[3]=u("td",null,"更新快不稳定",-1))])):m("",!0)])]))}}),Tr=h((n,e)=>()=>{var t,o;return(o=(t=e.slots).default)==null?void 0:o.call(t)}),lt=n=>(n.loader(),h((e,t)=>{const o=F();return o.value||n.loader().then(s=>{o.value=s}),()=>o.value?j(o.value,e,t.slots):j(n.placeholder,e,t.slots)},{props:n.props})),ct=["alt","height","imgProps","previewedImgProps","lazy","intersectionObserverOptions","objectFit","previewSrc","fallbackSrc","width","src","previewDisabled","loadDescription","onError","onLoad","theme","themeOverrides","builtinThemeOverrides","onPreviewPrev","onPreviewNext","showToolbar","showToolbarTooltip","renderToolbar"],Ir=h((n,e)=>()=>j("div",{class:"n-image"},j("img",n,e.slots)),{props:ct}),ut=lt({loader:()=>ce(()=>import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1749928706535/files/.vitepress/dist"+u}return u})("./index.YMDd8FRl.js")),[]).then(n=>n.NImage),placeholder:Ir,props:ct}),dt=lt({loader:()=>ce(()=>import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1749928706535/files/.vitepress/dist"+u}return u})("./index.YMDd8FRl.js")),[]).then(n=>n.NImageGroup),placeholder:Tr}),Nr={NImage:ut,NImageGroup:dt},Mr="https://registry.npmmirror.com/@gkd-kit/assets/0.0.20/files/assets/",Cr=[{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}],pt=n=>n.startsWith("https:")?n:Mr+n,vt=St({}),Hr=async n=>{const e=new Image;e.src=n,await new Promise((t,o)=>{e.onload=()=>t(),e.onerror=o}),vt[n]=!0},Ar=n=>{Hr(n);const e=Cr.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)},ht=h((n,e)=>{const t=k(()=>pt(n.src)),o=k(()=>vt[t.value]?t.value:Ar(t.value));return()=>j(ut,{src:o.value,"data-src":t.value,...e.attrs})},{props:["src"]}),Br=h({__name:"IdentifierField",setup(n){const e=F(""),t=/^[_a-zA-Z][a-zA-Z0-9_]*$/,o=Tt(e,300),s=k(()=>o.value!=="null"&&o.value!=="true"&&o.value!=="false"&&t.test(o.value));return(a,c)=>(r(),d("div",null,[tt(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),[[It,e.value]]),u("div",{"mt-4px":"",class:S({"color-red":!s.value,"opacity-0":!i(o)||!e.value})},V(s.value?"合法标识符✅":"非法标识符❌"),3)]))}}),Er=h({__name:"ImageTable",props:{images:{}},setup(n){return(e,t)=>(r(),d("table",null,[u("tbody",null,[_(i(dt),null,{default:v(()=>[(r(!0),d(M,null,E(e.images,(o,s)=>(r(),d("tr",{key:s},[(r(!0),d(M,null,E(o,a=>(r(),d("td",{key:a},[_(i(ht),{src:i(pt)(a)},null,8,["src"])]))),128))]))),128))]),_:1})])]))}}),Dr=h({__name:"GkdOnly",setup(n){const e=()=>Reflect.get(globalThis,"gkd");return(t,o)=>{const s=q("ClientOnly");return r(),g(s,null,{default:v(()=>[e()?p(t.$slots,"default",{key:0}):m("",!0)]),_:3})}}}),Fr=h({__name:"MobileOnly",setup(n){const e=()=>globalThis.document&&"ontouchstart"in globalThis.document.documentElement;return(t,o)=>{const s=q("ClientOnly");return r(),g(s,null,{default:v(()=>[e()?p(t.$slots,"default",{key:0}):m("",!0)]),_:3})}}}),Or={...Nr,GImg:ht,ImageTable:Er,IdentifierField:Br,ApkTable:Sr,GkdOnly:Dr,MobileOnly:Fr},Rr={fixed:"","z-100":"",class:"BodyScrollbar"},Ye=2,jr=h({__name:"BodyScrollbar",setup(n){const e=F(0),t=F(0),o=H=>{window.scroll({left:H})},s=H=>{window.scroll({top:H})};ne("scroll",()=>{e.value=window.scrollX,t.value=window.scrollY});const{height:a,width:c}=Ze(),l=Nt(document.body),f=k(()=>l.height.value>a.value+Ye),y=k(()=>{const A=l.height.value;return a.value/A*a.value}),w=k(()=>{const H=l.height.value,A=y.value;return t.value/(H-a.value)*(a.value-A)}),$=k(()=>f.value?{transform:`translateY(${w.value}px)`,height:`${y.value}px`}:{}),L=async H=>{const A=y.value*.9*(H.clientY<y.value+w.value?-1:1),R=l.height.value,Z=R,Q=a.value/Z*a.value;s(t.value+A/(a.value-Q)*(R-a.value))},T=F(!1);let C;const D=H=>{C=H,T.value=!0};ne("pointermove",H=>{if(!C)return;const A=H.clientY-C.clientY;C=H;const R=l.height.value,Z=R,Q=a.value/Z*a.value;s(t.value+A/(a.value-Q)*(R-a.value))}),ne("pointerup",()=>{C=void 0,T.value=!1});const I=k(()=>l.width.value>c.value+Ye),B=k(()=>{const A=l.width.value;return c.value/A*c.value}),O=k(()=>{const H=l.width.value,A=B.value;return e.value/(H-c.value)*(c.value-A)}),Y=k(()=>I.value?{transform:`translateX(${O.value}px)`,width:`${B.value}px`}:{}),re=H=>{const A=B.value*.9*(H.clientX<B.value+O.value?-1:1),R=l.width.value,Z=R,Q=c.value/Z*c.value,ye=e.value+A/(c.value-Q)*(R-c.value);o(ye)},J=F(!1);let te;const ft=H=>{te=H,J.value=!0};return ne("pointermove",H=>{if(!te)return;const A=H.clientX-te.clientX;te=H;const R=l.width.value,Z=R,Q=c.value/Z*c.value,ye=e.value+A/(c.value-Q)*(R-c.value);o(ye)}),ne("pointerup",()=>{te=void 0,J.value=!1}),ne("selectstart",H=>{(te||C)&&H.preventDefault()}),(H,A)=>(r(),d("div",Rr,[tt(u("div",{"scrollbar-y":"",fixed:"","right-2px":"","top-0":"","bottom-0":"","w-8px":"",onPointerdown:D,onClick:L},[u("div",{onClick:A[0]||(A[0]=Pe(()=>{},["stop"])),"w-full":"",bg:"#909399","opacity-30":"","hover:opacity":"50",style:ve($.value),class:S({"opacity-50":T.value})},null,6)],544),[[Mt,f.value]]),I.value?(r(),d("div",{key:0,"scrollbar-x":"",fixed:"","bottom-2px":"","left-0":"","right-0":"","h-8px":"",onPointerdown:ft,onClick:re},[u("div",{onClick:A[1]||(A[1]=Pe(()=>{},["stop"])),"h-full":"",bg:"#909399","opacity-30":"","hover:opacity":"50",style:ve(Y.value),class:S({"opacity-50":J.value})},null,6)],32)):m("",!0)]))}}),Ur=h(()=>{const n=F(!1);return U(()=>{const e="ontouchstart"in document.documentElement;n.value=!e,e&&(document.body.classList.add("mobile"),document.documentElement.classList.add("mobile"))}),()=>n.value?j(Ct,{to:document.body},j(jr)):void 0}),Gr=n=>{const e=n.getBoundingClientRect(),t=window.innerHeight*.15;return e.top-t>=0&&e.bottom+t<=window.innerHeight},Wr=()=>{const n=document.images;for(let e=0;e<n.length;e++)if(!n[e].complete)return!1;return!0},fe=(n=0)=>new Promise(e=>setTimeout(e,n));let ie,Ne=!0;setTimeout(()=>{Ne=!1},1e3);const Re=async n=>{if(location.hash&&(n??(n=document.querySelector(location.hash)||void 0)),!n)return;const e="animate-hash-hint";ie&&ie.classList.remove(e),n.classList.contains(e)&&(n.classList.remove(e),await fe(25)),n.classList.add(e),ie=n;const t=500*2*(Ne?5:2);Ne=!1,await fe(t),n.classList.remove(e),ie===n&&(ie=void 0)},zr=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=new URLSearchParams(location.search).get("r");if(o==="1")n.go("/guide/snapshot#how-to-upload");else if(o==="2")n.go("/guide/faq#restriction");else if(o==="3")n.go("/guide/faq#adb_failed");else if(o==="4"){location.href="https://shizuku.rikka.app";return}else o==="5"?n.go("/guide/subscription"):o==="6"?n.go("/guide/faq#power"):o==="7"?n.go("/guide/faq#exact-activity"):o==="8"?n.go("/guide/faq#forced-tap"):o==="9"?n.go("/guide/faq#work-profile"):o==="10"&&n.go("/guide/sponsor")}else e==="/guide/faq#fail_setting_secure_settings"&&(location.hash="adb_failed");if(await ke(),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 fe(100)}})();if(o){if(!Gr(o)){let s=0;for(;s<25&&!Wr();)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"})}Re(o)}}};window.addEventListener("hashchange",async()=>{Re()});const qr=h(()=>{const n=Ht();return U(()=>{zr(n),n.onAfterPageLoad=()=>{ke().then(async()=>{await fe(100),Re()})}}),()=>{}}),Yr={extends:We,Layout(){return j(M,null,[j(We.Layout),j(Ur),j(qr)])},enhanceApp({app:n}){Object.entries(Or).forEach(([e,t])=>{n.component(e,t)})}};export{Yr as R,xs as c,P as u};
|
package/.vitepress/dist/assets/{guide_example.md.DX1QnTKX.js → guide_example.md.DotHUxWF.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as t,c as o,o as a,aq as d}from"./chunks/framework.CBQNBEo4.js";const q=JSON.parse('{"title":"选择示例","description":"","frontmatter":{},"headers":[],"relativePath":"guide/example.md","filePath":"guide/example.md","lastUpdated":
|
|
1
|
+
import{_ as t,c as o,o as a,aq as d}from"./chunks/framework.CBQNBEo4.js";const q=JSON.parse('{"title":"选择示例","description":"","frontmatter":{},"headers":[],"relativePath":"guide/example.md","filePath":"guide/example.md","lastUpdated":1749928682000}'),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 > ImageView</code></a></p><p>选择一个 <code>ImageView</code> 节点, 并要求其父节点的父节点是 <code>ViewGroup[vid="avatar_layout"]</code></p><p><a href="https://i.gkd.li/i/16076188?gkd=Vmlld0dyb3VwW3ZpZD0iYXZhdGFyX2xheW91dCJdID4yIEltYWdlVmlldw" target="_blank" rel="noreferrer"><code>ViewGroup[vid="avatar_layout"] >2 ImageView</code></a></p><p>选择一个 <code>ImageView[vid="search_icon"]</code> 节点, 并要求祖先节点是 <code>FrameLayout[vid="content_layout"]</code>, <code>n</code>可以是任意正整数, 下同</p><p><a href="https://i.gkd.li/i/16076188?gkd=RnJhbWVMYXlvdXRbdmlkPSJjb250ZW50X2xheW91dCJdIEltYWdlVmlld1t2aWQ9InNlYXJjaF9pY29uIl0" target="_blank" rel="noreferrer"><code>FrameLayout[vid="content_layout"] >n ImageView[vid="search_icon"]</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="搜索栏,按钮"]</code> 节点, 并要求其兄弟节点是 <code>ViewGroup[desc="个人主页,按钮"]</code></p><ul><li><a href="https://i.gkd.li/i/16076188?gkd=Vmlld0dyb3VwW2Rlc2M9IuS4quS6uuS4u-mhte-8jOaMiemSriJdICsgTGluZWFyTGF5b3V0W2Rlc2M9IuaQnOe0ouagj--8jOaMiemSriJd" target="_blank" rel="noreferrer"><code>ViewGroup[desc="个人主页,按钮"] + LinearLayout[desc="搜索栏,按钮"]</code></a></li><li><a href="https://i.gkd.li/i/16076188?gkd=QExpbmVhckxheW91dFtkZXNjPSLmkJzntKLmoI_vvIzmjInpkq4iXSAtIFZpZXdHcm91cFtkZXNjPSLkuKrkurrkuLvpobXvvIzmjInpkq4iXQ" target="_blank" rel="noreferrer"><code>@LinearLayout[desc="搜索栏,按钮"] - ViewGroup[desc="个人主页,按钮"]</code></a></li></ul><p>选择一个 <code>[text$="顶级入耳"]</code> 节点, 并要求其兄弟节点是 <code>[vid="cover_layout"]</code></p><ul><li><a href="https://i.gkd.li/i/16076188?gkd=W3ZpZD0iY292ZXJfbGF5b3V0Il0gK24gW3RleHQkPSLpobbnuqflhaXogLMiXQ" target="_blank" rel="noreferrer"><code>[vid="cover_layout"] +n [text$="顶级入耳"]</code></a></li><li><a href="https://i.gkd.li/i/16076188?gkd=QFt0ZXh0JD0i6aG257qn5YWl6ICzIl0gLW4gW3ZpZD0iY292ZXJfbGF5b3V0Il0" target="_blank" rel="noreferrer"><code>@[text$="顶级入耳"] -n [vid="cover_layout"]</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^="直播"]</code> 节点, 并要求其子节点是 <code>FrameLayout[vid="cover_layout"]</code> 或 <code>ViewGroup[vid="live_text_container"]</code> 或 <code>TextView[vid="title_v2"]</code></p><ul><li><a href="https://i.gkd.li/i/16076188?gkd=RnJhbWVMYXlvdXRbdmlkPSJjb3Zlcl9sYXlvdXQiXSA8IFZpZXdHcm91cFtkZXNjXj0i55u05pKtIl0" target="_blank" rel="noreferrer"><code>FrameLayout[vid="cover_layout"] < ViewGroup[desc^="直播"]</code></a></li><li><a href="https://i.gkd.li/i/16076188?gkd=Vmlld0dyb3VwW3ZpZD0ibGl2ZV90ZXh0X2NvbnRhaW5lciJdIDwzIFZpZXdHcm91cFtkZXNjXj0i55u05pKtIl0" target="_blank" rel="noreferrer"><code>ViewGroup[vid="live_text_container"] <3 ViewGroup[desc^="直播"]</code></a></li><li><a href="https://i.gkd.li/i/16076188?gkd=VGV4dFZpZXdbdmlkPSJ0aXRsZV92MiJdIDxuIFZpZXdHcm91cFtkZXNjXj0i55u05pKtIl0" target="_blank" rel="noreferrer"><code>TextView[vid="title_v2"] <n ViewGroup[desc^="直播"]</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="live_text_container"]</code> 的子节点内查找 <code>[text="直播"]</code></p><p><a href="https://i.gkd.li/i/16076188?gkd=QFt0ZXh0PSLnm7Tmkq0iXSA8PG4gVmlld0dyb3VwW3ZpZD0ibGl2ZV90ZXh0X2NvbnRhaW5lciJd" target="_blank" rel="noreferrer"><code>@[text="直播"] <<n ViewGroup[vid="live_text_container"]</code></a></p><p>在节点 <code>FrameLayout[vid="swipe_layout"]</code> 的子节点内查找 <code>LinearLayout > @[text="直播"]</code></p><p><a href="https://i.gkd.li/i/16076188?gkd=TGluZWFyTGF5b3V0ID4gQFt0ZXh0PSLnm7Tmkq0iXSA8PG4gW3ZpZD0ic3dpcGVfbGF5b3V0Il0" target="_blank" rel="noreferrer"><code>LinearLayout > @[text="直播"] <<n [vid="swipe_layout"]</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 < FrameLayout <n ViewGroup[desc^="直播"] - ViewGroup >4 FrameLayout[index=0] +2 FrameLayout > @TextView[index=parent.childCount.minus(1)] <<n FrameLayout[vid="content"]</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.CBQNBEo4.js";const q=JSON.parse('{"title":"选择示例","description":"","frontmatter":{},"headers":[],"relativePath":"guide/example.md","filePath":"guide/example.md","lastUpdated":
|
|
1
|
+
import{_ as t,c as o,o as a,aq as d}from"./chunks/framework.CBQNBEo4.js";const q=JSON.parse('{"title":"选择示例","description":"","frontmatter":{},"headers":[],"relativePath":"guide/example.md","filePath":"guide/example.md","lastUpdated":1749928682000}'),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};
|