You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
arthas/assets/app.6c27e557.js

39 lines
340 KiB
JavaScript

2 years ago
const Om="modulepreload",Pm=function(e){return"/"+e},Oi={},h=function(t,n,o){return!n||n.length===0?t():Promise.all(n.map(r=>{if(r=Pm(r),r in Oi)return;Oi[r]=!0;const a=r.endsWith(".css"),i=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${r}"]${i}`))return;const c=document.createElement("link");if(c.rel=a?"stylesheet":Om,a||(c.as="script",c.crossOrigin=""),c.href=r,document.head.appendChild(c),a)return new Promise((s,l)=>{c.addEventListener("load",s),c.addEventListener("error",()=>l(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>t())},Sm={"v-8daa1a0e":()=>h(()=>import("./index.html.e0add512.js"),[]).then(({data:e})=>e),"v-2d0a870d":()=>h(()=>import("./index.html.c0e162ee.js"),[]).then(({data:e})=>e),"v-7445f070":()=>h(()=>import("./index.html.005ab687.js"),[]).then(({data:e})=>e),"v-0d09f68d":()=>h(()=>import("./advanced-use.html.4a08eae3.js"),[]).then(({data:e})=>e),"v-46e53834":()=>h(()=>import("./advice-class.html.8acedcb0.js"),[]).then(({data:e})=>e),"v-37178538":()=>h(()=>import("./agent.html.ee1ba8d8.js"),[]).then(({data:e})=>e),"v-5c517900":()=>h(()=>import("./arthas-properties.html.3af35baf.js"),[]).then(({data:e})=>e),"v-02eb6d0d":()=>h(()=>import("./arthas3.html.4c754017.js"),[]).then(({data:e})=>e),"v-4f82df66":()=>h(()=>import("./async.html.33a8ce63.js"),[]).then(({data:e})=>e),"v-d0358c7e":()=>h(()=>import("./auth.html.45571a53.js"),[]).then(({data:e})=>e),"v-3157067a":()=>h(()=>import("./base64.html.e6970d8a.js"),[]).then(({data:e})=>e),"v-cc8f4ae6":()=>h(()=>import("./batch-support.html.121d4807.js"),[]).then(({data:e})=>e),"v-6542b733":()=>h(()=>import("./cat.html.88343cb9.js"),[]).then(({data:e})=>e),"v-49b1709e":()=>h(()=>import("./classloader.html.95de0d63.js"),[]).then(({data:e})=>e),"v-ad1b2b42":()=>h(()=>import("./cls.html.dfbbb865.js"),[]).then(({data:e})=>e),"v-5ed4d0e1":()=>h(()=>import("./commands.html.e5542496.js"),[]).then(({data:e})=>e),"v-3992adde":()=>h(()=>import("./contact-us.html.4c278aed.js"),[]).then(({data:e})=>e),"v-0d1e3f35":()=>h(()=>import("./dashboard.html.219bbddb.js"),[]).then(({data:e})=>e),"v-02361049":()=>h(()=>import("./docker.html.eb899f16.js"),[]).then(({data:e})=>e),"v-2116d2e1":()=>h(()=>import("./download.html.1f2ac20c.js"),[]).then(({data:e})=>e),"v-1fe4a616":()=>h(()=>import("./dump.html.e764f79d.js"),[]).then(({data:e})=>e),"v-2c48f364":()=>h(()=>import("./echo.html.02fd3de2.js"),[]).then(({data:e})=>e),"v-d070981a":()=>h(()=>import("./faq.html.c9001ab1.js"),[]).then(({data:e})=>e),"v-78c35af6":()=>h(()=>import("./getstatic.html.23d5d774.js"),[]).then(({data:e})=>e),"v-63f4cd5a":()=>h(()=>import("./grep.html.6d6fcdda.js"),[]).then(({data:e})=>e),"v-809381ca":()=>h(()=>import("./groovy.html.263a82e2.js"),[]).then(({data:e})=>e),"v-07868089":()=>h(()=>import("./heapdump.html.3048c5f8.js"),[]).then(({data:e})=>e),"v-e3b34070":()=>h(()=>import("./help.html.9c144bb1.js"),[]).then(({data:e})=>e),"v-26f43d96":()=>h(()=>import("./history.html.ee355a46.js"),[]).then(({data:e})=>e),"v-225de034":()=>h(()=>import("./http-api.html.0e988fe0.js"),[]).then(({data:e})=>e),"v-7c670020":()=>h(()=>import("./idea-plugin.html.729df9cc.js"),[]).then(({data:e})=>e),"v-0cb398f4":()=>h(()=>import("./install-detail.html.aa950398.js"),[]).then(({data:e})=>e),"v-211d675c":()=>h(()=>import("./jad.html.9cfa510f.js"),[]).then(({data:e})=>e),"v-41806853":()=>h(()=>import("./jfr.html.5774063f.js"),[]).then(({data:e})=>e),"v-f1483d70":()=>h(()=>import("./jvm.html.384e3013.js"),[]).then(({data:e})=>e),"v-4039cdec":()=>h(()=>import("./keymap.html.df860e74.js"),[]).then(({data:e})=>e),"v-5ae8aed9":()=>h(()=>import("./logger.html.f93aa755.js"),[]).then(({data:e})=>e),"v-6a31cc55":()=>h(()=>import("./manual-install.html.faec94a8.js"),[]).then(({data:e})=>e),"v-8ebd6c68":()=>h(()=>import("./mbean.html.b17bec9e.js"),[]).then(({data:e})=>e),"v-3b401ada":()=>h(()=>import("./mc.html.6659b81e.js"),[]).then(({data:e})=>e),"v-4d9433f0":()=>h(()=>import("./memory.html.0be63d13.js"),[]).then(({data:e})=>e),"v-6e88d7a2":()=>h(()=>import("./monitor.html.9f90deed.js"),[]).then(({data:e})
3 years ago
Expects a CSS selector, a Node element, a NodeList or an array.
2 years ago
See: https://github.com/francoischalifour/medium-zoom`)}},dh=function(t){var n=document.createElement("div");return n.classList.add("medium-zoom-overlay"),n.style.background=t,n},fh=function(t){var n=t.getBoundingClientRect(),o=n.top,r=n.left,a=n.width,i=n.height,c=t.cloneNode(),s=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,l=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;return c.removeAttribute("id"),c.style.position="absolute",c.style.top=o+s+"px",c.style.left=r+l+"px",c.style.width=a+"px",c.style.height=i+"px",c.style.transform="",c},bn=function(t,n){var o=cn({bubbles:!1,cancelable:!1,detail:void 0},n);if(typeof window.CustomEvent=="function")return new CustomEvent(t,o);var r=document.createEvent("CustomEvent");return r.initCustomEvent(t,o.bubbles,o.cancelable,o.detail),r},hh=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=window.Promise||function(P){function T(){}P(T,T)},r=function(P){var T=P.target;if(T===U){v();return}S.indexOf(T)!==-1&&g({target:T})},a=function(){if(!(D||!E.original)){var P=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(K-P)>R.scrollOffset&&setTimeout(v,150)}},i=function(P){var T=P.key||P.keyCode;(T==="Escape"||T==="Esc"||T===27)&&v()},c=function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},T=P;if(P.background&&(U.style.background=P.background),P.container&&P.container instanceof Object&&(T.container=cn({},R.container,P.container)),P.template){var k=Wo(P.template)?P.template:document.querySelector(P.template);T.template=k}return R=cn({},R,T),S.forEach(function(M){M.dispatchEvent(bn("medium-zoom:update",{detail:{zoom:Y}}))}),Y},s=function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e(cn({},R,P))},l=function(){for(var P=arguments.length,T=Array(P),k=0;k<P;k++)T[k]=arguments[k];var M=T.reduce(function(j,W){return[].concat(j,cc(W))},[]);return M.filter(function(j){return S.indexOf(j)===-1}).forEach(function(j){S.push(j),j.classList.add("medium-zoom-image")}),A.forEach(function(j){var W=j.type,ee=j.listener,me=j.options;M.forEach(function(de){de.addEventListener(W,ee,me)})}),Y},u=function(){for(var P=arguments.length,T=Array(P),k=0;k<P;k++)T[k]=arguments[k];E.zoomed&&v();var M=T.length>0?T.reduce(function(j,W){return[].concat(j,cc(W))},[]):S;return M.forEach(function(j){j.classList.remove("medium-zoom-image"),j.dispatchEvent(bn("medium-zoom:detach",{detail:{zoom:Y}}))}),S=S.filter(function(j){return M.indexOf(j)===-1}),Y},m=function(P,T){var k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return S.forEach(function(M){M.addEventListener("medium-zoom:"+P,T,k)}),A.push({type:"medium-zoom:"+P,listener:T,options:k}),Y},d=function(P,T){var k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return S.forEach(function(M){M.removeEventListener("medium-zoom:"+P,T,k)}),A=A.filter(function(M){return!(M.type==="medium-zoom:"+P&&M.listener.toString()===T.toString())}),Y},f=function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},T=P.target,k=function(){var j={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},W=void 0,ee=void 0;if(R.container)if(R.container instanceof Object)j=cn({},j,R.container),W=j.width-j.left-j.right-R.margin*2,ee=j.height-j.top-j.bottom-R.margin*2;else{var me=Wo(R.container)?R.container:document.querySelector(R.container),de=me.getBoundingClientRect(),ve=de.width,Se=de.height,Re=de.left,Fe=de.top;j=cn({},j,{width:ve,height:Se,left:Re,top:Fe})}W=W||j.width-R.margin*2,ee=ee||j.height-R.margin*2;var x=E.zoomedHd||E.original,Z=ic(x)?W:x.naturalWidth||W,N=ic(x)?ee:x.naturalHeight||ee,G=x.getBoundingClientRect(),pe=G.top,be=G.left,fe=G.width,le=G.height,p=Math.min(Z,W)/fe,w=Math.min(N,ee)/le,I=Math.min(p,w),C=(-be+(W-fe)/2+R.margin+j.left)/I,$=(-pe+(ee-le)/2+R.margin+j.top)/I,q="scale("+I+") translate3d("+C+"px, "+$+"px, 0)";E.zoomed.style.transform=q,E.zoomedHd&&(E.zoomedHd.style.transform=q)
3 years ago
* vue-router v4.1.5
* (c) 2022 Eduardo San Martin Morote
* @license MIT
2 years ago
*/const On=typeof window<"u";function Oh(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Ie=Object.assign;function Ur(e,t){const n={};for(const o in t){const r=t[o];n[o]=gt(r)?r.map(e):e(r)}return n}const oo=()=>{},gt=Array.isArray,Ph=/\/$/,Sh=e=>e.replace(Ph,"");function Wr(e,t,n="/"){let o,r={},a="",i="";const c=t.indexOf("#");let s=t.indexOf("?");return c<s&&c>=0&&(s=-1),s>-1&&(o=t.slice(0,s),a=t.slice(s+1,c>-1?c:t.length),r=e(a)),c>-1&&(o=o||t.slice(0,c),i=t.slice(c,t.length)),o=Lh(o!=null?o:t,n),{fullPath:o+(a&&"?")+a+i,path:o,query:r,hash:i}}function Ah(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function sc(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Th(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&jn(t.matched[o],n.matched[r])&&tu(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function jn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function tu(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Ih(e[n],t[n]))return!1;return!0}function Ih(e,t){return gt(e)?lc(e,t):gt(t)?lc(t,e):e===t}function lc(e,t){return gt(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function Lh(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/");let r=n.length-1,a,i;for(a=0;a<o.length;a++)if(i=o[a],i!==".")if(i==="..")r>1&&r--;else break;return n.slice(0,r).join("/")+"/"+o.slice(a-(a===o.length?1:0)).join("/")}var ho;(function(e){e.pop="pop",e.push="push"})(ho||(ho={}));var ro;(function(e){e.back="back",e.forward="forward",e.unknown=""})(ro||(ro={}));function Dh(e){if(!e)if(On){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Sh(e)}const Rh=/^[^#]+#/;function kh(e,t){return e.replace(Rh,"#")+t}function xh(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}const kr=()=>({left:window.pageXOffset,top:window.pageYOffset});function Ch(e){let t;if("el"in e){const n=e.el,o=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=xh(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function uc(e,t){return(history.state?history.state.position-t:-1)+e}const ba=new Map;function Mh(e,t){ba.set(e,t)}function jh(e){const t=ba.get(e);return ba.delete(e),t}let Hh=()=>location.protocol+"//"+location.host;function nu(e,t){const{pathname:n,search:o,hash:r}=t,a=e.indexOf("#");if(a>-1){let c=r.includes(e.slice(a))?e.slice(a).length:1,s=r.slice(c);return s[0]!=="/"&&(s="/"+s),sc(s,"")}return sc(n,e)+o+r}function $h(e,t,n,o){let r=[],a=[],i=null;const c=({state:d})=>{const f=nu(e,location),v=n.value,g=t.value;let b=0;if(d){if(n.value=f,t.value=d,i&&i===v){i=null;return}b=g?d.position-g.position:0}else o(f);r.forEach(_=>{_(n.value,v,{delta:b,type:ho.pop,direction:b?b>0?ro.forward:ro.back:ro.unknown})})};function s(){i=n.value}function l(d){r.push(d);const f=()=>{const v=r.indexOf(d);v>-1&&r.splice(v,1)};return a.push(f),f}function u(){const{history:d}=window;!d.state||d.replaceState(Ie({},d.state,{scroll:kr()}),"")}function m(){for(const d of a)d();a=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",u),{pauseListeners:s,listen:l,destroy:m}}function mc(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?kr():null}}function qh(e){const{history:t,location:n}=window,o={value:nu(e,n)},r={value:t.state};r.value||a(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(s,l,u){const m=e.ind
3 years ago
* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
* @license MIT
2 years ago
*/const Ee={settings:{minimum:.08,easing:"ease",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,barSelector:'[role="bar"]',parent:"body",template:'<div class="bar" role="bar"></div>'},status:null,set:e=>{const t=Ee.isStarted();e=Yr(e,Ee.settings.minimum,1),Ee.status=e===1?null:e;const n=Ee.render(!t),o=n.querySelector(Ee.settings.barSelector),r=Ee.settings.speed,a=Ee.settings.easing;return n.offsetWidth,Sp(i=>{Mo(o,{transform:"translate3d("+Pc(e)+"%,0,0)",transition:"all "+r+"ms "+a}),e===1?(Mo(n,{transition:"none",opacity:"1"}),n.offsetWidth,setTimeout(function(){Mo(n,{transition:"all "+r+"ms linear",opacity:"0"}),setTimeout(function(){Ee.remove(),i()},r)},r)):setTimeout(()=>i(),r)}),Ee},isStarted:()=>typeof Ee.status=="number",start:()=>{Ee.status||Ee.set(0);const e=()=>{setTimeout(()=>{!Ee.status||(Ee.trickle(),e())},Ee.settings.trickleSpeed)};return Ee.settings.trickle&&e(),Ee},done:e=>!e&&!Ee.status?Ee:Ee.inc(.3+.5*Math.random()).set(1),inc:e=>{let t=Ee.status;return t?(typeof e!="number"&&(e=(1-t)*Yr(Math.random()*t,.1,.95)),t=Yr(t+e,0,.994),Ee.set(t)):Ee.start()},trickle:()=>Ee.inc(Math.random()*Ee.settings.trickleRate),render:e=>{if(Ee.isRendered())return document.getElementById("nprogress");Sc(document.documentElement,"nprogress-busy");const t=document.createElement("div");t.id="nprogress",t.innerHTML=Ee.settings.template;const n=t.querySelector(Ee.settings.barSelector),o=e?"-100":Pc(Ee.status||0),r=document.querySelector(Ee.settings.parent);return Mo(n,{transition:"all 0 linear",transform:"translate3d("+o+"%,0,0)"}),r!==document.body&&Sc(r,"nprogress-custom-parent"),r==null||r.appendChild(t),t},remove:()=>{Ac(document.documentElement,"nprogress-busy"),Ac(document.querySelector(Ee.settings.parent),"nprogress-custom-parent");const e=document.getElementById("nprogress");e&&Ap(e)},isRendered:()=>!!document.getElementById("nprogress")},Yr=(e,t,n)=>e<t?t:e>n?n:e,Pc=e=>(-1+e)*100,Sp=function(){const e=[];function t(){const n=e.shift();n&&n(t)}return function(n){e.push(n),e.length===1&&t()}}(),Mo=function(){const e=["Webkit","O","Moz","ms"],t={};function n(i){return i.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(c,s){return s.toUpperCase()})}function o(i){const c=document.body.style;if(i in c)return i;let s=e.length;const l=i.charAt(0).toUpperCase()+i.slice(1);let u;for(;s--;)if(u=e[s]+l,u in c)return u;return i}function r(i){return i=n(i),t[i]||(t[i]=o(i))}function a(i,c,s){c=r(c),i.style[c]=s}return function(i,c){for(const s in c){const l=c[s];l!==void 0&&Object.prototype.hasOwnProperty.call(c,s)&&a(i,s,l)}}}(),du=(e,t)=>(typeof e=="string"?e:ci(e)).indexOf(" "+t+" ")>=0,Sc=(e,t)=>{const n=ci(e),o=n+t;du(n,t)||(e.className=o.substring(1))},Ac=(e,t)=>{const n=ci(e);if(!du(e,t))return;const o=n.replace(" "+t+" "," ");e.className=o.substring(1,o.length-1)},ci=e=>(" "+(e.className||"")+" ").replace(/\s+/gi," "),Ap=e=>{e&&e.parentNode&&e.parentNode.removeChild(e)};const Tp=()=>{et(()=>{const e=vn(),t=new Set;t.add(e.currentRoute.value.path),e.beforeEach(n=>{t.has(n.path)||Ee.start()}),e.afterEach(n=>{t.add(n.path),Ee.done()})})},Ip=Lt({setup(){Tp()}}),Lp=JSON.parse(`{"logo":"/images/arthas_light.png","logoDark":"/images/arthas_dark.png","repo":"alibaba/arthas","docsDir":"site/docs","docsBranch":"master","locales":{"/":{"selectLanguageName":"\u7B80\u4F53\u4E2D\u6587","selectLanguageText":"Languages","editLinkText":"\u5728 GitHub \u4E0A\u7F16\u8F91\u6B64\u9875","lastUpdated":"\u4E0A\u6B21\u66F4\u65B0","contributorsText":"\u8D21\u732E\u8005","backToHome":"\u56DE\u5230\u9996\u9875","rightMenuText":"\u76EE\u5F55","warning":"\u6CE8\u610F","tip":"\u63D0\u793A","danger":"\u8B66\u544A","notFound":["\u8FD9\u91CC\u4EC0\u4E48\u90FD\u6CA1\u6709","\u6211\u4EEC\u600E\u4E48\u5230\u8FD9\u6765\u4E86\uFF1F","\u8FD9\u662F\u4E00\u4E2A 404 \u9875\u9762","\u770B\u8D77\u6765\u6211\u4EEC\u8FDB\u5165\u4E86\u9519\u8BEF\u7684\u94FE\u63A5"],"openInNewWindow":"\u5728\u65B0\u7A97\u53E3\u6253\u5F00","toggleColorMode":"\u5207\u6362\u989C\u8272\u6A21\u5F0F","toggleSidebar":"\u5207\u6362\u4FA7\u8FB9\u680F","navbar":[{"text":"\u9996\u9875"
3 years ago
c-0.1,0-19.8,95.4-32.9,159.1c-1.1,5.8,1,11.9,6,15.5c5,3.7,11.4,3.7,16.5,0.9C171.3,466,256,417.7,256,417.7l141.1,80.5
c5.1,2.8,11.6,2.8,16.6-0.9c5-3.7,7.1-9.7,6-15.5l-32.8-159.1L507,213.4c4.3-4,6.2-10.2,4.3-16.1c-1.9-5.9-7.1-9.8-12.9-10.4
c-64.6-7.2-161.5-18-161.5-18L269.9,20.8c-2.5-5.3-7.8-9-14-9c-6.2,0-11.5,3.7-13.9,9L175.1,168.9z`})],-1),W_=[U_];function K_(e,t,n,o,r,a){return V(),X("svg",z_,W_)}const Y_=we(B_,[["render",K_],["__file","Star.vue"]]),J_={name:"Fork"},Q_={version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"131 -131 512 512",style:{"enable-background":"new 131 -131 512 512",height:"1rem",fill:"var(--c-text)"},"xml:space":"preserve"},G_=ue("g",{id:"XMLID_2_"},[ue("path",{id:"XMLID_8_",d:`M312.8,317c0-8.5-3.4-16.2-9.4-23s-13.7-9.4-23-9.4c-9.3,0-16.2,3.4-23,9.4c-6,6-9.4,13.7-9.4,23
s3.4,16.2,9.4,23c6,6,13.7,9.4,23,9.4c9.3,0,16.2-3.4,23-9.4C310.2,334,312.8,325.5,312.8,317z M312.8-67c0-8.5-3.4-16.2-9.4-23
c-6-6-13.7-9.4-23-9.4c-9.3,0-16.2,3.4-23,9.4c-6,6-9.4,13.7-9.4,23c0,8.5,3.4,16.2,9.4,23c6,6,13.7,9.4,23,9.4
c9.3,0,16.2-3.4,23-9.4C310.2-49.9,312.8-58.5,312.8-67z M526.1-24.3c0-8.5-3.4-16.2-9.4-23s-13.7-9.4-23-9.4s-16.2,3.4-23,9.4
s-9.4,13.7-9.4,23s3.4,16.2,9.4,23c6,6,13.7,9.4,23,9.4s16.2-3.4,23-9.4C522.7-8.1,526.1-15.8,526.1-24.3z M557.7-24.3
c0,11.9-2.6,22.2-8.5,32.4s-13.7,17.9-23,23c-0.9,64-25.6,110.1-75.1,138.2c-15.4,8.5-37.5,17.1-67.4,27.3
c-28.2,8.5-46.9,17.1-56.3,23.9c-9.4,6.8-13.7,17.9-13.7,33.3v8.5c9.4,6,17.9,13.7,23,23c5.1,9.4,8.5,20.5,8.5,32.4
c0,17.9-6,33.3-18.8,45.2c-12.8,11.9-28.1,18.1-46.1,18.1s-33.3-6-45.2-18.8s-18.8-27.3-18.8-45.2c0-11.9,2.6-22.2,8.5-32.4
c6-10.2,13.7-17.9,23-23V-11.5c-9.4-6-17.9-13.7-23-23s-8.5-20.6-8.5-32.5c0-17.9,6-33.3,18.8-45.2c12.8-11.9,27.3-18.8,45.2-18.8
c17.9,0,33.3,6,45.2,18.8s18.8,27.3,18.8,45.2c0,11.9-2.6,22.2-8.5,32.4c-5.9,10.2-13.7,17.9-23,23V154c11.9-6,29-11.9,51.2-18.8
c11.9-3.4,22.2-6.8,29-10.2c6.8-3.4,15.4-6,23.9-10.2s15.4-8.5,19.6-12.8s9.4-10.2,13.7-17.1s7.7-14.5,9.4-23
c1.7-8.5,2.6-18.8,2.6-30.7c-9.4-6-17.9-13.7-23-23s-8.5-20.5-8.5-32.4c0-17.9,6-33.3,18.8-45.2c12.8-12.8,27.3-18.8,45.2-18.8
2 years ago
s33.3,6,45.2,18.8C551.7-57.6,557.7-42.3,557.7-24.3z`})],-1),Z_=[G_];function X_(e,t,n,o,r,a){return V(),X("svg",Q_,Z_)}const ev=we(J_,[["render",X_],["__file","Fork.vue"]]);const tv=["href"],nv=Xt(" \xA0 "),ov={__name:"Badge",props:{comp:{type:Object,required:!0},data:{type:Number,required:!0}},setup(e){const t=e,o=`https://github.com/${Cr().value.repo}`,r=o,a=`${o}/fork`;let i=o;switch(t.comp.name){case"Star":i=r;break;case"Fork":i=a;break}return(c,s)=>{const l=It("CountTo");return V(),X("a",{class:"my-badge",href:F(i),target:"_blank"},[(V(),$e(Bd(e.comp))),nv,ie(l,{startVal:0,endVal:e.data,duration:500},null,8,["endVal"])],8,tv)}}},jc=we(ov,[["__scopeId","data-v-b201bc64"],["__file","Badge.vue"]]);const rv={class:"badges"},av={__name:"HomeBadges",setup(e){const t=De(29582),n=De(6494);return Za(async()=>{const r=await fetch("https://arthas.aliyun.com/api/starCount").then(i=>i.json()),a=await fetch("https://arthas.aliyun.com/api/forkCount").then(i=>i.json());t.value=r||t.value,n.value=a||n.value}),(r,a)=>(V(),X("div",rv,[ie(jc,{comp:Y_,data:t.value},null,8,["data"]),ie(jc,{comp:ev,data:n.value},null,8,["data"])]))}},iv=we(av,[["__scopeId","data-v-d7ced36e"],["__file","HomeBadges.vue"]]),cv={name:"MdiGithub"},sv={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24",style:{height:"1.25rem",width:"1.25rem","vertical-align":"bottom"}},lv=ue("path",{fill:"currentColor",d:"M12 2A10 10 0 0 0 2 12c0 4.42 2.87 8.17 6.84 9.5c.5.08.66-.23.66-.5v-1.69c-2.77.6-3.36-1.34-3.36-1.34c-.46-1.16-1.11-1.47-1.11-1.47c-.91-.62.07-.6.07-.6c1 .07 1.53 1.03 1.53 1.03c.87 1.52 2.34 1.07 2.91.83c.09-.65.35-1.09.63-1.34c-2.22-.25-4.55-1.11-4.55-4.92c0-1.11.38-2 1.03-2.71c-.1-.25-.45-1.29.1-2.64c0 0 .84-.27 2.75 1.02c.79-.22 1.65-.33 2.5-.33c.85 0 1.71.11 2.5.33c1.91-1.29 2.75-1.02 2.75-1.02c.55 1.35.2 2.39.1 2.64c.65.71 1.03 1.6 1.03 2.71c0 3.82-2.34 4.66-4.57 4.91c.36.31.69.92.69 1.85V21c0 .27.16.59.67.5C19.14 20.16 22 16.42 22 12A10 10 0 0 0 12 2Z"},null,-1),uv=[lv];function mv(e,t,n,o,r,a){return V(),X("svg",sv,uv)}const dv=we(cv,[["render",mv],["__file","GitHub.vue"]]),fv=["href","rel","target","aria-label"],hv={key:1},pv=je({inheritAttrs:!1}),_v=Object.assign(pv,{__name:"AutoLink",props:{item:{type:Object,required:!0}},setup(e){const t=e,n=Dt(),o=_i(),{item:r}=Qa(t),a=te(()=>So(r.value.link)),i=te(()=>nh(r.value.link)||oh(r.value.link)),c=te(()=>{if(!i.value){if(r.value.target)return r.value.target;if(a.value)return"_blank"}}),s=te(()=>c.value==="_blank"),l=te(()=>!a.value&&!i.value&&!s.value),u=te(()=>{if(!i.value){if(r.value.rel)return r.value.rel;if(s.value)return"noopener noreferrer"}}),m=te(()=>r.value.ariaLabel||r.value.text),d=te(()=>{const g=Object.keys(o.value.locales);return g.length?!g.some(b=>b===r.value.link):r.value.link!=="/"}),f=te(()=>d.value?n.path.startsWith(r.value.link):!1),v=te(()=>l.value?r.value.activeMatch?new RegExp(r.value.activeMatch).test(n.path):f.value:!1);return(g,b)=>{const _=It("RouterLink"),y=It("AutoLinkExternalIcon");return F(l)?(V(),$e(_,_a({key:0,class:{"router-link-active":F(v)},to:F(r).link,"aria-label":F(m)},g.$attrs),{default:Ke(()=>[He(g.$slots,"before"),Xt(" "+Me(F(r).text)+" ",1),He(g.$slots,"after")]),_:3},16,["class","to","aria-label"])):(V(),X("a",_a({key:1,class:"external-link",href:F(r).link,rel:F(u),target:F(c),"aria-label":F(m)},g.$attrs),[He(g.$slots,"before"),F(r).text==="GitHub"?(V(),$e(dv,{key:0})):(V(),X("span",hv,Me(F(r).text),1)),F(s)&&F(r).text!=="GitHub"?(V(),$e(y,{key:2})):Ne("v-if",!0),He(g.$slots,"after")],16,fv))}}}),Ht=we(_v,[["__file","AutoLink.vue"]]),Hc=e=>decodeURI(e).replace(/#.*$/,"").replace(/(index)?\.(md|html)$/,""),vv=(e,t)=>{if(t.hash===e)return!0;const n=Hc(t.path),o=Hc(e);return n===o},Su=(e,t)=>e.link&&vv(e.link,t)?!0:e.children?e.children.some(n=>Su(n,t)):!1,Au=e=>!So(e)||/github\.com/.test(e)?"GitHub":/bitbucket\.org/.test(e)?"Bitbucket":/gitlab\.com/.test(e)?"GitLab":/gitee\.com/.test(e)?"Gitee":null,gv={GitHub:":repo/edit/:branch/:path",GitLab:":repo/-/edit/:branch/:path",Gitee:":repo/edit/:branch/:pa
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function hr(e){return function(t){if(Array.isArray(t))return Sa(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||ku(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ku(e,t){if(e){if(typeof e=="string")return Sa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sa(e,t):void 0}}function Sa(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var ae,ao,xu,Fc,Cu,pr={},di=[],x0=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function jt(e,t){for(var n in t)e[n]=t[n];return e}function Mu(e){var t=e.parentNode;t&&t.removeChild(e)}function Pt(e,t,n){var o,r,a,i=arguments,c={};for(a in t)a=="key"?o=t[a]:a=="ref"?r=t[a]:c[a]=t[a];if(arguments.length>3)for(n=[n],a=3;a<arguments.length;a++)n.push(i[a]);if(n!=null&&(c.children=n),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)c[a]===void 0&&(c[a]=e.defaultProps[a]);return io(e,c,o,r,null)}function io(e,t,n,o,r){var a={type:e,props:t,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r==null?++ae.__v:r};return ae.vnode!=null&&ae.vnode(a),a}function Zt(e){return e.children}function St(e,t){this.props=e,this.context=t}function _o(e,t){if(t==null)return e.__?_o(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?_o(e):null}function ju(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return ju(e)}}function Aa(e){(!e.__d&&(e.__d=!0)&&ao.push(e)&&!_r.__r++||Fc!==ae.debounceRendering)&&((Fc=ae.debounceRendering)||xu)(_r)}function _r(){for(var e;_r.__r=ao.length;)e=ao.sort(function(t,n){return t.__v.__b-n.__v.__b}),ao=[],e.some(function(t){var n,o,r,a,i,c;t.__d&&(i=(a=(n=t).__v).__e,(c=n.__P)&&(o=[],(r=jt({},a)).__v=a.__v+1,fi(c,a,r,n.__n,c.ownerSVGElement!==void 0,a.__h!=null?[i]:null,o,i==null?_o(a):i,a.__h),Vu(o,a),a.__e!=i&&ju(a)))})}function Hu(e,t,n,o,r,a,i,c,s,l){var u,m,d,f,v,g,b,_=o&&o.__k||di,y=_.length;for(n.__k=[],u=0;u<t.length;u++)if((f=n.__k[u]=(f=t[u])==null||typeof f=="boolean"?null:typeof f=="string"||typeof f=="number"?io(null,f,null,null,f):Array.isArray(f)?io(Zt,{children:f},null,null,null):f.__b>0?io(f.type,f.props,f.key,null,f.__v):f)!=null){if(f.__=n,f.__b=n.__b+1,(d=_[u])===null||d&&f.key==d.key&&f.type===d.type)_[u]=void 0;else for(m=0;m<y;m++){if((d=_[m])&&f.key==d.key&&f.type===d.type){_[m]=void 0;break}d=null}fi(e,f,d=d||pr,r,a,i,c,s,l),v=f.__e,(m=f.ref)&&d.ref!=m&&(b||(b=[]),d.ref&&b.push(d.ref,null,f),b.push(m,f.__c||v,f)),v!=null?(g==null&&(g=v),typeof f.type=="function"&&f.__k!=null&&f.__k===d.__k?f.__d=s=$u(f,s,e):s=qu(e,f,d,_,v,s),l||n.type!=="option"?typeof n.type=="function"&&(n.__d=s):e.value=""):s&&d.__e==s&&s.parentNode!=e&&(s=_o(d))}for(n.__e=g,u=y;u--;)_[u]!=null&&(typeof n.type=="function"&&_[u].__e!=null&&_[u].__e==n.__d&&(n.__d=_o(o,u+1)),Fu(_[u],_[u]));if(b)for(u=0;u<b.length;u++)Nu(b[u],b[++u],b[++u])}function $u(e,t,n){var o,r;for(o=0;o<e.__k.length;o++)(r=e.__k[o])&&(r.__=e,t=typeof r.type=="function"?$u(r,t,n):qu(n,r,r,e.__k,r.__e,t));return t}function $t(e,t){return t=t||[],e==null||typeof e=="boolean"||(Array.isArray(e)?e.some(function(n){$t(n,t)}):t.push(e)),t}function qu(e,t,n,o,r,a){var i,c,s;if(t.__d!==void 0)i=t.__d,t.__d=void 0;else if(n==null||r!=a||r.parentNode==null)e:if(a==null||a.parentNode!==e)e.appendChild(r),i=null;else{for(c=a,s=0;(c=c.nextSibling)&&s<o.length;s+=2)if(c==r)break e;e.insertBefore(r,a),i=a}return i!==void 0?i:r.nextSibling}function Bc(e,t,n){t[0]==="-"?e.setProperty(t,n):e[t]=n==null?"":typeof n!="number"||x0.test(t)?n:n+"px"}function Ho(e,t,n,o,r){var a;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof o=="string"&&(e.style.cssText=o=""),o)for(t in o)n&&t in n||Bc(e.style,t,"");if(n)for(t in n)o&&n[t]===o[t]||Bc(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")a=t!==(t=t.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ss(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function Z0(e,t){if(e==null)return{};var n,o,r=function(i,c){if(i==null)return{};var s,l,u={},m=Object.keys(i);for(l=0;l<m.length;l++)s=m[l],c.indexOf(s)>=0||(u[s]=i[s]);return u}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var X0=O.forwardRef(function(e,t){var n=e.translations,o=n===void 0?{}:n,r=Z0(e,Q0),a=o.buttonText,i=a===void 0?"Search":a,c=o.buttonAriaLabel,s=c===void 0?"Search":c,l=G0(zu(null),2),u=l[0],m=l[1];return Wu(function(){typeof navigator<"u"&&(/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)?m("\u2318"):m("Ctrl"))},[]),O.createElement("button",Ra({type:"button",className:"DocSearch DocSearch-Button","aria-label":s},r,{ref:t}),O.createElement("span",{className:"DocSearch-Button-Container"},O.createElement(em,null),O.createElement("span",{className:"DocSearch-Button-Placeholder"},i)),O.createElement("span",{className:"DocSearch-Button-Keys"},u!==null&&O.createElement(O.Fragment,null,O.createElement("kbd",{className:"DocSearch-Button-Key"},u==="Ctrl"?O.createElement(J0,null):u),O.createElement("kbd",{className:"DocSearch-Button-Key"},"K"))))});function go(e){return e.reduce(function(t,n){return t.concat(n)},[])}var e1=0;function ka(e){return e.collections.length===0?0:e.collections.reduce(function(t,n){return t+n.items.length},0)}var tm=function(){},t1=[{segment:"autocomplete-core",version:"1.7.1"}];function Jo(e,t){var n=t;return{then:function(o,r){return Jo(e.then($o(o,n,e),$o(r,n,e)),n)},catch:function(o){return Jo(e.catch($o(o,n,e)),n)},finally:function(o){return o&&n.onCancelList.push(o),Jo(e.finally($o(o&&function(){return n.onCancelList=[],o()},n,e)),n)},cancel:function(){n.isCanceled=!0;var o=n.onCancelList;n.onCancelList=[],o.forEach(function(r){r()})},isCanceled:function(){return n.isCanceled===!0}}}function ls(e){return Jo(e,{isCanceled:!1,onCancelList:[]})}function $o(e,t,n){return e?function(o){return t.isCanceled?o:e(o)}:n}function us(e,t,n,o){if(!n)return null;if(e<0&&(t===null||o!==null&&t===0))return n+e;var r=(t===null?-1:t)+e;return r<=-1||r>=n?o===null?null:0:r}function ms(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function n1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o1(e,t){var n=[];return Promise.resolve(e(t)).then(function(o){return Promise.all(o.filter(function(r){return Boolean(r)}).map(function(r){if(r.sourceId,n.includes(r.sourceId))throw new Error("[Autocomplete] The `sourceId` ".concat(JSON.stringify(r.sourceId)," is not unique."));n.push(r.sourceId);var a=function(i){for(var c=1;c<arguments.length;c++){var s=arguments[c]!=null?arguments[c]:{};c%2?ms(Object(s),!0).forEach(function(l){n1(i,l,s[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(s)):ms(Object(s)).forEach(function(l){Object.defineProperty(i,l,Object.getOwnPropertyDescriptor(s,l))})}return i}({getItemInputValue:function(i){return i.state.query},getItemUrl:function(){},onSelect:function(i){(0,i.setIsOpen)(!1)},onActive:tm},r);return Promise.resolve(a)}))})}function Sn(e){var t=function(r){var a=r.collections.map(function(i){return i.items.length}).reduce(function(i,c,s){var l=(i[s-1]||0)+c;return i.push(l),i},[]).reduce(function(i,c){return c<=r.activeItemId?i+1:i},0);return r.collections[a]}(e);if(!t)return null;var n=t.items[function(r){for(var a=r.state,i=r.collection,c=!1,s=0,l=0;c===!1;){var u=a.collections[s];if(u===i){c=!0;break}l+=u.items.length,s++}return a.activeItemId-l}({state:e,collection:t})],o=t.source;return{item:n,itemInputValue:o.getItemInputValue({item:n,state:e}),itemUrl:o
3 years ago
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Xr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function ps(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function En(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ps(Object(n),!0).forEach(function(o){u1(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ps(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function u1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function No(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_s(Object(n),!0).forEach(function(o){nm(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_s(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function nm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m1(e){return function(t){if(Array.isArray(t))return ea(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||function(t,n){if(!!t){if(typeof t=="string")return ea(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);if(o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set")return Array.from(t);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return ea(t,n)}}(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ea(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function vs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function gs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vs(Object(n),!0).forEach(function(o){d1(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vs(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function d1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fo(e){return Boolean(e.execute)}function f1(e,t){return n=e,Boolean(n==null?void 0:n.execute)?gs(gs({},e),{},{requests:e.queries.map(function(o){return{query:o,sourceId:t,transformResponse:e.transformResponse}})}):{items:e,sourceId:t};var n}function h1(e){var t=e.reduce(function(n,o){if(!Fo(o))return n.push(o),n;var r=o.searchClient,a=o.execute,i=o.requesterId,c=o.requests,s=n.find(function(m){return Fo(o)&&Fo(m)&&m.searchClient===r&&Boolean(i)&&m.requesterId===i});if(s){var l;(l=s.items).push.apply(l,m1(c))}else{var u={execute:a,requesterId:i,items:c,searchClient:r};n.push(u)}return n},[]).map(function(n){if(!Fo(n))return Promise.resolve(n);var o=n,r=o.execute,a=o.items;return r({searchClient:o.searchClient,requests:a})});return Promise.all(t).then(function(n){return go(n)})}function p1(e,t){return t.map(function(n){var o=e.filter(function(c){return c.sourceId===n.sourceId}),r=o.map(function(c){return c.items}),a=o[0].transformResponse,i=a?a(function(c){var s=c.map(function(l){var u;return qo(qo({},l),{},{hits:(u=l.hits)===null||u===void 0?void 0:u.map(function(m){return qo(qo({},m),{},{__autocomplete_indexName:l.index,__autocomplete_queryID:l.queryID})})})});return{results:s,hits:s.map(function(l){return l.hits}).filter(Boolean),facetHits:s.map(function(l){var u;return(u=l.facetHits)===null||u===void 0?void 0:u.map(function(m){return{label:m.value,count:m.count,_highlightResult:{label:{value:m.highlighted}}}})}).filter(Boolean)}}(r)):r;return i.every(Boolean),'The `getItems` function from source "'.concat(n.sourceId,'" must return an array of items but returned ').concat(JSON.stringify(void 0),`.
Did you forget to return items?
2 years ago
See: https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/sources/#param-getitems`),{source:n,items:i}})}var _1=["event","nextState","props","query","refresh","store"];function bs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function Yn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bs(Object(n),!0).forEach(function(o){v1(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bs(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function v1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g1(e,t){if(e==null)return{};var n,o,r=function(i,c){if(i==null)return{};var s,l,u={},m=Object.keys(i);for(l=0;l<m.length;l++)s=m[l],c.indexOf(s)>=0||(u[s]=i[s]);return u}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var ys,ta,Bo,Jn=null,Es=(ys=-1,ta=-1,Bo=void 0,function(e){var t=++ys;return Promise.resolve(e).then(function(n){return Bo&&t<ta?Bo:(ta=t,Bo=n,n)})});function Pn(e){var t=e.event,n=e.nextState,o=n===void 0?{}:n,r=e.props,a=e.query,i=e.refresh,c=e.store,s=g1(e,_1);Jn&&r.environment.clearTimeout(Jn);var l=s.setCollections,u=s.setIsOpen,m=s.setQuery,d=s.setActiveItemId,f=s.setStatus;if(m(a),d(r.defaultActiveItemId),!a&&r.openOnFocus===!1){var v,g=c.getState().collections.map(function(y){return Yn(Yn({},y),{},{items:[]})});f("idle"),l(g),u((v=o.isOpen)!==null&&v!==void 0?v:r.shouldPanelOpen({state:c.getState()}));var b=ls(Es(g).then(function(){return Promise.resolve()}));return c.pendingRequests.add(b)}f("loading"),Jn=r.environment.setTimeout(function(){f("stalled")},r.stallThreshold);var _=ls(Es(r.getSources(Yn({query:a,refresh:i,state:c.getState()},s)).then(function(y){return Promise.all(y.map(function(S){return Promise.resolve(S.getItems(Yn({query:a,refresh:i,state:c.getState()},s))).then(function(A){return f1(A,S.sourceId)})})).then(h1).then(function(S){return p1(S,y)}).then(function(S){return function(A){var D=A.collections,K=A.props,R=A.state,E=D.reduce(function(U,Y){return No(No({},U),{},nm({},Y.source.sourceId,No(No({},Y.source),{},{getItems:function(){return go(Y.items)}})))},{});return go(K.reshape({sources:Object.values(E),sourcesBySourceId:E,state:R})).filter(Boolean).map(function(U){return{source:U,items:U.getItems()}})}({collections:S,props:r,state:c.getState()})})}))).then(function(y){var S;f("idle"),l(y);var A=r.shouldPanelOpen({state:c.getState()});u((S=o.isOpen)!==null&&S!==void 0?S:r.openOnFocus&&!a&&A||A);var D=Sn(c.getState());if(c.getState().activeItemId!==null&&D){var K=D.item,R=D.itemInputValue,E=D.itemUrl,U=D.source;U.onActive(Yn({event:t,item:K,itemInputValue:R,itemUrl:E,refresh:i,source:U,state:c.getState()},s))}}).finally(function(){f("idle"),Jn&&r.environment.clearTimeout(Jn)});return c.pendingRequests.add(_)}var b1=["event","props","refresh","store"];function ws(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function on(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ws(Object(n),!0).forEach(function(o){y1(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ws(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function y1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E1(e,t){if(e==null)return{};var n,o,r=function(i,c){if(i==null)return{};var s,l,u={},m=Object.keys(i);for(l=0;l<m.length;l++)s=m[
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function na(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function Q1(e,t){if(e==null)return{};var n,o,r=function(i,c){if(i==null)return{};var s,l,u={},m=Object.keys(i);for(l=0;l<m.length;l++)s=m[l],c.indexOf(s)>=0||(u[s]=i[s]);return u}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function G1(e){var t=e.translations,n=t===void 0?{}:t,o=Q1(e,Y1),r=n.noResultsText,a=r===void 0?"No results for":r,i=n.suggestedQueryText,c=i===void 0?"Try searching for":i,s=n.reportMissingResultsText,l=s===void 0?"Believe this query should return results?":s,u=n.reportMissingResultsLinkText,m=u===void 0?"Let us know.":u,d=o.state.context.searchSuggestions;return O.createElement("div",{className:"DocSearch-NoResults"},O.createElement("div",{className:"DocSearch-Screen-Icon"},O.createElement(W1,null)),O.createElement("p",{className:"DocSearch-Title"},a,' "',O.createElement("strong",null,o.state.query),'"'),d&&d.length>0&&O.createElement("div",{className:"DocSearch-NoResults-Prefill-List"},O.createElement("p",{className:"DocSearch-Help"},c,":"),O.createElement("ul",null,d.slice(0,3).reduce(function(f,v){return[].concat(J1(f),[O.createElement("li",{key:v},O.createElement("button",{className:"DocSearch-Prefill",key:v,type:"button",onClick:function(){o.setQuery(v.toLowerCase()+" "),o.refresh(),o.inputRef.current.focus()}},v))])},[]))),o.getMissingResultsUrl&&O.createElement("p",{className:"DocSearch-Help"},"".concat(l," "),O.createElement("a",{href:o.getMissingResultsUrl({query:o.state.query}),target:"_blank",rel:"noopener noreferrer"},m)))}var Z1=["hit","attribute","tagName"];function Ls(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function Ds(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ls(Object(n),!0).forEach(function(o){X1(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ls(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function X1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eb(e,t){if(e==null)return{};var n,o,r=function(i,c){if(i==null)return{};var s,l,u={},m=Object.keys(i);for(l=0;l<m.length;l++)s=m[l],c.indexOf(s)>=0||(u[s]=i[s]);return u}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Rs(e,t){return t.split(".").reduce(function(n,o){return n!=null&&n[o]?n[o]:null},e)}function wn(e){var t=e.hit,n=e.attribute,o=e.tagName;return Pt(o===void 0?"span":o,Ds(Ds({},eb(e,Z1)),{},{dangerouslySetInnerHTML:{__html:Rs(t,"_snippetResult.".concat(n,".value"))||Rs(t,n)}}))}function ks(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,o){var r=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(r!=null){var a,i,c=[],s=!0,l=!1;try{for(r=r.call(n);!(s=(a=r.next()).done)&&(c.push(a.value),!o||c.length!==o);s=!0);}catch(u){l=!0,i=u}finally{try{s||r.return==null||r.return()}finally{if(l)throw i}}return c}}(e,t)||function(n,o){if(!!n){if(typeof n=="string")return xs(n,o);var r=Object.prototype.toString.call(n).slice(8,-1);if(r==="Object"&&n.constructor&&(r=n.constructor.name),r==="Map"||r==="Set")return Array.from(n);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xs(n,o)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function xs(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function vr(){return vr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},vr.apply(this,arguments)}function Ca(e){return e.collection&&e.collection.items.length!==0?O.createElement("section",{className:"DocSearch-Hits"},O.createElement("div",{className:"DocSearch-Hit-source"},e.title),O.createElement("ul",e.getListProps(),e.collection.items.map(function(t,n){return O.createElement(tb,vr({key:[e.title,t.objectID].join(":"),item:t,index:n},e))}))):null}function tb(e){var t=e.item,n=e.index,o=e.renderIcon,r=e.renderAction,a=e.getItemProps,i=e.onItemClick,c=e.collection,s=e.hitComponent,l=ks(O.useState(!1),2),u=l[0],m=l[1],d=ks(O.useState(!1),2),f=d[0],v=d[1],g=O.useRef(null),b=s;return O.createElement("li",vr({className:["DocSearch-Hit",t.__docsearch_parent&&"DocSearch-Hit--Child",u&&"DocSearch-Hit--deleting",f&&"DocSearch-Hit--favoriting"].filter(Boolean).join(" "),onTransitionEnd:function(){g.current&&g.current()}},a({item:t,source:c.source,onClick:function(){i(t)}})),O.createElement(b,{hit:t},O.createElement("div",{className:"DocSearch-Hit-Container"},o({item:t,index:n}),t.hierarchy[t.type]&&t.type==="lvl1"&&O.createElement("div",{className:"DocSearch-Hit-content-wrapper"},O.createElement(wn,{className:"DocSearch-Hit-title",hit:t,attribute:"hierarchy.lvl1"}),t.content&&O.createElement(wn,{className:"DocSearch-Hit-path",hit:t,attribute:"content"})),t.hierarchy[t.type]&&(t.type==="lvl2"||t.type==="lvl3"||t.type==="lvl4"||t.type==="lvl5"||t.type==="lvl6")&&O.createElement("div",{className:"DocSearch-Hit-content-wrapper"},O.createElement(wn,{className:"DocSearch-Hit-title",hit:t,attribute:"hierarchy.".concat(t.type)}),O.createElement(wn,{className:"DocSearch-Hit-path",hit:t,attribute:"hierarchy.lvl1"})),t.type==="content"&&O.createElement("div",{className:"DocSearch-Hit-content-wrapper"},O.createElement(wn,{className:"DocSearch-Hit-title",hit:t,attribute:"content"}),O.createElement(wn,{className:"DocSearch-Hit-path",hit:t,attribute:"hierarchy.lvl1"})),r({item:t,runDeleteTransition:function(_){m(!0),g.current=_},runFavoriteTransition:function(_){v(!0),g.current=_}}))))}function Cs(e,t){return e.reduce(function(n,o){var r=t(o);return n.hasOwnProperty(r)||(n[r]=[]),n[r].length<5&&n[r].push(o),n},{})}function Ms(e){return e}function nb(){}var rm=/(<mark>|<\/mark>)/g,ob=RegExp(rm.source);function am(e){var t,n,o,r,a,i=e;if(!i.__docsearch_parent&&!e._highlightResult)return e.hierarchy.lvl0;var c=((i.__docsearch_parent?(t=i.__docsearch_parent)===null||t===void 0||(n=t._highlightResult)===null||n===void 0||(o=n.hierarchy)===null||o===void 0?void 0:o.lvl0:(r=e._highlightResult)===null||r===void 0||(a=r.hierarchy)===null||a===void 0?void 0:a.lvl0)||{}).value;return c&&ob.test(c)?c.replace(rm,""):c}function Ma(){return Ma=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ma.apply(this,arguments)}function rb(e){return O.createElement("div",{className:"DocSearch-Dropdown-Container"},e.state.collections.map(function(t){if(t.items.length===0)return null;var n=am(t.items[0]);return O.createElement(Ca,Ma({},e,{key:t.source.sourceId,title:n,collection:t,renderIcon:function(o){var r,a=o.item,i=o.index;return O.createElement(O.Fragment,null,a.__docsearch_parent&&O.createElement("svg",{className:"DocSearch-Hit-Tree",viewBox:"0 0 24 54"},O.createElement("g",{stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},a.__docsearch_parent!==((r=t.items[i+1])===null||r===void 0?void 0:r.__docsearch_parent)?O.createElement("path",{d:"M8 6v21M20 27H8.3"}):O.createElement("path",{d:"M8 6v42M20 27H8.3"}))),O.createElement("div",{className:"DocSearch-Hit-icon"},O.createElement(F1,{type:a.type})))},rende
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function zs(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function xb(e,t){if(e==null)return{};var n,o,r=function(i,c){if(i==null)return{};var s,l,u={},m=Object.keys(i);for(l=0;l<m.length;l++)s=m[l],c.indexOf(s)>=0||(u[s]=i[s]);return u}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Cb(e){var t=e.appId,n=e.apiKey,o=e.indexName,r=e.placeholder,a=r===void 0?"Search docs":r,i=e.searchParameters,c=e.onClose,s=c===void 0?nb:c,l=e.transformItems,u=l===void 0?Ms:l,m=e.hitComponent,d=m===void 0?H1:m,f=e.resultsFooterComponent,v=f===void 0?function(){return null}:f,g=e.navigator,b=e.initialScrollY,_=b===void 0?0:b,y=e.transformSearchClient,S=y===void 0?Ms:y,A=e.disableUserPersonalization,D=A!==void 0&&A,K=e.initialQuery,R=K===void 0?"":K,E=e.translations,U=E===void 0?{}:E,Y=e.getMissingResultsUrl,H=U.footer,P=U.searchBox,T=xb(U,Db),k=kb(O.useState({query:"",collections:[],completion:null,context:{},isOpen:!1,activeItemId:null,status:"idle"}),2),M=k[0],j=k[1],W=O.useRef(null),ee=O.useRef(null),me=O.useRef(null),de=O.useRef(null),ve=O.useRef(null),Se=O.useRef(10),Re=O.useRef(typeof window<"u"?window.getSelection().toString().slice(0,64):"").current,Fe=O.useRef(R||Re).current,x=function(p,w,I){return O.useMemo(function(){var C=pm(p,w);return C.addAlgoliaAgent("docsearch","3.2.1"),/docsearch.js \(.*\)/.test(C.transporter.userAgent.value)===!1&&C.addAlgoliaAgent("docsearch-react","3.2.1"),I(C)},[p,w,I])}(t,n,S),Z=O.useRef(js({key:"__DOCSEARCH_FAVORITE_SEARCHES__".concat(o),limit:10})).current,N=O.useRef(js({key:"__DOCSEARCH_RECENT_SEARCHES__".concat(o),limit:Z.getAll().length===0?7:4})).current,G=O.useCallback(function(p){if(!D){var w=p.type==="content"?p.__docsearch_parent:p;w&&Z.getAll().findIndex(function(I){return I.objectID===w.objectID})===-1&&N.add(w)}},[Z,N,D]),pe=O.useMemo(function(){return C1({id:"docsearch",defaultActiveItemId:0,placeholder:a,openOnFocus:!0,initialState:{query:Fe,context:{searchSuggestions:[]}},navigator:g,onStateChange:function(p){j(p.state)},getSources:function(p){var w=p.query,I=p.state,C=p.setContext,$=p.setStatus;return w?x.search([{query:w,indexName:o,params:ra({attributesToRetrieve:["hierarchy.lvl0","hierarchy.lvl1","hierarchy.lvl2","hierarchy.lvl3","hierarchy.lvl4","hierarchy.lvl5","hierarchy.lvl6","content","type","url"],attributesToSnippet:["hierarchy.lvl1:".concat(Se.current),"hierarchy.lvl2:".concat(Se.current),"hierarchy.lvl3:".concat(Se.current),"hierarchy.lvl4:".concat(Se.current),"hierarchy.lvl5:".concat(Se.current),"hierarchy.lvl6:".concat(Se.current),"content:".concat(Se.current)],snippetEllipsisText:"\u2026",highlightPreTag:"<mark>",highlightPostTag:"</mark>",hitsPerPage:20},i)}]).catch(function(q){throw q.name==="RetryError"&&$("error"),q}).then(function(q){var J=q.results[0],z=J.hits,Q=J.nbHits,B=Cs(z,function(re){return am(re)});return I.context.searchSuggestions.length<Object.keys(B).length&&C({searchSuggestions:Object.keys(B)}),C({nbHits:Q}),Object.values(B).map(function(re,oe){return{sourceId:"hits".concat(oe),onSelect:function(ne){var se=ne.item,_e=ne.event;G(se),_e.shiftKey||_e.ctrlKey||_e.metaKey||s()},getItemUrl:function(ne){return ne.item.url},getItems:function(){return Object.values(Cs(re,function(ne){return ne.hierarchy.lvl1})).map(u).map(function(ne){return ne.map(function(se){return ra(ra({},se),{},{__docsearch_parent:se.type!=="lvl1"&&ne.find(function(_e){return _e.type==="lvl1"&&_e.hierarchy.lvl1===se.hierarchy.lvl1})})})}).flat()}}})}):D?[]:[{sourceId:"recentSearches",onSelect:function(q){var J=q.item,z=q.event;G(J),z.shiftKey||z.ctrlKey||z.metaKey||s()},getItemUrl:function(q){return q.item.url},getItems:function(){return N.getAll()}},{sourceId:"favoriteSearches",onSelect:function(q){var J=q.item,z=q.event;G(J),z.shiftKey||z.ctrlKey||z.metaKey||s()},getItemUrl:function(q){return q.i
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Ws(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function Mb(e){var t,n,o=O.useRef(null),r=Us(O.useState(!1),2),a=r[0],i=r[1],c=Us(O.useState((e==null?void 0:e.initialQuery)||void 0),2),s=c[0],l=c[1],u=O.useCallback(function(){i(!0)},[i]),m=O.useCallback(function(){i(!1)},[i]);return function(d){var f=d.isOpen,v=d.onOpen,g=d.onClose,b=d.onInput,_=d.searchButtonRef;O.useEffect(function(){function y(S){(S.keyCode===27&&f||S.key==="k"&&(S.metaKey||S.ctrlKey)||!function(A){var D=A.target,K=D.tagName;return D.isContentEditable||K==="INPUT"||K==="SELECT"||K==="TEXTAREA"}(S)&&S.key==="/"&&!f)&&(S.preventDefault(),f?g():document.body.classList.contains("DocSearch--active")||document.body.classList.contains("DocSearch--active")||v()),_&&_.current===document.activeElement&&b&&/[a-zA-Z0-9]/.test(String.fromCharCode(S.keyCode))&&b(S)}return window.addEventListener("keydown",y),function(){window.removeEventListener("keydown",y)}},[f,v,g,b,_])}({isOpen:a,onOpen:u,onClose:m,onInput:O.useCallback(function(d){i(!0),l(d.key)},[i,l]),searchButtonRef:o}),O.createElement(O.Fragment,null,O.createElement(X0,{ref:o,translations:e==null||(t=e.translations)===null||t===void 0?void 0:t.button,onClick:u}),a&&Qu(O.createElement(Cb,ja({},e,{initialScrollY:window.scrollY,initialQuery:s,translations:e==null||(n=e.translations)===null||n===void 0?void 0:n.modal,onClose:m})),document.body))}function jb(e){Zu(O.createElement(Mb,Pa({},e,{transformSearchClient:function(t){return t.addAlgoliaAgent("docsearch.js","3.2.1"),e.transformSearchClient?e.transformSearchClient(t):t}})),function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:window;return typeof t=="string"?n.document.querySelector(t):t}(e.container,e.environment))}const Hb=e=>e.button===1||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey,$b=()=>{const e=vn(),t=_i();return{hitComponent:({hit:n,children:o})=>({type:"a",ref:void 0,constructor:void 0,key:void 0,props:{href:n.url,onClick:r=>{Hb(r)||(r.preventDefault(),e.push(rc(n.url,t.value.base)))},children:o},__v:null}),navigator:{navigate:({itemUrl:n})=>{e.push(rc(n,t.value.base))}},transformSearchClient:n=>{const o=ri(n.search,500);return{...n,search:async(...r)=>o(...r)}}}};const qb=je({name:"Docsearch",props:{containerId:{type:String,required:!1,default:"docsearch-container"},options:{type:Object,required:!0}},setup(e){const t=Fn(),n=Em(),o=$b(),r=te(()=>{var c;return{...e.options,...(c=e.options.locales)==null?void 0:c[t.value]}}),a=[],i=()=>{var s,l;const c=(l=(s=r.value.searchParameters)==null?void 0:s.facetFilters)!=null?l:[];a.splice(0,a.length,`lang:${n.value}`,...ce(c)?c:[c]),jb({...o,...r.value,container:`#${e.containerId}`,searchParameters:{...r.value.searchParameters,facetFilters:a}})};return et(()=>{i(),ot([t,r],([c,s],[l,u])=>{c!==l&&JSON.stringify(s)!==JSON.stringify(u)&&i()}),ot(n,(c,s)=>{if(c!==s){const l=a.findIndex(u=>u===`lang:${s}`);l>-1&&a.splice(l,1,`lang:${c}`)}})}),()=>Te("div",{id:e.containerId})}}),Vb={apiKey:"30c521836bfc8e97915576e11ac2cebc",indexName:"arthas",appId:"UX8WBNVHHR",locales:{"/":{placeholder:"\u641C\u7D22\u6587\u6863",translations:{button:{buttonText:"\u641C\u7D22\u6587\u6863",buttonAriaLabel:"\u641C\u7D22\u6587\u6863"},modal:{searchBox:{resetButtonTitle:"\u6E05\u9664\u67E5\u8BE2\u6761\u4EF6",resetButtonAriaLabel:"\u6E05\u9664\u67E5\u8BE2\u6761\u4EF6",cancelButtonText:"\u53D6\u6D88",cancelButtonAriaLabel:"\u53D6\u6D88"},startScreen:{recentSearchesTitle:"\u641C\u7D22\u5386\u53F2",noRecentSearchesText:"\u6CA1\u6709\u641C\u7D22\u5386\u53F2",saveRecentSearchButtonTitle:"\u4FDD\u5B58\u81F3\u641C\u7D22\u5386\u53F2",removeRecentSearchButtonTitle:"\u4ECE\u641C\u7D22\u5386\u53F2\u4E2D\u79FB\u9664",favoriteSearchesTitle:"\u6536\u85CF",removeFavoriteSearchButtonTitle:"\u4ECE\u6536\u85CF\u4E2D\u79FB\u9664"},errorScreen:{titleText:"\u65E0\u6CD5\u83B7\u53D6\u7ED3\u679C",helpText:"\u4F60\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u4F60\u7684\u7F51\u7EDC\u8FDE\u63A5"},footer:{