PageSourceSearch

https://swc.rs/static/js/12.65a99cefa6.js

js swc.rs collected 2026-10-02 03:30:46 UTC 238,321 bytes, 6 lines download raw bytes

1/*! LICENSE: 12.65a99cefa6.js.LICENSE.txt */
2(self.rspackChunkswc_site=self.rspackChunkswc_site||[]).push([[12],{Sv(e,t,r){"use strict";var n=r("f"),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var r,s,o,l,a,u,c,h,d=!1;t||(t={}),o=t.debug||!1;try{if(a=n(),u=document.createRange(),c=document.getSelection(),(h=document.createElement("span")).textContent=e,h.ariaHidden="true",h.style.all="unset",h.style.position="fixed",h.style.top=0,h.style.clip="rect(0, 0, 0, 0)",h.style.whiteSpace="pre",h.style.webkitUserSelect="text",h.style.MozUserSelect="text",h.style.msUserSelect="text",h.style.userSelect="text",h.addEventListener("copy",function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){o&&console.warn("unable to use e.clipboardData"),o&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var n=i[t.format]||i.default;window.clipboardData.setData(n,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))}),document.body.appendChild(h),u.selectNodeContents(h),c.addRange(u),!document.execCommand("copy"))throw Error("copy command was unsuccessful");d=!0}catch(n){o&&console.error("unable to copy using execCommand: ",n),o&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),d=!0}catch(n){o&&console.error("unable to copy using clipboardData: ",n),o&&console.error("falling back to prompt"),r="message"in t?t.message:"Copy to clipboard: #{key}, Enter",s=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",l=r.replace(/#{\s*key\s*}/g,s),window.prompt(l,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(u):c.removeAllRanges()),h&&document.body.removeChild(h),a()}return d}},Xx(e){var t;t=function(){var e,t,r,n={};n.version="0.2.0";var i=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function s(e,t,r){return e<t?t:e>r?r:e}n.configure=function(e){var t,r;for(t in e)void 0!==(r=e[t])&&e.hasOwnProperty(t)&&(i[t]=r);return this},n.status=null,n.set=function(e){var t=n.isStarted();n.status=1===(e=s(e,i.minimum,1))?null:e;var r=n.render(!t),a=r.querySelector(i.barSelector),u=i.speed,c=i.easing;return r.offsetWidth,o(function(t){var s,o,h,d;""===i.positionUsing&&(i.positionUsing=n.getPositioningCSS()),l(a,(s=e,o=u,h=c,(d="translate3d"===i.positionUsing?{transform:"translate3d("+(-1+s)*100+"%,0,0)"}:"translate"===i.positionUsing?{transform:"translate("+(-1+s)*100+"%,0)"}:{"margin-left":(-1+s)*100+"%"}).transition="all "+o+"ms "+h,d)),1===e?(l(r,{transition:"none",opacity:1}),r.offsetWidth,setTimeout(function(){l(r,{transition:"all "+u+"ms linear",opacity:0}),setTimeout(function(){n.remove(),t()},u)},u)):setTimeout(t,u)}),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var e=function(){setTimeout(function(){n.status&&(n.trickle(),e())},i.trickleSpeed)};return i.trickle&&e(),this},n.done=function(e){return e||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(e){var t=n.status;return t?("number"!=typeof e&&(e=(1-t)*s(Math.random()*t,.1,.95)),t=s(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*i.trickleRate)},e=0,t=0,n.promise=function(r){return r&&"resolved"!==r.state()&&(0===t&&n.start(),e++,t++,r.always(function(){0==--t?(e=0,n.done()):n.set((e-t)/e)})),this},n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=i.template;var r,s=t.querySelector(i.barSelector),o=e?"-100":(-1+(n.status||0))*100,a=document.querySelector(i.parent);return l(s,{transition:"all 0 linear",transform:"translate3d("+o+"%,0,0)"}),!i.showSpinner&&(r=t.querySelector(i.spinnerSelector))&&d(r),a!=document.body&&u(a,"nprogress-custom-parent"),a.appendChild(t),t},n.remove=function(){c(document.documentElement,"nprogress-busy"),c(document.querySelector(i.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&d(e)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var o=(r=[],function(e){r.push(e),1==r.length&&function e(){var t=r.shift();t&&t(e)}()}),l=function(){var e=["Webkit","O","Moz","ms"],t={};function r(r,n,i){var s;n=t[s=(s=n).replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})]||(t[s]=function(t){var r=document.body.style;if(t in r)return t;for(var n,i=e.length,s=t.charAt(0).toUpperCase()+t.slice(1);i--;)if((n=e[i]+s)in r)return n;return t}(s)),r.style[n]=i}return function(e,t){var n,i,s=arguments;if(2==s.length)for(n in t)void 0!==(i=t[n])&&t.hasOwnProperty(n)&&r(e,n,i);else r(e,s[1],s[2])}}();function a(e,t){return("string"==typeof e?e:h(e)).indexOf(" "+t+" ")>=0}function u(e,t){var r=h(e),n=r+t;a(r,t)||(e.className=n.substring(1))}function c(e,t){var r,n=h(e);a(e,t)&&(e.className=(r=n.replace(" "+t+" "," ")).substring(1,r.length-1))}function h(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function d(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n},"function"==typeof define&&define.amd?define(t):e.exports=t()},G(e,t,r){"use strict";t.YZ=void 0;var n=r("A");t.YZ=function(e){var t,r,i=(0,n.lazy)(e),s=(0,n.forwardRef)(function(e,r){var s=(0,n.useRef)(null!=t?t:i);return(0,n.createElement)(s.current,Object.assign(r?{ref:r}:{},e))});return s.preload=function(){return r||(r=e().then(function(e){return t=e.default})),r},s}},f(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||r.forEach(function(t){e.addRange(t)}
2),t&&t.focus()}}},X(e,t,r){"use strict";var n=r("p1"),i=r("A"),s=r("C"),o=r("j");r.d(t,{},{U:e=>{let{fallback:t=(0,n.jsx)(n.Fragment,{})}=e,{pathname:r}=(0,s.zy)(),l=(0,i.useMemo)(()=>{let e=(0,o.c5)(r);return e?.element},[r]);return(0,n.jsx)(i.Suspense,{fallback:t,children:l})}})},K(e,t,r){"use strict";let n=(0,r("A").createContext)({});r.d(t,{},{D:n})},Dv(e,t,r){"use strict";var n=r("u");r.d(t,{},{s:()=>{let{page:e}=(0,n.e)(),{frontmatter:t={}}=e;return{frontmatter:t}}})},Tz(e,t,r){"use strict";var n=r("u");function i(){let{page:e}=(0,n.e)();return e.lang||""}r.d(t,{u:()=>i})},IY(e,t,r){"use strict";var n=r("N"),i=r("Tz"),s=r("IE");function o(){let{site:e}=(0,s.Z)(),t=(0,i.u)(),r=e?.themeConfig??{},o=e.lang??"",l=r?.locales;return l&&0!==l.length?{...l.find(e=>e.lang===t),langRoutePrefix:t===o?"/":(0,n.hg)(t)}:{nav:r.nav,sidebar:r.sidebar}}r.d(t,{l:()=>o})},u(e,t,r){"use strict";var n=r("A");let i=(0,n.createContext)({});function s(){return{page:(0,n.useContext)(i).data}}r.d(t,{e:()=>s},{N:i})},IE(e,t,r){"use strict";var n=r("v");function i(){return{site:n.A}}r.d(t,{Z:()=>i})},s(e,t,r){"use strict";var n=r("N"),i=r("z"),s=r("v"),o=r("j"),l=r("h");let a=[void 0,void 0,void 0];function u(e,t){a[0]={routePath:e,data:t}}function c(e){if(a[0]?.routePath===e){let e=a[0].data;return a[2]=a[1],a[1]=a[0],a[0]=void 0,e}if(a[2]?.routePath===e){let e=a[2].data;return a[0]=a[1],a[1]=a[2],a[2]=void 0,e}}function h(e,t){a[2]=a[1],a[1]={routePath:e,data:t}}async function d(e){let t=(0,o.c5)(e);if(t){let e=await t.preload(),r=(0,n.TG)(t.filePath),s=e=>e.replace(/\/$/,"").toLowerCase(),o=i.Y.pages.find(e=>(0,l.Oy)(s(e.routePath),s(t.path))),a=encodeURIComponent(r),u=e.default.__RSPRESS_PAGE_META?.[a]||{},{toc:c=[],title:h="",frontmatter:d={},...f}=n.gT.test(t.filePath)?u:e;return{...f,pagePath:r,...o,pageType:d?.pageType||"doc",title:h,frontmatter:d,toc:c}}let r=s.A.lang||"",a=s.A.multiVersion?.default||"";if(s.A.lang&&"u">typeof window){let e=window.location.pathname.replace(s.A.base,"").split("/").slice(0,2);if(s.A.locales.length){let t=s.A.locales.find(t=>{let{lang:r}=t;return e.includes(r)});t&&(r=t.lang)}if(s.A.multiVersion.versions){let t=s.A.multiVersion.versions.find(t=>e.includes(t));t&&(a=t)}}return{pagePath:"",pageType:"404",routePath:"/404",lang:r,frontmatter:{},title:"404",toc:[],version:a,_filepath:"",_relativePath:""}}r.d(t,{Fv:()=>h,So:()=>d,UH:()=>c,vY:()=>u})},j(e,t,r){"use strict";var n=r("N"),i=r("Fq");function s(e){return(0,n.TG)(decodeURIComponent(e)).replace(/\.html$/,"").replace(/\/index$/,"/").toLowerCase()}function o(e,t){let r=s(e),n=s(t);return(r.endsWith("/")?r:`${r}/`)===(n.endsWith("/")?n:`${n}/`)?{path:e}:null}let l=[...i.J].sort((e,t)=>{let r=e.path||"";return(t.path||"").length-r.length}),a=new Map;function u(e){let t=s(e),r=a.get(t);if(r)return r;let n=function(e,t){for(let e of l)if(o(e.path||"",t))return[{route:e}];return null}(i.J,t),u=n?.[0]?.route;return u&&a.set(t,u),u}function c(e,t){return null!==o(e,t)}r.d(t,{$m:()=>c,c5:()=>u},{G$:e=>{let t=u(e);t&&t.preload()}})},CK(e,t,r){"use strict";var n=r("p1"),i=r("h"),s=r("A"),o=r("x0"),l=r("K"),a=r("u"),u=r("C"),c=r("N"),h=r("qI");function d(e,t={},r){for(let n in e){let i=e[n],s=r?`${r}:${n}`:n;"object"==typeof i&&null!==i?d(i,t,s):"function"==typeof i&&(t[s]=i)}return t}let f=(()=>{if(console.createTask)return console.createTask;let e={run:e=>e()};return()=>e})();function p(e,t,r){if(e.length>0)return function e(t,r,n,i){for(let s=n;s<t.length;s+=1)try{let n=i?i.run(()=>t[s](...r)):t[s](...r);if(n&&"function"==typeof n.then)return Promise.resolve(n).then(()=>e(t,r,s+1,i))}catch(e){return Promise.reject(e)}}(e,t,0,f(r))}function m(e,t,r){if(e.length>0){let n=f(r);return Promise.all(e.map(e=>n.run(()=>e(...t))))}}function g(e,t){for(let r of[...e])r(t)}var v=class{_hooks;_before;_after;_deprecatedHooks;_deprecatedMessages;constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,r={}){let n;if(!e||"function"!=typeof t)return()=>{};let i=e;for(;this._deprecatedHooks[e];)e=(n=this._deprecatedHooks[e]).to;
2if(n&&!r.allowDeprecated){let e=n.message;e||(e=`${i} hook has been deprecated`+(n.to?`, please use ${n.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(e)||(console.warn(e),this._deprecatedMessages.add(e))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&(this.removeHook(e,t),t=void 0)}}hookOnce(e,t){let r,n=(...e)=>("function"==typeof r&&r(),r=void 0,n=void 0,t(...e));return r=this.hook(e,n)}removeHook(e,t){let r=this._hooks[e];if(r){let n=r.indexOf(t);-1!==n&&r.splice(n,1),0===r.length&&(this._hooks[e]=void 0)}}clearHook(e){this._hooks[e]=void 0}deprecateHook(e,t){this._deprecatedHooks[e]="string"==typeof t?{to:t}:t;let r=this._hooks[e]||[];for(let t of(this._hooks[e]=void 0,r))this.hook(e,t)}deprecateHooks(e){for(let t in e)this.deprecateHook(t,e[t])}addHooks(e){let t=d(e),r=Object.keys(t).map(e=>this.hook(e,t[e]));return()=>{for(let e of r)e();r.length=0}}removeHooks(e){let t=d(e);for(let e in t)this.removeHook(e,t[e])}removeAllHooks(){this._hooks={}}callHook(e,...t){return this.callHookWith(p,e,t)}callHookParallel(e,...t){return this.callHookWith(m,e,t)}callHookWith(e,t,r){let n=this._before||this._after?{name:t,args:r,context:{}}:void 0;this._before&&g(this._before,n);let i=e(this._hooks[t]?[...this._hooks[t]]:[],r,t);return i instanceof Promise?i.finally(()=>{this._after&&n&&g(this._after,n)}):(this._after&&n&&g(this._after,n),i)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(void 0!==this._before){let t=this._before.indexOf(e);-1!==t&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(void 0!==this._after){let t=this._after.indexOf(e);-1!==t&&this._after.splice(t,1)}}}},x=r("Fl");function y(e){return"__proto__"===e||"constructor"===e||"prototype"===e}let D=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,w={base:-10,title:10},_={critical:-8,high:-1,low:2},b={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},j=/@import/,F=e=>""===e||!0===e,C=["name","property","http-equiv"],A=new Set(["viewport","description","keywords","robots"]);function E(e){let t=e.indexOf(":");if(-1===t)return!1;let r=e.indexOf(":",t+1),n=e.slice(t+1,-1===r?e.length:r);return"twitter"===n?"meta:twitter:image"===e||e.startsWith("meta:twitter:image:"):x.M.has(n)}function k(e){let{props:t,tag:r}=e;if(x.U.has(r))return r;if("link"===r&&"canonical"===t.rel)return"canonical";if("link"===r&&"alternate"===t.rel){if(t.hreflang)return`alternate:${t.hreflang}`;if(t.type)return`alternate:${t.type}:${t.href||""}`}if(t.charset)return"charset";if("meta"===e.tag){for(let n of C)if(void 0!==t[n]){let i=t[n],s=i&&"string"==typeof i&&i.includes(":"),o=i&&A.has(i),l=!(s||o)&&e.key?`:key:${e.key}`:"";return`${r}:${i}${l}`}}if(e.key)return`${r}:key:${e.key}`;if(t.id)return`${r}:id:${t.id}`;if("link"===r&&"alternate"===t.rel)return`alternate:${t.href||""}`;if(x.b.has(r)){let t=e.textContent||e.innerHTML;if(t)return`${r}:content:${t}`}}function N(e){let t=e._h||e._d;if(t)return t;let r=e.textContent||e.innerHTML;if(r)return r;let n=Object.keys(e.props).sort();return`${e.tag}:${n.map(t=>`${t}:${String(e.props[t])}`).join(",")}`}let B=/[\s"'<>/=\x00-\x1F\x7F]/;function M(e,t){if(e.props=e.props||{},!t)return e;if("templateParams"===e.tag)return e.props=t,e;let r=x.H.has(e.tag)||"htmlAttrs"===e.tag||"bodyAttrs"===e.tag;for(let n of Object.keys(t)){if(y(n))continue;let i=n.startsWith("data-"),s=r&&!x.T.has(n),o=s&&!i?n.toLowerCase():n;if(s&&(!o||B.test(o)))continue;let l=t[n];if(null===l){e.props[o]=null;continue}if("class"===n||"style"===n){e.props[n]=function(e,t){let r="style"===e?new Map:new Set;function n(t){if(null==t||void 0===t)return;let n=String(t).trim();if(n)if("style"===e){let[e,...t]=n.split(":").map(e=>e?e.trim():"");e&&t.length&&r.set(e,t.join(":"))}
2else n.split(" ").filter(Boolean).forEach(e=>r.add(e))}return"string"==typeof t?"style"===e?t.split(";").forEach(n):n(t):Array.isArray(t)?t.forEach(e=>n(e)):t&&"object"==typeof t&&Object.entries(t).forEach(([t,i])=>{i&&"false"!==i&&("style"===e?r.set(String(t).trim(),String(i)):n(t))}),r}(n,l);continue}if(x.T.has(n)){if(("textContent"===n||"innerHTML"===n)&&"object"==typeof l){let r=t.type;if(t.type||(r="application/json"),!r?.endsWith("json")&&"speculationrules"!==r)continue;t.type=r,e.props.type=r,e[n]=JSON.stringify(l)}else e[n]=l;continue}let a=String(l),u="meta"===e.tag&&"content"===o;"true"===a||""===a?e.props[o]=!i&&!u||a:!l&&i&&"false"===a?e.props[o]="false":void 0!==l&&(e.props[o]=l)}return e}function S(e,t){let r="function"==typeof t?t(e):t,n=r.key||String(e.plugins.size+1);e.plugins.get(n)||(e.plugins.set(n,r),e.hooks.addHooks(r.hooks||{}))}async function T(e,t={}){let r=t.document||e.resolvedOptions.document;if(!r||!e.dirty)return;let n={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",n),n.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async t=>{let n=new Map,i=new Promise(t=>{e.resolveTags().then(e=>{t(e.map(e=>{let t=n.get(e._d)||0,r={tag:e,id:(t?`${e._d}:${t}`:e._d)||e._h,shouldRender:!0};return e._d&&E(e._d)&&n.set(e._d,t+1),r}))})}),s=e._dom;if(!s)for(let e of(s={title:r.title,elMap:(new Map).set("htmlAttrs",r.documentElement).set("bodyAttrs",r.body)},["body","head"]))for(let t of r[e]?.children){let e=t.tagName.toLowerCase();if(!x.H.has(e))continue;let r=M({tag:e,props:{}},{innerHTML:t.innerHTML,...t.getAttributeNames().reduce((e,r)=>(e[r]=t.getAttribute(r),e),{})||{}});if(r.key=t.getAttribute("data-hid")||void 0,r._d=k(r)||N(r),s.elMap.has(r._d)){let e=1,n=r._d;for(;s.elMap.has(n);)n=`${r._d}:${e++}`;s.elMap.set(n,t)}else s.elMap.set(r._d,t)}function o(e,t,r){let n=`${e}:${t}`;s.sideEffects[n]=r,delete s.pendingSideEffects[n]}function l({id:e,$el:t,tag:n}){let i=n.tag.endsWith("Attrs");for(let l in s.elMap.set(e,t),i||(n.textContent&&n.textContent!==t.textContent&&(t.textContent=n.textContent),n.innerHTML&&n.innerHTML!==t.innerHTML&&(t.innerHTML=n.innerHTML),o(e,"el",()=>{t?.remove(),s.elMap.delete(e)})),n.props){if(!Object.prototype.hasOwnProperty.call(n.props,l))continue;let s=n.props[l];if(l.startsWith("on")&&"function"==typeof s){let e=t?.dataset;if(e&&e[`${l}fired`]){let e=l.slice(0,-5);s.call(t,new Event(e.substring(2)))}""!==t.getAttribute(`data-${l}`)&&(("bodyAttrs"===n.tag?r.defaultView:t).addEventListener(l.substring(2),s.bind(t)),t.setAttribute(`data-${l}`,""));continue}let a=`attr:${l}`;if("class"===l){if(!s)continue;for(let r of s)i&&o(e,`${a}:${r}`,()=>t.classList.remove(r)),t.classList.contains(r)||t.classList.add(r)}else if("style"===l){if(!s)continue;for(let[r,n]of s)o(e,`${a}:${r}`,()=>{t.style.removeProperty(r)}),t.style.setProperty(r,n)}else!1!==s&&null!==s&&(t.getAttribute(l)!==s&&t.setAttribute(l,!0===s?"":String(s)),i&&o(e,a,()=>t.removeAttribute(l)))}}s.pendingSideEffects={...s.sideEffects},s.sideEffects={};let a=[],u={bodyClose:void 0,bodyOpen:void 0,head:void 0},c=await i;for(let e of c){let{tag:t,shouldRender:n,id:i}=e;if(n){if("title"===t.tag){r.title=t.textContent,o("title","",()=>r.title=s.title);continue}e.$el=e.$el||s.elMap.get(i),e.$el?l(e):x.H.has(t.tag)&&a.push(e)}}for(let e of a){let t=e.tag.tagPosition||"head";e.$el=r.createElement(e.tag.tag),l(e),u[t]=u[t]||r.createDocumentFragment(),u[t].appendChild(e.$el)}for(let t of c)await e.hooks.callHook("dom:renderTag",t,r,o);for(let e in u.head&&r.head.appendChild(u.head),u.bodyOpen&&r.body.insertBefore(u.bodyOpen,r.body.firstChild),u.bodyClose&&r.body.appendChild(u.bodyClose),s.pendingSideEffects)s.pendingSideEffects[e]();e._dom=s,await e.hooks.callHook("dom:rendered",{renders:c}),t()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}var z=r("u3");function L(e={}){var t,r;let n,i=function(e={}){let t=e.domOptions?.render||T;e.document=e.document||("u">typeof window?document:void 0);let r=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1,n=function(e={}){let t=new v;t.addHooks(e.hooks||{});let r=!e.document,n=new Map,i=new Map,s=new Set,o={_entryCount:1,plugins:i,dirty:!1,resolvedOptions:e,hooks:t,ssr:r,entries:n,headEntries:()=>[...n.values()],use:e=>S(o,e),push(e,i){let l={...i||{}};delete l.head;let a=l._index??o._entryCount++,u={_i:a,input:e,options:l},c={_poll(e=!1){o.dirty=!0,e||s.add(a),t.callHook("entries:updated",o)},dispose(){n.delete(a)&&o.invalidate()},patch(e){l.mode&&("server"!==l.mode||!r)&&("client"!==l.mode||r)||(u.input=e,n.set(a,u),
2c._poll())}};return c.patch(e),c},async resolveTags(){let r={tagMap:new Map,tags:[],entries:[...o.entries.values()]};for(await t.callHook("entries:resolve",r);s.size;){let r=s.values().next().value;s.delete(r);let i=n.get(r);if(i){let r={tags:(function(e,t){if(!e)return[];"function"==typeof e&&(e=e());let r=(e,r)=>{for(let n=0;n<t.length;n++)r=t[n](e,r);return r};e=r(void 0,e);let n=[];return Object.entries((e=function e(t,r,n){"function"!=typeof t||n&&("titleTemplate"===n||"o"===n[0]&&"n"===n[1])||(t=t());let i=r?r(n,t):t;if(Array.isArray(i)){let t;for(let n=0;n<i.length;n++){let s=e(i[n],r);t?t[n]=s:s!==i[n]&&((t=i.slice(0,n))[n]=s)}return t||i}if(i?.constructor===Object){let t;for(let n in i){let s=y(n),o=s?void 0:e(i[n],r,n),l="_resolver"===n;if(!t&&(s||l||o!==i[n]))for(let e in t={},i){if(e===n)break;t[e]=i[e]}t&&!s&&(t[n]=o)}return t||i}return i}(e,r))||{}).forEach(([e,t])=>{if(void 0!==t)for(let r of Array.isArray(t)?t:[t])n.push(function(e,t){let r="object"==typeof t&&"function"!=typeof t?t:{["script"===e||"noscript"===e||"style"===e?"innerHTML":"textContent"]:t},n=M({tag:e,props:{}},r);return n.key&&x.D.has(n.tag)&&(n.props["data-hid"]=n._h=n.key),"script"===n.tag&&"object"==typeof n.innerHTML&&(n.innerHTML=JSON.stringify(n.innerHTML),n.props.type=n.props.type||"application/json"),Array.isArray(n.props.content)?n.props.content.map(e=>({...n,props:{...n.props,content:e}})):n}(e,r))}),n.flat()})(i.input,e.propResolvers||[]).map(e=>Object.assign(e,i.options)),entry:i};await t.callHook("entries:normalize",r),i._tags=r.tags.map((e,t)=>(e._w=function(e,t){if("number"==typeof t.tagPriority)return t.tagPriority;let r=100,n=_[t.tagPriority]||0,i=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:b;if(t.tag in w)r=w[t.tag];else if("meta"===t.tag){let e="content-security-policy"===t.props["http-equiv"]?"content-security-policy":t.props.charset?"charset":"viewport"===t.props.name?"viewport":null;e&&(r=b.meta[e])}else if("link"===t.tag&&t.props.rel)r=i.link[t.props.rel];else if("script"===t.tag){let e=String(t.props.type);F(t.props.async)?r=i.script.async:(!t.props.src||F(t.props.defer)||F(t.props.async)||"module"===e||e.endsWith("json"))&&(!t.innerHTML||e.endsWith("json"))?(F(t.props.defer)&&t.props.src&&!F(t.props.async)||"module"===e)&&(r=i.script.defer):r=i.script.sync}else"style"===t.tag&&(r=t.innerHTML&&j.test(t.innerHTML)?i.style.imported:i.style.sync);return(r||100)+n}(o,e),e._p=(i._i<<10)+t,e._d=k(e),e._d||(e._h=N(e)),e))}}let i=!1;r.entries.flatMap(e=>(e._tags||[]).map(e=>({...e,props:{...e.props}}))).sort(D).reduce((e,t)=>{let r=t._d||t._h;if(!e.has(r))return e.set(r,t);let n=e.get(r);if("merge"===(t?.tagDuplicateStrategy||(x.c.has(t.tag)?"merge":null)||(t.key&&t.key===n.key?"merge":null))){let i={...n.props};Object.entries(t.props).forEach(([e,t])=>i[e]="style"===e?new Map([...n.props.style||new Map,...t]):"class"===e?new Set([...n.props.class||new Set,...t]):t),e.set(r,{...t,props:i})}else t._p>>10==n._p>>10&&"meta"===t.tag&&E(r)?(e.set(r,Object.assign([...Array.isArray(n)?n:[n],t],t)),i=!0):(t._w===n._w?t._p>n._p:t?._w<n?._w)&&e.set(r,t);return e},r.tagMap);let l=r.tagMap.get("title"),a=r.tagMap.get("titleTemplate");if(o._title=l?.textContent,a){let e=a?.textContent;if(o._titleTemplate=e,e){let t="function"==typeof e?e(l?.textContent):e;"string"!=typeof t||o.plugins.has("template-params")||(t=t.replace("%s",l?.textContent||"")),l?null===t?r.tagMap.delete("title"):r.tagMap.set("title",{...l,textContent:t}):(a.tag="title",a.textContent=t)}}r.tags=Array.from(r.tagMap.values()),i&&(r.tags=r.tags.flat().sort(D)),await t.callHook("tags:beforeResolve",r),await t.callHook("tags:resolve",r),await t.callHook("tags:afterResolve",r);let u=[];for(let e of r.tags){let{innerHTML:t,tag:r,props:n}=e;x.V.has(r)&&(0!==Object.keys(n).length||(0,x.h)(e.innerHTML)||(0,x.h)(e.textContent))&&("meta"!==r||(0,x.h)(n.content)||n["http-equiv"]||n.charset)&&("script"===r&&t&&(String(n.type).endsWith("json")?e.innerHTML=("string"==typeof t?t:JSON.stringify(t)).replace(/</g,"\\u003C"):"string"==typeof t&&(e.innerHTML=t.replace(RegExp(`</${r}`,"g"),`<\\/${r}`)),e._d=k(e)),u.push(e))}return u},invalidate(){for(let e of n.values())s.add(e._i);o.dirty=!0,t.callHook("entries:updated",o)}};
2return(e?.plugins||[]).forEach(e=>S(o,e)),o.hooks.callHook("init",o),e.init?.forEach(e=>e&&o.push(e)),o}({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[!!r&&JSON.parse(r),...e.init||[]]});return n.ssr=!1,n}({domOptions:{render:(t=()=>T(i),r=e=>setTimeout(e,0),n=0,()=>{let e=++n;r(()=>{n===e&&t()})})},...e});return i}function $({children:e,value:t,head:r}){let n=(0,s.useRef)(null);if(void 0!==t&&void 0!==r)throw TypeError("UnheadProvider received both value and head props");let i=t??r;return void 0===i&&null===n.current&&(n.current=L()),(0,s.createElement)(z.U.Provider,{value:i??n.current},e)}var H=r("y7"),O=r("s");function P(){let{setData:e,data:t}=(0,s.useContext)(a.N),{pathname:r,search:i}=(0,u.zy)();if((0,s.useLayoutEffect)(()=>{let t=(0,O.UH)(r);t?e?.(t):async function(){try{let t=await (0,O.So)(r);(0,O.Fv)(r,t),e?.(t)}catch(e){console.log(e)}}()},[r,e]),!t)return(0,n.jsx)(n.Fragment,{});let o=t.frontmatter||{},l="globalUIComponents",c=new URLSearchParams(i),d=!1===o[l]||"0"===c.get(l);return(0,n.jsxs)(h.bL,{children:[(0,n.jsx)(h.PE,{}),!d&&H.A.map((e,t)=>{if(Array.isArray(e)){let[r,n]=e;return s.createElement(r,{key:t,...n})}return s.createElement(e,{key:t})})]})}let I=L();function R(e){let{initialPageData:t=null}
2=e,[r,o]=(0,s.useState)(t),[d,f]=(0,h.G5)();return(0,n.jsx)(l.D.Provider,{value:(0,s.useMemo)(()=>({theme:d,setTheme:f}),[d,f]),children:(0,n.jsx)(a.N.Provider,{value:(0,s.useMemo)(()=>({data:r,setData:o}),[r,o]),children:(0,n.jsx)(u.Kd,{basename:(0,c.UC)((0,i.cV)("/")),useTransitions:!0,children:(0,n.jsx)($,{head:I,children:(0,n.jsx)(P,{})})})})})}!async function(){let e=document.getElementById("__rspress_root"),t=(0,i.EJ)(window.location.pathname),r=await (0,O.So)(t);(0,O.Fv)(t,r),(0,s.startTransition)(()=>{(0,o.hydrateRoot)(e,(0,n.jsx)(R,{initialPageData:r}),{onRecoverableError(e,t){e instanceof Error&&console.warn("hydrateRoot recoverable error:",e,t)}})})}()},h(e,t,r){"use strict";var n=r("N"),i=r("v");function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/";return(0,n.cV)(e,i.A.base)}function o(e){return(0,n.EJ)(e,i.A.base)}function l(e,t){return o((0,n.Tj)((0,n.fr)(e),!0))===o((0,n.Tj)((0,n.fr)(t),!0))}function a(e){let t=!!i.A?.route?.cleanUrls;return(0,n.Tj)(e,t)}function u(e){return i.A?.route?.cleanUrls?(0,n.Tj)(e,!0):e}function c(e){var t;return(t=e,(0,n.My)(t)||(0,n.ax)(t)||t.startsWith("//")||!e.startsWith("/"))?e:s(e)}function h(e){let t=e;return s(t=(t=(0,n.Tj)(t,!1)).replace(/\.html(?=#|\?|$)/,".md"))}r.d(t,{As:()=>c,EJ:()=>o,Gk:()=>u,Oy:()=>l,cV:()=>s,cc:()=>a,qp:()=>h})},IV(e,t,r){"use strict";var n=r("p1"),i=r("j"),s=r("r"),o=r("Xx"),l=r.n(o),a=r("A");r("l");var u=r("Q");l().configure({showSpinner:!1});let c=(0,a.forwardRef)((e,t)=>{let{href:r="/",children:o,className:l="",onClick:a,onMouseEnter:c,startTransition:h,...d}=e,{linkType:f,removeBaseHref:p,withBaseHref:m}=(0,u.a)(r),g=(0,u.X)({startTransition:h});return"external"===f?(0,n.jsx)("a",{ref:t,href:r,target:"_blank",rel:"noopener noreferrer",className:(0,s.A)(l,"rp-link"),onClick:a,onMouseEnter:c,...d,children:o}):"hashOnly"===f?(0,n.jsx)("a",{ref:t,href:r,className:(0,s.A)(l,"rp-link"),onClick:a,onMouseEnter:c,...d,children:o}):"relative"===f?(0,n.jsx)("a",{ref:t,href:r,className:(0,s.A)(l,"rp-link"),onMouseEnter:e=>{c?.(e),(0,i.G$)(p)},onTouchStart:()=>{(0,i.G$)(p)},onClick:e=>{a?.(e),0!==e.button||e.currentTarget.target&&"_self"!==e.currentTarget.target||e.metaKey||e.shiftKey||e.altKey||e.ctrlKey||(e.preventDefault(),g(r))},...d,children:o}):(0,n.jsx)("a",{ref:t,href:m,className:(0,s.A)(l,"rp-link"),onMouseEnter:e=>{c?.(e),(0,i.G$)(p)},onTouchStart:()=>{(0,i.G$)(p)},onClick:e=>{a?.(e),0!==e.button||e.currentTarget.target&&"_self"!==e.currentTarget.target||e.metaKey||e.shiftKey||e.altKey||e.ctrlKey||(e.preventDefault(),g(p))},...d,children:o})});c.displayName="Link",r.d(t,{},{N:c})},Q(e,t,r){"use strict";var n=r("N"),i=r("h"),s=r("C"),o=r("j"),l=r("s"),a=r("Xx"),u=r.n(a),c=r("A");function h(e){var t;let r,s=(t=e,(0,n.My)(t)?"external":t.startsWith("#")?"hashOnly":t.startsWith("/")?"internal":"relative");if("external"===s||"hashOnly"===s)return{linkType:s,withBaseHref:e,removeBaseHref:e};r="relative"!==s?(0,i.cV)((0,i.Gk)(e)):new URL(e,window.location.href).pathname;let o=(0,i.EJ)(r);return{withBaseHref:r,removeBaseHref:o,linkType:s}}function d(){let{startTransition:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{startTransition:c.startTransition},{pathname:t}=(0,s.zy)(),r=(0,s.Zp)();return(0,c.useCallback)(async n=>{let{linkType:i,removeBaseHref:s,withBaseHref:a}=h(n);if("external"===i||"hashOnly"===i)return void window.location.assign(n);let c=async()=>{if(!(0,o.$m)(s,t)){if(!(0,o.c5)(s))return void window.location.assign(a);{let e=setTimeout(()=>{u().start()},200),t=await (0,l.So)(s);(0,l.vY)(s,t),clearTimeout(e),u().done()}}await r(s,{replace:!1})};e?e(c):c()},[t,r])}u().configure({showSpinner:!1}),r.d(t,{X:()=>d,a:()=>h})},ap(e,t,r){"use strict";let n,i,s,o,l;r.d(t,{Ex:()=>q,$n:()=>Y,Pq:()=>X,NG:()=>Q,zq:()=>eu,As:()=>eH,co:()=>eO,fS:()=>o9,Lp:()=>eR,x5:()=>eG,Eg:()=>eV,K6:()=>eZ,hM:()=>eq,UQ:()=>eY,mI:()=>le,RG:()=>j,hI:()=>F,gz:()=>C,bz:()=>A,nD:()=>_,Y7:()=>E,GI:()=>k,Fw:()=>N,kC:()=>b,HW:()=>V,g6:()=>B,D7:()=>M,uO:()=>S,AX:()=>U,ML:()=>T,dd:()=>z,l0:()=>L,HO:()=>$,C0:()=>H,kv:()=>O,lv:()=>P,mT:()=>I,Mk:()=>R,QB:()=>W,hG:()=>G,KS:()=>e4,N_:()=>e5.N,QZ:()=>e6,mS:()=>e9,KG:()=>tn,vw:()=>ti,YU:()=>tt,so:()=>ty,fx:()=>tY,ue:()=>tJ,Ab:()=>lt,Rc:()=>tQ,Aw:()=>t9,v7:()=>rt,ky:()=>ru,UC:()=>rc,a9:()=>rf,bL:()=>rp,vj:()=>rm,vd:()=>rg,Pl:()=>ow,Bx:()=>oz,RP:()=>
2oW,Ge:()=>oG,bS:()=>oU,oz:()=>oq,tU:()=>oZ,OT:()=>oJ,vN:()=>oQ,lW:()=>li,El:()=>ls,GD:()=>eS,zE:()=>lw,i7:()=>lm,nl:()=>lD,R3:()=>o0,i6:()=>ea,J6:()=>o4,HF:()=>e2,X6:()=>e3.X,ZZ:()=>lo,dS:()=>rd,dY:()=>ll,YW:()=>la,uo:()=>lu,zV:()=>lc,yL:()=>ld,G5:()=>lp,n6:()=>o6});var a,u,c,h,d,f,p,m,g,v,x,y,D=r("p1"),w=r("A");let _=e=>(0,D.jsx)("svg",{width:"1em",height:"1em",strokeLinejoin:"round","aria-hidden":"true",viewBox:"0 0 16 16",...e,children:(0,D.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.75 2.75a1.25 1.25 0 1 1 2.5 0V3h-2.5zM5.25 3v-.25a2.75 2.75 0 0 1 5.5 0V3H15v1.5h-1.115l-.707 9.192A2.5 2.5 0 0 1 10.685 16h-5.37a2.5 2.5 0 0 1-2.493-2.308L2.115 4.5H1V3h4.25m-.932 10.577L3.62 4.5h8.76l-.698 9.077a1 1 0 0 1-.997.923h-5.37a1 1 0 0 1-.997-.923",clipRule:"evenodd"})}),b=e=>(0,D.jsx)("svg",{width:"1em",height:"1em",strokeLinejoin:"round","data-testid":"geist-icon",style:{color:"currentcolor"},viewBox:"0 0 16 16",...e,children:(0,D.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M9 7.674V2.5H7v5.174l-.503.447L4.383 10h7.234L9.503 8.121zM5.5 2.5H4V1h8v1.5h-1.5V7l3.573 3.177A2.76 2.76 0 0 1 12.24 15H3.76a2.76 2.76 0 0 1-1.834-4.823L5.5 7zm-3 9.74c0-.268.085-.527.24-.74h10.52a1.26 1.26 0 0 1-1.02 2H3.76a1.26 1.26 0 0 1-1.26-1.26",clipRule:"evenodd"})}),j=e=>(0,D.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",...e,children:(0,D.jsx)("path",{fill:"currentColor",d:"M16 22 6 12l1.4-1.4 8.6 8.6 8.6-8.6L26 12z"})}),F=e=>(0,D.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",...e,children:(0,D.jsx)("path",{fill:"currentColor",d:"M22 16 12 26l-1.4-1.4 8.6-8.6-8.6-8.6L12 6z"})}),C=e=>(0,D.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 32 32",...e,children:(0,D.jsx)("path",{fill:"currentColor",d:"M24 9.4 22.6 8 16 14.6 9.4 8 8 9.4l6.6 6.6L8 22.6 9.4 24l6.6-6.6 6.6 6.6 1.4-1.4-6.6-6.6z"})}),A=e=>(0,D.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 24 24",...e,children:[(0,D.jsx)("path",{fill:"currentColor",d:"M20 8v12H8V8zm0-2H8a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2"}),(0,D.jsx)("path",{fill:"currentColor",d:"M4 16H2V4a2 2 0 0 1 2-2h12v2H4Z"})]}),E=e=>(0,D.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",...e,children:(0,D.jsx)("path",{fill:"currentColor",d:"M16 22 6 12l1.4-1.4 8.6 8.6 8.6-8.6L26 12z"})}),k=e=>(0,D.jsx)("svg",{width:"1em",height:"1em",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",...e,children:(0,D.jsx)("path",{d:"M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5z"})}),N=e=>(0,D.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,fill:"none",viewBox:"0 0 48 48",...e,children:[(0,D.jsx)("path",{stroke:"currentColor",strokeWidth:4,d:"M24 5v6m7 1 4-4m-18 4-4-4m27 33H8a2 2 0 0 1-2-2v-8.46a2 2 0 0 1 .272-1.007l6.15-10.54A2 2 0 0 1 14.148 18H33.85a2 2 0 0 1 1.728.992l6.149 10.541A2 2 0 0 1 42 30.541V39a2 2 0 0 1-2 2Z"}),(0,D.jsx)("path",{stroke:"currentColor",strokeWidth:4,d:"M41.5 30H28s-1 3-4 3-4-3-4-3H6.5"})]}),B=e=>(0,D.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 32 32",...e,children:[(0,D.jsx)("circle",{cx:22,cy:24,r:2,fill:"currentColor"}),(0,D.jsx)("path",{fill:"none",d:"M22 28a4 4 0 1 1 4-4 4.004 4.004 0 0 1-4 4m0-6a2 2 0 1 0 2 2 2.003 2.003 0 0 0-2-2"}),(0,D.jsx)("path",{fill:"currentColor",d:"M29.777 23.479A8.64 8.64 0 0 0 22 18a8.64 8.64 0 0 0-7.777 5.479L14 24l.223.521A8.64 8.64 0 0 0 22 30a8.64 8.64 0 0 0 7.777-5.479L30 24ZM22 28a4 4 0 1 1 4-4 4.005 4.005 0 0 1-4 4"}),(0,D.jsx)("path",{fill:"currentColor",d:"M12 28H8V4h8v6a2.006 2.006 0 0 0 2 2h6v4h2v-6a.91.91 0 0 0-.3-.7l-7-7A.9.9 0 0 0 18 2H8a2.006 2.006 0 0 0-2 2v24a2.006 2.006 0 0 0 2 2h4Zm6-23.6 5.6 5.6H18Z"})]}),M=e=>(0,D.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 32 32",...e,children:(0,D.jsx)("path",{fill:"currentColor",d:"M28 12v-2h-6V4h-2v6h-8V4h-2v6H4v2h6v8H4v2h6v6h2v-6h8v6h2v-6h6v-2h-6v-8Zm-8 8h-8v-8h8Z"})}),S=e=>(0,D.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 32 32",...e,children:(0,D.jsx)("path",{fill:"currentColor",d:"M13.414 17.586 18 22.172V8H8V6h10a2 2 0 0 1 2 2v14.172l4.586-4.586L26 19l-7 7-7-7Z"})}),T=e=>(0,D.jsx)("svg",{width:32,height:32,viewBox:"0 0 24 24",...e,children:(0,D.jsxs)("g",{fill:"none",stroke:"var(--rp-c-brand)",strokeLinecap:"round",strokeWidth:2,children:[(0,D.jsx)("path",{strokeDasharray:60,strokeDashoffset:60,strokeOpacity:.3,d:"M12 3a9 9 0 1 1 0 18 9 9 0 0 1 0-18Z",children:(0,D.jsx)("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"1.3s",values:"60;0"})}),(0,D.jsxs)("path",{strokeDasharray:15,strokeDashoffset:15,d:"M12 3a9 9 0 0 1 9 9",children:[(0,D.jsx)("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"0.3s",values:"15;0"}),(0,D.jsx)("animateTransform",{attributeName:"transform",dur:"1.5s",repeatCount:"indef
2inite",type:"rotate",values:"0 12 12;360 12 12"})]})]})}),z=e=>(0,D.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",...e,children:(0,D.jsx)("path",{fill:"currentColor",d:"M4 6h24v2H4zm0 18h24v2H4zm0-12h24v2H4zm0 6h24v2H4z"})}),L=e=>(0,D.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:19,fill:"none",viewBox:"0 0 19 19",...e,children:(0,D.jsx)("path",{fill:"currentColor",d:"M9.166 0a9.2 9.2 0 0 1 1.857.188.834.834 0 0 1 .042 1.623 4.47 4.47 0 1 0 5.457 5.457l.048-.135a.834.834 0 0 1 1.575.177q.186.902.188 1.856A9.168 9.168 0 1 1 9.166 0"})}),$=e=>(0,D.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 16 16",...e,children:[(0,D.jsx)("path",{stroke:"currentColor",strokeOpacity:.8,strokeWidth:1.333,d:"M8 14.667A6.667 6.667 0 1 0 8 1.333a6.667 6.667 0 0 0 0 13.334Z",clipRule:"evenodd"}),(0,D.jsx)("path",{stroke:"currentColor",strokeLinejoin:"round",strokeOpacity:.8,strokeWidth:1.333,d:"M8 14.667A6.667 6.667 0 1 0 8 1.333a6.667 6.667 0 0 0 0 13.334Z"}),(0,D.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeOpacity:.8,strokeWidth:1.333,d:"M11 9 8 6 5 9"})]}),H=e=>(0,D.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 21",...e,children:(0,D.jsx)("path",{fill:"currentColor",d:"M8.333 1.913A6.667 6.667 0 0 1 15 8.58c0 1.54-.525 2.957-1.402 4.085l4.49 4.492a.834.834 0 0 1-1.177 1.178l-4.491-4.49a6.64 6.64 0 0 1-4.087 1.402 6.667 6.667 0 0 1 0-13.334m0 1.667a5 5 0 1 0 0 10 5 5 0 0 0 0-10"})}),O=e=>(0,D.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:21,height:21,fill:"none",viewBox:"0 0 21 21",...e,children:(0,D.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.667,d:"M3.645 5.225h13.333M3.645 10.225h13.333M3.645 15.225h13.333"})}),P=e=>(0,D.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 24 24",...e,children:(0,D.jsx)("path",{fill:"currentColor",d:"m9.55 18-5.7-5.7 1.425-1.425L9.55 15.15l9.175-9.175L20.15 7.4z"})}),I=e=>(0,D.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",...e,children:(0,D.jsx)("path",{fill:"currentColor",d:"m7.001 15.848-1.226 1.226a.58.58 0 0 0 0 .818.58.58 0 0 0 .818 0l1.226-1.226a.58.58 0 0 0 0-.818.58.58 0 0 0-.818 0m-.352-8.735a.584.584 0 0 0 .825-.825L6.237 5.051a.584.584 0 0 0-.825.825zM5.011 11.07h-1.75a.584.584 0 0 0 0 1.167h1.75c.324 0 .584-.26.584-.583a.585.585 0 0 0-.584-.584m7.003-5.835c.324 0 .584-.26.584-.584V2.9a.58.58 0 0 0-.584-.584.58.58 0 0 0-.583.583V4.65c0 .323.262.584.583.584m5.616 1.621 1.226-1.225a.58.58 0 0 0 0-.818.58.58 0 0 0-.818 0l-1.226 1.225a.58.58 0 0 0 0 .818.576.576 0 0 0 .818 0m3.138 4.214h-1.75a.58.58 0 0 0-.584.584c0 .324.26.584.583.584h1.751a.584.584 0 1 0 0-1.167m-3.389 5.124a.584.584 0 0 0-.825.825l1.238 1.238a.584.584 0 0 0 .825-.826zm-5.365-9.795a5.256 5.256 0 0 0-5.257 5.258 5.256 5.256 0 0 0 5.257 5.257 5.256 5.256 0 0 0 5.257-5.257 5.256 5.256 0 0 0-5.257-5.258m0 11.675a.58.58 0 0 0-.583.583v1.751a.582.582 0 1 0 1.167 0v-1.75a.584.584 0 0 0-.584-.584"})}),R=e=>(0,D.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:(0,D.jsx)("path",{fill:"currentColor",d:"M4 4a2 2 0 0 1 2-2h8a1 1 0 0 1 .707.293l5 5A1 1 0 0 1 20 8v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm13.586 4L14 4.414V8zM12 4H6v16h12V10h-5a1 1 0 0 1-1-1z"})}),W=e=>(0,D.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 24 24",...e,children:(0,D.jsx)("path",{fill:"currentColor",d:"M16 7H3V5h13zM3 19h13v-2H3zm19-7-4-3v2H3v2h15v2z"})}),G=e=>(0,D.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 24 24",...e,children:(0,D.jsx)("path",{fill:"currentColor",d:"M21 5H3v2h18zM3 19h7v-2H3zm0-6h15c1 0 2 .43 2 2s-1 2-2 2h-2v-2l-4 3 4 3v-2h2c2.95 0 4-1.27 4-4 0-2.72-1-4-4-4H3z"})}),V=e=>(0,D.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e,children:(0,D.jsx)("path",{stroke:"currentColor",d:"M9.333 2H14v4.667M14 9.825V13a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h3M8.6 7.4l5.1-5.1"})}),U=e=>(0,D.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:(0,D.jsxs)("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[(0,D.jsx)("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}),(0,D.jsx)("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"})]})});var Z=r("r");function q(e){let{children:t,type:r="tip",text:n,outline:i=!1}=e;return(0,D.jsx)("span",{className:(0,Z.A)("rp-badge",`rp-badge--${r}`,i&&"rp-badge--outline"),children:t||n})}r("T");var K=r("qI");function Y(e){let{theme:t="brand",size:r="big",href:n="/",className:i="",children:s,dangerouslySetInnerHTML:o}=e,l=null;return"button"===e.type?l="button":"a"===e.type&&(l=K.N_),w.createElement(l??"a",{className:(0,Z.A)("rp-button",`rp-button--${t}`,`rp-button--${r}`,i),href:n,...o},s)}function J(e){return e.charAt(0).toUpperCase()+e.slice(1)}function X(e){let{type:t,title:r,children:n}=e;return"details"===t?(0,D.jsxs)("details",{className:`rp-callout rp-callout--${t}`,children:[(0,D.jsx)("summary",{className:"rp-callout__title",children:r??J(t)}),(0,D.jsx)("div",{className:"rp-callout__content",children:n})]}):(0,D.jsxs)("div",{className:`rp-callout rp-callout--${t}`,children:[(0,D.jsx)("div",{className:"rp-callout__title",children:r??J(t)}),(0,D.jsx)("div",{className:"rp-callout__content",children:n})]})}
2function Q(e){let{containerElementClassName:t,title:r,lang:n="txt",wrapCode:i=!1,lineNumbers:s=!1,fold:o=!1,height:l,codeButtonGroupProps:a,children:u}=e,{wrapCode:c,toggleWrapCode:h,copyElementRef:d}=(0,K.i6)(i),[f,p]=(0,w.useState)(!1),[m,g]=(0,w.useState)(!1),v=!o&&void 0!==l,x=(0,w.useRef)(null),y=(0,w.useRef)(null);(0,w.useEffect)(()=>{if(!o||!y.current)return void g(!1);let e=l??300;g(y.current.scrollHeight>e)},[o,l]);let _=(0,w.useCallback)(()=>{f?(p(!1),requestAnimationFrame(()=>{if(x.current){let e=x.current.getBoundingClientRect();e.top<0&&window.scrollBy({top:e.top-16,behavior:"smooth"})}})):p(!0)},[f]);return(0,D.jsxs)("div",{className:(0,Z.A)("rp-codeblock",`language-${n}`,t),ref:x,children:[r&&(0,D.jsx)("div",{className:"rp-codeblock__title",children:r}),(0,D.jsxs)("div",{className:(0,Z.A)("rp-codeblock__content",c&&"rp-codeblock__content--wrap-code",s&&"rp-codeblock__content--line-numbers",m&&!f&&"rp-codeblock__content--fold",v&&"rp-codeblock__content--scroll"),style:m&&!f?{maxHeight:`${l??300}px`}:v?{maxHeight:`${l}px`}:void 0,ref:y,children:[(0,D.jsx)("div",{className:"rp-codeblock__content__scroll-container rp-scrollbar rp-scrollbar--always",ref:d,children:u}),(0,D.jsx)(K.zq,{...a,copyElementRef:d,wrapCode:c,toggleWrapCode:h})]}),m&&(0,D.jsx)("button",{type:"button",className:(0,Z.A)("rp-codeblock__fold-btn",f&&"rp-codeblock__fold-btn--expanded"),onClick:_,"aria-label":f?"Collapse code":"Expand code","aria-expanded":f,children:(0,D.jsx)(K.Ge,{icon:K.RG,className:"rp-codeblock__fold-btn__icon"})})]})}r("D"),r("L"),r("pw");var ee=r("IE"),et=r("aM"),er=r("Tz");function en(){let e=(0,er.u)();return(0,w.useCallback)((t,r)=>{let n=et.A[t]?.[e];if("string"!=typeof n)throw Error(`i18n key "${t}" not found for language "${e}"`);return n.replace(/\{\{(\w+)\}\}/g,(e,t)=>r?.[t]??`${t}`)},[e])}r("Sn"),r("SM");let ei=new Map,es="rp-code-copy-button--copied";async function eo(e,t){if(!e)return;let r=(0,K.El)(e,{ignoreClasses:["linenumber"],ignoreSelectors:[".rp-copy-ignore"]});if(await (0,K.lW)(r)&&t){t.classList.add(es),clearTimeout(ei.get(t));let e=setTimeout(()=>{t.classList.remove(es),t.blur(),ei.delete(t)},2e3);ei.set(t,e)}}function el(e){let{codeBlockRef:t}=e,r=(0,w.useRef)(null),n=en();return(0,D.jsxs)("button",{className:"rp-code-button-group__button rp-code-copy-button",onClick:()=>{eo(t.current,r.current)},ref:r,title:n("codeButtonGroupCopyButtonText"),children:[(0,D.jsx)(K.Ge,{icon:K.bz,className:"rp-code-button-group__icon rp-code-copy-button__icon rp-code-copy-button__icon--copy"}),(0,D.jsx)(K.Ge,{icon:K.lv,className:"rp-code-button-group__icon rp-code-copy-button__icon rp-code-copy-button__icon--success"})]})}let ea=e=>{let{site:t}=(0,ee.Z)(),{defaultWrapCode:r}=t.markdown,[n,i]=(0,w.useState)(e??r);return{copyElementRef:(0,w.useRef)(null),wrapCode:n,toggleWrapCode:()=>{i(!n)}}};function eu(e){let{wrapCode:t,toggleWrapCode:r,copyElementRef:n,showWrapCodeButton:i=!0,showCopyButton:s=!0}=e,o=en();return(0,D.jsx)(D.Fragment,{children:(0,D.jsxs)("div",{className:"rp-code-button-group",children:[i&&(0,D.jsxs)("button",{className:(0,Z.A)("rp-code-button-group__button","rp-code-wrap-button",t&&"rp-code-wrap-button--wrapped"),onClick:()=>r(),title:o("codeButtonGroupWrapButtonText"),"aria-label":o("codeButtonGroupWrapButtonText"),children:[(0,D.jsx)(K.Ge,{icon:K.hG,className:"rp-code-button-group__icon rp-code-button-group__icon--wrapped"}),(0,D.jsx)(K.Ge,{icon:K.QB,className:"rp-code-button-group__icon rp-code-button-group__icon--wrap"})]}),s&&(0,D.jsx)(el,{codeBlockRef:n})]})})}let ec=e=>(0,D.jsx)(K.N_,{...e});function eh(e){return(0,D.jsx)("code",{...e})}let ed=e=>(0,D.jsx)("hr",{...e});var ef=r("h");let ep=e=>(0,D.jsx)("img",{...e,src:(0,ef.As)(e.src||"")}),em=e=>(0,D.jsx)("ol",{...e}),eg=e=>(0,D.jsx)("ul",{...e}),ev=e=>(0,D.jsx)("li",{...e}),ex=e=>(0,D.jsx)("p",{...e}),ey=e=>(0,D.jsx)("blockquote",{...e}),eD=e=>(0,D.jsx)("strong",{...e});function ew(e){let{title:t,lang:r,wrapCode:n,lineNumbers:i,fold:s,height:o,containerElementClassName:l,codeButtonGroupProps:a,...u}=e;return(0,D.jsx)(K.NG,{title:t,lang:r,wrapCode:n,lineNumbers:i,fold:s,height:o,c
2ontainerElementClassName:l,codeButtonGroupProps:a,children:(0,D.jsx)("pre",{...u,"data-lang":r,"data-title":t})})}let e_=(0,w.forwardRef)((e,t)=>(0,D.jsx)("div",{className:"rp-table-scroll-container rp-scrollbar",children:(0,D.jsx)("table",{ref:t,...e})})),eb=e=>(0,D.jsx)("tr",{...e}),ej=e=>(0,D.jsx)("td",{...e}),eF=e=>(0,D.jsx)("th",{...e});var eC=r("Dv");let eA=e=>{let{className:t,children:r,...n}=e,{frontmatter:{tag:i}}=(0,eC.s)(),{site:s}=(0,ee.Z)(),o=s?.themeConfig?.llmsUI,l="object"==typeof o?o?.placement??"title":"title";return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)("h1",{className:(0,Z.A)("rp-toc-include",t),...n,children:[r," ",(0,D.jsx)(K.OT,{tag:i})]}),"title"===l&&(0,D.jsxs)(K.QZ,{children:[(0,D.jsx)(K.mS,{}),(0,D.jsx)(K.YU,{})]})]})},eE=e=>{let{className:t,...r}=e;return(0,D.jsx)("h2",{className:(0,Z.A)("rp-toc-include",t),...r})},ek=e=>{let{className:t,...r}=e;return(0,D.jsx)("h3",{className:(0,Z.A)("rp-toc-include",t),...r})},eN=e=>{let{className:t,...r}=e;return(0,D.jsx)("h4",{className:(0,Z.A)("rp-toc-include",t),...r})},eB=e=>{let{className:t,...r}=e;return(0,D.jsx)("h5",{className:(0,Z.A)("rp-toc-include",t),...r})},eM=e=>{let{className:t,...r}=e;return(0,D.jsx)("h6",{className:(0,Z.A)("rp-toc-include",t),...r})};function eS(){return{h1:eA,h2:eE,h3:ek,h4:eN,h5:eB,h6:eM,ul:eg,ol:em,li:ev,table:e_,td:ej,th:eF,tr:eb,hr:ed,p:ex,blockquote:ey,strong:eD,a:ec,code:eh,img:ep,pre:ew}}var eT=r("i"),ez=r("u"),eL=r("X");function e$(){let{site:e}=(0,ee.Z)(),{page:t}=(0,ez.e)(),{headingTitle:r,title:n}=t;return!1!==e.themeConfig.fallbackHeadingTitle&&!r&&(0,D.jsx)(K.x5,{level:1,title:n})}function eH(e){let{components:t,isOverviewPage:r=!1,afterDocContent:n,beforeDocContent:i}=e;(0,K.YW)();let s={...(0,K.GD)(),...t,$$$callout$$$:K.Pq};return(0,D.jsxs)(eT.x,{components:s,children:[i,!r&&(0,D.jsx)(e$,{}),(0,D.jsx)(eL.U,{}),n]})}function eO(){return(0,D.jsxs)("footer",{className:"rp-doc-footer",children:[(0,D.jsxs)("div",{className:"rp-doc-footer__edit",children:[(0,D.jsx)(K.Lp,{}),(0,D.jsx)(K.KS,{})]}),(0,D.jsx)("div",{className:"rp-doc-footer__divider"}),(0,D.jsx)(K.UC,{})]})}r("b"),r("pM"),r("t");var eP=r("z");function eI(){let{page:e}=(0,ez.e)(),{pages:t}={pages:eP.Y.pages},{site:r}=(0,ee.Z)();return{page:e,siteData:{...r,pages:t}}}function eR(e){let{isOutline:t}=e,r=function(){let{siteData:e,page:t}=eI(),r=e.themeConfig?.editLink,n=en()("editLinkText");if(!r?.docRepoBaseUrl||!n)return null;let{docRepoBaseUrl:i}=r;i.endsWith("/")||(i+="/");let s=t._relativePath.replace(/\\/g,"/");return{text:n,link:`${i}${s}`}}();if(!r)return null;let{text:n,link:i}=r;return t?(0,D.jsxs)(K.N_,{href:i,className:"rp-outline__action-row rp-edit-link",children:[(0,D.jsx)(K.Ge,{icon:K.GI,width:"16",height:"16"}),(0,D.jsx)("span",{children:n})]}):(0,D.jsx)(K.N_,{href:i,className:"rp-edit-link",children:n})}let eW=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u
20F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g;function eG(e){var t;let{level:r,title:n}=e,i=n&&("string"!=typeof(t=n.trim())?"":(t=t.toLowerCase()).replace(eW,"").replace(/ /g,"-")),s=(0,w.useMemo)(()=>{let e=(()=>{let{h1:e,h2:t,h3:r,h4:n,h5:i,h6:s}=(0,K.GD)();return{1:e,2:t,3:r,4:n,5:i,6:s}})();return e[r]||e[1]},[r]),o=(0,w.useMemo)(()=>(0,K.GD)().a,[]);return i&&(0,D.jsxs)(s,{id:i,children:[(0,D.jsx)("span",{...(0,K.nl)(n)}),(0,D.jsx)(o,{className:"rp-header-anchor",href:`#${i}
2`,"aria-hidden":!0,children:"#"})]})}function eV(e){let{className:t,...r}=e,n=(()=>{let{topArrived:e}=(()=>{let[e,t]=(0,w.useState)(0);return(0,w.useEffect)(()=>{let e=()=>{t(window.scrollY)};return e(),window.addEventListener("scroll",e,{capture:!1,passive:!0}),()=>{window.removeEventListener("scroll",e)}},[]),{topArrived:e<100}})();return(0,w.useLayoutEffect)(()=>{e?document.body.classList.remove("notTopArrived"):document.body.classList.add("notTopArrived")},[e]),(0,D.jsx)("style",{children:"body:not(.notTopArrived) .rp-nav {background: transparent !important; border-bottom: 1px solid transparent !important;}.rp-nav {background: color-mix(in srgb,var(--rp-c-bg) 60%,transparent);backdrop-filter: blur(25px);}"})})();return(0,D.jsxs)(D.Fragment,{children:[n,(0,D.jsx)("div",{className:(0,Z.A)("rp-home-background",t),...r})]})}function eU(e){let{feature:t}=e,{icon:r,title:n,details:i,link:s}=t,{innerProps:o,outerProps:l,outerRef:a,shineDom:u}=(()=>{let e,t,r,n,[i,s]=(0,w.useState)(null),[o,l]=(0,w.useState)(null),[a,u]=(0,w.useState)(!1),c=(0,w.useRef)(null),h=e=>{let{pageX:t,pageY:r}=e;s(t),l(r)},d=()=>{u(!0)},f=()=>{u(!1)},p=c.current;if(i&&o&&p&&a){let s=p.clientWidth||p.offsetWidth||p.scrollWidth,l=p.clientHeight||p.offsetHeight||p.scrollHeight,a=document.body.scrollTop||document.getElementsByTagName("html")[0].scrollTop,u=document.body.scrollLeft,c=p.getBoundingClientRect(),h=320/s*.05,d=.52-(i-c.left-u)/s,f=.52-(o-c.top-a)/l,m=o-c.top-a-l/2,g=i-c.left-u-s/2,v=(m-f)*(Math.min(c.width/c.height,1)*h),x=180*Math.atan2(m,g)/Math.PI-90;e=`translateX(${d-.1}px) translateY(${f-.1}px)`,t=`linear-gradient(${x<0?x+360:x}deg, rgba(255, 255, 255, ${(o-c.top-a)/l*.2}) 0%, rgba(255, 255, 255, 0) 50%)`,r=`rotateX(${v}deg) rotateY(${(d-g)*h}deg)`,n=`perspective(${2*s}px)`}else e="",t="",r="",n="";return{outerProps:{style:{transform:n,transformStyle:"preserve-3d"},onMouseEnter:d,onMouseLeave:f,onMouseMove:h,onTouchMove:e=>{e.preventDefault();let{pageX:t,pageY:r}=e.touches[0];h({pageX:t,pageY:r})},onTouchStart:d,onTouchEnd:f},outerRef:c,innerProps:{style:{transform:r}},shineDom:(0,D.jsx)("div",{className:"rp-home-feature__item__shine",style:{position:"absolute",userSelect:"none",pointerEvents:"none",top:"0",left:"0",right:"0",bottom:"0",borderRadius:"20px",zIndex:"8",...e?{transform:e}:{},...t?{background:t}:{}}})}})(),c=(0,K.X6)();return(0,D.jsxs)("div",{...l,className:`rp-home-feature__item ${(e=>{let{span:t}=e;switch(t){case 2:return"rp-home-feature__item--span-2";case 3:return"rp-home-feature__item--span-3";case 4:case void 0:return"rp-home-feature__item--span-4";case 6:return"rp-home-feature__item--span-6";default:return""}})(t)}`,ref:a,children:[(0,D.jsx)("div",{className:"rp-home-feature__item-wrapper",...o,children:(0,D.jsxs)("article",{className:`rp-home-feature__card ${s?"rp-home-feature__card--clickable":""}`,onClick:()=>{s&&c(s)},children:[(0,D.jsxs)("div",{className:"rp-home-feature__title-wrapper",children:[r?(0,D.jsx)("div",{className:"rp-home-feature__icon",children:(0,D.jsx)(K.Ge,{icon:r})}):null,(0,D.jsx)("h2",{className:"rp-home-feature__title",children:n})]}),(0,D.jsx)("p",{className:"rp-home-feature__detail",...(0,K.i7)(i)})]},n)}),u]},n)}function eZ(e){let{features:t}=e,{frontmatter:r}=(0,eC.s)(),n=t??r?.features;return(0,D.jsx)("div",{className:"rp-home-feature",children:n?.map(e=>(0,D.jsx)(eU,{feature:e},e.title))})}function eq(){let{site:e}=(0,ee.Z)(),{message:t}=e.themeConfig.footer||{};return t?(0,D.jsx)("footer",{className:"rp-home-footer",children:(0,D.jsx)("div",{className:"rp-home-footer__container",children:(0,D.jsx)("div",{className:"rp-home-footer__message",...(0,K.i7)(t)})})}):null}r("F7"),r("Az"),r("BX"),r("W5");let eK={badge:"",name:"",text:"",tagline:"",actions:[],image:void 0};function eY(e){let{beforeHeroActions:t,afterHeroActions:r,image:n}=e,{frontmatter:i}=(0,eC.s)(),s=i?.hero||eK,o=void 0!==s.image||void 0!==n,l=s.text?s.text.toString().split(/\n/g).filter(e=>""!==e):[],a="string"==typeof s.image?.src?{light:s.image.src,dark:s.image.src}:s.image?.src||{light:"",dark:""};return(0,D.jsxs)("div",{className:(0,Z.A)("rp-home-hero",{"rp-home-hero--no-image":!o}),children:[(0,D.jsxs)("div",{className:"rp-home-hero__container",children:[s.badge&&("string"==typeof s.badge?(0,D.jsx)("div",{className:"rp-home-hero__badge",children:s.badge}):s.badge.link?(0,D.jsx)(K.N_,{href:s.badge.link,className:"rp-home-hero__badge",children:s.badge.text}):(0,D.jsx)("div",{className:"rp-home-hero__badge",children:s.badge.text})),(0,D.jsxs)("div",{className:"rp-home-hero__content",children:[(0,D.jsx)("div",{className:"rp-home-hero__title",children:(0,D.jsx)("span",{className:"rp-home-hero__title-brand",...(0,K.i7)(s.name)})}),0!==l.length&&l.map(e=>(0,D.jsx)("div",{className:"rp-home-hero__subtitle",...(0,K.i7)(e)},e))]}),(0,D.jsx)("p",{className:"rp-home-hero__tagline",...(0,K.i7)(s.tagline)}),(0,D.jsxs)(D.Fragment,{children:[t,(0,D.jsx)("div",{className:"rp-home-hero__actions",children:s.actions?.map(e=>(0,D.jsx)(K.$n,{type:"a",href:e.link,theme:e.theme,className:"rp-home-hero__action",...(0,K.i7)(e.text)},e.link))}),r]})]}),n?(0,D.jsx)("div",{className:"rp-home-hero__image",children:n}):s.image?(0,D.jsxs)("div",{className:"rp-home-hero__image",children:[(0,D.jsx)("img",{src:(0,ef.As)(a.light),alt:s.image?.alt,srcSet:eJ(s.image?.srcset),sizes:eJ(s.image?.sizes),width:375,height:375,className:"rp-home-hero__image-img rp-home-hero__image-img--light"}),(0,D.jsx)("img",{src:(0,ef.As)(a.dark),alt:s.image?.alt,srcSet:eJ(s.image?.srcset),sizes:eJ(s.image?.sizes),width:375,height:375,className:"rp-home-hero__image-img rp-home-hero__image-img--dark"})]}):null]})}
2function eJ(e){return(Array.isArray(e)?e:[e]).filter(Boolean).join(", ")||void 0}var eX=r("C"),eQ=r("N");function e0(e){let{item:t,activeMatcher:r,depth:n=0}=e,{pathname:i}=(0,eX.zy)();if("items"in t&&t.items&&t.items.length>0){let e="link"in t&&t.link;return(0,D.jsxs)(D.Fragment,{children:[e&&(0,D.jsx)("li",{className:"rp-hover-group__item",style:{paddingLeft:`${8+12*n}px`},"data-depth":n,children:(0,D.jsxs)(K.N_,{href:t.link,download:"download"in t?t.download:void 0,"aria-label":t.text,className:"rp-hover-group__item__link",lang:t.lang,hrefLang:t.lang,rel:t.rel,children:[t.text,"tag"in t&&t.tag&&(0,D.jsx)(K.OT,{tag:t.tag})]})},t.text),t.items.map(e=>(0,D.jsx)(e0,{item:e,activeMatcher:r,depth:n+1},e.text))]})}if("link"in t){let{text:e,link:s,lang:o,rel:l}=t,a="download"in t?t.download:void 0,u=r?r(t):(0,eQ.sP)(t,i);return(0,D.jsx)("li",{className:(0,Z.A)("rp-hover-group__item",{"rp-hover-group__item--active":u}),style:{paddingLeft:`${8+12*n}px`},"data-depth":n,children:s?(0,D.jsxs)(K.N_,{href:s,download:a,"aria-label":e,className:"rp-hover-group__item__link",lang:o,hrefLang:o,rel:l,children:[e,"tag"in t&&t.tag&&(0,D.jsx)(K.OT,{tag:t.tag})]}):(0,D.jsxs)("div",{className:"rp-hover-group__item__link",lang:o,children:[e,"tag"in t&&t.tag&&(0,D.jsx)(K.OT,{tag:t.tag})]})},e+s)}return(0,D.jsx)("li",{className:"rp-hover-group__item",style:{paddingLeft:`${8+12*n}px`},"data-depth":n,children:(0,D.jsxs)("div",{className:"rp-hover-group__item__link",children:[t.text,"tag"in t&&t.tag&&(0,D.jsx)(K.OT,{tag:t.tag})]})},t.text)}function e1(e){let{items:t,customChildren:r,isOpen:n,position:i="center",activeMatcher:s}=e;return(0,D.jsx)("ul",{className:(0,Z.A)("rp-hover-group",{"rp-hover-group--hidden":!n,"rp-hover-group--left":"left"===i,"rp-hover-group--center":"center"===i,"rp-hover-group--right":"right"===i}),children:r??t?.map(e=>(0,D.jsx)(e0,{item:e,activeMatcher:s},e.text))})}function e2(e){let{items:t,activeMatcher:r,customChildren:n,position:i}=e,s=(0,w.useRef)(null),[o,l]=(0,w.useState)(!1),a=(0,w.useCallback)(()=>{s.current&&(clearTimeout(s.current),s.current=null)},[]),u=(0,w.useCallback)(()=>{l(!0),a()},[l]),c=(0,w.useCallback)(()=>{s.current=window.setTimeout(()=>{l(!1)},150)},[l]);return{hoverGroup:(0,w.useMemo)(()=>(0,D.jsx)(e1,{items:t,customChildren:n,isOpen:o,activeMatcher:r,position:i}),[t,n,o,r]),handleMouseEnter:u,handleMouseLeave:c}}function e4(){let{page:{lastUpdatedTime:e,lastUpdatedAuthor:t}}=(0,ez.e)(),{site:r}=(0,ee.Z)(),{themeConfig:n}=r,i=n.lastUpdated,s=en();return i&&e?(0,D.jsx)("div",{className:"rp-last-updated",children:(0,D.jsxs)("p",{children:[s("lastUpdatedText"),": ",(0,D.jsx)("span",{children:e}),t&&(0,D.jsxs)(D.Fragment,{children:[" ",s("lastUpdatedAuthorText")," ",(0,D.jsx)("span",{children:t})]})]})}):null}r("O"),r("Ls");var e5=r("IV"),e3=r("Q");function e6(e){return(0,D.jsx)("div",{...e,className:"rp-not-doc rp-llms-container"})}function e7(){let{page:e}=eI();return(0,w.useMemo)(()=>({pathname:(0,ef.qp)(e.routePath)}),[e.routePath])}r("I3"),r("TT"),r("SC");let e8=new Map;function e9(e){let{onClick:t,...r}=e,n=en(),{pathname:i}=e7(),[s,o]=(0,w.useState)(!1),[l,a]=(0,w.useState)(!1),u=(0,w.useRef)(null),c=(0,w.useCallback)(async()=>{o(!0);try{let e=e8.get(i)??await fetch(i).then(e=>e.text());if(e8.set(i,e),!await (0,K.lW)(e))return;a(!0),u.current&&(clearTimeout(u.current),u.current=null),u.current=window.setTimeout(()=>{a(!1),u.current=null},500)}finally{o(!1)}},[i]);return i?(0,D.jsxs)("button",{...r,disabled:s,className:["rp-not-doc","rp-llms-button","rp-llms-copy-button",s?"rp-llms-copy-button--loading":"",l?"rp-llms-copy-button--success":""].filter(Boolean).join(" "),onClick:t??c,children:[(0,D.jsxs)("div",{className:"rp-llms-copy-button__icon-wrapper",children:[(0,D.jsx)(K.Ge,{icon:K.lv,className:"rp-llms-copy-button__icon-success"}),(0,D.jsx)(K.Ge,{icon:K.bz,className:"rp-llms-copy-button__icon-copy"})]}),(0,D.jsx)("span",{children:n("copyMarkdownText")})]}):(0,D.jsx)(D.Fragment,{})}r("xX");let te=["markdownLink","chatgpt","claude"];function tt(e){let{options:t}=e,{site:r}=(0,ee.Z)(),n=r?.themeConfig?.llmsUI,i=("object"==typeof n?n?.viewOptions:t)??te,[s,o]=(0,w.useState)(!1),l=(0,w.useRef)(null);(0,w.useEffect)(()=>{let e=e=>{l.current&&e.target&&!l.current.contains(e.target)&&o(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);let{pathname:a}=e7(),u=en(),c=(0,w.useMemo)(()=>{let e="u">typeof window?new URL(a,window.location.origin).toString():"loading",t=`Read ${e}, I want to ask questions about it.`;return{markdownLink:{title:u("copyMarkdownLinkText"),icon:(0,D.jsx)(K.Ge,{icon:K.AX}),onClick:()=>{(0,K.lW)(e)}}
2,chatgpt:{title:u("openInText",{name:"ChatGPT"}),href:`https://chatgpt.com/?${new URLSearchParams({hints:"search",q:t})}`,icon:(0,D.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[(0,D.jsx)("title",{children:"OpenAI"}),(0,D.jsx)("path",{d:"M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z"}),(0,D.jsx)("path",{d:"M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z"})]})},claude:{title:u("openInText",{name:"Claude"}),href:`https://claude.ai/new?${new URLSearchParams({q:t})}`,icon:(0,D.jsxs)("svg",{fill:"currentColor",role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,D.jsx)("title",{children:"Anthropic"}),(0,D.jsx)("path",{d:"M17.3041 3.541h-3.6718l6.696 16.918H24Zm-10.6082 0L0 20.459h3.7442l1.3693-3.5527h7.0052l1.3693 3.5528h3.7442L10.5363 3.5409Zm-.3712 10.2232 2.2914-5.9456 2.2914 5.9456Z"})]})}}},[a,u]);return(0,D.jsx)(D.Fragment,{children:(0,D.jsxs)("button",{ref:l,onClick:()=>{o(!s)},className:`rp-llms-button rp-llms-view-options__trigger ${s?"rp-llms-view-options__trigger--active":""}`,children:[(0,D.jsx)(K.Ge,{icon:K.Y7,className:`rp-llms-view-options__arrow ${s?"rp-llms-view-options__arrow--rotated":""}`}),s&&(0,D.jsx)("div",{className:"rp-llms-view-options__menu",children:i.map(e=>{let t=e;return("markdownLink"===e?t=c.markdownLink:"chatgpt"===e?t=c.chatgpt:"claude"===e&&(t=c.claude),t.href)?(0,D.jsxs)("a",{className:"rp-llms-view-options__menu-item",href:t.href,target:"_blank",rel:"noopener noreferrer",children:[(0,D.jsx)("span",{className:"rp-llms-view-options__item-icon",children:t.icon}),(0,D.jsx)("span",{children:t.title}),(0,D.jsx)("span",{className:"rp-llms-view-options__external-icon",children:(0,D.jsx)(K.Ge,{icon:K.HW})})]},t.title):(0,D.jsxs)("div",{className:"rp-llms-view-options__menu-item",onClick:t.onClick,children:[(0,D.jsx)("span",{className:"rp-llms-view-options__item-icon",children:t.icon}),(0,D.jsx)("span",{children:t.title})]},t.title)})})]})})}let tr=new Map;function tn(){let e=en(),{pathname:t}=e7(),[r,n]=(0,w.useState)(!1),[i,s]=(0,w.useState)(!1),o=(0,w.useRef)(null),l=(0,w.useCallback)(async()=>
2{if(t){n(!0);try{let e=tr.get(t)??await fetch(t).then(e=>e.text());if(tr.set(t,e),!await (0,K.lW)(e))return;s(!0),o.current&&(clearTimeout(o.current),o.current=null),o.current=window.setTimeout(()=>{s(!1),o.current=null},1500)}finally{n(!1)}}},[t]);return t?(0,D.jsxs)("button",{className:"rp-outline__action-row",onClick:l,disabled:r,children:[(0,D.jsx)(K.Ge,{icon:i?K.lv:K.bz}),(0,D.jsx)("span",{children:e("copyMarkdownText")})]}):null}function ti(){let e=en(),{pathname:t}=e7(),{site:r}=(0,ee.Z)(),n=r?.themeConfig?.llmsUI,[i,s]=(0,w.useState)(!1),o=(0,w.useRef)(null),l="object"==typeof n&&n?.viewOptions?n.viewOptions:["chatgpt","claude"];(0,w.useEffect)(()=>{let e=e=>{o.current&&e.target&&!o.current.contains(e.target)&&s(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);let a=(0,w.useMemo)(()=>"u">typeof window?new URL(t,window.location.origin).toString():"",[t]),u=`Read ${a}, I want to ask questions about it.`,c=(0,w.useMemo)(()=>({chatgpt:{title:e("openInText",{name:"ChatGPT"}),href:`https://chatgpt.com/?${new URLSearchParams({hints:"search",q:u})}`,icon:(0,D.jsx)("svg",{role:"img",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",children:(0,D.jsx)("path",{d:"M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z"})})},claude:{title:e("openInText",{name:"Claude"}),href:`https://claude.ai/new?${new URLSearchParams({q:u})}`,icon:(0,D.jsx)("svg",{fill:"currentColor",role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",children:(0,D.jsx)("path",{d:"M17.3041 3.541h-3.6718l6.696 16.918H24Zm-10.6082 0L0 20.459h3.7442l1.3693-3.5527h7.0052l1.3693 3.5528h3.7442L10.5363 3.5409Zm-.3712 10.2232 2.2914-5.9456 2.2914 5.9456Z"})})}}),[e,u]);return t?(0,D.jsxs)("div",{ref:o,className:"rp-outline__open-in-wrapper",children:[(0,D.jsxs)("button",{className:"rp-outline__action-row",onClick:()=>s(!i),children:[(0,D.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,D.jsx)("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),(0,D.jsx)("polyline",{points:"15 3 21 3 21 9"}),(0,D.jsx)("line",{x1:"10",y1:"14",x2:"21",y2:"3"})]}),(0,D.jsx)("span",{children:e("openInText",{name:"chat"})})]}),i&&(0,D.jsx)("div",{className:"rp-llms-view-options__menu",children:l.map(e=>{let t;if("string"==typeof e&&c[e])t=c[e];else{if("object"!=typeof e||!("title"in e))return null;t=e}return t.href?(0,D.jsxs)("a",{className:"rp-llms-view-options__menu-item",href:t.href,target:"_blank",rel:"noopener noreferrer",onClick:()=>s(!1),children:[(0,D.jsx)("span",{className:"rp-llms-view-options__item-icon",children:t.icon}),(0,D.jsx)("span",{children:t.title}),(0,D.jsx)("span",{className:"rp-llms-view-options__external-icon",children:(0,D.jsx)(K.Ge,{icon:K.HW})})]},t.title):(0,D.jsxs)("div",{className:"rp-llms-view-options__menu-item",onClick:()=>{t.onClick?.(),s(!1)},children:[(0,D.jsx)("span",{className:"rp-llms-view-options__item-icon",children:t.icon}),(0,D.jsx)("span",{children:t.title})]},t.title)})})]}):null}
2r("c");var ts=r("IY");function to(){let{page:e}=(0,ez.e)();return e.version||""}function tl(){let{nav:e}=(0,ts.l)(),t=to();return Array.isArray(e)?e:[...e[t.length>0?t:"default"]]}function ta(){let{page:e}=(0,ez.e)(),{site:t}=(0,ee.Z)(),r=to(),{pathname:n,search:i}=(0,eX.zy)(),s=t.lang||"",o=t.multiVersion.default||"",l=Object.values(t.locales||t.themeConfig.locales||{}),a=t.route?.cleanUrls||!1,u=l.length>1,{lang:c,pageType:h}=e;return u?{items:l.map(e=>{var t,l,u,d;let f,p,m,g,v,x=e.lang===c;return{text:e?.label,link:x?"":(t=n+i,l={current:c,target:e.lang,default:s},u={current:r,default:o},d="404"===h,(f=(0,ef.EJ)(t))&&!d||(f="/"),f=(0,ef.cc)(f),p="",m="",g="",v=f.split("/").filter(Boolean),u.current&&u.current!==u.default&&(p=v.shift()||""),l.target!==l.default?(m=l.target,l.current!==l.default&&v.shift()):v.shift(),g=v.join("/")||"",(p||m)&&!g&&(g=a?"index":"index.html"),(0,eQ.tb)([p,m,g].filter(Boolean).join("/"))),lang:e.lang,rel:"alternate"}}),activeValue:l.find(e=>c===e.lang)?.label}:{items:[]}}function tu(){let{page:e}=(0,ez.e)(),{site:t}=(0,ee.Z)(),r=to(),{pathname:n}=(0,eX.zy)(),i=t.route?.cleanUrls||!1,s=t.multiVersion.default||"";return{items:(t.multiVersion.versions||[]).map(t=>{var o,l;let a,u,c,h;return{text:t,link:(o={current:r,target:t,default:s},l="404"===e.pageType,(a=(0,ef.EJ)(n))&&!l||(a=(0,ef.cc)("/")),u="",c=a.split("/").filter(Boolean),o.target!==o.default?(u=o.target,o.current!==o.default&&c.shift()):c.shift(),h=c.join("/")||"",u&&!h&&(h=i?"index":"index.html"),(0,eQ.tb)([u,h].filter(Boolean).join("/")))}}),text:r,activeValue:r}}r("U"),r("ii");let tc=e=>(0,D.jsx)(K.Ge,{icon:K.RG,...e});function th(e){let{menuItem:t,children:r}=e;return(0,D.jsx)(D.Fragment,{children:"link"in t&&"string"==typeof t.link?(0,D.jsxs)(K.N_,{href:t.link,download:t.download,className:"rp-nav-menu__item__container",hrefLang:t.lang,lang:t.lang,rel:t.rel,children:[t.text,t.tag&&(0,D.jsx)(K.OT,{tag:t.tag}),r]}):(0,D.jsxs)("div",{className:"rp-nav-menu__item__container",children:[t.text,t.tag&&(0,D.jsx)(K.OT,{tag:t.tag}),r]})})}function td(e){let{menuItem:t,activeMatcher:r}=e,{handleMouseEnter:n,handleMouseLeave:i,hoverGroup:s}=(0,K.HF)({items:t.items,activeMatcher:r}),o=t.items.length>0;return(0,D.jsxs)("li",{className:"rp-nav-menu__item",onMouseEnter:n,onMouseLeave:i,onClick:n,children:[(0,D.jsx)(th,{menuItem:t,children:o&&(0,D.jsx)(tc,{className:"rp-nav-menu__item__icon"})}),s]})}function tf(e){let{menuItem:t}=e,{pathname:r}=(0,eX.zy)(),n=(0,w.useMemo)(()=>(0,eQ.sP)(t,r),[t,r]);return(0,D.jsx)("li",{className:(0,Z.A)("rp-nav-menu__item",n?"rp-nav-menu__item--active":""),children:(0,D.jsx)(th,{menuItem:t})})}function tp(e){let{menuItem:t}=e;return"items"in t&&Array.isArray(t.items)&&t.items.length>0?(0,D.jsx)(td,{menuItem:t}):"link"in t&&t.link.length>0?(0,D.jsx)(tf,{menuItem:t}):(0,D.jsx)("li",{className:"rp-nav-menu__item",children:(0,D.jsx)(th,{menuItem:t})})}function tm(){return(0,D.jsx)("div",{className:"rp-nav-menu__divider"})}function tg(){let{items:e,activeValue:t}=ta();return e.length>1?(0,D.jsx)(td,{menuItem:{text:t,items:e},activeMatcher:e=>e.text===t}):null}function tv(){let{activeValue:e,items:t}=tu();return t.length>1?(0,D.jsx)(td,{menuItem:{text:e,items:t},activeMatcher:t=>t.text===e}):null}function tx(e){let{menuItems:t,position:r}=e,n=(0,w.useMemo)(()=>t.filter(e=>(e.position??"right")===r),[t]);return 0===n.length?null:(0,D.jsx)("ul",{className:(0,Z.A)("rp-nav-menu",`rp-nav-menu--${r}`),children:n.map((e,t)=>(0,D.jsx)(tp,{menuItem:e},t))})}function ty(e){let{beforeNavTitle:t,afterNavTitle:r,beforeNavMenu:n,afterNavMenu:i,navTitle:s}=e,o=tl(),{site:l}=(0,ee.Z)(),a=(0,eQ.Nv)(l.themeConfig.darkMode);return(0,D.jsxs)("header",{className:"rp-nav",children:[(0,D.jsxs)("div",{className:"rp-nav__left",children:[t,s??(0,D.jsx)(K.ue,{}),(0,D.jsx)(tx,{menuItems:o,position:"left"}),r]}),(0,D.jsxs)("div",{className:"rp-nav__right",children:[n,(0,D.jsx)(K.vj,{}),(0,D.jsx)(tx,{menuItems:o,position:"right"}),(0,D.jsxs)("div",{className:"rp-nav__others",children:[(0,D.jsx)(tm,{}),(0,D.jsx)(tg,{}),(0,D.jsx)(tv,{}),a&&(0,D.jsx)(K.bS,{}),(0,D.jsx)(K.RP,{})]}),(0,D.jsx)(K.fx,{}),i]})]})}var tD=r("n"),tw=!1;if("u">
2typeof window){var t_={get passive(){tw=!0}};window.addEventListener("testPassive",null,t_),window.removeEventListener("testPassive",null,t_)}var tb="u">typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),tj=[],tF=!1,tC=-1,tA=void 0,tE=void 0,tk=void 0,tN=function(e){return tj.some(function(t){return!!(t.options.allowTouchMove&&t.options.allowTouchMove(e))})},tB=function(e){var t=e||window.event;return!!tN(t.target)||t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1)},tM=function(e){if(void 0===tk){var t=!!e&&!0===e.reserveScrollBarGap,r=window.innerWidth-document.documentElement.clientWidth;if(t&&r>0){var n=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"),10);tk=document.body.style.paddingRight,document.body.style.paddingRight=n+r+"px"}}void 0===tA&&(tA=document.body.style.overflow,document.body.style.overflow="hidden")},tS=function(){void 0!==tk&&(document.body.style.paddingRight=tk,tk=void 0),void 0!==tA&&(document.body.style.overflow=tA,tA=void 0)},tT=function(){if(void 0!==tE){var e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);document.body.style.position=tE.position,document.body.style.top=tE.top,document.body.style.left=tE.left,window.scrollTo(t,e),tE=void 0}},tz=function(e,t){var r=e.targetTouches[0].clientY-tC;return!tN(e.target)&&(t&&0===t.scrollTop&&r>0?tB(e):t&&t.scrollHeight-t.scrollTop<=t.clientHeight&&r<0?tB(e):(e.stopPropagation(),!0))},tL=function(e,t){e?!tj.some(function(t){return t.targetElement===e})&&(tj=[].concat(function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}(tj),[{targetElement:e,options:t||{}}]),tb?window.requestAnimationFrame(function(){if(void 0===tE){tE={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left};var e=window,t=e.scrollY,r=e.scrollX,n=e.innerHeight;document.body.style.position="fixed",document.body.style.top=-t,document.body.style.left=-r,setTimeout(function(){return window.requestAnimationFrame(function(){var e=n-window.innerHeight;e&&t>=n&&(document.body.style.top=-(t+e))})},300)}}):tM(t),tb&&(e.ontouchstart=function(e){1===e.targetTouches.length&&(tC=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&tz(t,e)},tF||(document.addEventListener("touchmove",tB,tw?{passive:!1}:void 0),tF=!0))):console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},t$=function(){tb&&(tj.forEach(function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null}),tF&&(document.removeEventListener("touchmove",tB,tw?{passive:!1}:void 0),tF=!1),tC=-1),tb?tT():tS(),tj=[]};function tH(e){let{children:t}=e,[r,n]=(0,w.useState)(!1);return((0,w.useEffect)(()=>{n(!0)},[]),r)?(0,D.jsx)(D.Fragment,{children:t}):null}function tO(){let{site:e}=(0,ee.Z)(),t=(0,eQ.Nv)(e.themeConfig.darkMode),r=en();return(0,D.jsx)(D.Fragment,{children:t&&(0,D.jsxs)("div",{className:"rp-nav-screen-appearance",children:[(0,D.jsx)("div",{className:"rp-nav-screen-appearance__left",children:r("themeText")}),(0,D.jsx)("div",{className:"rp-nav-screen-appearance__right",children:(0,D.jsx)(tH,{children:(0,D.jsx)(K.bS,{})})})]})})}r("aF"),r("tU"),r("g"),r("JQ");let tP=e=>(0,D.jsx)(K.Ge,{icon:K.RG,...e});function tI(e){let{left:t,right:r,isOpen:n,isActive:i,onClick:s,href:o,download:l}=e;return o?(0,D.jsxs)(K.N_,{href:o,className:(0,Z.A)("rp-nav-screen-menu-item",n&&"rp-nav-screen-menu-item--open",i&&"rp-nav-screen-menu-item--active"),onClick:s,download:l,children:[(0,D.jsx)("div",{className:"rp-nav-screen-menu-item__left",children:t}),(0,D.jsx)("div",{className:"rp-nav-screen-menu-item__right",children:r})]}):(0,D.jsxs)("div",{className:(0,Z.A)("rp-nav-screen-menu-item",n&&"rp-nav-screen-menu-item--open",i&&"rp-nav-screen-menu-item--active"),onClick:s,children:[(0,D.jsx)("div",{className:"rp-nav-screen-menu-item__left",children:t}),(0,D.jsx)("div",{className:"rp-nav-screen-menu-item__right",children:r})]})}function tR(e){let{menuItem:t}=e,{pathname:r}=(0,eX.zy)(),n=(0,w.useMemo)(()=>(0,eQ.sP)(t,r),[t,r]);return(0,D.jsx)(tI,{left:(0,D.jsxs)(D.Fragment,{children:[t.text,t.tag&&(0,D.jsx)(K.OT,{tag:t.tag})]}),right:null,href:t.link,download:t.download,isActive:n})}function tW(e){let{menuItem:t}=e,[r,n]=(0,w.useState)(!1);return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(tI,{left:(0,D.jsxs)(D.Fragment,{children:[t.text,t.tag&&(0,D.jsx)(K.OT,{tag:t.tag})]}),right:(0,D.jsx)(tP,{className:"rp-nav-screen-menu-item__icon"}),isOpen:r,onClick:()=>n(!r),href:"link"in t?t.link:void 0}),(0,D.jsx)("div",{className:"rp-nav-screen-menu-item__group",style:{display:"grid",gridTemplateRows:r?"1fr":"0fr",transition:"grid-template-rows .2s ease-out",width:"100%"},children:(0,D.jsx)("div",{className:"rp-nav-screen-menu-item__group-inner",children:t.items.map(e=>(0,D.jsx)(tG,{menuItem:e},e.text))})})]})}function tG(e){let{menuItem:t}=e;return"items"in t&&Array.isArray(t.items)&&t.items.length>0?(0,D.jsx)(tW,{menuItem:t}):"link"in t&&"string"==typeof t.link?(0,D.jsx)(tR,{menuItem:t}):(0,D.jsx)(tI,{left:(0,D.jsxs)(D.Fragment,{children:[t.text,t.tag&&(0,D.jsx)(K.OT,{tag:t.tag})]}),right:null})}function tV(){let{items:e,activeValue:t}=ta(),[r,n]=(0,w.useState)(!1),i=en();return e.length>1?(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)("div",{className:"rp-nav-screen-langs",onClick:()=>n(!r),children:[(0,D.jsx)("div",{className:"rp-nav-screen-langs__left",children:i("languagesText")}),(0,D.jsxs)("div",{className:"rp-nav-screen-langs__right",children:[t,(0,D.jsx)(tP,{className:`rp-nav-screen-langs__icon ${r?"rp-nav-screen-langs__icon--open":""}`})]})]}),(0,D.jsx)("div",{className:"rp-nav-screen-langs-group",style:{display:"grid",gridTemplateRows:r?"1fr":"0fr",transition:"grid-template-rows 0.2s ease-out"},children:(0,D.jsx)("div",{className:"rp-nav-screen-langs-group__inner",children:e.map(e=>{let r=e.text===t,n=(0,Z.A)("rp-nav-screen-langs-group__item",r&&"rp-nav-screen-langs-group__item--active");return r?(0,D.jsx)("span",{className:n,"aria-current":"page","aria-disabled":!0,children:e.text},e.text):(0,D.jsx)(K.N_,{href:e.link,className:n,hrefLang:e.lang,lang:e.lang,rel:"alternate",children:e.text},e.text)})})})]}):null}function tU(e){let{menuItems:t}=e;return(0,D.jsx)(D.Fragment,{children:t.map((e,t)=>(0,D.jsx)(tG,{menuItem:e},t))})}function tZ(){let{items:e,activeValue:t}
2=tu(),[r,n]=(0,w.useState)(!1),i=en();return e.length>1?(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)("div",{className:"rp-nav-screen-versions",onClick:()=>n(!r),children:[(0,D.jsx)("div",{className:"rp-nav-screen-versions__left",children:i("versionsText")}),(0,D.jsxs)("div",{className:"rp-nav-screen-versions__right",children:[t,(0,D.jsx)(tP,{className:(0,Z.A)("rp-nav-screen-versions__icon",{"rp-nav-screen-versions__icon--open":r})})]})]}),(0,D.jsx)("div",{className:(0,Z.A)("rp-nav-screen-versions-group",r&&"rp-nav-screen-versions-group--open"),children:e.map(e=>{let r=e.text===t,n=(0,Z.A)("rp-nav-screen-versions-group__item",r&&"rp-nav-screen-versions-group__item--active");return r?(0,D.jsx)("span",{className:n,"aria-current":"page","aria-disabled":!0,children:e.text},e.text):(0,D.jsx)(K.N_,{href:e.link,className:n,children:e.text},e.text)})})]}):null}function tq(){return(0,D.jsx)("div",{className:"rp-nav-screen-divider"})}function tK(e){let{isScreenOpen:t,toggleScreen:r}=e,n=(0,w.useRef)(null),i=tl();return(0,w.useEffect)(()=>{if(n.current&&t){tL(n.current,{reserveScrollBarGap:!0});let e=document.createElement("style");e.id="rp-nav-screen-body-lock-style",e.innerHTML=":root { --rp-home-background-bg: transparent; }",document.head.appendChild(e)}return()=>{t$();let e=document.getElementById("rp-nav-screen-body-lock-style");e&&document.head.removeChild(e)}},[t]),(0,D.jsx)("div",{className:(0,Z.A)("rp-nav-screen",{"rp-nav-screen--open":t}),ref:n,onClick:r,children:(0,D.jsxs)("div",{className:"rp-nav-screen__container",onClick:e=>e.stopPropagation(),children:[(0,D.jsx)(tU,{menuItems:i}),(0,D.jsx)(tq,{}),(0,D.jsx)(tO,{}),(0,D.jsx)(tV,{}),(0,D.jsx)(tZ,{}),(0,D.jsx)(tq,{}),(0,D.jsx)(K.RP,{})]})})}function tY(){let e=(0,D.jsxs)("div",{className:"rp-nav-hamburger__md__hover-group",children:[(0,D.jsx)(tO,{}),(0,D.jsx)(tv,{}),(0,D.jsx)(tV,{}),(0,D.jsx)(tq,{}),(0,D.jsx)(K.RP,{})]}),{isScreenOpen:t,toggleScreen:r}=function(){let{pathname:e,hash:t}=(0,eX.zy)(),[r,n]=(0,w.useState)(!1);function i(){n(!0),window.addEventListener("resize",o)}function s(){n(!1),window.removeEventListener("resize",o)}function o(){window.outerWidth>=768&&s()}return(0,w.useEffect)(()=>{s()},[e,t]),{isScreenOpen:r,openScreen:i,closeScreen:s,toggleScreen:function(){r?s():i()}}}(),{handleMouseEnter:n,handleMouseLeave:i,hoverGroup:s}=(0,K.HF)({position:"right",customChildren:(0,D.jsx)("div",{className:"rp-nav-menu__others-mobile__container",children:e})});return(0,D.jsxs)(D.Fragment,{children:[t&&(0,tD.createPortal)((0,D.jsx)(tK,{isScreenOpen:t,toggleScreen:r}),document.getElementById("__rspress_modal_container")),(0,D.jsx)("button",{onClick:r,"aria-label":"mobile hamburger",className:(0,Z.A)("rp-nav-hamburger","rp-nav-hamburger__sm",{"rp-nav-hamburger--active":t}),children:(0,D.jsx)(K.Ge,{icon:K.kv})}),(0,D.jsxs)("button",{"aria-label":"mobile hamburger",className:(0,Z.A)("rp-nav-hamburger","rp-nav-hamburger__md",{"rp-nav-hamburger--active":t}),onClick:n,onMouseEnter:n,onMouseLeave:i,children:[(0,D.jsx)(K.Ge,{icon:K.kv}),s]})]})}r("cu"),r("nm"),r("z9"),r("qt");let tJ=()=>{let{site:e}=(0,ee.Z)(),t=(0,er.u)(),r=e?.themeConfig??{},n=e.lang??"",i=r?.locales,s=i?.find(e=>e.lang===t),o=(s?.title??e.title)||"Home",l=t===n?"/":(0,eQ.hg)(t),{logo:a,logoText:u,logoHref:c}=e,h=(0,w.useMemo)(()=>a?"string"==typeof a?(0,D.jsx)("img",{src:(0,ef.As)(a),alt:"logo",id:"logo",className:"rspress-logo rp-nav__title__logo-image"}):(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("img",{src:(0,ef.As)(a.light),alt:"logo",id:"logo",className:"rspress-logo rp-nav__title__logo-image rp-nav__title__logo-image--light"}),(0,D.jsx)("img",{src:(0,ef.As)(a.dark),alt:"logo",id:"logo",className:"rspress-logo rp-nav__title__logo-image rp-nav__title__logo-image--dark"})]}):null,[a]);return(0,D.jsx)("div",{className:"rp-nav__title",children:(0,D.jsxs)(K.N_,{href:c||(0,eQ.tb)(l),className:"rp-nav__title__link",children:[h&&(0,D.jsx)("div",{className:"rp-nav__title__logo",children:h}),u&&(0,D.jsx)("span",{children:u}),!h&&!u&&(0,D.jsx)("span",{children:o})]})})};function tX(){let e=en(),[,t]=(0,K.dS)();return t<100?null:(0,D.jsxs)("button",{className:"rp-outline__action-row rp-scroll-to-top",onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},children:[(0,D.jsx)(K.Ge,{icon:K.HO,width:"16",height:"16"}),(0,D.jsx)("span",{children:e("scrollToTopText")})]})}function tQ(){let e=en(),{site:{themeConfig:{enableScrollToTop:t=!0,llmsUI:r}}}=(0,ee.Z)(),n="object"==typeof r?r?.placement??"title":"title";return(0,D.jsxs)("div",{className:"rp-outline",children:[(0,D.jsxs)("div",{className:"rp-outline__title",children:[e("outlineTitle"),(0,D.jsx)(K.a9,{size:14,strokeWidth:2})]}),(0,D.jsx)("nav",{className:"rp-outline__toc rp-scrollbar",children:(0,D.jsx)(K.vN,{})}),(0,D.jsx)("div",{className:"rp-outline__divider"}),(0,D.jsxs)("div",{className:"rp-outline__bottom",children:[(0,D.jsx)(K.Lp,{isOutline:!0}),"outline"===n&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(K.KG,{}),(0,D.jsx)(K.vw,{})]}),t&&(0,D.jsx)(tX,{})]})]})}r("w");var t0=r("j");let t1=()=>{let{pathname:e}=(0,eX.zy)();return(0,w.useCallback)(t=>{let r=decodeURIComponent(e);return(0,t0.$m)(t,r)},[e])};function t2(){let{sidebar:e}=(0,ts.l)(),{pathname:t}=(0,eX.zy)(),r=decodeURIComponent(t);return(0,w.useMemo)(()=>((e,t)=>{for(let r of Object.keys(e).sort((e,t)=>
2t.length-e.length))if((0,eQ.CR)(r,t))return e[r];return[]})(e,r),[e,r])}function t4(e,t){let r=new WeakMap,n=e=>r.has(e)?r.get(e):"link"in e&&e.link&&t(e.link)||"items"in e&&e.items.some(e=>n(e))?(r.set(e,!0),!0):(r.set(e,!1),!1),i=e=>{"items"in e&&(e.items.forEach(i),n(e)&&(e.collapsed=!1))},s=e.filter(Boolean).flat();return s.forEach(i),s}let t5=e=>!("items"in e)&&"link"in e,t3=e=>"items"in e&&Array.isArray(e.items);r("RD");let t6=e=>e.toLowerCase().replace(/-/g," "),t7=(e,t)=>t6(e).includes(t6(t)),t8=e=>{let{query:t,setQuery:r,searchRef:n}=e,i=en();return(0,D.jsxs)("div",{className:"rp-overview-search",children:[(0,D.jsx)("label",{htmlFor:"api-filter",className:"rp-overview-search__label",children:i("overview.filterNameText")}),(0,D.jsx)("input",{ref:n,type:"search",placeholder:i("overview.filterPlaceholderText"),id:"api-filter",value:t,onChange:e=>r(e.target.value),className:"rp-overview-search__input"})]})};function t9(e){let{siteData:t,page:{routePath:r,title:n,frontmatter:i}}=eI(),{content:s,groups:o}=e,l=en(),[a,u]=(0,w.useState)(""),c=(0,w.useRef)(null);(0,w.useEffect)(()=>{!0===i.overview&&c.current?.focus()},[]);let h=e=>e.startsWith(r.replace(/overview$/,""))&&!(0,ef.Oy)(e,r),d=e=>"link"in e&&e.link?e.link:"items"in e?d(e.items[0]):"",{pages:f}=t,p=f.filter(e=>h(e.routePath)),m=t2();function g(t,n,i){if("dividerType"in t||"sectionHeaderText"in t||t.link===`${r}index`&&i?.overview===!0)return!1;let s=e?.overviewHeaders??t.overviewHeaders??i?.overviewHeaders??n?.overviewHeaders??[2],o=p.find(e=>(0,ef.Oy)(e.routePath,t.link||"")),l=d(t);return{text:t.text,link:l,headers:o?.toc?.filter(e=>s.some(t=>e.depth===t))||[]}}m[0]?.link!==r&&(m=function e(t,r){let n,i=t.findIndex(e=>(function(e){var t;if("dividerType"in e||"sectionHeaderText"in e)return!1;let n=(t=e.link||"/",(0,eQ.Tj)(t,!0)),i=r.replace(/\/$/,"");return n===r||n===i})(e));if(-1===i)return t.map(t=>"items"in t?e(t.items,r):[]).flat();let s=t[i];if("items"in s&&Array.isArray(n=s.items)&&n.length>=1)return s.items.every(e=>!("items"in e))?[s]:s.items.filter(e=>!("dividerType"in e));let o=[...t];return"items"in s||o.splice(i,1),o.filter(e=>!("dividerType"in e))}(m,r));let v=o??(0,w.useMemo)(()=>m.filter(e=>Array.isArray(e?.items)?e.items.filter(e=>h(d(e))).length>0:!!(t5(e)&&h(d(e)))).map(e=>{let t=[];return e?.items?t=e?.items?.map(t=>g(t,e,i)).filter(Boolean):t5(e)&&(t=[g({link:e.link,text:e.text||"",tag:e.tag,_fileKey:e._fileKey,overviewHeaders:e.overviewHeaders},void 0,i)]),{name:e.text||"",items:t}}),[m,r,i]),x=(0,w.useMemo)(()=>a?v.map(e=>{if(t7(e.name,a))return e;let t=e.items.map(e=>{if(t7(e.text||"",a))return e;let t=e.headers?.filter(e=>{let{text:t}=e;return t7(t,a)});return t?.length?{...e,headers:t}:null}).filter(Boolean);return t.length?{...e,items:t}:null}).filter(Boolean):v,[v,a]);return(0,D.jsxs)("div",{className:"rspress-doc rp-doc rspress-overview rp-overview",children:[(0,D.jsx)(K.x5,{level:1,title:n||"Overview"}),(0,D.jsx)(t8,{query:a,setQuery:u,searchRef:c}),s,x.length>0?x.map(e=>(0,D.jsx)(K.v7,{group:e},e?.name)):(0,D.jsx)("div",{className:"rp-overview__empty",children:`${l("overview.filterNoResultText")}: ${a}`})]})}r("xm");var re=e=>(0,D.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:106,height:102,fill:"none",viewBox:"0 0 106 102",...e,children:(0,D.jsx)("path",{fill:"currentColor",fillOpacity:.05,d:"M131.722 7.637 124.908.822a1.26 1.26 0 0 0-.916-.37c-.338 0-.659.13-.916.37l-12.231 12.23A32.03 32.03 0 0 0 92.829 7.54c-8.228 0-16.457 3.134-22.741 9.418L53.711 33.335a1.29 1.29 0 0 0 0 1.816l43.666 43.666c.258.257.579.37.916.37.322 0 .66-.129.916-.37l16.377-16.377c11.073-11.09 12.375-28.237 3.906-40.74l12.23-12.231a1.31 1.31 0 0 0 0-1.832m-54.45 63.948a1.29 1.29 0 0 0-1.816 0L64.752 82.288 50.24 67.776l10.72-10.72a1.29 1.29 0 0 0 0-1.816l-5.85-5.85a1.29 1.29 0 0 0-1.817 0l-10.72 10.72-6.91-6.91a1.26 1.26 0 0 0-.916-.37 1.36 1.36 0 0 0-.916.37L17.47 69.575C6.396 80.649 5.094 97.813 13.564 110.317l-12.23 12.23a1.29 1.29 0 0 0 0 1.816l6.814 6.815c.257.257.578.369.916.369.337 0 .659-.128.916-.369l12.23-12.231c5.416 3.681 11.716 5.513 18.016 5.513 8.229 0 16.457-3.134 22.741-9.418l16.377-16.377a1.29 1.29 0 0 0 0-1.816l-6.91-6.91 10.72-10.72a1.29 1.29 0 0 0 0-1.816z"})});let rt=e=>{let{group:t}=e,{itemsWithContent:r,itemsWithoutContent:n}=(0,w.useMemo)(()=>({itemsWithContent:t.items.filter(e=>e.headers&&e.headers.length>0||e.items&&e.items.length>0),itemsWithoutContent:t.items.filter(e=>!(e.headers&&e.headers.length>0)&&!(e.items&&e.items.length>0))}),[t]);return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(K.x5,{level:2,title:t.name}),(0,D.jsxs)("div",{className:"rp-overview-group rp-not-doc",children:[r.map(e=>(0,D.jsxs)("div",{className:"rp-overview-group__item",children:[(0,D.jsxs)("div",{className:"rp-overview-group__item__title",children:[e.link?(0,D.jsx)(K.N_,{href:e.link,className:"rp-overview-group__item__title__link",...(0,K.nl)(e.text)}):(0,D.jsx)("span",{className:"rp-overview-group__item__title__text",...(0,K.nl)(e.text)}),(0,D.jsx)(K.Ge,{icon:re,className:"rp-overview-group__item__title__icon"})]}),(0,D.jsxs)("ul",{className:"rp-overview-group__item__content",children:[e.headers?.map(t=>(0,D.jsx)("li",{className:"rp-overview-group__item__content__item",children:(0,D.jsx)(K.N_,{className:"rp-overview-group__item__content__item__link",href:`${e.link}#${t.id}`,...(0,K.nl)(t.text)})},t.id)),e.items?.map(e=>{let{link:t,text:r}=e;return(0,D.jsx)("li",{className:"rp-overview-group__item__content__item",children:(0,D.jsx)(K.N_,{className:"rp-overview-group__item__content__item__link",href:t,...(0,K.nl)(r)})},t)})]})]},e.link)),n.length>0&&(0,D.jsx)("div",{className:"rp-overview-group__grid",children:n.map(e=>(0,D.jsx)("div",{className:"rp-overview-group__grid-item rp-overview-group__item__title",children:e.link?(0,D.jsx)(K.N_,{href:e.link,className:"rp-overview-group__item__title__link",...(0,K.nl)(e.text)}):(0,D.jsx)("span",{className:"rp-overview-group__item__title__text",...(0,K.nl)(e.text)})},e.link))})]})]})};function rr(e){return(0,D.jsxs)("svg",{id:"Bun",width:"1.2em",height:"1.2em",viewBox:"0 0 80 70",...e,children:[(0,D.jsx)("path",{id:"Shadow",d:"M71.09,20.74c-.16-.17-.33-.34-.5-.5s-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5A26.46,26.46,0,0,1,75.5,35.7c0,16.5
27-16.82,30.05-37.5,30.05-11.58,0-21.94-4.23-28.83-10.86l.5.5.5.5.5.5.5.5.5.5.5.5.5.5C19.55,65.3,30.14,69.75,42,69.75c20.68,0,37.5-13.48,37.5-30C79.5,32.69,76.46,26,71.09,20.74Z"}),(0,D.jsxs)("g",{id:"Body",children:[(0,D.jsx)("path",{id:"Background",d:"M73,35.7c0,15.21-15.67,27.54-35,27.54S3,50.91,3,35.7C3,26.27,9,17.94,18.22,13S33.18,3,38,3s8.94,4.13,19.78,10C67,17.94,73,26.27,73,35.7Z",style:{fill:"#fbf0df"}}),(0,D.jsx)("path",{id:"Bottom_Shadow","data-name":"Bottom Shadow",d:"M73,35.7a21.67,21.67,0,0,0-.8-5.78c-2.73,33.3-43.35,34.9-59.32,24.94A40,40,0,0,0,38,63.24C57.3,63.24,73,50.89,73,35.7Z",style:{fill:"#f6dece"}}),(0,D.jsx)("path",{id:"Light_Shine","data-name":"Light Shine",d:"M24.53,11.17C29,8.49,34.94,3.46,40.78,3.45A9.29,9.29,0,0,0,38,3c-2.42,0-5,1.25-8.25,3.13-1.13.66-2.3,1.39-3.54,2.15-2.33,1.44-5,3.07-8,4.7C8.69,18.13,3,26.62,3,35.7c0,.4,0,.8,0,1.19C9.06,15.48,20.07,13.85,24.53,11.17Z",style:{fill:"#fffefc"}}),(0,D.jsx)("path",{id:"Top",d:"M35.12,5.53A16.41,16.41,0,0,1,29.49,18c-.28.25-.06.73.3.59,3.37-1.31,7.92-5.23,6-13.14C35.71,5,35.12,5.12,35.12,5.53Zm2.27,0A16.24,16.24,0,0,1,39,19c-.12.35.31.65.55.36C41.74,16.56,43.65,11,37.93,5,37.64,4.74,37.19,5.14,37.39,5.49Zm2.76-.17A16.42,16.42,0,0,1,47,17.12a.33.33,0,0,0,.65.11c.92-3.49.4-9.44-7.17-12.53C40.08,4.54,39.82,5.08,40.15,5.32ZM21.69,15.76a16.94,16.94,0,0,0,10.47-9c.18-.36.75-.22.66.18-1.73,8-7.52,9.67-11.12,9.45C21.32,16.4,21.33,15.87,21.69,15.76Z",style:{fill:"#ccbea7",fillRule:"evenodd"}}),(0,D.jsx)("path",{id:"Outline",d:"M38,65.75C17.32,65.75.5,52.27.5,35.7c0-10,6.18-19.33,16.53-24.92,3-1.6,5.57-3.21,7.86-4.62,1.26-.78,2.45-1.51,3.6-2.19C32,1.89,35,.5,38,.5s5.62,1.2,8.9,3.14c1,.57,2,1.19,3.07,1.87,2.49,1.54,5.3,3.28,9,5.27C69.32,16.37,75.5,25.69,75.5,35.7,75.5,52.27,58.68,65.75,38,65.75ZM38,3c-2.42,0-5,1.25-8.25,3.13-1.13.66-2.3,1.39-3.54,2.15-2.33,1.44-5,3.07-8,4.7C8.69,18.13,3,26.62,3,35.7,3,50.89,18.7,63.25,38,63.25S73,50.89,73,35.7C73,26.62,67.31,18.13,57.78,13,54,11,51.05,9.12,48.66,7.64c-1.09-.67-2.09-1.29-3-1.84C42.63,4,40.42,3,38,3Z"})]}),(0,D.jsxs)("g",{id:"Mouth",children:[(0,D.jsx)("g",{id:"Backgroun
2d-2","data-name":"Background",children:(0,D.jsx)("path",{d:"M45.05,43a8.93,8.93,0,0,1-2.92,4.71,6.81,6.81,0,0,1-4,1.88A6.84,6.84,0,0,1,34,47.71,8.93,8.93,0,0,1,31.12,43a.72.72,0,0,1,.8-.81H44.26A.72.72,0,0,1,45.05,43Z",style:{fill:"#b71422"}})}),(0,D.jsxs)("g",{id:"Tongue",children:[(0,D.jsx)("path",{id:"Background-3","data-name":"Background",d:"M34,47.79a6.91,6.91,0,0,0,4.12,1.9,6.91,6.91,0,0,0,4.11-1.9,10.63,10.63,0,0,0,1-1.07,6.83,6.83,0,0,0-4.9-2.31,6.15,6.15,0,0,0-5,2.78C33.56,47.4,33.76,47.6,34,47.79Z",style:{fill:"#ff6164"}}),(0,D.jsx)("path",{id:"Outline-2","data-name":"Outline",d:"M34.16,47a5.36,5.36,0,0,1,4.19-2.08,6,6,0,0,1,4,1.69c.23-.25.45-.51.66-.77a7,7,0,0,0-4.71-1.93,6.36,6.36,0,0,0-4.89,2.36A9.53,9.53,0,0,0,34.16,47Z"})]}),(0,D.jsx)("path",{id:"Outline-3","data-name":"Outline",d:"M38.09,50.19a7.42,7.42,0,0,1-4.45-2,9.52,9.52,0,0,1-3.11-5.05,1.2,1.2,0,0,1,.26-1,1.41,1.41,0,0,1,1.13-.51H44.26a1.44,1.44,0,0,1,1.13.51,1.19,1.19,0,0,1,.25,1h0a9.52,9.52,0,0,1-3.11,5.05A7.42,7.42,0,0,1,38.09,50.19Zm-6.17-7.4c-.16,0-.2.07-.21.09a8.29,8.29,0,0,0,2.73,4.37A6.23,6.23,0,0,0,38.09,49a6.28,6.28,0,0,0,3.65-1.73,8.3,8.3,0,0,0,2.72-4.37.21.21,0,0,0-.2-.09Z"})]}),(0,D.jsxs)("g",{id:"Face",children:[(0,D.jsx)("ellipse",{id:"Right_Blush","data-name":"Right Blush",cx:"53.22",cy:"40.18",rx:"5.85",ry:"3.44",style:{fill:"#febbd0"}}),(0,D.jsx)("ellipse",{id:"Left_Bluch","data-name":"Left Bluch",cx:"22.95",cy:"40.18",rx:"5.85",ry:"3.44",style:{fill:"#febbd0"}}),(0,D.jsx)("path",{id:"Eyes",d:"M25.7,38.8a5.51,5.51,0,1,0-5.5-5.51A5.51,5.51,0,0,0,25.7,38.8Zm24.77,0A5.51,5.51,0,1,0,45,33.29,5.5,5.5,0,0,0,50.47,38.8Z",style:{fillRule:"evenodd"}}),(0,D.jsx)("path",{id:"Iris",d:"M24,33.64a2.07,2.07,0,1,0-2.06-2.07A2.07,2.07,0,0,0,24,33.64Zm24.77,0a2.07,2.07,0,1,0-2.06-2.07A2.07,2.07,0,0,0,48.75,33.64Z",style:{fill:"#fff",fillRule:"evenodd"}})]})]})}function rn(e){return(0,D.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:(0,D.jsx)("path",{fill:"currentColor",d:"M1.105 18.02A11.9 11.9 0 0 1 0 12.985q0-.698.078-1.376a12 12 0 0 1 .231-1.34A12 12 0 0 1 4.025 4.02a12 12 0 0 1 5.46-2.771a12 12 0 0 1 3.428-.23c1.452.112 2.825.477 4.077 1.05a12 12 0 0 1 2.78 1.774a12.02 12.02 0 0 1 4.053 7.078A12 12 0 0 1 24 12.985q0 .454-.036.914a12 12 0 0 1-.728 3.305a12 12 0 0 1-2.38 3.875c-1.33 1.357-3.02 1.962-4.43 1.936a4.4 4.4 0 0 1-2.724-1.024c-.99-.853-1.391-1.83-1.53-2.919a5 5 0 0 1 .128-1.518c.105-.38.37-1.116.76-1.437c-.455-.197-1.04-.624-1.226-.829c-.045-.05-.04-.13 0-.183a.155.155 0 0 1 .177-.053c.392.134.869.267 1.372.35c.66.111 1.484.25 2.317.292c2.03.1 4.153-.813 4.812-2.627s.403-3.609-1.96-4.685s-3.454-2.356-5.363-3.128c-1.247-.505-2.636-.205-4.06.582c-3.838 2.121-7.277 8.822-5.69 15.032a.191.191 0 0 1-.315.19a12 12 0 0 1-1.25-1.634a12 12 0 0 1-.769-1.404M11.57 6.087c.649-.051 1.214.501 1.31 1.236c.13.979-.228 1.99-1.41 2.013c-1.01.02-1.315-.997-1.248-1.614c.066-.616.574-1.575 1.35-1.635"})})}function ri(e){return(0,D.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 256 256",...e,children:[(0,D.jsx)("path",{fill:"#C12127",d:"M0 256V0h256v256z"}),(0,D.jsx)("path",{fill:"#FFF",d:"M48 48h160v160h-32V80h-48v128H48z"})]})}function rs(e){return(0,D.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 128 128",...e,children:[(0,D.jsx)("path",{fill:"#f8ab00",d:"M0 .004V40h39.996V.004Zm43.996 0V40h40V.004Zm44.008 0V40H128V.004Zm0 43.996v39.996H128V44Z"}),(0,D.jsx)("path",{fill:"#4c4c4c",d:"M43.996 44v39.996h40V44ZM0 87.996v40h39.996v-40Zm43.996 0v40h40v-40Zm44.008 0v40H128v-40Z"})]})}function ro(e){return(0,D.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 128 128",...e,children:(0,D.jsxs)("g",{fill:"#2c8ebb",children:[(0,D.jsx)("path",{d:"M99.24 80.71C94.9 80.76 91.1 83 87.89 85c-6 3.71-9 3.47-9 3.47l-.1-.17c-.41-.67 1.92-6.68-.69-13.84c-2.82-7.83-7.3-9.72-6.94-10.32c1.53-2.59 5.36-6.7 6.89-14.36c.91-4.64.67-12.28-1.39-16.28c-.38-.74-3.78 1.24-3.78 1.24s-3.18-7.09-4.07-7.66c-2.87-1.84-6 7.61-6 7.61a14 14 0 0 0-11.71 4.5a9.64 9.64 0 0 1-3.85 2.27c-.41.14-.91.12-2.15 3.47c-1.9 5.07 3.24 10.81 3.24 10.81s-6.13 4.33-8.4 9.72a24.78 24.78 0 0 0-1.75 11.68s-4.36 3.78-4.64 7.68a12.87 12.87 0 0 0 1.77 7.83a1.94 1.94 0 0 0 2.63.91s-2.9 3.38-.19 4.81c2.47 1.29 6.63 2 8.83-.19c1.6-1.6 1.92-5.17 2.51-6.63c.14-.34.62.57 1.08 1a10 10 0 0 0 1.36 1s-3.9 1.68-2.3 5.51c.53 1.27 2.42 2.08 5.51 2.06c1.15 0 13.76-.72 17.12-1.53a4.33 4.33 0 0 0 2.61-1.46a63 63 0 0 0 15.49-7c4.74-3.09 6.68-3.93 10.51-4.84c3.16-.75 2.95-5.65-1.24-5.58z"}),(0,D.jsx)("path",{d:"M64 2a62 62 0 1 0 62 62A62 62 0 0 0 64 2zm37.3 87.83c-3.35.81-4.91 1.44-9.41 4.36a67 67 0 0 1-15.56 7.18a8.71 8.71 0 0 1-3.64 1.77c-3.81.93-16.88 1.63-17.91 1.63h-.24c-4 0-6.27-1.24-7.49-2.54c-3.4 1.7-7.8 1-11-.69a5.55 5.55 0 0 1-3-3.9a6 6 0 0 1 0-2.06a6.66 6.66 0 0 1-.79-1A16.38 16.38 0 0 1 3
20 84.52c.29-3.73 2.87-7.06 4.55-8.83A28.56 28.56 0 0 1 36.61 64a26.82 26.82 0 0 1 6.82-9c-1.65-2.78-3.33-7.06-1.7-11.42c1.17-3.11 2.13-4.84 4.24-5.58a6.84 6.84 0 0 0 2.51-1.34A17.65 17.65 0 0 1 60.34 31c.19-.48.41-1 .65-1.46c1.6-3.4 3.3-5.31 5.29-6a4.88 4.88 0 0 1 4.4.5c.65.43 1.48 1 3.9 6a4.69 4.69 0 0 1 2.85-.1a3.81 3.81 0 0 1 2.39 1.94c2.47 4.74 2.8 13.19 1.72 18.62a33.8 33.8 0 0 1-5.84 13.31a25.73 25.73 0 0 1 5.77 9.43a25.42 25.42 0 0 1 1.41 10.41A28.7 28.7 0 0 0 86 81.91c3.06-1.89 7.68-4.74 13.19-4.81a6.62 6.62 0 0 1 7 5.7a6.35 6.35 0 0 1-4.89 7.03z"})]})})}let rl=e=>{let t=e.split(" "),r="run"===t[1],n=!1;return t.map((e,t)=>!(t>=2)||e.startsWith("-")||e.includes(":")||/^https?:/.test(e)?e:r&&n?e:(n=!0,`npm:${e}`)).join(" ")};function ra(e){if(e.startsWith("yarn create"))return e.replace(/(yarn create [^\s]+)@latest/,"$1");if(e.startsWith("deno ")){let t=e.replace(/deno create\s+([^\s]+)/,"deno init --npm $1");if(!t.includes("install"))return t.includes("--npm")||t.includes("--jsr")?t:rl(t)}if(!e?.includes("install"))return e;let t=e.split(" ").filter(e=>!e.startsWith("-")&&!e.startsWith("--")).join(" ");if("yarn install"===t||"pnpm install"===t||"bun install"===t||"deno install"===t)return e;let r=e.replace(/\binstall\b/,"add");return r.startsWith("deno ")?r.includes("--npm")||r.includes("--jsr")?r:rl(r):r}function ru(e){let t,{command:r,exec:n,dlx:i,additionalTabs:s=[]}=e,o={npm:(0,D.jsx)(ri,{}),yarn:(0,D.jsx)(ro,{}),pnpm:(0,D.jsx)(rs,{}),bun:(0,D.jsx)(rr,{}),deno:(0,D.jsx)(rn,{})};s.forEach(e=>{o[e.tool]=e.icon});let l=(0,w.useMemo)(()=>(0,K.GD)().pre,[K.GD]);if("string"==typeof r){let e=e=>{if(i)switch(e){case"npm":return"npx";case"yarn":return"yarn dlx";case"pnpm":return"pnpm dlx";case"bun":return"bunx";case"deno":return"deno run -A";default:return e}if(!n)return e;switch(e){case"npm":return"npx";case"yarn":return"yarn";case"pnpm":return"pnpm";case"bun":return"bun";case"deno":return"deno run -A";default:return e}};t={npm:`${e("npm")} ${r}`,yarn:`${e("yarn")} ${r}`,pnpm:`${e("pnpm")} ${r}`,bun:`${e("bun")} ${r}`,deno:`${e("deno")} ${r}`},s.forEach(e=>{t[e.tool]=`${e.tool} ${r}`}),t.yarn=ra(t.yarn),t.pnpm=ra(t.pnpm),t.bun=ra(t.bun),t.deno=ra(t.deno)}else t=r;return(0,D.jsx)(K.tU,{groupId:"package.manager",children:Object.entries(t).map(e=>{let t,r,[n,i]=e,[s,a]=(t=i.split(" ")[0],r=i.slice(t.length),[t,r]);return(0,D.jsx)(K.oz,{label:(0,D.jsxs)("div",{style:{display:"flex",alignItems:"center",fontSize:15},children:[o[n],(0,D.jsx)("span",{style:{marginLeft:6,marginBottom:2},children:n})]}),children:(0,D.jsx)(l,{lang:"bash",className:"shiki css-variables",style:{backgroundColor:"var(--shiki-background)",color:"var(--shiki-foreground)"},children:(0,D.jsx)("code",{style:{whiteSpace:"pre"},children:(0,D.jsxs)("span",{className:"line",children:[(0,D.jsx)("span",{style:{color:"var(--shiki-token-function)"},children:s}),(0,D.jsx)("span",{style:{color:"var(--shiki-token-string)"},children:a})]})})})},n)})})}function rc(){let{prevPage:e,nextPage:t}=(0,K.ZZ)(),r=en();return(0,D.jsxs)("div",{className:"rp-prev-next-page",children:[e?(0,D.jsxs)(K.N_,{href:e.link,className:(0,Z.A)("rp-prev-next-page__item","rp-prev-next-page__prev"),children:[(0,D.jsx)("span",{className:"rp-prev-next-page__item__desc",children:r("prevPageText")}),(0,D.jsxs)("span",{className:"rp-prev-next-page__item__title",children:[(0,D.jsx)(K.Ge,{icon:K.hI,className:"rp-prev-next-page__icon rp-prev-next-page__rotate_180"}),(0,D.jsx)("span",{...(0,K.nl)(e.text)})]})]}):(0,D.jsx)("div",{className:"rp-prev-next-page__placeholder"}),t?(0,D.jsxs)(K.N_,{href:t.link,className:(0,Z.A)("rp-prev-next-page__item","rp-prev-next-page__next"),children:[(0,D.jsx)("span",{className:"rp-prev-next-page__item__desc",children:r("nextPageText")}),(0,D.jsxs)("span",{className:"rp-prev-next-page__item__title",children:[(0,D.jsx)("span",{...(0,K.nl)(t.text)}),(0,D.jsx)(K.Ge,{icon:K.hI,className:"rp-prev-next-page__icon"})]})]}):(0,D.jsx)("div",{className:"rp-prev-next-page__placeholder"})]})}r("rP"),r("vw");let rh=e=>{let{percent:t,size:r=100,strokeWidth:n=8,strokeColor:i="var(--rp-c-brand)",backgroundColor:s="var(--rp-c-div
2ider-light)",className:o}=e,l=Math.min(100,Math.max(0,t)),a=(r-n)/2,u=2*a*Math.PI;return(0,D.jsxs)("svg",{width:r,height:r,className:(0,Z.A)("rp-progress-circle",o),children:[(0,D.jsx)("circle",{cx:r/2,cy:r/2,r:a,strokeLinecap:"round",fill:"none",stroke:s,strokeWidth:n}),(0,D.jsx)("circle",{cx:r/2,cy:r/2,r:a,strokeLinecap:"round",fill:"none",stroke:i,strokeWidth:n,strokeDasharray:u,strokeDashoffset:u-l/100*u,transform:`rotate(-90 ${r/2} ${r/2})`,style:{transition:"stroke-dashoffset 0.3s"}})]})},rd=()=>{let[e,t]=(0,w.useState)(0),[r,n]=(0,w.useState)(0),{height:i}=function(){let[e,t]=(0,w.useState)({width:(void 0)??1/0,height:(void 0)??1/0});return(0,w.useLayoutEffect)(()=>{let e=null,r=()=>{e&&clearTimeout(e),e=setTimeout(()=>{t({width:window.innerWidth,height:window.innerHeight})},150)};return t({width:window.innerWidth,height:window.innerHeight}),window.addEventListener("resize",r),()=>{e&&clearTimeout(e),window.removeEventListener("resize",r)}},[]),e}();return(0,w.useEffect)(()=>{let e=window||document.documentElement,r=()=>{let e=document.querySelector(".rspress-doc");e&&n(e.getBoundingClientRect().height||0),t(window.scrollY||document.documentElement.scrollTop)};return r(),e?.addEventListener("scroll",r),()=>{e?.removeEventListener("scroll",r)}},[]),[(0,w.useMemo)(()=>{let t=Math.min(e,i);return Math.floor(Math.min(Math.max(0,(e-50+t)/r*100),100))||0},[e,i]),e]};function rf(e){let{size:t,strokeWidth:r}=e,[n]=rd();return(0,D.jsx)(rh,{percent:n,size:t,strokeWidth:r})}function rp(e){let{children:t}=e;return(0,D.jsx)(D.Fragment,{children:t})}function rm(){let[e,t]=(0,w.useState)(!1);return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(K.vd,{setFocused:t}),(0,D.jsx)(tH,{children:(0,D.jsx)(K.Pl,{focused:e,setFocused:t})})]})}function rg(e){let{setFocused:t}=e,[r,n]=(0,w.useState)(null),i=en();return(0,w.useEffect)(()=>{n(/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)?"⌘":"Ctrl")},[]),(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)("button",{className:"rp-search-button",onClick:()=>t(!0),children:[(0,D.jsxs)("div",{className:"rp-search-button__content",children:[(0,D.jsx)(K.Ge,{icon:K.C0,className:"rp-search-button__icon"}),(0,D.jsx)("span",{className:"rp-search-button__word",children:i("searchPlaceholderText")})]}),(0,D.jsxs)("div",{className:"rp-search-button__hotkey",style:{opacity:+!!r},children:[(0,D.jsx)("span",{children:r}),(0,D.jsx)("span",{children:"K"})]})]}),(0,D.jsx)("div",{className:"rp-search-button--mobile",onClick:()=>t(!0),children:(0,D.jsx)(K.Ge,{icon:K.C0})})]})}r("rH");let rv=function(e,t){return e===t||e!=e&&t!=t},rx=function(e,t){for(var r=e.length;r--;)if(rv(e[r][0],t))return r;return -1};var ry=Array.prototype.splice;function rD(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}rD.prototype.clear=function(){this.__data__=[],this.size=0},rD.prototype.delete=function(e){var t=this.__data__,r=rx(t,e);return!(r<0)&&(r==t.length-1?t.pop():ry.call(t,r,1),--this.size,!0)},rD.prototype.get=function(e){var t=this.__data__,r=rx(t,e);return r<0?void 0:t[r][1]},rD.prototype.has=function(e){return rx(this.__data__,e)>-1},rD.prototype.set=function(e,t){var r=this.__data__,n=rx(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var rw="object"==typeof global&&global&&global.Object===Object&&global,r_="object"==typeof self&&self&&self.Object===Object&&self,rb=rw||r_||Function("return this")(),rj=rb.Symbol,rF=Object.prototype,rC=rF.hasOwnProperty,rA=rF.toString,rE=rj?rj.toStringTag:void 0;let rk=function(e){var t=rC.call(e,rE),r=e[rE];try{e[rE]=void 0;var n=!0}catch(e){}var i=rA.call(e);return n&&(t?e[rE]=r:delete e[rE]),i};var rN=Object.prototype.toString,rB=rj?rj.toStringTag:void 0;let rM=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":rB&&rB in Object(e)?rk(e):rN.call(e)},rS=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},rT=function(e){if(!rS(e))return!1;var t=rM(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};
2var rz=rb["__core-js_shared__"],rL=(c=/[^.]+$/.exec(rz&&rz.keys&&rz.keys.IE_PROTO||""))?"Symbol(src)_1."+c:"",r$=Function.prototype.toString;let rH=function(e){if(null!=e){try{return r$.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var rO=/^\[object .+?Constructor\]$/,rP=Object.prototype,rI=Function.prototype.toString,rR=rP.hasOwnProperty,rW=RegExp("^"+rI.call(rR).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let rG=function(e){return!!rS(e)&&(!rL||!(rL in e))&&(rT(e)?rW:rO).test(rH(e))},rV=function(e,t){var r=null==e?void 0:e[t];return rG(r)?r:void 0};var rU=rV(rb,"Map"),rZ=rV(Object,"create"),rq=Object.prototype.hasOwnProperty,rK=Object.prototype.hasOwnProperty;function rY(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}rY.prototype.clear=function(){this.__data__=rZ?rZ(null):{},this.size=0},rY.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t},rY.prototype.get=function(e){var t=this.__data__;if(rZ){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return rq.call(t,e)?t[e]:void 0},rY.prototype.has=function(e){var t=this.__data__;return rZ?void 0!==t[e]:rK.call(t,e)},rY.prototype.set=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=rZ&&void 0===t?"__lodash_hash_undefined__":t,this};let rJ=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},rX=function(e,t){var r=e.__data__;return rJ(t)?r["string"==typeof t?"string":"hash"]:r.map};function rQ(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function r0(e){var t=this.__data__=new rD(e);this.size=t.size}rQ.prototype.clear=function(){this.size=0,this.__data__={hash:new rY,map:new(rU||rD),string:new rY}},rQ.prototype.delete=function(e){var t=rX(this,e).delete(e);return this.size-=!!t,t},rQ.prototype.get=function(e){return rX(this,e).get(e)},rQ.prototype.has=function(e){return rX(this,e).has(e)},rQ.prototype.set=function(e,t){var r=rX(this,e),n=r.size;return r.set(e,t),this.size+=+(r.size!=n),this},r0.prototype.clear=function(){this.__data__=new rD,this.size=0},r0.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},r0.prototype.get=function(e){return this.__data__.get(e)},r0.prototype.has=function(e){return this.__data__.has(e)},r0.prototype.set=function(e,t){var r=this.__data__;if(r instanceof rD){var n=r.__data__;if(!rU||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new rQ(n)}return r.set(e,t),this.size=r.size,this};var r1=function(){try{var e=rV(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();let r2=function(e,t,r){"__proto__"==t&&r1?r1(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},r4=function(e,t,r){(void 0===r||rv(e[t],r))&&(void 0!==r||t in e)||r2(e,t,r)},r5=function(e,t,r){for(var n=-1,i=Object(e),s=r(e),o=s.length;o--;){var l=s[++n];if(!1===t(i[l],l,i))break}return e};var r3="object"==typeof exports&&exports&&!exports.nodeType&&exports,r6=r3&&"object"==typeof module&&module&&!module.nodeType&&module,r7=r6&&r6.exports===r3?rb.Buffer:void 0,r8=r7?r7.allocUnsafe:void 0;let r9=function(e,t){if(t)return e.slice();var r=e.length,n=r8?r8(r):new e.constructor(r);return e.copy(n),n};var ne=rb.Uint8Array;let nt=function(e){var t=new e.constructor(e.byteLength);return new ne(t).set(new ne(e)),t},nr=function(e,t){var r=t?nt(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)},nn=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t};var ni=Object.create,ns=function(){function e(){}return function(t){if(!rS(t))return{};if(ni)return ni(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();let no=function(e,t){return function(r){return e(t(r))}};var nl=no(Object.getPrototypeOf,Object),na=Object.prototype;let nu=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||na)},nc=function(e){return null!=e&&"object"==typeof e},nh=function(e){return nc(e)&&"[object Arguments]"==rM(e)};var nd=Object.prototype,nf=nd.hasOwnProperty,np=nd.propertyIsEnumerable,nm=nh(function(){return arguments}())?nh:function(e){return nc(e)&&nf.call(e,"callee")&&!np.call(e,"callee")},ng=Array.isArray;let nv=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff},nx=function(e){return null!=e&&nv(e.length)&&!rT(e)};var ny="object"==typeof exports&&exports&&!exports.nodeType&&exports,nD=ny&&"object"==typeof module&&module&&!module.nodeType&&module,nw=nD&&nD.exports===ny?rb.Buffer:void 0;let n_=(nw?nw.isBuffer:void 0)||function(){return!1};var nb=Object.prototype,nj=Function.prototype.toString,nF=nb.hasOwnProperty,nC=nj.call(Object);let nA=function(e){if(!nc(e)||"[object Object]"!=rM(e))return!1;var t=nl(e);if(null===t)return!0;var r=nF.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&nj.call(r)==nC};var nE={};
2nE["[object Float32Array]"]=nE["[object Float64Array]"]=nE["[object Int8Array]"]=nE["[object Int16Array]"]=nE["[object Int32Array]"]=nE["[object Uint8Array]"]=nE["[object Uint8ClampedArray]"]=nE["[object Uint16Array]"]=nE["[object Uint32Array]"]=!0,nE["[object Arguments]"]=nE["[object Array]"]=nE["[object ArrayBuffer]"]=nE["[object Boolean]"]=nE["[object DataView]"]=nE["[object Date]"]=nE["[object Error]"]=nE["[object Function]"]=nE["[object Map]"]=nE["[object Number]"]=nE["[object Object]"]=nE["[object RegExp]"]=nE["[object Set]"]=nE["[object String]"]=nE["[object WeakMap]"]=!1;var nk="object"==typeof exports&&exports&&!exports.nodeType&&exports,nN=nk&&"object"==typeof module&&module&&!module.nodeType&&module,nB=nN&&nN.exports===nk&&rw.process,nM=function(){try{var e=nN&&nN.require&&nN.require("util").types;if(e)return e;return nB&&nB.binding&&nB.binding("util")}catch(e){}}(),nS=nM&&nM.isTypedArray,nT=nS?function(e){return nS(e)}:function(e){return nc(e)&&nv(e.length)&&!!nE[rM(e)]};let nz=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var nL=Object.prototype.hasOwnProperty;let n$=function(e,t,r){var n=e[t];nL.call(e,t)&&rv(n,r)&&(void 0!==r||t in e)||r2(e,t,r)},nH=function(e,t,r,n){var i=!r;r||(r={});for(var s=-1,o=t.length;++s<o;){var l=t[s],a=n?n(r[l],e[l],l,r,e):void 0;void 0===a&&(a=e[l]),i?r2(r,l,a):n$(r,l,a)}return r},nO=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n};var nP=/^(?:0|[1-9]\d*)$/;let nI=function(e,t){var r=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==r||"symbol"!=r&&nP.test(e))&&e>-1&&e%1==0&&e<t};var nR=Object.prototype.hasOwnProperty;let nW=function(e,t){var r=ng(e),n=!r&&nm(e),i=!r&&!n&&n_(e),s=!r&&!n&&!i&&nT(e),o=r||n||i||s,l=o?nO(e.length,String):[],a=l.length;for(var u in e)(t||nR.call(e,u))&&!(o&&("length"==u||i&&("offset"==u||"parent"==u)||s&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||nI(u,a)))&&l.push(u);return l},nG=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t};var nV=Object.prototype.hasOwnProperty;let nU=function(e){if(!rS(e))return nG(e);var t=nu(e),r=[];for(var n in e)"constructor"==n&&(t||!nV.call(e,n))||r.push(n);return r},nZ=function(e){return nx(e)?nW(e,!0):nU(e)},nq=function(e,t,r,n,i,s,o){var l=nz(e,r),a=nz(t,r),u=o.get(a);if(u)return void r4(e,r,u);var c=s?s(l,a,r+"",e,t,o):void 0,h=void 0===c;if(h){var d=ng(a),f=!d&&n_(a),p=!d&&!f&&nT(a);(c=a,d||f||p)?ng(l)?c=l:nc(l)&&nx(l)?c=nn(l):f?(h=!1,c=r9(a,!0)):p?(h=!1,c=nr(a,!0)):c=[]:nA(a)||nm(a)?(c=l,nm(l))?c=nH(l,nZ(l)):(!rS(l)||rT(l))&&(c="function"!=typeof a.constructor||nu(a)?{}:ns(nl(a))):h=!1}h&&(o.set(a,c),i(c,a,n,s,o),o.delete(a)),r4(e,r,c)},nK=function e(t,r,n,i,s){t!==r&&r5(r,function(o,l){if(s||(s=new r0),rS(o))nq(t,r,l,n,e,i,s);else{var a=i?i(nz(t,l),o,l+"",t,r,s):void 0;void 0===a&&(a=o),r4(t,l,a)}},nZ)},nY=function(e){return e},nJ=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)};var nX=Math.max,nQ=Date.now,n0=(h=r1?function(e,t){return r1(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:nY,d=0,f=0,function(){var e=nQ(),t=16-(e-f);if(f=e,t>0){if(++d>=800)return arguments[0]}else d=0;return h.apply(void 0,arguments)});let n1=function(e,t,r){if(!rS(r))return!1;var n=typeof t;return("number"==n?!!(nx(r)&&nI(t,r.length)):"string"==n&&t in r)&&rv(r[t],e)};p=function(e,t,r,n){nK(e,t,r,n)},n0((a=function(e,t){var r=-1,n=t.length,i=n>1?t[n-1]:void 0,s=n>2?t[2]:void 0;for(i=p.length>3&&"function"==typeof i?(n--,i):void 0,s&&n1(t[0],t[1],s)&&(i=n<3?void 0:i,n=1),e=Object(e);++r<n;){var o=t[r];o&&p(e,o,r,i)}return e},u=nX((u=void 0,a.length-1),0),function(){for(var e=arguments,t=-1,r=nX(e.length-u,0),n=Array(r);++t<r;)n[t]=e[u+t];t=-1;for(var i=Array(u+1);++t<u;)i[t]=e[t];return i[u]=nY(n),nJ(a,this,i)}),a+"");var n2=/\s/;let n4=function(e){for(var t=e.length;t--&&n2.test(e.charAt(t)););return t};var n5=/^\s+/;let n3=function(e){return"symbol"==typeof e||nc(e)&&"[object Symbol]"==rM(e)};var n6=/^[-+]0x[0-9a-f]+$/i,n7=/^0b[01]+$/i,n8=/^0o[0-7]+$/i,n9=parseInt;let ie=function(e){if("number"==typeof e)return e;if(n3(e))return 0/0;if(rS(e)){var t,r="function"==typeof e.valueOf?e.valueOf():e;e=rS(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=(t=e)?t.slice(0,n4(t)+1).replace(n5,""):t;var n=n7.test(e);return n||n8.test(e)?n9(e.slice(2),n?2:8):n6.test(e)?0/0:+e},it=function(){return rb.Date.now()};var ir=Math.max,ii=Math.min;let is=function(e,t,r){var n,i,s,o,l,a,u=0,c=!1,h=!1,d=!0;if("function"!=typeof e)throw TypeError("Expected a function");function f(t){var r=n,s=i;return n=i=void 0,u=t,o=e.apply(s,r)}function p(e){var r=e-a,n=e-u;return void 0===a||r>=t||r<0||h&&n>=s}function m(){var e,r,n,i=it();if(p(i))return g(i);l=setTimeout(m,(e=i-a,r=i-u,n=t-e,h?ii(n,s-r):n))}function g(e){return(l=void 0,d&&n)?f(e):(n=i=void 0,o)}function v(){var e,r=it(),s=p(r);if(n=arguments,i=this,a=r,s){if(void 0===l)return u=e=a,l=setTimeout(m,t),c?f(e):o;if(h)return clearTimeout(l),l=setTimeout(m,t),f(a)}return void 0===l&&(l=setTimeout(m,t)),o}return t=ie(t)||0,rS(r)&&(c=!!r.leading,s=(h="maxWait"in r)?ir(ie(r.maxWait)||0,t):s,d="trailing"in r?!!r.trailing:d),v.cancel=function(){void 0!==l&&clearTimeout(l),u=0,n=a=i=l=void 0},v.flush=function(){return void 0===l?o:g(it())},v};var io=no(Object.keys,Object),il=Object.prototype.hasOwnProperty;let ia=function(e){if(!nu(e))return io(e);var t=[];for(var r in Object(e))il.call(e,r)&&"constructor"!=r&&t.push(r);return t},iu=function(e){return nx(e)?nW(e):ia(e)};m=function(e,t){return e&&r5(e,t,iu)};function ic(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new rQ;++t<r;)this.add(e[t])}ic.prototype.add=ic.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},ic.prototype.has=function(e){return this.__data__.has(e)};let ih=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1},id=function(e,t,r,n,i,s){var o=1&r,l=e.length,a=t.length;if(l!=a&&!(o&&a>l))return!1;var u=s.get(e),c=s.get(t);if(u&&c)return u==t&&c==e;var h=-1,d=!0,f=2&r?new ic:void 0;for(s.set(e,t),s.set(t,e);++h<l;){var p=e[h],m=t[h];if(n)var g=o?n(m,p,h,t,e,s):n(p,m,h,e,t,s);if(void 0!==g){if(g)continue;d=!1;break}if(f){if(!ih(t,function(e,t){if(!f.has(t)&&(p===e||i(p,e,r,n,s)))return f.push(t)})){d=!1;break}}else if(!(p===m||i(p,m,r,n,s))){d=!1;break}}return s.delete(e),s.delete(t),d},ip=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r},im=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r};var ig=rj?rj.prototype:void 0,iv=ig?ig.valueOf:void 0;let ix=function(e,t,r,n,i,s,o){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!s(new ne(e),new ne(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return rv(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var l=ip;case"[object Set]":var a=1&n;if(l||(l=im),e.size!=t.size&&!a)break;var u=o.get(e);if(u)return u==t;n|=2,o.set(e,t);var c=id(l(e),l(t),n,i,s,o);return o.delete(e),c;case"[object Symbol]":if(iv)return iv.call(e)==iv.call(t)}return!1},iy=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;
2)e[i+r]=t[r];return e},iD=function(e,t,r){var n=t(e);return ng(e)?n:iy(n,r(e))},iw=function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,s=[];++r<n;){var o=e[r];t(o,r,e)&&(s[i++]=o)}return s};var i_=Object.prototype.propertyIsEnumerable,ib=Object.getOwnPropertySymbols,ij=ib?function(e){return null==e?[]:iw(ib(e=Object(e)),function(t){return i_.call(e,t)})}:function(){return[]};let iF=function(e){return iD(e,iu,ij)};var iC=Object.prototype.hasOwnProperty;let iA=function(e,t,r,n,i,s){var o=1&r,l=iF(e),a=l.length;if(a!=iF(t).length&&!o)return!1;for(var u=a;u--;){var c=l[u];if(!(o?c in t:iC.call(t,c)))return!1}var h=s.get(e),d=s.get(t);if(h&&d)return h==t&&d==e;var f=!0;s.set(e,t),s.set(t,e);for(var p=o;++u<a;){var m=e[c=l[u]],g=t[c];if(n)var v=o?n(g,m,c,t,e,s):n(m,g,c,e,t,s);if(!(void 0===v?m===g||i(m,g,r,n,s):v)){f=!1;break}p||(p="constructor"==c)}if(f&&!p){var x=e.constructor,y=t.constructor;x!=y&&"constructor"in e&&"constructor"in t&&!("function"==typeof x&&x instanceof x&&"function"==typeof y&&y instanceof y)&&(f=!1)}return s.delete(e),s.delete(t),f};var iE=rV(rb,"DataView"),ik=rV(rb,"Promise"),iN=rV(rb,"Set"),iB=rV(rb,"WeakMap"),iM="[object Map]",iS="[object Promise]",iT="[object Set]",iz="[object WeakMap]",iL="[object DataView]",i$=rH(iE),iH=rH(rU),iO=rH(ik),iP=rH(iN),iI=rH(iB),iR=rM;(iE&&iR(new iE(new ArrayBuffer(1)))!=iL||rU&&iR(new rU)!=iM||ik&&iR(ik.resolve())!=iS||iN&&iR(new iN)!=iT||iB&&iR(new iB)!=iz)&&(iR=function(e){var t=rM(e),r="[object Object]"==t?e.constructor:void 0,n=r?rH(r):"";if(n)switch(n){case i$:return iL;case iH:return iM;case iO:return iS;case iP:return iT;case iI:return iz}return t});let iW=iR;var iG="[object Arguments]",iV="[object Array]",iU="[object Object]",iZ=Object.prototype.hasOwnProperty;function iq(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],s=r.cache;if(s.has(i))return s.get(i);var o=e.apply(this,n);return r.cache=s.set(i,o)||s,o};return r.cache=new(iq.Cache||rQ),r}iq.Cache=rQ;var iK=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,iY=/\\(\\)?/g,iJ=(v=(g=iq(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(iK,function(e,r,n,i){t.push(n?i.replace(iY,"$1"):r||e)}),t},function(e){return 500===v.size&&v.clear(),e})).cache,g);let iX=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i};var iQ=rj?rj.prototype:void 0,i0=iQ?iQ.toString:void 0;Object.prototype.hasOwnProperty;var i1=r("k");let i2="default";function i4(e,t,r){let n=typeof r,i=typeof e;if("undefined"!==n){if("undefined"!==i){if(r){if("function"===i&&n===i)return function(t){return e(r(t))};if((t=e.constructor)===r.constructor){if(t===Array)return r.concat(e);if(t===Map){var s=new Map(r);for(var o of e)s.set(o[0],o[1]);return s}
2if(t===Set){for(s of(o=new Set(r),e.values()))o.add(s);return o}}}return e}return r}return"undefined"===i?t:e}function i5(e,t){return void 0===e?t:e}function i3(){return Object.create(null)}function i6(e){return"string"==typeof e}function i7(e){return"object"==typeof e}function i8(e,t){if(i6(t))e=e[t];else for(let r=0;e&&r<t.length;r++)e=e[t[r]];return e}let i9=/[^\p{L}\p{N}]+/u,se=/(\d{3})/g,st=/(\D)(\d{3})/g,sr=/(\d{3})(\D)/g,sn=/[\u0300-\u036f]/g;function si(e={}){if(!this||this.constructor!==si)return new si(...arguments);if(arguments.length)for(e=0;e<arguments.length;e++)this.assign(arguments[e]);else this.assign(e)}function ss(e){e.F=null,e.B.clear(),e.D.clear()}function so(e,t,r){r||(t||"object"!=typeof e?"object"==typeof t&&(r=t,t=0):r=e),r&&(e=r.query||e,t=r.limit||t);let n=""+(t||0);r&&(n+=(r.offset||0)+!!r.context+!!r.suggest+(!1!==r.resolve)+(r.resolution||this.resolution)+(r.boost||0)),e=(""+e).toLowerCase(),this.cache||(this.cache=new sl);let i=this.cache.get(e+n);if(!i){let s=r&&r.cache;s&&(r.cache=!1),i=this.search(e,t,r),s&&(r.cache=s),this.cache.set(e+n,i)}return i}function sl(e){this.limit=e&&!0!==e?e:1e3,this.cache=new Map,this.h=""}(y=si.prototype).assign=function(e){this.normalize=i4(e.normalize,!0,this.normalize);let t=e.include,r=t||e.exclude||e.split,n;if(r||""===r){if("object"==typeof r&&r.constructor!==RegExp){let e="";n=!t,t||(e+="\\p{Z}"),r.letter&&(e+="\\p{L}"),r.number&&(e+="\\p{N}",n=!!t),r.symbol&&(e+="\\p{S}"),r.punctuation&&(e+="\\p{P}"),r.control&&(e+="\\p{C}"),(r=r.char)&&(e+="object"==typeof r?r.join(""):r);try{this.split=RegExp("["+(t?"^":"")+e+"]+","u")}catch(e){this.split=/\s+/}}else this.split=r,n=!1===r||"a1a".split(r).length<2;this.numeric=i4(e.numeric,n)}else{try{this.split=i4(this.split,i9)}catch(e){this.split=/\s+/}this.numeric=i4(e.numeric,i4(this.numeric,!0))}if(this.prepare=i4(e.prepare,null,this.prepare),this.finalize=i4(e.finalize,null,this.finalize),r=e.filter,this.filter="function"==typeof r?r:i4(r&&new Set(r),null,this.filter),this.dedupe=i4(e.dedupe,!0,this.dedupe),this.matcher=i4((r=e.matcher)&&new Map(r),null,this.matcher),this.mapper=i4((r=e.mapper)&&new Map(r),null,this.mapper),this.stemmer=i4((r=e.stemmer)&&new Map(r),null,this.stemmer),this.replacer=i4(e.replacer,null,this.replacer),this.minlength=i4(e.minlength,1,this.minlength),this.maxlength=i4(e.maxlength,1024,this.maxlength),this.rtl=i4(e.rtl,!1,this.rtl),(this.cache=r=i4(e.cac
2he,!0,this.cache))&&(this.F=null,this.L="number"==typeof r?r:2e5,this.B=new Map,this.D=new Map,this.I=this.H=128),this.h="",this.J=null,this.A="",this.K=null,this.matcher)for(let e of this.matcher.keys())this.h+=(this.h?"|":"")+e;if(this.stemmer)for(let e of this.stemmer.keys())this.A+=(this.A?"|":"")+e;return this},y.addStemmer=function(e,t){return this.stemmer||(this.stemmer=new Map),this.stemmer.set(e,t),this.A+=(this.A?"|":"")+e,this.K=null,this.cache&&ss(this),this},y.addFilter=function(e){return"function"==typeof e?this.filter=e:(this.filter||(this.filter=new Set),this.filter.add(e)),this.cache&&ss(this),this},y.addMapper=function(e,t){return"object"==typeof e?this.addReplacer(e,t):e.length>1?this.addMatcher(e,t):(this.mapper||(this.mapper=new Map),this.mapper.set(e,t),this.cache&&ss(this),this)},y.addMatcher=function(e,t){return"object"==typeof e?this.addReplacer(e,t):e.length<2&&(this.dedupe||this.mapper)?this.addMapper(e,t):(this.matcher||(this.matcher=new Map),this.matcher.set(e,t),this.h+=(this.h?"|":"")+e,this.J=null,this.cache&&ss(this),this)},y.addReplacer=function(e,t){return"string"==typeof e?this.addMatcher(e,t):(this.replacer||(this.replacer=[]),this.replacer.push(e,t),this.cache&&ss(this),this)},y.encode=function(e,t){if(this.cache&&e.length<=this.H)if(this.F){if(this.B.has(e))return this.B.get(e)}else this.F=setTimeout(ss,50,this);this.normalize&&(e="function"==typeof this.normalize?this.normalize(e):sn?e.normalize("NFKD").replace(sn,"").toLowerCase():e.toLowerCase()),this.prepare&&(e=this.prepare(e)),this.numeric&&e.length>3&&(e=e.replace(st,"$1 $2").replace(sr,"$1 $2").replace(se,"$1 "));let r=!(this.dedupe||this.mapper||this.filter||this.matcher||this.stemmer||this.replacer),n=[],i=i3(),s,o,l=this.split||""===this.split?e.split(this.split):[e];for(let e=0,u,c;e<l.length;e++)if((u=c=l[e])&&!(u.length<this.minlength||u.length>this.maxlength)){if(t){if(i[u])continue;i[u]=1}else{if(s===u)continue;s=u}if(r)n.push(u);else if(!this.filter||("function"==typeof this.filter?this.filter(u):!this.filter.has(u))){if(this.cache&&u.length<=this.I)if(this.F){var a=this.D.get(u);if(a||""===a){a&&n.push(a);continue}}else this.F=setTimeout(ss,50,this);if(this.stemmer){let e;for(this.K||(this.K=RegExp("(?!^)("+this.A+")$"));e!==u&&u.length>2;)e=u,u=u.replace(this.K,e=>this.stemmer.get(e))}if(u&&(this.mapper||this.dedupe&&u.length>1)){a="";for(let e=0,t="",r,n;e<u.length;e++)(r=u.charAt(e))===t&&this.dedupe||((n=this.mapper&&this.mapper.get(r))||""===n?(n!==t||!this.dedupe)&&(t=n)&&(a+=n):a+=t=r);u=a}if(this.matcher&&u.length>1&&(this.J||(this.J=RegExp("("+this.h+")","g")),u=u.replace(this.J,e=>this.matcher.get(e))),u&&this.replacer)for(a=0;u&&a<this.replacer.length;a+=2)u=u.replace(this.replacer[a],this.replacer[a+1]);if(this.cache&&c.length<=this.I&&(this.D.set(c,u),this.D.size>this.L&&(this.D.clear(),this.I=this.I/1.1|0)),u){if(u!==c)if(t){if(i[u])continue;i[u]=1}else{if(o===u)continue;o=u}n.push(u)}}}return this.finalize&&(n=this.finalize(n)||n),this.cache&&e.length<=this.H&&(this.B.set(e,n),this.B.size>this.L&&(this.B.clear(),this.H=this.H/1.1|0)),n},sl.prototype.set=function(e,t){this.cache.set(this.h=e,t),this.cache.size>this.limit&&this.cache.delete(this.cache.keys().next().value)},sl.prototype.get=function(e){let t=this.cache.get(e);return t&&this.h!==e&&(this.cache.delete(e),this.cache.set(this.h=e,t)),t},sl.prototype.remove=function(e){for(let t of this.cache){let r=t[0];t[1].includes(e)&&this.cache.delete(r)}},sl.prototype.clear=function(){this.cache.clear(),this.h=""};let sa={normalize:!1,numeric:!1,dedupe:!1},su={},sc=new Map([["b","p"],["v","f"],["w","f"],["z","s"],["x","s"],["d","t"],["n","m"],["c","k"],["g","k"],["j","k"],["q","k"],["i","e"],["y","e"],["u","o"]]),sh=new Map([["ae","a"],["oe","o"],["sh","s"],["kh","k"],["th","t"],["ph","f"],["pf","f"]]),sd=[/([^aeo])h(.)/g,"$1$2",/([aeo])h([^aeo]|$)/g,"$1$2",/(.)\1+/g,"$1"],sf={a:"",e:"",i:"",o:"",u:"",y:"",b:1,f:1,p:1,v:1,c:2,g:2,j:2,k:2,q:2,s:2,x:2,z:2,ß:2,d:3,t:3,l:4,m:5,n:5,r:6};var sp={Exact:sa,Default:su,Normalize:su,LatinBalance:{mapper:sc},LatinAdvanced:{mapper:sc,matcher:sh,replacer:sd},LatinExtra:{mapper:sc,replacer:sd.concat([/(?!^)[aeo]/g,""]),matcher:sh},LatinSoundex:{dedupe:!1,include:{letter:!0},finalize:function(e){for(let r=0;r<e.length;r++){var t=e[r];let n=t.charAt(0),i=sf[n];for(let e=1,r;e<t.length&&("h"===(r=t.charAt(e))||"w"===r||!(r=sf[r])||r===i||(n+=r,i=r,4!==n.length));e++);e[r]=n}}},CJK:{split:""}
2,LatinExact:sa,LatinDefault:su,LatinSimple:su};function sm(e,t,r,n){let i=[];for(let s=0,o;s<e.index.length;s++)if(t>=(o=e.index[s]).length)t-=o.length;else{let s=(t=o[n?"splice":"slice"](t,r)).length;if(s&&(i=i.length?i.concat(t):t,r-=s,n&&(e.length-=s),!r))break;t=0}return i}function sg(e){if(!this||this.constructor!==sg)return new sg(e);this.index=e?[e]:[],this.length=e?e.length:0;let t=this;return new Proxy([],{get:(e,r)=>"length"===r?t.length:"push"===r?function(e){t.index[t.index.length-1].push(e),t.length++}:"pop"===r?function(){if(t.length)return t.length--,t.index[t.index.length-1].pop()}:"indexOf"===r?function(e){let r=0;for(let n=0,i,s;n<t.index.length;n++){if((s=(i=t.index[n]).indexOf(e))>=0)return r+s;r+=i.length}return -1}:"includes"===r?function(e){for(let r=0;r<t.index.length;r++)if(t.index[r].includes(e))return!0;return!1}:"slice"===r?function(e,r){return sm(t,e||0,r||t.length,!1)}:"splice"===r?function(e,r){return sm(t,e||0,r||t.length,!0)}:"constructor"===r?Array:"symbol"!=typeof r?(e=t.index[r/0x80000000|0])&&e[r]:void 0,set:(e,r,n)=>(e=r/0x80000000|0,(t.index[e]||(t.index[e]=[]))[r]=n,t.length++,!0)})}function sv(e=8){if(!this||this.constructor!==sv)return new sv(e);this.index=i3(),this.h=[],this.size=0,e>32?(this.B=sD,this.A=BigInt(e)):(this.B=sy,this.A=e)}function sx(e=8){if(!this||this.constructor!==sx)return new sx(e);this.index=i3(),this.h=[],this.size=0,e>32?(this.B=sD,this.A=BigInt(e)):(this.B=sy,this.A=e)}function sy(e){let t=2**this.A-1;if("number"==typeof e)return e&t;let r=0,n=this.A+1;for(let i=0;i<e.length;i++)r=(r*n^e.charCodeAt(i))&t;return 32===this.A?r+0x80000000:r}function sD(e){let t=BigInt(2)**this.A-BigInt(1);var r=typeof e;if("bigint"===r)return e&t;if("number"===r)return BigInt(e)&t;r=BigInt(0);let n=this.A+BigInt(1);for(let i=0;i<e.length;i++)r=(r*n^BigInt(e.charCodeAt(i)))&t;return r}async function sw(e){var t=(e=e.data).task;let r=e.id,s=e.args;if("init"===t)i=e.options||{},(t=e.factory)?(Function("return "+t)()(self),n=new self.FlexSearch.Index(i),delete self.FlexSearch):n=new s8(i),postMessage({id:r});else{let o;"export"===t&&(s[1]?(s[0]=i.export,s[2]=0,s[3]=1):s=null),"import"===t?s[0]&&(e=await i.import.call(n,s[0]),n.import(s[0],e)):((o=s&&n[t].apply(n,s))&&o.then&&(o=await o),o&&o.await&&(o=await o.await),"search"===t&&o.result&&(o=o.result)),postMessage("search"===t?{id:r,msg:o}:{id:r})}}function s_(e){sj.call(e,"add"),sj.call(e,"append"),sj.call(e,"search"),sj.call(e,"update"),sj.call(e,"remove"),sj.call(e,"searchCache")}function sb(){s=l=0}function sj(e){this[e+"Async"]=function(){let t,r=arguments;var n=r[r.length-1];if("function"==typeof n&&(t=n,delete r[r.length-1]),s?l||(l=Date.now()-o>=this.priority*this.priority*3):(s=setTimeout(sb,0),o=Date.now()),l){let t=this;return new Promise(n=>{setTimeout(function(){n(t[e+"Async"].apply(t,r))},0)})}let i=this[e].apply(this,r);return n=i.then?i:new Promise(e=>e(i)),t&&n.then(t),n}}sg.prototype.clear=function(){this.index.length=0},sg.prototype.push=function(){},sv.prototype.get=function(e){let t=this.index[this.B(e)];return t&&t.get(e)},sv.prototype.set=function(e,t){var r=this.B(e);let n=this.index[r];n?(r=n.size,n.set(e,t),(r-=n.size)&&this.size++):(this.index[r]=n=new Map([[e,t]]),this.h.push(n),this.size++)},sx.prototype.add=function(e){var t=this.B(e);let r=this.index[t];r?(t=r.size,r.add(e),(t-=r.size)&&this.size++):(this.index[t]=r=new Set([e]),this.h.push(r),this.size++)},(y=sv.prototype).has=sx.prototype.has=function(e){let t=this.index[this.B(e)];return t&&t.has(e)},y.delete=sx.prototype.delete=function(e){let t=this.index[this.B(e)];t&&t.delete(e)&&this.size--},y.clear=sx.prototype.clear=function(){this.index=i3(),this.h=[],this.size=0},y.values=sx.prototype.values=function*(){for(let e=0;e<this.h.length;e++)for(let t of this.h[e].values())yield t},y.keys=sx.prototype.keys=function*(){for(let e=0;e<this.h.length;e++)for(let t of this.h[e].keys())yield t},y.entries=sx.prototype.entries=function*(){for(let e=0;e<this.h.length;e++)for(let t of this.h[e].entries())yield t};let sF=0;function sC(e={},t){var n,i,s;function o(r){function n(e){let t=(e=e.data||e).id,r=t&&u.h[t];r&&(r(e.msg),delete u.h[t])}if(this.worker=r,this.h=i3(),this.worker)return(a?this.worker.on("message",n):this.worker.onmessage=n,e.config)?new Promise(function(t){sF>
21e9&&(sF=0),u.h[++sF]=function(){t(u)},u.worker.postMessage({id:sF,task:"init",factory:l,options:e})}):(this.priority=e.priority||4,this.encoder=t||null,this.worker.postMessage({task:"init",factory:l,options:e}),this)}if(!this||this.constructor!==sC)return new sC(e);let l="u">typeof self?self._factory:"u">typeof window?window._factory:null;l&&(l=l.toString());let a="u"<typeof window,u=this,c=(n=l,i=a,s=e.worker,i?"u">typeof module?new(require("worker_threads")).Worker(__dirname+"/worker/node.js"):r.e(2).then(r.t.bind(r,"IQ",19)).then(function(e){return new e.Worker("//node/node.mjs")}):n?new window.Worker(URL.createObjectURL(new Blob(["onmessage="+sw.toString()],{type:"text/javascript"}))):new window.Worker("string"==typeof s?s:"file:///vercel/path0/apps/website/node_modules/.pnpm/[email protected]/node_modules/flexsearch/dist/flexsearch.bundle.module.min.mjs".replace("/worker.js","/worker/worker.js").replace("flexsearch.bundle.module.min.js","module/worker/worker.js").replace("flexsearch.bundle.module.min.mjs","module/worker/worker.js"),{type:"module"}));return c.then?c.then(function(e){return o.call(u,e)}):o.call(this,c)}function sA(e){sC.prototype[e]=function(){let t,r=this,n=[].slice.call(arguments);var i=n[n.length-1];return"function"==typeof i&&(t=i,n.pop()),i=new Promise(function(t){"export"===e&&"function"==typeof n[0]&&(n[0]=null),sF>1e9&&(sF=0),r.h[++sF]=t,r.worker.postMessage({task:e,id:sF,args:n})}),t?(i.then(t),this):i}}function sE(e,t,r,n){if(!e.length)return e;if(1===e.length)return e=e[0],e=r||e.length>t?e.slice(r,r+t):e,n?sR.call(this,e):e;let i=[];for(let s=0,o,l;s<e.length;s++)if((o=e[s])&&(l=o.length)){if(r){if(r>=l){r-=l;continue}l=(o=o.slice(r,r+t)).length,r=0}if(l>t&&(o=o.slice(0,t),l=t),!i.length&&l>=t)return n?sR.call(this,o):o;if(i.push(o),!(t-=l))break}return i=i.length>1?[].concat.apply([],i):i[0],n?sR.call(this,i):i}function sk(e,t,r,n){var i=n[0];if(i[0]&&i[0].query)return e[t].apply(e,i);if(!("and"!==t&&"not"!==t||e.result.length||e.await||i.suggest))return n.length>1&&(i=n[n.length-1]),(n=i.resolve)?e.await||e.result:e;let s=[],o=0,l=0,a,u,c,h,d;for(t=0;t<n.length;t++)if(i=n[t]){var f=void 0;if(i.constructor===sL)f=i.await||i.result;else if(i.then||i.constructor===Array)f=i;else{o=i.limit||0,l=i.offset||0,c=i.suggest,u=i.resolve,a=((h=i.highlight||e.highlight)||i.enrich)&&u,f=i.queue;let r=i.async||f,n=i.index,p=i.query;if(n?e.index||(e.index=n):n=e.index,p||i.tag){let o=i.field||i.pluck;if(o&&(p&&(!e.query||h)&&(e.query=p,e.field=o,e.highlight=h),n=n.index.get(o)),f&&(d||e.await)){let o;d=1;let l=e.C.length,a=new Promise(function(e){o=e});!function(t,n){a.h=function(){n.index=null,n.resolve=!1;let i=r?t.searchAsync(n):t.search(n);return i.then?i.then(function(t){return e.C[l]=t=t.result||t,o(t),t}):(i=i.result||i,o(i),i)}}(n,Object.assign({},i)),e.C.push(a),s[t]=a;continue}i.resolve=!1,i.index=null,f=r?n.searchAsync(i):n.search(i),i.resolve=u,i.index=n}else if(i.and)f=sN(i,"and",n);else if(i.or)f=sN(i,"or",n);else if(i.not)f=sN(i,"not",n);else{if(!i.xor)continue;f=sN(i,"xor",n)}}f.await?(d=1,f=f.await):f.then?(d=1,f=f.then(function(e){return e.result||e})):f=f.result||f,s[t]=f}if(d&&!e.await&&(e.await=new Promise(function(t){e.return=t})),d){let t=Promise.all(s).then(function(n){for(let i=0;i<e.C.length;i++)if(e.C[i]===t){e.C[i]=function(){return r.call(e,n,o,l,a,u,c,h)};break}s$(e)});e.C.push(t)}else{if(!e.await)return r.call(e,s,o,l,a,u,c,h);e.C.push(function(){return r.call(e,s,o,l,a,u,c,h)})}return u?e.await||e.result:e}function sN(e,t,r){let n=(e=e[t])[0]||e;return n.index||(n.index=r),r=new sL(n),e.length>1&&(r=r[t].apply(r,e.slice(1))),r}function sB(e,t,r,n,i,s,o){return e.length&&(this.result.length&&e.push(this.result),e.length<2?this.result=e[0]:(this.result=sO(e,t,r,!1,this.h),r=0)),i&&(this.await=null),i?this.resolve(t,r,n,o):this}function sM(e,t,r,n,i,s,o){let l;if(!s&&!this.result.length)return i?this.result:this;if(e.length)if(this.result.length&&e.unshift(this.result),e.length<2)this.result=e[0];else{let n=0;for(let t=0,r,i;t<e.length;t++)if((r=e[t])&&(i=r.length))n<i&&(n=i);else if(!s){n=0;break}n?(this.result=sH(e,n,t,r,s,this.h,i),l=!0):this.result=[]}else s||(this.result=e);return i&&(this.await=null),i?this.resolve(t,r,n,o,l):this}function sS(e,t,r,n,i,s,o){if(e.length)if(this.result.length&&e.unshift(this.result),e.length<2)this.result=e[0];else{e:{s=r;var l=this.h;let n=[],o=i3(),a=0;for(let t=0,r;t<e.length;t++)if(r=e[t]){a<r.length&&(a=r.length);for(let e=0,t;e<r.length;e++)if(t=r[e])for(let e=0,r;e<t.length;e++)o[r=t[e]]=o[r]?2:1}for(let r=0,u,c=0;r<a;r++)for(let a=0,h;a<e.length;a++)if((h=e[a])&&(u=h[r])){for(let h=0,d;h<u.length;h++)if(1===o[d=u[h]])if(s)s--;else if(i){if(n.push(d),n.length===t){e=n;break e}}else{let i=r+(a?l:0);if(n[i]||(n[i]=[]),n[i].push(d),++c===t){e=n;break e}}}e=n}this.result=e,l=!0}else s||(this.result=e);return i&&(this.await=null),i?this.resolve(t,r,n,o,l):this}function sT(e,t,r,n,i,s,o){if(!s&&!this.result.length)return i?this.result:this;if(e.length&&this.result.length){e:{s=r;var l=[];e=new Set(e.flat().flat());for(let r=0,n,o=0;r<this.result.length;r++)if(n=this.result[r]){for(let a=0,u;a<n.length;a++)if(u=n[a],!e.has(u)){if(s)s--;else if(i){if(l.push(u),l.length===t){e=l;break e}}else if(l[r]||(l[r]=[]),l[r].push(u),++o===t){e=l;break e}}}e=l}this.result=e,l=!0}return i&&(this.await=null),i?this.resolve(t,r,n,o,l):this}function sz(e,t,r,n,i){let s,o,l,a,u;"string"==typeof i?(s=i,i=""):s=i.template,o=s.indexOf("$1"),l=s.substring(o+2),o=s.substring(0,o);let c=i&&i.boundary,h=!i||!1!==i.clip,d=i&&i.merge&&l&&o&&RegExp(l+" "+o,"g");i=i&&i.ellipsis;var f=0;if("object"==typeof i){var p=i.template;f=p.length-2,i=i.pattern}"string"!=typeof i&&(i=!1===i?"":"..."),f&&(i=p.replace("$1",i)),p=i.length-f,"object"==typeof c&&(0===(a=c.before)&&(a=-1),0===(u=c.after)&&(u=-1),c=c.total||9e5),f=new Map;for(let S=0,T,z;S<t.length;S++){let L;if(n)L=t,z=n;else{var m=t[S];if(!(z=m.field))continue;L=m.result}T=r.get(z).encoder,"string"!=typeof(m=f.get(T))&&(m=T.encode(e),f.set(T,m));for(let e=0;e<L.length;e++){var g=L[e].doc;if(!g||!(g=i8(g,z)))continue;var v=g.trim().split(/\s+/);if(!v.length)continue;g="";var x=[];let t=[];for(var y=-1,D=-1,w=0,_=0;_<v.length;_++){let e;var b=v[_],j=T.encode(b);if((j=j.length>1?j.join(" "):j[0])&&b){for(var F=b.length,C=(T.split?b.replace(T.split,""):b).length-j.length,A="",E=0,k=0;k<m.length;k++){var N=m[k];if(N){var B=N.length;B+=C<0?0:C,E&&B<=E||(N=j.indexOf(N))>-1&&(A=(N?b.substring(0,N):"")+o+b.substring(N,N+B)+l+(N+B<F?b.substring(N+B):""),E=B,e=!0)}}A&&(c&&(y<0&&(y=g.length+ +!!g),D=g.length+ +!!g+A.length,w+=F,t.push(x.length),x.push({match:A})),g+=(g?" ":"")+A)}if(e){if(c&&w>=c)break}else b=v[_],g+=(g?" ":"")+b,c&&x.push({text:b})}if(w=t.length*(s.length-2),a||u||c&&g.length-w>c)if(w=c+w-2*p,_=D-y,a>0&&(_+=a),u>0&&(_+=u),_<=w)v=a?y-(a>0?a:0):y-((w-_)/2|0),x=u?D+(u>0?u:0):v+w,h||(v>0&&" "!==g.charAt(v)&&" "!==g.charAt(v-1)&&(v=g.indexOf(" ",v))<0&&(v=0),x<g.length&&" "!==g.charAt(x-1)&&" "!==g.charAt(x)&&((x=g.lastIndexOf(" ",x))<D?x=D:++x)),g=(v?i:"")+g.substring(v,x)+(x<g.length?
2i:"");else{for(D=[],y={},w={},_={},b={},j={},A=C=F=0,k=E=1;;){var M=void 0;for(let e=0,r;e<t.length;e++){if(r=t[e],A)if(C!==A){if(_[e+1])continue;if(y[r+=A]){F-=p,w[e+1]=1,_[e+1]=1;continue}if(r>=x.length-1){if(r>=x.length){_[e+1]=1,r>=v.length&&(w[e+1]=1);continue}F-=p}if(g=x[r].text,B=u&&j[e])if(B>0){if(g.length>B)if(_[e+1]=1,!h)continue;else g=g.substring(0,B);(B-=g.length)||(B=-1),j[e]=B}else{_[e+1]=1;continue}if(F+g.length+1<=c)g=" "+g,D[e]+=g;else if(h)(M=c-F-1)>0&&(g=" "+g.substring(0,M),D[e]+=g),_[e+1]=1;else{_[e+1]=1;continue}}else{if(_[e])continue;if(y[r-=C]){F-=p,_[e]=1,w[e]=1;continue}if(r<=0){if(r<0){_[e]=1,w[e]=1;continue}F-=p}if(g=x[r].text,B=a&&b[e])if(B>0){if(g.length>B)if(_[e]=1,!h)continue;else g=g.substring(g.length-B);(B-=g.length)||(B=-1),b[e]=B}else{_[e]=1;continue}if(F+g.length+1<=c)g+=" ",D[e]=g+D[e];else if(h)(M=g.length+1-(c-F))>=0&&M<g.length&&(g=g.substring(M)+" ",D[e]=g+D[e]),_[e]=1;else{_[e]=1;continue}}else{let t;if(g=x[r].match,a&&(b[e]=a),u&&(j[e]=u),e&&F++,r?!e&&p&&(F+=p):(w[e]=1,_[e]=1),r>=v.length-1||r<x.length-1&&x[r+1].match?t=1:p&&(F+=p),F-=s.length-2,!e||F+g.length<=c)D[e]=g;else{M=E=k=w[e]=0;break}t&&(w[e+1]=1,_[e+1]=1)}F+=g.length,M=y[r]=1}if(M)C===A?A++:C++;else{if(C===A?E=0:k=0,!E&&!k)break;E?A=++C:A++}}g="";for(let e=0;e<D.length;e++)g+=(w[e]?e?" ":"":(e&&!i?" ":"")+i)+D[e];i&&!w[D.length]&&(g+=i)}d&&(g=g.replace(d," ")),L[e].highlight=g}if(n)break}return t}function sL(e,t){if(!this||this.constructor!==sL)return new sL(e,t);let r=0,n,i,s,o,l,a;if(e&&e.index){let n=e;if(t=n.index,r=n.boost||0,i=n.query){s=n.field||n.pluck,o=n.highlight;let r=n.resolve;e=n.async||n.queue,n.resolve=!1,n.index=null,e=e?t.searchAsync(n):t.search(n),n.resolve=r,n.index=t,e=e.result||e}else e=[]}if(e&&e.then){let t=this;n=[e=e.then(function(e){t.C[0]=t.result=e.result||e,s$(t)})],e=[],l=new Promise(function(e){a=e})}this.index=t||null,this.result=e||[],this.h=r,this.C=n||[],this.await=l||null,this.return=a||null,this.highlight=o||null,this.query=i||"",this.field=s||""}function s$(e,t){let r=e.result;var n=e.await;e.await=null;for(let t=0,i;t<e.C.length;t++)if(i=e.C[t]){if("function"==typeof i)r=i(),e.C[t]=r=r.result||r,t--;else if(i.h)r=i.h(),e.C[t]=r=r.result||r,t--;else if(i.then)return e.await=n}return n=e.return,e.C=[],e.return=null,t||n(r),r}function sH(e,t,r,n,i,s,o){let l=e.length,a=[],u,c;u=i3();for(let h=0,d,f,p,m;h<t;h++)for(let t=0;t<l;t++)if(h<(p=e[t]).length&&(d=p[h]))for(let e=0;e<d.length;e++){if((c=u[f=d[e]])?u[f]++:(c=0,u[f]=1),m=a[c]||(a[c]=[]),!o){let e=h+(t||!i?0:s||0);m=m[e]||(m[e]=[])}if(m.push(f),o&&r&&c===l-1&&m.length-n===r)return n?m.slice(n):m}if(e=a.length)if(i)a=a.length>1?sO(a,r,n,o,s):(a=a[0])&&r&&a.length>r||n?a.slice(n,r+n):a;else{if(e<l)return[];if(a=a[e-1],r||n)if(o)(a.length>r||n)&&(a=a.slice(n,r+n));else{i=[];for(let e=0,t;e<a.length;e++)if(t=a[e]){if(n&&t.length>n)n-=t.length;else if((r&&t.length>r||n)&&(t=t.slice(n,r+n),r-=t.length,n&&(n-=t.length)),i.push(t),!r)break}a=i}}return a}function sO(e,t,r,n,i){let s,o,l=[],a=i3();var u=e.length;if(n){for(i=u-1;i>=0;i--)if(o=(n=e[i])&&n.length){for(u=0;u<o;u++)if(!a[s=n[u]]){if(a[s]=1,r)r--;else if(l.push(s),l.length===t)return l}}}else for(let c=u-1,h,d=0;c>=0;c--){h=e[c];for(let e=0;e<h.length;e++)if(o=(n=h[e])&&n.length){for(let h=0;h<o;h++)if(!a[s=n[h]])if(a[s]=1,r)r--;else{let r=(e+(c<u-1&&i||0))/(c+1)|0;if((l[r]||(l[r]=[])).push(s),++d===t)return l}}}return l}function sP(e){let t=[],r=i3(),n=i3();for(let i=0,s,o,l,a,u,c,h;i<e.length;i++){o=(s=e[i]).field,l=s.result;for(let e=0;e<l.length;e++)"object"!=typeof(u=l[e])?u={id:a=u}:a=u.id,(c=r[a])?c.push(o):(u.field=r[a]=[o],t.push(u)),(h=u.highlight)&&((c=n[a])||(n[a]=c={},u.highlight=c),c[o]=h)}return t}function sI(e,t,r,n,i){return(e=this.tag.get(e))&&(e=e.get(t))?((t=e.length-n)>0&&((r&&t>r||n)&&(e=e.slice(n,n+r)),i&&(e=sR.call(this,e))),e):[]}function sR(e){if(!this||!this.store)return e;if(this.db)return this.index.get(this.field[0]).db.enrich(e);let t=Array(e.length);for(let r=0,n;r<e.length;r++)n=e[r],t[r]={id:n,doc:this.store.get(n)};return t}function sW(e){let t,r;if(!this||this.constructor!==sW)return new sW(e);let n=e.document||e.doc||e;if(this.B=[],this.field=[],this.D=[],this.key=(t=n.key||n.id)&&sV(t,this.D)||"id",(r=e.keystore||0)&&(this.keystore=r),this.fastupdate=!!e.fastupdate,this.reg=!this.fastupdate||e.worker||e.db?r?new sx(r):new Set:r?new sv(r):new Map,this.h=(t=n.store||null)&&t&&!0!==t&&[],this.store=t?r?new sv(r):new Map:null,this.cache=(t=e.cache||null)&&new sl(t),e.cache=!1,this.worker=e.worker||!1,this.priority=e.priority||4,this.index=sG.call(this,e,n),this.tag=null,(t=n.tag)&&("string"==typeof t&&(t=[t]),t.length)){this.tag=new Map,this.A=[],this.F=[];for(let e=0,r,n;
2e<t.length;e++){if(!(n=(r=t[e]).field||r))throw Error("The tag field from the document descriptor is undefined.");r.custom?this.A[e]=r.custom:(this.A[e]=sV(n,this.D),r.filter&&("string"==typeof this.A[e]&&(this.A[e]=new String(this.A[e])),this.A[e].G=r.filter)),this.F[e]=n,this.tag.set(n,new Map)}}if(this.worker){for(let t of(this.fastupdate=!1,e=[],this.index.values()))t.then&&e.push(t);if(e.length){let t=this;return Promise.all(e).then(function(e){let r=0;for(let n of t.index.entries()){let i=n[0],s=n[1];s.then&&(s=e[r],t.index.set(i,s),r++)}return t})}}else e.db&&(this.fastupdate=!1,this.mount(e.db))}function sG(e,t){let r=new Map,n=t.index||t.field||t;i6(n)&&(n=[n]);for(let t=0,s,o;t<n.length;t++){if(i6(s=n[t])||(o=s,s=s.field),o=i7(o)?Object.assign({},e,o):e,this.worker){var i=void 0;i=(i=o.encoder)&&i.encode?i:new si("string"==typeof i?sp[i]:i||{}),i=new sC(o,i),r.set(s,i)}this.worker||r.set(s,new s8(o,this.reg)),o.custom?this.B[t]=o.custom:(this.B[t]=sV(s,this.D),o.filter&&("string"==typeof this.B[t]&&(this.B[t]=new String(this.B[t])),this.B[t].G=o.filter)),this.field[t]=s}if(this.h){i6(e=t.store)&&(e=[e]);for(let t=0,r,n;t<e.length;t++)n=(r=e[t]).field||r,r.custom?(this.h[t]=r.custom,r.custom.O=n):(this.h[t]=sV(n,this.D),r.filter&&("string"==typeof this.h[t]&&(this.h[t]=new String(this.h[t])),this.h[t].G=r.filter))}return r}function sV(e,t){let r=e.split(":"),n=0;for(let i=0;i<r.length;i++)"]"===(e=r[i])[e.length-1]&&(e=e.substring(0,e.length-2))&&(t[n]=!0),e&&(r[n++]=e);return n<r.length&&(r.length=n),n>1?r:r[0]}function sU(e,t=0){let r=[],n=[];for(let i of(t&&(t=25e4/t*5e3|0),e.entries()))n.push(i),n.length===t&&(r.push(n),n=[]);return n.length&&r.push(n),r}function sZ(e,t){t||(t=new Map);for(let r=0,n;r<e.length;r++)n=e[r],t.set(n[0],n[1]);return t}function sq(e,t=0){let r=[],n=[];for(let i of(t&&(t=25e4/t*1e3|0),e.entries()))n.push([i[0],sU(i[1])[0]||[]]),n.length===t&&(r.push(n),n=[]);return n.length&&r.push(n),r}function sK(e,t){t||(t=new Map);for(let r=0,n,i;r<e.length;r++)n=e[r],i=t.get(n[0]),t.set(n[0],sZ(n[1],i));return t}function sY(e){let t=[],r=[];for(let n of e.keys())r.push(n),25e4===r.length&&(t.push(r),r=[]);return r.length&&t.push(r),t}function sJ(e,t){t||(t=new Set);for(let r=0;r<e.length;r++)t.add(e[r]);return t}function sX(e,t,r,n,i,s,o=0){let l=n&&n.constructor===Array;var a=l?n.shift():n;if(!a)return this.export(e,t,i,s+1);if((a=e((t?t+".":"")+(o+1)+"."+r,JSON.stringify(a)))&&a.then){let u=this;return a.then(function(){return sX.call(u,e,t,r,l?n:null,i,s,o+1)})}return sX.call(this,e,t,r,l?n:null,i,s,o+1)}function sQ(e,t){let r="";for(let n of e.entries()){e=n[0];let i=n[1],s="";for(let e=0,r;e<i.length;e++){r=i[e]||[""];let n="";for(let e=0;e<r.length;e++)n+=(n?",":"")+("string"===t?'"'+r[e]+'"':r[e]);n="["+n+"]",s+=(s?",":"")+n}s='["'+e+'",['+s+"]]",r+=(r?",":"")+s}return r}function s0(e,t){let r=0;var n=void 0===t;if(e.constructor===Array){for(let i=0,s,o,l;i<e.length;i++)if((s=e[i])&&s.length){if(n)return 1;if((o=s.indexOf(t))>=0){if(s.length>1)return s.splice(o,1),1;if(delete e[i],r)return 1;l=1}else{if(l)return 1;r++}}}else for(let i of e.entries())n=i[0],s0(i[1],t)?r++:e.delete(n);return r}sA("add"),sA("append"),sA("search"),sA("update"),sA("remove"),sA("clear"),sA("export"),sA("import"),sC.prototype.searchCache=so,s_(sC.prototype),sW.prototype.add=function(e,t,r){if(i7(e)&&(e=i8(t=e,this.key)),t&&(e||0===e)){if(!r&&this.reg.has(e))return this.update(e,t);for(let s=0,o;s<this.field.length;s++){o=this.B[s];var n=this.index.get(this.field[s]);if("function"==typeof o){var i=o(t);i&&n.add(e,i,r,!0)}else(!(i=o.G)||i(t))&&(o.constructor===String?o=[""+o]:i6(o)&&(o=[o]),function e(t,r,n,i,s,o,l,a){if(t=t[l])if(i===r.length-1){if(t.constructor===Array){if(n[i]){for(r=0;r<t.length;r++)s.add(o,t[r],!0,!0);return}t=t.join(" ")}s.add(o,t,a,!0)}else if(t.constructor===Array)for(l=0;l<t.length;l++)e(t,r,n,i,s,o,l,a);else l=r[++i],e(t,r,n,i,s,o,l,a)}(t,o,this.D,0,n,e,o[0],r))}if(this.tag)for(n=0;n<this.A.length;n++){var s=this.A[n];i=this.tag.get(this.F[n]);let l=i3();if("function"==typeof s){if(!(s=s(t)))continue}else{var o=s.G;if(o&&!o(t))continue;s.constructor===String&&(s=""+s),s=i8(t,s)}if(i&&s){i6(s)&&(s=[s]);for(let t=0,n,a;t<s.length;t++)if(!l[n=s[t]]&&(l[n]=1,(o=i.get(n))?a=o:i.set(n,a=[]),!r||!a.includes(e))){if(0x7fffffff===a.length){if(o=new sg(a),this.fastupdate)for(let e of this.reg.values())e.includes(a)&&(e[e.indexOf(a)]=o);i.set(n,a=o)}a.push(e),this.fastupdate&&((o=this.reg.get(e))?o.push(a):this.reg.set(e,[a]))}}}if(this.store&&(!r||!this.store.has(e))){let n;if(this.h){n=i3();for(let e=0,i;e<this.h.length;e++){let s;if(!(r=(i=this.h[e]).G)||r(t)){if("function"==typeof i){if(!(s=i(t)))continue;i=[i.O]}else if(i6(i)||i.constructor===String){n[i]=t[i];continue}!function e(t,r,n,i,s,o){if(t=t[s],i===n.length-1)r[s]=o||t;else if(t)if(t.constructor===Array)for(r=r[s]=Array(t.length),s=0;s<t.length;s++)e(t,r,n,i,s);else r=r[s]||(r[s]=i3()),s=n[++i],e(t,r,n,i,s)}(t,n,i,0,i[0],s)}}}this.store.set(e,n||t)}this.worker&&(this.fastupdate||this.reg.add(e))}return this},sL.prototype.or=function(){return sk(this,"or",sB,arguments)},sL.prototype.and=function(){return sk(this,"and",sM,arguments)},sL.prototype.xor=function(){return sk(this,"xor",sS,arguments)},sL.prototype.not=function(){return sk(this,"not",sT,arguments)},(y=sL.prototype).limit=function(e){if(this.await){let t=this;this.C.push(function(){return t.limit(e).result})}else if(this.result.length){let t=[];for(let r=0,n;r<this.result.length;r++)if(n=this.result[r])if(n.length<=e){if(t[r]=n,!(e-=n.length))break}else{t[r]=n.slice(0,e);break}this.result=t}return this},y.offset=function(e){if(this.await){let t=this;this.C.push(function(){return t.offset(e).result})}else if(this.result.length){let t=[];for(let r=0,n;r<this.result.length;r++)(n=this.result[r])&&(n.length<=e?e-=n.length:(t[r]=n.slice(e),e=0));this.result=t}return this},y.boost=function(e){if(this.await){let t=this;this.C.push(function(){return t.boost(e).result})}else this.h+=e;return this},y.resolve=function(e,t,r,n,i){let s=this.await?s$(this,!0):this.result;if(s.then){let o=this;return s.then(function(){return o.resolve(e,t,r,n,i)})}return s.length&&("object"==typeof e?(r=!!(n=e.highlight||this.highlight)||e.enrich,t=e.offset,e=e.limit):r=!!(n=n||this.highlight)||r,s=i?r?sR.call(this.index,s):s:sE.call(this.index,s,e||100,t,r)),this.finalize(s,n)},y.finalize=function(e,t){if(e.then){let r=this;return e.then(function(e){return r.finalize(e,t)})}t&&e.length&&this.query&&(e=sz(this.query,e,this.index.index,this.field,t));let r=this.return;return this.highlight=this.index=this.result=this.C=this.await=this.return=null,this.query=this.field="",r&&r(e),e},i3(),sW.prototype.search=function(e,t,r,n){let i,s,o,l,a,u,c;r||(!t&&i7(e)?(r=e,e=""):i7(t)&&(r=t,t=0));let h=[];var d=[];let f=0,p=!0,m;
2if(r){r.constructor===Array&&(r={index:r}),e=r.query||e,i=r.pluck,s=r.merge,l=r.boost,u=i||r.field||(u=r.index)&&(u.index?null:u);var g=this.tag&&r.tag;o=r.suggest,p=!1!==r.resolve,a=r.cache;var v=!!(m=p&&this.store&&r.highlight)||p&&this.store&&r.enrich;t=r.limit||t;var x=r.offset||0;if(t||(t=100*!!p),g&&(!this.db||!n)){g.constructor!==Array&&(g=[g]);var y=[];for(let e=0,t;e<g.length;e++)if((t=g[e]).field&&t.tag){var D=t.tag;if(D.constructor===Array)for(var w=0;w<D.length;w++)y.push(t.field,D[w]);else y.push(t.field,D)}else{D=Object.keys(t);for(let e=0,r,n;e<D.length;e++)if((n=t[r=D[e]]).constructor===Array)for(w=0;w<n.length;w++)y.push(r,n[w]);else y.push(r,n)}if(g=y,!e){if(d=[],y.length)for(g=0;g<y.length;g+=2){if(this.db){if(!(n=this.index.get(y[g])))continue;d.push(n=n.db.tag(y[g+1],t,x,v))}else n=sI.call(this,y[g],y[g+1],t,x,v);h.push(p?{field:y[g],tag:y[g+1],result:n}:[n])}if(d.length){let e=this;return Promise.all(d).then(function(t){for(let e=0;e<t.length;e++)p?h[e].result=t[e]:h[e]=t[e];return p?h:new sL(h.length>1?sH(h,1,0,0,o,l):h[0],e)})}return p?h:new sL(h.length>1?sH(h,1,0,0,o,l):h[0],this)}}!p&&!i&&(u=u||this.field)&&(i6(u)?i=u:(u.constructor===Array&&1===u.length&&(u=u[0]),i=u.field||u.index)),u&&u.constructor!==Array&&(u=[u])}u||(u=this.field),y=(this.worker||this.db)&&!n&&[];for(let i=0,s,l,b;i<u.length;i++){let j;if(l=u[i],!this.db||!this.tag||this.B[i]){if(i6(l)||(l=(j=l).field,e=j.query||e,t=i5(j.limit,t),x=i5(j.offset,x),o=i5(j.suggest,o),v=!!(m=p&&this.store&&i5(j.highlight,m))||p&&this.store&&i5(j.enrich,v),a=i5(j.cache,a)),n)s=n[i];else{w=(D=j||r||{}).enrich;var _=this.index.get(l);if(g&&(this.db&&(D.tag=g,D.field=u,c=_.db.support_tag_search),!c&&w&&(D.enrich=!1),c||(D.limit=0,D.offset=0)),s=a?_.searchCache(e,g&&!c?0:t,D):_.search(e,g&&!c?0:t,D),g&&!c&&(D.limit=t,D.offset=x),w&&(D.enrich=w),y){y[i]=s;continue}}if(b=(s=s.result||s)&&s.length,g&&b){if(D=[],w=0,this.db&&n){if(!c)for(_=u.length;_<n.length;_++){let e=n[_];if(e&&e.length)w++,D.push(e);else if(!o)return p?h:new sL(h,this)}}else for(let e=0,t;e<g.length;e+=2){if(!(t=this.tag.get(g[e])))if(o)continue;else return p?h:new sL(h,this);if((t=t&&t.get(g[e+1]))&&t.length)w++,D.push(t);else if(!o)return p?h:new sL(h,this)}if(w){if(!(b=(s=function(e,t,r,n,i){let s=i3(),o=[];for(let e=0,r;e<t.length;e++){r=t[e];for(let e=0;e<r.length;e++)s[r[e]]=1}if(i){for(let t=0,i;t<e.length;t++)if(s[i=e[t]]){if(n)n--;else if(o.push(i),s[i]=0,r&&0==--r)break}}else for(let r=0,n,i;r<e.result.length;r++)for(n=e.result[r],t=0;t<n.length;t++)s[i=n[t]]&&((o[r]||(o[r]=[])).push(i),s[i]=0);return o}(s,D,t,x,p)).length)&&!o)return p?s:new sL(s,this);w--}}if(b)d[f]=l,h.push(s),f++;else if(1===u.length)return p?h:new sL(h,this)}}if(y){if(this.db&&g&&g.length&&!c)for(v=0;v<g.length;v+=2){if(!(d=this.index.get(g[v])))if(o)continue;else return p?h:new sL(h,this);y.push(d.db.tag(g[v+1],t,x,!1))}let n=this;return Promise.all(y).then(function(i){return r&&(r.resolve=p),i.length&&(i=n.search(e,t,r,i)),i})}if(!f)return p?h:new sL(h,this);if(i&&(!v||!this.store))return h=h[0],p?h:new sL(h,this);for(x=0,y=[];x<d.length;x++){if(g=h[x],v&&g.length&&void 0===g[0].doc&&(this.db?y.push(g=this.index.get(this.field[0]).db.enrich(g)):g=sR.call(this,g)),i)return p?m?sz(e,g,this.index,i,m):g:new sL(g,this);h[x]={field:d[x],result:g}}if(v&&this.db&&y.length){let t=this;return Promise.all(y).then(function(r){for(let e=0;e<r.length;e++)h[e].result=r[e];return m&&(h=sz(e,h,t.index,i,m)),s?sP(h):h})}return m&&(h=sz(e,h,this.index,i,m)),s?sP(h):h},(y=sW.prototype).mount=function(e){let t=this.field;if(this.tag)for(let e=0,n;e<this.F.length;e++){n=this.F[e];var r=void 0;this.index.set(n,r=new s8({},this.reg)),t===this.field&&(t=t.slice(0)),t.push(n),r.tag=this.tag.get(n)}r=[];let n={db:e.db,type:e.type,fastupdate:e.fastupdate};for(let i=0,s,o;i<t.length;i++){n.field=o=t[i],s=this.index.get(o);let l=new e.constructor(e.id,n);l.id=e.id,r[i]=l.mount(s),s.document=!0,i?s.bypass=!0:s.store=this.store}let i=this;return this.db=Promise.all(r).then(function(){i.db=!0})},y.commit=async function(){let e=[];for(let t of this.index.values())e.push(t.commit());await Promise.all(e),this.reg.clear()},y.destroy=function(){let e=[];for(let t of this.index.values())e.push(t.destroy());return Promise.all(e)},y.append=function(e,t){return this.add(e,t,!0)},y.update=function(e,t){return this.remove(e).add(e,t)},y.remove=function(e){for(var t of(i7(e)&&(e=i8(e,this.key)),this.index.values())
2)t.remove(e,!0);if(this.reg.has(e)){if(this.tag&&!this.fastupdate)for(let r of this.tag.values())for(let n of r){t=n[0];let i=n[1],s=i.indexOf(e);s>-1&&(i.length>1?i.splice(s,1):r.delete(t))}this.store&&this.store.delete(e),this.reg.delete(e)}return this.cache&&this.cache.remove(e),this},y.clear=function(){let e=[];for(let t of this.index.values()){let r=t.clear();r.then&&e.push(r)}if(this.tag)for(let e of this.tag.values())e.clear();return this.store&&this.store.clear(),this.cache&&this.cache.clear(),e.length?Promise.all(e):this},y.contain=function(e){return this.db?this.index.get(this.field[0]).db.has(e):this.reg.has(e)},y.cleanup=function(){for(let e of this.index.values())e.cleanup();return this},y.get=function(e){return this.db?this.index.get(this.field[0]).db.enrich(e).then(function(e){return e[0]&&e[0].doc||null}):this.store.get(e)||null},y.set=function(e,t){return"object"==typeof e&&(e=i8(t=e,this.key)),this.store.set(e,t),this},y.searchCache=so,y.export=function(e,t,r=0,n=0){let i,s;if(r<this.field.length){let i=this.field[r];if((t=this.index.get(i).export(e,i,r,n=1))&&t.then){let n=this;return t.then(function(){return n.export(e,i,r+1)})}return this.export(e,i,r+1)}switch(n){case 0:i="reg",s=sY(this.reg),t=null;break;case 1:i="tag",s=this.tag&&sq(this.tag,this.reg.size),t=null;break;case 2:i="doc",s=this.store&&sU(this.store),t=null;break;default:return}return sX.call(this,e,t,i,s||null,r,n)},y.import=function(e,t){var r=e.split(".");"json"===r[r.length-1]&&r.pop();let n=r.length>2?r[0]:"";if(r=r.length>2?r[2]:r[1],this.worker&&n)return this.index.get(n).import(e);if(t){if("string"==typeof t&&(t=JSON.parse(t)),n)return this.index.get(n).import(r,t);switch(r){case"reg":this.fastupdate=!1,this.reg=sJ(t,this.reg);for(let e=0,t;e<this.field.length;e++)(t=this.index.get(this.field[e])).fastupdate=!1,t.reg=this.reg;if(this.worker){for(let r of(t=[],this.index.values()))t.push(r.import(e));return Promise.all(t)}break;case"tag":this.tag=sK(t,this.tag);break;case"doc":this.store=sZ(t,this.store)}}},s_(sW.prototype),s8.prototype.remove=function(e,t){let r=this.reg.size&&(this.fastupdate?this.reg.get(e):this.reg.has(e));if(r){if(this.fastupdate){for(let t=0,n,i;t<r.length;t++)if((n=r[t])&&(i=n.length))if(n[i-1]===e)n.pop();else{let t=n.indexOf(e);t>=0&&n.splice(t,1)}}else s0(this.map,e),this.depth&&s0(this.ctx,e);t||this.reg.delete(e)}return this.db&&(this.commit_task.push({del:e}),this.M&&s9(this)),this.cache&&this.cache.remove(e),this};let s1={memory:{resolution:1},performance:{resolution:3,fastupdate:!0,context:{depth:1,resolution:1}},match:{tokenize:"forward"},score:{resolution:9,context:{depth:2,resolution:3}}};function s2(e,t,r,n,i,s,o){let l,a;if(!(l=t[r])||o&&!l[o]){if(o?((t=l||(t[r]=i3()))[o]=1,(l=(a=e.ctx).get(o))?a=l:a.set(o,a=e.keystore?new sv(e.keystore):new Map)):(a=e.map,t[r]=1),(l=a.get(r))?a=l:a.set(r,a=l=[]),s){for(let r=0,s;r<l.length;r++)if((s=l[r])&&s.includes(i)){if(r<=n)return;s.splice(s.indexOf(i),1),e.fastupdate&&(t=e.reg.get(i))&&t.splice(t.indexOf(s),1);break}}if((a=a[n]||(a[n]=[])).push(i),0x7fffffff===a.length){if(t=new sg(a),e.fastupdate)for(let r of e.reg.values())r.includes(a)&&(r[r.indexOf(a)]=t);l[n]=a=t}e.fastupdate&&((n=e.reg.get(i))?n.push(a):e.reg.set(i,[a]))}}function s4(e,t,r,n,i){return r&&e>1?t+(n||0)<=e?r+(i||0):(e-1)/(t+(n||0))*(r+(i||0))+1|0:0}function s5(e,t,r,n,i,s,o){let l=e.length,a=e;if(l>1)a=sH(e,t,r,n,i,s,o);else if(1===l)return o?sE.call(null,e[0],r,n):new sL(e[0],this);return o?a:new sL(a,this)}function s3(e,t,r,n,i,s,o){return e=s7(this,e,t,r,n,i,s,o),this.db?e.then(function(e){return i?e||[]:new sL(e,this)}):e&&e.length?i?sE.call(this,e,r,n):new sL(e,this):i?[]:new sL([],this)}function s6(e,t,r,n){let i=[];if(e&&e.length){if(e.length<=n)return void t.push(e);for(let t=0,r;t<n;t++)(r=e[t])&&(i[t]=r);if(i.length)return void t.push(i)}if(!r)return i}function s7(e,t,r,n,i,s,o,l){let a;return(r&&(a=e.bidirectional&&t>r)&&(a=r,r=t,t=a),e.db)?e.db.get(t,r,n,i,s,o,l):e=r?(e=e.ctx.get(r))&&e.get(t):e.map.get(t)}function s8(e,t){if(!this||this.constructor!==s8)return new s8(e);if(e){var r=i6(e)?e:e.preset;r&&(e=Object.assign({},s1[r],e))}else e={};let n=!0===(r=e.context)?{depth:1}:r||{},i=i6(e.encoder)?sp[e.encoder]:e.encode||e.encoder||{};this.encoder=i.encode?i:"object"==typeof i?new si(i):{encode:i},this.resolution=e.resolution||9,this.tokenize=r=(r=e.tokenize)&&"default"!==r&&"exact"!==r&&r||"strict",this.depth="strict"===r&&n.depth||0,this.bidirectional=!1!==n.bidirectional,this.fastupdate=!!e.fastupdate,this.score=e.score||null,(r=e.keystore||0)&&(this.keystore=r),this.map=r?new sv(r):new Map,this.ctx=r?new sv(r):new Map,this.reg=t||(this.fastupdate?r?new sv(r):new Map:r?new sx(r):new Set),this.N=n.resolution||3,this.rtl=i.rtl||e.rtl||!1,this.cache=(r=e.cache||null)&&new sl(r),this.resolve=!1!==e.resolve,(r=e.db)&&(this.db=this.mount(r)),this.M=!1!==e.commit,this.commit_task=[],this.commit_timer=null,this.priority=e.priority||4}function s9(e){e.commit_timer||(e.commit_timer=setTimeout(function(){e.commit_timer=null,e.db.commit(e)},1))}s8.prototype.add=function(e,t,r,n){if(t&&(e||0===e)){if(!n&&!r&&this.reg.has(e))return this.update(e,t);n=this.depth;let u=(t=this.encoder.encode(t,!n)).length;if(u){let c=i3(),h=i3(),d=this.resolution;for(let f=0;f<u;f++){let p=t[this.rtl?u-1-f:f];var i=p.length;if(i&&(n||!h[p])){var s=this.score?this.score(t,p,f,null,0):s4(d,u,f),o="";switch(this.tokenize){case"tolerant":if(s2(this,h,p,s,e,r),i>2){for(let t=1,n,l,a,u;t<i-1;t++)n=p.charAt(t),l=p.charAt(t+1),s2(this,h,o=(a=p.substring(0,t)+l)+n+(u=p.substring(t+2)),s,e,r),s2(this,h,o=a+u,s,e,r);s2(this,h,p.substring(0,p.length-1),s,e,r)}break;case"full":if(i>2){for(let n=0,a;n<i;n++)for(s=i;s>n;s--){o=p.substring(n,s),a=this.rtl?i-1-n:n;var l=this.score?this.score(t,p,f,o,a):s4(d,u,f,i,a);s2(this,h,o,l,e,r)}break}case"bidirectional":case"reverse":if(i>1){for(l=i-1;l>0;l--){o=p[this.rtl?i-1-l:l]+o;var a=this.score?this.score(t,p,f,o,l):s4(d,u,f,i,l);s2(this,h,o,a,e,r)}o=""}case"forward":if(i>1){for(l=0;l<i;l++)s2(this,h,o+=p[this.rtl?i-1-l:l],s,e,r);break}default:if(s2(this,h,p,s,e,r),n&&u>1&&f<u-1)for(i=this.N,o=p,s=Math.min(n+1,this.rtl?f+1:u-f),l=1;l<s;l++){p=t[this.rtl?u-1-f-l:f+l],a=this.bidirectional&&p>o;let n=this.score?this.score(t,o,f,p,l-1):s4(i+(u/2>i?0:1),u,f,s-1,l-1);s2(this,c,a?o:p,n,e,r,a?p:o)}}}}this.fastupdate||this.reg.add(e)}}return this.db&&(this.commit_task.push(r?{ins:e}:{del:e}),this.M&&s9(this)),this},s8.prototype.search=function(e,t,r){if(r||(t||"object"!=typeof e?"object"==typeof t&&(r=t,t=0):(r=e,e="")),r&&r.cache)return r.cache=!1,e=this.searchCache(e,t,r),r.cache=!0,e;let n=[],i,s,o,l=0,a,u,c,h,d;r&&(e=r.query||e,t=r.limit||t,l=r.offset||0,s=r.context,o=r.suggest,d=(a=r.resolve)&&r.enrich,c=r.boost,h=r.resolution,u=this.db&&r.tag),void 0===a&&(a=this.resolve),s=this.depth&&!1!==s;let f=this.encoder.encode(e,!s);if(i=f.length,t=t||100*!!a,1===i)return s3.call(this,f[0],"",t,l,a,d,u);
2if(2===i&&s&&!o)return s3.call(this,f[1],f[0],t,l,a,d,u);let p=i3(),m=0,g;if(s&&(g=f[0],m=1),h||0===h||(h=g?this.N:this.resolution),this.db){if(this.db.search&&!1!==(r=this.db.search(this,f,t,l,o,a,d,u)))return r;let e=this;return async function(){for(let t,r;m<i;m++){if((r=f[m])&&!p[r]){if(p[r]=1,t=s6(t=await s7(e,r,g,0,0,!1,!1),n,o,h)){n=t;break}g&&(o&&t&&n.length||(g=r))}o&&g&&m===i-1&&!n.length&&(h=e.resolution,g="",m=-1,p=i3())}return s5(n,h,t,l,o,c,a)}()}for(let e,t;m<i;m++){if((t=f[m])&&!p[t]){if(p[t]=1,e=s6(e=s7(this,t,g,0,0,!1,!1),n,o,h)){n=e;break}g&&(o&&e&&n.length||(g=t))}o&&g&&m===i-1&&!n.length&&(h=this.resolution,g="",m=-1,p=i3())}return s5(n,h,t,l,o,c,a)},(y=s8.prototype).mount=function(e){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),e.mount(this)},y.commit=function(){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.commit(this)},y.destroy=function(){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.destroy()},y.clear=function(){return this.map.clear(),this.ctx.clear(),this.reg.clear(),this.cache&&this.cache.clear(),this.db?(this.commit_timer&&clearTimeout(this.commit_timer),this.commit_timer=null,this.commit_task=[],this.db.clear()):this},y.append=function(e,t){return this.add(e,t,!0)},y.contain=function(e){return this.db?this.db.has(e):this.reg.has(e)},y.update=function(e,t){let r=this,n=this.remove(e);return n&&n.then?n.then(()=>r.add(e,t)):this.add(e,t)},y.cleanup=function(){return this.fastupdate&&(s0(this.map),this.depth&&s0(this.ctx)),this},y.searchCache=so,y.export=function(e,t,r=0,n=0){let i,s;switch(n){case 0:i="reg",s=sY(this.reg);break;case 1:i="cfg",s=null;break;case 2:i="map",s=sU(this.map,this.reg.size);break;case 3:i="ctx",s=sq(this.ctx,this.reg.size);break;default:return}return sX.call(this,e,t,i,s,r,n)},y.import=function(e,t){if(t)switch("string"==typeof t&&(t=JSON.parse(t)),"json"===(e=e.split("."))[e.length-1]&&e.pop(),3===e.length&&e.shift(),e=e.length>1?e[1]:e[0]){case"reg":this.fastupdate=!1,this.reg=sJ(t,this.reg);break;case"map":this.map=sZ(t,this.map);break;case"ctx":this.ctx=sK(t,this.ctx)}},y.serialize=function(e=!0){let t="",r="",n="";if(this.reg.size){let e;for(var i of this.reg.keys())e||(e=typeof i),t+=(t?",":"")+("string"===e?'"'+i+'"':i);for(let s of(t="index.reg=new Set(["+t+"]);",r="index.map=new Map(["+(r=sQ(this.map,e))+"]);",this.ctx.entries())){i=s[0];let t=sQ(s[1],e);t='["'+i+'",'+(t="new Map(["+t+"])")+"]",n+=(n?",":"")+t}n="index.ctx=new Map(["+n+"]);"}return e?"function inject(index){"+t+r+n+"}":t+r+n},s_(s8.prototype);let oe="u">typeof window&&(window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB),ot=["map","ctx","tag","reg","cfg"],or=i3();function on(e,t,r){let n=e.value,i,s=0;for(let e=0,o;e<n.length;e++){if(o=r?n:n[e]){for(let r=0,s,l;r<t.length;r++)if(l=t[r],(s=o.indexOf(l))>=0)if(i=1,o.length>1)o.splice(s,1);else{n[e]=[];break}s+=o.length}if(r)break}s?i&&e.update(n):e.delete(),e.continue()}function oi(e,t){return new Promise((r,n)=>{e.onsuccess=e.oncomplete=function(){t&&t(this.result),t=null,r(this.result)},e.onerror=e.onblocked=n,e=null})}(y=(function e(t,r={}){if(!this||this.constructor!==e)return new e(t,r);"object"==typeof t&&(r=t,t=t.name),t||console.info("Default storage space was used, because a name was not passed."),this.id="flexsearch"+(t?":"+t.toLowerCase().replace(/[^a-z0-9_\-]/g,""):""),this.field=r.field?r.field.toLowerCase().replace(/[^a-z0-9_\-]/g,""):"",this.type=r.type,this.fastupdate=this.support_tag_search=!1,this.db=null,this.h={}}).prototype).mount=function(e){return e.index?e.mount(this):(e.db=this,this.open())},y.open=function(){if(this.db)return this.db;let e=this;navigator.storage&&navigator.storage.persist&&navigator.storage.persist(),or[e.id]||(or[e.id]=[]),or[e.id].push(e.field);let t=oe.open(e.id,1);return t.onupgradeneeded=function(){let t=e.db=this.result;for(let r=0,n;r<ot.length;r++){n=ot[r];for(let r=0,i;r<or[e.id].length;r++)i=or[e.id][r],t.objectStoreNames.contains(n+("reg"!==n&&i?":"+i:""))||t.createObjectStore(n+("reg"!==n&&i?":"+i:""))}},e.db=oi(t,function(t){e.db=t,e.db.onversionchange=function(){e.close()}})},y.close=function(){this.db&&this.db.close(),this.db=null}
2,y.destroy=function(){return oi(oe.deleteDatabase(this.id))},y.clear=function(){let e=[];for(let t=0,r;t<ot.length;t++){r=ot[t];for(let t=0,n;t<or[this.id].length;t++)n=or[this.id][t],e.push(r+("reg"!==r&&n?":"+n:""))}let t=this.db.transaction(e,"readwrite");for(let r=0;r<e.length;r++)t.objectStore(e[r]).clear();return oi(t)},y.get=function(e,t,r=0,n=0,i=!0,s=!1){e=this.db.transaction((t?"ctx":"map")+(this.field?":"+this.field:""),"readonly").objectStore((t?"ctx":"map")+(this.field?":"+this.field:"")).get(t?t+":"+e:e);let o=this;return oi(e).then(function(e){let t=[];if(!e||!e.length)return t;if(i){if(!r&&!n&&1===e.length)return e[0];for(let i=0,s;i<e.length;i++)if((s=e[i])&&s.length){if(n>=s.length){n-=s.length;continue}let e=r?n+Math.min(s.length-n,r):s.length;for(let r=n;r<e;r++)t.push(s[r]);if(n=0,t.length===r)break}return s?o.enrich(t):t}return e})},y.tag=function(e,t=0,r=0,n=!1){e=this.db.transaction("tag"+(this.field?":"+this.field:""),"readonly").objectStore("tag"+(this.field?":"+this.field:"")).get(e);let i=this;return oi(e).then(function(e){return e&&e.length&&!(r>=e.length)?t||r?(e=e.slice(r,r+t),n?i.enrich(e):e):e:[]})},y.enrich=function(e){"object"!=typeof e&&(e=[e]);let t=this.db.transaction("reg","readonly").objectStore("reg"),r=[];for(let n=0;n<e.length;n++)r[n]=oi(t.get(e[n]));return Promise.all(r).then(function(t){for(let r=0;r<t.length;r++)t[r]={id:e[r],doc:t[r]?JSON.parse(t[r]):null};return t})},y.has=function(e){return oi(e=this.db.transaction("reg","readonly").objectStore("reg").getKey(e)).then(function(e){return!!e})},y.search=null,y.info=function(){},y.transaction=function(e,t,r){e+="reg"!==e&&this.field?":"+this.field:"";let n=this.h[e+":"+t];if(n)return r.call(this,n);let i=this.db.transaction(e,t);this.h[e+":"+t]=n=i.objectStore(e);let s=r.call(this,n);return this.h[e+":"+t]=null,oi(i).finally(function(){return s})},y.commit=async function(e){let t=e.commit_task,r=[];e.commit_task=[];for(let e=0,n;e<t.length;e++)(n=t[e]).del&&r.push(n.del);r.length&&await this.remove(r),e.reg.size&&(await this.transaction("map","readwrite",function(t){for(let r of e.map){let e=r[0],n=r[1];n.length&&(t.get(e).onsuccess=function(){var r;let i=this.result;if(i&&i.length){let e=Math.max(i.length,n.length);for(let t=0,s,o;t<e;t++)if((o=n[t])&&o.length){if((s=i[t])&&s.length)for(r=0;r<o.length;r++)s.push(o[r]);else i[t]=o;r=1}}else i=n,r=1;r&&t.put(i,e)})}}),await this.transaction("ctx","readwrite",function(t){for(let r of e.ctx){let e=r[0];for(let n of r[1]){let r=n[0],i=n[1];i.length&&(t.get(e+":"+r).onsuccess=function(){var n;let s=this.result;if(s&&s.length){let e=Math.max(s.length,i.length);for(let t=0,r,o;t<e;t++)if((o=i[t])&&o.length){if((r=s[t])&&r.length)for(n=0;n<o.length;n++)r.push(o[n]);else s[t]=o;n=1}}else s=i,n=1;n&&t.put(s,e+":"+r)})}}}),e.store?await this.transaction("reg","readwrite",function(t){for(let r of e.store){let e=r[0],n=r[1];t.put("object"==typeof n?JSON.stringify(n):1,e)}}):e.bypass||await this.transaction("reg","readwrite",function(t){for(let r of e.reg.keys())t.put(1,r)}),e.tag&&await this.transaction("tag","readwrite",function(t){for(let r of e.tag){let e=r[0],n=r[1];n.length&&(t.get(e).onsuccess=function(){let r=this.result;r=r&&r.length?r.concat(n):n,t.put(r,e)})}}),e.map.clear(),e.ctx.clear(),e.tag&&e.tag.clear(),e.store&&e.store.clear(),e.document||e.reg.clear())},y.remove=function(e){return"object"!=typeof e&&(e=[e]),Promise.all([this.transaction("map","readwrite",function(t){t.openCursor().onsuccess=function(){let t=this.result;t&&on(t,e)}}),this.transaction("ctx","readwrite",function(t){t.openCursor().onsuccess=function(){let t=this.result;t&&on(t,e)}}),this.transaction("tag","readwrite",function(t){t.openCursor().onsuccess=function(){let t=this.result;t&&on(t,e,!0)}}),this.transaction("reg","readwrite",function(t){for(let r=0;r<e.length;r++)t.delete(e[r])})])};let os=/[\u3040-\u309f\u30a0-\u30ff\u31f0-\u31ff]/u,oo=/[\u3131-\u314e|\u314f-\u3163|\uac00-\ud7a3]/u,ol=/[\u0400-\u04FF]/u;function oa(e){let t=e.toString().toLowerCase().normalize("NFD");if(ol.test(String(e)))return t.normalize("NFC");let r=t.replace(/[\u0300-\u036f]/g,"");return os.test(String(e))||oo.test(String(e))?r.normalize("NFC"):r}function ou(e){return e.charCodeAt(0)>255?3:1}function oc(e,t){let r=0,n=0;for(let i=0;i<e.length&&!(n>=t);i++)n+=ou(e.charAt(i)),r++;return r}function oh(e){let t=0;for(let r=0;r<e.length;r++)t+=ou(e.charAt(r));return t}let od=/[\u3131-\u314e|\u314f-\u3163|\uac00-\ud7a3]|[\u4E00-\u9FCC\u3400-\u4DB5\uFA0E\uFA0F\uFA11\uFA13\uFA14\uFA1F\uFA21\uFA23\uFA24\uFA27-\uFA29]|[\ud840-\ud868][\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|[\ud86a-\ud86c][\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d]|[\u3041-\u3096]|[\u30A1-\u30FA]/giu,of=/[\u0400-\u04FF]/g;function op(e,t){let r=[],n=null;do(n=t.exec(e))&&r.push(n[0]);while(n)return r}class om{#e;#t;#r;#n;async #i(e,t){let n=`${t??""}###${e??""}`;if(!eP.z[n])return[];let i=t?`.${t.replace(".","_")}`:"",s=e?`.${e}`:"",o=`${(0,eQ.UC)(r.p)}/static/${eQ.OK}${i}${s}.${eP.z[n]}.json`,l=e=>{console.error("Failed to fetch search index, please reload the page and try again."),console.error(e)};try{let e=await fetch(o);if(e.ok)return e.json();l(e)}catch(e){l(e)}return[]}async fetchSearchIndex(e){if(this.#n)return this.#n;let{currentLang:t,currentVersion:r}=e,n=e.versioned??!0;return this.#n=this.#i(t,n?r:""),this.#n}async init(e){let t=(await this.fetchSearchIndex(e)).map(e=>({...e,normalizedContent:oa(e.content),headers:e.toc.map(e=>oa(e.text)).join(" "),normalizedTitle:oa(e.title)})),r={tokenize:"full",document:{id:"id",store:!0,index:["normalizedTitle","headers","normalizedContent"]},cache:100};for(let e of(this.#e=new sW(r),this.#t=new sW({...r,encoder:{finalize:e=>e.flatMap(e=>op(e,od))}}),this.#r=new sW({...r,encoder:{finalize:e=>e.flatMap(e=>op(e,of))}}),t))this.#e.addAsync(e.routePath,e),this.#t.addAsync(e.routePath,e),this.#r.addAsync(e.routePath,e)}async search(e){let{keyword:t,limit:r}=e,n={enrich:!0,limit:r,index:["normalizedTitle","headers","normalizedContent"]},i=await Promise.all([this.#e?.searchAsync(t,n),this.#t?.searchAsync(t,n),this.#r?.searchAsync(t,n)]),s=[],o=new Set;
2return i.forEach(e=>{e&&function(e){for(let t of e)t.result.forEach(e=>{let t=e.id;!o.has(t)&&(o.add(t),e.doc&&s.push(e.doc))})}(e)}),[{index:i2,hits:s}]}}var og=((x={}).Default="default",x.Custom="custom",x);class ov{#s;#o=i2;#l;constructor(e){this.#s=e,this.#o=e.indexName??i2,this.#l=new om}async init(){await this.#l?.init(this.#s)}async fetchSearchIndex(){return this.#l?.fetchSearchIndex(this.#s)}async match(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:7,r=await this.#l?.search({keyword:e,limit:t}),n=oa(e),i=r?.find(e=>this.#a(e.index))||{index:i2,renderType:og.Default,hits:[]};return[{group:this.#o,renderType:og.Default,result:this.#u(n,i)},...(r?.filter(e=>!this.#a(e.index))||[]).map(e=>({group:e.index,renderType:og.Default,result:this.#u(n,e)}))]}#u(e,t){let r=[];return t?.hits.forEach(t=>{this.#c(t,e,r);let n=this.#h(t,e,r);this.#d(t,e,r,n)}),r}#c(e,t,r){let{title:n=""}=e,i=oa(n);return!!i.includes(t)&&(r.push({type:"title",title:n,header:n,link:e.routePath,query:t,highlightInfoList:[{start:i.indexOf(t),length:oh(t)}]}),!0)}#h(e,t,r){let n=new WeakSet,{toc:i=[],title:s=""}=e;for(let[o,l]of i.entries())if(oa(l.text).includes(t)){let a=(function(e,t){let r=e[t],n=t,i=[r];for(;r&&r.depth>2;){let t=!1;for(let s=n-1;s>=0;s--){let o=e[s];if(o.depth>1&&o.depth===r.depth-1){r=o,n=s,i.unshift(r),t=!0;break}}if(!t)break}return i})(i,o).map(e=>e.text).join(" > "),u=oa(a).indexOf(t),c=`${s} > `;r.push({type:"header",title:e.title,header:`${c}${a}`,highlightInfoList:[{start:u+c.length,length:oh(t)}],link:`${e.routePath}#${l.id}`,query:t}),n.add(l)}return n}#d(e,t,r,n){let{content:i,toc:s}=e;if(!i.length)return;let o=oa(i),l=o.indexOf(t),a=s.map(e=>e.charIndex),u=e=>s[a.findIndex((t,r)=>{if(!(r<s.length-1))return t<e;{let n=a[r+1];if(t<=e&&n>=e)return!0}return!1})],c=e=>e&&n?.has(e);if(-1===l){let n=e._matchesPosition?.content;if(!n?.length)return;let s=e._matchesPosition.content[0].start,o=u(s);if(c(o))return;let l=oc(i,s),a=oc(i,s+100),h=i.slice(l,a),d=[],f=s+100;for(let t of e._matchesPosition?.content||[]){let{start:e,length:r}=t;if(e>=s&&e+r<=f){let t=oc(i,e)-l+3;d.push({start:t,length:r})}}r.push({type:"content",title:e.title,header:o?.text??e.title,link:`${e.routePath}${o?`#${o.id}`:""}`,query:t,highlightInfoList:d,statement:`...${h}...`});return}for(;-1!==l;){let s=u(l),a=i.slice(0,l).lastIndexOf("\n");a=-1===a?0:a;let h=i.indexOf("\n\n",l+t.length);
2h=-1===h?i.length:h;let d=i.slice(a,h),f=oa(d=this.#f(d,t)).indexOf(oa(t)),p=[{start:f,length:oh(t)}];!c(s)&&(r.push({type:"content",title:e.title,header:s?.text??e.title,statement:d,highlightInfoList:p,link:`${e.routePath}${s?`#${s.id}`:""}`,query:t}),s&&n?.add(s)),l=o.indexOf(t,l+d.length-f)}}#f(e,t){if(e.length<=100)return e;let r=oa(e).indexOf(oa(t)),n=Math.floor((100-t.length)/2),i=e.slice(0,r);i.length>n&&(i=`...${e.slice(r-n+3,r)}`);let s=e.slice(r+t.length);return s.length>n&&(s=`${e.slice(r+t.length,r+n-3)}...`),i+t+s}#a(e){return e===this.#o||e===i2}}function ox(e){let{query:t}=e,r=en();return(0,D.jsxs)("div",{className:"rp-no-search-result",children:[(0,D.jsx)(K.Ge,{icon:K.Fw,className:"rp-no-search-result__icon"}),(0,D.jsxs)("p",{className:"rp-no-search-result__text",children:[r("searchNoResultsText")," ",(0,D.jsxs)("b",{children:['"',t,'"']})]}),(0,D.jsx)("p",{className:"rp-no-search-result__suggestion",children:r("searchSuggestedQueryText")})]})}function oy(e){let{suggestion:t,closeSearch:r,isCurrent:n,setCurrentSuggestionIndex:i,scrollTo:s,onMouseMove:o}=e,l={title:K.Mk,header:K.D7,content:K.g6}[t.type],a=(0,w.useRef)(null);n&&a.current?.offsetTop&&s(a.current?.offsetTop,a.current?.offsetHeight);let u=(e,t)=>{let r=[],n=0;for(let i of t){let{start:t,length:s}=i,o=e.slice(n,t),l=function(e,t,r){var n=e.slice(t);let i="",s=0,o=n.length;for(let e=0;e<o&&!((s+=ou(n.charAt(e)))>0+r);e++)s>0&&(i+=n.charAt(e));return i}(e,t,s);r.push(o),r.push((0,D.jsx)("span",{className:"rp-suggest-item__mark",children:l},t)),n=t+l.length}return n<e.length&&r.push(e.slice(n)),r},c=null;switch(t.type){case"title":case"header":c=(()=>
2{if("header"===t.type||"title"===t.type){let{header:e,highlightInfoList:r}=t;return(0,D.jsx)("div",{className:"rp-suggest-item__header",children:u(e,r)})}return(0,D.jsx)("div",{className:"rp-suggest-item__header",children:t.header})})();break;case"content":c=(0,D.jsxs)(D.Fragment,{children:[(()=>{if("content"!==t.type)return(0,D.jsx)("div",{});let{statement:e,highlightInfoList:r}=t;return(0,D.jsx)("div",{className:"rp-suggest-item__statement",children:u(e,r)})})(),(0,D.jsx)("p",{className:"rp-suggest-item__title",children:t.title})]})}return(0,D.jsx)("li",{className:`rp-suggest-item ${n?"rp-suggest-item--current":""}`,onMouseEnter:i,onMouseMove:o,ref:a,children:(0,D.jsx)(K.N_,{href:t.link,className:"rp-suggest-item__link",onClick:e=>{r(),e.stopPropagation()},children:(0,D.jsxs)("div",{className:"rp-suggest-item__container",children:[(0,D.jsx)("div",{className:"rp-suggest-item__icon",children:(0,D.jsx)(K.Ge,{icon:l})}),(0,D.jsx)("div",{className:"rp-suggest-item__content",children:(0,D.jsx)("span",{children:c})}),(0,D.jsx)("div",{className:"rp-suggest-item__action-icon",children:(0,D.jsx)(K.Ge,{icon:K.uO})})]})})},t.link)}r("cY"),r("bH"),r("aI");let oD=e=>e.reduce((e,t)=>{let r=t.title;return e.has(r)||e.set(r,[]),e.get(r).push(t),e},new Map);function ow(e){var t;let r,{focused:n,setFocused:i}=e,[s,o]=(0,w.useState)(""),[l,a]=(0,w.useState)([]),u=(0,w.useRef)(null),[c,h]=(0,w.useState)(!1),[d,f]=(0,w.useState)(0),[p,m]=(0,w.useState)(0),g=(0,w.useRef)(null),v=(0,w.useRef)(null),[x,y]=(0,w.useState)("initial"),_=(0,w.useRef)(null),b=(0,w.useRef)(null),j=(0,w.useRef)({pageX:null,pageY:null}),[F,C]=(0,w.useState)(!1),A=(e,t)=>{let r=_.current?.offsetHeight,n=_.current?.scrollTop;if(F&&void 0!==r&&void 0!==n){let i=e+t-r-(1===l.length?50:-10);i>n&&_.current?.scrollTo({top:i});let s=1===l.length?e-70:e-10;s<n&&_.current?.scrollTo({top:s})}},{siteData:E,page:{lang:k,version:N}}=eI(),B=en(),M=(0,K.X6)(),{search:S,title:T}=E,z="boolean"!=typeof S&&(S?.versioned??!0),L=[{group:T,result:[],renderType:og.Default}],$=l[d]?.result??[],H=l[d]?.renderType??og.Default;if(!1===S)return null;let O=()=>{if(g.current)return g.current;let e={currentLang:k,currentVersion:N};return g.current=new ov({indexName:T,...S,...e}),v.current=e,g.current};async function P(){if("initial"!==x)return;let e=O();y("initing"),await e.init(),y("inited");let t=u.current?.value;t&&(a(await e.match(t)||L),h(!1))}let I=()=>{i(!1),f(0),m(0)};(0,w.useEffect)(()=>{let e=e=>{switch(e.code){case"KeyK":(e.ctrlKey||e.metaKey)&&(e.preventDefault(),i(!n));break;case"ArrowDown":if(e.isComposing)return;n&&(e.preventDefault(),$&&H===og.Default&&(C(!0),m((p+1)%$.length)));break;case"ArrowUp":if(e.isComposing)return;if(n&&(e.preventDefault(),H===og.Default)){let e=$.length;C(!0),m((p-1+e)%e)}break;case"Enter":if(e.isComposing)return;p>=0&&H===og.Default&&(M(Array.from(oD($).values()).flat()[p].link),I());break;case"Escape":I()}};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[m,i,n,d,$,p]),(0,w.useEffect)(()=>{n?(a(L),P()):o("")},[n]),(0,w.useEffect)(()=>{let e;return"requestIdleCallback"in window&&!g.current&&(e=window.requestIdleCallback(()=>{O().fetchSearchIndex()})),()=>{void 0!==e&&"cancelIdleCallback"in window&&window.cancelIdleCallback(e)}},[]),(0,w.useEffect)(()=>{let{currentLang:e,currentVersion:t}=v.current??{},r=z&&N!==t;(k!==e||r)&&(y("initial"),g.current=null,O().fetchSearchIndex())},[k,N,z]);let R=(t=async e=>{if(o(e),e){let t=[],r=await g.current?.match(e);r&&t.push(...r);{let r=await i1.onSearch(e,t);r&&t.push(...r.map(e=>({renderType:og.Custom,...e})))}u.current?.value===e&&(m(0),a(t||L),h(!1))}},(r=(0,w.useRef)(t)).current=t,(0,w.useCallback)(is(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.current(...t)},150),[])),W=(e,t,r)=>{if(r)return(0,D.jsx)("div",{className:"rp-search-panel__loading",children:(0,D.jsx)(K.Ge,{icon:K.ML})});if(0===e.length&&"inited"===x)return(0,D.jsx)(ox,{query:t});let n=oD(e),i=-1;return(0,D.jsx)("ul",{children:Array.from(n.keys()).map(e=>{let t=n.get(e)||[];return(0,D.jsx)("li",{children:(0,D.jsx)("ul",{className:"rp-search-panel__group",children:t.map(e=>{let t=++i;return(0,D.jsx)(oy,{suggestion:e,isCurrent:t===p,setCurrentSuggestionIndex:e=>{(j.current.pageX!==e.pageX||j.current.pageY!==e.pageY)&&(C(!1),m(t))},onMouseMove:e=>{j.current={pageX:e.pageX,pageY:e.pageY}},closeSearch:()=>{I()},inCurrentDocIndex:0===d,scrollTo:A},`${e.title}-${t}`)})})},e)})})};return(0,D.jsx)(D.Fragment,{children:n&&(0,tD.createPortal)((0,D.jsx)("div",{className:"rp-search-panel__mask",onClick:()=>{I()},children:(0,D.jsxs)("div",{className:"rp-search-panel__modal",onClick:e=>{i(!0),e.stopPropagation()},children:[(0,D.jsxs)("div",{className:"rp-search-panel__header",children:[(0,D.jsxs)("div",{className:"rp-search-panel__input-form",children:[(0,D.jsx)("label",{children:(0,D.jsx)(K.Ge,{icon:K.C0})}),(0,D.jsx)("input",{className:"rp-search-panel__input",ref:u,placeholder:B("searchPlaceholderText"),"aria-label":"SearchPanelInput",autoComplete:"off",autoFocus:!0,inputMode:"search",onChange:e=>R(e.target.value)}),(0,D.jsx)("label",{children:(0,D.jsx)(K.Ge,{icon:K.gz,className:"rp-search-panel__close",onClick:e=>{u.current&&(e.stopPropagation(),s?(u.current.value="",o("")):I())}})})]}),(0,D.jsx)("h2",{className:"rp-search-panel__cancel",onClick:e=>{e.stopPropagation(),I()},children:B("searchPanelCancelText")})]}),s&&"inited"===x?(0,D.jsx)("div",{className:"rp-search-panel__results rp-scrollbar",ref:_,children:((e,t)=>{if(1===e.length){let r=e[0].result;return 0!==r.length||t?(0,D.jsx)("div",{ref:b,children:W(r,s,t)}):(0,D.jsx)(ox,{query:s})}return(0,D.jsx)(K.tU,{className:"rp-search-panel__tabs",onChange:e=>{f(e),m(0)},keepDOM:!1,ref:b,children:e.map(e=>(0,D.jsxs)(K.oz,{label:e.group,children:[e.renderType===og.Default&&W(e.result,s,t),e.renderType===og.Custom&&i1.render(e.result)]},e.group))})})(l,c)}):null]})}),document.getElementById("__rspress_modal_container"))})}function o_(e){let{depth:t,dividerType:r}=e;return(0,D.jsx)("div",{className:"dashed"===r?"rp-sidebar-divider--dashed":"rp-sidebar-divider",style:{paddingLeft:0===t?"12px":`calc(12px * ${t} + 12px)`}})}r("yO"),r("Hx"),r("BT");let ob=e=>"object"==typeof e&&null!=e&&1===e.nodeType,oj=(e,t)=>
2(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,oF=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let r,n=getComputedStyle(e,null);return oj(n.overflowY,t)||oj(n.overflowX,t)||!!(r=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e))&&(r.clientHeight<e.scrollHeight||r.clientWidth<e.scrollWidth)}return!1},oC=(e,t,r,n,i,s,o,l)=>s<e&&o>t||s>e&&o<t?0:s<=e&&l<=r||o>=t&&l>=r?s-e-n:o>t&&l<r||s<e&&l>r?o-t+i:0,oA=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},oE=(e,t)=>{var r,n,i,s;let o;if("u"<typeof document)return[];let{scrollMode:l,block:a,inline:u,boundary:c,skipOverflowHiddenElements:h}=t,d="function"==typeof c?c:e=>e!==c;if(!ob(e))throw TypeError("Invalid target");let f=document.scrollingElement||document.documentElement,p=[],m=e;for(;ob(m)&&d(m);){if((m=oA(m))===f){p.push(m);break}null!=m&&m===document.body&&oF(m)&&!oF(document.documentElement)||null!=m&&oF(m,h)&&p.push(m)}let g=null!=(n=null==(r=window.visualViewport)?void 0:r.width)?n:innerWidth,v=null!=(s=null==(i=window.visualViewport)?void 0:i.height)?s:innerHeight,{scrollX:x,scrollY:y}=window,{height:D,width:w,top:_,right:b,bottom:j,left:F}=e.getBoundingClientRect(),{top:C,right:A,bottom:E,left:k}={top:parseFloat((o=window.getComputedStyle(e)).scrollMarginTop)||0,right:parseFloat(o.scrollMarginRight)||0,bottom:parseFloat(o.scrollMarginBottom)||0,left:parseFloat(o.scrollMarginLeft)||0},N="start"===a||"nearest"===a?_-C:"end"===a?j+E:_+D/2-C+E,B="center"===u?F+w/2-k+A:"end"===u?b+A:F-k,M=[];for(let e=0;e<p.length;e++){let t=p[e],{height:r,width:n,top:i,right:s,bottom:o,left:c}=t.getBoundingClientRect();if("if-needed"===l&&_>=0&&F>=0&&j<=v&&b<=g&&(t===f&&!oF(t)||_>=i&&j<=o&&F>=c&&b<=s))break;let h=getComputedStyle(t),d=parseInt(h.borderLeftWidth,10),m=parseInt(h.borderTopWidth,10),C=parseInt(h.borderRightWidth,10),A=parseInt(h.borderBottomWidth,10),E=0,k=0,S="offsetWidth"in t?t.offsetWidth-t.clientWidth-d-C:0,T="offsetHeight"in t?t.offsetHeight-t.clientHeight-m-A:0,z="offsetWidth"in t?0===t.offsetWidth?0:n/t.offsetWidth:0,L="offsetHeight"in t?0===t.offsetHeight?0:r/t.offsetHeight:0;if(f===t)E="start"===a?N:"end"===a?N-v:"nearest"===a?oC(y,y+v,v,m,A,y+N,y+N+D,D):N-v/2,k="start"===u?B:"center"===u?B-g/2:"end"===u?B-g:oC(x,x+g,g,d,C,x+B,x+B+w,w),E=Math.max(0,E+y),k=Math.max(0,k+x);else{E="start"===a?N-i-m:"end"===a?N-o+A+T:"nearest"===a?oC(i,o,r,m,A+T,N,N+D,D):N-(i+r/2)+T/2,k="start"===u?B-c-d:"center"===u?B-(c+n/2)+S/2:"end"===u?B-s+C+S:oC(c,s,n,d,C+S,B,B+w,w);let{scrollLeft:e,scrollTop:l}=t;E=0===L?0:Math.max(0,Math.min(l+E/L,t.scrollHeight-r/L+T)),k=0===z?0:Math.max(0,Math.min(e+k/z,t.scrollWidth-n/z+S)),N+=l-E,B+=e-k}M.push({el:t,top:E,left:k})}return M};function ok(e,t){let r;if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let n={top:parseFloat((r=window.getComputedStyle(e)).scrollMarginTop)||0,right:parseFloat(r.scrollMarginRight)||0,bottom:parseFloat(r.scrollMarginBottom)||0,left:parseFloat(r.scrollMarginLeft)||0};if("object"==typeof t&&"function"==typeof t.behavior)return t.behavior(oE(e,t));let i="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:r,top:s,left:o}of oE(e,!1===t?{block:"end",inline:"nearest"}:t===Object(t)&&0!==Object.keys(t).length?t:{block:"start",inline:"nearest"})){let e=s-n.top+n.bottom,t=o-n.left+n.right;r.scroll({top:e,left:t,behavior:i})}}function oN(e){let{active:t,text:r,tag:n,link:i,context:s,className:o,left:l,right:a,onClick:u,depth:c}=e,h=(0,w.useRef)(null),[d,f]=(0,w.useTransition)();(0,w.useEffect)(()=>{t&&h.current&&ok(h.current,{scrollMode:"if-needed",block:"center",inline:"center",boundary:e=>!(e.classList.contains("rp-doc-layout__sidebar")||e.classList.contains("rspress-doc"))})},[t]);let p=(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)("div",{className:"rp-sidebar-item__left",ref:h,children:[(0,D.jsx)("span",{className:"rp-doc",...(0,K.nl)(r)}),l]}),(0,D.jsxs)("div",{className:"rp-sidebar-item__right",children:[(0,D.jsx)(K.OT,{tag:n}),a]})]});return i?(0,D.jsx)(K.N_,{href:i,startTransition:f,className:(0,Z.A)("rp-sidebar-item",{"rp-sidebar-item--active":t,"rp-sidebar-item--pending":d},o),style:{paddingLeft:0===c?"12px":`calc(12px * ${c} + 12px)`},"data-depth":c,...s?{"data-context":s}:{},onClick:u,children:p}):(0,D.jsx)("div",{ref:h,className:(0,Z.A)("rp-sidebar-item",{"rp-sidebar-item--active":t},o),style:{paddingLeft:0===c?"12px":`calc(12px * ${c} + 12px)`},"data-depth":c,...s?{"data-context":s}:{},onClick:u,children:p})}function oB(e){let{item:t,depth:r,className:n}=e,i=t1(),s=!!("link"in t&&t.link&&i(t.link));return(0,D.jsx)(oN,{className:n,active:s,link:t.link,tag:t.tag,text:t.text,context:t.context,depth:r})}function oM(e){let{sectionHeaderText:t,tag:r}=e;return(0,D.jsxs)("div",{className:"rp-sidebar-section-header",children:[(0,D.jsx)("div",{className:"rp-sidebar-section-header__left",children:(0,D.jsx)("span",{...(0,K.nl)(t)})}),(0,D.jsx)("div",{className:"rp-sidebar-section-header__right",children:(0,D.jsx)(K.OT,{tag:r})})]})}r("JZ");let oS=e=>{let{collapsed:t}=e;return(0,D.jsx)("div",{style:{cursor:"pointer",transition:"transform 0.2s ease-out",transform:t?"rotate(0deg)":"rotate(90deg)"},children:(0,D.jsx)(K.Ge,{icon:K.hI})})};function oT(e){let t=t1(),{item:r,depth:n,id:i,setSidebarData:s,className:o}=e,l=(0,K.X6)(),a=r.link&&t(r.link),{collapsed:u=!1,collapsible:c=!0}=r,h=()=>{s(e=>{let t=[...e],r=i.split("-").map(Number),n=t[r.shift()];for(let e of r)n=n.items[e];
2return"items"in n&&(n.collapsed=!n.collapsed),t})};return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(oN,{active:!!a,link:r.link,tag:r.tag,text:r.text,context:r.context,className:(0,Z.A)("rp-sidebar-group",o),depth:n,onClick:e=>{if(!a&&r.link&&!u)return void l(r.link);if(r.link){e.stopPropagation(),l(r.link).then(()=>{c&&h()});return}e.stopPropagation(),c&&h()},right:c&&(0,D.jsx)(oS,{collapsed:u})}),(0,D.jsx)("div",{style:{display:"grid",gridTemplateRows:u?"0fr":"1fr",transition:"grid-template-rows 0.2s ease-out"},children:(0,D.jsx)("div",{style:{overflow:"hidden"},children:r.items?.map((e,t)=>t3(e)?(0,D.jsx)(oT,{id:`${i}-${t}`,depth:n+1,item:e,setSidebarData:s,className:"rp-sidebar-item--group-item"},`${i}-${t}`):"dividerType"in e?(0,D.jsx)(o_,{depth:n+1,dividerType:e.dividerType},t):"sectionHeaderText"in e?(0,D.jsx)(oM,{sectionHeaderText:e.sectionHeaderText},t):(0,D.jsx)(oB,{item:e,depth:n+1,className:"rp-sidebar-item--group-item"},t))})})]})}function oz(){let[e,t]=function(){let e=t2(),t=t1(),[r,n]=(0,w.useState)(()=>t4(structuredClone(e),t));return(0,w.useLayoutEffect)(()=>{n(t4(e,t))},[t,e]),[r,n]}();return(0,D.jsx)(oL,{sidebarData:e,setSidebarData:t})}function oL(e){let{sidebarData:t,setSidebarData:r}=e;return(0,D.jsx)(D.Fragment,{children:t.map((e,t)=>(0,D.jsx)(o$,{item:e,index:t,setSidebarData:r},t))})}function o$(e){let{item:t,index:r,setSidebarData:n}=e;return"dividerType"in t?(0,D.jsx)(o_,{depth:0,dividerType:t.dividerType},r):"sectionHeaderText"in t?(0,D.jsx)(oM,{sectionHeaderText:t.sectionHeaderText,tag:t.tag},r):t3(t)?(0,D.jsx)(oT,{id:String(r),item:t,depth:0,setSidebarData:n},`${t.text}-${r}`):(0,D.jsx)(oB,{item:t,depth:0},r)}r("Ej");var oH=r("o");function oO(e){return`rp-github-stars:${e}`}function oP(e){if("u"<typeof localStorage)return null;try{let t=localStorage.getItem(oO(e));if(!t)return null;let r=JSON.parse(t);if("number"!=typeof r?.count||"number"!=typeof r?.fetchedAt)return null;return r}catch{return null}}let oI=e=>{let{content:t,icon:r}=e,n=function(e){try{let t=new URL(e),r=t.hostname.replace(/^www\./,"");if("github.com"!==r)return null;let n=t.pathname.match(/^\/([^/]+)\/([^/]+)/);if(!n)return null;return`${n[1]}/${n[2].replace(/\.git$/,"")}`}catch{return null}}(t),[i,s]=(0,w.useState)(()=>n?oP(n)?.count??null:null);return(0,w.useEffect)(()=>{if(!n)return;let e=oP(n);if(e&&Date.now()-e.fetchedAt<36e5)return;let t=!1;return fetch(`https://api.github.com/repos/${n}`).then(e=>e.ok?e.json():Promise.reject(e.status)).then(e=>{if(!t&&"number"==typeof e?.stargazers_count){s(e.stargazers_count);var r=e.stargazers_count;if(!("u"<typeof localStorage))try{localStorage.setItem(oO(n),JSON.stringify({count:r,fetchedAt:Date.now()}))}catch{}}}).catch(()=>{}),()=>{t=!0}},[n]),(0,D.jsxs)("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"rp-social-links__item rp-social-links__github-stars","aria-label":null==i?"GitHub repository":`GitHub repository, ${i.toLocaleString()} stars`,children:[(0,D.jsx)("div",{className:"rp-social-links__icon",children:r}),null!=i&&(0,D.jsx)("span",{className:"rp-social-links__github-stars-count",children:i>=1e6?`${(i/1e6).toFixed(1)}M`:i>=1e3?`${(i/1e3).toFixed(1)}K`:String(i)})]})},oR=e=>{let{link:t,hoverGroupPosition:r="center"}=e,{icon:n,mode:i="link",content:s}=t,o=(0,D.jsx)(D.Fragment,{});if(n){let e="string"==typeof n?oH.A[n]:n.svg;o=(0,D.jsx)("div",{className:"rp-social-links__icon",dangerouslySetInnerHTML:{__html:e}})}let{handleMouseEnter:l,handleMouseLeave:a,hoverGroup:u}=e2({position:r,customChildren:(0,D.jsx)("div",{className:"rp-social-links__item__hover-group",children:"text"===i?(0,D.jsx)("div",{className:"rp-social-links__item__text",children:s}):"dom"===i?(0,D.jsx)("div",{dangerouslySetInnerHTML:{__html:s}}):"img"===i?(0,D.jsx)("img",{src:s,alt:"img"}):null})});return"link"===i?(0,D.jsx)("a",{href:s,target:"_blank",rel:"noopener noreferrer",className:"rp-social-links__item",children:(0,D.jsx)("div",{className:"rp-social-links__icon",children:o})},s):"github-stars"===i?(0,D.jsx)(oI,{content:s,icon:o}):"text"===i||"img"===i||"dom"===i?(0,D.jsxs)("div",{className:"rp-social-links__item",onMouseEnter:l,onMouseLeave:a,children:[o,u]}):(0,D.jsx)("div",{className:"rp-social-links__item"})},oW=e=>{let{socialLinks:t}=e,{site:r}=(0,ee.Z)(),n=r.themeConfig.socialLinks||t||[],i=n.length>5,s=n.slice(0,5),o=n.slice(5),{hoverGroup:l,handleMouseEnter:a,handleMouseLeave:u}=e2({position:"right",customChildren:i?(0,D.jsx)("div",{className:"rp-social-links__hidden",children:o.map((e,t)=>(0,D.jsx)(oR,{link:e,hoverGroupPosition:t===o.length-1?"right":"center"},e.content))}):null});return 0===n.length?(0,D.jsx)(D.Fragment,{}):(0,D.jsxs)("div",{className:"rp-social-links",onMouseLeave:u,children:[s.map((e,t)=>(0,D.jsx)(oR,{link:e,hoverGroupPosition:t===s.length-1?"right":"center"},e.content)),i?(0,D.jsx)(K.Ge,{icon:K.RG,onMouseEnter:a,fontSize:20}):null,l]})};function oG(e){let{icon:t,...r}=e;if(!t)return null;if("string"==typeof t){let{className:e}=r;return t.trim().startsWith("<svg")?(0,D.jsx)("span",{className:e,dangerouslySetInnerHTML:{__html:t}}):t.startsWith("/")||t.startsWith("./")||t.startsWith("../")||t.startsWith("http://")||t.startsWith("https://")||t.startsWith("data:")?(0,D.jsx)("img",{className:e,src:(0,ef.As)(t),alt:""}):(0,D.jsx)("span",{className:e,...(0,K.i7)(t)})}return(0,D.jsx)(t,{...r})}var oV=r("K");function oU(e){let{onClick:t}=e,{theme:r,setTheme:n=()=>{}}=(0,w.useContext)(oV.D),{site:i}=(0,ee.Z)();return(0,D.jsxs)("div",{onClick:e=>{let s="function"==typeof document?.startViewTransition&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches,o=i?.themeConfig?.enableAppearanceAnimation,l="dark"===r?"light":"dark",a="dark"===l;if(s&&o){let r,i=e.clientX,s=e.clientY,o=Math.hypot(Math.max(i,innerWidth-i+200),Math.max(s,innerHeight-s+200)),u=((r=document.createElement("style")).innerHTML=`
3      .rspress-doc {
4        view-transition-name: none !important;
5      }
6  `,document.head.appendChild(r),()=>{document.head.removeChild(r)}),c=document.startViewTransition(async()=>{(0,tD.flushSync)(()=>{n(l),t?.()})}),h=[`circle(0px at ${i}px ${s}px)`,`circle(${o}px at ${i}px ${s}px)`];c.ready.then(()=>{document.documentElement.animate({clipPath:a?[...h].reverse():h},{duration:400,easing:"ease-in",pseudoElement:a?"::view-transition-old(root)":"::view-transition-new(root)",id:""}).finished.then(()=>{u()})})}else n(l),t?.()},className:"rp-switch-appearance",children:[(0,D.jsx)(K.Ge,{className:"rp-switch-appearance__icon rp-switch-appearance__icon--sun",icon:K.mT,fill:"currentColor"}),(0,D.jsx)(K.Ge,{className:"rp-switch-appearance__icon rp-switch-appearance__icon--moon",icon:K.l0,fill:"currentColor"})]})}r("T0"),r("cS"),r("Rg");let oZ=(0,w.forwardRef)((e,t)=>{let{values:r,defaultIndex:n,defaultValue:i,onChange:s,children:o,groupId:l,tabPosition:a="left",className:u,labelItemClassName:c,contentItemClassName:h,keepDOM:d=!0}=e,f=w.Children.toArray(o).filter(e=>("string"!=typeof e||""!==e.trim())&&(0,w.isValidElement)(e)),p=(0,w.useMemo)(()=>r&&r.length>0?r.map((e,t)=>{let r=f.find(t=>t.props?.value===e.value)??f[t];return{...e,content:r}}):w.Children.map(f,(e,t)=>(0,w.isValidElement)(e)?{label:e.props?.label||void 0,value:e.props?.value,disabled:e.props?.disabled,content:f[t]}:{label:t,content:f[t]}),[f,r]),m=void 0!==i?p.findIndex(e=>e.value===i):-1,g=-1===m?n??0:m,[v,x]=(0,w.useState)(g),[y,_]=(0,K.yL)(`rspress.tabs.${l}`,g.toString()),b=l?Number(y):v;return(0,D.jsxs)("div",{className:(0,Z.A)("rp-tabs",u),ref:t,children:[p.length?(0,D.jsx)("div",{className:"rp-tabs__label rp-tabs__label--no-scrollbar",style:{justifyContent:"center"===a?"center":"flex-start"},children:p.map((e,t)=>{let{label:r,value:n,disabled:i}=e,o=t===b;return(0,D.jsx)("div",{className:(0,Z.A)("rp-tabs__label__item",o?"rp-tabs__label__item--selected":"rp-tabs__label__item--not-selected",c),"data-index":t,onClick:()=>{i||(s?.(t),l?_(t.toString()):x(t))},children:r},n??t)})}):null,(0,D.jsx)("div",{className:"rp-tabs__content",children:p.map((e,t)=>{let{value:r,content:n}=e,i=t===b;return d||i?(0,D.jsx)("div",{className:(0,Z.A)("rp-tabs__content__item",i?"rp-tabs__content__item--active":"rp-tabs__content__item--hidden",h),"aria-hidden":!i,"data-index":t,children:n},r??t):null})})]})});function oq(e){let{children:t}=e;return(0,D.jsx)(D.Fragment,{children:t})}oZ.displayName="Tabs";let oK={tip:"tip",info:"info",warning:"warning",danger:"danger"},oY=/\.(?:avif|gif|ico|jpe?g|png|svg|webp)(?:[?#].*)?$/i,oJ=e=>{let{tag:t}=e;if(!t)return null;let{isPic:r,isTagsArray:n,isSvgTagString:i,normalizedTag:s,tagsArray:o}=(0,w.useMemo)(()=>{let e,r,n,i;return r=(e=t.trim()).startsWith("<svg"),n=(0,eQ.My)(e)||(0,eQ.ax)(e)||e.startsWith("/")&&oY.test(e),i=r||n?null:e.split(",").map(e=>e.trim()).filter(e=>e.length>0),{isSvgTagString:r,isPic:n,isTagsArray:i&&i?.length>1,tagsArray:i,normalizedTag:e}},[t]);return n?(0,D.jsx)(D.Fragment,{children:o?.map((e,t)=>(0,D.jsx)(K.OT,{tag:e},`${e}-${t}`))}):i?(0,D.jsx)("div",{dangerouslySetInnerHTML:{__html:s},style:{width:20,marginRight:4}}):r?(0,D.jsx)("img",{src:(0,ef.As)(s)}):"experimental"===s?(0,D.jsxs)(K.Ex,{type:"warning",children:[(0,D.jsx)(K.Ge,{icon:K.kC}),(0,D.jsx)("span",{children:"experimental"})]}):"deprecated"===s?(0,D.jsxs)(K.Ex,{type:"danger",children:[(0,D.jsx)(K.Ge,{icon:K.nD}),(0,D.jsx)("span",{children:"deprecated"})]}):"new"===s?(0,D.jsx)(K.Ex,{text:"new",type:"tip"}):oK[s]?(0,D.jsx)(K.Ex,{text:s,type:oK[s]}):(0,D.jsx)(K.Ex,{text:s,type:"info"})};r("D0");let oX=e=>{let{header:t,baseHeaderLevel:r,active:n}=e,i=(0,w.useRef)(null);return(0,w.useEffect)(()=>{n&&i.current&&ok(i.current,{behavior:"smooth",block:"center",inline:"center",boundary:e=>!(e.classList.contains("rp-doc-layout__outline")||e.classList.contains("rspress-doc"))})},[n]),(0,D.jsx)(K.N_,{href:`#${t.id}`,ref:i,title:(0,K.zE)(t.text),className:(0,Z.A)("rp-toc-item",{"rp-toc-item--active":n}),style:{paddingLeft:(t.depth-r)*12},"data-depth":t.depth-r,children:(0,D.jsx)("span",{className:"rp-toc-item__text rp-doc",...(0,K.nl)(t.text)})})};function oQ(){let e=(0,K.J6)(),{activeAnchorId:t}=(0,K.R3)(e);return(0,D.jsx)(D.Fragment,{children:e.map((e,r)=>(0,D.jsx)(oX,{baseHeaderLevel:2,header:e,active:t===e.id},`${e.depth}_${e.text}_${e.id}_${r}`))})}let o0=e=>{let[t,r]=(0,w.useState)(),[n,i]=(0,w.useState)(),{hash:s}=(0,eX.zy)();return(0,w.useEffect)(()=>
6{if("u"<typeof window)return;let t=()=>{let t=function(e){if(!e||"auto"===e||"none"===e)return 0;let t=Number.parseFloat(e);return Number.isNaN(t)?0:t}(window.getComputedStyle(document.documentElement).getPropertyValue("scroll-padding-top"))-5,n=e.map(e=>{let t=document.getElementById(e.id);if(!t)return{id:e.id,top:1/0};let r=t.getBoundingClientRect();return{id:e.id,top:r.top}}),s=n.filter(e=>e.top<t).map(e=>e.id),o=n.filter(e=>e.top>=t&&e.top<=window.innerHeight).map(e=>e.id),l=s[s.length-1],a=e.find(e=>e.id===l);0===o.length?r(l):r(o[0]),i(a)};return t(),window.addEventListener("scroll",t,{passive:!0}),()=>{window.removeEventListener("scroll",t)}},[e,s]),{scrolledHeader:n,activeAnchorId:t}},o1={},o2={current:[]},o4=()=>{let e,{page:{toc:t=[]}}=(0,ez.e)();return e=(()=>{let[,e]=(0,w.useState)(0);return()=>e(e=>e+1)})(),(0,w.useEffect)(()=>{let t=Math.random().toString(36).slice(2);return o1[t]=e,()=>{delete o1[t]}},[e]),o2.current.length>0?o2.current:t};function o5(e){let t=[],r=e?.querySelectorAll(".rspress-doc h2.rp-toc-include, h3.rp-toc-include, h4.rp-toc-include");for(let e of(r?.forEach(e=>{let r,n;!e.closest(".rspress-toc-exclude,.rp-toc-exclude")&&function(e){let t=e,r=document.querySelector(".rspress-doc");for(;t;)if(!function(e){let t=window.getComputedStyle(e);return"none"!==t.display&&"0"!==t.opacity&&"hidden"!==t.visibility}(t))return!1;else if((t=t.parentElement)===r)break;return!0}(e)&&t.push({id:e.id,text:((n=(r=e.cloneNode(!0)).querySelector(".rp-header-anchor"))&&r.removeChild(n),r.querySelectorAll(".rspress-toc-exclude,.rp-toc-exclude").forEach(e=>{let t=e.parentElement;t&&t.removeChild(e)}),r.querySelectorAll("a").forEach(e=>{let t=document.createDocumentFragment();for(;e.firstChild;)t.appendChild(e.firstChild);e.replaceWith(t)}),r.childNodes.forEach(e=>{e.nodeType===Node.COMMENT_NODE&&e.remove()}),r).innerHTML,depth:Number.parseInt(e.tagName[1],10),charIndex:0})}),o2.current=[...t],Object.values(o1)))e()}let o3=new Set(["H2","H3","H4"]),o6=()=>{let[e,t]=(0,w.useState)(null);return(0,w.useEffect)(()=>{let t=null;return e&&o5(e),e&&!t&&(t=new MutationObserver(t=>{let r=!1;t:for(let e of t)for(let t of[e.addedNodes,e.removedNodes])for(let e of t){if(o3.has(e.tagName)||e.parentElement?.closest("h2,h3,h4")){r=!0;break t}for(let t of e.childNodes)if(o3.has(t.tagName)){r=!0;break t}}r&&o5(e)})).observe(e,{childList:!0,subtree:!0}),()=>{t?.disconnect(),t=null}},[e]),{rspressDocRef:(0,w.useCallback)(e=>{t(e)},[t])}};r("vR");let o7=(0,w.forwardRef)((e,t)=>{let{isSidebarOpen:r,onIsSidebarOpenChange:n,isOutlineOpen:i,onIsOutlineOpenChange:s,beforeOutline:o,afterOutline:l}=e,a=(0,w.useRef)(null),u=en(),{pathname:c,hash:h}=(0,eX.zy)(),d=(0,K.J6)(),{scrolledHeader:f}=(0,K.R3)(d),p=!o&&!l&&0===d.length,{frontmatter:{sidebar:m=!0,outline:g=!0}}=(0,eC.s)();function v(){n(!1)}return(0,w.useEffect)(()=>{v()},[c]),(0,w.useEffect)(()=>{h&&s(!1)},[h]),(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)("div",{className:"rp-sidebar-menu",ref:e=>{a.current=e,"function"==typeof t?t(a.current):t&&(t.current=a.current)},children:[!0===m?(0,D.jsxs)("button",{type:"button",onClick:function(){n(!0)},className:"rp-sidebar-menu__left",children:[(0,D.jsx)(K.Ge,{icon:K.dd}),(0,D.jsx)("span",{children:u("menuTitle")})]}):(0,D.jsx)("div",{className:"rp-sidebar-menu__left"}),g?(0,D.jsxs)("button",{type:"button",disabled:p,onClick:e=>{e.preventDefault(),e.stopPropagation(),s(!i)},className:"rp-sidebar-menu__right",children:[f?.text?(0,D.jsx)("span",{className:"rp-sidebar-menu__right__text rp-doc",...(0,K.nl)(f.text)}):(0,D.jsx)("span",{className:"rp-sidebar-menu__right__text",children:u("outlineTitle")}),(0,D.jsx)(K.a9,{size:14,strokeWidth:2}),!p&&(0,D.jsx)(K.Ge,{icon:K.hI,className:"rp-sidebar-menu__right__icon",style:{transform:i?"rotate(90deg)":"rotate(0deg)",transition:"transform 0.2s ease-out"}})]}):(0,D.jsx)("div",{className:"rp-sidebar-menu__right"})]}),(r||i)&&(0,tD.createPortal)((0,D.jsx)("div",{onClick:v,className:"rp-sidebar-menu__mask"}),document.getElementById("__rspress_modal_container"))]})});function o8(e,t){(0,w.useEffect)(()=>{let r=r=>{for(let t of Array.isArray(e)?e:[e]){let{current:e}=t;if(e?.contains(r.target))return}
6t(r)};return document.addEventListener("mousedown",r),document.addEventListener("touchend",r),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("touchend",r)}},[e,t])}function o9(e){let{beforeDocFooter:t,afterDocFooter:r,beforeDoc:n,afterDoc:i,beforeDocContent:s,afterDocContent:o,beforeOutline:l,afterOutline:a,beforeSidebar:u,afterSidebar:c,components:h}=e,{frontmatter:d}=(0,eC.s)(),f=d?.overview??!1,p=d?.sidebar??!0,m=!0===p,{outline:g=!0,footer:v=!0,pageType:x}=d,y=m||!f&&g,_="doc-wide"===x,{isOutlineOpen:b,isSidebarOpen:j,sidebarMenu:F,asideLayoutRef:C,sidebarLayoutRef:A}=function(e,t){let[r,n]=(0,w.useState)(!1),[i,s]=(0,w.useState)(!1),o=(0,w.useRef)(null),l=(0,w.useRef)(null),a=(0,w.useRef)(null);return(0,w.useEffect)(()=>(o.current&&r&&tL(o.current,{reserveScrollBarGap:!0,allowTouchMove:()=>!0}),()=>{t$()}),[r]),o8([o,l],()=>{n(!1)}),o8([o,a],()=>{s(!1)}),{sidebarMenu:(0,w.useMemo)(()=>(0,D.jsx)(o7,{isSidebarOpen:r,onIsSidebarOpenChange:n,isOutlineOpen:i,onIsOutlineOpenChange:s,ref:o,beforeOutline:e,afterOutline:t}),[i,r,s,n,e,t]),isOutlineOpen:i,isSidebarOpen:r,sidebarLayoutRef:l,asideLayoutRef:a}}(l,a),{rspressDocRef:E}=(0,K.n6)();return(0,D.jsxs)(D.Fragment,{children:[y&&(0,D.jsx)("div",{className:"rp-doc-layout__menu",children:F}),n,(0,D.jsxs)("div",{className:(0,Z.A)("rp-doc-layout__container",!y&&"rp-doc-layout__container--no-menu"),children:[m?(0,D.jsxs)("aside",{className:(0,Z.A)("rp-doc-layout__sidebar",j&&"rp-doc-layout__sidebar--open","rp-scrollbar"),ref:A,children:[u,(0,D.jsx)(K.Bx,{}),c]}):!1===p||"placeholder"===p?(0,D.jsx)("aside",{className:(0,Z.A)("rp-doc-layout__sidebar-placeholder","placeholder"===p&&"rp-doc-layout__sidebar-placeholder--legacy"),style:_?{width:"0"}:{}}):null,f?(0,D.jsx)(D.Fragment,{children:(0,D.jsxs)("main",{className:"rp-doc-layout__overview",children:[s,(0,D.jsx)(K.Aw,{content:(0,D.jsx)(K.As,{components:h,isOverviewPage:!0})}),o]})}):(0,D.jsx)("div",{className:(0,Z.A)("rp-doc-layout__doc",_&&"rp-doc-layout__doc--wide"),children:(0,D.jsxs)("main",{className:"rp-doc-layout__doc-container",children:[s,(0,D.jsx)("div",{className:"rp-doc rspress-doc",ref:E,children:(0,D.jsx)(K.As,{components:h})}),o,t,v&&(0,D.jsx)(K.co,{}),r]})}),f?null:g?(0,D.jsxs)("aside",{className:(0,Z.A)("rp-doc-layout__outline",b&&"rp-doc-layout__outline--open","rp-scrollbar"),ref:C,children:[l,(0,D.jsx)(K.Rc,{}),a]}):(0,D.jsx)("aside",{className:"rp-doc-layout__outline-placeholder",style:_?{width:"0"}:{}})]}),i]})}function le(e){let{beforeHero:t,afterHero:r,beforeFeatures:n,afterFeatures:i,beforeHeroActions:s,afterHeroActions:o}=e;return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(K.Eg,{}),t,(0,D.jsx)(K.UQ,{beforeHeroActions:s,afterHeroActions:o}),r,n,(0,D.jsx)(K.K6,{}),i,(0,D.jsx)(K.hM,{})]})}function lt(){let{siteData:e,page:t}=eI(),r=e.lang,n=e.multiVersion.default,i=en();if(r&&"u">typeof window){let e=RegExp(`/${r}(\\/|$)`);if(e.test(location.pathname)){let t=location.pathname.replace(e,"/");return window.location.replace(t),null}}let s="/";return n&&t.version!==n&&(s+=`${t.version}/`),r&&t.lang!==r&&(s+=`${t.lang}/`),(0,D.jsxs)("div",{className:"rp-not-found",children:[(0,D.jsx)("p",{className:"rp-not-found__error-code",children:"404"}),(0,D.jsx)("h1",{className:"rp-not-found__title",children:i("notFoundText")}),(0,D.jsx)("div",{className:"rp-not-found__divider"}),(0,D.jsx)("div",{className:"rp-not-found__action",children:(0,D.jsx)(K.N_,{className:"rp-not-found__home-link",href:s,"aria-label":"go to home",children:i("takeMeHomeText")})})]})}r("M"),r("sn");var lr=r("Sv"),ln=r.n(lr);async function li(e){if("u">typeof navigator&&navigator.clipboard?.writeText)try{return await navigator.clipboard.writeText(e),!0}catch{}return!("u"<typeof document)&&ln()(e)}function ls(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return"";let{ignoreClasses:r=[],ignoreSelectors:n=[]}=t,i=e.ownerDocument.defaultView?.NodeFilter??NodeFilter,s=e.ownerDocument.createTreeWalker(e,i.SHOW_TEXT),o="",l=s.nextNode(),a={seenNodes:new WeakSet},u=null;for(;l;){let t=l.parentElement;if(!(!t||r.some(e=>t.classList.contains(e))||n.some(e=>t.closest(e)))){let r=function(e,t){let r=e.closest("li, p, div, pre, blockquote");return r&&t.contains(r)?r:null}(t,e);l.previousSibling?.nodeName!=="BR"&&t.previousSibling?.nodeName!=="BR"||o.endsWith("\n")||(o+="\n"),r&&u&&r!==u&&!o.endsWith("\n")&&(o+="\n"),o+=function(e,t){if(e.nodeType!==Node.ELEMENT_NODE)return"";let r=e.closest("li");return r&&!t.seenNodes.has(r)?(t.seenNodes.add(r),function(e){let t=e.parentElement;if(!t)return"- ";if("OL"===t.tagName){let r=Array.from(t.children).filter(e=>"LI"===e.tagName).indexOf(e);return`${r+1}. `}return"- "}(r)):""}(t,a),o+=l.nodeValue??"",u=r}l=s.nextNode()}return o}function lo(){let{pathname:e}
6=(0,eX.zy)(),t=t2(),r=[],n=e=>{"items"in e?(e.link&&r.push({text:e.text,link:e.link}),e.items.forEach(e=>{"dividerType"in e||"sectionHeaderText"in e||n(e)})):"link"in e&&e.link&&r.push(e)};t.forEach(e=>n(e));let i=r.findIndex(t=>(0,ef.Oy)(t.link,e));return{prevPage:r[i-1]||null,nextPage:r[i+1]||null}}function ll(){let{siteData:e,page:t}=eI(),r=e.lang||"",n=Object.values(e.themeConfig.locales||{}).map(e=>e.lang)||[],i=t.lang;(0,w.useEffect)(()=>{let t,s=e.themeConfig.localeRedirect??"auto";if("never"===s||!r||/bot|spider|crawl|lighthouse/i.test(window.navigator.userAgent))return;let{pathname:o,search:l}=window.location,a=(0,ef.EJ)(o),u="rspress-visited";if(localStorage.getItem(u))return;localStorage.setItem(u,"1");let c=window.navigator.language.split("-")[0];!n.includes(c)||c!==i&&(c===r?t=o.replace(`/${i}`,""):i===r?t=(0,ef.cV)(`/${c}${a}`):"auto"===s&&(t=o.replace(`/${i}`,`/${c}`)),t&&window.location.replace(t+l))},[])}function la(){let e=(0,eX.zy)();(0,w.useLayoutEffect)(()=>{if("u"<typeof window)return;let e=decodeURIComponent(window.location.hash);if(e.length>0){let t,r,n=document.getElementById(e.slice(1));n&&(t=function(e){if(!e||"auto"===e||"none"===e)return 0;let t=Number.parseFloat(e);return Number.isNaN(t)?0:t}(window.getComputedStyle(document.documentElement).getPropertyValue("scroll-padding-top")),r=Math.round(window.scrollY+n.getBoundingClientRect().top-t),window.scrollTo({left:0,top:r}))}},[e,e.pathname])}function lu(){let{pathname:e}=(0,eX.zy)();(0,w.useLayoutEffect)(()=>{0===decodeURIComponent(window.location.hash).length&&window.scrollTo(0,0)},[e])}function lc(){}let lh="RSPRESS_SYNC_STORAGE_EVENT_NAME",ld=(e,t)=>{let[r,n]=(0,w.useState)(t);(0,w.useEffect)(()=>{if("u"<typeof window)return;let t=localStorage.getItem(e);null!=t&&n(t)},[e]);let i=(0,w.useCallback)(t=>{null==t?localStorage.removeItem(e):localStorage.setItem(e,t.toString()),n(t),dispatchEvent(new CustomEvent(lh,{detail:{key:e,newValue:t}}))},[e]);return(0,w.useEffect)(()=>{let r=r=>{r.key===e&&n(localStorage.getItem(e)??t)};return window.addEventListener("storage",r),()=>{window.removeEventListener("storage",r)}},[e,t]),(0,w.useEffect)(()=>{let r=r=>{let{key:i,newValue:s}=r.detail;i===e&&n(s??t)};return window.addEventListener(lh,r),()=>{window.removeEventListener(lh,r)}},[]),[r,i]},lf=e=>{if(!document?.documentElement)return;let t=document.documentElement;t.classList.toggle("dark","dark"===e),t.classList.toggle("rp-dark","dark"===e),t.style.colorScheme=e};function lp(){let{site:e}=(0,ee.Z)(),{darkMode:t}=e.themeConfig,r=(0,eQ.Nv)(t),n=(0,eQ.Km)(t),[i,s]=ld("rspress-theme-appearance",n),o=(e=>{let[t,r]=(0,w.useState)(()=>"u">typeof window&&window.matchMedia(e).matches);return(0,w.useEffect)(()=>{let t=window.matchMedia(e),n=e=>r(e.matches);return t.addEventListener("change",n),()=>t.removeEventListener("change",n)},[e]),t})("(prefers-color-scheme: dark)")?"dark":"light",l=r?("light"===i||"dark"===i||"auto"===i?i:null)??n:n,a="auto"===l?o:l,u=(0,w.useCallback)(e=>{r&&(s(o===e?"auto":e),lf(e))},[r,o,s]);return(0,w.useLayoutEffect)(()=>{lf(a)},[a]),[a,u]}function lm(e){if(!e)return{children:null};if("number"==typeof e)return{children:e.toString()};let t=/<([a-z]+)([^<]*)(?:>(.*?)<\/\1>|\s*\/>)/i.test(e),r=/&(?:[a-z][0-9a-z]*|#(?:\d+|x[0-9a-f]+));/i.test(e);return t||r?{dangerouslySetInnerHTML:{__html:e}}:{children:e.replace(/\\</g,"<").replace(/\\>/g,">").replace(/&lt;/g,"<").replace(/&gt;/g,">")}}let lg=/`(.*?)`/g,lv=/\*{2}(?!\*)(.*?)\*{2}(?!\*)/g,lx=/\*(?!\*)(.*?)\*(?!\*)/g,ly=/~{2}(.*?)~{2}/g;function lD(e){return lm(e.replace(/`[^`]+`/g,e=>e.replace(/</g,"&lt;")).replace(lv,"<strong>$1</strong>").replace(lx,"<em>$1</em>").replace(ly,"<del>$1</del>").replace(lg,"<code>$1</code>"))}function lw(e){return e.replace(lv,"$1").replace(lx,"$1").replace(ly,"$1").replace(lg,"$1")}},CW(e,t,r){"use strict";r.d(t,{P:()=>x});var n=r("p1"),i=r("u"),s=r("IE"),o=r("Dv"),l=r("IY"),a=r("X"),u=r("qI"),c=r("A"),h=r("Fl");function d(e,t,r={}){return e.push(t||{},r)}var f=r("u3");function p(){let e=(0,c.useContext)(f.U);if(!e)throw Error("useHead() was called without provide context.");return e}let m=({children:e,titleTemplate:t})=>{let r=p(),n=(0,c.useMemo)(()=>(function e(t){let r=[];
6return c.Children.forEach(t,t=>{if(c.isValidElement(t)){if(t.type===c.Fragment)return void r.push(...e(t.props.children));r.push(t)}}),r})(e),[e]),i=(0,c.useCallback)(()=>{let e={titleTemplate:t};for(let t of n){let{type:r,props:n}=t,i=String(r);if(!h.V.has(i))continue;let s=function(e){if(!e||"object"!=typeof e)return{};let t={};for(let[r,n]of Object.entries(e))"ref"!==r&&"suppressContentEditableWarning"!==r&&"suppressHydrationWarning"!==r&&(t["className"===r?"class":"httpEquiv"===r?"http-equiv":r]=n);return t}(n);!function(e,t){let r=t.dangerouslySetInnerHTML;if(delete t.dangerouslySetInnerHTML,null==r)return;if(!h.b.has(e))throw Error(`${e} is a self-closing tag and must neither have \`children\` nor use \`dangerouslySetInnerHTML\`.`);if("object"!=typeof r||!("__html"in r))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`.");if(null!=t.children)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");let n=r.__html;null!=n&&(t["title"===e?"textContent":"innerHTML"]=String(n))}(i,s),h.b.has(i)&&null!=s.children&&(s["script"===i?"innerHTML":"textContent"]=Array.isArray(s.children)?s.children.map(String).join(""):String(s.children)),delete s.children,h.H.has(i)?(Array.isArray(e[i])||(e[i]=[]),e[i].push(s)):e[i]=s}return e},[n,t]),s=(0,c.useRef)(null);return r.ssr&&!s.current&&(s.current=r.push(i())),(0,c.useEffect)(()=>(s.current=r.push(i()),()=>{s.current?.dispose(),s.current=null}),[r]),(0,c.useEffect)(()=>{s.current?.patch(i())},[i]),null},g=(e,t)=>t?(e=e.trim(),(t=t.trim()).startsWith("-")||t.startsWith("|"))?`${e} ${t}`:`${e} - ${t}`:e,v=(0,c.memo)(e=>{let{lang:t,frontmatter:r,description:i,title:s}=e,o=r.head,l=(0,c.useMemo)(()=>o?.map(e=>{let[t,r]=e;return t?c.createElement(t,{...r}):null}),[o]),a=(0,c.useMemo)(()=>{let e=new Set;if(o)for(let[t,r]of o)"meta"===t&&r?.property&&e.add(r.property),"meta"===t&&r?.name&&e.add(r.name);return e},[o]);return!function(e={},t={}){let r=t.head||p(),n=(0,c.useRef)(null),i=(0,c.useRef)(e);if(i.current=e,r.ssr&&!n.current&&(n.current=d(r,e,t)),(0,c.useEffect)(()=>{let e=d(r,i.current,t);return n.current=e,()=>{e.dispose(),n.current=null}},[r]),(0,c.useEffect)(()=>{n.current?.patch(e)},[e]),r.ssr)return n.current;let s=(0,c.useRef)(null);s.current||(s.current={patch:e=>{n.current?.patch(e)},dispose:()=>{n.current?.dispose(),n.current=null},_poll:e=>{n.current?._poll(e)}}),s.current}({htmlAttrs:{lang:t||"en"},title:s||void 0,meta:[a.has("og:type")?void 0:{property:"og:type",content:"website"},s&&!a.has("og:title")?{property:"og:title",content:s}:void 0,...i?[a.has("description")?void 0:{name:"description",content:i},a.has("og:description")?void 0:{property:"og:description",content:i}]:[]]}),(0,n.jsx)(m,{children:l??null})});function x(e){let{top:t,bottom:r,beforeDocFooter:c,afterDocFooter:h,beforeDoc:d,afterDoc:f,beforeDocContent:p,afterDocContent:m,beforeSidebar:x,afterSidebar:y,beforeOutline:D,afterOutline:w,beforeNavTitle:_,afterNavTitle:b,navTitle:j,beforeNav:F,afterNav:C,beforeHero:A,afterHero:E,beforeFeatures:k,afterFeatures:N,beforeNavMenu:B,afterNavMenu:M,components:S,HomeLayout:T=u.mI,NotFoundLayout:z=u.Ab}=e,L={beforeDocFooter:c,afterDocFooter:h,beforeDocContent:p,afterDocContent:m,beforeDoc:d,afterDoc:f,beforeSidebar:x,afterSidebar:y,beforeOutline:D,afterOutline:w,components:S},$={beforeHero:A,afterHero:E,beforeFeatures:k,afterFeatures:N},{page:H}=(0,i.e)(),{site:O}=(0,s.Z)(),{frontmatter:P}=(0,o.s)(),{pageType:I,lang:R,title:W}=H,G=(0,l.l)(),V=P.title??W,U=O.title||G.title||"";V=V&&("doc"===I||"doc-wide"===I)?g(V,P.titleSuffix||U):"home"===I?g(U,P.titleSuffix):"404"===I?g("404",U):U;let Z=H.description||O.description||G.description;(0,u.zV)(),(0,u.uo)(),(0,u.dY)();let{frontmatter:{navbar:q=!0}}=(0,o.s)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v,{lang:R,title:V,description:Z,frontmatter:P}),t,"blank"!==I&&q&&(0,n.jsxs)(n.Fragment,{children:[F,(0,n.jsx)(u.so,{beforeNavTitle:_,afterNavTitle:b,navTitle:j,beforeNavMenu:B,afterNavMenu:M}),C]}),(()=>{switch(I){case"home":return(0,n.jsx)(T,{...$});case"doc":case"doc-wide":return(0,n.jsx)(u.fS,{...L,navTitle:j});case"404":return(0,n.jsx)(z,{});
6case"custom":case"blank":return(0,n.jsx)(a.U,{});default:return(0,n.jsx)(u.fS,{...L})}})(),r]})}},a(e,t,r){"use strict";r("y"),r("B"),r("R"),r("x"),r("W"),r("e"),r("J"),r("I"),r("H")},wp(e,t,r){"use strict";r.d(t,{A:()=>p});var n=r("C"),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s=function(e){return"IMG"===e.tagName},o=function(e){return e&&1===e.nodeType},l=function(e){return".svg"===(e.currentSrc||e.src).substr(-4).toLowerCase()},a=function(e){try{if(Array.isArray(e))return e.filter(s);if(NodeList.prototype.isPrototypeOf(e))return[].slice.call(e).filter(s);if(o(e))return[e].filter(s);if("string"==typeof e)return[].slice.call(document.querySelectorAll(e)).filter(s);return[]}catch(e){throw TypeError("The provided selector is invalid.\nExpects a CSS selector, a Node element, a NodeList or an array.\nSee: https://github.com/francoischalifour/medium-zoom")}},u=function(e){var t=document.createElement("div");return t.classList.add("medium-zoom-overlay"),t.style.background=e,t},c=function(e){var t=e.getBoundingClientRect(),r=t.top,n=t.left,i=t.width,s=t.height,o=e.cloneNode(),l=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,a=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;return o.removeAttribute("id"),o.style.position="absolute",o.style.top=r+l+"px",o.style.left=n+a+"px",o.style.width=i+"px",o.style.height=s+"px",o.style.transform="",o},h=function(e,t){var r=i({bubbles:!1,cancelable:!1,detail:void 0},t);if("function"==typeof window.CustomEvent)return new CustomEvent(e,r);var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,r.bubbles,r.cancelable,r.detail),n};!function(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"u">typeof document){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===r&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}(".medium-zoom-overlay{position:fixed;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .3s;will-change:opacity}.medium-zoom--opened .medium-zoom-overlay{cursor:pointer;cursor:zoom-out;opacity:1}.medium-zoom-image{cursor:pointer;cursor:zoom-in;transition:transform .3s cubic-bezier(.2,0,.2,1)!important}.medium-zoom-image--hidden{visibility:hidden}.medium-zoom-image--opened{position:relative;cursor:pointer;cursor:zoom-out;will-change:transform}");var d=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=window.Promise||function(e){function t(){}e(t,t)},s=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.reduce(function(e,t){return[].concat(e,a(t))},[]);return n.filter(function(e){return -1===m.indexOf(e)}).forEach(function(e){m.push(e),e.classList.add("medium-zoom-image")}),g.forEach(function(e){var t=e.type,r=e.listener,i=e.options;n.forEach(function(e){e.addEventListener(t,r,i)})}),_},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.target,r=function(){var e={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},t=void 0,r=void 0;if(y.container)if(y.container instanceof Object)t=(e=i({},e,y.container)).width-e.left-e.right-2*y.margin,r=e.height-e.top-e.bottom-2*y.margin;else{var n=(o(y.container)?y.container:document.querySelector(y.container)).getBoundingClientRect();e=i({},e,{width:n.width,height:n.height,left:n.left,top:n.top})}t=t||e.width-2*y.margin,r=r||e.height-2*y.margin;var s=D.zoomedHd||D.original,a=l(s)?t:s.naturalWidth||t,u=l(s)?r:s.naturalHeight||r,c=s.getBoundingClientRect(),h=c.top,d=c.left,f=c.width,p=c.height,m=Math.min(Math.min(Math.max(f,a),t)/f,Math.min(Math.max(p,u),r)/p),g=(-d+(t-f)/2+y.margin+e.left)/m,v=(-h+(r-p)/2+y.margin+e.top)/m,x="scale("+m+") translate3d("+g+"px, "+v+"px, 0)";D.zoomed.style.transform=x,D.zoomedHd&&(D.zoomedHd.style.transform=x)};return new n(function(e){if(t&&-1===m.indexOf(t)||D.zoomed)return void e(_);
6if(t)D.original=t;else{if(!(m.length>0))return void e(_);D.original=m[0]}if(D.original.dispatchEvent(h("medium-zoom:open",{detail:{zoom:_}})),x=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,v=!0,D.zoomed=c(D.original),document.body.appendChild(w),y.template){var n=o(y.template)?y.template:document.querySelector(y.template);D.template=document.createElement("div"),D.template.appendChild(n.content.cloneNode(!0)),document.body.appendChild(D.template)}if(D.original.parentElement&&"PICTURE"===D.original.parentElement.tagName&&D.original.currentSrc&&(D.zoomed.src=D.original.currentSrc),document.body.appendChild(D.zoomed),window.requestAnimationFrame(function(){document.body.classList.add("medium-zoom--opened")}),D.original.classList.add("medium-zoom-image--hidden"),D.zoomed.classList.add("medium-zoom-image--opened"),D.zoomed.addEventListener("click",f),D.zoomed.addEventListener("transitionend",function t(){v=!1,D.zoomed.removeEventListener("transitionend",t),D.original.dispatchEvent(h("medium-zoom:opened",{detail:{zoom:_}})),e(_)}),D.original.getAttribute("data-zoom-src")){D.zoomedHd=D.zoomed.cloneNode(),D.zoomedHd.removeAttribute("srcset"),D.zoomedHd.removeAttribute("sizes"),D.zoomedHd.removeAttribute("loading"),D.zoomedHd.src=D.zoomed.getAttribute("data-zoom-src"),D.zoomedHd.onerror=function(){clearInterval(i),console.warn("Unable to reach the zoom image target "+D.zoomedHd.src),D.zoomedHd=null,r()};var i=setInterval(function(){D.zoomedHd.complete&&(clearInterval(i),D.zoomedHd.classList.add("medium-zoom-image--opened"),D.zoomedHd.addEventListener("click",f),document.body.appendChild(D.zoomedHd),r())},10)}else if(D.original.hasAttribute("srcset")){D.zoomedHd=D.zoomed.cloneNode(),D.zoomedHd.removeAttribute("sizes"),D.zoomedHd.removeAttribute("loading");var s=D.zoomedHd.addEventListener("load",function(){D.zoomedHd.removeEventListener("load",s),D.zoomedHd.classList.add("medium-zoom-image--opened"),D.zoomedHd.addEventListener("click",f),document.body.appendChild(D.zoomedHd),r()})}else r()})},f=function(){return new n(function(e){v||!D.original?e(_):(v=!0,document.body.classList.remove("medium-zoom--opened"),D.zoomed.style.transform="",D.zoomedHd&&(D.zoomedHd.style.transform=""),D.template&&(D.template.style.transition="opacity 150ms",D.template.style.opacity=0),D.original.dispatchEvent(h("medium-zoom:close",{detail:{zoom:_}})),D.zoomed.addEventListener("transitionend",function t(){D.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(D.zoomed),D.zoomedHd&&document.body.removeChild(D.zoomedHd),document.body.removeChild(w),D.zoomed.classList.remove("medium-zoom-image--opened"),D.template&&document.body.removeChild(D.template),v=!1,D.zoomed.removeEventListener("transitionend",t),D.original.dispatchEvent(h("medium-zoom:closed",{detail:{zoom:_}})),D.original=null,D.zoomed=null,D.zoomedHd=null,D.template=null,e(_)}))})},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.target;return D.original?f():d({target:t})},m=[],g=[],v=!1,x=0,y=r,D={original:null,zoomed:null,zoomedHd:null,template:null};"[object Object]"===Object.prototype.toString.call(t)?y=t:(t||"string"==typeof t)&&s(t);var w=u((y=i({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},y)).background);document.addEventListener("click",function(e){var t=e.target;t===w?f():-1!==m.indexOf(t)&&p({target:t})}),document.addEventListener("keyup",function(e){var t=e.key||e.keyCode;("Escape"===t||"Esc"===t||27===t)&&f()}),document.addEventListener("scroll",function(){if(!v&&D.original){var e=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(x-e)>y.scrollOffset&&setTimeout(f,150)}}),window.addEventListener("resize",f);var _={open:d,close:f,toggle:p,update:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.background&&(w.style.background=e.background),e.container&&e.container instanceof Object&&(e.container=i({},y.container,e.container)),e.template){var t=o(e.template)?e.template:document.querySelector(e.template);e.template=t}return y=i({},y,e),m.forEach(function(e){e.dispatchEvent(h("medium-zoom:update",{detail:{zoom:_}}))}),_},clone:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e(i({},y,t))},attach:s,detach:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];D.zoomed&&f();var n=t.length>0?t.reduce(function(e,t){return[].concat(e,a(t))},[]):m;
6return n.forEach(function(e){e.classList.remove("medium-zoom-image"),e.dispatchEvent(h("medium-zoom:detach",{detail:{zoom:_}}))}),m=m.filter(function(e){return -1===n.indexOf(e)}),_},on:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return m.forEach(function(n){n.addEventListener("medium-zoom:"+e,t,r)}),g.push({type:"medium-zoom:"+e,listener:t,options:r}),_},off:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return m.forEach(function(n){n.removeEventListener("medium-zoom:"+e,t,r)}),g=g.filter(function(r){return r.type!=="medium-zoom:"+e||r.listener.toString()!==t.toString()}),_},getOptions:function(){return y},getImages:function(){return m},getZoomedImage:function(){return D.original}};return _},f=r("A");function p(e){let{pathname:t}=(0,n.zy)(),{selector:r=".rspress-doc img",options:i={}}=e;return(0,f.useEffect)(()=>{let e,t=setTimeout(()=>{e=d(document.querySelectorAll(r),{...i,background:"var(--rp-c-bg)"})},100);return()=>{clearTimeout(t),e?.detach(),e?.close()}},[t]),null}r("Aj")},kW(e,t,r){"use strict";var n=r("C"),i=r("N"),s=r("A");function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{pathname:t,hash:r}=(0,n.zy)(),{redirects:o}=e,l=(0,s.useMemo)(()=>o?.length?o.map(e=>{let{from:t,to:r}=e;return{to:r,patterns:Array.isArray(t)?t:[t]}}):[],[o]);return(0,s.useEffect)(()=>{if(l.length&&"u">typeof window)for(let{patterns:e,to:n}of l)for(let s of e)try{let e=new RegExp(s);if(e.test(t))return void((0,i.My)(n)?window.location.replace(n):window.location.replace(t.replace(e,n)+r))}catch(e){console.warn(`Invalid redirect pattern: ${s}`,e)}},[t,r,l]),null}r.d(t,{A:()=>o})},IU(e,t,r){"use strict";var n=r("A");let i=async()=>{(await Promise.all([r.e("qz").then(r.bind(r,"wy")),r.e("d").then(r.bind(r,"jj")),r.e("f").then(r.bind(r,"d")),r.e("m").then(r.bind(r,"k9"))])).forEach(e=>{customElements.define(e.default.NAME,e.default)})};t.A=()=>((0,n.useEffect)(()=>{i()},[]),null)},i(e,t,r){"use strict";var n=r("A");let i={},s=n.createContext(i);function o(e){let t=n.useContext(s);return n.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:o(e.components),n.createElement(s.Provider,{value:t},e.children)}r.d(t,{R:()=>o,x:()=>l})},N(e,t,r){"use strict";let n=/\?.*$/s,i=/#.*$/s;function s(e){return e.replace(/#.*$/,"")}function o(e){return"/"===e.charAt(0)||h(e)?e:`/${e}`}function l(e){return"/"===e.charAt(e.length-1)?e:`${e}/`}function a(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}let u=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,c=/^(?:javascript|data|file):/i;function h(e=""){return u.test(e)&&!c.test(e)}function d(e=""){return/^\s*data:/i.test(e)}function f(e,t=!1,r=[]){if(!e)return"/";if(h(e)||e.startsWith("#")||!e.startsWith("/"))return e;let{url:n,hash:i,search:s}=(e=>{let[t,r=""]=e.split("#"),[n,i=""]=t.split("?");return{url:n,search:i,hash:r}})(decodeURIComponent(e));return t?(n.endsWith(".html")&&(n=n.replace(/\.html$/,"")),t&&n.endsWith("/index")&&(n=n.replace(/\/index$/,"/"))):n.endsWith(".html")||r.some(e=>n.endsWith(e))||(n.endsWith("/")?n+="index.html":n+=".html"),o([n,s?`?${s}`:"",i?`#${i}`:""].join(""))}function p(e){return a(o(function(e){let t=e.replace(/\\/g,"/"),r=t.startsWith("/"),n=t.split("/"),i=[];for(let e of n)"."===e||""===e||(".."===e?i.length>0&&".."!==i[i.length-1]?i.pop():r&&i.push(".."):i.push(e));let s=i.join("/");return r&&(s=`/${s}`),s}(e)))}function m(e,t){let r=o(e),n=p(t);return r.startsWith(n)?`${r}/`===t?t:r:`${n}${r}`}function g(e,t){let r=o(e),n=p(t),i=r.replace(RegExp(`^${n}`),"");return""===i?"/":i}let v=e=>!1===e?"force-light":!0===e||void 0===e?"auto":e;r.d(t,{EJ:()=>g,My:()=>h,Tj:()=>f,UC:()=>a,ax:()=>d,cV:()=>m,fr:()=>s,hg:()=>l,tb:()=>o},{CR:(e,t)=>{if(e===t||t.startsWith(e))return!0;let r=`${e}.`;return t.startsWith(r)},Km:e=>{let t=v(e);return t.startsWith("force-")?t.slice(6):t},Nv:e=>!v(e).startsWith("force-"),OK:"search_index",TG:e=>e.replace(i,"").replace(n,""),gT:/\.mdx?$/,sP:(e,t)=>
6new RegExp(e.activeMatch||f(e.link,!0)).test(t)})},u3(e,t,r){"use strict";let n=(0,r("A").createContext)(null);r.d(t,{},{U:n})},r(e,t){"use strict";t.A=function(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=function e(t){var r,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var s=t.length;for(r=0;r<s;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}(e))&&(n&&(n+=" "),n+=t);return n}},Fl(e,t,r){"use strict";let n=new Set(["link","style","script","noscript"]),i=new Set(["title","titleTemplate","script","style","noscript"]),s=new Set(["base","meta","link","style","script","noscript"]),o=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),l=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),a=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),u=new Set(["templateParams","htmlAttrs","bodyAttrs"]),c=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]);r.d(t,{},{D:n,H:s,M:c,T:a,U:l,V:o,b:i,c:u,h:e=>"number"==typeof e?Number.isFinite(e):e})}}]);

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