From 5ab7773eef2965c0902e74a740229fe9b16d9476 Mon Sep 17 00:00:00 2001 From: Chasen-Zhang Date: Mon, 16 Dec 2024 08:58:41 +0000 Subject: [PATCH] deploy: ed0d09ee6fd8150a249a9b9696aad7d1b8695636 --- 404.html | 4 ++-- components/query-profile/index.html | 4 ++-- ...tion__dumi__theme__ContextWrapper.0ae08eb2.async.js | 2 +- index.html | 4 ++-- ...63.async.js => meta__QueryProfile.8701c472.async.js | 10 +++++----- ...ad_helper.e84fd402.js => preload_helper.22a2d726.js | 2 +- umi.ad91b5b5.js => umi.13a68db9.js | 4 ++-- ~demos/:id/index.html | 4 ++-- ~demos/queryprofile-demo-0/index.html | 4 ++-- ~demos/queryprofile-demo-1/index.html | 4 ++-- 10 files changed, 21 insertions(+), 21 deletions(-) rename dumi__tmp-production__dumi__theme__ContextWrapper.77c13456.async.js => dumi__tmp-production__dumi__theme__ContextWrapper.0ae08eb2.async.js (95%) rename meta__QueryProfile.cd557663.async.js => meta__QueryProfile.8701c472.async.js (94%) rename preload_helper.e84fd402.js => preload_helper.22a2d726.js (96%) rename umi.ad91b5b5.js => umi.13a68db9.js (99%) diff --git a/404.html b/404.html index 1e50aed..f8bbfa3 100644 --- a/404.html +++ b/404.html @@ -6,10 +6,10 @@ - +
- + \ No newline at end of file diff --git a/components/query-profile/index.html b/components/query-profile/index.html index 1e50aed..f8bbfa3 100644 --- a/components/query-profile/index.html +++ b/components/query-profile/index.html @@ -6,10 +6,10 @@ - +
- + \ No newline at end of file diff --git a/dumi__tmp-production__dumi__theme__ContextWrapper.77c13456.async.js b/dumi__tmp-production__dumi__theme__ContextWrapper.0ae08eb2.async.js similarity index 95% rename from dumi__tmp-production__dumi__theme__ContextWrapper.77c13456.async.js rename to dumi__tmp-production__dumi__theme__ContextWrapper.0ae08eb2.async.js index 341db0a..77de8f9 100644 --- a/dumi__tmp-production__dumi__theme__ContextWrapper.77c13456.async.js +++ b/dumi__tmp-production__dumi__theme__ContextWrapper.0ae08eb2.async.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdatabend_profile_ui=self.webpackChunkdatabend_profile_ui||[]).push([[923],{26520:function(L,o,t){t.r(o),t.d(o,{default:function(){return T}});var g=t(5574),b=t.n(g),a=t(67294),n=t(53683),y=t(56790),C=t(64236),r=null,s=t(90482),x=t(85893),i={},l={name:"databend-profile-ui",description:"A react library developed with dumi",version:"0.0.31",license:"MIT",authors:["zhangsenquan@databend.com"]},d="browser",u=void 0,c={logo:"/databend-profile-ui/logo.svg",footer:'
Copyright \xA9 2024 | Databend Cloud
',prefersColor:{default:"light",switch:!1},nprogress:!0,lastUpdated:!0,name:"",socialLinks:{github:"https://github.com/databendcloud",twitter:"https://twitter.com/DatabendLabs",zhihu:"https://www.zhihu.com/org/datafuse",weibo:"https://github.com/databendcloud/databend-profile-ui"}},v=!0;function T(){var w=(0,n.pC)(),D=(0,a.useState)(!1),m=b()(D,2),f=m[0],h=m[1],p=(0,a.useRef)(n.m8.location.pathname);(0,a.useEffect)(function(){return n.m8.listen(function(e){e.location.pathname!==p.current&&(p.current=e.location.pathname,document.documentElement.scrollTo(0,0))})},[]);var E=a.useMemo(function(){var e={pkg:l,historyType:d,entryExports:i,demos:null,components:r,locales:s.k,loading:f,setLoading:h,hostname:u,themeConfig:c,_2_level_nav_available:v};return Object.defineProperty(e,"demos",{get:function(){return(0,y.Kp)(!1,"`demos` return empty in latest version, please use `useDemo` instead."),{}}}),e},[l,d,i,r,s.k,f,h,u,c,v]);return(0,x.jsx)(C.D.Provider,{value:E,children:w})}}}]); +"use strict";(self.webpackChunkdatabend_profile_ui=self.webpackChunkdatabend_profile_ui||[]).push([[923],{26520:function(L,o,t){t.r(o),t.d(o,{default:function(){return T}});var g=t(5574),b=t.n(g),a=t(67294),n=t(53683),y=t(56790),C=t(64236),r=null,s=t(90482),x=t(85893),i={},l={name:"databend-profile-ui",description:"A react library developed with dumi",version:"0.0.32",license:"MIT",authors:["zhangsenquan@databend.com"]},d="browser",u=void 0,c={logo:"/databend-profile-ui/logo.svg",footer:'
Copyright \xA9 2024 | Databend Cloud
',prefersColor:{default:"light",switch:!1},nprogress:!0,lastUpdated:!0,name:"",socialLinks:{github:"https://github.com/databendcloud",twitter:"https://twitter.com/DatabendLabs",zhihu:"https://www.zhihu.com/org/datafuse",weibo:"https://github.com/databendcloud/databend-profile-ui"}},v=!0;function T(){var w=(0,n.pC)(),D=(0,a.useState)(!1),m=b()(D,2),f=m[0],h=m[1],p=(0,a.useRef)(n.m8.location.pathname);(0,a.useEffect)(function(){return n.m8.listen(function(e){e.location.pathname!==p.current&&(p.current=e.location.pathname,document.documentElement.scrollTo(0,0))})},[]);var E=a.useMemo(function(){var e={pkg:l,historyType:d,entryExports:i,demos:null,components:r,locales:s.k,loading:f,setLoading:h,hostname:u,themeConfig:c,_2_level_nav_available:v};return Object.defineProperty(e,"demos",{get:function(){return(0,y.Kp)(!1,"`demos` return empty in latest version, please use `useDemo` instead."),{}}}),e},[l,d,i,r,s.k,f,h,u,c,v]);return(0,x.jsx)(C.D.Provider,{value:E,children:w})}}}]); diff --git a/index.html b/index.html index 1e50aed..f8bbfa3 100644 --- a/index.html +++ b/index.html @@ -6,10 +6,10 @@ - +
- + \ No newline at end of file diff --git a/meta__QueryProfile.cd557663.async.js b/meta__QueryProfile.8701c472.async.js similarity index 94% rename from meta__QueryProfile.cd557663.async.js rename to meta__QueryProfile.8701c472.async.js index e522950..afb0a33 100644 --- a/meta__QueryProfile.cd557663.async.js +++ b/meta__QueryProfile.8701c472.async.js @@ -1,11 +1,11 @@ -"use strict";(self.webpackChunkdatabend_profile_ui=self.webpackChunkdatabend_profile_ui||[]).push([[152],{25840:function(Mn,$,l){l.r($),l.d($,{demos:function(){return Gn}});var fn=l(15009),h=l.n(fn),$n=l(99289),k=l.n($n),D=l(67294),B=l(97753),T=l(92707),zn=l(55753),Gn={"queryprofile-demo-0":{component:D.memo(D.lazy(k()(h()().mark(function Y(){var J,K,X,O;return h()().wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.next=2,Promise.resolve().then(l.bind(l,92707));case 2:return J=q.sent,K=J.QueryProfile,q.next=6,Promise.resolve().then(l.bind(l,55753));case 6:return X=q.sent,O=X.DEMO,q.abrupt("return",{default:function(){return D.createElement(K,{isDemo:!0,outValue:JSON.parse(O),profileRef:"body"})}});case 9:case"end":return q.stop()}},Y)})))),asset:{type:"BLOCK",id:"queryprofile-demo-0",refAtomIds:["QueryProfile"],dependencies:{"index.jsx":{type:"FILE",value:`import { QueryProfile } from 'databend-profile-ui'; +"use strict";(self.webpackChunkdatabend_profile_ui=self.webpackChunkdatabend_profile_ui||[]).push([[152],{25840:function(Mn,G,l){l.r(G),l.d(G,{demos:function(){return Gn}});var fn=l(15009),h=l.n(fn),$n=l(99289),k=l.n($n),D=l(67294),B=l(97753),T=l(92707),zn=l(55753),Gn={"queryprofile-demo-0":{component:D.memo(D.lazy(k()(h()().mark(function en(){var K,X,V,O;return h()().wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.next=2,Promise.resolve().then(l.bind(l,92707));case 2:return K=q.sent,X=K.QueryProfile,q.next=6,Promise.resolve().then(l.bind(l,55753));case 6:return V=q.sent,O=V.DEMO,q.abrupt("return",{default:function(){return D.createElement(X,{isDemo:!0,outValue:JSON.parse(O),profileRef:"body"})}});case 9:case"end":return q.stop()}},en)})))),asset:{type:"BLOCK",id:"queryprofile-demo-0",refAtomIds:["QueryProfile"],dependencies:{"index.jsx":{type:"FILE",value:`import { QueryProfile } from 'databend-profile-ui'; import { DEMO } from './demo'; export default () => ( -);`},"databend-profile-ui":{type:"NPM",value:"0.0.31"},"./demo.ts":{type:"FILE",value:l(45760).Z}},entry:"index.jsx"},context:{"./demo.ts":zn,"databend-profile-ui":T,"/home/runner/work/databend-profile-ui/databend-profile-ui/src/QueryProfile/demo.ts":zn},renderOpts:{compile:function(){var Y=k()(h()().mark(function K(){var X,O=arguments;return h()().wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.next=2,l.e(335).then(l.bind(l,37335));case 2:return q.abrupt("return",(X=q.sent).default.apply(X,O));case 3:case"end":return q.stop()}},K)}));function J(){return Y.apply(this,arguments)}return J}()}},"queryprofile-demo-1":{component:D.memo(D.lazy(k()(h()().mark(function Y(){var J,K;return h()().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.next=2,Promise.resolve().then(l.bind(l,92707));case 2:return J=O.sent,K=J.TestProfile,O.abrupt("return",{default:function(){return D.createElement(K,{isDemo:!0})}});case 5:case"end":return O.stop()}},Y)})))),asset:{type:"BLOCK",id:"queryprofile-demo-1",refAtomIds:["QueryProfile"],dependencies:{"index.jsx":{type:"FILE",value:`import { TestProfile } from 'databend-profile-ui'; +);`},"databend-profile-ui":{type:"NPM",value:"0.0.32"},"./demo.ts":{type:"FILE",value:l(45760).Z}},entry:"index.jsx"},context:{"./demo.ts":zn,"databend-profile-ui":T,"/home/runner/work/databend-profile-ui/databend-profile-ui/src/QueryProfile/demo.ts":zn},renderOpts:{compile:function(){var en=k()(h()().mark(function X(){var V,O=arguments;return h()().wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.next=2,l.e(335).then(l.bind(l,37335));case 2:return q.abrupt("return",(V=q.sent).default.apply(V,O));case 3:case"end":return q.stop()}},X)}));function K(){return en.apply(this,arguments)}return K}()}},"queryprofile-demo-1":{component:D.memo(D.lazy(k()(h()().mark(function en(){var K,X;return h()().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.next=2,Promise.resolve().then(l.bind(l,92707));case 2:return K=O.sent,X=K.TestProfile,O.abrupt("return",{default:function(){return D.createElement(X,{isDemo:!0})}});case 5:case"end":return O.stop()}},en)})))),asset:{type:"BLOCK",id:"queryprofile-demo-1",refAtomIds:["QueryProfile"],dependencies:{"index.jsx":{type:"FILE",value:`import { TestProfile } from 'databend-profile-ui'; -export default () => ;`},"databend-profile-ui":{type:"NPM",value:"0.0.31"}},entry:"index.jsx"},context:{"databend-profile-ui":T},renderOpts:{compile:function(){var Y=k()(h()().mark(function K(){var X,O=arguments;return h()().wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.next=2,l.e(335).then(l.bind(l,37335));case 2:return q.abrupt("return",(X=q.sent).default.apply(X,O));case 3:case"end":return q.stop()}},K)}));function J(){return Y.apply(this,arguments)}return J}()}}}},55753:function(Mn,$,l){l.r($),l.d($,{DEMO:function(){return fn}});var fn=`{ +export default () => ;`},"databend-profile-ui":{type:"NPM",value:"0.0.32"}},entry:"index.jsx"},context:{"databend-profile-ui":T},renderOpts:{compile:function(){var en=k()(h()().mark(function X(){var V,O=arguments;return h()().wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.next=2,l.e(335).then(l.bind(l,37335));case 2:return q.abrupt("return",(V=q.sent).default.apply(V,O));case 3:case"end":return q.stop()}},X)}));function K(){return en.apply(this,arguments)}return K}()}}}},55753:function(Mn,G,l){l.r(G),l.d(G,{DEMO:function(){return fn}});var fn=`{ "query_id": "ffffff-ca85-429b-3333-7f0ba074ba40", "tenant": "dsfdfsafad", "warehouse": "ddfdfdf-12290927528", @@ -7229,7 +7229,7 @@ export default () => ;`},"databend-profile-ui":{type:"NPM" "unit": "NanoSeconds" } } - }`},92707:function(Mn,$,l){l.r($),l.d($,{QueryProfile:function(){return Re},TestProfile:function(){return es}});var fn=l(97857),h=l.n(fn),$n=l(5574),k=l.n($n),D=l(92652),B=l(90512),T=l(67294),zn=l(92077),Gn=l.n(zn),Y=l(79830),J=l(47539),K=l(29879),X=l.n(K);function O(c){var n;return c<=999?c:(n=Gn()(c).format("0.0a"))===null||n===void 0?void 0:n.toUpperCase()}function Cn(c){var n=document.createElement("div");n.style.position="absolute",n.style.whiteSpace="nowrap",n.style.fontSize="12px",n.style.visibility="hidden",n.textContent=c,document.body.appendChild(n);var t=n.offsetWidth;return document.body.removeChild(n),t}var q=function(n){return(0,Y.format)(n,{thousandsSeparator:","})},wn=function(n){return n!==void 0?(0,J.Z)(Number(n)||0):"0ms"},Jn=function(n){return X()(n||0)},vs=function(n){if(n<=60)return n.toFixed(0)+"s";var t=Math.floor(n/60),s=n-t*60;return t+"m"+(s>=1?s.toFixed(0)+"s":"")};function Tn(c,n){return n<=0?"0%":(c/n*100).toFixed(1)+"%"}function Oe(c){try{return JSON.parse(c),!0}catch(n){return!1}}var ae=l(84573),Kn=l(57607),V=l(11889),nn=l(26713),e=l(85893),We=function(n){var t=n.position,s=n.title;return(0,e.jsx)("div",{style:{left:t.x+"px",top:t.y+"px"},className:(0,B.Z)("databend-self-tooltip"),children:s})},Be=We,Ze=l(13769),Rn=l.n(Ze),Fe=l(50888),$e=l(11382),Ge=["className","children"],Je=(0,e.jsx)(Fe.Z,{style:{fontSize:24},spin:!0}),Ke=function(n){var t=n.className,s=n.children,a=Rn()(n,Ge);return(0,e.jsx)($e.Z,h()(h()({style:{zIndex:2e3},className:t},a),{},{indicator:Je,children:s}))},oe=Ke,Xe=function(n){var t=n.onButtonClick,s=n.title,a=n.subTitle,u=n.buttonText,i=n.buttonArea,d=n.loading,v=d===void 0?!1:d,p=n.width,x=p===void 0?"360px":p,C=n.paddingTop,b=C===void 0?"66px":C,R=n.TopIcon,L=a||"There is no related resource, you can try to refresh or create a new resource";return(0,e.jsx)(oe,{spinning:v,children:(0,e.jsx)("div",{className:"profile-no-result-with-action",style:{paddingTop:b},children:(0,e.jsx)("div",{style:{width:x},className:"profile-no-result-with-action-wrap",children:(0,e.jsxs)(nn.Z,{direction:"vertical",className:"profile-no-result-with-action-content",size:12,children:[R&&(0,e.jsx)(V.Z,{className:"pointer-events-none",icon:R}),(0,e.jsx)("div",{className:"profile-no-result-with-action-title",children:s}),a!==null&&(0,e.jsx)("div",{className:"profile-no-result-with-action-sub-title",children:L}),i?(0,e.jsx)(e.Fragment,{children:i}):(0,e.jsx)(e.Fragment,{children:u&&(0,e.jsx)(V.Z,{onClick:function(M){return t&&t(M)},type:"primary",children:u})})]})})})})},Ve=(0,T.memo)(Xe),Qe=function(n){var t=n.data,s=(0,T.useState)(""),a=k()(s,2),u=a[0],i=a[1];return(0,T.useEffect)(function(){if(t!=null&&t.length){var d="linear-gradient(90deg",v=0;t.forEach(function(p){d+=", ".concat(p.color," ").concat(v,"%"),v+=p.percent,d+=", ".concat(p.color," ").concat(v,"%")}),d+=")",i(d)}},[t]),(0,e.jsx)(e.Fragment,{children:u&&(0,e.jsx)("div",{style:{height:"8px",borderRadius:"4px",backgroundImage:u}})})},Ye=(0,T.memo)(Qe),nt=l(44107),et={errorTip:"kCjZdetPcq0VpgDgIYRf"},tt=l(42481),st=l(56986),at=l(20640),le=l.n(at),ot=function(n){var t=n.containerRef,s=n.className,a=n.copyText,u="Copy",i="Copied",d=(0,T.useState)(u),v=k()(d,2),p=v[0],x=v[1],C=function(){if(x(i),a)le()(a);else if(t){var R;le()(t==null||(R=t.current)===null||R===void 0?void 0:R.innerText)}};return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(V.Z,{onMouseLeave:function(){return x(u)},onClick:function(){return C()},className:(0,B.Z)(s),type:"primary",children:p})})},lt=(0,T.memo)(ot),ce=function(n){var t=n.content,s=n.buttonText,a=n.isString,u=n.height,i=n.copyText,d=n.CustomArea,v=n.isBreakLine,p=(0,T.useRef)(null),x=a?t:JSON.stringify(JSON.parse(t),null,2);return(0,e.jsxs)("div",{style:{height:u+"px"},className:"db-code-content-container",children:[s&&(0,e.jsx)(V.Z,{className:"db-code-content-button-text",style:{top:0,left:"20px",borderTopLeftRadius:0,borderTopRightRadius:0},type:"primary",children:s}),(0,e.jsx)("div",{className:"db-code-content-copy",children:(0,e.jsxs)(nn.Z,{children:[d&&d,(0,e.jsx)(lt,{className:"db-code-content--button",copyText:i||t,containerRef:p})]})}),(0,e.jsx)("div",{className:(0,B.Z)("db-code-content-block",v&&"db-code-content-break-line"),style:{fontWeight:500,whiteSpace:"pre-wrap"},ref:p,children:(0,e.jsx)(tt.Z,{style:st.Z,children:x})})]})};ce.defaultProps={buttonText:"Meta data",isString:!0,height:"auto",isBreakLine:!1};var ue=ce,ct=["content","children","buttonText"],re=function(n){var t=n.content,s=n.children,a=n.buttonText,u=Rn()(n,ct);return(0,e.jsx)(Kn.Z,h()(h()({overlayClassName:et.errorTip,overlayInnerStyle:{padding:0},title:(0,e.jsx)(ue,{buttonText:a,content:t||""})},u),{},{children:s}))};re.defaultProps={buttonText:"Failed Text"};var _e=re,ut=function(n){var t=n.icon,s=t===void 0?"databend-icon-xihuan_like":t,a=n.className,u=n.onClick,i=n.style,d=n.size,v=d===void 0?18:d;return(0,e.jsx)("span",{className:"g-box-c",children:(0,e.jsx)("i",{onClick:function(x){return u&&u(x)},className:(0,B.Z)("databend-icon-v2",s,a),style:h()(h()({},i),{},{fontSize:v+"px"})})})},en=ut,rt=l(81763),de=l(18587);function ie(){var c=null;(0,rt.Z)(function(){c&&c()});function n(s){var a,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"body";c=(0,de.ak)((a=document)===null||a===void 0?void 0:a.querySelector(u),function(){s.resize({animation:{duration:300,easing:"cubicInOut"}})})}function t(s){var a,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"body";c=(0,de.ak)((a=document)===null||a===void 0?void 0:a.querySelector(u),function(){s()})}return{reshape:n,reshapeDOM:t}}var _t=function(n){var t=n.text,s=t===void 0?"0":t,a=n.roundColor,u=a===void 0?"#1C82F2":a,i=n.width,d=i===void 0?12:i,v=n.className,p=n.textClass,x=n.gap,C=x===void 0?8:x,b=n.wrapClass,R=b===void 0?"db-simple-legend-default":b,L=n.isInnerHtml,G=L===void 0?!1:L;return(0,e.jsxs)("span",{className:R,style:{gap:C+"px"},children:[(0,e.jsx)("span",{style:{backgroundColor:u,width:d+"px",height:d+"px",borderRadius:"50%",minWidth:"1px"},className:(0,B.Z)("db-simple-inline-block",v)}),s!==void 0&&s!==""&&(0,e.jsx)(e.Fragment,{children:G?(0,e.jsx)("span",{style:{flex:1},className:(0,B.Z)("db-simple-legend-text",p),dangerouslySetInnerHTML:{__html:s}}):(0,e.jsx)("span",{style:{flex:1},className:(0,B.Z)("db-simple-legend-text",p),children:s})})]})},he=_t,dt=l(19632),Un=l.n(dt),it=l(9824),ht=l(35322),me="OutputRows";function pe(c,n,t,s,a){return[["M",c+a,n],["l",t-a*2,0],["a",a,a,0,0,1,a,a],["l",0,s-a*2],["a",a,a,0,0,1,-a,a],["l",-t+a*2,0],["a",a,a,0,0,1,-a,-a],["l",0,-s+a*2],["a",a,a,0,0,1,a,-a],["Z"]]}var mt=[["M",19.0374+2,60],["H",15],["C",10.7909+2,60,11,5.79086+56,11,64],["C",11,10.2091+56,10.7909+2,68,15,68],["H",19.1059+2],["C",17.8458+2,13.9437+56,15.7082+2,15.2309+56,13.2964+2,15.0062+56],["C",2.5+2,70,1,13.5+56,4,7.5+56],["C",-2.5+2,1.00616+56,9.5+2,.5+56,13.2964+2,1.00616+56],["C",15.6724+2,1.00616+56,17.772+2,2.18999+56,19.0374+2,60],["Z"]],pt=[["M",125.5,-18],["L",131.9952,-6.75],["L",119.00481,-6.75],["L",125.5,-18],["Z"],["M",125.5,-1],["L",125.5,-7]];function ft(c){if((c==null?void 0:c.length)<=2)return c;var n=1,t=4.5,s=c.map(function(d){return d._value}).filter(function(d){return d!==void 0}),a=Math.min.apply(Math,Un()(s)),u=Math.max.apply(Math,Un()(s)),i=function(v,p,x,C,b){var R=(v-p)/(x-p);return C+(b-C)*R};return c.forEach(function(d){d._value!==void 0?d.lineWidth=i(d._value,a,u,n,t):d.lineWidth=n}),c}function vt(c){var n=-1;c.sort(function(s,a){return Number(a==null?void 0:a.id)-Number(s==null?void 0:s.id)});var t=c==null?void 0:c.map(function(s){var a=s.title,u=s.name,i=s.id,d=s.statisticsDescArray;n===-1&&(n=(d==null?void 0:d.findIndex(function(p){return p._type===me}))||0);var v=d[n]._value;return h()(h()({},s),{},{id:i,outputRows:v,value:{title:((u==null?void 0:u.length)>=26?(u==null?void 0:u.slice(0,26))+"...":u||" ")+" [".concat(i,"]"),items:[{text:a||" "}]}})});return t}function bt(c){var n=-1;return c==null?void 0:c.map(function(t){var s=t==null?void 0:t.statisticsDescArray;n===-1&&(n=(s==null?void 0:s.findIndex(function(i){return i._type===me}))||0);var a=s[n]._value,u={source:t==null?void 0:t.parent_id,target:t==null?void 0:t.id};return a<=0?u:h()(h()({},u),{},{value:O(a),_value:a})})}var yt=function(n){var t=n.plainData,s=n.graphSize,a=n.graphSizeHeight,u=n.graphRef,i=n.isLight,d=n.overviewInfoCurrent,v=n.onReady,p=n.queryId,x=p===void 0?"analysis":p,C=function(){var U=u==null?void 0:u.current;U&&(U.fitView(),U.refresh())},b=ft(bt(t)),R={nodes:vt(t),edges:b},L={width:s,height:a},G=h()(h()({},L),{},{autoFit:!1,onReady:v,data:R,layout:{rankdir:"TB",ranksepFunc:function(){return 20}},tooltipCfg:{show:!1},toolbarCfg:{show:!0,customContent:function(U){var r=U.zoomIn,W=U.zoomOut;return(0,e.jsxs)("div",{children:[(0,e.jsx)("span",{className:"g-cursor g-box-c",onClick:function(){return C()},children:(0,e.jsx)(en,{size:16,icon:"databend-icon-quanping1"})}),(0,e.jsx)("span",{className:"g-cursor g-box-c",onClick:W,children:(0,e.jsx)(en,{size:16,icon:"databend-icon-minus-bold"})}),(0,e.jsx)("span",{className:"g-cursor g-box-c",onClick:r,children:(0,e.jsx)(en,{size:16,icon:"databend-icon-jia"})}),(0,e.jsx)("span",{className:"g-cursor g-box-c",onClick:function(){var H;return u==null||(H=u.current)===null||H===void 0?void 0:H.downloadFullImage("databend-profile-".concat(x),"image/png")},children:(0,e.jsx)(en,{size:16,icon:"databend-icon-xiazai_download-four"})})]})}},nodeCfg:{padding:10,size:[250,40],title:{autoEllipsis:!0,containerStyle:{fill:"transparent"},style:function(U){var r;return{fontWeight:600,fill:U!=null&&(r=U.errors)!==null&&r!==void 0&&r.length?"#fff":i?"#000":"#fff"}}},anchorPoints:[[.5,0],[.5,1]],style:function(U){var r;return{radius:5,fill:U!=null&&(r=U.errors)!==null&&r!==void 0&&r.length?"#f73920":i?"#fff":"#101",stroke:i?"#ccc":"#fff",filter:i?"drop-shadow(2px 2px 2px rgba(204, 204, 204, .3))":"drop-shadow(2px 3px 2px rgba(255, 255, 255, .2))"}},nodeStateStyles:{highlight:{stroke:"#2c91ff",lineWidth:2},hover:{stroke:"#2c91ff",lineWidth:2}},customContent:function(U,r,W){var Z,H,E,tn,A,sn,dn=W.startX,hn=W.startY,vn=W.width,an=U.text;an=(Z=an)===null||Z===void 0?void 0:Z.replace(/\n/g," ");var Sn=230,kn=(H=an)===null||H===void 0?void 0:H.length,F=r==null||(E=r.cfg)===null||E===void 0||(E=E.item)===null||E===void 0||(E=E._cfg)===null||E===void 0?void 0:E.model,qn=(F==null?void 0:F.totalTime)/(((tn=d.current)===null||tn===void 0?void 0:tn.totalTime)||1),jn=F==null||(A=F.errors)===null||A===void 0?void 0:A.length,In=F==null?void 0:F.parent_id,mn=r.addShape("text",{attrs:{textBaseline:"top",x:dn,y:hn,text:an,fill:jn?"rgba(255,255,255,0.8)":"#75767a",textAlign:"left"},name:"text-".concat(Math.random())}),Nn=mn.getBBox().width;if(kn>26&&Nn>vn){var pn,Hn=((pn=an)===null||pn===void 0?void 0:pn.slice(0,Math.floor(vn/Nn*kn-3)))+"...";mn.attr("text",Hn)}var En=(sn=mn==null?void 0:mn.getBBox().height)!==null&&sn!==void 0?sn:0,bn=8,Dn=4,yn=qn*Sn,Vn=pe(dn,hn+En+10,Sn,bn,Dn);r.addShape("path",{attrs:{path:Vn,fill:"#f2f2f2"},name:"progress-bg-".concat(Math.random())});var Qn=pe(dn,hn+En+10,yn,bn,Dn);if(r.addShape("path",{attrs:{path:Qn,fill:yn<=0?"rgba(0,0,0,0)":"rgb(1, 117, 246)"},name:"progress-fg-".concat(Math.random())}),yn>0&&yn<9&&r.addShape("path",{attrs:{path:mt,fill:jn?"#f73920":i?"#fff":"#101"},name:"circle-path-bg-".concat(Math.random())}),In==="null"){var Q=b==null?void 0:b.find(function(z){return(z==null?void 0:z.source)==="null"});r.addShape("path",{attrs:{path:pt,fill:"#ccc",stroke:"#ccc",lineWidth:(Q==null?void 0:Q.lineWidth)||1},name:"percentage-output-text-".concat(Math.random())});var On=O(F==null?void 0:F.outputRows);r.addShape("text",{attrs:{textBaseline:"top",x:125+Cn(On)/2,y:-30,text:On,fill:i?"rgba(12, 22, 43, 0.6)":"#fff",fontWeight:"bold",fontSize:12,textAlign:"right"},name:"percentage-output-text"})}var Wn=qn>0?"".concat((qn*100).toFixed(1),"%"):"0%";return r.addShape("text",{attrs:{textBaseline:"top",x:dn+vn,y:hn-27,text:Wn,fill:jn?"#fff":i?"#000":"#fff",fontSize:11,textAlign:"right"},name:"percentage-text-".concat(Math.random())}),Math.max(En,bn)}},edgeCfg:{type:"cubic-vertical",endArrow:!1,style:function(U){var r=(U==null?void 0:U.lineWidth)||1;return{lineWidth:r}},label:{style:{fontWeight:600,fill:i?"rgba(12, 22, 43, 0.6)":"#fff"}},startArrow:{type:"triangle"}},graphCfg:{containerStyle:{backgroundColor:"#f0f0f0"}},markerCfg:function(U){var r;return{animate:!0,position:"bottom",show:(r=R.edges.filter(function(W){return W.source===U.id}))===null||r===void 0?void 0:r.length}},behaviors:["drag-canvas","zoom-canvas"]});return(0,e.jsx)(it.Z,h()({},G))},gt=(0,T.memo)(yt,function(c,n){var t=(0,ht.Z)(c.plainData,n.plainData),s=c.graphSize===n.graphSize,a=c.graphSizeHeight===n.graphSizeHeight,u=c.isLight===n.isLight;return t&&s&&a&&u}),xt=l(9783),fe=l.n(xt),ve=l(54907),Ct=l(94274),wt=l(25968),Tt=l(6226),Rt=l(63677),Ut=["children"],St=function(n){var t=n.children,s=Rn()(n,Ut);return(0,e.jsx)(V.Z,h()(h()({},s),{},{className:(0,B.Z)(s.className,"db-reset-white-button"),style:h()({gap:"6px"},s==null?void 0:s.style),children:t}))},kt=St,qt=["padding","borderRadius","children","className","isNeedBorder","isJader","onClick","height"],be=function(n){var t=n.padding,s=n.borderRadius,a=n.children,u=n.className,i=n.isNeedBorder,d=n.isJader,v=n.onClick,p=n.height,x=Rn()(n,qt),C=t===void 0?[20,20,20,20]:t,b=Array.isArray(C);return(0,e.jsx)("div",h()(h()({onClick:v,className:(0,B.Z)("db-card-wrap-out",u,i&&"db-card-wrap-border",d&&"db-card-wrap-jader"),style:h()(h()({},b?{paddingTop:C[0]+"px",paddingRight:C[1]+"px",paddingBottom:C[2]+"px",paddingLeft:C[3]+"px"}:{padding:t+"px"}),{},{height:p==="auto"?"auto":p+"px",borderRadius:"".concat(s,"px")})},x),{},{children:a}))};be.defaultProps={padding:[20,20,20,20],borderRadius:6,isNeedBorder:!0,height:"auto",isJader:!1};var jt=be,Nt=l(78234),ye=l(64665),ge=l(97369),Ht=l(49956),Et=l(47008),At=l(78537),xe=l(27067),Pt=l(31825),Ce=l(35183),Lt=l(11415),we=l(79016),Te=l(6228);Ce.D([Ht.N,Et.N,At.N,xe.N,Pt.N,ye.N,ge.N,Te.N,we.z]),Ce.D([xe.N,ye.N,ge.N,Te.N,we.z]);var Mt=function(n){var t=n.series,s=n.legendData,a=n.xData,u=n.isLight,i=(0,T.useRef)(null),d=ie(),v=d.reshape,p=u?"rgba(1, 14, 41, 0.08)":"rgba(255, 255, 255, 0.08)",x=u?"rgba(12, 22, 43, 0.6)":"rgba(249, 249, 249, 0.6)";return(0,Nt.Z)(function(){var C=Lt.S1(i.current),b={tooltip:{trigger:"axis"},legend:{type:"scroll",data:s},grid:{left:"13%",right:"9%",bottom:"3%",containLabel:!0},xAxis:{type:"category",boundaryGap:!1,data:a,axisLine:{lineStyle:{color:p}},axisLabel:{showMinLabel:!0,showMaxLabel:!0,color:x,margin:8},axisTick:{show:!1}},yAxis:{offset:30,type:"value"},series:t};C.setOption(b),v(C,"body")}),(0,e.jsx)("div",{style:{height:"280px",width:"100%"},ref:i})},zt=(0,T.memo)(Mt),It=["isLight","metricsData"],Dt=ve.Z.Panel;function Xn(c){var n,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return c?(n=Object.values(c))===null||n===void 0?void 0:n.sort(function(s,a){return s==null?void 0:s.localeCompare(a)}).join(" "):t||"No labels"}function Ot(c){return c.map(function(n){var t=Object.keys(n.value)[0],s=t==="Histogram",a=t==="Summary",u=s||a;if(!n.labels&&!u)return{name:n.name,columns:[{title:t,key:t,dataIndex:t}],data:[fe()({},t,n.value[t])],labels:n.labels?n.labels:null,value:n.value};if(u){var i=s?n.value.Histogram:n.value.Summary,d=[],v=[];return d=i.map(function(b){return s?b.less_than:b.quantile}),v=i.map(function(b){return b.count}),{isChart:!0,name:n.name,_tag:Xn(n.labels,n.name),columns:d,data:[v],labels:n.labels,value:n.value,type:t}}var p=Object.keys(n.labels),x=p.map(function(b){return{title:b,key:b,dataIndex:b}}).concat({title:t,key:t,dataIndex:t}),C=[h()(h()({},n.labels),{},fe()({},t,n.value[t]))];return{name:n.name,columns:x,data:C,labels:n.labels,value:n.value}})}function Wt(c){var n={};return c.forEach(function(t){if(!n[t.name])n[t.name]=h()(h()({},t),{},{labelsArr:[h()(h()({},t.labels),{},{_tag:Xn(t.labels,t.name)})]}),delete n[t.name].labels;else if(t!=null&&t.type)n[t.name].data=[].concat(Un()(n[t.name].data),Un()(t.data)),n[t.name].labelsArr.push(h()(h()({},t.labels),{},{_tag:Xn(t.labels,t.name)}));else{var s;(s=n[t.name].data).push.apply(s,Un()(t.data))}}),Object.values(n)}function Bt(c){return c==null?void 0:c.map(function(n){return{machine:n[0],data:Wt(Ot(n[1]).sort(function(t,s){if((t==null?void 0:t.name)===(s==null?void 0:s.name)){var a;return s==null||(a=s._tag)===null||a===void 0?void 0:a.localeCompare(t==null?void 0:t._tag)}return 0}).sort(function(t,s){return!(t!=null&&t.type)&&!(s!=null&&s.type)?0:t!=null&&t.type?s!=null&&s.type?t.type.localeCompare(s==null?void 0:s.type):1:-1}))}})}var Zt=function(n){var t=n.isLight,s=n.metricsData,a=Rn()(n,It),u=(0,T.useState)(!1),i=k()(u,2),d=i[0],v=i[1],p=(0,T.useState)([]),x=k()(p,2),C=x[0],b=x[1];return(0,T.useEffect)(function(){if(s){var R=Object.entries(s),L=Bt(R);b(L)}},[s]),(0,e.jsx)(Ct.Z,h()(h()({destroyOnClose:!0,width:"100vw"},a),{},{title:(0,e.jsxs)(nn.Z,{children:[(0,e.jsx)("span",{children:a==null?void 0:a.title}),(0,e.jsx)(kt,{onClick:function(){return v(!d)},children:(0,e.jsxs)(nn.Z,{size:4,children:[(0,e.jsx)(en,{size:14,icon:"databend-icon-qiehuan_switch"}),d?"Chart View":"Metrics JSON"]})})]}),children:(0,e.jsx)(e.Fragment,{children:d?(0,e.jsx)(ue,{buttonText:"Metrics",isString:!1,content:JSON.stringify(s)}):(0,e.jsx)(ve.Z,{className:"profile-metrics-collapseWrap",expandIconPosition:"start",defaultActiveKey:Array.from({length:(C==null?void 0:C.length)+1},function(R,L){return L}),children:C==null?void 0:C.map(function(R,L){var G,M=R==null||(G=R.data)===null||G===void 0?void 0:G.length,U=M%2!==0;return(0,e.jsx)(Dt,{header:(0,e.jsxs)("div",{className:"profile-metrics-header",children:["Machine ",L+1,":",R==null?void 0:R.machine]}),children:(0,e.jsx)(wt.Z,{gutter:[16,16],className:"profile-metrics-row",children:R==null?void 0:R.data.map(function(r,W){var Z,H;return(0,T.createElement)(Tt.Z,{xl:12,xxl:12,lg:24,md:24,sm:24,xs:24,className:"profile-metrics-col",span:U&&M-1===W?24:12,key:W},(0,e.jsx)("div",{className:"profile-metrics-name",children:r==null?void 0:r.name}),r!=null&&r.data?(0,e.jsx)(e.Fragment,{children:r!=null&&r.type?(0,e.jsx)(zt,{isLight:t,series:r==null||(Z=r.data)===null||Z===void 0?void 0:Z.map(function(E,tn){var A;return{type:"bar",data:E,name:r==null||(A=r.labelsArr[tn])===null||A===void 0?void 0:A._tag}}),legendData:r==null||(H=r.labelsArr)===null||H===void 0?void 0:H.map(function(E){return E==null?void 0:E._tag}),xData:r==null?void 0:r.columns}):(0,e.jsx)(Rt.Z,{className:"profile-metrics-table",pagination:!1,dataSource:r==null?void 0:r.data,columns:r==null?void 0:r.columns},"key")}):(0,e.jsx)(jt,{children:JSON.stringify(r==null?void 0:r.value)}))})})},L)})})})}))},Ft=Zt,$t="CpuTime",Gt="WaitTime";function Jt(c){return c==null?void 0:c.map(function(n){var t,s,a,u=Object.keys(n)[0];return{_errorType:u,message:((t=n[u])===null||t===void 0?void 0:t.message)||"",detail:((s=n[u])===null||s===void 0?void 0:s.detail)||"",backtrace:((a=n[u])===null||a===void 0||(a=a.backtrace)===null||a===void 0||(a=a.build_id)===null||a===void 0?void 0:a.join(","))||""}})}function Kt(c,n){return c==="Bytes"?q(n):c==="Rows"||c==="Count"?Jn(n):c==="MillisSeconds"?wn(n):c==="NanoSeconds"?wn(n/1e6):n}var Xt=function(n){var t,s,a,u,i=n.profileRef,d=n.queryDuration,v=n.queryId,p=v===void 0?"analysis":v,x=n.outValue,C=n.countShow,b=n.offsetWidth,R=b===void 0?400:b,L=n.offsetHeight,G=L===void 0?150:L,M=n.showTextArea,U=M===void 0?!0:M,r=n.initLoading,W=r===void 0?!1:r,Z=n.isNeedMetrics,H=Z===void 0?!1:Z,E=n.isDemo,tn=E===void 0?!1:E,A=n.isLight,sn=A===void 0?!0:A,dn=n.getActiveName,hn=dn===void 0?null:dn,vn=n.getOverviewInfo,an=vn===void 0?null:vn,Sn=n.ErrorTicketDom,kn=Sn===void 0?(0,e.jsx)(e.Fragment,{}):Sn,F=n.responseDom,qn=F===void 0?"body":F,jn=(0,D.Z)(0),In=k()(jn,2),mn=In[0],Nn=In[1],pn=(0,T.useRef)(null),Hn=(0,T.useRef)(null),En=(0,D.Z)(window.innerHeight-150),bn=k()(En,2),Dn=bn[0],yn=bn[1],Vn=ie(),Qn=Vn.reshapeDOM,Q=(0,T.useRef)(void 0),On=(0,D.Z)([]),Wn=k()(On,2),z=Wn[0],ts=Wn[1],un=(0,T.useRef)(void 0),ss=(0,D.Z)(!0),Ue=k()(ss,2),Se=Ue[0],Yn=Ue[1],as=(0,D.Z)(""),ke=k()(as,2),Bn=ke[0],qe=ke[1],os=(0,D.Z)([]),je=k()(os,2),on=je[0],ls=je[1],cs=(0,D.Z)([]),Ne=k()(cs,2),gn=Ne[0],us=Ne[1],rs=(0,D.Z)(!1),He=k()(rs,2),_s=He[0],Ee=He[1],ds=(0,D.Z)({clientX:0,clientY:0,show:!1,text:""}),Ae=k()(ds,2),rn=Ae[0],ne=Ae[1],is=(0,D.Z)({cpuTime:0,waitTime:0,isTotalBigerZero:!1,totalTime:0,totalTimePercent:"0%",labels:void 0,statisticsDescArray:[],metrics:null}),Pe=k()(is,2),_=Pe[0],ee=Pe[1];function hs(o){var y,w,g,f=o==null?void 0:o.profiles,j=o==null?void 0:o.statistics_desc,S=(y=j[$t])===null||y===void 0?void 0:y.index,N=(w=j[Gt])===null||w===void 0?void 0:w.index,I=0,ln=0,An=[];f==null||f.forEach(function(m){m.id=String(m.id),m.parent_id=String(m.parent_id);var cn=m==null?void 0:m.errors,te=m==null?void 0:m.statistics[S],se=m==null?void 0:m.statistics[N];m.totalTime=te+se,m.cpuTime=te,m.waitTime=se,I+=te,ln+=se,m.errors=(cn==null?void 0:cn.length)>0?Jt(m==null?void 0:m.errors):[],m.statisticsDescArray=Object.entries(j).map(function(ps){var De=k()(ps,2),fs=De[0],P=De[1];return{_type:fs,desc:P==null?void 0:P.desc,display_name:(P==null?void 0:P.display_name)||(P==null?void 0:P.displayName),index:P==null?void 0:P.index,unit:P.unit,plain_statistics:P==null?void 0:P.plain_statistics,_value:m.statistics[P==null?void 0:P.index]}})});var _n=I+ln;f==null||f.forEach(function(m){m.totalTimePercent=Tn(m==null?void 0:m.totalTime,_n),m.cpuTimePercent=Tn(m==null?void 0:m.cpuTime,m.totalTime),m.waitTimePercent=Tn(m==null?void 0:m.waitTime,m.totalTime)}),ts(f),ls((g=(0,nt.Z)(f))===null||g===void 0||(g=g.filter(function(m){return parseFloat(m.totalTimePercent)>.09}))===null||g===void 0?void 0:g.sort(function(m,cn){return cn.totalTime-m.totalTime}));var Pn=Tn(I,_n),xn=Tn(ln,_n),Ln={cpuTime:I,waitTime:ln,totalTime:_n,totalTimePercent:"100%",cpuTimePercent:Pn,waitTimePercent:xn,statisticsDescArray:An,isNode:!1,errors:[]};un.current=Ln,ee(Ln),an(Ln)}function ms(){var o=Q==null?void 0:Q.current;o&&(o==null||o.fitView())}var Zn=function(){i&&Nn(tn?700:(i==null?void 0:i.offsetWidth)-R),yn(window.innerHeight-G)};(0,T.useEffect)(function(){hn&&hn(Bn)},[Bn]),(0,T.useEffect)(function(){if(x)try{hs(x)}catch(o){ae.ZP.destroy(),ae.ZP.warning("Incorrect data")}},[C,x]),(0,T.useEffect)(function(){W&&Q.current&&ms()},[W]),(0,T.useEffect)(function(){z!=null&&z.length&&Zn()},[z,U]),(0,T.useEffect)(function(){var o,y=_==null||(o=_.statisticsDescArray)===null||o===void 0?void 0:o.filter(function(w){return w._value>0});us(y)},[_==null?void 0:_.statisticsDescArray]),(0,T.useEffect)(function(){Zn(),Qn(function(){Zn()},qn)},[]);function Le(o){var y=o.totalTime,w=o.totalTimePercent,g=o.cpuTime,f=o.waitTime,j=o.cpuTimePercent,S=o.waitTimePercent,N=o.id,I=o.isNode,ln=o.labels,An=o.statisticsDescArray,_n=o.name,Pn=o.errors;qe(N);var xn={cpuTime:g,waitTime:f,totalTime:y,totalTimePercent:w,cpuTimePercent:j,waitTimePercent:S,labels:ln,statisticsDescArray:An,isNode:I,name:_n,id:N,metrics:o==null?void 0:o.metrics,errors:Pn};ee(xn),an(xn)}function Me(o){return o.getNodes()}function ze(o,y){o.setItemState(y,"highlight",!0)}function Ie(o){Me(o).forEach(function(y){o.clearItemStates(y)})}function Fn(){ne({clientX:0,clientY:0,show:!1,text:""})}return(0,e.jsxs)(e.Fragment,{children:[(rn==null?void 0:rn.show)&&(0,e.jsx)(Be,{position:{x:rn==null?void 0:rn.clientX,y:rn.clientY},title:rn.text}),(0,e.jsxs)("div",{ref:Hn,className:"profile-index-container",children:[(z==null?void 0:z.length)>0&&(0,e.jsxs)("div",{className:"profile-index-details-info",children:[(on==null?void 0:on.length)>0&&(0,e.jsxs)("div",{className:"profile-index-top-ranking",children:[(0,e.jsxs)("div",{className:"profile-indx-most-expensive-nodes",children:[" ","Most Expensive Nodes",(0,e.jsxs)("span",{className:"profile-index-ranking-length",children:[" ","(",on==null?void 0:on.length," of ",z==null?void 0:z.length,")"]})]}),(0,e.jsx)("div",{style:{marginTop:"8px"},children:on==null?void 0:on.map(function(o,y){return(0,e.jsxs)("div",{onClick:function(){var g,f,j=o==null?void 0:o.id;if(Bn!==j){Le(h()(h()({},o),{},{isNode:!0})),Yn(!1);var S=Q.current,N=S==null?void 0:S.cfg.nodes,I=N==null?void 0:N.find(function(cn){return(cn==null?void 0:cn._cfg.id)===j}),ln=S==null?void 0:S.getZoom(),An=I==null||(g=I._cfg)===null||g===void 0||(g=g.bboxCache)===null||g===void 0?void 0:g.x,_n=I==null||(f=I._cfg)===null||f===void 0||(f=f.bboxCache)===null||f===void 0?void 0:f.y,Pn=S==null?void 0:S.getWidth(),xn=S==null?void 0:S.getHeight(),Ln=Pn/2-An*ln,m=xn/2-_n*ln+20;Ie(S),ze(S,I),(N==null?void 0:N.length)>1&&S.moveTo(Ln,m)}},className:(0,B.Z)("profile-index-top-item-style",Bn===o.id&&"profile-index-top-active-item-style"),children:[(0,e.jsxs)("span",{children:[o.name," [",o.id,"]"]}),(0,e.jsx)("span",{className:"profile-index-top-item-time",children:o.totalTimePercent})]},y)})})]}),(0,e.jsxs)("div",{className:(0,B.Z)("profile-index-top-ranking","profile-common-styles-pm"),children:[(0,e.jsxs)("div",{className:"profile-common-styles-few g-box-center-between",children:[(0,e.jsxs)("div",{children:["Profile Overview",(0,e.jsxs)("span",{className:"profile-index-color-text-2",children:[" ",Se&&"(Finished)"]})]}),!Se&&H&&(0,e.jsx)(Kn.Z,{title:_!=null&&_.metrics?void 0:"No Metrics",children:(0,e.jsx)(V.Z,{disabled:!(_!=null&&_.metrics),onClick:function(){return Ee(!0)},type:"primary",size:"small",children:(0,e.jsxs)(nn.Z,{size:4,children:[_!=null&&_.metrics?(0,e.jsx)(en,{icon:"databend-icon-yulan-dakai_preview-open"}):(0,e.jsx)(en,{icon:"databend-icon-yulan-guanbi_preview-close-one"}),"Metrics"]})})})]}),(0,e.jsxs)("div",{className:"g-mt-8",children:[_.isNode?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:"g-t-right",children:_==null?void 0:_.totalTimePercent}),(0,e.jsx)(Ye,{data:[{color:"rgb(28, 130, 242)",percent:parseFloat(_.cpuTimePercent)},{color:"rgb(255, 152, 0)",percent:parseFloat(_.waitTimePercent)}]})]}):(0,e.jsxs)("div",{className:"profile-common-styles-bcpc",children:[(0,e.jsx)("span",{children:"Total Execution Time"}),(0,e.jsxs)("span",{className:"profile-index-color-text-1",children:[(0,e.jsxs)("span",{className:"profile-index-color-text-2",children:["(",wn(x?(_==null?void 0:_.totalTime)/1e6:d),")"]})," ",_==null?void 0:_.totalTimePercent]})]}),(0,e.jsxs)("div",{className:"profile-common-styles-bcpc",children:[(0,e.jsx)(he,{width:5,text:"CPU Time",textClass:"profile-index-color-text-2"}),(0,e.jsx)("span",{className:"profile-index-color-text-1",children:_==null?void 0:_.cpuTimePercent})]}),(0,e.jsxs)("div",{className:"profile-common-styles-bcpc",children:[(0,e.jsx)(he,{width:5,roundColor:"rgb(255, 152, 0)",text:"I/O Time",textClass:"profile-index-color-text-2"}),(0,e.jsx)("span",{className:"profile-index-color-text-1",children:_==null?void 0:_.waitTimePercent})]})]})]}),(_==null||(t=_.errors)===null||t===void 0?void 0:t.length)>0&&(0,e.jsxs)("div",{className:(0,B.Z)("profile-index-top-ranking","profile-index-top-ranking-errors","profile-common-styles-pm"),children:[(0,e.jsxs)("div",{className:"profile-common-styles-few g-color-text-danger",children:["Errors",kn&&kn]}),_==null||(s=_.errors)===null||s===void 0?void 0:s.map(function(o,y){return(0,e.jsxs)("div",{className:"g-mt-10",children:[(0,e.jsx)("div",{className:"profile-index-color-text-1",children:o==null?void 0:o._errorType}),(0,e.jsxs)("div",{className:"profile-common-styles-gbp profile-index-color-text-2",children:[(0,e.jsxs)("div",{className:"g-class-ellipsis",children:["message:",(0,e.jsx)(_e,{placement:"rightTop",destroyTooltipOnHide:!0,content:o==null?void 0:o.message,buttonText:"message",children:o==null?void 0:o.message})]}),(0,e.jsxs)("div",{className:"g-class-ellipsis",children:["detail:",(0,e.jsx)(Kn.Z,{destroyTooltipOnHide:!0,title:o==null?void 0:o.detail,children:o==null?void 0:o.detail})]}),(0,e.jsxs)("div",{className:"g-class-ellipsis",children:["backtrace:",(0,e.jsx)(_e,{placement:"rightTop",destroyTooltipOnHide:!0,content:o==null?void 0:o.backtrace,buttonText:"backtrace",children:o==null?void 0:o.backtrace})]})]})]},y)})]}),(gn==null?void 0:gn.length)>0&&(0,e.jsxs)("div",{className:(0,B.Z)("profile-index-top-ranking","profile-common-styles-pm"),children:[(0,e.jsx)("div",{className:"profile-common-styles-few",children:"Statistics"}),(0,e.jsx)("div",{className:"g-mt-8",children:gn==null?void 0:gn.map(function(o,y){return(0,e.jsxs)("div",{className:"profile-common-styles-bcpc",children:[(0,e.jsx)("span",{children:o==null?void 0:o.display_name}),(0,e.jsx)("span",{className:"profile-index-color-text-1",children:Kt(o.unit,o==null?void 0:o._value)})]},y)})})]}),(_==null||(a=_.labels)===null||a===void 0?void 0:a.length)>0&&(0,e.jsxs)("div",{className:(0,B.Z)("profile-index-top-ranking","profile-common-styles-pm"),children:[(0,e.jsx)("div",{className:"profile-common-styles-few",children:"Attributes"}),_==null||(u=_.labels)===null||u===void 0?void 0:u.map(function(o,y){var w;return(0,e.jsxs)("div",{className:"g-mt-10",children:[(0,e.jsx)("div",{className:"profile-index-color-text-1",children:o==null?void 0:o.name}),(0,e.jsx)("div",{children:(0,e.jsx)("div",{className:"profile-common-styles-gbp profile-index-color-text-2",children:o==null||(w=o.value)===null||w===void 0?void 0:w.map(function(g){return(0,e.jsx)("div",{style:{wordWrap:"break-word"},children:g},g)})})})]},y)})]})]}),W?(0,e.jsx)("div",{className:"g-box-c",style:{height:"700px"},children:(0,e.jsx)(oe,{})}):(0,e.jsx)(e.Fragment,{children:(z==null?void 0:z.length)>0?(0,e.jsx)(gt,{queryId:p,plainData:z,graphSize:mn,graphSizeHeight:Dn,graphRef:Q,isLight:sn,handleResize:Zn,overviewInfoCurrent:un,onReady:function(y){Q.current=y,y.setMaxZoom(2),y.on("node:click",function(w){Yn(!1);var g=w.item._cfg.model;Le(h()(h()({},g),{},{isNode:!0}));var f=Me(y),j=w.item._cfg.id,S=f==null?void 0:f.find(function(N){return(N==null?void 0:N._cfg.id)===j});f==null||f.filter(function(N){return N._cfg.id!==j}).forEach(function(N){y.clearItemStates(N)}),ze(y,S)}),y.on("node:mouseleave",function(){pn.current||(pn.current=document.getElementsByTagName("canvas")[0]),pn.current.style.cursor="move",Fn()}),y.on("node:mouseover",function(w){var g,f=w==null||(g=w.target)===null||g===void 0||(g=g.cfg)===null||g===void 0?void 0:g.name;if(f!=null&&f.includes("percentage-output-text")){var j,S=w.clientX,N=w.clientY,I=w==null||(j=w.item)===null||j===void 0||(j=j._cfg)===null||j===void 0||(j=j.model)===null||j===void 0?void 0:j.outputRows;ne({clientX:S-70,clientY:N-52,show:!0,text:"Output Rows: ".concat(Jn(I))})}else Fn()}),y.on("canvas:click",function(){qe(""),Yn(!0),ee(un==null?void 0:un.current),an(un==null?void 0:un.current),Ie(y)}),y.on("canvas:dragstart",function(){Hn.current.style.userSelect="none"}),y.on("canvas:dragend",function(){Hn.current.style.userSelect="unset"}),y.on("edge:mouseover",function(w){var g,f,j=w==null||(g=w.target)===null||g===void 0||(g=g.cfg)===null||g===void 0?void 0:g.type,S=w==null||(f=w.item)===null||f===void 0||(f=f._cfg)===null||f===void 0||(f=f.model)===null||f===void 0?void 0:f._value,N=w.clientX,I=w.clientY;j==="text"?ne({clientX:N-40,clientY:I-50,show:!0,text:"Rows: ".concat(Jn(S))}):Fn()}),y.on("edge:mouseleave",function(){Fn()})}}):(0,e.jsx)("div",{style:{minHeight:"700px"},children:(0,e.jsx)(Ve,{title:"No Profile",paddingTop:"150px",subTitle:(0,e.jsxs)("div",{children:["Some queries, such as those with"," ",(0,e.jsx)("span",{style:{fontWeight:700},children:"USE"})," and"," ",(0,e.jsx)("span",{style:{fontWeight:700},children:"DESCRIBE"})," ","statements, have no query profile."]}),TopIcon:(0,e.jsx)(en,{icon:"databend-icon-zuzhijiagou"})})})})]}),(0,e.jsx)(Ft,{isLight:sn,metricsData:_==null?void 0:_.metrics,title:"Metrics Details: ".concat(_==null?void 0:_.name,"[").concat(_==null?void 0:_.id,"] ").concat(_==null?void 0:_.totalTimePercent),onClose:function(){return Ee(!1)},visible:_s})]})},Re=(0,T.memo)(Xt),Vt=l(92688),Qt=l(55753),Yt=Vt.Z.TextArea,ns=function(n){var t,s=n.isDemo,a=s===void 0?!1:s,u=n.isNeedMetrics,i=u===void 0?!1:u,d=(0,T.useState)(""),v=k()(d,2),p=v[0],x=v[1],C=(0,T.useState)(""),b=k()(C,2),R=b[0],L=b[1],G=(0,T.useState)(0),M=k()(G,2),U=M[0],r=M[1],W=(0,T.useState)(!1),Z=k()(W,2),H=Z[0],E=Z[1];function tn(){r(U+1);try{var A;L((A=JSON.parse(p))===null||A===void 0?void 0:A.query_id)}catch(sn){}}return(0,e.jsxs)("div",{className:"g-pa-24 g-align-s site-layout-right",style:{gap:"12px"},children:[(0,e.jsxs)(nn.Z,{size:12,className:"g-pl-10 g-pr",direction:"vertical",children:[!H&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Yt,{placeholder:"\u8BF7\u628A\u4F60\u751F\u6210\u7684 profile \u65E5\u5FD7json\u7C98\u8FDB\u6765",className:"g-border-radius-middle g-border g-color-bg-1",value:p,onChange:function(sn){x(sn.target.value)},style:{width:"320px",height:"calc(100vh - 100px)"}}),(0,e.jsxs)(nn.Z,{className:"g-box-center-between",children:[(0,e.jsxs)(nn.Z,{children:[(0,e.jsx)(V.Z,{type:"link",href:"/",children:"Back"}),(0,e.jsx)(V.Z,{type:"dashed",onClick:function(){x(Qt.DEMO),tn()},children:"Demo"})]}),(0,e.jsxs)(nn.Z,{children:[(0,e.jsx)(V.Z,{disabled:!p,type:"primary",onClick:function(){return r(U+1)},children:"Show"}),(0,e.jsx)(V.Z,{onClick:function(){x("")},children:"Clear"})]})]})]}),(0,e.jsx)(V.Z,{style:{position:"fixed",bottom:"80px",left:"10px",zIndex:10},type:"primary",onClick:function(){E(!H)},icon:(0,e.jsx)(en,{icon:H?"databend-icon-zhankai_expand-left":"databend-icon-zhankai_expand-right"})})]}),(0,e.jsx)("div",{className:"g-pa-6 g-color-bg-1 g-box-flex g-border-radius-middle",children:(0,e.jsx)(Re,{offsetWidth:a?H?900:1200:H?100:695,isNeedMetrics:i,offsetHeight:60,countShow:U,outValue:p&&Oe(p)?JSON.parse(p):"",showTextArea:H,queryId:R,queryDuration:0,profileRef:(t=document)===null||t===void 0?void 0:t.body})})]})},es=ns},14633:function(Mn,$,l){l.r($),l.d($,{texts:function(){return h}});var fn=l(97753);const h=[{value:`outValue?: JSON; + }`},92707:function(Mn,G,l){l.r(G),l.d(G,{QueryProfile:function(){return Re},TestProfile:function(){return es}});var fn=l(97857),h=l.n(fn),$n=l(5574),k=l.n($n),D=l(92652),B=l(90512),T=l(67294),zn=l(92077),Gn=l.n(zn),en=l(79830),K=l(47539),X=l(29879),V=l.n(X);function O(c){var n;return c<=999?c:(n=Gn()(c).format("0.0a"))===null||n===void 0?void 0:n.toUpperCase()}function Cn(c){var n=document.createElement("div");n.style.position="absolute",n.style.whiteSpace="nowrap",n.style.fontSize="12px",n.style.visibility="hidden",n.textContent=c,document.body.appendChild(n);var t=n.offsetWidth;return document.body.removeChild(n),t}var q=function(n){return(0,en.format)(n,{thousandsSeparator:","})},wn=function(n){return n!==void 0?(0,K.Z)(Number(n)||0):"0ms"},Jn=function(n){return V()(n||0)},vs=function(n){if(n<=60)return n.toFixed(0)+"s";var t=Math.floor(n/60),s=n-t*60;return t+"m"+(s>=1?s.toFixed(0)+"s":"")};function Tn(c,n){return n<=0?"0%":(c/n*100).toFixed(1)+"%"}function Oe(c){try{return JSON.parse(c),!0}catch(n){return!1}}var ae=l(84573),Kn=l(57607),Q=l(11889),nn=l(26713),e=l(85893),We=function(n){var t=n.position,s=n.title;return(0,e.jsx)("div",{style:{left:t.x+"px",top:t.y+"px"},className:(0,B.Z)("databend-self-tooltip"),children:s})},Be=We,Ze=l(13769),Rn=l.n(Ze),Fe=l(50888),$e=l(11382),Ge=["className","children"],Je=(0,e.jsx)(Fe.Z,{style:{fontSize:24},spin:!0}),Ke=function(n){var t=n.className,s=n.children,a=Rn()(n,Ge);return(0,e.jsx)($e.Z,h()(h()({style:{zIndex:2e3},className:t},a),{},{indicator:Je,children:s}))},oe=Ke,Xe=function(n){var t=n.onButtonClick,s=n.title,a=n.subTitle,u=n.buttonText,i=n.buttonArea,d=n.loading,v=d===void 0?!1:d,p=n.width,x=p===void 0?"360px":p,C=n.paddingTop,b=C===void 0?"66px":C,R=n.TopIcon,L=a||"There is no related resource, you can try to refresh or create a new resource";return(0,e.jsx)(oe,{spinning:v,children:(0,e.jsx)("div",{className:"profile-no-result-with-action",style:{paddingTop:b},children:(0,e.jsx)("div",{style:{width:x},className:"profile-no-result-with-action-wrap",children:(0,e.jsxs)(nn.Z,{direction:"vertical",className:"profile-no-result-with-action-content",size:12,children:[R&&(0,e.jsx)(Q.Z,{className:"pointer-events-none",icon:R}),(0,e.jsx)("div",{className:"profile-no-result-with-action-title",children:s}),a!==null&&(0,e.jsx)("div",{className:"profile-no-result-with-action-sub-title",children:L}),i?(0,e.jsx)(e.Fragment,{children:i}):(0,e.jsx)(e.Fragment,{children:u&&(0,e.jsx)(Q.Z,{onClick:function(M){return t&&t(M)},type:"primary",children:u})})]})})})})},Ve=(0,T.memo)(Xe),Qe=function(n){var t=n.data,s=(0,T.useState)(""),a=k()(s,2),u=a[0],i=a[1];return(0,T.useEffect)(function(){if(t!=null&&t.length){var d="linear-gradient(90deg",v=0;t.forEach(function(p){d+=", ".concat(p.color," ").concat(v,"%"),v+=p.percent,d+=", ".concat(p.color," ").concat(v,"%")}),d+=")",i(d)}},[t]),(0,e.jsx)(e.Fragment,{children:u&&(0,e.jsx)("div",{style:{height:"8px",borderRadius:"4px",backgroundImage:u}})})},Ye=(0,T.memo)(Qe),nt=l(44107),et={errorTip:"kCjZdetPcq0VpgDgIYRf"},tt=l(42481),st=l(56986),at=l(20640),le=l.n(at),ot=function(n){var t=n.containerRef,s=n.className,a=n.copyText,u="Copy",i="Copied",d=(0,T.useState)(u),v=k()(d,2),p=v[0],x=v[1],C=function(){if(x(i),a)le()(a);else if(t){var R;le()(t==null||(R=t.current)===null||R===void 0?void 0:R.innerText)}};return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(Q.Z,{onMouseLeave:function(){return x(u)},onClick:function(){return C()},className:(0,B.Z)(s),type:"primary",children:p})})},lt=(0,T.memo)(ot),ce=function(n){var t=n.content,s=n.buttonText,a=n.isString,u=n.height,i=n.copyText,d=n.CustomArea,v=n.isBreakLine,p=(0,T.useRef)(null),x=a?t:JSON.stringify(JSON.parse(t),null,2);return(0,e.jsxs)("div",{style:{height:u+"px"},className:"db-code-content-container",children:[s&&(0,e.jsx)(Q.Z,{className:"db-code-content-button-text",style:{top:0,left:"20px",borderTopLeftRadius:0,borderTopRightRadius:0},type:"primary",children:s}),(0,e.jsx)("div",{className:"db-code-content-copy",children:(0,e.jsxs)(nn.Z,{children:[d&&d,(0,e.jsx)(lt,{className:"db-code-content--button",copyText:i||t,containerRef:p})]})}),(0,e.jsx)("div",{className:(0,B.Z)("db-code-content-block",v&&"db-code-content-break-line"),style:{fontWeight:500,whiteSpace:"pre-wrap"},ref:p,children:(0,e.jsx)(tt.Z,{style:st.Z,children:x})})]})};ce.defaultProps={buttonText:"Meta data",isString:!0,height:"auto",isBreakLine:!1};var ue=ce,ct=["content","children","buttonText"],re=function(n){var t=n.content,s=n.children,a=n.buttonText,u=Rn()(n,ct);return(0,e.jsx)(Kn.Z,h()(h()({overlayClassName:et.errorTip,overlayInnerStyle:{padding:0},title:(0,e.jsx)(ue,{buttonText:a,content:t||""})},u),{},{children:s}))};re.defaultProps={buttonText:"Failed Text"};var _e=re,ut=function(n){var t=n.icon,s=t===void 0?"databend-icon-xihuan_like":t,a=n.className,u=n.onClick,i=n.style,d=n.size,v=d===void 0?18:d;return(0,e.jsx)("span",{className:"g-box-c",children:(0,e.jsx)("i",{onClick:function(x){return u&&u(x)},className:(0,B.Z)("databend-icon-v2",s,a),style:h()(h()({},i),{},{fontSize:v+"px"})})})},tn=ut,rt=l(81763),de=l(18587);function ie(){var c=null;(0,rt.Z)(function(){c&&c()});function n(s){var a,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"body";c=(0,de.ak)((a=document)===null||a===void 0?void 0:a.querySelector(u),function(){s.resize({animation:{duration:300,easing:"cubicInOut"}})})}function t(s){var a,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"body";c=(0,de.ak)((a=document)===null||a===void 0?void 0:a.querySelector(u),function(){s()})}return{reshape:n,reshapeDOM:t}}var _t=function(n){var t=n.text,s=t===void 0?"0":t,a=n.roundColor,u=a===void 0?"#1C82F2":a,i=n.width,d=i===void 0?12:i,v=n.className,p=n.textClass,x=n.gap,C=x===void 0?8:x,b=n.wrapClass,R=b===void 0?"db-simple-legend-default":b,L=n.isInnerHtml,J=L===void 0?!1:L;return(0,e.jsxs)("span",{className:R,style:{gap:C+"px"},children:[(0,e.jsx)("span",{style:{backgroundColor:u,width:d+"px",height:d+"px",borderRadius:"50%",minWidth:"1px"},className:(0,B.Z)("db-simple-inline-block",v)}),s!==void 0&&s!==""&&(0,e.jsx)(e.Fragment,{children:J?(0,e.jsx)("span",{style:{flex:1},className:(0,B.Z)("db-simple-legend-text",p),dangerouslySetInnerHTML:{__html:s}}):(0,e.jsx)("span",{style:{flex:1},className:(0,B.Z)("db-simple-legend-text",p),children:s})})]})},he=_t,dt=l(19632),Un=l.n(dt),it=l(9824),ht=l(35322),me="OutputRows";function pe(c,n,t,s,a){return[["M",c+a,n],["l",t-a*2,0],["a",a,a,0,0,1,a,a],["l",0,s-a*2],["a",a,a,0,0,1,-a,a],["l",-t+a*2,0],["a",a,a,0,0,1,-a,-a],["l",0,-s+a*2],["a",a,a,0,0,1,a,-a],["Z"]]}var mt=[["M",19.0374+2,60],["H",15],["C",10.7909+2,60,11,5.79086+56,11,64],["C",11,10.2091+56,10.7909+2,68,15,68],["H",19.1059+2],["C",17.8458+2,13.9437+56,15.7082+2,15.2309+56,13.2964+2,15.0062+56],["C",2.5+2,70,1,13.5+56,4,7.5+56],["C",-2.5+2,1.00616+56,9.5+2,.5+56,13.2964+2,1.00616+56],["C",15.6724+2,1.00616+56,17.772+2,2.18999+56,19.0374+2,60],["Z"]],pt=[["M",125.5,-18],["L",131.9952,-6.75],["L",119.00481,-6.75],["L",125.5,-18],["Z"],["M",125.5,-1],["L",125.5,-7]];function ft(c){if((c==null?void 0:c.length)<=2)return c;var n=1,t=4.5,s=c.map(function(d){return d._value}).filter(function(d){return d!==void 0}),a=Math.min.apply(Math,Un()(s)),u=Math.max.apply(Math,Un()(s)),i=function(v,p,x,C,b){var R=(v-p)/(x-p);return C+(b-C)*R};return c.forEach(function(d){d._value!==void 0?d.lineWidth=i(d._value,a,u,n,t):d.lineWidth=n}),c}function vt(c){var n=-1;c.sort(function(s,a){return Number(a==null?void 0:a.id)-Number(s==null?void 0:s.id)});var t=c==null?void 0:c.map(function(s){var a=s.title,u=s.name,i=s.id,d=s.statisticsDescArray;n===-1&&(n=(d==null?void 0:d.findIndex(function(p){return p._type===me}))||0);var v=d[n]._value;return h()(h()({},s),{},{id:i,outputRows:v,value:{title:((u==null?void 0:u.length)>=26?(u==null?void 0:u.slice(0,26))+"...":u||" ")+" [".concat(i,"]"),items:[{text:a||" "}]}})});return t}function bt(c){var n=-1;return c==null?void 0:c.map(function(t){var s=t==null?void 0:t.statisticsDescArray;n===-1&&(n=(s==null?void 0:s.findIndex(function(i){return i._type===me}))||0);var a=s[n]._value,u={source:t==null?void 0:t.parent_id,target:t==null?void 0:t.id};return a<=0?u:h()(h()({},u),{},{value:O(a),_value:a})})}var yt=function(n){var t=n.plainData,s=n.graphSize,a=n.graphSizeHeight,u=n.graphRef,i=n.isLight,d=n.overviewInfoCurrent,v=n.onReady,p=n.queryId,x=p===void 0?"analysis":p,C=function(){var U=u==null?void 0:u.current;U&&(U.fitView(),U.refresh())},b=ft(bt(t)),R={nodes:vt(t),edges:b},L={width:s,height:a},J=h()(h()({},L),{},{autoFit:!1,onReady:v,data:R,layout:{rankdir:"TB",ranksepFunc:function(){return 20}},tooltipCfg:{show:!1},toolbarCfg:{show:!0,customContent:function(U){var r=U.zoomIn,W=U.zoomOut;return(0,e.jsxs)("div",{children:[(0,e.jsx)("span",{className:"g-cursor g-box-c",onClick:function(){return C()},children:(0,e.jsx)(tn,{size:16,icon:"databend-icon-quanping1"})}),(0,e.jsx)("span",{className:"g-cursor g-box-c",onClick:W,children:(0,e.jsx)(tn,{size:16,icon:"databend-icon-minus-bold"})}),(0,e.jsx)("span",{className:"g-cursor g-box-c",onClick:r,children:(0,e.jsx)(tn,{size:16,icon:"databend-icon-jia"})}),(0,e.jsx)("span",{className:"g-cursor g-box-c",onClick:function(){var H;return u==null||(H=u.current)===null||H===void 0?void 0:H.downloadFullImage("databend-profile-".concat(x),"image/png")},children:(0,e.jsx)(tn,{size:16,icon:"databend-icon-xiazai_download-four"})})]})}},nodeCfg:{padding:10,size:[250,40],title:{autoEllipsis:!0,containerStyle:{fill:"transparent"},style:function(U){var r;return{fontWeight:600,fill:U!=null&&(r=U.errors)!==null&&r!==void 0&&r.length?"#fff":i?"#000":"#fff"}}},anchorPoints:[[.5,0],[.5,1]],style:function(U){var r;return{radius:5,fill:U!=null&&(r=U.errors)!==null&&r!==void 0&&r.length?"#f73920":i?"#fff":"#101",stroke:i?"#ccc":"#fff",filter:i?"drop-shadow(2px 2px 2px rgba(204, 204, 204, .3))":"drop-shadow(2px 3px 2px rgba(255, 255, 255, .2))"}},nodeStateStyles:{highlight:{stroke:"#2c91ff",lineWidth:2},hover:{stroke:"#2c91ff",lineWidth:2}},customContent:function(U,r,W){var Z,H,E,sn,A,an,dn=W.startX,hn=W.startY,vn=W.width,F=U.text;F=(Z=F)===null||Z===void 0?void 0:Z.replace(/\n/g," ");var Sn=230,kn=(H=F)===null||H===void 0?void 0:H.length,$=r==null||(E=r.cfg)===null||E===void 0||(E=E.item)===null||E===void 0||(E=E._cfg)===null||E===void 0?void 0:E.model,qn=($==null?void 0:$.totalTime)/(((sn=d.current)===null||sn===void 0?void 0:sn.totalTime)||1),jn=$==null||(A=$.errors)===null||A===void 0?void 0:A.length,In=$==null?void 0:$.parent_id,mn=r.addShape("text",{attrs:{textBaseline:"top",x:dn,y:hn,text:F,fill:jn?"rgba(255,255,255,0.8)":"#75767a",textAlign:"left"},name:"text-".concat(Math.random())}),Nn=mn.getBBox().width;if(kn>26&&Nn>vn){var pn,Hn=((pn=F)===null||pn===void 0?void 0:pn.slice(0,Math.floor(vn/Nn*kn-3)))+"...";mn.attr("text",Hn)}var En=(an=mn==null?void 0:mn.getBBox().height)!==null&&an!==void 0?an:0,bn=8,Dn=4,yn=qn*Sn,Vn=pe(dn,hn+En+10,Sn,bn,Dn);r.addShape("path",{attrs:{path:Vn,fill:"#f2f2f2"},name:"progress-bg-".concat(Math.random())});var Qn=pe(dn,hn+En+10,yn,bn,Dn);if(r.addShape("path",{attrs:{path:Qn,fill:yn<=0?"rgba(0,0,0,0)":"rgb(1, 117, 246)"},name:"progress-fg-".concat(Math.random())}),yn>0&&yn<9&&r.addShape("path",{attrs:{path:mt,fill:jn?"#f73920":i?"#fff":"#101"},name:"circle-path-bg-".concat(Math.random())}),In==="null"){var Y=b==null?void 0:b.find(function(z){return(z==null?void 0:z.source)==="null"});r.addShape("path",{attrs:{path:pt,fill:"#ccc",stroke:"#ccc",lineWidth:(Y==null?void 0:Y.lineWidth)||1},name:"percentage-output-text-".concat(Math.random())});var On=O($==null?void 0:$.outputRows);r.addShape("text",{attrs:{textBaseline:"top",x:125+Cn(On)/2,y:-30,text:On,fill:i?"rgba(12, 22, 43, 0.6)":"#fff",fontWeight:"bold",fontSize:12,textAlign:"right"},name:"percentage-output-text"})}var Wn=qn>0?"".concat((qn*100).toFixed(1),"%"):"0%";return r.addShape("text",{attrs:{textBaseline:"top",x:dn+vn,y:hn-27,text:Wn,fill:jn?"#fff":i?"#000":"#fff",fontSize:11,textAlign:"right"},name:"percentage-text-".concat(Math.random())}),Math.max(En,bn)}},edgeCfg:{type:"cubic-vertical",endArrow:!1,style:function(U){var r=(U==null?void 0:U.lineWidth)||1;return{lineWidth:r}},label:{style:{fontWeight:600,fill:i?"rgba(12, 22, 43, 0.6)":"#fff"}},startArrow:{type:"triangle"}},graphCfg:{containerStyle:{backgroundColor:"#f0f0f0"}},markerCfg:function(U){var r;return{animate:!0,position:"bottom",show:(r=R.edges.filter(function(W){return W.source===U.id}))===null||r===void 0?void 0:r.length}},behaviors:["drag-canvas","zoom-canvas"]});return(0,e.jsx)(it.Z,h()({},J))},gt=(0,T.memo)(yt,function(c,n){var t=(0,ht.Z)(c.plainData,n.plainData),s=c.graphSize===n.graphSize,a=c.graphSizeHeight===n.graphSizeHeight,u=c.isLight===n.isLight;return t&&s&&a&&u}),xt=l(9783),fe=l.n(xt),ve=l(54907),Ct=l(94274),wt=l(25968),Tt=l(6226),Rt=l(63677),Ut=["children"],St=function(n){var t=n.children,s=Rn()(n,Ut);return(0,e.jsx)(Q.Z,h()(h()({},s),{},{className:(0,B.Z)(s.className,"db-reset-white-button"),style:h()({gap:"6px"},s==null?void 0:s.style),children:t}))},kt=St,qt=["padding","borderRadius","children","className","isNeedBorder","isJader","onClick","height"],be=function(n){var t=n.padding,s=n.borderRadius,a=n.children,u=n.className,i=n.isNeedBorder,d=n.isJader,v=n.onClick,p=n.height,x=Rn()(n,qt),C=t===void 0?[20,20,20,20]:t,b=Array.isArray(C);return(0,e.jsx)("div",h()(h()({onClick:v,className:(0,B.Z)("db-card-wrap-out",u,i&&"db-card-wrap-border",d&&"db-card-wrap-jader"),style:h()(h()({},b?{paddingTop:C[0]+"px",paddingRight:C[1]+"px",paddingBottom:C[2]+"px",paddingLeft:C[3]+"px"}:{padding:t+"px"}),{},{height:p==="auto"?"auto":p+"px",borderRadius:"".concat(s,"px")})},x),{},{children:a}))};be.defaultProps={padding:[20,20,20,20],borderRadius:6,isNeedBorder:!0,height:"auto",isJader:!1};var jt=be,Nt=l(78234),ye=l(64665),ge=l(97369),Ht=l(49956),Et=l(47008),At=l(78537),xe=l(27067),Pt=l(31825),Ce=l(35183),Lt=l(11415),we=l(79016),Te=l(6228);Ce.D([Ht.N,Et.N,At.N,xe.N,Pt.N,ye.N,ge.N,Te.N,we.z]),Ce.D([xe.N,ye.N,ge.N,Te.N,we.z]);var Mt=function(n){var t=n.series,s=n.legendData,a=n.xData,u=n.isLight,i=(0,T.useRef)(null),d=ie(),v=d.reshape,p=u?"rgba(1, 14, 41, 0.08)":"rgba(255, 255, 255, 0.08)",x=u?"rgba(12, 22, 43, 0.6)":"rgba(249, 249, 249, 0.6)";return(0,Nt.Z)(function(){var C=Lt.S1(i.current),b={tooltip:{trigger:"axis"},legend:{type:"scroll",data:s},grid:{left:"13%",right:"9%",bottom:"3%",containLabel:!0},xAxis:{type:"category",boundaryGap:!1,data:a,axisLine:{lineStyle:{color:p}},axisLabel:{showMinLabel:!0,showMaxLabel:!0,color:x,margin:8},axisTick:{show:!1}},yAxis:{offset:30,type:"value"},series:t};C.setOption(b),v(C,"body")}),(0,e.jsx)("div",{style:{height:"280px",width:"100%"},ref:i})},zt=(0,T.memo)(Mt),It=["isLight","metricsData"],Dt=ve.Z.Panel;function Xn(c){var n,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return c?(n=Object.values(c))===null||n===void 0?void 0:n.sort(function(s,a){return s==null?void 0:s.localeCompare(a)}).join(" "):t||"No labels"}function Ot(c){return c.map(function(n){var t=Object.keys(n.value)[0],s=t==="Histogram",a=t==="Summary",u=s||a;if(!n.labels&&!u)return{name:n.name,columns:[{title:t,key:t,dataIndex:t}],data:[fe()({},t,n.value[t])],labels:n.labels?n.labels:null,value:n.value};if(u){var i=s?n.value.Histogram:n.value.Summary,d=[],v=[];return d=i.map(function(b){return s?b.less_than:b.quantile}),v=i.map(function(b){return b.count}),{isChart:!0,name:n.name,_tag:Xn(n.labels,n.name),columns:d,data:[v],labels:n.labels,value:n.value,type:t}}var p=Object.keys(n.labels),x=p.map(function(b){return{title:b,key:b,dataIndex:b}}).concat({title:t,key:t,dataIndex:t}),C=[h()(h()({},n.labels),{},fe()({},t,n.value[t]))];return{name:n.name,columns:x,data:C,labels:n.labels,value:n.value}})}function Wt(c){var n={};return c.forEach(function(t){if(!n[t.name])n[t.name]=h()(h()({},t),{},{labelsArr:[h()(h()({},t.labels),{},{_tag:Xn(t.labels,t.name)})]}),delete n[t.name].labels;else if(t!=null&&t.type)n[t.name].data=[].concat(Un()(n[t.name].data),Un()(t.data)),n[t.name].labelsArr.push(h()(h()({},t.labels),{},{_tag:Xn(t.labels,t.name)}));else{var s;(s=n[t.name].data).push.apply(s,Un()(t.data))}}),Object.values(n)}function Bt(c){return c==null?void 0:c.map(function(n){return{machine:n[0],data:Wt(Ot(n[1]).sort(function(t,s){if((t==null?void 0:t.name)===(s==null?void 0:s.name)){var a;return s==null||(a=s._tag)===null||a===void 0?void 0:a.localeCompare(t==null?void 0:t._tag)}return 0}).sort(function(t,s){return!(t!=null&&t.type)&&!(s!=null&&s.type)?0:t!=null&&t.type?s!=null&&s.type?t.type.localeCompare(s==null?void 0:s.type):1:-1}))}})}var Zt=function(n){var t=n.isLight,s=n.metricsData,a=Rn()(n,It),u=(0,T.useState)(!1),i=k()(u,2),d=i[0],v=i[1],p=(0,T.useState)([]),x=k()(p,2),C=x[0],b=x[1];return(0,T.useEffect)(function(){if(s){var R=Object.entries(s),L=Bt(R);b(L)}},[s]),(0,e.jsx)(Ct.Z,h()(h()({destroyOnClose:!0,width:"100vw"},a),{},{title:(0,e.jsxs)(nn.Z,{children:[(0,e.jsx)("span",{children:a==null?void 0:a.title}),(0,e.jsx)(kt,{onClick:function(){return v(!d)},children:(0,e.jsxs)(nn.Z,{size:4,children:[(0,e.jsx)(tn,{size:14,icon:"databend-icon-qiehuan_switch"}),d?"Chart View":"Metrics JSON"]})})]}),children:(0,e.jsx)(e.Fragment,{children:d?(0,e.jsx)(ue,{buttonText:"Metrics",isString:!1,content:JSON.stringify(s)}):(0,e.jsx)(ve.Z,{className:"profile-metrics-collapseWrap",expandIconPosition:"start",defaultActiveKey:Array.from({length:(C==null?void 0:C.length)+1},function(R,L){return L}),children:C==null?void 0:C.map(function(R,L){var J,M=R==null||(J=R.data)===null||J===void 0?void 0:J.length,U=M%2!==0;return(0,e.jsx)(Dt,{header:(0,e.jsxs)("div",{className:"profile-metrics-header",children:["Machine ",L+1,":",R==null?void 0:R.machine]}),children:(0,e.jsx)(wt.Z,{gutter:[16,16],className:"profile-metrics-row",children:R==null?void 0:R.data.map(function(r,W){var Z,H;return(0,T.createElement)(Tt.Z,{xl:12,xxl:12,lg:24,md:24,sm:24,xs:24,className:"profile-metrics-col",span:U&&M-1===W?24:12,key:W},(0,e.jsx)("div",{className:"profile-metrics-name",children:r==null?void 0:r.name}),r!=null&&r.data?(0,e.jsx)(e.Fragment,{children:r!=null&&r.type?(0,e.jsx)(zt,{isLight:t,series:r==null||(Z=r.data)===null||Z===void 0?void 0:Z.map(function(E,sn){var A;return{type:"bar",data:E,name:r==null||(A=r.labelsArr[sn])===null||A===void 0?void 0:A._tag}}),legendData:r==null||(H=r.labelsArr)===null||H===void 0?void 0:H.map(function(E){return E==null?void 0:E._tag}),xData:r==null?void 0:r.columns}):(0,e.jsx)(Rt.Z,{className:"profile-metrics-table",pagination:!1,dataSource:r==null?void 0:r.data,columns:r==null?void 0:r.columns},"key")}):(0,e.jsx)(jt,{children:JSON.stringify(r==null?void 0:r.value)}))})})},L)})})})}))},Ft=Zt,$t="CpuTime",Gt="WaitTime";function Jt(c){return c==null?void 0:c.map(function(n){var t,s,a,u=Object.keys(n)[0];return{_errorType:u,message:((t=n[u])===null||t===void 0?void 0:t.message)||"",detail:((s=n[u])===null||s===void 0?void 0:s.detail)||"",backtrace:((a=n[u])===null||a===void 0||(a=a.backtrace)===null||a===void 0||(a=a.build_id)===null||a===void 0?void 0:a.join(","))||""}})}function Kt(c,n){return c==="Bytes"?q(n):c==="Rows"||c==="Count"?Jn(n):c==="MillisSeconds"?wn(n):c==="NanoSeconds"?wn(n/1e6):n}var Xt=function(n){var t,s,a,u,i=n.profileRef,d=n.queryDuration,v=n.queryId,p=v===void 0?"analysis":v,x=n.outValue,C=n.countShow,b=n.offsetWidth,R=b===void 0?400:b,L=n.offsetHeight,J=L===void 0?150:L,M=n.showTextArea,U=M===void 0?!0:M,r=n.initLoading,W=r===void 0?!1:r,Z=n.isNeedMetrics,H=Z===void 0?!1:Z,E=n.isDemo,sn=E===void 0?!1:E,A=n.isLight,an=A===void 0?!0:A,dn=n.getActiveName,hn=dn===void 0?null:dn,vn=n.getOverviewInfo,F=vn===void 0?null:vn,Sn=n.ErrorTicketDom,kn=Sn===void 0?(0,e.jsx)(e.Fragment,{}):Sn,$=n.responseDom,qn=$===void 0?"body":$,jn=(0,D.Z)(0),In=k()(jn,2),mn=In[0],Nn=In[1],pn=(0,T.useRef)(null),Hn=(0,T.useRef)(null),En=(0,D.Z)(window.innerHeight-150),bn=k()(En,2),Dn=bn[0],yn=bn[1],Vn=ie(),Qn=Vn.reshapeDOM,Y=(0,T.useRef)(void 0),On=(0,D.Z)([]),Wn=k()(On,2),z=Wn[0],ts=Wn[1],un=(0,T.useRef)(void 0),ss=(0,D.Z)(!0),Ue=k()(ss,2),Se=Ue[0],Yn=Ue[1],as=(0,D.Z)(""),ke=k()(as,2),Bn=ke[0],qe=ke[1],os=(0,D.Z)([]),je=k()(os,2),on=je[0],ls=je[1],cs=(0,D.Z)([]),Ne=k()(cs,2),gn=Ne[0],us=Ne[1],rs=(0,D.Z)(!1),He=k()(rs,2),_s=He[0],Ee=He[1],ds=(0,D.Z)({clientX:0,clientY:0,show:!1,text:""}),Ae=k()(ds,2),rn=Ae[0],ne=Ae[1],is=(0,D.Z)({cpuTime:0,waitTime:0,isTotalBigerZero:!1,totalTime:0,totalTimePercent:"0%",labels:void 0,statisticsDescArray:[],metrics:null}),Pe=k()(is,2),_=Pe[0],ee=Pe[1];function hs(o){var y,w,g,f=o==null?void 0:o.profiles,j=o==null?void 0:o.statistics_desc,S=(y=j[$t])===null||y===void 0?void 0:y.index,N=(w=j[Gt])===null||w===void 0?void 0:w.index,I=0,ln=0,An=[];f==null||f.forEach(function(m){m.id=String(m.id),m.parent_id=String(m.parent_id);var cn=m==null?void 0:m.errors,te=m==null?void 0:m.statistics[S],se=m==null?void 0:m.statistics[N];m.totalTime=te+se,m.cpuTime=te,m.waitTime=se,I+=te,ln+=se,m.errors=(cn==null?void 0:cn.length)>0?Jt(m==null?void 0:m.errors):[],m.statisticsDescArray=Object.entries(j).map(function(ps){var De=k()(ps,2),fs=De[0],P=De[1];return{_type:fs,desc:P==null?void 0:P.desc,display_name:(P==null?void 0:P.display_name)||(P==null?void 0:P.displayName),index:P==null?void 0:P.index,unit:P.unit,plain_statistics:P==null?void 0:P.plain_statistics,_value:m.statistics[P==null?void 0:P.index]}})});var _n=I+ln;f==null||f.forEach(function(m){m.totalTimePercent=Tn(m==null?void 0:m.totalTime,_n),m.cpuTimePercent=Tn(m==null?void 0:m.cpuTime,m.totalTime),m.waitTimePercent=Tn(m==null?void 0:m.waitTime,m.totalTime)}),ts(f),ls((g=(0,nt.Z)(f))===null||g===void 0||(g=g.filter(function(m){return parseFloat(m.totalTimePercent)>.09}))===null||g===void 0?void 0:g.sort(function(m,cn){return cn.totalTime-m.totalTime}));var Pn=Tn(I,_n),xn=Tn(ln,_n),Ln={cpuTime:I,waitTime:ln,totalTime:_n,totalTimePercent:"100%",cpuTimePercent:Pn,waitTimePercent:xn,statisticsDescArray:An,isNode:!1,errors:[]};un.current=Ln,ee(Ln),F==null||F(Ln)}function ms(){var o=Y==null?void 0:Y.current;o&&(o==null||o.fitView())}var Zn=function(){i&&Nn(sn?700:(i==null?void 0:i.offsetWidth)-R),yn(window.innerHeight-J)};(0,T.useEffect)(function(){hn&&hn(Bn)},[Bn]),(0,T.useEffect)(function(){if(x)try{hs(x)}catch(o){ae.ZP.destroy(),ae.ZP.warning("Incorrect data")}},[C,x]),(0,T.useEffect)(function(){W&&Y.current&&ms()},[W]),(0,T.useEffect)(function(){z!=null&&z.length&&Zn()},[z,U]),(0,T.useEffect)(function(){var o,y=_==null||(o=_.statisticsDescArray)===null||o===void 0?void 0:o.filter(function(w){return w._value>0});us(y)},[_==null?void 0:_.statisticsDescArray]),(0,T.useEffect)(function(){Zn(),Qn(function(){Zn()},qn)},[]);function Le(o){var y=o.totalTime,w=o.totalTimePercent,g=o.cpuTime,f=o.waitTime,j=o.cpuTimePercent,S=o.waitTimePercent,N=o.id,I=o.isNode,ln=o.labels,An=o.statisticsDescArray,_n=o.name,Pn=o.errors;qe(N);var xn={cpuTime:g,waitTime:f,totalTime:y,totalTimePercent:w,cpuTimePercent:j,waitTimePercent:S,labels:ln,statisticsDescArray:An,isNode:I,name:_n,id:N,metrics:o==null?void 0:o.metrics,errors:Pn};ee(xn),F==null||F(xn)}function Me(o){return o.getNodes()}function ze(o,y){o.setItemState(y,"highlight",!0)}function Ie(o){Me(o).forEach(function(y){o.clearItemStates(y)})}function Fn(){ne({clientX:0,clientY:0,show:!1,text:""})}return(0,e.jsxs)(e.Fragment,{children:[(rn==null?void 0:rn.show)&&(0,e.jsx)(Be,{position:{x:rn==null?void 0:rn.clientX,y:rn.clientY},title:rn.text}),(0,e.jsxs)("div",{ref:Hn,className:"profile-index-container",children:[(z==null?void 0:z.length)>0&&(0,e.jsxs)("div",{className:"profile-index-details-info",children:[(on==null?void 0:on.length)>0&&(0,e.jsxs)("div",{className:"profile-index-top-ranking",children:[(0,e.jsxs)("div",{className:"profile-indx-most-expensive-nodes",children:[" ","Most Expensive Nodes",(0,e.jsxs)("span",{className:"profile-index-ranking-length",children:[" ","(",on==null?void 0:on.length," of ",z==null?void 0:z.length,")"]})]}),(0,e.jsx)("div",{style:{marginTop:"8px"},children:on==null?void 0:on.map(function(o,y){return(0,e.jsxs)("div",{onClick:function(){var g,f,j=o==null?void 0:o.id;if(Bn!==j){Le(h()(h()({},o),{},{isNode:!0})),Yn(!1);var S=Y.current,N=S==null?void 0:S.cfg.nodes,I=N==null?void 0:N.find(function(cn){return(cn==null?void 0:cn._cfg.id)===j}),ln=S==null?void 0:S.getZoom(),An=I==null||(g=I._cfg)===null||g===void 0||(g=g.bboxCache)===null||g===void 0?void 0:g.x,_n=I==null||(f=I._cfg)===null||f===void 0||(f=f.bboxCache)===null||f===void 0?void 0:f.y,Pn=S==null?void 0:S.getWidth(),xn=S==null?void 0:S.getHeight(),Ln=Pn/2-An*ln,m=xn/2-_n*ln+20;Ie(S),ze(S,I),(N==null?void 0:N.length)>1&&S.moveTo(Ln,m)}},className:(0,B.Z)("profile-index-top-item-style",Bn===o.id&&"profile-index-top-active-item-style"),children:[(0,e.jsxs)("span",{children:[o.name," [",o.id,"]"]}),(0,e.jsx)("span",{className:"profile-index-top-item-time",children:o.totalTimePercent})]},y)})})]}),(0,e.jsxs)("div",{className:(0,B.Z)("profile-index-top-ranking","profile-common-styles-pm"),children:[(0,e.jsxs)("div",{className:"profile-common-styles-few g-box-center-between",children:[(0,e.jsxs)("div",{children:["Profile Overview",(0,e.jsxs)("span",{className:"profile-index-color-text-2",children:[" ",Se&&"(Finished)"]})]}),!Se&&H&&(0,e.jsx)(Kn.Z,{title:_!=null&&_.metrics?void 0:"No Metrics",children:(0,e.jsx)(Q.Z,{disabled:!(_!=null&&_.metrics),onClick:function(){return Ee(!0)},type:"primary",size:"small",children:(0,e.jsxs)(nn.Z,{size:4,children:[_!=null&&_.metrics?(0,e.jsx)(tn,{icon:"databend-icon-yulan-dakai_preview-open"}):(0,e.jsx)(tn,{icon:"databend-icon-yulan-guanbi_preview-close-one"}),"Metrics"]})})})]}),(0,e.jsxs)("div",{className:"g-mt-8",children:[_.isNode?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:"g-t-right",children:_==null?void 0:_.totalTimePercent}),(0,e.jsx)(Ye,{data:[{color:"rgb(28, 130, 242)",percent:parseFloat(_.cpuTimePercent)},{color:"rgb(255, 152, 0)",percent:parseFloat(_.waitTimePercent)}]})]}):(0,e.jsxs)("div",{className:"profile-common-styles-bcpc",children:[(0,e.jsx)("span",{children:"Total Execution Time"}),(0,e.jsxs)("span",{className:"profile-index-color-text-1",children:[(0,e.jsxs)("span",{className:"profile-index-color-text-2",children:["(",wn(x?(_==null?void 0:_.totalTime)/1e6:d),")"]})," ",_==null?void 0:_.totalTimePercent]})]}),(0,e.jsxs)("div",{className:"profile-common-styles-bcpc",children:[(0,e.jsx)(he,{width:5,text:"CPU Time",textClass:"profile-index-color-text-2"}),(0,e.jsx)("span",{className:"profile-index-color-text-1",children:_==null?void 0:_.cpuTimePercent})]}),(0,e.jsxs)("div",{className:"profile-common-styles-bcpc",children:[(0,e.jsx)(he,{width:5,roundColor:"rgb(255, 152, 0)",text:"I/O Time",textClass:"profile-index-color-text-2"}),(0,e.jsx)("span",{className:"profile-index-color-text-1",children:_==null?void 0:_.waitTimePercent})]})]})]}),(_==null||(t=_.errors)===null||t===void 0?void 0:t.length)>0&&(0,e.jsxs)("div",{className:(0,B.Z)("profile-index-top-ranking","profile-index-top-ranking-errors","profile-common-styles-pm"),children:[(0,e.jsxs)(nn.Z,{className:"profile-common-styles-few g-color-text-danger",children:["Errors",kn&&kn]}),_==null||(s=_.errors)===null||s===void 0?void 0:s.map(function(o,y){return(0,e.jsxs)("div",{className:"g-mt-10",children:[(0,e.jsx)("div",{className:"profile-index-color-text-1",children:o==null?void 0:o._errorType}),(0,e.jsxs)("div",{className:"profile-common-styles-gbp profile-index-color-text-2",children:[(0,e.jsxs)("div",{className:"g-class-ellipsis",children:["message:",(0,e.jsx)(_e,{placement:"rightTop",destroyTooltipOnHide:!0,content:o==null?void 0:o.message,buttonText:"message",children:o==null?void 0:o.message})]}),(0,e.jsxs)("div",{className:"g-class-ellipsis",children:["detail:",(0,e.jsx)(Kn.Z,{destroyTooltipOnHide:!0,title:o==null?void 0:o.detail,children:o==null?void 0:o.detail})]}),(0,e.jsxs)("div",{className:"g-class-ellipsis",children:["backtrace:",(0,e.jsx)(_e,{placement:"rightTop",destroyTooltipOnHide:!0,content:o==null?void 0:o.backtrace,buttonText:"backtrace",children:o==null?void 0:o.backtrace})]})]})]},y)})]}),(gn==null?void 0:gn.length)>0&&(0,e.jsxs)("div",{className:(0,B.Z)("profile-index-top-ranking","profile-common-styles-pm"),children:[(0,e.jsx)("div",{className:"profile-common-styles-few",children:"Statistics"}),(0,e.jsx)("div",{className:"g-mt-8",children:gn==null?void 0:gn.map(function(o,y){return(0,e.jsxs)("div",{className:"profile-common-styles-bcpc",children:[(0,e.jsx)("span",{children:o==null?void 0:o.display_name}),(0,e.jsx)("span",{className:"profile-index-color-text-1",children:Kt(o.unit,o==null?void 0:o._value)})]},y)})})]}),(_==null||(a=_.labels)===null||a===void 0?void 0:a.length)>0&&(0,e.jsxs)("div",{className:(0,B.Z)("profile-index-top-ranking","profile-common-styles-pm"),children:[(0,e.jsx)("div",{className:"profile-common-styles-few",children:"Attributes"}),_==null||(u=_.labels)===null||u===void 0?void 0:u.map(function(o,y){var w;return(0,e.jsxs)("div",{className:"g-mt-10",children:[(0,e.jsx)("div",{className:"profile-index-color-text-1",children:o==null?void 0:o.name}),(0,e.jsx)("div",{children:(0,e.jsx)("div",{className:"profile-common-styles-gbp profile-index-color-text-2",children:o==null||(w=o.value)===null||w===void 0?void 0:w.map(function(g){return(0,e.jsx)("div",{style:{wordWrap:"break-word"},children:g},g)})})})]},y)})]})]}),W?(0,e.jsx)("div",{className:"g-box-c",style:{height:"700px"},children:(0,e.jsx)(oe,{})}):(0,e.jsx)(e.Fragment,{children:(z==null?void 0:z.length)>0?(0,e.jsx)(gt,{queryId:p,plainData:z,graphSize:mn,graphSizeHeight:Dn,graphRef:Y,isLight:an,handleResize:Zn,overviewInfoCurrent:un,onReady:function(y){Y.current=y,y.setMaxZoom(2),y.on("node:click",function(w){Yn(!1);var g=w.item._cfg.model;Le(h()(h()({},g),{},{isNode:!0}));var f=Me(y),j=w.item._cfg.id,S=f==null?void 0:f.find(function(N){return(N==null?void 0:N._cfg.id)===j});f==null||f.filter(function(N){return N._cfg.id!==j}).forEach(function(N){y.clearItemStates(N)}),ze(y,S)}),y.on("node:mouseleave",function(){pn.current||(pn.current=document.getElementsByTagName("canvas")[0]),pn.current.style.cursor="move",Fn()}),y.on("node:mouseover",function(w){var g,f=w==null||(g=w.target)===null||g===void 0||(g=g.cfg)===null||g===void 0?void 0:g.name;if(f!=null&&f.includes("percentage-output-text")){var j,S=w.clientX,N=w.clientY,I=w==null||(j=w.item)===null||j===void 0||(j=j._cfg)===null||j===void 0||(j=j.model)===null||j===void 0?void 0:j.outputRows;ne({clientX:S-70,clientY:N-52,show:!0,text:"Output Rows: ".concat(Jn(I))})}else Fn()}),y.on("canvas:click",function(){qe(""),Yn(!0),ee(un==null?void 0:un.current),F==null||F(un==null?void 0:un.current),Ie(y)}),y.on("canvas:dragstart",function(){Hn.current.style.userSelect="none"}),y.on("canvas:dragend",function(){Hn.current.style.userSelect="unset"}),y.on("edge:mouseover",function(w){var g,f,j=w==null||(g=w.target)===null||g===void 0||(g=g.cfg)===null||g===void 0?void 0:g.type,S=w==null||(f=w.item)===null||f===void 0||(f=f._cfg)===null||f===void 0||(f=f.model)===null||f===void 0?void 0:f._value,N=w.clientX,I=w.clientY;j==="text"?ne({clientX:N-40,clientY:I-50,show:!0,text:"Rows: ".concat(Jn(S))}):Fn()}),y.on("edge:mouseleave",function(){Fn()})}}):(0,e.jsx)("div",{style:{minHeight:"700px"},children:(0,e.jsx)(Ve,{title:"No Profile",paddingTop:"150px",subTitle:(0,e.jsxs)("div",{children:["Some queries, such as those with"," ",(0,e.jsx)("span",{style:{fontWeight:700},children:"USE"})," and"," ",(0,e.jsx)("span",{style:{fontWeight:700},children:"DESCRIBE"})," ","statements, have no query profile."]}),TopIcon:(0,e.jsx)(tn,{icon:"databend-icon-zuzhijiagou"})})})})]}),(0,e.jsx)(Ft,{isLight:an,metricsData:_==null?void 0:_.metrics,title:"Metrics Details: ".concat(_==null?void 0:_.name,"[").concat(_==null?void 0:_.id,"] ").concat(_==null?void 0:_.totalTimePercent),onClose:function(){return Ee(!1)},visible:_s})]})},Re=(0,T.memo)(Xt),Vt=l(92688),Qt=l(55753),Yt=Vt.Z.TextArea,ns=function(n){var t,s=n.isDemo,a=s===void 0?!1:s,u=n.isNeedMetrics,i=u===void 0?!1:u,d=(0,T.useState)(""),v=k()(d,2),p=v[0],x=v[1],C=(0,T.useState)(""),b=k()(C,2),R=b[0],L=b[1],J=(0,T.useState)(0),M=k()(J,2),U=M[0],r=M[1],W=(0,T.useState)(!1),Z=k()(W,2),H=Z[0],E=Z[1];function sn(){r(U+1);try{var A;L((A=JSON.parse(p))===null||A===void 0?void 0:A.query_id)}catch(an){}}return(0,e.jsxs)("div",{className:"g-pa-24 g-align-s site-layout-right",style:{gap:"12px"},children:[(0,e.jsxs)(nn.Z,{size:12,className:"g-pl-10 g-pr",direction:"vertical",children:[!H&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Yt,{placeholder:"\u8BF7\u628A\u4F60\u751F\u6210\u7684 profile \u65E5\u5FD7json\u7C98\u8FDB\u6765",className:"g-border-radius-middle g-border g-color-bg-1",value:p,onChange:function(an){x(an.target.value)},style:{width:"320px",height:"calc(100vh - 100px)"}}),(0,e.jsxs)(nn.Z,{className:"g-box-center-between",children:[(0,e.jsxs)(nn.Z,{children:[(0,e.jsx)(Q.Z,{type:"link",href:"/",children:"Back"}),(0,e.jsx)(Q.Z,{type:"dashed",onClick:function(){x(Qt.DEMO),sn()},children:"Demo"})]}),(0,e.jsxs)(nn.Z,{children:[(0,e.jsx)(Q.Z,{disabled:!p,type:"primary",onClick:function(){return r(U+1)},children:"Show"}),(0,e.jsx)(Q.Z,{onClick:function(){x("")},children:"Clear"})]})]})]}),(0,e.jsx)(Q.Z,{style:{position:"fixed",bottom:"80px",left:"10px",zIndex:10},type:"primary",onClick:function(){E(!H)},icon:(0,e.jsx)(tn,{icon:H?"databend-icon-zhankai_expand-left":"databend-icon-zhankai_expand-right"})})]}),(0,e.jsx)("div",{className:"g-pa-6 g-color-bg-1 g-box-flex g-border-radius-middle",children:(0,e.jsx)(Re,{offsetWidth:a?H?900:1200:H?100:695,isNeedMetrics:i,offsetHeight:60,countShow:U,outValue:p&&Oe(p)?JSON.parse(p):"",showTextArea:H,queryId:R,queryDuration:0,profileRef:(t=document)===null||t===void 0?void 0:t.body})})]})},es=ns},14633:function(Mn,G,l){l.r(G),l.d(G,{texts:function(){return h}});var fn=l(97753);const h=[{value:`outValue?: JSON; profileRef?: any; queryDuration: number; orgSlug?: string; @@ -7247,7 +7247,7 @@ getActiveName?: (name: string) => void; getOverviewInfo?: (modal: any) => void; responseDom?: string; -`,paraId:0,tocIndex:2}]},45760:function(Mn,$){$.Z=`export const DEMO = \`{ +`,paraId:0,tocIndex:2}]},45760:function(Mn,G){G.Z=`export const DEMO = \`{ "query_id": "ffffff-ca85-429b-3333-7f0ba074ba40", "tenant": "dsfdfsafad", "warehouse": "ddfdfdf-12290927528", diff --git a/preload_helper.e84fd402.js b/preload_helper.22a2d726.js similarity index 96% rename from preload_helper.e84fd402.js rename to preload_helper.22a2d726.js index 9486ff9..aaeeea8 100644 --- a/preload_helper.e84fd402.js +++ b/preload_helper.22a2d726.js @@ -1 +1 @@ -!function(){"use strict";var t="/databend-profile-ui/".replace(/([^/])$/,"$1/"),e=location.pathname,n=e.startsWith(t)&&decodeURI("/".concat(e.slice(t.length)));if(n){var a=document,c=a.head,r=a.createElement.bind(a),i=function(t,e,n){var a,c=e.r[t]||(null===(a=Object.entries(e.r).find((function(e){var n=e[0];return new RegExp("^".concat(n.replace(/\/:[^/]+/g,"/[^/]+").replace("/*","/.+"),"$")).test(t)})))||void 0===a?void 0:a[1]);return null==c?void 0:c.map((function(t){var a=e.f[t][1],c=e.f[t][0];return{type:c.split(".").pop(),url:"".concat(n.publicPath).concat(c),attrs:[["data-".concat(e.b),"".concat(e.p,":").concat(a)]]}}))}(n,{"p":"databend-profile-ui","b":"webpack","f":[["nm__dumi__dist__client__pages__Demo__index.578aa5c0.chunk.css",9],["nm__dumi__dist__client__pages__Demo__index.7e2cd489.async.js",9],["nm__dumi__dist__client__pages__404.8b85f2d9.chunk.css",65],["nm__dumi__dist__client__pages__404.32577821.async.js",65],["nm__dumi__theme-default__layouts__DocLayout__index.452c7114.async.js",519],["574.e8c51481.chunk.css",574],["574.744859fb.async.js",574],["QueryProfile__index.md.d73f360f.async.js",856],["dumi__tmp-production__dumi__theme__ContextWrapper.77c13456.async.js",923],["docs__index.md.0723b74c.async.js",935]],"r":{"/*":[2,3,4,5,6,8],"/":[9,4,5,6,8],"/~demos/:id":[0,1,8],"/components/query-profile":[7,4,5,6,8]}},{publicPath:"/databend-profile-ui/"});null==i||i.forEach((function(t){var e,n=t.type,a=t.url;if("js"===n)(e=r("script")).src=a,e.async=!0;else{if("css"!==n)return;(e=r("link")).href=a,e.rel="preload",e.as="style"}t.attrs.forEach((function(t){e.setAttribute(t[0],t[1]||"")})),c.appendChild(e)}))}}(); \ No newline at end of file +!function(){"use strict";var t="/databend-profile-ui/".replace(/([^/])$/,"$1/"),e=location.pathname,n=e.startsWith(t)&&decodeURI("/".concat(e.slice(t.length)));if(n){var a=document,c=a.head,r=a.createElement.bind(a),i=function(t,e,n){var a,c=e.r[t]||(null===(a=Object.entries(e.r).find((function(e){var n=e[0];return new RegExp("^".concat(n.replace(/\/:[^/]+/g,"/[^/]+").replace("/*","/.+"),"$")).test(t)})))||void 0===a?void 0:a[1]);return null==c?void 0:c.map((function(t){var a=e.f[t][1],c=e.f[t][0];return{type:c.split(".").pop(),url:"".concat(n.publicPath).concat(c),attrs:[["data-".concat(e.b),"".concat(e.p,":").concat(a)]]}}))}(n,{"p":"databend-profile-ui","b":"webpack","f":[["nm__dumi__dist__client__pages__Demo__index.578aa5c0.chunk.css",9],["nm__dumi__dist__client__pages__Demo__index.7e2cd489.async.js",9],["nm__dumi__dist__client__pages__404.8b85f2d9.chunk.css",65],["nm__dumi__dist__client__pages__404.32577821.async.js",65],["nm__dumi__theme-default__layouts__DocLayout__index.452c7114.async.js",519],["574.e8c51481.chunk.css",574],["574.744859fb.async.js",574],["QueryProfile__index.md.d73f360f.async.js",856],["dumi__tmp-production__dumi__theme__ContextWrapper.0ae08eb2.async.js",923],["docs__index.md.0723b74c.async.js",935]],"r":{"/*":[2,3,4,5,6,8],"/":[9,4,5,6,8],"/~demos/:id":[0,1,8],"/components/query-profile":[7,4,5,6,8]}},{publicPath:"/databend-profile-ui/"});null==i||i.forEach((function(t){var e,n=t.type,a=t.url;if("js"===n)(e=r("script")).src=a,e.async=!0;else{if("css"!==n)return;(e=r("link")).href=a,e.rel="preload",e.as="style"}t.attrs.forEach((function(t){e.setAttribute(t[0],t[1]||"")})),c.appendChild(e)}))}}(); \ No newline at end of file diff --git a/umi.ad91b5b5.js b/umi.13a68db9.js similarity index 99% rename from umi.ad91b5b5.js rename to umi.13a68db9.js index b975b7e..a8fcf46 100644 --- a/umi.ad91b5b5.js +++ b/umi.13a68db9.js @@ -43,7 +43,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qa(O,P){if(O){if(typeof O=="string")return ho(O,P);var R=Object.prototype.toString.call(O).slice(8,-1);if(R==="Object"&&O.constructor&&(R=O.constructor.name),R==="Map"||R==="Set")return Array.from(O);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return ho(O,P)}}function ho(O,P){(P==null||P>O.length)&&(P=O.length);for(var R=0,se=new Array(P);RO.length)&&(P=O.length);for(var R=0,se=new Array(P);R0&&arguments[0]!==void 0?arguments[0]:ji;return O.meta&&(Object.keys(O.meta).forEach(function(ot){var Rt,It;(It=(Rt=We)[ot])!==null&&It!==void 0||(Rt[ot]=O.meta[ot])}),We.frontmatter=oo()(We.frontmatter,O.meta.frontmatter,{arrayMerge:function(Rt,It){return It}})),We},Ne=se((0,gr.lZ)(O.id,{syncOnly:!0})),Le=function(We,ot){if(Wo.includes(ot)){if(!io.get(P)){var Rt=(0,gr.lZ)(O.id);Rt&&io.set(P,Rt.then(function(Ft){return co.set(P,se(Ft)).get(P)}))}var It=io.get(P);if(It)throw It}return We[ot]};(R=Ne.tabs)===null||R===void 0||R.forEach(function(He){He.meta=new Proxy(He.meta,{get:Le})});var Xe=new Proxy(Ne,{get:Le});co.set(P,Xe)}return co.get(P)}var Bo=function(){var P=(0,n.Qt)(),R=P.route,se=(0,n.TH)(),Ne=se.pathname,Le=(0,n.Ov)(),Xe=Le.clientRoutes,He=(0,a.useCallback)(function(){var Ft;if(R.path===Ne&&!("isLayout"in R))Ft=R;else{var $t,kt=($t=(0,n.fp)(Xe,Ne))===null||$t===void 0?void 0:$t.pop();Ft=kt==null?void 0:kt.route}return Ft},[Xe.length,Ne]),We=(0,a.useState)(He),ot=Jo(We,2),Rt=ot[0],It=ot[1];return(0,le.LI)(function(){It(He)},[Xe.length,Ne]),Rt},ii=function(){var P=Bo();return Xa(P)};function Fo(O){"@babel/helpers - typeof";return Fo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},Fo(O)}var ne=["renderOpts","component","context"];function Ce(){"use strict";Ce=function(){return O};var O={},P=Object.prototype,R=P.hasOwnProperty,se=Object.defineProperty||function(nt,me,Oe){nt[me]=Oe.value},Ne=typeof Symbol=="function"?Symbol:{},Le=Ne.iterator||"@@iterator",Xe=Ne.asyncIterator||"@@asyncIterator",He=Ne.toStringTag||"@@toStringTag";function We(nt,me,Oe){return Object.defineProperty(nt,me,{value:Oe,enumerable:!0,configurable:!0,writable:!0}),nt[me]}try{We({},"")}catch(nt){We=function(Oe,ft,at){return Oe[ft]=at}}function ot(nt,me,Oe,ft){var at=me&&me.prototype instanceof Ft?me:Ft,mt=Object.create(at.prototype),nr=new Wn(ft||[]);return se(mt,"_invoke",{value:jn(nt,Oe,nr)}),mt}function Rt(nt,me,Oe){try{return{type:"normal",arg:nt.call(me,Oe)}}catch(ft){return{type:"throw",arg:ft}}}O.wrap=ot;var It={};function Ft(){}function $t(){}function kt(){}var Tr={};We(Tr,Le,function(){return this});var Er=Object.getPrototypeOf,ir=Er&&Er(Er(Gn([])));ir&&ir!==P&&R.call(ir,Le)&&(Tr=ir);var Dr=kt.prototype=Ft.prototype=Object.create(Tr);function pn(nt){["next","throw","return"].forEach(function(me){We(nt,me,function(Oe){return this._invoke(me,Oe)})})}function Xr(nt,me){function Oe(at,mt,nr,er){var Ur=Rt(nt[at],nt,mt);if(Ur.type!=="throw"){var xr=Ur.arg,Zr=xr.value;return Zr&&Fo(Zr)=="object"&&R.call(Zr,"__await")?me.resolve(Zr.__await).then(function(Br){Oe("next",Br,nr,er)},function(Br){Oe("throw",Br,nr,er)}):me.resolve(Zr).then(function(Br){xr.value=Br,nr(xr)},function(Br){return Oe("throw",Br,nr,er)})}er(Ur.arg)}var ft;se(this,"_invoke",{value:function(mt,nr){function er(){return new me(function(Ur,xr){Oe(mt,nr,Ur,xr)})}return ft=ft?ft.then(er,er):er()}})}function jn(nt,me,Oe){var ft="suspendedStart";return function(at,mt){if(ft==="executing")throw new Error("Generator is already running");if(ft==="completed"){if(at==="throw")throw mt;return fn()}for(Oe.method=at,Oe.arg=mt;;){var nr=Oe.delegate;if(nr){var er=Pn(nr,Oe);if(er){if(er===It)continue;return er}}if(Oe.method==="next")Oe.sent=Oe._sent=Oe.arg;else if(Oe.method==="throw"){if(ft==="suspendedStart")throw ft="completed",Oe.arg;Oe.dispatchException(Oe.arg)}else Oe.method==="return"&&Oe.abrupt("return",Oe.arg);ft="executing";var Ur=Rt(nt,me,Oe);if(Ur.type==="normal"){if(ft=Oe.done?"completed":"suspendedYield",Ur.arg===It)continue;return{value:Ur.arg,done:Oe.done}}Ur.type==="throw"&&(ft="completed",Oe.method="throw",Oe.arg=Ur.arg)}}}function Pn(nt,me){var Oe=me.method,ft=nt.iterator[Oe];if(ft===void 0)return me.delegate=null,Oe==="throw"&&nt.iterator.return&&(me.method="return",me.arg=void 0,Pn(nt,me),me.method==="throw")||Oe!=="return"&&(me.method="throw",me.arg=new TypeError("The iterator does not provide a '"+Oe+"' method")),It;var at=Rt(ft,nt.iterator,me.arg);if(at.type==="throw")return me.method="throw",me.arg=at.arg,me.delegate=null,It;var mt=at.arg;return mt?mt.done?(me[nt.resultName]=mt.value,me.next=nt.nextLoc,me.method!=="return"&&(me.method="next",me.arg=void 0),me.delegate=null,It):mt:(me.method="throw",me.arg=new TypeError("iterator result is not an object"),me.delegate=null,It)}function Cn(nt){var me={tryLoc:nt[0]};1 in nt&&(me.catchLoc=nt[1]),2 in nt&&(me.finallyLoc=nt[2],me.afterLoc=nt[3]),this.tryEntries.push(me)}function $n(nt){var me=nt.completion||{};me.type="normal",delete me.arg,nt.completion=me}function Wn(nt){this.tryEntries=[{tryLoc:"root"}],nt.forEach(Cn,this),this.reset(!0)}function Gn(nt){if(nt){var me=nt[Le];if(me)return me.call(nt);if(typeof nt.next=="function")return nt;if(!isNaN(nt.length)){var Oe=-1,ft=function at(){for(;++Oe=0;--at){var mt=this.tryEntries[at],nr=mt.completion;if(mt.tryLoc==="root")return ft("end");if(mt.tryLoc<=this.prev){var er=R.call(mt,"catchLoc"),Ur=R.call(mt,"finallyLoc");if(er&&Ur){if(this.prev=0;--ft){var at=this.tryEntries[ft];if(at.tryLoc<=this.prev&&R.call(at,"finallyLoc")&&this.prev=0;--Oe){var ft=this.tryEntries[Oe];if(ft.finallyLoc===me)return this.complete(ft.completion,ft.afterLoc),$n(ft),It}},catch:function(me){for(var Oe=this.tryEntries.length-1;Oe>=0;--Oe){var ft=this.tryEntries[Oe];if(ft.tryLoc===me){var at=ft.completion;if(at.type==="throw"){var mt=at.arg;$n(ft)}return mt}}throw new Error("illegal catch attempt")},delegateYield:function(me,Oe,ft){return this.delegate={iterator:Gn(me),resultName:Oe,nextLoc:ft},this.method==="next"&&(this.arg=void 0),It}},O}function Ee(O,P){if(O==null)return{};var R=Ze(O,P),se,Ne;if(Object.getOwnPropertySymbols){var Le=Object.getOwnPropertySymbols(O);for(Ne=0;Ne=0)&&Object.prototype.propertyIsEnumerable.call(O,se)&&(R[se]=O[se])}return R}function Ze(O,P){if(O==null)return{};var R={},se=Object.keys(O),Ne,Le;for(Le=0;Le=0)&&(R[Ne]=O[Ne]);return R}function Fe(O,P){var R=Object.keys(O);if(Object.getOwnPropertySymbols){var se=Object.getOwnPropertySymbols(O);P&&(se=se.filter(function(Ne){return Object.getOwnPropertyDescriptor(O,Ne).enumerable})),R.push.apply(R,se)}return R}function qe(O){for(var P=1;PO.length)&&(P=O.length);for(var R=0,se=new Array(P);RO.length)&&(P=O.length);for(var R=0,se=new Array(P);R{var P=Object.create;var I=Object.defineProperty;var z=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames,R=Object.getOwnPropertySymbols,B=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable;var O=(e,t,i)=>t in e?I(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,M=(e,t)=>{for(var i in t||(t={}))E.call(t,i)&&O(e,i,t[i]);if(R)for(var i of R(t))L.call(t,i)&&O(e,i,t[i]);return e};var F=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var N=(e,t,i,h)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of D(t))!E.call(e,a)&&a!==i&&I(e,a,{get:()=>t[a],enumerable:!(h=z(t,a))||h.enumerable});return e};var W=(e,t,i)=>(i=e!=null?P(B(e)):{},N(t||!e||!e.__esModule?I(i,"default",{value:e,enumerable:!0}):i,e));var j=F((K,w)=>{w.exports=function(e){var t={};function i(h){if(t[h])return t[h].exports;var a=t[h]={exports:{},id:h,loaded:!1};return e[h].call(a.exports,a,a.exports,i),a.loaded=!0,a.exports}return i.m=e,i.c=t,i.p="",i(0)}([function(e,t,i){e.exports=i(1)},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var h=i(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return h.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return h.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return h.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return h.findChunks}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=t.findAll=function(s){var n=s.autoEscape,g=s.caseSensitive,f=g===void 0?!1:g,p=s.findChunks,u=p===void 0?a:p,c=s.sanitize,v=s.searchWords,T=s.textToHighlight;return l({chunksToHighlight:h({chunks:u({autoEscape:n,caseSensitive:f,sanitize:c,searchWords:v,textToHighlight:T})}),totalLength:T?T.length:0})},h=t.combineChunks=function(s){var n=s.chunks;return n=n.sort(function(g,f){return g.start-f.start}).reduce(function(g,f){if(g.length===0)return[f];var p=g.pop();if(f.start<=p.end){var u=Math.max(p.end,f.end);g.push({highlight:!1,start:p.start,end:u})}else g.push(p,f);return g},[]),n},a=function(s){var n=s.autoEscape,g=s.caseSensitive,f=s.sanitize,p=f===void 0?d:f,u=s.searchWords,c=s.textToHighlight;return c=p(c),u.filter(function(v){return v}).reduce(function(v,T){T=p(T),n&&(T=r(T));for(var m=new RegExp(T,g?"g":"gi"),x=void 0;x=m.exec(c);){var S=x.index,$=m.lastIndex;$>S&&v.push({highlight:!1,start:S,end:$}),x.index===m.lastIndex&&m.lastIndex++}return v},[])};t.findChunks=a;var l=t.fillInChunks=function(s){var n=s.chunksToHighlight,g=s.totalLength,f=[],p=function(v,T,m){T-v>0&&f.push({start:v,end:T,highlight:m})};if(n.length===0)p(0,g,!1);else{var u=0;n.forEach(function(c){p(u,c.start,!1),p(c.start,c.end,!0),u=c.end}),p(u,g,!1)}return f};function d(o){return o}function r(o){return o.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,"\\\\$&")}}])});var C=W(j());var H="tab";function k(e,t,i,h,a){let l=a!==void 0;return h.reduce((r,o)=>(o.tocIndex===a&&(r[o.paraId]=(r[o.paraId]||"").concat(o.value)),r),[]).filter(Boolean).length||l?{rawTitle:e,title:t,link:i,paragraphs:h.reduce((r,o)=>{var s,n;return o.tocIndex===a&&((n=r[s=o.paraId])!=null||(r[s]=""),r[o.paraId]+=o.value),r},[]).filter(Boolean)}:null}function y(e){return[e.title,e.subtitle].filter(Boolean).join(" ")}function _(e,t,i){let h=[],a=Object.values(t).reduce((l,d)=>{var r,o;return d.asset&&((o=l[r=d.routeId])!=null||(l[r]=[]),l[d.routeId].push(d)),l},{});return Object.values(e).forEach(l=>{var d;if("meta"in l&&!("isLayout"in l)){let r=l.meta,o=l.path.replace(/^([^/])/,"/$1")||"/",s=i.find(u=>o===u.link||o.startsWith(`${u.activePath}/`)),n=(a[l.id]||[]).map(u=>{var c;return(c=u.asset)==null?void 0:c.id}),g=k("",y(r.frontmatter),o,r.texts),f=r.toc.reduce((u,c,v)=>{if(!n.includes(c.id)&&c.depth>=1){let T=y(r.frontmatter);c.depth!==1&&(T=`${T} - ${c.title}`),u.push(k(c.title,T,`${o}#${c.id}`,r.texts,v))}return u},[]),p=(r.tabs||[]).reduce((u,{key:c,meta:v})=>{let T=k("",`${y(r.frontmatter)} - ${v.frontmatter.title}`,`${o}?${H}=${c}`,v.texts);return T&&u.push(T),u.push(...v.toc.map((m,x)=>k(m.title,`${y(r.frontmatter)} - ${v.frontmatter.title} - ${m.title}`,`${o}?${H}=${c}#${m.id}`,v.texts,x))),u},[]);h.push({navTitle:s==null?void 0:s.title,navOrder:s?i.indexOf(s):1/0,title:y(r.frontmatter),link:o,sections:[...g?[g]:[],...f,...p],demos:((d=a[l.id])==null?void 0:d.map(u=>({link:`${o}#${u.asset.id}`,rawTitle:u.asset.title||"",title:u.asset.title||y(r.frontmatter),description:u.asset.description||"",keywords:u.asset.keywords||[]})))||[]})}}),h}function b(e="",t,i=1){let h=(0,C.findAll)({textToHighlight:e,searchWords:t,autoEscape:!0}),a={};return[h.map(({start:l,end:d,highlight:r},o)=>{let s={text:e.slice(l,d)};return o===0&&!r&&h.length>1&&s.text.length>20&&(s.text=`...${s.text.slice(-20)}`),r&&(s.highlighted=!0,a[t.find(n=>s.text.includes(n))]=i),s}),a]}function Y(e,t){let i=t.split(" "),h=new RegExp(t.replace(/[.*+?^${}()|[\\]\\\\]/g,"\\\\$&").replace(/\\s+/g,"|"),"i"),a={};return e.forEach(l=>{var o,s;let d=l.title,r=[];if(l.sections.forEach(n=>{for(let g of n.paragraphs)if(h.test(g)){let[f,p]=b(n.title,i,10),[u,c]=b(g,i);r.push({type:"content",link:n.link,priority:Object.values(M(M({},c),p)).reduce((v,T)=>v+T,0),highlightTitleTexts:f,highlightTexts:u,pageTitle:d});return}if(h.test(n.rawTitle)&&!h.test(l.title)){let[g,f]=b(n.title,i,10);r.push({type:"title",link:n.link,priority:Object.values(f).reduce((p,u)=>p+u,0),highlightTitleTexts:g,highlightTexts:b(n.paragraphs[0]||"",i)[0],pageTitle:d})}}),l.demos.forEach(n=>{if(h.test(n.rawTitle)||h.test(n.description)){let[g,f]=b(n.title,i,10),[p,u]=b(n.description,i);r.push({type:"demo",link:n.link,priority:Object.values(M(M({},u),f)).reduce((c,v)=>c+v,0),highlightTitleTexts:g,highlightTexts:p,pageTitle:d})}}),h.test(l.title)){let[n,g]=b(l.title,i,100);r.push({type:"page",link:l.link,priority:Object.values(g).reduce((f,p)=>f+p,0),highlightTitleTexts:n,highlightTexts:b(((o=l.sections[0])==null?void 0:o.paragraphs[0])||"",i)[0],pageTitle:d})}if(r.length){let n=l.navTitle||"$ROOT";(s=a[n])!=null||(a[n]={title:l.navTitle,priority:l.navOrder*1e3,hints:[]}),a[n].hints.push(...r)}}),Object.values(a).forEach(({hints:l})=>{l.sort((d,r)=>r.priority-d.priority)}),Object.values(a).sort((l,d)=>d.priority-l.priority)}var A;self.onmessage=({data:e})=>{switch(e.action){case"generate-metadata":A=_(e.args.routes,e.args.demos,e.args.nav);break;case"get-search-result":self.postMessage(Y(A,e.args.keywords));break;default:}};})();\n'],{type:"application/javascript"}))));var Nr=function(){var P=(0,a.useRef)(),R=(0,a.useState)(!1),se=Rr(R,2),Ne=se[0],Le=se[1],Xe=(0,a.useState)(""),He=Rr(Xe,2),We=He[0],ot=He[1],Rt=_a(),It=(0,a.useState)([]),Ft=Rr(It,2),$t=Ft[0],kt=Ft[1],Tr=Vr(),Er=Rr(Tr,2),ir=Er[0],Dr=Er[1],pn=(0,a.useCallback)(function(Pn){Dr(),Le(!0),ot(Pn)},[]),Xr=ir==null?void 0:ir[0],jn=ir==null?void 0:ir[1];return(0,a.useEffect)(function(){Wr.onmessage=function(Pn){kt(Pn.data),Le(!1)}},[]),(0,a.useEffect)(function(){!Xr||!jn||Wr.postMessage({action:"generate-metadata",args:{routes:JSON.parse(JSON.stringify(Xr)),nav:Rt,demos:jn}})},[Xr,jn,Rt]),(0,a.useEffect)(function(){if(Xr){var Pn=We.trim();Pn?(clearTimeout(P.current),P.current=window.setTimeout(function(){Wr.postMessage({action:"get-search-result",args:{keywords:Pn}})},200)):kt([])}},[We,Xr]),{keywords:We,setKeywords:pn,result:$t,loading:Ne,load:Dr}},gr=e(23408)},90482:function(d,h,e){"use strict";e.d(h,{k:function(){return n},s:function(){return o}});var n=[{id:"zh-CN",name:"\u4E2D\u6587",base:"/"}],o={"en-US":{"header.search.placeholder":"Type keywords...","header.color.mode.light":"Light Mode","header.color.mode.dark":"Dark Mode","header.color.mode.auto":"Follow System","header.social.github":"GitHub","header.social.weibo":"Weibo","header.social.twitter":"Twitter","header.social.x":"X","header.social.gitlab":"GitLab","header.social.facebook":"Facebook","header.social.zhihu":"Zhihu","header.social.yuque":"Yuque","header.social.linkedin":"Linkedin","previewer.actions.code.expand":"Show Code","previewer.actions.code.shrink":"Hide Code","previewer.actions.code.editable":"Edit code with real-time preview","previewer.actions.code.readonly":"Only index file is editable","previewer.actions.sketch":"Copy to Sketch app","previewer.actions.sketch.group":"Copy as Sketch Group","previewer.actions.sketch.symbol":"Copy as Sketch Symbol","previewer.actions.sketch.divider":"------------------------","previewer.actions.sketch.guide":"How to paste to Sketch?","previewer.actions.codesandbox":"Open in CodeSandbox","previewer.actions.codepen":"Open in CodePen (Not implemented)","previewer.actions.stackblitz":"Open in StackBlitz","previewer.actions.separate":"Open in separate page","404.title":"PAGE NOT FOUND","404.back":"Back to homepage","api.component.name":"Name","api.component.description":"Description","api.component.type":"Type","api.component.default":"Default","api.component.required":"(required)","api.component.release.alpha":"Alpha","api.component.release.beta":"Beta","api.component.release.experimental":"Experimental","api.component.release.deprecated":"Deprecated","api.component.unavailable":"apiParser must be enabled to use auto-generated API","api.component.loading":"Properties definition is resolving, wait a moment...","api.component.not.found":"Properties definition not found for {id} component","content.tabs.default":"Doc","content.footer.last.updated":"Last updated: ","content.footer.actions.edit":"Improve this documentation","content.footer.actions.previous":"PREV","content.footer.actions.next":"NEXT","search.not.found":"No content was found","search.loading":"Loading...","layout.sidebar.btn":"Sidebar"},"zh-CN":{"header.search.placeholder":"\u8F93\u5165\u5173\u952E\u5B57\u641C\u7D22...","header.color.mode.light":"\u4EAE\u8272\u6A21\u5F0F","header.color.mode.dark":"\u6697\u8272\u6A21\u5F0F","header.color.mode.auto":"\u8DDF\u968F\u7CFB\u7EDF","header.social.github":"GitHub","header.social.weibo":"\u5FAE\u535A","header.social.twitter":"Twitter","header.social.x":"X","header.social.gitlab":"GitLab","header.social.facebook":"Facebook","header.social.zhihu":"\u77E5\u4E4E","header.social.yuque":"\u8BED\u96C0","header.social.linkedin":"Linkedin","previewer.actions.code.expand":"\u5C55\u5F00\u4EE3\u7801","previewer.actions.code.shrink":"\u6536\u8D77\u4EE3\u7801","previewer.actions.code.editable":"\u7F16\u8F91\u4EE3\u7801\u53EF\u5B9E\u65F6\u9884\u89C8","previewer.actions.code.readonly":"\u4EC5 index \u53EF\u7F16\u8F91","previewer.actions.codesandbox":"\u5728 CodeSandbox \u4E2D\u6253\u5F00","previewer.actions.sketch":"\u62F7\u8D1D\u5230 Sketch","previewer.actions.sketch.group":"\u62F7\u8D1D\u4E3A Sketch Group","previewer.actions.sketch.symbol":"\u62F7\u8D1D\u4E3A Sketch Symbol","previewer.actions.sketch.divider":"----------------------","previewer.actions.sketch.guide":"\u5982\u4F55\u7C98\u8D34\u5230 SKetch\uFF1F","previewer.actions.stackblitz":"\u5728 StackBlitz \u4E2D\u6253\u5F00","previewer.actions.separate":"\u5728\u72EC\u7ACB\u9875\u9762\u4E2D\u6253\u5F00","404.title":"\u9875\u9762\u672A\u627E\u5230","404.back":"\u8FD4\u56DE\u9996\u9875","api.component.name":"\u5C5E\u6027\u540D","api.component.description":"\u63CF\u8FF0","api.component.type":"\u7C7B\u578B","api.component.default":"\u9ED8\u8BA4\u503C","api.component.required":"(\u5FC5\u9009)","api.component.release.alpha":"Alpha","api.component.release.beta":"Beta","api.component.release.experimental":"\u5B9E\u9A8C\u6027","api.component.release.deprecated":"\u5E9F\u5F03","api.component.unavailable":"\u5FC5\u987B\u542F\u7528 apiParser \u624D\u80FD\u4F7F\u7528\u81EA\u52A8 API \u7279\u6027","api.component.loading":"\u5C5E\u6027\u5B9A\u4E49\u6B63\u5728\u89E3\u6790\u4E2D\uFF0C\u7A0D\u7B49\u7247\u523B...","api.component.not.found":"\u672A\u627E\u5230 {id} \u7EC4\u4EF6\u7684\u5C5E\u6027\u5B9A\u4E49","content.tabs.default":"\u6587\u6863","content.footer.last.updated":"\u6700\u540E\u66F4\u65B0\u65F6\u95F4\uFF1A","content.footer.actions.edit":"\u5E2E\u52A9\u6539\u8FDB\u6B64\u6587\u6863","content.footer.actions.previous":"\u4E0A\u4E00\u7BC7","content.footer.actions.next":"\u4E0B\u4E00\u7BC7","search.not.found":"\u672A\u627E\u5230\u76F8\u5173\u5185\u5BB9","search.loading":"\u52A0\u8F7D\u4E2D...","layout.sidebar.btn":"\u4FA7\u8FB9\u83DC\u5355"}}},23408:function(d,h,e){"use strict";e.d(h,{EQ:function(){return G},TR:function(){return fe},lZ:function(){return H},FO:function(){return N}});var n=e(5574),o=e.n(n),a=e(15009),i=e.n(a),c=e(97857),f=e.n(c),s=e(99289),p=e.n(s),y=e(68537);const v=[{id:"install",depth:2,title:"Install"},{id:"usage",depth:2,title:"Usage"},{id:"styles",depth:3,title:"styles"},{id:"import",depth:3,title:"import"}],l={title:"Docs",toc:"menu",filename:"docs/index.md",lastUpdated:1734338475e3,hero:{title:"databend-profile-ui",description:"profiles for databend",actions:[{text:"Start",link:"/components/query-profile"}]}},g={ids:[],getter:()=>e.e(904).then(e.bind(e,11171))};var S=e(97753);const b=[{id:"query-profile",depth:3,title:"Query Profile"},{id:"test-query-profile",depth:3,title:"Test Query Profile"},{id:"queryprofile-props",depth:3,title:"QueryProfile props"}],E={title:"Query Profile",toc:"menu",filename:"src/QueryProfile/index.md",atomId:"QueryProfile",lastUpdated:1734338475e3},w={ids:["queryprofile-demo-0","queryprofile-demo-1"],getter:()=>Promise.all([e.e(843),e.e(152)]).then(e.bind(e,25840))};var x={},D={"docs/index":{frontmatter:l,toc:v,demoIndex:g,textGetter:function(){return e.e(904).then(e.bind(e,51446))}},"components/QueryProfile/index":{frontmatter:E,toc:b,demoIndex:w,textGetter:function(){return Promise.all([e.e(843),e.e(152)]).then(e.bind(e,14633))}}};function k(oe){if(oe.status==="fulfilled")return oe.value;throw oe.status==="rejected"?oe.reason:(oe.status==="pending"||(oe.status="pending",oe.then(function(ae){oe.status="fulfilled",oe.value=ae},function(ae){oe.status="rejected",oe.reason=ae})),oe)}var K=Object.keys(D).reduce(function(oe,ae){if(D[ae].demoIndex){var ie=D[ae].demoIndex,U=ie.ids,q=ie.getter;U.forEach(function(te){oe[te]=q})}return oe},{}),M=new Map;function _(oe){oe&&Object.keys(oe).forEach(function(ae){var ie,U=(ie=ae.match(/^(.+)\.(js|jsx|ts|tsx|json)$/))===null||ie===void 0?void 0:ie[1];U&&!oe[U]&&(oe[U]=oe[ae])})}function N(oe){if(!M.get(oe)){var ae;M.set(oe,(ae=K[oe])===null||ae===void 0?void 0:ae.call(K).then(function(ie){var U=ie.demos;return _(U[oe].context),U[oe]}))}return k(M.get(oe))}function G(){return W.apply(this,arguments)}function W(){return W=p()(i()().mark(function oe(){var ae;return i()().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return ae=Object.entries(D).filter(function(q){var te=o()(q,2),Q=te[0],I=te[1];return I.demoIndex}),U.abrupt("return",Promise.all(ae.map(function(){var q=p()(i()().mark(function te(Q){var I,V,de;return i()().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return I=o()(Q,2),V=I[0],de=I[1],A.t0=V,A.next=4,de.demoIndex.getter();case 4:return A.t1=A.sent.demos,A.abrupt("return",{id:A.t0,demos:A.t1});case 6:case"end":return A.stop()}},te)}));return function(te){return q.apply(this,arguments)}}())).then(function(q){return q.reduce(function(te,Q){var I=Q.id,V=Q.demos;return Object.values(V).forEach(function(de){de.routeId=I,_(de.context)}),Object.assign(te,V),te},{})}));case 2:case"end":return U.stop()}},oe)})),W.apply(this,arguments)}function B(oe,ae){return f()(f()({},x[oe]),{},{meta:ae!=null?ae:{frontmatter:{title:x[oe].title},toc:[],texts:[]}})}function H(oe,ae){if(D[oe]){var ie=D[oe],U=ie.frontmatter,q=ie.toc,te=ie.textGetter,Q=ie.tabs,I={frontmatter:U,toc:q,texts:[]};return ae!=null&&ae.syncOnly?(Q&&(I.tabs=Q.map(function(V){return B(V,H(V,ae))})),I):new Promise(function(){var V=p()(i()().mark(function de(Y){var A;return i()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:if(!te){j.next=5;break}return j.next=3,te();case 3:A=j.sent,I.texts=A.texts;case 5:if(!Q){j.next=9;break}return j.next=8,Promise.all(Q.map(function(){var z=p()(i()().mark(function ee(xe){return i()().wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:return Ye.t0=B,Ye.t1=xe,Ye.next=4,H(xe,ae);case 4:return Ye.t2=Ye.sent,Ye.abrupt("return",(0,Ye.t0)(Ye.t1,Ye.t2));case 6:case"end":return Ye.stop()}},ee)}));return function(ee){return z.apply(this,arguments)}}()));case 8:I.tabs=j.sent;case 9:Y(I);case 10:case"end":return j.stop()}},de)}));return function(de){return V.apply(this,arguments)}}())}}function fe(){return he.apply(this,arguments)}function he(){return he=p()(i()().mark(function oe(){return i()().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.next=2,Promise.all(Object.keys(D).map(function(){var U=p()(i()().mark(function q(te){return i()().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.t0=te,I.next=3,H(te);case 3:return I.t1=I.sent,I.abrupt("return",{id:I.t0,meta:I.t1});case 5:case"end":return I.stop()}},q)}));return function(q){return U.apply(this,arguments)}}())).then(function(U){return U.reduce(function(q,te){var Q=te.id,I=te.meta;return q[Q]=I,q},{})});case 2:return ie.abrupt("return",ie.sent);case 3:case"end":return ie.stop()}},oe)})),he.apply(this,arguments)}},24422:function(d,h,e){"use strict";e.d(h,{Z:function(){return n.Z}});var n=e(24268)},80936:function(d,h,e){"use strict";e.d(h,{Z:function(){return b}});var n=e(74865),o=e.n(n),a=e(67294);const i=a.createContext({}),c=!0;function f({baseColor:E,highlightColor:w,width:x,height:D,borderRadius:k,circle:K,direction:M,duration:_,enableAnimation:N=c,customHighlightBackground:G}){const W={};return M==="rtl"&&(W["--animation-direction"]="reverse"),typeof _=="number"&&(W["--animation-duration"]=`${_}s`),N||(W["--pseudo-element-display"]="none"),(typeof x=="string"||typeof x=="number")&&(W.width=x),(typeof D=="string"||typeof D=="number")&&(W.height=D),(typeof k=="string"||typeof k=="number")&&(W.borderRadius=k),K&&(W.borderRadius="50%"),typeof E!="undefined"&&(W["--base-color"]=E),typeof w!="undefined"&&(W["--highlight-color"]=w),typeof G=="string"&&(W["--custom-highlight-background"]=G),W}function s(N){var G=N,{count:E=1,wrapper:w,className:x,containerClassName:D,containerTestId:k,circle:K=!1,style:M}=G,_=hl(G,["count","wrapper","className","containerClassName","containerTestId","circle","style"]);var W,B,H;const fe=a.useContext(i),he=du({},_);for(const[Q,I]of Object.entries(_))typeof I=="undefined"&&delete he[Q];const oe=Ss(du(du({},fe),he),{circle:K}),ae=du(du({},M),f(oe));let ie="react-loading-skeleton";x&&(ie+=` ${x}`);const U=(W=oe.inline)!==null&&W!==void 0?W:!1,q=[],te=Math.ceil(E);for(let Q=0;QE&&Q===te-1){const de=(B=I.width)!==null&&B!==void 0?B:"100%",Y=E%1,A=typeof de=="number"?de*Y:`calc(${de} * ${Y})`;I=Ss(du({},I),{width:A})}const V=a.createElement("span",{className:ie,style:I,key:Q},"\u200C");U?q.push(V):q.push(a.createElement(a.Fragment,{key:Q},V,a.createElement("br",null)))}return a.createElement("span",{className:D,"data-testid":k,"aria-live":"polite","aria-busy":(H=oe.enableAnimation)!==null&&H!==void 0?H:c},w?q.map((Q,I)=>a.createElement(w,{key:I},Q)):q)}function p(x){var D=x,{children:E}=D,w=hl(D,["children"]);return React.createElement(i.Provider,{value:w},E)}var y=function(){return a.createElement("div",{className:"dumi-default-loading-skeleton"},a.createElement(s,{className:"first-line",count:1}),a.createElement(s,{count:2}),a.createElement(s,{count:1,width:"75%"}))},v=y,l=e(53683),g=e(85893),S=function(){var w=(0,l.WF)(),x=w.setLoading;return(0,a.useLayoutEffect)(function(){return x(!0),o().start(),function(){x(!1),o().done()}},[]),(0,g.jsx)(v,{})},b=S},17932:function(d,h,e){"use strict";e.d(h,{Ac:function(){return ye},ql:function(){return te.ql},rU:function(){return q},OL:function(){return N},Q$:function(){return Re},p6:function(){return y},m8:function(){return Je.m8},fp:function(){return l.fp},Ov:function(){return he.Ov},TH:function(){return l.TH},pC:function(){return l.pC},UO:function(){return l.UO},Qt:function(){return Q.Q},lr:function(){return W}});var n=e(15009),o=e(99289),a=e(53683),i=e(6185),c=typeof window!="undefined"?window.html2sketch:null;function f(X,Te){return s.apply(this,arguments)}function s(){return s=_asyncToGenerator(_regeneratorRuntime().mark(function X(Te,$e){return _regeneratorRuntime().wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:if($e.type!=="group"){Et.next=6;break}return Et.next=3,c.nodeToGroup(Te);case 3:Et.t0=Et.sent.toSketchJSON(),Et.next=9;break;case 6:return Et.next=8,c.nodeToSymbol(Te);case 8:Et.t0=Et.sent.toSketchJSON();case 9:return Et.abrupt("return",Et.t0);case 10:case"end":return Et.stop()}},X)})),s.apply(this,arguments)}function p(X,Te){return getPluginManager().applyPlugins({key:"toSketchJSON",type:ApplyPluginsType.modify,initialValue:null,args:{target:X,opts:Te},async:!0})}var y=null,v=e(67294),l=e(96974),g=e(55648);function S(){return S=Object.assign||function(X){for(var Te=1;Te=0)&&($e[Et]=X[Et]);return $e}const E=["onClick","reloadDocument","replace","state","target","to"],w=["aria-current","caseSensitive","className","end","style","to","children"];function x(X,Te){if(!X){typeof console!="undefined"&&console.warn(Te);try{throw new Error(Te)}catch($e){}}}function D(X){let{basename:Te,children:$e,window:ze}=X,Et=useRef();Et.current==null&&(Et.current=createBrowserHistory({window:ze}));let ut=Et.current,[be,Ue]=useState({action:ut.action,location:ut.location});return useLayoutEffect(()=>ut.listen(Ue),[ut]),createElement(Router,{basename:Te,children:$e,location:be.location,navigationType:be.action,navigator:ut})}function k(X){let{basename:Te,children:$e,window:ze}=X,Et=useRef();Et.current==null&&(Et.current=createHashHistory({window:ze}));let ut=Et.current,[be,Ue]=useState({action:ut.action,location:ut.location});return useLayoutEffect(()=>ut.listen(Ue),[ut]),createElement(Router,{basename:Te,children:$e,location:be.location,navigationType:be.action,navigator:ut})}function K(X){let{basename:Te,children:$e,history:ze}=X;const[Et,ut]=useState({action:ze.action,location:ze.location});return useLayoutEffect(()=>ze.listen(ut),[ze]),createElement(Router,{basename:Te,children:$e,location:Et.location,navigationType:Et.action,navigator:ze})}function M(X){return!!(X.metaKey||X.altKey||X.ctrlKey||X.shiftKey)}const _=(0,v.forwardRef)(function(Te,$e){let{onClick:ze,reloadDocument:Et,replace:ut=!1,state:be,target:Ue,to:_e}=Te,ke=b(Te,E),vt=(0,l.oQ)(_e),bt=G(_e,{replace:ut,state:be,target:Ue});function Nt(Kt){ze&&ze(Kt),!Kt.defaultPrevented&&!Et&&bt(Kt)}return(0,v.createElement)("a",S({},ke,{href:vt,onClick:Nt,ref:$e,target:Ue}))}),N=(0,v.forwardRef)(function(Te,$e){let{"aria-current":ze="page",caseSensitive:Et=!1,className:ut="",end:be=!1,style:Ue,to:_e,children:ke}=Te,vt=b(Te,w),bt=(0,l.TH)(),Nt=(0,l.WU)(_e),Kt=bt.pathname,tr=Nt.pathname;Et||(Kt=Kt.toLowerCase(),tr=tr.toLowerCase());let Bt=Kt===tr||!be&&Kt.startsWith(tr)&&Kt.charAt(tr.length)==="/",ur=Bt?ze:void 0,vr;typeof ut=="function"?vr=ut({isActive:Bt}):vr=[ut,Bt?"active":null].filter(Boolean).join(" ");let zr=typeof Ue=="function"?Ue({isActive:Bt}):Ue;return(0,v.createElement)(_,S({},vt,{"aria-current":ur,className:vr,ref:$e,style:zr,to:_e}),typeof ke=="function"?ke({isActive:Bt}):ke)});function G(X,Te){let{target:$e,replace:ze,state:Et}=Te===void 0?{}:Te,ut=(0,l.s0)(),be=(0,l.TH)(),Ue=(0,l.WU)(X);return(0,v.useCallback)(_e=>{if(_e.button===0&&(!$e||$e==="_self")&&!M(_e)){_e.preventDefault();let ke=!!ze||(0,g.Ep)(be)===(0,g.Ep)(Ue);ut(X,{replace:ke,state:Et})}},[be,ut,Ue,ze,Et,$e,X])}function W(X){let Te=(0,v.useRef)(B(X)),$e=(0,l.TH)(),ze=(0,v.useMemo)(()=>{let be=B($e.search);for(let Ue of Te.current.keys())be.has(Ue)||Te.current.getAll(Ue).forEach(_e=>{be.append(Ue,_e)});return be},[$e.search]),Et=(0,l.s0)(),ut=(0,v.useCallback)((be,Ue)=>{Et("?"+B(be),Ue)},[Et]);return[ze,ut]}function B(X){return X===void 0&&(X=""),new URLSearchParams(typeof X=="string"||Array.isArray(X)||X instanceof URLSearchParams?X:Object.keys(X).reduce((Te,$e)=>{let ze=X[$e];return Te.concat(Array.isArray(ze)?ze.map(Et=>[$e,Et]):[[$e,ze]])},[]))}var H=e(58096),fe=e(49647),he=e(34162),oe=e(48804);function ae(X,Te){var $e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ze=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(typeof IntersectionObserver!="function")return null;var Et=v.useRef(typeof IntersectionObserver=="function"),ut=v.useRef(null);return v.useEffect(function(){if(!(!X.current||!Et.current||ze.disabled))return ut.current=new IntersectionObserver(function(be){var Ue=(0,oe.Z)(be,1),_e=Ue[0];Te(_e)},$e),ut.current.observe(X.current),function(){var be;(be=ut.current)===null||be===void 0||be.disconnect()}},[Te,$e,ze.disabled,X]),ut.current}var ie=["prefetch"];function U(X){var Te=v.useRef(null);return v.useEffect(function(){X&&(typeof X=="function"?X(Te.current):X.current=Te.current)}),Te}var q=v.forwardRef(function(X,Te){var $e,ze=X.prefetch,Et=(0,fe.Z)(X,ie),ut=typeof window!="undefined"&&window.__umi_route_prefetch__||{defaultPrefetch:"none",defaultPrefetchTimeout:50},be=ut.defaultPrefetch,Ue=ut.defaultPrefetchTimeout,_e=(ze===!0?"intent":ze===!1?"none":ze)||be;if(!["intent","render","viewport","none"].includes(_e))throw new Error("Invalid prefetch value ".concat(_e," found in Link component"));var ke=(0,he.Ov)(),vt=typeof X.to=="string"?X.to:($e=X.to)===null||$e===void 0?void 0:$e.pathname,bt=v.useRef(!1),Nt=U(Te),Kt=function(ur){if(_e==="intent"){var vr=ur.target||{};vr.preloadTimeout||(vr.preloadTimeout=setTimeout(function(){var zr;vr.preloadTimeout=null,(zr=ke.preloadRoute)===null||zr===void 0||zr.call(ke,vt)},X.prefetchTimeout||Ue))}},tr=function(ur){if(_e==="intent"){var vr=ur.target||{};vr.preloadTimeout&&(clearTimeout(vr.preloadTimeout),vr.preloadTimeout=null)}};return(0,v.useLayoutEffect)(function(){if(_e==="render"&&!bt.current){var Bt;(Bt=ke.preloadRoute)===null||Bt===void 0||Bt.call(ke,vt),bt.current=!0}},[_e,vt]),ae(Nt,function(Bt){if(Bt!=null&&Bt.isIntersecting){var ur;(ur=ke.preloadRoute)===null||ur===void 0||ur.call(ke,vt)}},{rootMargin:"100px"},{disabled:_e!=="viewport"}),vt?v.createElement(_,(0,H.Z)({onMouseEnter:Kt,onMouseLeave:tr,ref:Nt},Et),X.children):null}),te=e(70405),Q=e(59918);function I(X){"@babel/helpers - typeof";return I=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Te){return typeof Te}:function(Te){return Te&&typeof Symbol=="function"&&Te.constructor===Symbol&&Te!==Symbol.prototype?"symbol":typeof Te},I(X)}function V(){"use strict";V=function(){return Te};var X,Te={},$e=Object.prototype,ze=$e.hasOwnProperty,Et=Object.defineProperty||function(pr,Gt,Jt){pr[Gt]=Jt.value},ut=typeof Symbol=="function"?Symbol:{},be=ut.iterator||"@@iterator",Ue=ut.asyncIterator||"@@asyncIterator",_e=ut.toStringTag||"@@toStringTag";function ke(pr,Gt,Jt){return Object.defineProperty(pr,Gt,{value:Jt,enumerable:!0,configurable:!0,writable:!0}),pr[Gt]}try{ke({},"")}catch(pr){ke=function(Jt,Cr,Sr){return Jt[Cr]=Sr}}function vt(pr,Gt,Jt,Cr){var Sr=Gt&&Gt.prototype instanceof vr?Gt:vr,Kr=Object.create(Sr.prototype),kn=new Pa(Cr||[]);return Et(Kr,"_invoke",{value:wn(pr,Jt,kn)}),Kr}function bt(pr,Gt,Jt){try{return{type:"normal",arg:pr.call(Gt,Jt)}}catch(Cr){return{type:"throw",arg:Cr}}}Te.wrap=vt;var Nt="suspendedStart",Kt="suspendedYield",tr="executing",Bt="completed",ur={};function vr(){}function zr(){}function nn(){}var Nn={};ke(Nn,be,function(){return this});var Sn=Object.getPrototypeOf,On=Sn&&Sn(Sn(oa([])));On&&On!==$e&&ze.call(On,be)&&(Nn=On);var qr=nn.prototype=vr.prototype=Object.create(Nn);function bn(pr){["next","throw","return"].forEach(function(Gt){ke(pr,Gt,function(Jt){return this._invoke(Gt,Jt)})})}function Un(pr,Gt){function Jt(Sr,Kr,kn,Zn){var Jn=bt(pr[Sr],pr,Kr);if(Jn.type!=="throw"){var ha=Jn.arg,Tn=ha.value;return Tn&&I(Tn)=="object"&&ze.call(Tn,"__await")?Gt.resolve(Tn.__await).then(function(ia){Jt("next",ia,kn,Zn)},function(ia){Jt("throw",ia,kn,Zn)}):Gt.resolve(Tn).then(function(ia){ha.value=ia,kn(ha)},function(ia){return Jt("throw",ia,kn,Zn)})}Zn(Jn.arg)}var Cr;Et(this,"_invoke",{value:function(Kr,kn){function Zn(){return new Gt(function(Jn,ha){Jt(Kr,kn,Jn,ha)})}return Cr=Cr?Cr.then(Zn,Zn):Zn()}})}function wn(pr,Gt,Jt){var Cr=Nt;return function(Sr,Kr){if(Cr===tr)throw new Error("Generator is already running");if(Cr===Bt){if(Sr==="throw")throw Kr;return{value:X,done:!0}}for(Jt.method=Sr,Jt.arg=Kr;;){var kn=Jt.delegate;if(kn){var Zn=gn(kn,Jt);if(Zn){if(Zn===ur)continue;return Zn}}if(Jt.method==="next")Jt.sent=Jt._sent=Jt.arg;else if(Jt.method==="throw"){if(Cr===Nt)throw Cr=Bt,Jt.arg;Jt.dispatchException(Jt.arg)}else Jt.method==="return"&&Jt.abrupt("return",Jt.arg);Cr=tr;var Jn=bt(pr,Gt,Jt);if(Jn.type==="normal"){if(Cr=Jt.done?Bt:Kt,Jn.arg===ur)continue;return{value:Jn.arg,done:Jt.done}}Jn.type==="throw"&&(Cr=Bt,Jt.method="throw",Jt.arg=Jn.arg)}}}function gn(pr,Gt){var Jt=Gt.method,Cr=pr.iterator[Jt];if(Cr===X)return Gt.delegate=null,Jt==="throw"&&pr.iterator.return&&(Gt.method="return",Gt.arg=X,gn(pr,Gt),Gt.method==="throw")||Jt!=="return"&&(Gt.method="throw",Gt.arg=new TypeError("The iterator does not provide a '"+Jt+"' method")),ur;var Sr=bt(Cr,pr.iterator,Gt.arg);if(Sr.type==="throw")return Gt.method="throw",Gt.arg=Sr.arg,Gt.delegate=null,ur;var Kr=Sr.arg;return Kr?Kr.done?(Gt[pr.resultName]=Kr.value,Gt.next=pr.nextLoc,Gt.method!=="return"&&(Gt.method="next",Gt.arg=X),Gt.delegate=null,ur):Kr:(Gt.method="throw",Gt.arg=new TypeError("iterator result is not an object"),Gt.delegate=null,ur)}function Qn(pr){var Gt={tryLoc:pr[0]};1 in pr&&(Gt.catchLoc=pr[1]),2 in pr&&(Gt.finallyLoc=pr[2],Gt.afterLoc=pr[3]),this.tryEntries.push(Gt)}function Ln(pr){var Gt=pr.completion||{};Gt.type="normal",delete Gt.arg,pr.completion=Gt}function Pa(pr){this.tryEntries=[{tryLoc:"root"}],pr.forEach(Qn,this),this.reset(!0)}function oa(pr){if(pr||pr===""){var Gt=pr[be];if(Gt)return Gt.call(pr);if(typeof pr.next=="function")return pr;if(!isNaN(pr.length)){var Jt=-1,Cr=function Sr(){for(;++Jt=0;--Sr){var Kr=this.tryEntries[Sr],kn=Kr.completion;if(Kr.tryLoc==="root")return Cr("end");if(Kr.tryLoc<=this.prev){var Zn=ze.call(Kr,"catchLoc"),Jn=ze.call(Kr,"finallyLoc");if(Zn&&Jn){if(this.prev=0;--Cr){var Sr=this.tryEntries[Cr];if(Sr.tryLoc<=this.prev&&ze.call(Sr,"finallyLoc")&&this.prev=0;--Jt){var Cr=this.tryEntries[Jt];if(Cr.finallyLoc===Gt)return this.complete(Cr.completion,Cr.afterLoc),Ln(Cr),ur}},catch:function(Gt){for(var Jt=this.tryEntries.length-1;Jt>=0;--Jt){var Cr=this.tryEntries[Jt];if(Cr.tryLoc===Gt){var Sr=Cr.completion;if(Sr.type==="throw"){var Kr=Sr.arg;Ln(Cr)}return Kr}}throw new Error("illegal catch attempt")},delegateYield:function(Gt,Jt,Cr){return this.delegate={iterator:oa(Gt),resultName:Jt,nextLoc:Cr},this.method==="next"&&(this.arg=X),ur}},Te}function de(X,Te){if(I(X)!="object"||!X)return X;var $e=X[Symbol.toPrimitive];if($e!==void 0){var ze=$e.call(X,Te||"default");if(I(ze)!="object")return ze;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Te==="string"?String:Number)(X)}function Y(X){var Te=de(X,"string");return I(Te)=="symbol"?Te:String(Te)}function A(X,Te,$e){return Te=Y(Te),Te in X?Object.defineProperty(X,Te,{value:$e,enumerable:!0,configurable:!0,writable:!0}):X[Te]=$e,X}function F(X,Te){var $e=Object.keys(X);if(Object.getOwnPropertySymbols){var ze=Object.getOwnPropertySymbols(X);Te&&(ze=ze.filter(function(Et){return Object.getOwnPropertyDescriptor(X,Et).enumerable})),$e.push.apply($e,ze)}return $e}function j(X){for(var Te=1;TeX.length)&&(Te=X.length);for(var $e=0,ze=new Array(Te);$e=X.length?{done:!0}:{done:!1,value:X[ze++]}},e:function(ke){throw ke},f:Et}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xt(O,P){if(O){if(typeof O=="string")return kr(O,P);var R=Object.prototype.toString.call(O).slice(8,-1);if(R==="Object"&&O.constructor&&(R=O.constructor.name),R==="Map"||R==="Set")return Array.from(O);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return kr(O,P)}}function kr(O,P){(P==null||P>O.length)&&(P=O.length);for(var R=0,se=new Array(P);R{var P=Object.create;var I=Object.defineProperty;var z=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames,R=Object.getOwnPropertySymbols,B=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable;var O=(e,t,i)=>t in e?I(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,M=(e,t)=>{for(var i in t||(t={}))E.call(t,i)&&O(e,i,t[i]);if(R)for(var i of R(t))L.call(t,i)&&O(e,i,t[i]);return e};var F=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var N=(e,t,i,h)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of D(t))!E.call(e,a)&&a!==i&&I(e,a,{get:()=>t[a],enumerable:!(h=z(t,a))||h.enumerable});return e};var W=(e,t,i)=>(i=e!=null?P(B(e)):{},N(t||!e||!e.__esModule?I(i,"default",{value:e,enumerable:!0}):i,e));var j=F((K,w)=>{w.exports=function(e){var t={};function i(h){if(t[h])return t[h].exports;var a=t[h]={exports:{},id:h,loaded:!1};return e[h].call(a.exports,a,a.exports,i),a.loaded=!0,a.exports}return i.m=e,i.c=t,i.p="",i(0)}([function(e,t,i){e.exports=i(1)},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var h=i(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return h.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return h.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return h.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return h.findChunks}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=t.findAll=function(s){var n=s.autoEscape,g=s.caseSensitive,f=g===void 0?!1:g,p=s.findChunks,u=p===void 0?a:p,c=s.sanitize,v=s.searchWords,T=s.textToHighlight;return l({chunksToHighlight:h({chunks:u({autoEscape:n,caseSensitive:f,sanitize:c,searchWords:v,textToHighlight:T})}),totalLength:T?T.length:0})},h=t.combineChunks=function(s){var n=s.chunks;return n=n.sort(function(g,f){return g.start-f.start}).reduce(function(g,f){if(g.length===0)return[f];var p=g.pop();if(f.start<=p.end){var u=Math.max(p.end,f.end);g.push({highlight:!1,start:p.start,end:u})}else g.push(p,f);return g},[]),n},a=function(s){var n=s.autoEscape,g=s.caseSensitive,f=s.sanitize,p=f===void 0?d:f,u=s.searchWords,c=s.textToHighlight;return c=p(c),u.filter(function(v){return v}).reduce(function(v,T){T=p(T),n&&(T=r(T));for(var m=new RegExp(T,g?"g":"gi"),x=void 0;x=m.exec(c);){var S=x.index,$=m.lastIndex;$>S&&v.push({highlight:!1,start:S,end:$}),x.index===m.lastIndex&&m.lastIndex++}return v},[])};t.findChunks=a;var l=t.fillInChunks=function(s){var n=s.chunksToHighlight,g=s.totalLength,f=[],p=function(v,T,m){T-v>0&&f.push({start:v,end:T,highlight:m})};if(n.length===0)p(0,g,!1);else{var u=0;n.forEach(function(c){p(u,c.start,!1),p(c.start,c.end,!0),u=c.end}),p(u,g,!1)}return f};function d(o){return o}function r(o){return o.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,"\\\\$&")}}])});var C=W(j());var H="tab";function k(e,t,i,h,a){let l=a!==void 0;return h.reduce((r,o)=>(o.tocIndex===a&&(r[o.paraId]=(r[o.paraId]||"").concat(o.value)),r),[]).filter(Boolean).length||l?{rawTitle:e,title:t,link:i,paragraphs:h.reduce((r,o)=>{var s,n;return o.tocIndex===a&&((n=r[s=o.paraId])!=null||(r[s]=""),r[o.paraId]+=o.value),r},[]).filter(Boolean)}:null}function y(e){return[e.title,e.subtitle].filter(Boolean).join(" ")}function _(e,t,i){let h=[],a=Object.values(t).reduce((l,d)=>{var r,o;return d.asset&&((o=l[r=d.routeId])!=null||(l[r]=[]),l[d.routeId].push(d)),l},{});return Object.values(e).forEach(l=>{var d;if("meta"in l&&!("isLayout"in l)){let r=l.meta,o=l.path.replace(/^([^/])/,"/$1")||"/",s=i.find(u=>o===u.link||o.startsWith(`${u.activePath}/`)),n=(a[l.id]||[]).map(u=>{var c;return(c=u.asset)==null?void 0:c.id}),g=k("",y(r.frontmatter),o,r.texts),f=r.toc.reduce((u,c,v)=>{if(!n.includes(c.id)&&c.depth>=1){let T=y(r.frontmatter);c.depth!==1&&(T=`${T} - ${c.title}`),u.push(k(c.title,T,`${o}#${c.id}`,r.texts,v))}return u},[]),p=(r.tabs||[]).reduce((u,{key:c,meta:v})=>{let T=k("",`${y(r.frontmatter)} - ${v.frontmatter.title}`,`${o}?${H}=${c}`,v.texts);return T&&u.push(T),u.push(...v.toc.map((m,x)=>k(m.title,`${y(r.frontmatter)} - ${v.frontmatter.title} - ${m.title}`,`${o}?${H}=${c}#${m.id}`,v.texts,x))),u},[]);h.push({navTitle:s==null?void 0:s.title,navOrder:s?i.indexOf(s):1/0,title:y(r.frontmatter),link:o,sections:[...g?[g]:[],...f,...p],demos:((d=a[l.id])==null?void 0:d.map(u=>({link:`${o}#${u.asset.id}`,rawTitle:u.asset.title||"",title:u.asset.title||y(r.frontmatter),description:u.asset.description||"",keywords:u.asset.keywords||[]})))||[]})}}),h}function b(e="",t,i=1){let h=(0,C.findAll)({textToHighlight:e,searchWords:t,autoEscape:!0}),a={};return[h.map(({start:l,end:d,highlight:r},o)=>{let s={text:e.slice(l,d)};return o===0&&!r&&h.length>1&&s.text.length>20&&(s.text=`...${s.text.slice(-20)}`),r&&(s.highlighted=!0,a[t.find(n=>s.text.includes(n))]=i),s}),a]}function Y(e,t){let i=t.split(" "),h=new RegExp(t.replace(/[.*+?^${}()|[\\]\\\\]/g,"\\\\$&").replace(/\\s+/g,"|"),"i"),a={};return e.forEach(l=>{var o,s;let d=l.title,r=[];if(l.sections.forEach(n=>{for(let g of n.paragraphs)if(h.test(g)){let[f,p]=b(n.title,i,10),[u,c]=b(g,i);r.push({type:"content",link:n.link,priority:Object.values(M(M({},c),p)).reduce((v,T)=>v+T,0),highlightTitleTexts:f,highlightTexts:u,pageTitle:d});return}if(h.test(n.rawTitle)&&!h.test(l.title)){let[g,f]=b(n.title,i,10);r.push({type:"title",link:n.link,priority:Object.values(f).reduce((p,u)=>p+u,0),highlightTitleTexts:g,highlightTexts:b(n.paragraphs[0]||"",i)[0],pageTitle:d})}}),l.demos.forEach(n=>{if(h.test(n.rawTitle)||h.test(n.description)){let[g,f]=b(n.title,i,10),[p,u]=b(n.description,i);r.push({type:"demo",link:n.link,priority:Object.values(M(M({},u),f)).reduce((c,v)=>c+v,0),highlightTitleTexts:g,highlightTexts:p,pageTitle:d})}}),h.test(l.title)){let[n,g]=b(l.title,i,100);r.push({type:"page",link:l.link,priority:Object.values(g).reduce((f,p)=>f+p,0),highlightTitleTexts:n,highlightTexts:b(((o=l.sections[0])==null?void 0:o.paragraphs[0])||"",i)[0],pageTitle:d})}if(r.length){let n=l.navTitle||"$ROOT";(s=a[n])!=null||(a[n]={title:l.navTitle,priority:l.navOrder*1e3,hints:[]}),a[n].hints.push(...r)}}),Object.values(a).forEach(({hints:l})=>{l.sort((d,r)=>r.priority-d.priority)}),Object.values(a).sort((l,d)=>d.priority-l.priority)}var A;self.onmessage=({data:e})=>{switch(e.action){case"generate-metadata":A=_(e.args.routes,e.args.demos,e.args.nav);break;case"get-search-result":self.postMessage(Y(A,e.args.keywords));break;default:}};})();\n'],{type:"application/javascript"}))));var Nr=function(){var P=(0,a.useRef)(),R=(0,a.useState)(!1),se=Rr(R,2),Ne=se[0],Le=se[1],Xe=(0,a.useState)(""),He=Rr(Xe,2),We=He[0],ot=He[1],Rt=_a(),It=(0,a.useState)([]),Ft=Rr(It,2),$t=Ft[0],kt=Ft[1],Tr=Vr(),Er=Rr(Tr,2),ir=Er[0],Dr=Er[1],pn=(0,a.useCallback)(function(Pn){Dr(),Le(!0),ot(Pn)},[]),Xr=ir==null?void 0:ir[0],jn=ir==null?void 0:ir[1];return(0,a.useEffect)(function(){Wr.onmessage=function(Pn){kt(Pn.data),Le(!1)}},[]),(0,a.useEffect)(function(){!Xr||!jn||Wr.postMessage({action:"generate-metadata",args:{routes:JSON.parse(JSON.stringify(Xr)),nav:Rt,demos:jn}})},[Xr,jn,Rt]),(0,a.useEffect)(function(){if(Xr){var Pn=We.trim();Pn?(clearTimeout(P.current),P.current=window.setTimeout(function(){Wr.postMessage({action:"get-search-result",args:{keywords:Pn}})},200)):kt([])}},[We,Xr]),{keywords:We,setKeywords:pn,result:$t,loading:Ne,load:Dr}},gr=e(23408)},90482:function(d,h,e){"use strict";e.d(h,{k:function(){return n},s:function(){return o}});var n=[{id:"zh-CN",name:"\u4E2D\u6587",base:"/"}],o={"en-US":{"header.search.placeholder":"Type keywords...","header.color.mode.light":"Light Mode","header.color.mode.dark":"Dark Mode","header.color.mode.auto":"Follow System","header.social.github":"GitHub","header.social.weibo":"Weibo","header.social.twitter":"Twitter","header.social.x":"X","header.social.gitlab":"GitLab","header.social.facebook":"Facebook","header.social.zhihu":"Zhihu","header.social.yuque":"Yuque","header.social.linkedin":"Linkedin","previewer.actions.code.expand":"Show Code","previewer.actions.code.shrink":"Hide Code","previewer.actions.code.editable":"Edit code with real-time preview","previewer.actions.code.readonly":"Only index file is editable","previewer.actions.sketch":"Copy to Sketch app","previewer.actions.sketch.group":"Copy as Sketch Group","previewer.actions.sketch.symbol":"Copy as Sketch Symbol","previewer.actions.sketch.divider":"------------------------","previewer.actions.sketch.guide":"How to paste to Sketch?","previewer.actions.codesandbox":"Open in CodeSandbox","previewer.actions.codepen":"Open in CodePen (Not implemented)","previewer.actions.stackblitz":"Open in StackBlitz","previewer.actions.separate":"Open in separate page","404.title":"PAGE NOT FOUND","404.back":"Back to homepage","api.component.name":"Name","api.component.description":"Description","api.component.type":"Type","api.component.default":"Default","api.component.required":"(required)","api.component.release.alpha":"Alpha","api.component.release.beta":"Beta","api.component.release.experimental":"Experimental","api.component.release.deprecated":"Deprecated","api.component.unavailable":"apiParser must be enabled to use auto-generated API","api.component.loading":"Properties definition is resolving, wait a moment...","api.component.not.found":"Properties definition not found for {id} component","content.tabs.default":"Doc","content.footer.last.updated":"Last updated: ","content.footer.actions.edit":"Improve this documentation","content.footer.actions.previous":"PREV","content.footer.actions.next":"NEXT","search.not.found":"No content was found","search.loading":"Loading...","layout.sidebar.btn":"Sidebar"},"zh-CN":{"header.search.placeholder":"\u8F93\u5165\u5173\u952E\u5B57\u641C\u7D22...","header.color.mode.light":"\u4EAE\u8272\u6A21\u5F0F","header.color.mode.dark":"\u6697\u8272\u6A21\u5F0F","header.color.mode.auto":"\u8DDF\u968F\u7CFB\u7EDF","header.social.github":"GitHub","header.social.weibo":"\u5FAE\u535A","header.social.twitter":"Twitter","header.social.x":"X","header.social.gitlab":"GitLab","header.social.facebook":"Facebook","header.social.zhihu":"\u77E5\u4E4E","header.social.yuque":"\u8BED\u96C0","header.social.linkedin":"Linkedin","previewer.actions.code.expand":"\u5C55\u5F00\u4EE3\u7801","previewer.actions.code.shrink":"\u6536\u8D77\u4EE3\u7801","previewer.actions.code.editable":"\u7F16\u8F91\u4EE3\u7801\u53EF\u5B9E\u65F6\u9884\u89C8","previewer.actions.code.readonly":"\u4EC5 index \u53EF\u7F16\u8F91","previewer.actions.codesandbox":"\u5728 CodeSandbox \u4E2D\u6253\u5F00","previewer.actions.sketch":"\u62F7\u8D1D\u5230 Sketch","previewer.actions.sketch.group":"\u62F7\u8D1D\u4E3A Sketch Group","previewer.actions.sketch.symbol":"\u62F7\u8D1D\u4E3A Sketch Symbol","previewer.actions.sketch.divider":"----------------------","previewer.actions.sketch.guide":"\u5982\u4F55\u7C98\u8D34\u5230 SKetch\uFF1F","previewer.actions.stackblitz":"\u5728 StackBlitz \u4E2D\u6253\u5F00","previewer.actions.separate":"\u5728\u72EC\u7ACB\u9875\u9762\u4E2D\u6253\u5F00","404.title":"\u9875\u9762\u672A\u627E\u5230","404.back":"\u8FD4\u56DE\u9996\u9875","api.component.name":"\u5C5E\u6027\u540D","api.component.description":"\u63CF\u8FF0","api.component.type":"\u7C7B\u578B","api.component.default":"\u9ED8\u8BA4\u503C","api.component.required":"(\u5FC5\u9009)","api.component.release.alpha":"Alpha","api.component.release.beta":"Beta","api.component.release.experimental":"\u5B9E\u9A8C\u6027","api.component.release.deprecated":"\u5E9F\u5F03","api.component.unavailable":"\u5FC5\u987B\u542F\u7528 apiParser \u624D\u80FD\u4F7F\u7528\u81EA\u52A8 API \u7279\u6027","api.component.loading":"\u5C5E\u6027\u5B9A\u4E49\u6B63\u5728\u89E3\u6790\u4E2D\uFF0C\u7A0D\u7B49\u7247\u523B...","api.component.not.found":"\u672A\u627E\u5230 {id} \u7EC4\u4EF6\u7684\u5C5E\u6027\u5B9A\u4E49","content.tabs.default":"\u6587\u6863","content.footer.last.updated":"\u6700\u540E\u66F4\u65B0\u65F6\u95F4\uFF1A","content.footer.actions.edit":"\u5E2E\u52A9\u6539\u8FDB\u6B64\u6587\u6863","content.footer.actions.previous":"\u4E0A\u4E00\u7BC7","content.footer.actions.next":"\u4E0B\u4E00\u7BC7","search.not.found":"\u672A\u627E\u5230\u76F8\u5173\u5185\u5BB9","search.loading":"\u52A0\u8F7D\u4E2D...","layout.sidebar.btn":"\u4FA7\u8FB9\u83DC\u5355"}}},23408:function(d,h,e){"use strict";e.d(h,{EQ:function(){return G},TR:function(){return fe},lZ:function(){return H},FO:function(){return N}});var n=e(5574),o=e.n(n),a=e(15009),i=e.n(a),c=e(97857),f=e.n(c),s=e(99289),p=e.n(s),y=e(68537);const v=[{id:"install",depth:2,title:"Install"},{id:"usage",depth:2,title:"Usage"},{id:"styles",depth:3,title:"styles"},{id:"import",depth:3,title:"import"}],l={title:"Docs",toc:"menu",filename:"docs/index.md",lastUpdated:1734339367e3,hero:{title:"databend-profile-ui",description:"profiles for databend",actions:[{text:"Start",link:"/components/query-profile"}]}},g={ids:[],getter:()=>e.e(904).then(e.bind(e,11171))};var S=e(97753);const b=[{id:"query-profile",depth:3,title:"Query Profile"},{id:"test-query-profile",depth:3,title:"Test Query Profile"},{id:"queryprofile-props",depth:3,title:"QueryProfile props"}],E={title:"Query Profile",toc:"menu",filename:"src/QueryProfile/index.md",atomId:"QueryProfile",lastUpdated:1734339367e3},w={ids:["queryprofile-demo-0","queryprofile-demo-1"],getter:()=>Promise.all([e.e(843),e.e(152)]).then(e.bind(e,25840))};var x={},D={"docs/index":{frontmatter:l,toc:v,demoIndex:g,textGetter:function(){return e.e(904).then(e.bind(e,51446))}},"components/QueryProfile/index":{frontmatter:E,toc:b,demoIndex:w,textGetter:function(){return Promise.all([e.e(843),e.e(152)]).then(e.bind(e,14633))}}};function k(oe){if(oe.status==="fulfilled")return oe.value;throw oe.status==="rejected"?oe.reason:(oe.status==="pending"||(oe.status="pending",oe.then(function(ae){oe.status="fulfilled",oe.value=ae},function(ae){oe.status="rejected",oe.reason=ae})),oe)}var K=Object.keys(D).reduce(function(oe,ae){if(D[ae].demoIndex){var ie=D[ae].demoIndex,U=ie.ids,q=ie.getter;U.forEach(function(te){oe[te]=q})}return oe},{}),M=new Map;function _(oe){oe&&Object.keys(oe).forEach(function(ae){var ie,U=(ie=ae.match(/^(.+)\.(js|jsx|ts|tsx|json)$/))===null||ie===void 0?void 0:ie[1];U&&!oe[U]&&(oe[U]=oe[ae])})}function N(oe){if(!M.get(oe)){var ae;M.set(oe,(ae=K[oe])===null||ae===void 0?void 0:ae.call(K).then(function(ie){var U=ie.demos;return _(U[oe].context),U[oe]}))}return k(M.get(oe))}function G(){return W.apply(this,arguments)}function W(){return W=p()(i()().mark(function oe(){var ae;return i()().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return ae=Object.entries(D).filter(function(q){var te=o()(q,2),Q=te[0],I=te[1];return I.demoIndex}),U.abrupt("return",Promise.all(ae.map(function(){var q=p()(i()().mark(function te(Q){var I,V,de;return i()().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return I=o()(Q,2),V=I[0],de=I[1],A.t0=V,A.next=4,de.demoIndex.getter();case 4:return A.t1=A.sent.demos,A.abrupt("return",{id:A.t0,demos:A.t1});case 6:case"end":return A.stop()}},te)}));return function(te){return q.apply(this,arguments)}}())).then(function(q){return q.reduce(function(te,Q){var I=Q.id,V=Q.demos;return Object.values(V).forEach(function(de){de.routeId=I,_(de.context)}),Object.assign(te,V),te},{})}));case 2:case"end":return U.stop()}},oe)})),W.apply(this,arguments)}function B(oe,ae){return f()(f()({},x[oe]),{},{meta:ae!=null?ae:{frontmatter:{title:x[oe].title},toc:[],texts:[]}})}function H(oe,ae){if(D[oe]){var ie=D[oe],U=ie.frontmatter,q=ie.toc,te=ie.textGetter,Q=ie.tabs,I={frontmatter:U,toc:q,texts:[]};return ae!=null&&ae.syncOnly?(Q&&(I.tabs=Q.map(function(V){return B(V,H(V,ae))})),I):new Promise(function(){var V=p()(i()().mark(function de(Y){var A;return i()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:if(!te){j.next=5;break}return j.next=3,te();case 3:A=j.sent,I.texts=A.texts;case 5:if(!Q){j.next=9;break}return j.next=8,Promise.all(Q.map(function(){var z=p()(i()().mark(function ee(xe){return i()().wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:return Ye.t0=B,Ye.t1=xe,Ye.next=4,H(xe,ae);case 4:return Ye.t2=Ye.sent,Ye.abrupt("return",(0,Ye.t0)(Ye.t1,Ye.t2));case 6:case"end":return Ye.stop()}},ee)}));return function(ee){return z.apply(this,arguments)}}()));case 8:I.tabs=j.sent;case 9:Y(I);case 10:case"end":return j.stop()}},de)}));return function(de){return V.apply(this,arguments)}}())}}function fe(){return he.apply(this,arguments)}function he(){return he=p()(i()().mark(function oe(){return i()().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.next=2,Promise.all(Object.keys(D).map(function(){var U=p()(i()().mark(function q(te){return i()().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.t0=te,I.next=3,H(te);case 3:return I.t1=I.sent,I.abrupt("return",{id:I.t0,meta:I.t1});case 5:case"end":return I.stop()}},q)}));return function(q){return U.apply(this,arguments)}}())).then(function(U){return U.reduce(function(q,te){var Q=te.id,I=te.meta;return q[Q]=I,q},{})});case 2:return ie.abrupt("return",ie.sent);case 3:case"end":return ie.stop()}},oe)})),he.apply(this,arguments)}},24422:function(d,h,e){"use strict";e.d(h,{Z:function(){return n.Z}});var n=e(24268)},80936:function(d,h,e){"use strict";e.d(h,{Z:function(){return b}});var n=e(74865),o=e.n(n),a=e(67294);const i=a.createContext({}),c=!0;function f({baseColor:E,highlightColor:w,width:x,height:D,borderRadius:k,circle:K,direction:M,duration:_,enableAnimation:N=c,customHighlightBackground:G}){const W={};return M==="rtl"&&(W["--animation-direction"]="reverse"),typeof _=="number"&&(W["--animation-duration"]=`${_}s`),N||(W["--pseudo-element-display"]="none"),(typeof x=="string"||typeof x=="number")&&(W.width=x),(typeof D=="string"||typeof D=="number")&&(W.height=D),(typeof k=="string"||typeof k=="number")&&(W.borderRadius=k),K&&(W.borderRadius="50%"),typeof E!="undefined"&&(W["--base-color"]=E),typeof w!="undefined"&&(W["--highlight-color"]=w),typeof G=="string"&&(W["--custom-highlight-background"]=G),W}function s(N){var G=N,{count:E=1,wrapper:w,className:x,containerClassName:D,containerTestId:k,circle:K=!1,style:M}=G,_=hl(G,["count","wrapper","className","containerClassName","containerTestId","circle","style"]);var W,B,H;const fe=a.useContext(i),he=du({},_);for(const[Q,I]of Object.entries(_))typeof I=="undefined"&&delete he[Q];const oe=Ss(du(du({},fe),he),{circle:K}),ae=du(du({},M),f(oe));let ie="react-loading-skeleton";x&&(ie+=` ${x}`);const U=(W=oe.inline)!==null&&W!==void 0?W:!1,q=[],te=Math.ceil(E);for(let Q=0;QE&&Q===te-1){const de=(B=I.width)!==null&&B!==void 0?B:"100%",Y=E%1,A=typeof de=="number"?de*Y:`calc(${de} * ${Y})`;I=Ss(du({},I),{width:A})}const V=a.createElement("span",{className:ie,style:I,key:Q},"\u200C");U?q.push(V):q.push(a.createElement(a.Fragment,{key:Q},V,a.createElement("br",null)))}return a.createElement("span",{className:D,"data-testid":k,"aria-live":"polite","aria-busy":(H=oe.enableAnimation)!==null&&H!==void 0?H:c},w?q.map((Q,I)=>a.createElement(w,{key:I},Q)):q)}function p(x){var D=x,{children:E}=D,w=hl(D,["children"]);return React.createElement(i.Provider,{value:w},E)}var y=function(){return a.createElement("div",{className:"dumi-default-loading-skeleton"},a.createElement(s,{className:"first-line",count:1}),a.createElement(s,{count:2}),a.createElement(s,{count:1,width:"75%"}))},v=y,l=e(53683),g=e(85893),S=function(){var w=(0,l.WF)(),x=w.setLoading;return(0,a.useLayoutEffect)(function(){return x(!0),o().start(),function(){x(!1),o().done()}},[]),(0,g.jsx)(v,{})},b=S},17932:function(d,h,e){"use strict";e.d(h,{Ac:function(){return ye},ql:function(){return te.ql},rU:function(){return q},OL:function(){return N},Q$:function(){return Re},p6:function(){return y},m8:function(){return Je.m8},fp:function(){return l.fp},Ov:function(){return he.Ov},TH:function(){return l.TH},pC:function(){return l.pC},UO:function(){return l.UO},Qt:function(){return Q.Q},lr:function(){return W}});var n=e(15009),o=e(99289),a=e(53683),i=e(6185),c=typeof window!="undefined"?window.html2sketch:null;function f(X,Te){return s.apply(this,arguments)}function s(){return s=_asyncToGenerator(_regeneratorRuntime().mark(function X(Te,$e){return _regeneratorRuntime().wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:if($e.type!=="group"){Et.next=6;break}return Et.next=3,c.nodeToGroup(Te);case 3:Et.t0=Et.sent.toSketchJSON(),Et.next=9;break;case 6:return Et.next=8,c.nodeToSymbol(Te);case 8:Et.t0=Et.sent.toSketchJSON();case 9:return Et.abrupt("return",Et.t0);case 10:case"end":return Et.stop()}},X)})),s.apply(this,arguments)}function p(X,Te){return getPluginManager().applyPlugins({key:"toSketchJSON",type:ApplyPluginsType.modify,initialValue:null,args:{target:X,opts:Te},async:!0})}var y=null,v=e(67294),l=e(96974),g=e(55648);function S(){return S=Object.assign||function(X){for(var Te=1;Te=0)&&($e[Et]=X[Et]);return $e}const E=["onClick","reloadDocument","replace","state","target","to"],w=["aria-current","caseSensitive","className","end","style","to","children"];function x(X,Te){if(!X){typeof console!="undefined"&&console.warn(Te);try{throw new Error(Te)}catch($e){}}}function D(X){let{basename:Te,children:$e,window:ze}=X,Et=useRef();Et.current==null&&(Et.current=createBrowserHistory({window:ze}));let ut=Et.current,[be,Ue]=useState({action:ut.action,location:ut.location});return useLayoutEffect(()=>ut.listen(Ue),[ut]),createElement(Router,{basename:Te,children:$e,location:be.location,navigationType:be.action,navigator:ut})}function k(X){let{basename:Te,children:$e,window:ze}=X,Et=useRef();Et.current==null&&(Et.current=createHashHistory({window:ze}));let ut=Et.current,[be,Ue]=useState({action:ut.action,location:ut.location});return useLayoutEffect(()=>ut.listen(Ue),[ut]),createElement(Router,{basename:Te,children:$e,location:be.location,navigationType:be.action,navigator:ut})}function K(X){let{basename:Te,children:$e,history:ze}=X;const[Et,ut]=useState({action:ze.action,location:ze.location});return useLayoutEffect(()=>ze.listen(ut),[ze]),createElement(Router,{basename:Te,children:$e,location:Et.location,navigationType:Et.action,navigator:ze})}function M(X){return!!(X.metaKey||X.altKey||X.ctrlKey||X.shiftKey)}const _=(0,v.forwardRef)(function(Te,$e){let{onClick:ze,reloadDocument:Et,replace:ut=!1,state:be,target:Ue,to:_e}=Te,ke=b(Te,E),vt=(0,l.oQ)(_e),bt=G(_e,{replace:ut,state:be,target:Ue});function Nt(Kt){ze&&ze(Kt),!Kt.defaultPrevented&&!Et&&bt(Kt)}return(0,v.createElement)("a",S({},ke,{href:vt,onClick:Nt,ref:$e,target:Ue}))}),N=(0,v.forwardRef)(function(Te,$e){let{"aria-current":ze="page",caseSensitive:Et=!1,className:ut="",end:be=!1,style:Ue,to:_e,children:ke}=Te,vt=b(Te,w),bt=(0,l.TH)(),Nt=(0,l.WU)(_e),Kt=bt.pathname,tr=Nt.pathname;Et||(Kt=Kt.toLowerCase(),tr=tr.toLowerCase());let Bt=Kt===tr||!be&&Kt.startsWith(tr)&&Kt.charAt(tr.length)==="/",ur=Bt?ze:void 0,vr;typeof ut=="function"?vr=ut({isActive:Bt}):vr=[ut,Bt?"active":null].filter(Boolean).join(" ");let zr=typeof Ue=="function"?Ue({isActive:Bt}):Ue;return(0,v.createElement)(_,S({},vt,{"aria-current":ur,className:vr,ref:$e,style:zr,to:_e}),typeof ke=="function"?ke({isActive:Bt}):ke)});function G(X,Te){let{target:$e,replace:ze,state:Et}=Te===void 0?{}:Te,ut=(0,l.s0)(),be=(0,l.TH)(),Ue=(0,l.WU)(X);return(0,v.useCallback)(_e=>{if(_e.button===0&&(!$e||$e==="_self")&&!M(_e)){_e.preventDefault();let ke=!!ze||(0,g.Ep)(be)===(0,g.Ep)(Ue);ut(X,{replace:ke,state:Et})}},[be,ut,Ue,ze,Et,$e,X])}function W(X){let Te=(0,v.useRef)(B(X)),$e=(0,l.TH)(),ze=(0,v.useMemo)(()=>{let be=B($e.search);for(let Ue of Te.current.keys())be.has(Ue)||Te.current.getAll(Ue).forEach(_e=>{be.append(Ue,_e)});return be},[$e.search]),Et=(0,l.s0)(),ut=(0,v.useCallback)((be,Ue)=>{Et("?"+B(be),Ue)},[Et]);return[ze,ut]}function B(X){return X===void 0&&(X=""),new URLSearchParams(typeof X=="string"||Array.isArray(X)||X instanceof URLSearchParams?X:Object.keys(X).reduce((Te,$e)=>{let ze=X[$e];return Te.concat(Array.isArray(ze)?ze.map(Et=>[$e,Et]):[[$e,ze]])},[]))}var H=e(58096),fe=e(49647),he=e(34162),oe=e(48804);function ae(X,Te){var $e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ze=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(typeof IntersectionObserver!="function")return null;var Et=v.useRef(typeof IntersectionObserver=="function"),ut=v.useRef(null);return v.useEffect(function(){if(!(!X.current||!Et.current||ze.disabled))return ut.current=new IntersectionObserver(function(be){var Ue=(0,oe.Z)(be,1),_e=Ue[0];Te(_e)},$e),ut.current.observe(X.current),function(){var be;(be=ut.current)===null||be===void 0||be.disconnect()}},[Te,$e,ze.disabled,X]),ut.current}var ie=["prefetch"];function U(X){var Te=v.useRef(null);return v.useEffect(function(){X&&(typeof X=="function"?X(Te.current):X.current=Te.current)}),Te}var q=v.forwardRef(function(X,Te){var $e,ze=X.prefetch,Et=(0,fe.Z)(X,ie),ut=typeof window!="undefined"&&window.__umi_route_prefetch__||{defaultPrefetch:"none",defaultPrefetchTimeout:50},be=ut.defaultPrefetch,Ue=ut.defaultPrefetchTimeout,_e=(ze===!0?"intent":ze===!1?"none":ze)||be;if(!["intent","render","viewport","none"].includes(_e))throw new Error("Invalid prefetch value ".concat(_e," found in Link component"));var ke=(0,he.Ov)(),vt=typeof X.to=="string"?X.to:($e=X.to)===null||$e===void 0?void 0:$e.pathname,bt=v.useRef(!1),Nt=U(Te),Kt=function(ur){if(_e==="intent"){var vr=ur.target||{};vr.preloadTimeout||(vr.preloadTimeout=setTimeout(function(){var zr;vr.preloadTimeout=null,(zr=ke.preloadRoute)===null||zr===void 0||zr.call(ke,vt)},X.prefetchTimeout||Ue))}},tr=function(ur){if(_e==="intent"){var vr=ur.target||{};vr.preloadTimeout&&(clearTimeout(vr.preloadTimeout),vr.preloadTimeout=null)}};return(0,v.useLayoutEffect)(function(){if(_e==="render"&&!bt.current){var Bt;(Bt=ke.preloadRoute)===null||Bt===void 0||Bt.call(ke,vt),bt.current=!0}},[_e,vt]),ae(Nt,function(Bt){if(Bt!=null&&Bt.isIntersecting){var ur;(ur=ke.preloadRoute)===null||ur===void 0||ur.call(ke,vt)}},{rootMargin:"100px"},{disabled:_e!=="viewport"}),vt?v.createElement(_,(0,H.Z)({onMouseEnter:Kt,onMouseLeave:tr,ref:Nt},Et),X.children):null}),te=e(70405),Q=e(59918);function I(X){"@babel/helpers - typeof";return I=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Te){return typeof Te}:function(Te){return Te&&typeof Symbol=="function"&&Te.constructor===Symbol&&Te!==Symbol.prototype?"symbol":typeof Te},I(X)}function V(){"use strict";V=function(){return Te};var X,Te={},$e=Object.prototype,ze=$e.hasOwnProperty,Et=Object.defineProperty||function(pr,Gt,Jt){pr[Gt]=Jt.value},ut=typeof Symbol=="function"?Symbol:{},be=ut.iterator||"@@iterator",Ue=ut.asyncIterator||"@@asyncIterator",_e=ut.toStringTag||"@@toStringTag";function ke(pr,Gt,Jt){return Object.defineProperty(pr,Gt,{value:Jt,enumerable:!0,configurable:!0,writable:!0}),pr[Gt]}try{ke({},"")}catch(pr){ke=function(Jt,Cr,Sr){return Jt[Cr]=Sr}}function vt(pr,Gt,Jt,Cr){var Sr=Gt&&Gt.prototype instanceof vr?Gt:vr,Kr=Object.create(Sr.prototype),kn=new Pa(Cr||[]);return Et(Kr,"_invoke",{value:wn(pr,Jt,kn)}),Kr}function bt(pr,Gt,Jt){try{return{type:"normal",arg:pr.call(Gt,Jt)}}catch(Cr){return{type:"throw",arg:Cr}}}Te.wrap=vt;var Nt="suspendedStart",Kt="suspendedYield",tr="executing",Bt="completed",ur={};function vr(){}function zr(){}function nn(){}var Nn={};ke(Nn,be,function(){return this});var Sn=Object.getPrototypeOf,On=Sn&&Sn(Sn(oa([])));On&&On!==$e&&ze.call(On,be)&&(Nn=On);var qr=nn.prototype=vr.prototype=Object.create(Nn);function bn(pr){["next","throw","return"].forEach(function(Gt){ke(pr,Gt,function(Jt){return this._invoke(Gt,Jt)})})}function Un(pr,Gt){function Jt(Sr,Kr,kn,Zn){var Jn=bt(pr[Sr],pr,Kr);if(Jn.type!=="throw"){var ha=Jn.arg,Tn=ha.value;return Tn&&I(Tn)=="object"&&ze.call(Tn,"__await")?Gt.resolve(Tn.__await).then(function(ia){Jt("next",ia,kn,Zn)},function(ia){Jt("throw",ia,kn,Zn)}):Gt.resolve(Tn).then(function(ia){ha.value=ia,kn(ha)},function(ia){return Jt("throw",ia,kn,Zn)})}Zn(Jn.arg)}var Cr;Et(this,"_invoke",{value:function(Kr,kn){function Zn(){return new Gt(function(Jn,ha){Jt(Kr,kn,Jn,ha)})}return Cr=Cr?Cr.then(Zn,Zn):Zn()}})}function wn(pr,Gt,Jt){var Cr=Nt;return function(Sr,Kr){if(Cr===tr)throw new Error("Generator is already running");if(Cr===Bt){if(Sr==="throw")throw Kr;return{value:X,done:!0}}for(Jt.method=Sr,Jt.arg=Kr;;){var kn=Jt.delegate;if(kn){var Zn=gn(kn,Jt);if(Zn){if(Zn===ur)continue;return Zn}}if(Jt.method==="next")Jt.sent=Jt._sent=Jt.arg;else if(Jt.method==="throw"){if(Cr===Nt)throw Cr=Bt,Jt.arg;Jt.dispatchException(Jt.arg)}else Jt.method==="return"&&Jt.abrupt("return",Jt.arg);Cr=tr;var Jn=bt(pr,Gt,Jt);if(Jn.type==="normal"){if(Cr=Jt.done?Bt:Kt,Jn.arg===ur)continue;return{value:Jn.arg,done:Jt.done}}Jn.type==="throw"&&(Cr=Bt,Jt.method="throw",Jt.arg=Jn.arg)}}}function gn(pr,Gt){var Jt=Gt.method,Cr=pr.iterator[Jt];if(Cr===X)return Gt.delegate=null,Jt==="throw"&&pr.iterator.return&&(Gt.method="return",Gt.arg=X,gn(pr,Gt),Gt.method==="throw")||Jt!=="return"&&(Gt.method="throw",Gt.arg=new TypeError("The iterator does not provide a '"+Jt+"' method")),ur;var Sr=bt(Cr,pr.iterator,Gt.arg);if(Sr.type==="throw")return Gt.method="throw",Gt.arg=Sr.arg,Gt.delegate=null,ur;var Kr=Sr.arg;return Kr?Kr.done?(Gt[pr.resultName]=Kr.value,Gt.next=pr.nextLoc,Gt.method!=="return"&&(Gt.method="next",Gt.arg=X),Gt.delegate=null,ur):Kr:(Gt.method="throw",Gt.arg=new TypeError("iterator result is not an object"),Gt.delegate=null,ur)}function Qn(pr){var Gt={tryLoc:pr[0]};1 in pr&&(Gt.catchLoc=pr[1]),2 in pr&&(Gt.finallyLoc=pr[2],Gt.afterLoc=pr[3]),this.tryEntries.push(Gt)}function Ln(pr){var Gt=pr.completion||{};Gt.type="normal",delete Gt.arg,pr.completion=Gt}function Pa(pr){this.tryEntries=[{tryLoc:"root"}],pr.forEach(Qn,this),this.reset(!0)}function oa(pr){if(pr||pr===""){var Gt=pr[be];if(Gt)return Gt.call(pr);if(typeof pr.next=="function")return pr;if(!isNaN(pr.length)){var Jt=-1,Cr=function Sr(){for(;++Jt=0;--Sr){var Kr=this.tryEntries[Sr],kn=Kr.completion;if(Kr.tryLoc==="root")return Cr("end");if(Kr.tryLoc<=this.prev){var Zn=ze.call(Kr,"catchLoc"),Jn=ze.call(Kr,"finallyLoc");if(Zn&&Jn){if(this.prev=0;--Cr){var Sr=this.tryEntries[Cr];if(Sr.tryLoc<=this.prev&&ze.call(Sr,"finallyLoc")&&this.prev=0;--Jt){var Cr=this.tryEntries[Jt];if(Cr.finallyLoc===Gt)return this.complete(Cr.completion,Cr.afterLoc),Ln(Cr),ur}},catch:function(Gt){for(var Jt=this.tryEntries.length-1;Jt>=0;--Jt){var Cr=this.tryEntries[Jt];if(Cr.tryLoc===Gt){var Sr=Cr.completion;if(Sr.type==="throw"){var Kr=Sr.arg;Ln(Cr)}return Kr}}throw new Error("illegal catch attempt")},delegateYield:function(Gt,Jt,Cr){return this.delegate={iterator:oa(Gt),resultName:Jt,nextLoc:Cr},this.method==="next"&&(this.arg=X),ur}},Te}function de(X,Te){if(I(X)!="object"||!X)return X;var $e=X[Symbol.toPrimitive];if($e!==void 0){var ze=$e.call(X,Te||"default");if(I(ze)!="object")return ze;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Te==="string"?String:Number)(X)}function Y(X){var Te=de(X,"string");return I(Te)=="symbol"?Te:String(Te)}function A(X,Te,$e){return Te=Y(Te),Te in X?Object.defineProperty(X,Te,{value:$e,enumerable:!0,configurable:!0,writable:!0}):X[Te]=$e,X}function F(X,Te){var $e=Object.keys(X);if(Object.getOwnPropertySymbols){var ze=Object.getOwnPropertySymbols(X);Te&&(ze=ze.filter(function(Et){return Object.getOwnPropertyDescriptor(X,Et).enumerable})),$e.push.apply($e,ze)}return $e}function j(X){for(var Te=1;TeX.length)&&(Te=X.length);for(var $e=0,ze=new Array(Te);$e=X.length?{done:!0}:{done:!1,value:X[ze++]}},e:function(ke){throw ke},f:Et}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ut=!0,be=!1,Ue;return{s:function(){$e=$e.call(X)},n:function(){var ke=$e.next();return ut=ke.done,ke},e:function(ke){be=!0,Ue=ke},f:function(){try{!ut&&$e.return!=null&&$e.return()}finally{if(be)throw Ue}}}}function ct(X){if(Array.isArray(X))return X}function tt(X){if(typeof Symbol!="undefined"&&X[Symbol.iterator]!=null||X["@@iterator"]!=null)return Array.from(X)}function wt(){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 Z(X){return ct(X)||tt(X)||Pe(X)||wt()}function J(X,Te){if(!(X instanceof Te))throw new TypeError("Cannot call a class as a function")}function re(X,Te){for(var $e=0;$e-1,"register failed, invalid key ".concat(Et," ").concat($e.path?"from plugin ".concat($e.path):"",".")),ze.hooks[Et]=(ze.hooks[Et]||[]).concat($e.apply[Et])})}},{key:"getHooks",value:function($e){var ze=$e.split("."),Et=Z(ze),ut=Et[0],be=Et.slice(1),Ue=this.hooks[ut]||[];return be.length&&(Ue=Ue.map(function(_e){try{var ke=_e,vt=Ye(be),bt;try{for(vt.s();!(bt=vt.n()).done;){var Nt=bt.value;ke=ke[Nt]}}catch(Kt){vt.e(Kt)}finally{vt.f()}return ke}catch(Kt){return null}}).filter(Boolean)),Ue}},{key:"applyPlugins",value:function($e){var ze=$e.key,Et=$e.type,ut=$e.initialValue,be=$e.args,Ue=$e.async,_e=this.getHooks(ze)||[];switch(be&&Se(I(be)==="object","applyPlugins failed, args must be plain object."),Ue&&Se(Et===ye.modify||Et===ye.event,"async only works with modify and event type."),Et){case ye.modify:return Ue?_e.reduce(function(){var ke=ee(V().mark(function vt(bt,Nt){var Kt;return V().wrap(function(Bt){for(;;)switch(Bt.prev=Bt.next){case 0:if(Se(typeof Nt=="function"||I(Nt)==="object"||ve(Nt),"applyPlugins failed, all hooks for key ".concat(ze," must be function, plain object or Promise.")),!ve(bt)){Bt.next=5;break}return Bt.next=4,bt;case 4:bt=Bt.sent;case 5:if(typeof Nt!="function"){Bt.next=16;break}if(Kt=Nt(bt,be),!ve(Kt)){Bt.next=13;break}return Bt.next=10,Kt;case 10:return Bt.abrupt("return",Bt.sent);case 13:return Bt.abrupt("return",Kt);case 14:Bt.next=21;break;case 16:if(!ve(Nt)){Bt.next=20;break}return Bt.next=19,Nt;case 19:Nt=Bt.sent;case 20:return Bt.abrupt("return",j(j({},bt),Nt));case 21:case"end":return Bt.stop()}},vt)}));return function(vt,bt){return ke.apply(this,arguments)}}(),ve(ut)?ut:Promise.resolve(ut)):_e.reduce(function(ke,vt){return Se(typeof vt=="function"||I(vt)==="object","applyPlugins failed, all hooks for key ".concat(ze," must be function or plain object.")),typeof vt=="function"?vt(ke,be):j(j({},ke),vt)},ut);case ye.event:return ee(V().mark(function ke(){var vt,bt,Nt,Kt;return V().wrap(function(Bt){for(;;)switch(Bt.prev=Bt.next){case 0:vt=Ye(_e),Bt.prev=1,vt.s();case 3:if((bt=vt.n()).done){Bt.next=12;break}if(Nt=bt.value,Se(typeof Nt=="function","applyPlugins failed, all hooks for key ".concat(ze," must be function.")),Kt=Nt(be),!(Ue&&ve(Kt))){Bt.next=10;break}return Bt.next=10,Kt;case 10:Bt.next=3;break;case 12:Bt.next=17;break;case 14:Bt.prev=14,Bt.t0=Bt.catch(1),vt.e(Bt.t0);case 17:return Bt.prev=17,vt.f(),Bt.finish(17);case 20:case"end":return Bt.stop()}},ke,null,[[1,14,17,20]])}))();case ye.compose:return function(){return ue({fns:_e.concat(ut),args:be})()}}}}],[{key:"create",value:function($e){var ze=new X({validKeys:$e.validKeys});return $e.plugins.forEach(function(Et){ze.register(Et)}),ze}}]),X}(),Je=e(82651),Pt=e(52677),dt=e.n(Pt),pt=0,Ct=0;function zt(X,Te){if(0)var $e}function De(X){return JSON.stringify(X,null,2)}function yt(X){var Te=X.length>1?X.map(C).join(" "):X[0];return dt()(Te)==="object"?"".concat(De(Te)):Te.toString()}function C(X){return dt()(X)==="object"?"".concat(JSON.stringify(X)):X.toString()}var pe={log:function(){for(var Te=arguments.length,$e=new Array(Te),ze=0;zed.length)&&(h=d.length);for(var e=0,n=new Array(h);ek&&v(he,arguments[k]),he});if(W.prototype=N,M!=="Error"?c?c(W,G):f(W,G,{name:!0}):g&&D in _&&(s(W,_,D),s(W,_,"prepareStackTrace")),f(W,_),!S)try{N.name!==M&&a(N,"name",M),N.constructor=W}catch(B){}return W}}},54927:function(d,h,e){"use strict";var n=e(79989),o=e(76058),a=e(61735),i=e(3689),c=e(51064),f="AggregateError",s=o(f),p=!i(function(){return s([1]).errors[0]!==1})&&i(function(){return s([1],f,{cause:7}).cause!==7});n({global:!0,constructor:!0,arity:2,forced:p},{AggregateError:c(f,function(y){return function(l,g){return a(y,this,arguments)}},p,!0)})},39382:function(d,h,e){"use strict";var n=e(79989),o=e(23622),a=e(61868),i=e(49385),c=e(8758),f=e(25391),s=e(75773),p=e(75684),y=e(62570),v=e(65411),l=e(18734),g=e(13841),S=e(44201),b=S("toStringTag"),E=Error,w=[].push,x=function(K,M){var _=o(D,this),N;i?N=i(new E,_?a(this):D):(N=_?this:f(D),s(N,b,"Error")),M!==void 0&&s(N,"message",g(M)),v(N,x,N.stack,1),arguments.length>2&&y(N,arguments[2]);var G=[];return l(K,w,{that:G}),s(N,"errors",G),N};i?i(x,E):c(x,E,{name:!0});var D=x.prototype=f(E.prototype,{constructor:p(1,x),message:p(1,""),name:p(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:x})},95879:function(d,h,e){"use strict";e(39382)},92176:function(d,h,e){"use strict";var n=e(79989),o=e(90690),a=e(6310),i=e(68700),c=e(87370);n({target:"Array",proto:!0},{at:function(s){var p=o(this),y=a(p),v=i(s),l=v>=0?v:y+v;return l<0||l>=y?void 0:p[l]}}),c("at")},93383:function(d,h,e){"use strict";var n=e(79989),o=e(61969).findLastIndex,a=e(87370);n({target:"Array",proto:!0},{findLastIndex:function(c){return o(this,c,arguments.length>1?arguments[1]:void 0)}}),a("findLastIndex")},59867:function(d,h,e){"use strict";var n=e(79989),o=e(61969).findLast,a=e(87370);n({target:"Array",proto:!0},{findLast:function(c){return o(this,c,arguments.length>1?arguments[1]:void 0)}}),a("findLast")},70560:function(d,h,e){"use strict";var n=e(79989),o=e(90690),a=e(6310),i=e(5649),c=e(55565),f=e(3689),s=f(function(){return[].push.call({length:4294967296},1)!==4294967297}),p=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(v){return v instanceof TypeError}},y=s||!p();n({target:"Array",proto:!0,arity:1,forced:y},{push:function(l){var g=o(this),S=a(g),b=arguments.length;c(S+b);for(var E=0;E79&&i<83,s=f||!a("reduceRight");n({target:"Array",proto:!0,forced:s},{reduceRight:function(y){return o(this,y,arguments.length,arguments.length>1?arguments[1]:void 0)}})},278:function(d,h,e){"use strict";var n=e(79989),o=e(88820).left,a=e(16834),i=e(3615),c=e(50806),f=!c&&i>79&&i<83,s=f||!a("reduce");n({target:"Array",proto:!0,forced:s},{reduce:function(y){var v=arguments.length;return o(this,y,v,v>1?arguments[1]:void 0)}})},29830:function(d,h,e){"use strict";var n=e(79989),o=e(26166),a=e(65290),i=e(87370),c=Array;n({target:"Array",proto:!0},{toReversed:function(){return o(a(this),c)}}),i("toReversed")},12894:function(d,h,e){"use strict";var n=e(79989),o=e(68844),a=e(10509),i=e(65290),c=e(59976),f=e(88277),s=e(87370),p=Array,y=o(f("Array","sort"));n({target:"Array",proto:!0},{toSorted:function(l){l!==void 0&&a(l);var g=i(this),S=c(p,g);return y(S,l)}}),s("toSorted")},93530:function(d,h,e){"use strict";var n=e(79989),o=e(87370),a=e(55565),i=e(6310),c=e(27578),f=e(65290),s=e(68700),p=Array,y=Math.max,v=Math.min;n({target:"Array",proto:!0},{toSpliced:function(g,S){var b=f(this),E=i(b),w=c(g,E),x=arguments.length,D=0,k,K,M,_;for(x===0?k=K=0:x===1?(k=0,K=E-w):(k=x-2,K=v(y(s(S),0),E-w)),M=a(E+k-K),_=p(M);D=0?S:g+S;return b<0||b>=g?void 0:s(l,b)}})},12281:function(d,h,e){"use strict";var n=e(79989),o=e(68844),a=e(74684),i=e(34327),c=o("".charCodeAt);n({target:"String",proto:!0},{isWellFormed:function(){for(var s=i(a(this)),p=s.length,y=0;y=56320||++y>=p||(c(s,y)&64512)!==56320))return!1}return!0}})},56532:function(d,h,e){"use strict";var n=e(79989),o=e(22615),a=e(68844),i=e(74684),c=e(69985),f=e(981),s=e(91245),p=e(34327),y=e(54849),v=e(63477),l=e(27017),g=e(44201),S=e(53931),b=g("replace"),E=TypeError,w=a("".indexOf),x=a("".replace),D=a("".slice),k=Math.max,K=function(M,_,N){return N>M.length?-1:_===""?N:w(M,_,N)};n({target:"String",proto:!0},{replaceAll:function(_,N){var G=i(this),W,B,H,fe,he,oe,ae,ie,U,q=0,te=0,Q="";if(!f(_)){if(W=s(_),W&&(B=p(i(v(_))),!~w(B,"g")))throw new E("`.replaceAll` does not allow non-global regexes");if(H=y(_,b),H)return o(H,_,G,N);if(S&&W)return x(p(G),_,N)}for(fe=p(G),he=p(_),oe=c(N),oe||(N=p(N)),ae=he.length,ie=k(1,ae),q=K(fe,he,0);q!==-1;)U=oe?p(N(he,q,fe)):l(he,fe,q,[],void 0,N),Q+=D(fe,te,q)+U,te=q+ae,q=K(fe,he,q+ie);return te=56320||D+1>=w||(y(E,D+1)&64512)!==56320?x[D]=g:(x[D]=p(E,D),x[++D]=p(E,D))}return v(x,"")}})},95194:function(d,h,e){"use strict";var n=e(54872),o=e(6310),a=e(68700),i=n.aTypedArray,c=n.exportTypedArrayMethod;c("at",function(s){var p=i(this),y=o(p),v=a(s),l=v>=0?v:y+v;return l<0||l>=y?void 0:p[l]})},82:function(d,h,e){"use strict";var n=e(54872),o=e(61969).findLastIndex,a=n.aTypedArray,i=n.exportTypedArrayMethod;i("findLastIndex",function(f){return o(a(this),f,arguments.length>1?arguments[1]:void 0)})},20522:function(d,h,e){"use strict";var n=e(54872),o=e(61969).findLast,a=n.aTypedArray,i=n.exportTypedArrayMethod;i("findLast",function(f){return o(a(this),f,arguments.length>1?arguments[1]:void 0)})},79976:function(d,h,e){"use strict";var n=e(19037),o=e(22615),a=e(54872),i=e(6310),c=e(83250),f=e(90690),s=e(3689),p=n.RangeError,y=n.Int8Array,v=y&&y.prototype,l=v&&v.set,g=a.aTypedArray,S=a.exportTypedArrayMethod,b=!s(function(){var w=new Uint8ClampedArray(2);return o(l,w,{length:1,0:3},1),w[1]!==3}),E=b&&a.NATIVE_ARRAY_BUFFER_VIEWS&&s(function(){var w=new y(2);return w.set(1),w.set("2",1),w[0]!==0||w[1]!==2});S("set",function(x){g(this);var D=c(arguments.length>1?arguments[1]:void 0,1),k=f(x);if(b)return o(l,this,k,D);var K=this.length,M=i(k),_=0;if(M+D>K)throw new p("Wrong length");for(;_1?arguments[1]:void 0)}}),a("filterOut")},54883:function(d,h,e){"use strict";var n=e(79989),o=e(2960).filterReject,a=e(87370);n({target:"Array",proto:!0,forced:!0},{filterReject:function(c){return o(this,c,arguments.length>1?arguments[1]:void 0)}}),a("filterReject")},18073:function(d,h,e){"use strict";var n=e(79989),o=e(2231);n({target:"Array",stat:!0},{fromAsync:o})},96882:function(d,h,e){"use strict";var n=e(79989),o=e(16834),a=e(87370),i=e(44416),c=e(53931);n({target:"Array",proto:!0,name:"groupToMap",forced:c||!o("groupByToMap")},{groupByToMap:i}),a("groupByToMap")},22525:function(d,h,e){"use strict";var n=e(79989),o=e(64976),a=e(16834),i=e(87370);n({target:"Array",proto:!0,forced:!a("groupBy")},{groupBy:function(f){var s=arguments.length>1?arguments[1]:void 0;return o(this,f,s)}}),i("groupBy")},32539:function(d,h,e){"use strict";var n=e(79989),o=e(87370),a=e(44416),i=e(53931);n({target:"Array",proto:!0,forced:i},{groupToMap:a}),o("groupToMap")},36208:function(d,h,e){"use strict";var n=e(79989),o=e(64976),a=e(87370);n({target:"Array",proto:!0},{group:function(c){var f=arguments.length>1?arguments[1]:void 0;return o(this,c,f)}}),a("group")},5082:function(d,h,e){"use strict";var n=e(79989),o=e(92297),a=Object.isFrozen,i=function(c,f){if(!a||!o(c)||!a(c))return!1;for(var s=0,p=c.length,y;s1?arguments[1]:!1);return a([s&255,s>>8&255],10)}})},89246:function(d,h,e){"use strict";var n=e(79989),o=e(68844),a=o(DataView.prototype.getUint8);n({target:"DataView",proto:!0,forced:!0},{getUint8Clamped:function(c){return a(this,c)}})},31186:function(d,h,e){"use strict";var n=e(79989),o=e(68844),a=e(50926),i=e(19842),c=e(15477).pack,f=e(76043),s=TypeError,p=o(DataView.prototype.setUint16);n({target:"DataView",proto:!0},{setFloat16:function(v,l){if(a(this)!=="DataView")throw new s("Incorrect receiver");var g=i(v),S=c(f(l),10,2);return p(this,g,S[1]<<8|S[0],arguments.length>2?arguments[2]:!1)}})},9279:function(d,h,e){"use strict";var n=e(79989),o=e(68844),a=e(50926),i=e(19842),c=e(87191),f=TypeError,s=o(DataView.prototype.setUint8);n({target:"DataView",proto:!0,forced:!0},{setUint8Clamped:function(y,v){if(a(this)!=="DataView")throw new f("Incorrect receiver");var l=i(y);return s(this,l,c(v))}})},26725:function(d,h,e){"use strict";var n=e(79989),o=e(67697),a=e(76058),i=e(10509),c=e(767),f=e(11880),s=e(6045),p=e(62148),y=e(44201),v=e(618),l=e(29199),g=a("SuppressedError"),S=ReferenceError,b=y("dispose"),E=y("toStringTag"),w="DisposableStack",x=v.set,D=v.getterFor(w),k="sync-dispose",K="disposed",M="pending",_=function(W){var B=D(W);if(B.state===K)throw new S(w+" already disposed");return B},N=function(){x(c(this,G),{type:w,state:M,stack:[]}),o||(this.disposed=!1)},G=N.prototype;s(G,{dispose:function(){var B=D(this);if(B.state!==K){B.state=K,o||(this.disposed=!0);for(var H=B.stack,fe=H.length,he=!1,oe;fe;){var ae=H[--fe];H[fe]=null;try{ae()}catch(ie){he?oe=new g(ie,oe):(he=!0,oe=ie)}}if(B.stack=null,he)throw oe}},use:function(B){return l(_(this),B,k),B},adopt:function(B,H){var fe=_(this);return i(H),l(fe,void 0,k,function(){H(B)}),B},defer:function(B){var H=_(this);i(B),l(H,void 0,k,B)},move:function(){var B=_(this),H=new N;return D(H).stack=B.stack,B.stack=[],B.state=K,o||(this.disposed=!0),H}}),o&&p(G,"disposed",{configurable:!0,get:function(){return D(this).state===K}}),f(G,b,G.dispose,{name:"dispose"}),f(G,E,w,{nonWritable:!0}),n({global:!0,constructor:!0},{DisposableStack:N})},26125:function(d,h,e){"use strict";var n=e(79989),o=e(33505);n({target:"Function",proto:!0,forced:!0},{demethodize:o})},2820:function(d,h,e){"use strict";var n=e(79989),o=e(68844),a=e(69985),i=e(6738),c=e(36812),f=e(67697),s=Object.getOwnPropertyDescriptor,p=/^\s*class\b/,y=o(p.exec),v=function(l){try{if(!f||!y(p,i(l)))return!1}catch(S){}var g=s(l,"prototype");return!!g&&c(g,"writable")&&!g.writable};n({target:"Function",stat:!0,sham:!0,forced:!0},{isCallable:function(g){return a(g)&&!v(g)}})},62517:function(d,h,e){"use strict";var n=e(79989),o=e(19429);n({target:"Function",stat:!0,forced:!0},{isConstructor:o})},54947:function(d,h,e){"use strict";var n=e(44201),o=e(72560).f,a=n("metadata"),i=Function.prototype;i[a]===void 0&&o(i,a,{value:null})},74993:function(d,h,e){"use strict";var n=e(79989),o=e(33505);n({target:"Function",proto:!0,forced:!0,name:"demethodize"},{unThis:o})},50647:function(d,h,e){"use strict";var n=e(79989),o=e(47082);n({target:"Iterator",name:"indexed",proto:!0,real:!0,forced:!0},{asIndexedPairs:o})},67602:function(d,h,e){"use strict";var n=e(79989),o=e(19037),a=e(767),i=e(85027),c=e(69985),f=e(61868),s=e(62148),p=e(76522),y=e(3689),v=e(36812),l=e(44201),g=e(12013).IteratorPrototype,S=e(67697),b=e(53931),E="constructor",w="Iterator",x=l("toStringTag"),D=TypeError,k=o[w],K=b||!c(k)||k.prototype!==g||!y(function(){k({})}),M=function(){if(a(this,g),f(this)===g)throw new D("Abstract class Iterator not directly constructable")},_=function(N,G){S?s(g,N,{configurable:!0,get:function(){return G},set:function(W){if(i(this),this===g)throw new D("You can't redefine this property");v(this,N)?this[N]=W:p(this,N,W)}}):g[N]=G};v(g,x)||_(x,w),(K||!v(g,E)||g[E]===Object)&&_(E,M),M.prototype=g,n({global:!0,constructor:!0,forced:K},{Iterator:M})},82639:function(d,h,e){"use strict";var n=e(22615),o=e(11880),a=e(54849),i=e(36812),c=e(44201),f=e(12013).IteratorPrototype,s=c("dispose");i(f,s)||o(f,s,function(){var p=a(this,"return");p&&n(p,this)})},63986:function(d,h,e){"use strict";var n=e(79989),o=e(22615),a=e(85027),i=e(22302),c=e(4654),f=e(15904),s=e(65419),p=e(53931),y=s(function(){for(var v=this.iterator,l=this.next,g,S;this.remaining;)if(this.remaining--,g=a(o(l,v)),S=this.done=!!g.done,S)return;if(g=a(o(l,v)),S=this.done=!!g.done,!S)return g.value});n({target:"Iterator",proto:!0,real:!0,forced:p},{drop:function(l){a(this);var g=f(c(+l));return new y(i(this),{remaining:g})}})},16054:function(d,h,e){"use strict";var n=e(79989),o=e(18734),a=e(10509),i=e(85027),c=e(22302);n({target:"Iterator",proto:!0,real:!0},{every:function(s){i(this),a(s);var p=c(this),y=0;return!o(p,function(v,l){if(!s(v,y++))return l()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},53476:function(d,h,e){"use strict";var n=e(79989),o=e(22615),a=e(10509),i=e(85027),c=e(22302),f=e(65419),s=e(71228),p=e(53931),y=f(function(){for(var v=this.iterator,l=this.predicate,g=this.next,S,b,E;;){if(S=i(o(g,v)),b=this.done=!!S.done,b)return;if(E=S.value,s(v,l,[E,this.counter++],!0))return E}});n({target:"Iterator",proto:!0,real:!0,forced:p},{filter:function(l){return i(this),a(l),new y(c(this),{predicate:l})}})},70928:function(d,h,e){"use strict";var n=e(79989),o=e(18734),a=e(10509),i=e(85027),c=e(22302);n({target:"Iterator",proto:!0,real:!0},{find:function(s){i(this),a(s);var p=c(this),y=0;return o(p,function(v,l){if(s(v,y++))return l(v)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},49411:function(d,h,e){"use strict";var n=e(79989),o=e(22615),a=e(10509),i=e(85027),c=e(22302),f=e(36752),s=e(65419),p=e(72125),y=e(53931),v=s(function(){for(var l=this.iterator,g=this.mapper,S,b;;){if(b=this.inner)try{if(S=i(o(b.next,b.iterator)),!S.done)return S.value;this.inner=null}catch(E){p(l,"throw",E)}if(S=i(o(this.next,l)),this.done=!!S.done)return;try{this.inner=f(g(S.value,this.counter++),!1)}catch(E){p(l,"throw",E)}}});n({target:"Iterator",proto:!0,real:!0,forced:y},{flatMap:function(g){return i(this),a(g),new v(c(this),{mapper:g,inner:null})}})},30005:function(d,h,e){"use strict";var n=e(79989),o=e(18734),a=e(10509),i=e(85027),c=e(22302);n({target:"Iterator",proto:!0,real:!0},{forEach:function(s){i(this),a(s);var p=c(this),y=0;o(p,function(v){s(v,y++)},{IS_RECORD:!0})}})},73494:function(d,h,e){"use strict";var n=e(79989),o=e(22615),a=e(90690),i=e(23622),c=e(12013).IteratorPrototype,f=e(65419),s=e(36752),p=e(53931),y=f(function(){return o(this.next,this.iterator)},!0);n({target:"Iterator",stat:!0,forced:p},{from:function(l){var g=s(typeof l=="string"?a(l):l,!0);return i(c,g.iterator)?g.iterator:new y(g)}})},94564:function(d,h,e){"use strict";var n=e(79989),o=e(47082);n({target:"Iterator",proto:!0,real:!0,forced:!0},{indexed:o})},41792:function(d,h,e){"use strict";var n=e(79989),o=e(88983),a=e(53931);n({target:"Iterator",proto:!0,real:!0,forced:a},{map:o})},5985:function(d,h,e){"use strict";var n=e(79989),o=e(98554),a=TypeError;n({target:"Iterator",stat:!0,forced:!0},{range:function(c,f,s){if(typeof c=="number")return new o(c,f,s,"number",0,1);if(typeof c=="bigint")return new o(c,f,s,"bigint",BigInt(0),BigInt(1));throw new a("Incorrect Iterator.range arguments")}})},31107:function(d,h,e){"use strict";var n=e(79989),o=e(18734),a=e(10509),i=e(85027),c=e(22302),f=TypeError;n({target:"Iterator",proto:!0,real:!0},{reduce:function(p){i(this),a(p);var y=c(this),v=arguments.length<2,l=v?void 0:arguments[1],g=0;if(o(y,function(S){v?(v=!1,l=S):l=p(l,S,g),g++},{IS_RECORD:!0}),v)throw new f("Reduce of empty iterator with no initial value");return l}})},28244:function(d,h,e){"use strict";var n=e(79989),o=e(18734),a=e(10509),i=e(85027),c=e(22302);n({target:"Iterator",proto:!0,real:!0},{some:function(s){i(this),a(s);var p=c(this),y=0;return o(p,function(v,l){if(s(v,y++))return l()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},3645:function(d,h,e){"use strict";var n=e(79989),o=e(22615),a=e(85027),i=e(22302),c=e(4654),f=e(15904),s=e(65419),p=e(72125),y=e(53931),v=s(function(){var l=this.iterator;if(!this.remaining--)return this.done=!0,p(l,"normal",void 0);var g=a(o(this.next,l)),S=this.done=!!g.done;if(!S)return g.value});n({target:"Iterator",proto:!0,real:!0,forced:y},{take:function(g){a(this);var S=f(c(+g));return new v(i(this),{remaining:S})}})},58429:function(d,h,e){"use strict";var n=e(79989),o=e(85027),a=e(18734),i=e(22302),c=[].push;n({target:"Iterator",proto:!0,real:!0},{toArray:function(){var s=[];return a(i(o(this)),c,{that:s,IS_RECORD:!0}),s}})},39569:function(d,h,e){"use strict";var n=e(79989),o=e(85027),a=e(29019),i=e(40219),c=e(22302),f=e(53931);n({target:"Iterator",proto:!0,real:!0,forced:f},{toAsync:function(){return new i(c(new a(c(o(this)))))}})},74320:function(d,h,e){"use strict";var n=e(79989),o=e(22818),a=e(55670);n({target:"JSON",stat:!0,forced:!o},{isRawJSON:a})},20691:function(d,h,e){"use strict";var n=e(79989),o=e(67697),a=e(19037),i=e(76058),c=e(68844),f=e(22615),s=e(69985),p=e(48999),y=e(92297),v=e(36812),l=e(34327),g=e(6310),S=e(76522),b=e(3689),E=e(46675),w=e(50146),x=a.JSON,D=a.Number,k=a.SyntaxError,K=x&&x.parse,M=i("Object","keys"),_=Object.getOwnPropertyDescriptor,N=c("".charAt),G=c("".slice),W=c(/./.exec),B=c([].push),H=/^\d$/,fe=/^[1-9]$/,he=/^(?:-|\d)$/,oe=/^[\t\n\r ]$/,ae=0,ie=1,U=function(Y,A){Y=l(Y);var F=new I(Y,0,""),j=F.parse(),z=j.value,ee=F.skip(oe,j.end);if(ee1?arguments[1]:void 0);return i(s,function(y,v){if(!p(y,v,s))return!1},!0)!==!1}})},41099:function(d,h,e){"use strict";var n=e(79989),o=e(54071),a=e(9945),i=e(83914),c=e(10613),f=i.Map,s=i.set;n({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(y){var v=a(this),l=o(y,arguments.length>1?arguments[1]:void 0),g=new f;return c(v,function(S,b){l(S,b,v)&&s(g,b,S)}),g}})},20876:function(d,h,e){"use strict";var n=e(79989),o=e(54071),a=e(9945),i=e(10613);n({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(f){var s=a(this),p=o(f,arguments.length>1?arguments[1]:void 0),y=i(s,function(v,l){if(p(v,l,s))return{key:l}},!0);return y&&y.key}})},26320:function(d,h,e){"use strict";var n=e(79989),o=e(54071),a=e(9945),i=e(10613);n({target:"Map",proto:!0,real:!0,forced:!0},{find:function(f){var s=a(this),p=o(f,arguments.length>1?arguments[1]:void 0),y=i(s,function(v,l){if(p(v,l,s))return{value:v}},!0);return y&&y.value}})},6052:function(d,h,e){"use strict";var n=e(79989),o=e(28737);n({target:"Map",stat:!0,forced:!0},{from:o})},76791:function(d,h,e){"use strict";var n=e(79989),o=e(68600),a=e(9945),i=e(10613);n({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(f){return i(a(this),function(s){if(o(s,f))return!0},!0)===!0}})},75341:function(d,h,e){"use strict";var n=e(79989),o=e(22615),a=e(18734),i=e(69985),c=e(10509),f=e(83914).Map;n({target:"Map",stat:!0,forced:!0},{keyBy:function(p,y){var v=i(this)?this:f,l=new v;c(y);var g=c(l.set);return a(p,function(S){o(g,l,y(S),S)}),l}})},40019:function(d,h,e){"use strict";var n=e(79989),o=e(9945),a=e(10613);n({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(c){var f=a(o(this),function(s,p){if(s===c)return{key:p}},!0);return f&&f.key}})},92343:function(d,h,e){"use strict";var n=e(79989),o=e(54071),a=e(9945),i=e(83914),c=e(10613),f=i.Map,s=i.set;n({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(y){var v=a(this),l=o(y,arguments.length>1?arguments[1]:void 0),g=new f;return c(v,function(S,b){s(g,l(S,b,v),S)}),g}})},51096:function(d,h,e){"use strict";var n=e(79989),o=e(54071),a=e(9945),i=e(83914),c=e(10613),f=i.Map,s=i.set;n({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(y){var v=a(this),l=o(y,arguments.length>1?arguments[1]:void 0),g=new f;return c(v,function(S,b){s(g,b,l(S,b,v))}),g}})},4314:function(d,h,e){"use strict";var n=e(79989),o=e(9945),a=e(18734),i=e(83914).set;n({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(f){for(var s=o(this),p=arguments.length,y=0;y1?arguments[1]:void 0);return i(s,function(y,v){if(p(y,v,s))return!0},!0)===!0}})},24453:function(d,h,e){"use strict";var n=e(79989),o=e(41432);n({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:o})},64078:function(d,h,e){"use strict";var n=e(79989),o=e(10509),a=e(9945),i=e(83914),c=TypeError,f=i.get,s=i.has,p=i.set;n({target:"Map",proto:!0,real:!0,forced:!0},{update:function(v,l){var g=a(this),S=arguments.length;o(l);var b=s(g,v);if(!b&&S<3)throw new c("Updating absent value");var E=b?f(g,v):o(S>2?arguments[2]:void 0)(v,g);return p(g,v,l(E,v,g)),g}})},66190:function(d,h,e){"use strict";var n=e(79989),o=e(41432);n({target:"Map",proto:!0,real:!0,forced:!0},{upsert:o})},25684:function(d,h,e){"use strict";var n=e(79989),o=Math.min,a=Math.max;n({target:"Math",stat:!0,forced:!0},{clamp:function(c,f,s){return o(s,a(f,c))}})},31789:function(d,h,e){"use strict";var n=e(79989);n({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{DEG_PER_RAD:Math.PI/180})},8677:function(d,h,e){"use strict";var n=e(79989),o=180/Math.PI;n({target:"Math",stat:!0,forced:!0},{degrees:function(i){return i*o}})},59151:function(d,h,e){"use strict";var n=e(79989),o=e(76043);n({target:"Math",stat:!0},{f16round:o})},346:function(d,h,e){"use strict";var n=e(79989),o=e(84463),a=e(37788);n({target:"Math",stat:!0,forced:!0},{fscale:function(c,f,s,p,y){return a(o(c,f,s,p,y))}})},91069:function(d,h,e){"use strict";var n=e(79989);n({target:"Math",stat:!0,forced:!0},{iaddh:function(a,i,c,f){var s=a>>>0,p=i>>>0,y=c>>>0;return p+(f>>>0)+((s&y|(s|y)&~(s+y>>>0))>>>31)|0}})},18886:function(d,h,e){"use strict";var n=e(79989);n({target:"Math",stat:!0,forced:!0},{imulh:function(a,i){var c=65535,f=+a,s=+i,p=f&c,y=s&c,v=f>>16,l=s>>16,g=(v*y>>>0)+(p*y>>>16);return v*l+(g>>16)+((p*l>>>0)+(g&c)>>16)}})},88065:function(d,h,e){"use strict";var n=e(79989);n({target:"Math",stat:!0,forced:!0},{isubh:function(a,i,c,f){var s=a>>>0,p=i>>>0,y=c>>>0;return p-(f>>>0)-((~s&y|~(s^y)&s-y>>>0)>>>31)|0}})},68172:function(d,h,e){"use strict";var n=e(79989);n({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{RAD_PER_DEG:180/Math.PI})},60445:function(d,h,e){"use strict";var n=e(79989),o=Math.PI/180;n({target:"Math",stat:!0,forced:!0},{radians:function(i){return i*o}})},99457:function(d,h,e){"use strict";var n=e(79989),o=e(84463);n({target:"Math",stat:!0,forced:!0},{scale:o})},613:function(d,h,e){"use strict";var n=e(79989),o=e(85027),a=e(70046),i=e(30974),c=e(27807),f=e(618),s="Seeded Random",p=s+" Generator",y='Math.seededPRNG() argument should have a "seed" field with a finite value.',v=f.set,l=f.getterFor(p),g=TypeError,S=i(function(E){v(this,{type:p,seed:E%2147483647})},s,function(){var E=l(this),w=E.seed=(E.seed*1103515245+12345)%2147483647;return c((w&1073741823)/1073741823,!1)});n({target:"Math",stat:!0,forced:!0},{seededPRNG:function(E){var w=o(E).seed;if(!a(w))throw new g(y);return new S(w)}})},835:function(d,h,e){"use strict";var n=e(79989);n({target:"Math",stat:!0,forced:!0},{signbit:function(a){var i=+a;return i===i&&i===0?1/i===-1/0:i<0}})},926:function(d,h,e){"use strict";var n=e(79989);n({target:"Math",stat:!0,forced:!0},{umulh:function(a,i){var c=65535,f=+a,s=+i,p=f&c,y=s&c,v=f>>>16,l=s>>>16,g=(v*y>>>0)+(p*y>>>16);return v*l+(g>>>16)+((p*l>>>0)+(g&c)>>>16)}})},82899:function(d,h,e){"use strict";var n=e(79989),o=e(68844),a=e(68700),i="Invalid number representation",c="Invalid radix",f=RangeError,s=SyntaxError,p=TypeError,y=parseInt,v=Math.pow,l=/^[\d.a-z]+$/,g=o("".charAt),S=o(l.exec),b=o(1 .toString),E=o("".slice),w=o("".split);n({target:"Number",stat:!0,forced:!0},{fromString:function(D,k){var K=1;if(typeof D!="string")throw new p(i);if(!D.length)throw new s(i);if(g(D,0)==="-"&&(K=-1,D=E(D,1),!D.length))throw new s(i);var M=k===void 0?10:a(k);if(M<2||M>36)throw new f(c);if(!S(l,D))throw new s(i);var _=w(D,"."),N=y(_[0],M);if(_.length>1&&(N+=y(_[1],M)/v(M,_[1].length)),M===10&&b(N,M)!==D)throw new s(i);return K*N}})},29977:function(d,h,e){"use strict";var n=e(79989),o=e(98554);n({target:"Number",stat:!0,forced:!0},{range:function(i,c,f){return new o(i,c,f,"number",0,1)}})},31927:function(d,h,e){"use strict";var n=e(79989),o=e(42351);n({target:"Object",stat:!0,forced:!0},{iterateEntries:function(i){return new o(i,"entries")}})},77131:function(d,h,e){"use strict";var n=e(79989),o=e(42351);n({target:"Object",stat:!0,forced:!0},{iterateKeys:function(i){return new o(i,"keys")}})},55174:function(d,h,e){"use strict";var n=e(79989),o=e(42351);n({target:"Object",stat:!0,forced:!0},{iterateValues:function(i){return new o(i,"values")}})},63503:function(d,h,e){"use strict";var n=e(79989),o=e(22615),a=e(67697),i=e(14241),c=e(10509),f=e(85027),s=e(767),p=e(69985),y=e(981),v=e(48999),l=e(54849),g=e(11880),S=e(6045),b=e(62148),E=e(20920),w=e(44201),x=e(618),D=w("observable"),k="Observable",K="Subscription",M="SubscriptionObserver",_=x.getterFor,N=x.set,G=_(k),W=_(K),B=_(M),H=function(ie){this.observer=f(ie),this.cleanup=void 0,this.subscriptionObserver=void 0};H.prototype={type:K,clean:function(){var ie=this.cleanup;if(ie){this.cleanup=void 0;try{ie()}catch(U){E(U)}}},close:function(){if(!a){var ie=this.facade,U=this.subscriptionObserver;ie.closed=!0,U&&(U.closed=!0)}this.observer=void 0},isClosed:function(){return this.observer===void 0}};var fe=function(ie,U){var q=N(this,new H(ie)),te;a||(this.closed=!1);try{(te=l(ie,"start"))&&o(te,ie,this)}catch(de){E(de)}if(!q.isClosed()){var Q=q.subscriptionObserver=new he(q);try{var I=U(Q),V=I;y(I)||(q.cleanup=p(I.unsubscribe)?function(){V.unsubscribe()}:c(I))}catch(de){Q.error(de);return}q.isClosed()&&q.clean()}};fe.prototype=S({},{unsubscribe:function(){var U=W(this);U.isClosed()||(U.close(),U.clean())}}),a&&b(fe.prototype,"closed",{configurable:!0,get:function(){return W(this).isClosed()}});var he=function(ie){N(this,{type:M,subscriptionState:ie}),a||(this.closed=!1)};he.prototype=S({},{next:function(U){var q=B(this).subscriptionState;if(!q.isClosed()){var te=q.observer;try{var Q=l(te,"next");Q&&o(Q,te,U)}catch(I){E(I)}}},error:function(U){var q=B(this).subscriptionState;if(!q.isClosed()){var te=q.observer;q.close();try{var Q=l(te,"error");Q?o(Q,te,U):E(U)}catch(I){E(I)}q.clean()}},complete:function(){var U=B(this).subscriptionState;if(!U.isClosed()){var q=U.observer;U.close();try{var te=l(q,"complete");te&&o(te,q)}catch(Q){E(Q)}U.clean()}}}),a&&b(he.prototype,"closed",{configurable:!0,get:function(){return B(this).subscriptionState.isClosed()}});var oe=function(U){s(this,ae),N(this,{type:k,subscriber:c(U)})},ae=oe.prototype;S(ae,{subscribe:function(U){var q=arguments.length;return new fe(p(U)?{next:U,error:q>1?arguments[1]:void 0,complete:q>2?arguments[2]:void 0}:v(U)?U:{},G(this).subscriber)}}),g(ae,D,function(){return this}),n({global:!0,constructor:!0,forced:!0},{Observable:oe}),i(k)},9818:function(d,h,e){"use strict";var n=e(79989),o=e(76058),a=e(22615),i=e(85027),c=e(19429),f=e(5185),s=e(54849),p=e(18734),y=e(44201),v=y("observable");n({target:"Observable",stat:!0,forced:!0},{from:function(g){var S=c(this)?this:o("Observable"),b=s(i(g),v);if(b){var E=i(a(b,g));return E.constructor===S?E:new S(function(x){return E.subscribe(x)})}var w=f(g);return new S(function(x){p(w,function(D,k){if(x.next(D),x.closed)return k()},{IS_ITERATOR:!0,INTERRUPTED:!0}),x.complete()})}})},76314:function(d,h,e){"use strict";e(63503),e(9818),e(38771)},38771:function(d,h,e){"use strict";var n=e(79989),o=e(76058),a=e(19429),i=o("Array");n({target:"Observable",stat:!0,forced:!0},{of:function(){for(var f=a(this)?this:o("Observable"),s=arguments.length,p=i(s),y=0;y?@[\\\\\\]^`{|}~"+i+"]","g");n({target:"RegExp",stat:!0,forced:!0},{escape:function(y){var v=a(y),l=c(v,0);return(l>47&&l<58?"\\x3":"")+f(v,s,"\\$&")}})},57282:function(d,h,e){"use strict";var n=e(79989),o=e(10029),a=e(61034).add;n({target:"Set",proto:!0,real:!0,forced:!0},{addAll:function(){for(var c=o(this),f=0,s=arguments.length;f1?arguments[1]:void 0);return i(s,function(y){if(!p(y,y,s))return!1},!0)!==!1}})},96986:function(d,h,e){"use strict";var n=e(79989),o=e(54071),a=e(10029),i=e(61034),c=e(48774),f=i.Set,s=i.add;n({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(y){var v=a(this),l=o(y,arguments.length>1?arguments[1]:void 0),g=new f;return c(v,function(S){l(S,S,v)&&s(g,S)}),g}})},95681:function(d,h,e){"use strict";var n=e(79989),o=e(54071),a=e(10029),i=e(48774);n({target:"Set",proto:!0,real:!0,forced:!0},{find:function(f){var s=a(this),p=o(f,arguments.length>1?arguments[1]:void 0),y=i(s,function(v){if(p(v,v,s))return{value:v}},!0);return y&&y.value}})},13781:function(d,h,e){"use strict";var n=e(79989),o=e(28737);n({target:"Set",stat:!0,forced:!0},{from:o})},98873:function(d,h,e){"use strict";var n=e(79989),o=e(22615),a=e(2939),i=e(72948);n({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(f){return o(i,this,a(f))}})},33442:function(d,h,e){"use strict";var n=e(79989),o=e(3689),a=e(72948),i=e(53234),c=!i("intersection")||o(function(){return Array.from(new Set([1,2,3]).intersection(new Set([3,2])))!=="3,2"});n({target:"Set",proto:!0,real:!0,forced:c},{intersection:a})},50308:function(d,h,e){"use strict";var n=e(79989),o=e(22615),a=e(2939),i=e(97795);n({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(f){return o(i,this,a(f))}})},61964:function(d,h,e){"use strict";var n=e(79989),o=e(97795),a=e(53234);n({target:"Set",proto:!0,real:!0,forced:!a("isDisjointFrom")},{isDisjointFrom:o})},18955:function(d,h,e){"use strict";var n=e(79989),o=e(22615),a=e(2939),i=e(26951);n({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(f){return o(i,this,a(f))}})},69878:function(d,h,e){"use strict";var n=e(79989),o=e(26951),a=e(53234);n({target:"Set",proto:!0,real:!0,forced:!a("isSubsetOf")},{isSubsetOf:o})},65115:function(d,h,e){"use strict";var n=e(79989),o=e(22615),a=e(2939),i=e(3894);n({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(f){return o(i,this,a(f))}})},52915:function(d,h,e){"use strict";var n=e(79989),o=e(3894),a=e(53234);n({target:"Set",proto:!0,real:!0,forced:!a("isSupersetOf")},{isSupersetOf:o})},19490:function(d,h,e){"use strict";var n=e(79989),o=e(68844),a=e(10029),i=e(48774),c=e(34327),f=o([].join),s=o([].push);n({target:"Set",proto:!0,real:!0,forced:!0},{join:function(y){var v=a(this),l=y===void 0?",":c(y),g=[];return i(v,function(S){s(g,S)}),f(g,l)}})},95752:function(d,h,e){"use strict";var n=e(79989),o=e(54071),a=e(10029),i=e(61034),c=e(48774),f=i.Set,s=i.add;n({target:"Set",proto:!0,real:!0,forced:!0},{map:function(y){var v=a(this),l=o(y,arguments.length>1?arguments[1]:void 0),g=new f;return c(v,function(S){s(g,l(S,S,v))}),g}})},32789:function(d,h,e){"use strict";var n=e(79989),o=e(1114);n({target:"Set",stat:!0,forced:!0},{of:o})},27913:function(d,h,e){"use strict";var n=e(79989),o=e(10509),a=e(10029),i=e(48774),c=TypeError;n({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(s){var p=a(this),y=arguments.length<2,v=y?void 0:arguments[1];if(o(s),i(p,function(l){y?(y=!1,v=l):v=s(v,l,l,p)}),y)throw new c("Reduce of empty set with no initial value");return v}})},6831:function(d,h,e){"use strict";var n=e(79989),o=e(54071),a=e(10029),i=e(48774);n({target:"Set",proto:!0,real:!0,forced:!0},{some:function(f){var s=a(this),p=o(f,arguments.length>1?arguments[1]:void 0);return i(s,function(y){if(p(y,y,s))return!0},!0)===!0}})},90243:function(d,h,e){"use strict";var n=e(79989),o=e(22615),a=e(2939),i=e(62289);n({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(f){return o(i,this,a(f))}})},97895:function(d,h,e){"use strict";var n=e(79989),o=e(62289),a=e(53234);n({target:"Set",proto:!0,real:!0,forced:!a("symmetricDifference")},{symmetricDifference:o})},98030:function(d,h,e){"use strict";var n=e(79989),o=e(22615),a=e(2939),i=e(75674);n({target:"Set",proto:!0,real:!0,forced:!0},{union:function(f){return o(i,this,a(f))}})},22275:function(d,h,e){"use strict";var n=e(79989),o=e(75674),a=e(53234);n({target:"Set",proto:!0,real:!0,forced:!a("union")},{union:o})},86220:function(d,h,e){"use strict";var n=e(79989),o=e(10730).charAt,a=e(74684),i=e(68700),c=e(34327);n({target:"String",proto:!0,forced:!0},{at:function(s){var p=c(a(this)),y=p.length,v=i(s),l=v>=0?v:y+v;return l<0||l>=y?void 0:o(p,l)}})},95853:function(d,h,e){"use strict";var n=e(79989),o=e(30974),a=e(27807),i=e(74684),c=e(34327),f=e(618),s=e(10730),p=s.codeAt,y=s.charAt,v="String Iterator",l=f.set,g=f.getterFor(v),S=o(function(E){l(this,{type:v,string:E,index:0})},"String",function(){var E=g(this),w=E.string,x=E.index,D;return x>=w.length?a(void 0,!0):(D=y(w,x),E.index+=D.length,a({codePoint:p(D,0),position:x},!1))});n({target:"String",proto:!0,forced:!0},{codePoints:function(){return new S(c(i(this)))}})},21917:function(d,h,e){"use strict";var n=e(79989),o=e(8195);n({target:"String",stat:!0,forced:!0},{cooked:o})},66084:function(d,h,e){"use strict";var n=e(71594),o=e(79989),a=e(98702),i=e(68844),c=e(61735),f=e(85027),s=e(90690),p=e(69985),y=e(6310),v=e(72560).f,l=e(9015),g=e(16803),S=e(8195),b=e(98985),E=e(86350),w=new g.WeakMap,x=g.get,D=g.has,k=g.set,K=Array,M=TypeError,_=Object.freeze||Object,N=Object.isFrozen,G=Math.min,W=i("".charAt),B=i("".slice),H=i("".split),fe=i(/./.exec),he=/([\n\u2028\u2029]|\r\n?)/g,oe=RegExp("^["+E+"]*"),ae=RegExp("[^"+E+"]"),ie="Invalid tag",U="Invalid opening line",q="Invalid closing line",te=function(A){var F=A.raw;if(n&&!N(F))throw new M("Raw template should be frozen");if(D(w,F))return x(w,F);var j=Q(F),z=V(j);return v(z,"raw",{value:_(j)}),_(z),k(w,F,z),z},Q=function(A){var F=s(A),j=y(F),z=K(j),ee=K(j),xe=0,Pe,Ye,ct,tt;if(!j)throw new M(ie);for(;xe0)throw new M(U);Pe[1]=""}if(Z){if(Pe.length===1||fe(ae,Pe[Pe.length-1]))throw new M(q);Pe[Pe.length-2]="",Pe[Pe.length-1]=""}for(var J=2;J1?arguments[1]:void 0);return a(this,p)},!0)},59359:function(d,h,e){"use strict";var n=e(54872),o=e(2960).filterReject,a=e(20716),i=n.aTypedArray,c=n.exportTypedArrayMethod;c("filterReject",function(s){var p=o(i(this),s,arguments.length>1?arguments[1]:void 0);return a(this,p)},!0)},76677:function(d,h,e){"use strict";var n=e(76058),o=e(52655),a=e(2231),i=e(54872),c=e(59976),f=i.aTypedArrayConstructor,s=i.exportTypedArrayStaticMethod;s("fromAsync",function(y){var v=this,l=arguments.length,g=l>1?arguments[1]:void 0,S=l>2?arguments[2]:void 0;return new(n("Promise"))(function(b){o(v),b(a(y,g,S))}).then(function(b){return c(f(v),b)})},!0)},30548:function(d,h,e){"use strict";var n=e(54872),o=e(64976),a=e(47338),i=n.aTypedArray,c=n.exportTypedArrayMethod;c("groupBy",function(s){var p=arguments.length>1?arguments[1]:void 0;return o(i(this),s,p,a)},!0)},915:function(d,h,e){"use strict";var n=e(54872),o=e(6310),a=e(9401),i=e(27578),c=e(71530),f=e(68700),s=e(3689),p=n.aTypedArray,y=n.getTypedArrayConstructor,v=n.exportTypedArrayMethod,l=Math.max,g=Math.min,S=!s(function(){var b=new Int8Array([1]),E=b.toSpliced(1,0,{valueOf:function(){return b[0]=2,3}});return E[0]!==2||E[1]!==3});v("toSpliced",function(E,w){var x=p(this),D=y(x),k=o(x),K=i(E,k),M=arguments.length,_=0,N,G,W,B,H,fe,he;if(M===0)N=G=0;else if(M===1)N=0,G=k-K;else if(G=g(l(f(w),0),k-K),N=M-2,N){B=new D(N),W=a(B);for(var oe=2;oe1?i(arguments[1]):void 0,N=y(_)==="base64"?v:l,G=_?!!_.strict:!1,W=G?M:E(M,D,"");if(W.length%4===0)w(W,-2)==="=="?W=w(W,0,-2):w(W,-1)==="="&&(W=w(W,0,-1));else if(G)throw new S("Input is not correctly padded");var B=W.length%4;switch(B){case 1:throw new S("Bad input length");case 2:W+="AA";break;case 3:W+="A"}for(var H=[],fe=0,he=W.length,oe=function(U){var q=b(W,fe+U);if(!f(N,q))throw new S('Bad char in input: "'+q+'"');return N[q]<<18-6*U};fe>16&255,ae>>8&255,ae&255)}var ie=H.length;if(B===2){if(G&&H[ie-2]!==0)throw new S(k);ie-=2}else if(B===3){if(G&&H[ie-1]!==0)throw new S(k);ie--}return s(g,H,ie)}})},91117:function(d,h,e){"use strict";var n=e(79989),o=e(19037),a=e(68844),i=e(51082),c=o.Uint8Array,f=o.SyntaxError,s=o.parseInt,p=/[^\da-f]/i,y=a(p.exec),v=a("".slice);c&&n({target:"Uint8Array",stat:!0,forced:!0},{fromHex:function(g){i(g);var S=g.length;if(S%2)throw new f("String should have an even number of characters");if(y(p,g))throw new f("String should only contain hex characters");for(var b=new c(S/2),E=0;E>6*M&63)};x+21&&!v(arguments[1])?b(arguments[1]):void 0,pe=C?C.transfer:void 0,Ke,X;pe!==void 0&&(Ke=new te,X=Ct(pe,Ke));var Te=pt(yt,Ke);return X&&zt(X),Te}})},98858:function(d,h,e){"use strict";var n=e(11880),o=e(68844),a=e(34327),i=e(21500),c=URLSearchParams,f=c.prototype,s=o(f.append),p=o(f.delete),y=o(f.forEach),v=o([].push),l=new c("a=1&a=2&b=3");l.delete("a",1),l.delete("b",void 0),l+""!="a=2"&&n(f,"delete",function(g){var S=arguments.length,b=S<2?void 0:arguments[1];if(S&&b===void 0)return p(this,g);var E=[];y(this,function(N,G){v(E,{key:G,value:N})}),i(S,1);for(var w=a(g),x=a(b),D=0,k=0,K=!1,M=E.length,_;Do.length)&&(a=o.length);for(var i=0,c=Array(a);i=0)&&(c[s]=a[s]);return c}function o(a,i){if(a==null)return{};var c=n(a,i),f,s;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(a);for(s=0;s=0)&&Object.prototype.propertyIsEnumerable.call(a,f)&&(c[f]=a[f])}return c}},48804:function(d,h,e){"use strict";e.d(h,{Z:function(){return f}});function n(s){if(Array.isArray(s))return s}function o(s,p){var y=s==null?null:typeof Symbol!="undefined"&&s[Symbol.iterator]||s["@@iterator"];if(y!=null){var v,l,g,S,b=[],E=!0,w=!1;try{if(g=(y=y.call(s)).next,p===0){if(Object(y)!==y)return;E=!1}else for(;!(E=(v=g.call(y)).done)&&(b.push(v.value),b.length!==p);E=!0);}catch(x){w=!0,l=x}finally{try{if(!E&&y.return!=null&&(S=y.return(),Object(S)!==S))return}finally{if(w)throw l}}return b}}function a(s,p){(p==null||p>s.length)&&(p=s.length);for(var y=0,v=new Array(p);y=0;z--)(j=I[z])&&(F=(A<3?j(F):A>3?j(V,de,F):j(V,de))||F);return A>3&&F&&Object.defineProperty(V,de,F),F}function f(I,V){return function(de,Y){V(de,Y,I)}}function s(I,V,de,Y,A,F){function j(re){if(re!==void 0&&typeof re!="function")throw new TypeError("Function expected");return re}for(var z=Y.kind,ee=z==="getter"?"get":z==="setter"?"set":"value",xe=!V&&I?Y.static?I:I.prototype:null,Pe=V||(xe?Object.getOwnPropertyDescriptor(xe,Y.name):{}),Ye,ct=!1,tt=de.length-1;tt>=0;tt--){var wt={};for(var Z in Y)wt[Z]=Z==="access"?{}:Y[Z];for(var Z in Y.access)wt.access[Z]=Y.access[Z];wt.addInitializer=function(re){if(ct)throw new TypeError("Cannot add initializers after decoration has completed");F.push(j(re||null))};var J=(0,de[tt])(z==="accessor"?{get:Pe.get,set:Pe.set}:Pe[ee],wt);if(z==="accessor"){if(J===void 0)continue;if(J===null||typeof J!="object")throw new TypeError("Object expected");(Ye=j(J.get))&&(Pe.get=Ye),(Ye=j(J.set))&&(Pe.set=Ye),(Ye=j(J.init))&&A.unshift(Ye)}else(Ye=j(J))&&(z==="field"?A.unshift(Ye):Pe[ee]=Ye)}xe&&Object.defineProperty(xe,Y.name,Pe),ct=!0}function p(I,V,de){for(var Y=arguments.length>2,A=0;A0&&F[F.length-1])&&(xe[0]===6||xe[0]===2)){de=0;continue}if(xe[0]===3&&(!F||xe[1]>F[0]&&xe[1]=I.length&&(I=void 0),{value:I&&I[Y++],done:!I}}};throw new TypeError(V?"Object is not iterable.":"Symbol.iterator is not defined.")}function x(I,V){var de=typeof Symbol=="function"&&I[Symbol.iterator];if(!de)return I;var Y=de.call(I),A,F=[],j;try{for(;(V===void 0||V-- >0)&&!(A=Y.next()).done;)F.push(A.value)}catch(z){j={error:z}}finally{try{A&&!A.done&&(de=Y.return)&&de.call(Y)}finally{if(j)throw j.error}}return F}function D(){for(var I=[],V=0;V1||ee(tt,Z)})},wt&&(A[tt]=wt(A[tt])))}function ee(tt,wt){try{xe(Y[tt](wt))}catch(Z){ct(F[0][3],Z)}}function xe(tt){tt.value instanceof M?Promise.resolve(tt.value.v).then(Pe,Ye):ct(F[0][2],tt)}function Pe(tt){ee("next",tt)}function Ye(tt){ee("throw",tt)}function ct(tt,wt){tt(wt),F.shift(),F.length&&ee(F[0][0],F[0][1])}}function N(I){var V,de;return V={},Y("next"),Y("throw",function(A){throw A}),Y("return"),V[Symbol.iterator]=function(){return this},V;function Y(A,F){V[A]=I[A]?function(j){return(de=!de)?{value:M(I[A](j)),done:!1}:F?F(j):j}:F}}function G(I){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var V=I[Symbol.asyncIterator],de;return V?V.call(I):(I=typeof w=="function"?w(I):I[Symbol.iterator](),de={},Y("next"),Y("throw"),Y("return"),de[Symbol.asyncIterator]=function(){return this},de);function Y(F){de[F]=I[F]&&function(j){return new Promise(function(z,ee){j=I[F](j),A(z,ee,j.done,j.value)})}}function A(F,j,z,ee){Promise.resolve(ee).then(function(xe){F({value:xe,done:z})},j)}}function W(I,V){return Object.defineProperty?Object.defineProperty(I,"raw",{value:V}):I.raw=V,I}var B=Object.create?function(I,V){Object.defineProperty(I,"default",{enumerable:!0,value:V})}:function(I,V){I.default=V},H=function(I){return H=Object.getOwnPropertyNames||function(V){var de=[];for(var Y in V)Object.prototype.hasOwnProperty.call(V,Y)&&(de[de.length]=Y);return de},H(I)};function fe(I){if(I&&I.__esModule)return I;var V={};if(I!=null)for(var de=H(I),Y=0;Y=0;z--)(j=I[z])&&(F=(A<3?j(F):A>3?j(V,de,F):j(V,de))||F);return A>3&&F&&Object.defineProperty(V,de,F),F}function f(I,V){return function(de,Y){V(de,Y,I)}}function s(I,V,de,Y,A,F){function j(re){if(re!==void 0&&typeof re!="function")throw new TypeError("Function expected");return re}for(var z=Y.kind,ee=z==="getter"?"get":z==="setter"?"set":"value",xe=!V&&I?Y.static?I:I.prototype:null,Pe=V||(xe?Object.getOwnPropertyDescriptor(xe,Y.name):{}),Ye,ct=!1,tt=de.length-1;tt>=0;tt--){var wt={};for(var Z in Y)wt[Z]=Z==="access"?{}:Y[Z];for(var Z in Y.access)wt.access[Z]=Y.access[Z];wt.addInitializer=function(re){if(ct)throw new TypeError("Cannot add initializers after decoration has completed");F.push(j(re||null))};var J=(0,de[tt])(z==="accessor"?{get:Pe.get,set:Pe.set}:Pe[ee],wt);if(z==="accessor"){if(J===void 0)continue;if(J===null||typeof J!="object")throw new TypeError("Object expected");(Ye=j(J.get))&&(Pe.get=Ye),(Ye=j(J.set))&&(Pe.set=Ye),(Ye=j(J.init))&&A.unshift(Ye)}else(Ye=j(J))&&(z==="field"?A.unshift(Ye):Pe[ee]=Ye)}xe&&Object.defineProperty(xe,Y.name,Pe),ct=!0}function p(I,V,de){for(var Y=arguments.length>2,A=0;A0&&F[F.length-1])&&(xe[0]===6||xe[0]===2)){de=0;continue}if(xe[0]===3&&(!F||xe[1]>F[0]&&xe[1]=I.length&&(I=void 0),{value:I&&I[Y++],done:!I}}};throw new TypeError(V?"Object is not iterable.":"Symbol.iterator is not defined.")}function x(I,V){var de=typeof Symbol=="function"&&I[Symbol.iterator];if(!de)return I;var Y=de.call(I),A,F=[],j;try{for(;(V===void 0||V-- >0)&&!(A=Y.next()).done;)F.push(A.value)}catch(z){j={error:z}}finally{try{A&&!A.done&&(de=Y.return)&&de.call(Y)}finally{if(j)throw j.error}}return F}function D(){for(var I=[],V=0;V1||ee(tt,Z)})},wt&&(A[tt]=wt(A[tt])))}function ee(tt,wt){try{xe(Y[tt](wt))}catch(Z){ct(F[0][3],Z)}}function xe(tt){tt.value instanceof M?Promise.resolve(tt.value.v).then(Pe,Ye):ct(F[0][2],tt)}function Pe(tt){ee("next",tt)}function Ye(tt){ee("throw",tt)}function ct(tt,wt){tt(wt),F.shift(),F.length&&ee(F[0][0],F[0][1])}}function N(I){var V,de;return V={},Y("next"),Y("throw",function(A){throw A}),Y("return"),V[Symbol.iterator]=function(){return this},V;function Y(A,F){V[A]=I[A]?function(j){return(de=!de)?{value:M(I[A](j)),done:!1}:F?F(j):j}:F}}function G(I){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var V=I[Symbol.asyncIterator],de;return V?V.call(I):(I=typeof w=="function"?w(I):I[Symbol.iterator](),de={},Y("next"),Y("throw"),Y("return"),de[Symbol.asyncIterator]=function(){return this},de);function Y(F){de[F]=I[F]&&function(j){return new Promise(function(z,ee){j=I[F](j),A(z,ee,j.done,j.value)})}}function A(F,j,z,ee){Promise.resolve(ee).then(function(xe){F({value:xe,done:z})},j)}}function W(I,V){return Object.defineProperty?Object.defineProperty(I,"raw",{value:V}):I.raw=V,I}var B=Object.create?function(I,V){Object.defineProperty(I,"default",{enumerable:!0,value:V})}:function(I,V){I.default=V},H=function(I){return H=Object.getOwnPropertyNames||function(V){var de=[];for(var Y in V)Object.prototype.hasOwnProperty.call(V,Y)&&(de[de.length]=Y);return de},H(I)};function fe(I){if(I&&I.__esModule)return I;var V={};if(I!=null)for(var de=H(I),Y=0;Y0&&arguments[0]!==void 0?arguments[0]:"";return me.endsWith("/")?me:"".concat(me,"/")}var Xt=__webpack_require__(49647),kr=__webpack_require__(58096),Qr=["content"],sn=["content"],Wr=/^(http:|https:)?\/\//;function Nr(me){return Wr.test(me)||me.startsWith("/")&&!me.startsWith("/*")||me.startsWith("./")||me.startsWith("../")}var gr=function(){return ht.createElement("noscript",{dangerouslySetInnerHTML:{__html:"Enable JavaScript to run this app."}})},O=function(Oe){var ft,at=Oe.loaderData,mt=Oe.htmlPageOpts,nr=Oe.manifest,er=(nr==null||(ft=nr.assets)===null||ft===void 0?void 0:ft["umi.css"])||"";return ht.createElement("script",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:"window.__UMI_LOADER_DATA__ = ".concat(JSON.stringify(at||{}),"; window.__UMI_METADATA_LOADER_DATA__ = ").concat(JSON.stringify(mt||{}),"; window.__UMI_BUILD_ClIENT_CSS__ = '").concat(er,"'")}})};function P(me){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof me=="string")return Nr(me)?Qt({src:me},Oe):{content:me};if(it(me)==="object")return Qt(Qt({},me),Oe);throw new Error("Invalid script type: ".concat(it(me)))}function R(me){return Nr(me)?{type:"link",href:me}:{type:"style",content:me}}var se=function(Oe){var ft,at,mt,nr,er,Ur,xr=Oe.htmlPageOpts;return ht.createElement(ht.Fragment,null,(xr==null?void 0:xr.title)&&ht.createElement("title",null,xr.title),xr==null||(ft=xr.favicons)===null||ft===void 0?void 0:ft.map(function(Zr,Br){return ht.createElement("link",{key:Br,rel:"shortcut icon",href:Zr})}),(xr==null?void 0:xr.description)&&ht.createElement("meta",{name:"description",content:xr.description}),(xr==null||(at=xr.keywords)===null||at===void 0?void 0:at.length)&&ht.createElement("meta",{name:"keywords",content:xr.keywords.join(",")}),xr==null||(mt=xr.metas)===null||mt===void 0?void 0:mt.map(function(Zr){return ht.createElement("meta",{key:Zr.name,name:Zr.name,content:Zr.content})}),xr==null||(nr=xr.links)===null||nr===void 0?void 0:nr.map(function(Zr,Br){return ht.createElement("link",(0,kr.Z)({key:Br},Zr))}),xr==null||(er=xr.styles)===null||er===void 0?void 0:er.map(function(Zr,Br){var mn=R(Zr),la=mn.type,Vn=mn.href,$a=mn.content;if(la==="link")return ht.createElement("link",{key:Br,rel:"stylesheet",href:Vn});if(la==="style")return ht.createElement("style",{key:Br},$a)}),xr==null||(Ur=xr.headScripts)===null||Ur===void 0?void 0:Ur.map(function(Zr,Br){var mn=P(Zr),la=mn.content,Vn=(0,Xt.Z)(mn,Qr);return ht.createElement("script",(0,kr.Z)({dangerouslySetInnerHTML:{__html:la},key:Br},Vn))}))};function Ne(me){var Oe,ft=me.children,at=me.loaderData,mt=me.manifest,nr=me.htmlPageOpts,er=me.__INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ur=me.mountElementId;if(er!=null&&er.pureHtml)return ht.createElement("html",null,ht.createElement("head",null),ht.createElement("body",null,ht.createElement(gr,null),ht.createElement("div",{id:Ur},ft),ht.createElement(O,{manifest:mt,loaderData:at,htmlPageOpts:nr})));if(er!=null&&er.pureApp)return ht.createElement(ht.Fragment,null,ft);var xr=typeof window=="undefined"?mt==null?void 0:mt.assets["umi.css"]:window.__UMI_BUILD_ClIENT_CSS__;return ht.createElement("html",{suppressHydrationWarning:!0,lang:(nr==null?void 0:nr.lang)||"en"},ht.createElement("head",null,ht.createElement("meta",{charSet:"utf-8"}),ht.createElement("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),xr&&ht.createElement("link",{suppressHydrationWarning:!0,rel:"stylesheet",href:xr}),ht.createElement(se,{htmlPageOpts:nr})),ht.createElement("body",null,ht.createElement(gr,null),ht.createElement("div",{id:Ur},ft),ht.createElement(O,{manifest:mt,loaderData:at,htmlPageOpts:nr}),nr==null||(Oe=nr.scripts)===null||Oe===void 0?void 0:Oe.map(function(Zr,Br){var mn=P(Zr),la=mn.content,Vn=(0,Xt.Z)(mn,sn);return ht.createElement("script",(0,kr.Z)({dangerouslySetInnerHTML:{__html:la},key:Br},Vn))})))}var Le=__webpack_require__(59918),Xe=["redirect"];function He(me){var Oe=me.routesById,ft=me.parentId,at=me.routeComponents,mt=me.useStream,nr=mt===void 0?!0:mt;return Object.keys(Oe).filter(function(er){return Oe[er].parentId===ft}).map(function(er){var Ur=ot(Qt(Qt({route:Oe[er],routeComponent:at[er],loadingComponent:me.loadingComponent,reactRouter5Compat:me.reactRouter5Compat},me.reactRouter5Compat&&{hasChildren:Object.keys(Oe).filter(function(Zr){return Oe[Zr].parentId===er}).length>0}),{},{useStream:nr})),xr=He({routesById:Oe,routeComponents:at,parentId:Ur.id,loadingComponent:me.loadingComponent,reactRouter5Compat:me.reactRouter5Compat,useStream:nr});return xr.length>0&&(Ur.children=xr,Ur.routes=xr),Ur})}function We(me){var Oe=(0,Mr.UO)(),ft=(0,Mr.Gn)(me.to,Oe),at=(0,Vr.T$)(),mt=(0,Mr.TH)();if(at!=null&&at.keepQuery){var nr=mt.search+mt.hash;ft+=nr}var er=Qt(Qt({},me),{},{to:ft});return ht.createElement(Mr.Fg,(0,kr.Z)({replace:!0},er))}function ot(me){var Oe=me.route,ft=me.useStream,at=ft===void 0?!0:ft,mt=Oe.redirect,nr=(0,Xt.Z)(Oe,Xe),er=me.reactRouter5Compat?It:Ft;return Qt({element:mt?ht.createElement(We,{to:mt}):ht.createElement(Le.X.Provider,{value:{route:me.route}},ht.createElement(er,{loader:ht.memo(me.routeComponent),loadingComponent:me.loadingComponent||Rt,hasChildren:me.hasChildren,useStream:at}))},nr)}function Rt(){return ht.createElement("div",null)}function It(me){var Oe=(0,Le.Q)(),ft=Oe.route,at=(0,Vr.Ov)(),mt=at.history,nr=at.clientRoutes,er=(0,Mr.UO)(),Ur={params:er,isExact:!0,path:ft.path,url:mt.location.pathname},xr=me.loader,Zr={location:mt.location,match:Ur,history:mt,params:er,route:ft,routes:nr};return me.useStream?ht.createElement(ht.Suspense,{fallback:ht.createElement(me.loadingComponent,null)},ht.createElement(xr,Zr,me.hasChildren&&ht.createElement(Mr.j3,null))):ht.createElement(xr,Zr,me.hasChildren&&ht.createElement(Mr.j3,null))}function Ft(me){var Oe=me.loader;return me.useStream?ht.createElement(ht.Suspense,{fallback:ht.createElement(me.loadingComponent,null)},ht.createElement(Oe,null)):ht.createElement(Oe,null)}var $t=null;function kt(){return $t}function Tr(me){var Oe=me.history,ft=ht.useState({action:Oe.action,location:Oe.location}),at=(0,mr.Z)(ft,2),mt=at[0],nr=at[1];return(0,ht.useLayoutEffect)(function(){return Oe.listen(nr)},[Oe]),(0,ht.useLayoutEffect)(function(){function er(Ur){me.pluginManager.applyPlugins({key:"onRouteChange",type:"event",args:{routes:me.routes,clientRoutes:me.clientRoutes,location:Ur.location,action:Ur.action,basename:me.basename,isFirst:!!Ur.isFirst}})}return er({location:mt.location,action:mt.action,isFirst:!0}),Oe.listen(er)},[Oe,me.routes,me.clientRoutes]),ht.createElement(Mr.F0,{navigator:Oe,location:mt.location,basename:me.basename},me.children)}function Er(){var me=(0,Vr.Ov)(),Oe=me.clientRoutes;return(0,Mr.V$)(Oe)}var ir=["innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","rootContainer"],Dr=function(Oe,ft){var at=Oe.basename||"/",mt=He({routesById:Oe.routes,routeComponents:Oe.routeComponents,loadingComponent:Oe.loadingComponent,reactRouter5Compat:Oe.reactRouter5Compat,useStream:Oe.useStream});Oe.pluginManager.applyPlugins({key:"patchClientRoutes",type:"event",args:{routes:mt}});for(var nr=ht.createElement(Tr,{basename:at,pluginManager:Oe.pluginManager,routes:Oe.routes,clientRoutes:mt,history:Oe.history},ft),er=0,Ur=ir;er1&&location.pathname.endsWith("/")&&history.replaceState({},"",location.pathname.slice(0,-1)+location.search+location.hash),typeof document!="undefined"&&document.documentElement.setAttribute("data-prefers-color","light"),fn(),typeof window!="undefined"&&(window.g_umi={version:"4.4.1"}),(0,rt.rl)((0,qe.We)())})()})(); }()); \ No newline at end of file diff --git a/~demos/:id/index.html b/~demos/:id/index.html index 1e50aed..f8bbfa3 100644 --- a/~demos/:id/index.html +++ b/~demos/:id/index.html @@ -6,10 +6,10 @@ - +
- + \ No newline at end of file diff --git a/~demos/queryprofile-demo-0/index.html b/~demos/queryprofile-demo-0/index.html index 1e50aed..f8bbfa3 100644 --- a/~demos/queryprofile-demo-0/index.html +++ b/~demos/queryprofile-demo-0/index.html @@ -6,10 +6,10 @@ - +
- + \ No newline at end of file diff --git a/~demos/queryprofile-demo-1/index.html b/~demos/queryprofile-demo-1/index.html index 1e50aed..f8bbfa3 100644 --- a/~demos/queryprofile-demo-1/index.html +++ b/~demos/queryprofile-demo-1/index.html @@ -6,10 +6,10 @@ - +
- + \ No newline at end of file