diff --git a/docs/3649.4f0c26e7.async.js b/docs/3649.d5433f39.async.js similarity index 99% rename from docs/3649.4f0c26e7.async.js rename to docs/3649.d5433f39.async.js index 15b63b83..b7b86c31 100644 --- a/docs/3649.4f0c26e7.async.js +++ b/docs/3649.d5433f39.async.js @@ -1,4 +1,4 @@ -!(function(){"use strict";var Lf=Object.defineProperty,Pf=Object.defineProperties;var xf=Object.getOwnPropertyDescriptors;var mt=Object.getOwnPropertySymbols;var ao=Object.prototype.hasOwnProperty,uo=Object.prototype.propertyIsEnumerable;var co=(L,P,C)=>P in L?Lf(L,P,{enumerable:!0,configurable:!0,writable:!0,value:C}):L[P]=C,b=(L,P)=>{for(var C in P||(P={}))ao.call(P,C)&&co(L,C,P[C]);if(mt)for(var C of mt(P))uo.call(P,C)&&co(L,C,P[C]);return L},N=(L,P)=>Pf(L,xf(P));var io=(L,P)=>{var C={};for(var T in L)ao.call(L,T)&&P.indexOf(T)<0&&(C[T]=L[T]);if(L!=null&&mt)for(var T of mt(L))P.indexOf(T)<0&&uo.call(L,T)&&(C[T]=L[T]);return C};var fo=(L,P,C)=>new Promise((T,X)=>{var ye=Y=>{try{he(C.next(Y))}catch(W){X(W)}},Ve=Y=>{try{he(C.throw(Y))}catch(W){X(W)}},he=Y=>Y.done?T(Y.value):Promise.resolve(Y.value).then(ye,Ve);he((C=C.apply(L,P)).next())});(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[3649],{73649:function(L,P,C){C.r(P),C.d(P,{$:function(){return sf},action:function(){return ef},addMiddleware:function(){return Ff},addPlugin:function(){return kf},atom:function(){return Ri},atomx:function(){return Ti},block:function(){return nf},createShared:function(){return _i},cst:function(){return Cf},defineDeriveFnItem:function(){return ki},defineDeriveTask:function(){return Fi},derive:function(){return Mi},deriveDict:function(){return wi},dynamicBlock:function(){return rf},emit:function(){return yf},flush:function(){return Ef},getActionLoading:function(){return Tf},getAtom:function(){return wf},getDeriveLoading:function(){return bf},getMutateLoading:function(){return Rf},getRawState:function(){return If},getSnap:function(){return Mf},init:function(){return gf},isAtom:function(){return vf},isDerivedAtom:function(){return Sf},isDiff:function(){return Df},model:function(){return df},modelFactory:function(){return pf},mutate:function(){return of},mutateDict:function(){return cf},on:function(){return hf},produce:function(){return _f},reactiveDesc:function(){return mf},runDerive:function(){return Ci},runDeriveTask:function(){return Oi},runMutate:function(){return af},runMutateTask:function(){return uf},shallowCompare:function(){return Af},share:function(){return bi},sharex:function(){return Ii},signal:function(){return tf},storeSrv:function(){return Kf},sync:function(){return ff},syncer:function(){return lf},useActionLoading:function(){return Xi},useAtom:function(){return Pi},useAtomX:function(){return xi},useDerived:function(){return Vi},useEffect:function(){return Wi},useGlobalForceUpdate:function(){return qi},useGlobalId:function(){return Bi},useLayoutEffect:function(){return zi},useLocalForceUpdate:function(){return Qi},useMutable:function(){return ji},useMutateLoading:function(){return $i},useObject:function(){return Zi},useOnEvent:function(){return Hi},useReactive:function(){return Ni},useReactiveX:function(){return Ui},useService:function(){return Gi},useStable:function(){return Ji},useWatch:function(){return Yi},watch:function(){return Li}});function T(e,t){e.includes(t)||e.push(t)}function X(e,t){const n=e.indexOf(t);n>=0&&e.splice(n,1)}function ye(e){return Array.from(new Set(e))}function Ve(e,t){let n=!1;for(const r of e)if(t.includes(r)){n=!0;break}return n}function he(e,t){let n="";const r=e.length;for(let s=0;s{n=Et(r)?Cn(r,s):r[s],r=n}),n}function On(e,t,n){let r=e;const s=t.length-1;t.forEach((o,c)=>{const a=Et(r);if(c===s)return void(a?r.set(o,n):r[o]=n);r=a?Cn(r,o):r[o]})}function vo(){return me("changing shared state is invalid"),!0}function Bf(e){return e}function Kt(e,t){return`${t}/${e}`}function At(e){return e&&Ke()}var So=Object.defineProperty,Dt={};((e,t)=>{for(var n in t)So(e,n,{get:t[n],enumerable:!0})})(Dt,{useEffect:()=>_o,useEffectLogic:()=>Rt,useForceUpdate:()=>Ln,useLayoutEffect:()=>Do,useObject:()=>To,useObjectLogic:()=>xn,useStable:()=>Pn});var Ko=0,Be=new Map,_t=0;function Ao(e,t){const n=()=>{const r=t();return()=>{Be.delete(e),r&&r()}};if(function(r){_t||(_t=r)}(e),function(r){const s=Be.get(r);s?s.count+=1:Be.set(r,{count:1})}(e),_t%2!=0)return n();{const r=function(s){return Be.get(s)}(e);if(r&&r.count>1)return n()}}function Rt(e,t,n){const{useState:r,useLayoutEffect:s,useEffect:o}=e.react,{isLayout:c,deps:a}=n,[u]=r(()=>++Ko);(c?s:o)(()=>Ao(u,t),a)}function Do(e,t,n){Rt(e,t,{isLayout:!0,deps:n})}function _o(e,t,n){Rt(e,t,{deps:n})}function Ln(e){const[,t]=e.react.useState({});return()=>t({})}function Ro(e){const{data:t}=e.current;F(t)?e.current.wrap=(...n)=>e.current.data(...n):H(t)?e.current.wrap=function(n,r){if(!Ke()){const o={};return Object.keys(n).forEach(c=>{const a=n[c];F(a)?o[c]=(...u)=>r.current.data[c](...u):Object.defineProperty(o,c,{get:()=>r.current.data[c],set(u){r.current.data[c]=u}})}),o}const s={};return new Proxy(n,{get(o,c){const a=o[c];return F(a)?De(s,c,(...u)=>r.current.data[c](...u)):a}})}(t,e):e.current.wrap=t}function Pn(e,t){const{useRef:n,useMemo:r}=e.react,s=n({data:t,wrap:{},inited:!1});return s.current.data=r(()=>t,[t]),s.current.inited||(Ro(s),s.current.inited=!0),s.current.wrap}function xn(e,t,n,r){const{useState:s,useRef:o,useEffect:c}=e.react,[a]=s(t),u=Ln(e),i=o({state:null,unmount:!1,shouldCopy:!0}),l=Pn(e,{setState(f){const d=i.current;if(d.unmount)return;let y;const{state:m}=d;n?(y=n(f,d.state||a),r&&y?(d.state=y,d.shouldCopy=!1):d.shouldCopy=!0):(y=(F(f)?f(m):f)||{},d.shouldCopy=!0),Object.assign(a,y||{}),u()},getLatestState(){const f=i.current;return f.shouldCopy&&(f.state=b({},a),f.shouldCopy=!1),f.state}});return c(()=>{const f=i.current;return f.unmount=!1,()=>{f.unmount=!0}},[i]),[a,l.setState,l]}function To(e,t){return xn(e,t)}function bo(e){const t={},n={react:e},r=Dt;return Object.keys(Dt).forEach(s=>{t[s]=r[s].bind(null,n)}),t}var j=C(18636),Io=Object.defineProperty,Mo=(e,t)=>{for(var n in t)Io(e,n,{get:t[n],enumerable:!0})},Nn={};Mo(Nn,{$:()=>pi,action:()=>ds,addMiddleware:()=>Jo,addPlugin:()=>ec,atom:()=>ju,atomx:()=>$u,block:()=>ii,createShared:()=>di,cst:()=>yi,currentDraftRoot:()=>Ic,defineDeriveFnItem:()=>du,defineDeriveTask:()=>lu,derive:()=>gs,deriveDict:()=>fu,dynamicBlock:()=>qs,emit:()=>sc,flush:()=>nn,getActionLoading:()=>Tu,getAtom:()=>Xn,getDeriveLoading:()=>Ba,getMutateLoading:()=>_u,getRawState:()=>lc,getSnap:()=>ur,init:()=>zo,isAtom:()=>Te,isDerivedAtom:()=>ae,isDiff:()=>li,mutate:()=>Ks,mutateDict:()=>mn,on:()=>oc,produce:()=>j.Uy,reactiveDesc:()=>Cr,runDerive:()=>Na,runDeriveTask:()=>Ua,runMutate:()=>vs,runMutateTask:()=>Ss,shallowCompare:()=>fi,share:()=>_n,sharex:()=>Hu,signal:()=>eo,storeSrv:()=>Fu,sync:()=>Xu,syncer:()=>Wu,useActionLoading:()=>bu,useAtom:()=>As,useAtomX:()=>Ds,useDerived:()=>vn,useGlobalForceUpdate:()=>bs,useGlobalId:()=>Du,useLocalForceUpdate:()=>Fs,useMutable:()=>ks,useMutateLoading:()=>Ru,useOnEvent:()=>Iu,useReactive:()=>Kn,useReactiveX:()=>Cs,useService:()=>wu,useWatch:()=>Cu,watch:()=>nu});var Un="3.6.13",wo=j.TT,Tt={ON_DATA_CHANGED:"ON_DATA_CHANGED",ON_SHARE_CREATED:"ON_SHARE_CREATED",ON_ERROR_OCCURED:"ON_ERROR_OCCURED"},bt={NO:"no",PRIVATE:"private",GLOBAL:"global"},Vn=0,Yn=Symbol,Fo=typeof Yn=="function";function Q(e){return Fo?Yn(e):(Vn+=1,`__HELUX_SYMBOL_${Vn}__`)}var ko="__proto__",Co=Ke(),Oo=Q("HeluxUndefined"),Bn=Q("HeluxMutateFnItem"),Ge=Q("HeluxFnKey"),He=Q("HeluxSharedKey"),Gn=Q("HeluxReactiveMeta"),It=Q("HeluxIsBlock"),_e=Q("HeluxIsAtom"),je=Q("HeluxIsDerivedAtom"),$e=[He,_e,je,It],Xe="SingleMutate",Lo="HeluxGlobalLoading",Po=6,xo=!0,Hn=2e3,No=20,Re="1",Mt="2",We=1,ze=2,jn=3,Ee="|",Je={TASK:"task",MAY_TRANSFER:"may_transfer"},q={STATIC:"static",HOOK:"hook"},J={USER_STATE:"user_state",GLOGAL_EMPTY:"global_empty",GLOGAL_LOADING:"global_loading",PRIVATE_LOADING:"private_loading"},Uo="derive",$n="watch",Ze="Object",Vo="Map",Yo="Array",Bo="Other",B={SET_STATE:"SetState",MUTATE:"Mutate",ACTION:"Action",REACTIVE:"Reactive",LOADING:"Loading",SYNC:"Sync"};function Te(e){var t;return e&&(t=e[_e])!=null?t:!1}function ae(e){return e&&e[je]||!1}function Xn(e){return Te(e)||ae(e)?e.val:e}function Go(){return{keySeed:{static:0,hook:0,Reactive:0,Mutate:0},runningFnKey:"",runningSharedKey:0,isIgnore:!1,depKeys:[],GID_INSKEYS_MAP:new Map,FNKEY_STATIC_CTX_MAP:new Map,FNKEY_HOOK_CTX_MAP:new Map,DEPKEY_FNKEYS_MAP:new Map,UNMOUNT_INFO_MAP:new Map,DEPKEY_COMPUTING_FNKEYS_MAP:new Map}}function Ho(){return{keySeed:0,keyPrefix:0,initCount:0,mountedCount:0,latest:{val:null,stateOrResult:null,sharedKey:0,depKey:"",keyPath:[],isDerivedResult:!1,isDerivedAtom:!1},runningKey:"",isDynamic:!1,KEY_CTX_MAP:new Map,KEY_DYNAMIC_CTX_MAP:new Map}}function jo(){return{keySeed:0,UNMOUNT_INFO_MAP:new Map}}function $o(){return{keySeed:0,SHARED_KEY_STATE_MAP:new Map,STATE_SHARED_KEY_MAP:new Map,INTERMAL_MAP:new Map,COMPARE_MAP:new Map,isStateChanged:!1}}function Wn(){const e={};return{on:(t,n)=>{De(e,t,[]).push(n)},emit:(t,...n)=>{(e[t]||[]).slice().forEach(s=>s(...n))},off:(t,n)=>{const r=e[t]||[],s=r.findIndex(o=>o===n);s>=0&&r.splice(s,1)},canEmit:t=>e[t]}}function zn(){const e={VER:Un,LIMU_VER:j.TT,rootState:{},setState:(t,n)=>{const r=e.ctx.mod[t];if(!r)throw new Error(`moduleName ${t} not found`);r.setState(n)},ctx:{bus:Wn(),userBus:Wn(),mod:{},middlewares:[],plugins:[],sharedScope:$o(),fnScope:Go(),insScope:jo(),blockScope:Ho(),markAtomMap:new Map,renderSN:0,globalLoading:null,globalLoadingInternal:null,globalEmpty:null,globalEmptyInternal:null,isRootRender:!0},legacyRoot:{}};return e}var Qe={},Jn=!1,Zn=null,Qn=!1;function U(){return Qe.ctx||{}}function Xo(){return Qe}function qn(e){Qe=e.ROOT,Zn=e.api,Jn=e.inited}function Wo(){return{ROOT:Qe,inited:Jn,API:Zn}}function zo(e){if(Qn)return!1;Qn=!0;const{isRootRender:t=!0}=e;return U().isRootRender=t,!0}function Jo(e){const{middlewares:t}=U();t.push(e)}function Zo(e,t,n,r){const{middlewares:s}=U();if(!s.length)return;const o={},{sharedKey:c,moduleName:a,forAtom:u}=e,l={forAtom:u,draftRoot:t,draft:n,sharedKey:c,moduleName:a,setData:(f,d)=>o[f]=d,data:o,idx:0,sn:r};s.forEach((f,d)=>{f(N(b({},l),{idx:d}))})}var{ON_DATA_CHANGED:wt,ON_SHARE_CREATED:er,ON_ERROR_OCCURED:Qo}=Tt,qo=[J.GLOGAL_LOADING,J.PRIVATE_LOADING];function ec(e){const{plugins:t,bus:n}=U();t.push(e);const r={on:(s,o)=>n.on(s,o),onStateChanged:s=>n.on(wt,s)};e.install(r)}function tc(e,t){const{bus:n}=U();if(n.canEmit(wt)){const{from:r,desc:s}=t,{sharedKey:o,moduleName:c,snap:a,usefulName:u,stateType:i}=e;let l;qo.includes(i)?l=`${u}/setState`:l=`${u}@${r||"Api"}/${s}`,n.emit(wt,{snap:a,sharedKey:o,moduleName:c,type:l})}}function nc(e){const{bus:t}=U();if(t.canEmit(er)){const{snap:n,sharedKey:r,moduleName:s,usefulName:o}=e,c=`${o}@FactoryApi/createShared`;t.emit(er,{snap:n,sharedKey:r,moduleName:s,type:c})}}function tr(e,t,n){const{bus:r}=U();if(!r.canEmit(t))return!1;const{sharedKey:s,moduleName:o}=e;return r.emit(t,{moduleName:o,sharedKey:s,data:n}),!0}function nr(e,t){tr(e,Qo,{err:t})||(console.warn("found uncaught error, sugguest add a plugin to handle this error"),console.error(t))}function rc(){const{userBus:e}=U();return e}function sc(e,...t){const{userBus:n}=U();n.emit(e,...t)}function oc(e,t){const{userBus:n}=U();return n.on(e,t),()=>n.off(e,t)}function cc(e,t){return e.__proto__=t,e}function ac(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(e,n)||(e[n]=t[n]);return e}var Ft=Object.setPrototypeOf||({__proto__:[]}instanceof Array?cc:ac);function uc(e){const t=Object.create(null);return Ft(t,b({},Object.prototype)),e&&Object.assign(t,e),t}function rr(e){if(F(e))return;const t=Object.create(null);return Ft(t,Object.prototype),Ft(e,t),e}function sr(e,t,n){return e[t]=n,!0}function or(e,t){return e[t]}function be(e,t){const{set:n=sr,get:r=or,obj:s={}}=t||{};return Object.keys(e).forEach(o=>{Object.defineProperty(s,o,{enumerable:!0,configurable:!1,set:function(c){return n(e,o,c)},get:function(){return r(e,o)}})}),s}function ue(e,t){const{set:n=sr,get:r=or}=t||{};if(Ke())return new Proxy(e,{set(c,a,u){return n(c,a,u)},get(c,a){return r(c,a)}});const s=uc();return be(s,{obj:s,set:n,get:r})}var Ie=U();function qe(e){const n=U()[e];return Ie[e]=n,n}function Z(){return Ie.blockScope||qe("blockScope")}function x(){return Ie.fnScope||qe("fnScope")}function ee(){return Ie.sharedScope||qe("sharedScope")}function cr(){return Ie.insScope||qe("insScope")}function ar(){const{INTERMAL_MAP:e}=ee();return e}function ic(e,t){if(!e||!se()||!t)return;const{INTERMAL_MAP:n,SHARED_KEY_STATE_MAP:r,STATE_SHARED_KEY_MAP:s}=ee();let o=[],c=!1;if(n.forEach(a=>{a.moduleName===e&&a.loc===t&&a.stateType===J.USER_STATE&&o.push(a.sharedKey)}),o.length>1){const a=o[0],u=n.get(a);n.delete(a),u&&(r.delete(u.sharedKey),s.delete(u.rawState))}return c}function Me(e){return ar().get(e)}function V(e){const t=te(e);return Me(t)}function fc(e,t){const n=ar(),r=te(e);n.set(r,t)}function lc(e){return V(e).rawState}function ur(e,t=!0){const n=V(e);return t?n.prevSnap:n.snap}function te(e){return e&&(e[He]||ee().STATE_SHARED_KEY_MAP.get(e))||0}function dc(e){const t=ee(),{STATE_SHARED_KEY_MAP:n}=t,r=Ae(t.keySeed);return n.set(e,r),t.keySeed=r,r}function pc(e,t){const{SHARED_KEY_STATE_MAP:n,STATE_SHARED_KEY_MAP:r}=ee();n.set(e,t),r.set(t,e)}function yc(e){return ee().SHARED_KEY_STATE_MAP.get(e)}function hc(e,t){const{rootState:n,ctx:r}=Xo(),{moduleName:s,usefulName:o}=t,c=n[o],a=V(c);if(s&&a&&a.loc!==t.loc){const u=` +!(function(){"use strict";var Lf=Object.defineProperty,Pf=Object.defineProperties;var xf=Object.getOwnPropertyDescriptors;var mt=Object.getOwnPropertySymbols;var ao=Object.prototype.hasOwnProperty,uo=Object.prototype.propertyIsEnumerable;var co=(L,P,C)=>P in L?Lf(L,P,{enumerable:!0,configurable:!0,writable:!0,value:C}):L[P]=C,b=(L,P)=>{for(var C in P||(P={}))ao.call(P,C)&&co(L,C,P[C]);if(mt)for(var C of mt(P))uo.call(P,C)&&co(L,C,P[C]);return L},N=(L,P)=>Pf(L,xf(P));var io=(L,P)=>{var C={};for(var T in L)ao.call(L,T)&&P.indexOf(T)<0&&(C[T]=L[T]);if(L!=null&&mt)for(var T of mt(L))P.indexOf(T)<0&&uo.call(L,T)&&(C[T]=L[T]);return C};var fo=(L,P,C)=>new Promise((T,X)=>{var ye=Y=>{try{he(C.next(Y))}catch(W){X(W)}},Ve=Y=>{try{he(C.throw(Y))}catch(W){X(W)}},he=Y=>Y.done?T(Y.value):Promise.resolve(Y.value).then(ye,Ve);he((C=C.apply(L,P)).next())});(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[3649],{73649:function(L,P,C){C.r(P),C.d(P,{$:function(){return sf},action:function(){return ef},addMiddleware:function(){return Ff},addPlugin:function(){return kf},atom:function(){return Ri},atomx:function(){return Ti},block:function(){return nf},createShared:function(){return _i},cst:function(){return Cf},defineDeriveFnItem:function(){return ki},defineDeriveTask:function(){return Fi},derive:function(){return Mi},deriveDict:function(){return wi},dynamicBlock:function(){return rf},emit:function(){return yf},flush:function(){return Ef},getActionLoading:function(){return Tf},getAtom:function(){return wf},getDeriveLoading:function(){return bf},getMutateLoading:function(){return Rf},getRawState:function(){return If},getSnap:function(){return Mf},init:function(){return gf},isAtom:function(){return vf},isDerivedAtom:function(){return Sf},isDiff:function(){return Df},model:function(){return df},modelFactory:function(){return pf},mutate:function(){return of},mutateDict:function(){return cf},on:function(){return hf},produce:function(){return _f},reactiveDesc:function(){return mf},runDerive:function(){return Ci},runDeriveTask:function(){return Oi},runMutate:function(){return af},runMutateTask:function(){return uf},shallowCompare:function(){return Af},share:function(){return bi},sharex:function(){return Ii},signal:function(){return tf},storeSrv:function(){return Kf},sync:function(){return ff},syncer:function(){return lf},useActionLoading:function(){return Xi},useAtom:function(){return Pi},useAtomX:function(){return xi},useDerived:function(){return Vi},useEffect:function(){return Wi},useGlobalForceUpdate:function(){return qi},useGlobalId:function(){return Bi},useLayoutEffect:function(){return zi},useLocalForceUpdate:function(){return Qi},useMutable:function(){return ji},useMutateLoading:function(){return $i},useObject:function(){return Zi},useOnEvent:function(){return Hi},useReactive:function(){return Ni},useReactiveX:function(){return Ui},useService:function(){return Gi},useStable:function(){return Ji},useWatch:function(){return Yi},watch:function(){return Li}});function T(e,t){e.includes(t)||e.push(t)}function X(e,t){const n=e.indexOf(t);n>=0&&e.splice(n,1)}function ye(e){return Array.from(new Set(e))}function Ve(e,t){let n=!1;for(const r of e)if(t.includes(r)){n=!0;break}return n}function he(e,t){let n="";const r=e.length;for(let s=0;s{n=Et(r)?Cn(r,s):r[s],r=n}),n}function On(e,t,n){let r=e;const s=t.length-1;t.forEach((o,c)=>{const a=Et(r);if(c===s)return void(a?r.set(o,n):r[o]=n);r=a?Cn(r,o):r[o]})}function vo(){return me("changing shared state is invalid"),!0}function Bf(e){return e}function Kt(e,t){return`${t}/${e}`}function At(e){return e&&Ke()}var So=Object.defineProperty,Dt={};((e,t)=>{for(var n in t)So(e,n,{get:t[n],enumerable:!0})})(Dt,{useEffect:()=>_o,useEffectLogic:()=>Rt,useForceUpdate:()=>Ln,useLayoutEffect:()=>Do,useObject:()=>To,useObjectLogic:()=>xn,useStable:()=>Pn});var Ko=0,Be=new Map,_t=0;function Ao(e,t){const n=()=>{const r=t();return()=>{Be.delete(e),r&&r()}};if(function(r){_t||(_t=r)}(e),function(r){const s=Be.get(r);s?s.count+=1:Be.set(r,{count:1})}(e),_t%2!=0)return n();{const r=function(s){return Be.get(s)}(e);if(r&&r.count>1)return n()}}function Rt(e,t,n){const{useState:r,useLayoutEffect:s,useEffect:o}=e.react,{isLayout:c,deps:a}=n,[u]=r(()=>++Ko);(c?s:o)(()=>Ao(u,t),a)}function Do(e,t,n){Rt(e,t,{isLayout:!0,deps:n})}function _o(e,t,n){Rt(e,t,{deps:n})}function Ln(e){const[,t]=e.react.useState({});return()=>t({})}function Ro(e){const{data:t}=e.current;F(t)?e.current.wrap=(...n)=>e.current.data(...n):H(t)?e.current.wrap=function(n,r){if(!Ke()){const o={};return Object.keys(n).forEach(c=>{const a=n[c];F(a)?o[c]=(...u)=>r.current.data[c](...u):Object.defineProperty(o,c,{get:()=>r.current.data[c],set(u){r.current.data[c]=u}})}),o}const s={};return new Proxy(n,{get(o,c){const a=o[c];return F(a)?De(s,c,(...u)=>r.current.data[c](...u)):a}})}(t,e):e.current.wrap=t}function Pn(e,t){const{useRef:n,useMemo:r}=e.react,s=n({data:t,wrap:{},inited:!1});return s.current.data=r(()=>t,[t]),s.current.inited||(Ro(s),s.current.inited=!0),s.current.wrap}function xn(e,t,n,r){const{useState:s,useRef:o,useEffect:c}=e.react,[a]=s(t),u=Ln(e),i=o({state:null,unmount:!1,shouldCopy:!0}),l=Pn(e,{setState(f){const d=i.current;if(d.unmount)return;let y;const{state:m}=d;n?(y=n(f,d.state||a),r&&y?(d.state=y,d.shouldCopy=!1):d.shouldCopy=!0):(y=(F(f)?f(m):f)||{},d.shouldCopy=!0),Object.assign(a,y||{}),u()},getLatestState(){const f=i.current;return f.shouldCopy&&(f.state=b({},a),f.shouldCopy=!1),f.state}});return c(()=>{const f=i.current;return f.unmount=!1,()=>{f.unmount=!0}},[i]),[a,l.setState,l]}function To(e,t){return xn(e,t)}function bo(e){const t={},n={react:e},r=Dt;return Object.keys(Dt).forEach(s=>{t[s]=r[s].bind(null,n)}),t}var j=C(18636),Io=Object.defineProperty,Mo=(e,t)=>{for(var n in t)Io(e,n,{get:t[n],enumerable:!0})},Nn={};Mo(Nn,{$:()=>pi,action:()=>ds,addMiddleware:()=>Jo,addPlugin:()=>ec,atom:()=>ju,atomx:()=>$u,block:()=>ii,createShared:()=>di,cst:()=>yi,currentDraftRoot:()=>Ic,defineDeriveFnItem:()=>du,defineDeriveTask:()=>lu,derive:()=>gs,deriveDict:()=>fu,dynamicBlock:()=>qs,emit:()=>sc,flush:()=>nn,getActionLoading:()=>Tu,getAtom:()=>Xn,getDeriveLoading:()=>Ba,getMutateLoading:()=>_u,getRawState:()=>lc,getSnap:()=>ur,init:()=>zo,isAtom:()=>Te,isDerivedAtom:()=>ae,isDiff:()=>li,mutate:()=>Ks,mutateDict:()=>mn,on:()=>oc,produce:()=>j.Uy,reactiveDesc:()=>Cr,runDerive:()=>Na,runDeriveTask:()=>Ua,runMutate:()=>vs,runMutateTask:()=>Ss,shallowCompare:()=>fi,share:()=>_n,sharex:()=>Hu,signal:()=>eo,storeSrv:()=>Fu,sync:()=>Xu,syncer:()=>Wu,useActionLoading:()=>bu,useAtom:()=>As,useAtomX:()=>Ds,useDerived:()=>vn,useGlobalForceUpdate:()=>bs,useGlobalId:()=>Du,useLocalForceUpdate:()=>Fs,useMutable:()=>ks,useMutateLoading:()=>Ru,useOnEvent:()=>Iu,useReactive:()=>Kn,useReactiveX:()=>Cs,useService:()=>wu,useWatch:()=>Cu,watch:()=>nu});var Un="3.6.14",wo=j.TT,Tt={ON_DATA_CHANGED:"ON_DATA_CHANGED",ON_SHARE_CREATED:"ON_SHARE_CREATED",ON_ERROR_OCCURED:"ON_ERROR_OCCURED"},bt={NO:"no",PRIVATE:"private",GLOBAL:"global"},Vn=0,Yn=Symbol,Fo=typeof Yn=="function";function Q(e){return Fo?Yn(e):(Vn+=1,`__HELUX_SYMBOL_${Vn}__`)}var ko="__proto__",Co=Ke(),Oo=Q("HeluxUndefined"),Bn=Q("HeluxMutateFnItem"),Ge=Q("HeluxFnKey"),He=Q("HeluxSharedKey"),Gn=Q("HeluxReactiveMeta"),It=Q("HeluxIsBlock"),_e=Q("HeluxIsAtom"),je=Q("HeluxIsDerivedAtom"),$e=[He,_e,je,It],Xe="SingleMutate",Lo="HeluxGlobalLoading",Po=6,xo=!0,Hn=2e3,No=20,Re="1",Mt="2",We=1,ze=2,jn=3,Ee="|",Je={TASK:"task",MAY_TRANSFER:"may_transfer"},q={STATIC:"static",HOOK:"hook"},J={USER_STATE:"user_state",GLOGAL_EMPTY:"global_empty",GLOGAL_LOADING:"global_loading",PRIVATE_LOADING:"private_loading"},Uo="derive",$n="watch",Ze="Object",Vo="Map",Yo="Array",Bo="Other",B={SET_STATE:"SetState",MUTATE:"Mutate",ACTION:"Action",REACTIVE:"Reactive",LOADING:"Loading",SYNC:"Sync"};function Te(e){var t;return e&&(t=e[_e])!=null?t:!1}function ae(e){return e&&e[je]||!1}function Xn(e){return Te(e)||ae(e)?e.val:e}function Go(){return{keySeed:{static:0,hook:0,Reactive:0,Mutate:0},runningFnKey:"",runningSharedKey:0,isIgnore:!1,depKeys:[],GID_INSKEYS_MAP:new Map,FNKEY_STATIC_CTX_MAP:new Map,FNKEY_HOOK_CTX_MAP:new Map,DEPKEY_FNKEYS_MAP:new Map,UNMOUNT_INFO_MAP:new Map,DEPKEY_COMPUTING_FNKEYS_MAP:new Map}}function Ho(){return{keySeed:0,keyPrefix:0,initCount:0,mountedCount:0,latest:{val:null,stateOrResult:null,sharedKey:0,depKey:"",keyPath:[],isDerivedResult:!1,isDerivedAtom:!1},runningKey:"",isDynamic:!1,KEY_CTX_MAP:new Map,KEY_DYNAMIC_CTX_MAP:new Map}}function jo(){return{keySeed:0,UNMOUNT_INFO_MAP:new Map}}function $o(){return{keySeed:0,SHARED_KEY_STATE_MAP:new Map,STATE_SHARED_KEY_MAP:new Map,INTERMAL_MAP:new Map,COMPARE_MAP:new Map,isStateChanged:!1}}function Wn(){const e={};return{on:(t,n)=>{De(e,t,[]).push(n)},emit:(t,...n)=>{(e[t]||[]).slice().forEach(s=>s(...n))},off:(t,n)=>{const r=e[t]||[],s=r.findIndex(o=>o===n);s>=0&&r.splice(s,1)},canEmit:t=>e[t]}}function zn(){const e={VER:Un,LIMU_VER:j.TT,rootState:{},setState:(t,n)=>{const r=e.ctx.mod[t];if(!r)throw new Error(`moduleName ${t} not found`);r.setState(n)},ctx:{bus:Wn(),userBus:Wn(),mod:{},middlewares:[],plugins:[],sharedScope:$o(),fnScope:Go(),insScope:jo(),blockScope:Ho(),markAtomMap:new Map,renderSN:0,globalLoading:null,globalLoadingInternal:null,globalEmpty:null,globalEmptyInternal:null,isRootRender:!0},legacyRoot:{}};return e}var Qe={},Jn=!1,Zn=null,Qn=!1;function U(){return Qe.ctx||{}}function Xo(){return Qe}function qn(e){Qe=e.ROOT,Zn=e.api,Jn=e.inited}function Wo(){return{ROOT:Qe,inited:Jn,API:Zn}}function zo(e){if(Qn)return!1;Qn=!0;const{isRootRender:t=!0}=e;return U().isRootRender=t,!0}function Jo(e){const{middlewares:t}=U();t.push(e)}function Zo(e,t,n,r){const{middlewares:s}=U();if(!s.length)return;const o={},{sharedKey:c,moduleName:a,forAtom:u}=e,l={forAtom:u,draftRoot:t,draft:n,sharedKey:c,moduleName:a,setData:(f,d)=>o[f]=d,data:o,idx:0,sn:r};s.forEach((f,d)=>{f(N(b({},l),{idx:d}))})}var{ON_DATA_CHANGED:wt,ON_SHARE_CREATED:er,ON_ERROR_OCCURED:Qo}=Tt,qo=[J.GLOGAL_LOADING,J.PRIVATE_LOADING];function ec(e){const{plugins:t,bus:n}=U();t.push(e);const r={on:(s,o)=>n.on(s,o),onStateChanged:s=>n.on(wt,s)};e.install(r)}function tc(e,t){const{bus:n}=U();if(n.canEmit(wt)){const{from:r,desc:s}=t,{sharedKey:o,moduleName:c,snap:a,usefulName:u,stateType:i}=e;let l;qo.includes(i)?l=`${u}/setState`:l=`${u}@${r||"Api"}/${s}`,n.emit(wt,{snap:a,sharedKey:o,moduleName:c,type:l})}}function nc(e){const{bus:t}=U();if(t.canEmit(er)){const{snap:n,sharedKey:r,moduleName:s,usefulName:o}=e,c=`${o}@FactoryApi/createShared`;t.emit(er,{snap:n,sharedKey:r,moduleName:s,type:c})}}function tr(e,t,n){const{bus:r}=U();if(!r.canEmit(t))return!1;const{sharedKey:s,moduleName:o}=e;return r.emit(t,{moduleName:o,sharedKey:s,data:n}),!0}function nr(e,t){tr(e,Qo,{err:t})||(console.warn("found uncaught error, sugguest add a plugin to handle this error"),console.error(t))}function rc(){const{userBus:e}=U();return e}function sc(e,...t){const{userBus:n}=U();n.emit(e,...t)}function oc(e,t){const{userBus:n}=U();return n.on(e,t),()=>n.off(e,t)}function cc(e,t){return e.__proto__=t,e}function ac(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(e,n)||(e[n]=t[n]);return e}var Ft=Object.setPrototypeOf||({__proto__:[]}instanceof Array?cc:ac);function uc(e){const t=Object.create(null);return Ft(t,b({},Object.prototype)),e&&Object.assign(t,e),t}function rr(e){if(F(e))return;const t=Object.create(null);return Ft(t,Object.prototype),Ft(e,t),e}function sr(e,t,n){return e[t]=n,!0}function or(e,t){return e[t]}function be(e,t){const{set:n=sr,get:r=or,obj:s={}}=t||{};return Object.keys(e).forEach(o=>{Object.defineProperty(s,o,{enumerable:!0,configurable:!1,set:function(c){return n(e,o,c)},get:function(){return r(e,o)}})}),s}function ue(e,t){const{set:n=sr,get:r=or}=t||{};if(Ke())return new Proxy(e,{set(c,a,u){return n(c,a,u)},get(c,a){return r(c,a)}});const s=uc();return be(s,{obj:s,set:n,get:r})}var Ie=U();function qe(e){const n=U()[e];return Ie[e]=n,n}function Z(){return Ie.blockScope||qe("blockScope")}function x(){return Ie.fnScope||qe("fnScope")}function ee(){return Ie.sharedScope||qe("sharedScope")}function cr(){return Ie.insScope||qe("insScope")}function ar(){const{INTERMAL_MAP:e}=ee();return e}function ic(e,t){if(!e||!se()||!t)return;const{INTERMAL_MAP:n,SHARED_KEY_STATE_MAP:r,STATE_SHARED_KEY_MAP:s}=ee();let o=[],c=!1;if(n.forEach(a=>{a.moduleName===e&&a.loc===t&&a.stateType===J.USER_STATE&&o.push(a.sharedKey)}),o.length>1){const a=o[0],u=n.get(a);n.delete(a),u&&(r.delete(u.sharedKey),s.delete(u.rawState))}return c}function Me(e){return ar().get(e)}function V(e){const t=te(e);return Me(t)}function fc(e,t){const n=ar(),r=te(e);n.set(r,t)}function lc(e){return V(e).rawState}function ur(e,t=!0){const n=V(e);return t?n.prevSnap:n.snap}function te(e){return e&&(e[He]||ee().STATE_SHARED_KEY_MAP.get(e))||0}function dc(e){const t=ee(),{STATE_SHARED_KEY_MAP:n}=t,r=Ae(t.keySeed);return n.set(e,r),t.keySeed=r,r}function pc(e,t){const{SHARED_KEY_STATE_MAP:n,STATE_SHARED_KEY_MAP:r}=ee();n.set(e,t),r.set(t,e)}function yc(e){return ee().SHARED_KEY_STATE_MAP.get(e)}function hc(e,t){const{rootState:n,ctx:r}=Xo(),{moduleName:s,usefulName:o}=t,c=n[o],a=V(c);if(s&&a&&a.loc!==t.loc){const u=` loc1:${a.loc} loc2:${t.loc}`;return me(`only-dev-mode tip: moduleName ${s} duplicate! this does not effect helux but the duplicated module will be ignored by devtool`+u)}n[o]=e,r.mod[o]=V(e)}var gc={innerSetState:w};function ir(e,t){const{rawState:n,forAtom:r}=e,s=new Map,o={},c={},a=[],u=b({},n);let i=u;return r&&(i=n.val),N(b(b({ver:0,sn:0,reactive:n,reactiveRoot:n,sync:w,syncer:w,snap:u,prevSnap:u,rawStateVal:i},e),t),{insCtxMap:s,key2InsKeys:o,id2InsKeys:c,recordId(l,f){if(!l)return;const d=De(c,l,[]);T(d,f)},delId(l,f){l&&X(c[l]||[],f)},recordDep(l,f){const d=De(o,l,[]);T(d,f)},delDep(l,f){X(o[l]||[],f)},mapInsCtx(l,f){s.set(f,l)},delInsCtx(l){s.delete(l)},extra:{},loadingInternal:gc,level1ArrKeys:a})}var mc={Mutate:"",Reactive:"r",[q.STATIC]:"s",[q.HOOK]:"h"};function Ec(){const e=cr(),t=Ae(e.keySeed);return e.keySeed=t,t}function vc(){const e=Z(),{keySeed:t,keyPrefix:n}=e,r=Ae(t);e.keySeed=r;let s=n;return wn(t)&&(s=Ae(n),e.keyPrefix=s),`${s}_${r}`}function Sc(){const e=U(),t=e.renderSN,n=t===Number.MAX_VALUE?1:t+1;return e.renderSN=n,n}function kt(e){const t=mc[e],r=x().keySeed,s=Ae(r[e]);return r[e]=s,`${t}${s}`}function Kc(){return kt("Reactive")}var{MAY_TRANSFER:Ac}=Je,{SET_STATE:Dc,REACTIVE:_c}=B,Rc=()=>({isReplaced:!1,replacedValue:null}),Tc=()=>{},bc=Ot({isFake:!0});function fr(e,t,n=w){const{desc:r="",onRead:s,from:o=_c,depKeys:c=[],isTop:a=!1,expired:u=!1,insKey:i=0}=t;return{draft:e,finish:n,modified:!1,expired:u,sharedKey:0,moduleName:"",hasFlushTask:!1,nextTickFlush:w,data:[],isTop:a,key:"",fnKey:"",depKeys:c,writeKeys:[],desc:r,onRead:s,from:o,insKey:i}}function Ct(e){const{ids:t=[],globalIds:n=[],isReactive:r=!1,from:s=Dc,enableDep:o=!1,handleCbReturn:c=!0,sn:a=Sc(),isFirstCall:u=!1,desc:i="",onRead:l}=e;return{fnKey:"",depKeys:[],forcedDepKeys:[],triggerReasons:[],ids:t,globalIds:n,readKeys:{},writeKeys:{},arrKeyDict:{},writeKeyPathInfo:{},handleCbReturn:c,draftVal:null,from:s,isReactive:r,enableDep:o,sn:a,isFirstCall:u,desc:i,onRead:l}}function we(e,t,n){const{isChanged:r=!0,parentKeyPath:s=[],op:o="set",parentType:c="Object"}=n,a=s.slice();return a.push(e),{isChanged:r,isCustom:!1,op:o,immutBase:!1,key:e,value:t,proxyValue:t,parentType:c,keyPath:s,fullKeyPath:a,isBuiltInFnKey:!1,replaceValue:w,getReplaced:Rc}}function Ot(e){const f=e||{},{desc:t="",fn:n=w,task:r=Tc,depKeys:s=[],writeKeys:o=[],deps:c=ge,isFake:a=!1,onlyDeps:u=!1}=f,i=io(f,["desc","fn","task","depKeys","writeKeys","deps","isFake","onlyDeps"]);return b({fn:n,task:r,deps:c,oriDesc:"",onlyDeps:u,desc:t,depKeys:s,writeKeys:o,checkDeadCycle:void 0,watchKey:"",isFake:a,enabled:!0},i)}function lr(){const e={fnKey:"",fn:w,subFnInfo:bc,checkDeadCycle:!0,isFirstLevel:!0,isExpired:!1,task:w,deps:ge,status:{loading:!1,err:null,ok:!0},forAtom:!1,remainRunCount:0,showLoading:!1,nextLevelFnKeys:[],prevLevelFnKeys:[],mountStatus:We,depKeys:[],depSharedKeys:[],result:{},fnType:"watch",returnUpstreamResult:!1,scopeType:"static",renderStatus:Re,proxyResult:{},updater:w,createTime:Date.now(),shouldReplaceResult:!1,isAsync:!1,isAsyncTransfer:!1,isSimpleWatch:!1,isRunning:!1,dcErrorInfo:{err:null,tipFn:w},asyncType:Ac,subscribe:t=>{t()},extra:{},setLoading:(t,n=null)=>{const r=!t&&!n;e.status={loading:t,err:n,ok:r}},renderInfo:{time:0,insKey:0,sn:0,getDeps:()=>e.depKeys.slice()}};return e}var dr={draftRoot:{val:null},isFake:!0,isAtom:!0},pr=Ct({}),et=fr(!0,{expired:!0}),Gf=Ot(),yr=ir({rawState:{},forAtom:!1,usefulName:""},{}),hr=lr(),tt=dr,Lt=pr,gr="",Pt=new Map,xt=new Map,Nt=new Map,Ut=w,Vt=[],Yt="";function Ic(){return tt}var Fe={current:()=>Yt,set:e=>Yt=e,del:()=>Yt=""},Bt={current:()=>Ut,set:e=>Ut=e,del:()=>Ut=w},ke={current:e=>xt.get(e)||"SetState",set:(e,t)=>xt.set(e,t),del:e=>xt.delete(e)},Ce={current:()=>Vt,set:e=>Vt=e,del:()=>Vt=[]},ne={current:()=>Nt.get(gr)||et,markUsing:e=>gr=e,set:(e,t)=>Nt.set(e,t),del:e=>Nt.delete(e)},Gt={current:e=>Pt.get(e),set:(e,t)=>Pt.set(e,t),del:e=>Pt.delete(e)},nt={current:()=>tt,set:(e,t)=>{Object.assign(tt,{draftRoot:e,isAtom:t,isFake:!1})},del:()=>tt=dr},Ht={current:()=>Lt,set:e=>Lt=e,del:()=>Lt=pr};function jt(e){const{FNKEY_STATIC_CTX_MAP:t,FNKEY_HOOK_CTX_MAP:n}=x();return e[0]==="s"?t:n}function Mc(e,t){const{DEPKEY_COMPUTING_FNKEYS_MAP:n}=x();Ye(n,e,[]).push(t)}function wc(e,t){const{DEPKEY_COMPUTING_FNKEYS_MAP:n}=x(),r=n.get(e);r&&X(r,t)}function Fc(e){const{DEPKEY_FNKEYS_MAP:t}=x(),{depKeys:n,fnKey:r}=e;n.forEach(s=>{const o=t.get(s)||[];X(o,r)})}function mr(e,t){const{FNKEY_STATIC_CTX_MAP:n}=x(),{fnKey:r,prevLevelFnKeys:s}=e;s.forEach(o=>{var a;const c=(a=n.get(o))==null?void 0:a.nextLevelFnKeys;c&&(t?T(c,r):X(c,r))})}function kc(){const{FNKEY_HOOK_CTX_MAP:e}=x();se()&&e.forEach(t=>{t.isExpired=!0})}function Er(e,t,n){const r=n||kt(t);return F(e)?e[Ge]=r:(rr(e),e.__proto__[Ge]=r),r}function vr(e){return F(e)?e[Ge]||"":H(e)&&e.__proto__[Ge]||""}function ie(e){return jt(e).get(e)}function $t(e){return jt(e).get(e)||hr}function Oe(e){const t=vr(e);return ie(t)||null}function rt(){const{runningFnKey:e,depKeys:t,runningSharedKey:n,isIgnore:r}=x();return{fnCtx:e?ie(e):null,depKeys:t,isIgnore:r,runningSharedKey:n}}function Cc(){return x().runningFnKey}var{USER_STATE:Oc}=J;function Lc(e,t=8){let n="";if(se()&&e)try{throw new Error("loc")}catch(r){const s=r.stack.split(` `),o=s[1]||"";o.includes("webpack-internal")||o.includes("/node_modules/")?n=s.slice(0,16).join(" -> "):n=s.map(a=>a.substring(0,a.indexOf("(")).trim()).slice(4,t).join(" -> ")}return n}function Sr(e){const[t,n]=e.split("/"),r=n.split(Ee);return{sharedKey:Number(t),keyPath:r,depKey:e}}function Kr(e){const{sharedKey:t,forAtom:n}=e,r=n?"/val":"",s=n?["val"]:[];return{depKey:`${t}${r}`,keyPath:s,sharedKey:t}}function G(e,t){try{return Kt(e.join(Ee),t)}catch(n){return console.warn("found Symbol key in your path :",e),`${t}`}}function Pc(e,t){const{snap:n,prevSnap:r,stateType:s}=e;if(Oc!==s)return!0;const{keyPath:o}=Sr(t);try{const c=ce(n,o),a=ce(r,o);return c!==a}catch(c){return!0}}function xc(e,t){return Ke()?(0,j.OA)(e,{onOperate:t,compareVer:!0}):ue(e,{get(n,r){const s=n[r],o=we(r,s,{isChanged:!1,parentKeyPath:[]});return t(o),s}})}function Nc(e,t){if(t!==void 0){if(e)return{val:t};if(H(t))return t}}function Uc(e,t,n){const r=F(t)?t(n):t;return Nc(e,r)}function st(e,t){let{value:n}=e;if(t){t(e);const{replacedValue:r,isReplaced:s}=e.getReplaced();s&&(n=r)}return n}function Ar(e){return[Yo,Vo].includes(e)}function Vc(e){return Array.isArray(e)||Et(e)}var{isObject:fe,getDataType:Dr}=j.limuUtils;function _r(e,t){if(e===t)return e;const r=t.substring(e.length+1).split(Ee);return`${e}${Ee}${r[0]}`}function Yc(e,t){he(e,t)||T(e,t)}var Xt=new Map;function Rr(e,t){let n=!1;const{depKey:r,keyPath:s,sharedKey:o}=e,{stopDepInfo:c,level1ArrKeys:a,recordCb:u}=t,i=Xt.get(r);if(i)return u(i),!0;const{keys:l,isArrDict:f,depth:d,arrKeyStopDcit:y,stopArrDep:m}=c,p=he(a,r),g=s.length>d;if(g||p){let S="",D=d;return p&&(D=d+1,y[p]===!1||m&&(g?S=G(s.slice(0,D),o):S=_r(p,r))),S||(S=G(s.slice(0,D),o)),p||Xt.set(r,S),u(S),!0}const v=String(o);for(const S of l){if(!r.startsWith(S)||S===v)continue;const D=f[S],I=D?_r(S,r):S;D||Xt.set(r,I),u(I),n=!0;break}return n}function Wt(e,t){const n=Z(),{runningKey:r}=n;if(r){const{KEY_DYNAMIC_CTX_MAP:s,KEY_CTX_MAP:o,isDynamic:c}=n,u=(c?s:o).get(r);if(u){const{results:i,depKeys:l}=u;t?T(i,t):e.forEach(f=>T(l,f))}}}function ot(e,t){const n=ee(),{COMPARE_MAP:r}=n;let s=r.get(t);return s!==void 0?s:e.sharedKeyStr===t?n.isStateChanged:(s=Pc(e,t),r.set(t,s),s&&(n.isStateChanged=!0),s)}function Tr(e,t,n){if(t.includes(n)&&ot(e,n))return!0;let r=!1;for(const s of t)s.startsWith(n)&&ot(e,s)&&(r=!0);return r}function Bc(){const e=ee();e.COMPARE_MAP.clear(),e.isStateChanged=!1}function zt(e=!0){const t=x();t.isIgnore=e}function ve(e,t){const{fnCtx:n,depKeys:r,isIgnore:s}=rt(),o=t.specificCtx||n;if(!o){Bt.current()(e);return}const{DEPKEY_FNKEYS_MAP:c}=x(),{belongCtx:a,sharedKey:u}=t;if(u&&T(o.depSharedKeys,u),n&&a){n.isFirstLevel=!1,a.isAsync&&(n.isAsync=!0);const l=a.fnKey;T(o.prevLevelFnKeys,l),T(a.nextLevelFnKeys,n.fnKey)}const{fnKey:i}=o;e.forEach(l=>{if(ko===l||s)return;n&&T(r,l);const f=Ye(c,l,[]);T(f,i)})}function Jt(e){e&&e.depKeys.forEach(t=>ve([t],{specificCtx:e}))}function br(e){const{FNKEY_HOOK_CTX_MAP:t,UNMOUNT_INFO_MAP:n}=x(),{fnKey:r}=e;t.set(r,e),mr(e,!0);let s=n.get(r);s?s.c=2:(s={c:1,t:Date.now(),prev:0},n.set(r,s));const{c:o}=s;if(o===2){const c=ie(r);Jt(c)}}function Ir(e){let t="";return e.depSharedKeys.forEach(n=>{var s;const r=((s=Me(n))==null?void 0:s.ver)||0;t+=`${r}_`}),t}function Gc(e,t,n){const{DEPKEY_FNKEYS_MAP:r}=x(),s=r.get(t)||[],o=[],c=[];return s.forEach(a=>{const u=ie(a);if(u&&Tr(e,u.depKeys,t)){u.isFirstLevel&&o.push(a),u.isAsync&&c.push(a);const i=n[a];n[a]=i===void 0?1:i+1}}),{firstLevelFnKeys:o,asyncFnKeys:c}}function Zt(e){Fc(e),mr(e)}function Hc(){const{FNKEY_HOOK_CTX_MAP:e}=x();if(e.size>=No){const t=Date.now();e.forEach(n=>{const{mountStatus:r,createTime:s,fnKey:o}=n;[We,jn].includes(r)&&t-s>Hn&&(Zt(n),e.delete(o))})}}function Qt(e,t,n,r,s,o=!1,c=!1){const a=Z();a.latest={sharedKey:e,val:t,stateOrResult:n,depKey:r,keyPath:s,isDerivedResult:o,isDerivedAtom:c}}function jc(){return Z().latest}function Mr(e){const{KEY_DYNAMIC_CTX_MAP:t,KEY_CTX_MAP:n}=Z();return e?t:n}function wr(){return me("changing shared state is invalid"),!0}function ct(e,t,n,r,s){return r===_e?e?t:!1:r===He?n:s}function qt(e,t,n){e.replaceValue(ct(e.keyPath.length===0,t,n,e.key,e.value))}function $c(e){let t={};const{rawState:n,sharedKey:r,forAtom:s,onRead:o,isPrimitive:c,stopDepth:a}=e,u=(l,f)=>{const d=G(l,r);ve([d],{sharedKey:r}),Wt([d]),Qt(r,f,t,d,l)};if(Co)t=(0,j.OA)(n,{customKeys:$e,onOperate:l=>{const{isBuiltInFnKey:f,isCustom:d}=l;if(d)return qt(l,s,r);if(!f){const{fullKeyPath:y}=l,m=st(l,o);u(y,m)}},compareVer:!0});else{const l=(f,d,y)=>be(f,{set:wr,get:(m,p)=>{const g=m[p];if($e.includes(p))return ct(d===1,s,r,p,g);const v=we(p,g,{isChanged:!1,parentKeyPath:y});if(dt.val[f]})),pc(r,t),{sharedRoot:t,sharedState:i}}var Fr=null;function en(){return Fr}function Xc(e,t){const n=U();let r=n.globalEmpty;if(!r){const{stateRoot:s}=t({apiCtx:e,rawState:{},forGlobal:!0,stateType:J.GLOGAL_EMPTY}),o=V(s);n.globalEmpty=s,n.globalEmptyInternal=o}return Fr=r,r}function tn(e){const{GID_INSKEYS_MAP:t}=x();return Ye(t,e,[])}function Wc(){return U().globalEmptyInternal}function kr(e,t){if(!e)return;const n=tn(e);T(n,t)}function zc(e,t){if(!e)return;const n=tn(e);X(n,t)}var{REACTIVE:Jc}=B,Le=new Map;function Zc(e){return!!(e&&!e.expired&&e.modified)}function Qc(e){const{sharedKey:t}=e;e.expired=!0,ne.del(e.key);const n=ke.current(t);return ke.del(t),e.finish(null,{desc:n})}function Cr(e,t){const n=te(e);return t&&ke.set(n,t),n}function nn(e,t){const n=te(e);Pe(n,t)}function qc(){const e=ne.current();e.isTop&&Pe(e.sharedKey,e.desc)}function Pe(e,t){const n=Le.get(e);Zc(n)&&(t&&ke.set(e,t),Qc(n))}function ea(e){const t=Le.get(e)||et;t.expired=!0}function ta(e,t){const n=Le.get(e)||et;n.modified=!0,n.nextTickFlush(t)}function na(e,t){const{from:n=Jc,onRead:r}=t,{finish:s,draftRoot:o}=e.setStateFactory({isReactive:!0,from:n,handleCbReturn:!1,enableDep:!0,onRead:r}),c=fr(o,t,s);return c.key=Kc(),c.sharedKey=e.sharedKey,c.nextTickFlush=a=>{const{expired:u,hasFlushTask:i}=c;u||(c.data=[a]),i||(c.hasFlushTask=!0,Promise.resolve().then(()=>{const[l]=c.data;Pe(e.sharedKey,l)}))},c}function Or(e,t,n){const{sharedKey:r}=e,{insKey:s=0,from:o}=t;let c=Le.get(r)||et;c.expired&&(c=na(e,{isTop:!0,from:o}),Le.set(r,c),ne.set(c.key,c),ne.markUsing(c.key),c.fnKey=Fe.current()),c.onRead=s?t.onRead:void 0;const{draft:a}=c;return{val:n?a.val:a,meta:c}}function rn(e,t){let n={},r={};const{rawState:s,deep:o,forAtom:c,isPrimitive:a,sharedKey:u}=e;if(At(o)){const i={[He]:u,[_e]:c},l=(d,y,m)=>{const{val:p}=Or(e,t,d);return p[y]=m,!0},f=(d,y,m)=>{const p=m[y];if(p!==void 0)return p;const{val:g,meta:v}=Or(e,t,d);return Gn===y?v:g[y]};if(n=new Proxy(s,{set:(d,y,m)=>l(!1,y,m),get:(d,y)=>f(!1,y,i)}),r=n,c){const d=N(b({},i),{[_e]:!1});r=a?s.val:new Proxy(s.val,{set:(y,m,p)=>l(!0,m,p),get:(y,m)=>f(!0,m,d)})}}else n=s,r=s.val;return{draftRoot:n,draft:r}}function ra(e){const{UNMOUNT_INFO_MAP:t}=cr(),{insKey:n,readMap:r,internal:s}=e;s.mapInsCtx(e,n);let o=t.get(n);o?(o.c=2,o.prev=n-1):(o={c:1,t:Date.now(),prev:0},t.set(n,o));const{c}=o;c===2&&Object.keys(r).forEach(a=>{s.recordDep(a,n)})}function Lr(e){const{readMap:t,insKey:n,internal:r}=e;Object.keys(t).forEach(s=>r.delDep(s,n)),r.delInsCtx(n)}function sa(e){const{canCollect:t,isFirstRender:n,currentDepKeys:r}=e;if(!t){n&&(e.depKeys=r.slice());return}e.depKeys=r.slice()}function oa(e){const{canCollect:t}=e;t&&(e.readMap={},e.delReadMap={},e.depKeys=e.currentDepKeys.slice(),e.currentDepKeys.length=0)}function Pr(e,t,n){if(!e.canCollect)return;const{parentType:r,rawVal:s}=n,o=Vc(s);o&&Yc(e.internal.level1ArrKeys,t.depKey),e.recordDep(t,r,o)}function sn(e,t){const{depKeys:n,currentDepKeys:r,fixedDepKeys:s}=e;return(t?r:n).concat(s)}function ca(e){if(!e)return;const{updater:t,mountStatus:n,createTime:r}=e;if(n===We){Date.now()-r>Hn?Lr(e):e.needEFUpdate=!0;return}t()}function xr(e){const{internal:t,isReactive:n,insKey:r}=e,{rawState:s,isDeep:o,sharedKey:c,onRead:a,forAtom:u}=t;if(o){const i=l=>{const{isBuiltInFnKey:f,key:d}=l;if(f)return;if(vt(d))return qt(l,u,c);const{fullKeyPath:y,keyPath:m,parentType:p}=l,g=st(l,a),S={depKey:G(y,c),keyPath:y,parentKeyPath:m,sharedKey:c};Pr(e,S,{parentType:p,rawVal:g})};if(n){const{draft:l,draftRoot:f}=rn(t,{onRead:i,insKey:r});e.proxyState=f,e.proxyStateVal=l}else e.proxyState=(0,j.OA)(s,{onOperate:i,compareVer:!0})}else e.proxyState=ue(s,{set:()=>(me("changing shared state is invalid"),!0),get:(i,l)=>{const f=i[l];if(vt(l))return ct(!0,u,c,l,f);const d=st(we(l,f,{isChanged:!1,parentKeyPath:[]}),a),y=Kt(l,c),m=fe(i)?Ze:Bo;return Pr(e,{depKey:y,keyPath:[l],sharedKey:c},{parentType:m,rawVal:d}),d}})}function aa(e){var k;const{updater:t,sharedState:n,id:r="",globalId:s="",collectType:o="every",deps:c,pure:a=!0,arrDep:u=!0,isReactive:i=!1}=e,l=u&&(k=e.arrIndexDep)!=null?k:!0,f=V(n);if(!f)throw new Error("ERR_OBJ_NOT_SHARED: input object is not a result returned by share api");const d=Ec(),{rawState:y,isDeep:m,ver:p,ruleConf:g,level1ArrKeys:v,forAtom:S,sharedKey:D,sharedKeyStr:I,snap:R}=f,{stopDepInfo:K}=g,_={readMap:{},delReadMap:{},pure:a,depKeys:[],fixedDepKeys:[],currentDepKeys:[],isDeep:m,isReactive:i,insKey:d,internal:f,rawState:y,sharedState:n,sharedKey:D,proxyState:{},proxyStateVal:{},updater:t,mountStatus:We,renderStatus:Re,needEFUpdate:!1,createTime:Date.now(),rootVal:null,ver:p,id:r,globalId:s,collectType:o,canCollect:o!=="no",isFirstRender:!0,subscribe:E=>{E()},extra:{},getDeps:()=>sn(_,!0),renderInfo:{setDraft:f.insSetDraft,time:Date.now(),sn:0,snap:R,insKey:d,getDeps:()=>sn(_,!0),getPrevDeps:()=>sn(_,!1)},recordDep:(E,M,A)=>{let h=E.depKey;Rr(E,{stopDepInfo:K,level1ArrKeys:v,recordCb:Ue=>{h=Ue}});const{renderStatus:O,fixedDepKeys:$}=_;if(O===Mt)return;const{readMap:z,insKey:Of,currentDepKeys:In,delReadMap:ro}=_;ve([h],{}),Cc()&&(X(In,h),T(_.fixedDepKeys,h));const so=()=>{z[h]=1,f.recordDep(h,Of),$.includes(h)||T(In,h)};if(!z[h]&&!ro[h]){const{parentKeyPath:Ue}=E;if(a&&M===Ze&&Ue){const gt=Ue.length?G(Ue,D):I;z[gt]&&(delete z[gt],ro[gt]=1,X(In,gt))}const oo=Ar(M);if(oo){l&&so();return}(!A||!oo&&u)&&so()}}};if(s&&kr(s,d),xr(_),f.mapInsCtx(_,d),f.recordId(r,d),F(c)){const E=S?_.proxyState.val:_.proxyState,M=Y(c,E),A=_.getDeps().slice();M.includes(E)&&A.push(f.rootValKey),_.fixedDepKeys=A}return _}function Nr(e){const{result:t,forAtom:n}=e;e.proxyResult=ue(t,{set:()=>(me("changing derived result is invalid"),!1),get:(r,s)=>je===s?n:(Re===e.renderStatus&&Jt(e),t[s])})}function ua(e){const{proxyState:t,internal:n,renderInfo:r,canCollect:s,isReactive:o}=e,{sharedKey:c,sharedKeyStr:a,insSetState:u,forAtom:i}=n;r.snap=n.snap,r.time=Date.now();const l=i?t.val:t;return e.isFirstRender&&(e.rootVal=l,Gt.set(e.rootVal,e)),!i&&s&&e.recordDep({depKey:a,keyPath:[],sharedKey:c},Ze),[o?t:l,u,r]}function ia(e,t){if(t&&!Te(e))throw new Error("useAtom only accept atom")}function fa(e){const{ver:t,internal:{ver:n}}=e;t!==n&&(e.ver=n,xr(e))}function la(e){e.mountStatus=ze;const{id:t,globalId:n,insKey:r}=e;e.internal.recordId(t,r),kr(n,r),ra(e)}function da(e){e.mountStatus=jn;const{id:t,globalId:n,insKey:r}=e;e.internal.delId(t,r),zc(n,r),Lr(e)}function pa(e,t){const n=V(t).sharedKey;return e.internal.sharedKey!==n}function at(e,t,n,r){if(U().isRootRender)try{const s=r||n;e.react.useSyncExternalStore(t,n,s)}catch(s){console.error(s)}}var ya=null;function Ur(e,t,n){const{hookImpl:r,react:s}=e,o=r.useForceUpdate(),c=s.useRef({ctx:ya});let a=c.current.ctx;return(!a||pa(a,t))&&(a=aa(b({updater:o,sharedState:t},n)),c.current.ctx=a),a}function Vr(e,t){e.react.useEffect(()=>(t.isFirstRender=!1,Gt.del(t.rootVal),t.collectType==="first"&&(t.canCollect=!1),t.needEFUpdate&&(t.needEFUpdate=!1,t.updater()),la(t),()=>{da(t)}),[t])}function ha(e,t,n,r){n.renderStatus=Re,oa(n),at(e,n.subscribe,()=>V(t).snap),e.react.useEffect(()=>{n.renderStatus=Mt,n.isFirstRender=!1,sa(n)})}function on(e,t,n={}){const r=Ur(e,t,n);return at(e,r.subscribe,()=>V(t).snap),Vr(e,r),r}function ut(e,t,n={}){const{forAtom:r}=n;ia(t,r);const s=Ur(e,t,n);return ha(e,t,s,n),Vr(e,s),fa(s),{tuple:ua(s),insCtx:s}}function Yr(e,t){const{forAtom:n,label:r,strict:s=!1}=t||{};let o;if(typeof e=="number"?o=Me(e):o=V(e),!o&&e){const a=e[Gn];o=Me(a==null?void 0:a.sharedKey)}let c=r?`[[${r}]] err:`:"err:";if(!o)if(s)oe(`${c} not a valid shared or atom`,{throwErr:!0});else return null;return n!==void 0&&(n&&!o.forAtom&&oe(`${c} expect a shared but recived a atom`,{throwErr:!0}),!n&&o.forAtom&&oe(`${c} expect a atom but recived a shared`,{throwErr:!0})),o}function le(e,t){return Yr(e,N(b({},t||{}),{strict:!0}))}var{MUTATE:ga,LOADING:ma}=B,{GLOGAL_LOADING:Ea,PRIVATE_LOADING:va}=J,{PRIVATE:Sa,GLOBAL:Ka}=bt,Br={},Aa={},Da={time:0,sn:0,getDeps:ge,getPrevDeps:ge,insKey:0,setDraft:w},_a=[de(Br,Aa,ga),w,Da];function Ra(e,t){const{internal:n,apiCtx:r}=t,{mutateFnDict:s,moduleName:o}=n,c={};Object.keys(s).forEach(i=>{c[i]={loading:!1,err:null,ok:!0}});const a=o?`${o}@Loading`:"";return e({apiCtx:r,rawState:c,isLoading:!0,stateType:va},{moduleName:a}).state}var Gr=null;function Ta(){return Gr}function Hr(){return U().globalLoadingInternal}function ba(e,t){const n=U();let r=n.globalLoading;if(!r){const{stateRoot:s}=t({apiCtx:e,rawState:{},stateType:Ea},{moduleName:Lo}),o=V(s);n.globalLoadingInternal=o,n.globalLoading=s}return Gr=r,r}function cn(e,t){let n=t;return vt(t)&&(n=t.toString()),`${e}>${n}`}function jr(e,t,n){if(!t)return;const{loadingInternal:r}=e;r.innerSetState(s=>{s[t]=n},{from:ma}),n.err&&(tr(e,Tt.ON_ERROR_OCCURED,{err:n.err}),console.error(n.err))}function de(e,t,n){let r=e[n];return r||(r=ue(t,{get(s,o){const c=cn(n,o);return s[c]||{loading:!1,ok:!0,err:null}}}),e[n]=r),r}function xe(e,t){const{internal:n,from:r}=t,{stateType:s,recordLoading:o}=n,c=J.USER_STATE===s;let a=de(Br,{},r),u={};if(c)if(Sa===o)u=n.extra.loadingProxy,u||(u=Ra(e,t),n.extra.loadingProxy=u,n.loadingInternal=V(u)),a=de(n.extra,u,r);else if(Ka===o){const i=Hr();u=Ta(),n.loadingInternal=i,a=de(i.extra,u,r)}else u=en();else u=n.sharedState,a=de(n.extra,u,r);return{loadingState:a,loadingProxy:u}}function $r(e,t){if(!fe(t))return e;const n=Object.keys(t);if(!n.length)return e;const r=t[n[0]];return r.__sharedKey?N(b({},e),{internal:le(r.__sharedKey)}):e}function Xr(e,t){const{internal:n,from:r,apiCtx:s}=t,{stateType:o}=n,c=J.USER_STATE===o;xe(e,t);let a=()=>_a;return c&&(a=u=>{const i=$r(t,u),l=xe(e,i).loadingProxy,{insCtx:{proxyState:f,internal:d,extra:y,renderInfo:m}}=ut(s,l);return[de(y,f,r),d.setState,m]}),{useLoading:a,getLoading:u=>{const i=$r(t,u);return xe(e,i).loadingState}}}function it(e){const t=lr();return Object.assign(t,e||{})}function Se(){const e=x(),{runningFnKey:t}=e;if(!t)return[];const n=ie(t);let r=[];if(n){const{depKeys:s}=e,{depKeys:o}=n,c={};s.forEach(u=>c[u]=1),s.forEach(u=>{const i=kn(c,u);i&&i!==u&&delete c[i]}),Object.keys(c).forEach(u=>T(o,u)),r=o.slice()}return e.runningFnKey="",e.depKeys=[],e.runningSharedKey=0,r}function Wr(e,t){const n=x();n.runningFnKey=e,n.runningSharedKey=t,n.isIgnore=!1}function zr(e,t){const{specificProps:n,fnCtxBase:r}=t,{scopeType:s}=n,o=Er(e,s),c=b({fn:e,fnKey:o},n),a=r?Object.assign(r,c):it(c);return jt(s).set(o,a),a}function an(e){var s;const{FNKEY_HOOK_CTX_MAP:t,UNMOUNT_INFO_MAP:n}=x(),{fnKey:r}=e;Zt(e),e.extra.deferedWatch=null,t.delete(r),((s=n.get(r))==null?void 0:s.c)===2&&n.delete(r),Hc()}function Jr(e){const{DEPKEY_COMPUTING_FNKEYS_MAP:t}=x(),{prevLevelFnKeys:n,depKeys:r}=e;let s=!1;for(const o of r){const c=t.get(o)||[];if(Ve(c,n)){s=!0;break}}return s}function Ia(e,t=!0,n=Ee){return e.map(r=>{const[s,o]=r.split("/"),c=o.split(Ee);return`${t?`${Me(Number(s)).usefulName}/`:""}${c.join(n)}`})}var ft=new Map,lt={WATCH:"1",MUTATE:"2"},Ma={[lt.WATCH]:"watch",[lt.MUTATE]:"mutate fn or task"};function wa(e=0){return{sn:e,descs:[],errs:[],timer:null,cycle:[]}}function Zr(e,t,n){const r=new Error(`DEAD_CYCLE: module(${e}) found mutate fn(${n}) in these dead cycle fns [${t.join(",")}]`);return r.cause="DeadCycle",r.data=t,r}function Fa(e){ft.delete(e)}function ka(e,t,n,r){const s=Ma[r],{desc:o,task:c,fn:a,isFake:u}=t.subFnInfo,i=o?`(${o})`:"",l=`DEAD_CYCLE: found reactive object in ${s}${i} cb is changing module(${e.usefulName})'s some of these dep keys(${Ia(n,!1,".")}), it will cause a infinity loop call!`,f=u?t.fn:c||a;return{err:new Error(`[only-dev-mode alert] ${l}`),tipFn:()=>console.error(` ${l} open the stack to find the below fn: diff --git a/docs/404.html b/docs/404.html index 26d394db..ce7162b2 100644 --- a/docs/404.html +++ b/docs/404.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/atom-ctx/action/index.html b/docs/api/atom-ctx/action/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/atom-ctx/action/index.html +++ b/docs/api/atom-ctx/action/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/atom-ctx/attrs/index.html b/docs/api/atom-ctx/attrs/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/atom-ctx/attrs/index.html +++ b/docs/api/atom-ctx/attrs/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/atom-ctx/define-actions/index.html b/docs/api/atom-ctx/define-actions/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/atom-ctx/define-actions/index.html +++ b/docs/api/atom-ctx/define-actions/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/atom-ctx/define-full-derive/index.html b/docs/api/atom-ctx/define-full-derive/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/atom-ctx/define-full-derive/index.html +++ b/docs/api/atom-ctx/define-full-derive/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/atom-ctx/define-mutate-derive/index.html b/docs/api/atom-ctx/define-mutate-derive/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/atom-ctx/define-mutate-derive/index.html +++ b/docs/api/atom-ctx/define-mutate-derive/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/atom-ctx/define-mutate-self/index.html b/docs/api/atom-ctx/define-mutate-self/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/atom-ctx/define-mutate-self/index.html +++ b/docs/api/atom-ctx/define-mutate-self/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/atom-ctx/define-tp-actions/index.html b/docs/api/atom-ctx/define-tp-actions/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/atom-ctx/define-tp-actions/index.html +++ b/docs/api/atom-ctx/define-tp-actions/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/atom-ctx/flush/index.html b/docs/api/atom-ctx/flush/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/atom-ctx/flush/index.html +++ b/docs/api/atom-ctx/flush/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/atom-ctx/get-action-loading/index.html b/docs/api/atom-ctx/get-action-loading/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/atom-ctx/get-action-loading/index.html +++ b/docs/api/atom-ctx/get-action-loading/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/atom-ctx/get-mutate-loading/index.html b/docs/api/atom-ctx/get-mutate-loading/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/atom-ctx/get-mutate-loading/index.html +++ b/docs/api/atom-ctx/get-mutate-loading/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/atom-ctx/index.html b/docs/api/atom-ctx/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/atom-ctx/index.html +++ b/docs/api/atom-ctx/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/atom-ctx/mutate/index.html b/docs/api/atom-ctx/mutate/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/atom-ctx/mutate/index.html +++ b/docs/api/atom-ctx/mutate/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/atom-ctx/reactive-desc/index.html b/docs/api/atom-ctx/reactive-desc/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/atom-ctx/reactive-desc/index.html +++ b/docs/api/atom-ctx/reactive-desc/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/atom-ctx/run-mutate-task/index.html b/docs/api/atom-ctx/run-mutate-task/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/atom-ctx/run-mutate-task/index.html +++ b/docs/api/atom-ctx/run-mutate-task/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/atom-ctx/run-mutate/index.html b/docs/api/atom-ctx/run-mutate/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/atom-ctx/run-mutate/index.html +++ b/docs/api/atom-ctx/run-mutate/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/atom-ctx/set-draft/index.html b/docs/api/atom-ctx/set-draft/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/atom-ctx/set-draft/index.html +++ b/docs/api/atom-ctx/set-draft/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/atom-ctx/set-state/index.html b/docs/api/atom-ctx/set-state/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/atom-ctx/set-state/index.html +++ b/docs/api/atom-ctx/set-state/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/atom-ctx/sync/index.html b/docs/api/atom-ctx/sync/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/atom-ctx/sync/index.html +++ b/docs/api/atom-ctx/sync/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/atom-ctx/syncer/index.html b/docs/api/atom-ctx/syncer/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/atom-ctx/syncer/index.html +++ b/docs/api/atom-ctx/syncer/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/atom-ctx/use-action-loading/index.html b/docs/api/atom-ctx/use-action-loading/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/atom-ctx/use-action-loading/index.html +++ b/docs/api/atom-ctx/use-action-loading/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/atom-ctx/use-force-update/index.html b/docs/api/atom-ctx/use-force-update/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/atom-ctx/use-force-update/index.html +++ b/docs/api/atom-ctx/use-force-update/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/atom-ctx/use-local-force-update/index.html b/docs/api/atom-ctx/use-local-force-update/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/atom-ctx/use-local-force-update/index.html +++ b/docs/api/atom-ctx/use-local-force-update/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/atom-ctx/use-local-state/index.html b/docs/api/atom-ctx/use-local-state/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/atom-ctx/use-local-state/index.html +++ b/docs/api/atom-ctx/use-local-state/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/atom-ctx/use-mutate-loading/index.html b/docs/api/atom-ctx/use-mutate-loading/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/atom-ctx/use-mutate-loading/index.html +++ b/docs/api/atom-ctx/use-mutate-loading/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/atom-ctx/use-reactive/index.html b/docs/api/atom-ctx/use-reactive/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/atom-ctx/use-reactive/index.html +++ b/docs/api/atom-ctx/use-reactive/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/atom-ctx/use-state-x/index.html b/docs/api/atom-ctx/use-state-x/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/atom-ctx/use-state-x/index.html +++ b/docs/api/atom-ctx/use-state-x/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/atom-ctx/use-state/index.html b/docs/api/atom-ctx/use-state/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/atom-ctx/use-state/index.html +++ b/docs/api/atom-ctx/use-state/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/utils/action/index.html b/docs/api/base/action/index.html similarity index 90% rename from docs/api/utils/action/index.html rename to docs/api/base/action/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/utils/action/index.html +++ b/docs/api/base/action/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/base/atom/index.html b/docs/api/base/atom/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/base/atom/index.html +++ b/docs/api/base/atom/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/base/atomx/index.html b/docs/api/base/atomx/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/base/atomx/index.html +++ b/docs/api/base/atomx/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/base/block/index.html b/docs/api/base/block/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/base/block/index.html +++ b/docs/api/base/block/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/base/define-derive-task/index.html b/docs/api/base/define-derive-task/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/base/define-derive-task/index.html +++ b/docs/api/base/define-derive-task/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/base/define-drive-fn-item/index.html b/docs/api/base/define-drive-fn-item/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/base/define-drive-fn-item/index.html +++ b/docs/api/base/define-drive-fn-item/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/base/derive-dict/index.html b/docs/api/base/derive-dict/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/base/derive-dict/index.html +++ b/docs/api/base/derive-dict/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/base/derive/index.html b/docs/api/base/derive/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/base/derive/index.html +++ b/docs/api/base/derive/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/base/dynamic-block/index.html b/docs/api/base/dynamic-block/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/base/dynamic-block/index.html +++ b/docs/api/base/dynamic-block/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/base/emit/index.html b/docs/api/base/emit/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/base/emit/index.html +++ b/docs/api/base/emit/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/base/index.html b/docs/api/base/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/base/index.html +++ b/docs/api/base/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/base/mutate-dict/index.html b/docs/api/base/mutate-dict/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/base/mutate-dict/index.html +++ b/docs/api/base/mutate-dict/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/base/mutate/index.html b/docs/api/base/mutate/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/base/mutate/index.html +++ b/docs/api/base/mutate/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/base/on/index.html b/docs/api/base/on/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/base/on/index.html +++ b/docs/api/base/on/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/base/run-derive-task/index.html b/docs/api/base/run-derive-task/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/base/run-derive-task/index.html +++ b/docs/api/base/run-derive-task/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/base/run-derive/index.html b/docs/api/base/run-derive/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/base/run-derive/index.html +++ b/docs/api/base/run-derive/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/base/run-mutate-task/index.html b/docs/api/base/run-mutate-task/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/base/run-mutate-task/index.html +++ b/docs/api/base/run-mutate-task/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/base/run-mutate/index.html b/docs/api/base/run-mutate/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/base/run-mutate/index.html +++ b/docs/api/base/run-mutate/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/base/share/index.html b/docs/api/base/share/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/base/share/index.html +++ b/docs/api/base/share/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/base/sharex/index.html b/docs/api/base/sharex/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/base/sharex/index.html +++ b/docs/api/base/sharex/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/base/signal/index.html b/docs/api/base/signal/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/base/signal/index.html +++ b/docs/api/base/signal/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/base/sync/index.html b/docs/api/base/sync/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/base/sync/index.html +++ b/docs/api/base/sync/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/base/syncer/index.html b/docs/api/base/syncer/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/base/syncer/index.html +++ b/docs/api/base/syncer/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/base/watch/index.html b/docs/api/base/watch/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/base/watch/index.html +++ b/docs/api/base/watch/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/hooks/index.html b/docs/api/hooks/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/hooks/index.html +++ b/docs/api/hooks/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/hooks/use-action-loading/index.html b/docs/api/hooks/use-action-loading/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/hooks/use-action-loading/index.html +++ b/docs/api/hooks/use-action-loading/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/hooks/use-atom-x/index.html b/docs/api/hooks/use-atom-x/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/hooks/use-atom-x/index.html +++ b/docs/api/hooks/use-atom-x/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/hooks/use-atom/index.html b/docs/api/hooks/use-atom/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/hooks/use-atom/index.html +++ b/docs/api/hooks/use-atom/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/hooks/use-derived/index.html b/docs/api/hooks/use-derived/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/hooks/use-derived/index.html +++ b/docs/api/hooks/use-derived/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/hooks/use-global-force-update/index.html b/docs/api/hooks/use-global-force-update/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/hooks/use-global-force-update/index.html +++ b/docs/api/hooks/use-global-force-update/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/hooks/use-global-id/index.html b/docs/api/hooks/use-global-id/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/hooks/use-global-id/index.html +++ b/docs/api/hooks/use-global-id/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/hooks/use-local-force-update/index.html b/docs/api/hooks/use-local-force-update/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/hooks/use-local-force-update/index.html +++ b/docs/api/hooks/use-local-force-update/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/hooks/use-mutable/index.html b/docs/api/hooks/use-mutable/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/hooks/use-mutable/index.html +++ b/docs/api/hooks/use-mutable/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/hooks/use-mutate-loading/index.html b/docs/api/hooks/use-mutate-loading/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/hooks/use-mutate-loading/index.html +++ b/docs/api/hooks/use-mutate-loading/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/hooks/use-on-event/index.html b/docs/api/hooks/use-on-event/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/hooks/use-on-event/index.html +++ b/docs/api/hooks/use-on-event/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/hooks/use-reactive-x/index.html b/docs/api/hooks/use-reactive-x/index.html new file mode 100644 index 00000000..ce7162b2 --- /dev/null +++ b/docs/api/hooks/use-reactive-x/index.html @@ -0,0 +1,12 @@ + + + + + + + + +
+ + + \ No newline at end of file diff --git a/docs/api/hooks/use-reactive/index.html b/docs/api/hooks/use-reactive/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/hooks/use-reactive/index.html +++ b/docs/api/hooks/use-reactive/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/hooks/use-service/index.html b/docs/api/hooks/use-service/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/hooks/use-service/index.html +++ b/docs/api/hooks/use-service/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/hooks/use-watch/index.html b/docs/api/hooks/use-watch/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/hooks/use-watch/index.html +++ b/docs/api/hooks/use-watch/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/index.html b/docs/api/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/index.html +++ b/docs/api/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/utils/add-middleware/index.html b/docs/api/utils/add-middleware/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/utils/add-middleware/index.html +++ b/docs/api/utils/add-middleware/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/utils/add-plugin/index.html b/docs/api/utils/add-plugin/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/utils/add-plugin/index.html +++ b/docs/api/utils/add-plugin/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/utils/cst/index.html b/docs/api/utils/cst/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/utils/cst/index.html +++ b/docs/api/utils/cst/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/utils/flush/index.html b/docs/api/utils/flush/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/utils/flush/index.html +++ b/docs/api/utils/flush/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/utils/get-action-loading/index.html b/docs/api/utils/get-action-loading/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/utils/get-action-loading/index.html +++ b/docs/api/utils/get-action-loading/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/utils/get-atom/index.html b/docs/api/utils/get-atom/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/utils/get-atom/index.html +++ b/docs/api/utils/get-atom/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/utils/get-derive-loading/index.html b/docs/api/utils/get-derive-loading/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/utils/get-derive-loading/index.html +++ b/docs/api/utils/get-derive-loading/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/utils/get-mutate-loading/index.html b/docs/api/utils/get-mutate-loading/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/utils/get-mutate-loading/index.html +++ b/docs/api/utils/get-mutate-loading/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/utils/get-snap/index.html b/docs/api/utils/get-snap/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/utils/get-snap/index.html +++ b/docs/api/utils/get-snap/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/utils/index.html b/docs/api/utils/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/utils/index.html +++ b/docs/api/utils/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/utils/init/index.html b/docs/api/utils/init/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/utils/init/index.html +++ b/docs/api/utils/init/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/utils/is-atom/index.html b/docs/api/utils/is-atom/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/utils/is-atom/index.html +++ b/docs/api/utils/is-atom/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/utils/is-derived-atom/index.html b/docs/api/utils/is-derived-atom/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/utils/is-derived-atom/index.html +++ b/docs/api/utils/is-derived-atom/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/utils/is-diff/index.html b/docs/api/utils/is-diff/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/utils/is-diff/index.html +++ b/docs/api/utils/is-diff/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/utils/reactive-desc/index.html b/docs/api/utils/reactive-desc/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/utils/reactive-desc/index.html +++ b/docs/api/utils/reactive-desc/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/api/utils/shallow-compare/index.html b/docs/api/utils/shallow-compare/index.html index 26d394db..ce7162b2 100644 --- a/docs/api/utils/shallow-compare/index.html +++ b/docs/api/utils/shallow-compare/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/docs__api__atom-ctx__flush.md.0ef26a6b.async.js b/docs/docs__api__atom-ctx__flush.md.0ef26a6b.async.js new file mode 100644 index 00000000..4f28fa8f --- /dev/null +++ b/docs/docs__api__atom-ctx__flush.md.0ef26a6b.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[6537],{66026:function(S,x,t){t.r(x);var D=t(4311),A=t(53267),j=t(82197),O=t(12620),b=t(74692),T=t(33296),L=t(12133),y=t(54996),C=t(70079),i=t(35250);function E(){var M=(0,y.eL)(),n=M.texts;return(0,i.jsx)(y.dY,{children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"markdown",children:[(0,i.jsxs)("h1",{id:"flush",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#flush",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"flush"]}),(0,i.jsxs)("p",{children:[n[0].value,(0,i.jsx)("code",{children:n[1].value}),n[2].value]}),(0,i.jsx)("hr",{})]}),(0,i.jsx)(j.Z,{type:"info",children:(0,i.jsxs)("p",{children:[n[3].value,(0,i.jsx)(y.rU,{to:"/api/utils/flush",children:n[4].value})]})})]})})}x.default=E},4311:function(S,x,t){var D=t(39114),A=t.n(D),j=t(70125),O=t.n(j),b=t(54996),T=t(70079),L=t(33296),y=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var r=this,o=[];return Object.entries(e.properties||{}).forEach(function(h){var c,l=O()(h,2),f=l[0],d=l[1];o.push("".concat(f).concat((c=e.required)!==null&&c!==void 0&&c.includes(f)?"":"?",": ").concat(d.type==="object"?"object":r.toString(d)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var r=this.getValidClassName(e.items);return r?"".concat(r,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var r=this,o=e.signature;if(!o)return"Function";var h="oneOf"in o?o.oneOf:[o];return h.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(l){return"".concat(l.key,": ").concat(r.toString(l))}).join(", "),") => ").concat(r.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(r){return JSON.stringify(r)}).join(" | ")},oneOf:function(e){var r=this;return e.oneOf.map(function(o){return r.getValidClassName(o)||r.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},i=function(e){var r=useState(function(){return C.toString(e)}),o=_slicedToArray(r,2),h=o[0],c=o[1];return useEffect(function(){c(C.toString(e))},[e]),_jsx("code",{children:h})},E=function(e){var r,o=useRouteMeta(),h=o.frontmatter,c=useAtomAssets(),l=c.components,f=e.id||h.atomId,d=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=l==null?void 0:l[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:d.formatMessage({id:"api.component.name"})}),_jsx("th",{children:d.formatMessage({id:"api.component.description"})}),_jsx("th",{children:d.formatMessage({id:"api.component.type"})}),_jsx("th",{children:d.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(r=p.propsConfig)!==null&&r!==void 0&&r.properties?Object.entries(p.propsConfig.properties).map(function(m){var v,_=_slicedToArray(m,2),a=_[0],s=_[1];return _jsxs("tr",{children:[_jsx("td",{children:a}),_jsx("td",{children:s.description||"--"}),_jsx("td",{children:_jsx(i,_objectSpread({},s))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(a)?d.formatMessage({id:"api.component.required"}):JSON.stringify(s.default)||"--"})})]},a)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:d.formatMessage({id:"api.component.".concat(l?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(S,x,t){var D=t(39114),A=t(35250),j=function(T){return _jsx("span",_objectSpread({className:"dumi-default-badge"},T))},O=null},33296:function(S,x,t){var D=t(39114),A=t(70125),j=t(11221),O=t(14315),b=t(70079),T=t(35250),L=null,y=function(E){var M=E.children,n=_objectWithoutProperties(E,L),e=useRef(null),r=useState(!1),o=_slicedToArray(r,2),h=o[0],c=o[1],l=useState(!1),f=_slicedToArray(l,2),d=f[0],p=f[1];return useEffect(function(){var m=e.current;if(m){var v=throttle(function(){c(m.scrollLeft>0),p(m.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",s=[];return[].concat(_).forEach(function(u,I){var g="".concat(a?"".concat(a,"-"):"").concat(I);switch(u==null?void 0:u.type){case"ul":{var P,N=((P=s[s.length-1])===null||P===void 0?void 0:P.children)||s,R=r(u.props.children||[],g);N.push.apply(N,T()(R));break}case"li":{var U=r(u.props.children,g);s.push({title:[].concat(u.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),s}var o=function(a){var s=(0,n.useState)(r(a)),u=O()(s,2),I=u[0],g=u[1];return(0,n.useEffect)(function(){g(r(a))},[a]),I},h=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(L.r,{fill:"currentColor"})}):u?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},c=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):u?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(i.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(E.r,{fill:"currentColor"})})})},l=function(){return{height:0,opacity:0}},f=function(a){var s=a.scrollHeight;return{height:s,opacity:1}},d=function(a){return{height:a?a.offsetHeight:0}},p=function(a,s){return(s==null?void 0:s.deadline)===!0||s.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:l,onEnterStart:l,onAppearActive:f,onEnterActive:f,onLeaveStart:d,onLeaveActive:l,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(_){var a=o(_.children),s=(0,n.createRef)(),u=function(g,P){var N=P.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||s.current.onNodeExpand(g,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:h,ref:s,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:A()(A()({},m),{},{motionAppear:!1}),onClick:u,treeData:[{key:"0",title:_.title||"",children:a}],defaultExpandAll:!0,switcherIcon:c})}}}]); diff --git a/docs/docs__api__atom-ctx__flush.md.d00eb199.async.js b/docs/docs__api__atom-ctx__flush.md.d00eb199.async.js deleted file mode 100644 index 13bbd402..00000000 --- a/docs/docs__api__atom-ctx__flush.md.d00eb199.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[6537],{66026:function(S,x,t){t.r(x);var E=t(4311),j=t(53267),D=t(82197),A=t(12620),b=t(74692),O=t(33296),L=t(12133),T=t(54996),C=t(70079),d=t(35250);function y(){var M=(0,T.eL)(),a=M.texts;return(0,d.jsx)(T.dY,{children:(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{className:"markdown",children:(0,d.jsxs)("h1",{id:"flush",children:[(0,d.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#flush",children:(0,d.jsx)("span",{className:"icon icon-link"})}),"flush"]})})})})}x.default=y},4311:function(S,x,t){var E=t(39114),j=t.n(E),D=t(70125),A=t.n(D),b=t(54996),O=t(70079),L=t(33296),T=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var n=this,o=[];return Object.entries(e.properties||{}).forEach(function(h){var c,i=A()(h,2),f=i[0],u=i[1];o.push("".concat(f).concat((c=e.required)!==null&&c!==void 0&&c.includes(f)?"":"?",": ").concat(u.type==="object"?"object":n.toString(u)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var n=this.getValidClassName(e.items);return n?"".concat(n,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var n=this,o=e.signature;if(!o)return"Function";var h="oneOf"in o?o.oneOf:[o];return h.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(i){return"".concat(i.key,": ").concat(n.toString(i))}).join(", "),") => ").concat(n.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(n){return JSON.stringify(n)}).join(" | ")},oneOf:function(e){var n=this;return e.oneOf.map(function(o){return n.getValidClassName(o)||n.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},d=function(e){var n=useState(function(){return C.toString(e)}),o=_slicedToArray(n,2),h=o[0],c=o[1];return useEffect(function(){c(C.toString(e))},[e]),_jsx("code",{children:h})},y=function(e){var n,o=useRouteMeta(),h=o.frontmatter,c=useAtomAssets(),i=c.components,f=e.id||h.atomId,u=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=i==null?void 0:i[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:u.formatMessage({id:"api.component.name"})}),_jsx("th",{children:u.formatMessage({id:"api.component.description"})}),_jsx("th",{children:u.formatMessage({id:"api.component.type"})}),_jsx("th",{children:u.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(n=p.propsConfig)!==null&&n!==void 0&&n.properties?Object.entries(p.propsConfig.properties).map(function(m){var v,_=_slicedToArray(m,2),s=_[0],r=_[1];return _jsxs("tr",{children:[_jsx("td",{children:s}),_jsx("td",{children:r.description||"--"}),_jsx("td",{children:_jsx(d,_objectSpread({},r))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(s)?u.formatMessage({id:"api.component.required"}):JSON.stringify(r.default)||"--"})})]},s)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:u.formatMessage({id:"api.component.".concat(i?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(S,x,t){var E=t(39114),j=t(35250),D=function(O){return _jsx("span",_objectSpread({className:"dumi-default-badge"},O))},A=null},33296:function(S,x,t){var E=t(39114),j=t(70125),D=t(11221),A=t(14315),b=t(70079),O=t(35250),L=null,T=function(y){var M=y.children,a=_objectWithoutProperties(y,L),e=useRef(null),n=useState(!1),o=_slicedToArray(n,2),h=o[0],c=o[1],i=useState(!1),f=_slicedToArray(i,2),u=f[0],p=f[1];return useEffect(function(){var m=e.current;if(m){var v=throttle(function(){c(m.scrollLeft>0),p(m.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",r=[];return[].concat(_).forEach(function(l,I){var g="".concat(s?"".concat(s,"-"):"").concat(I);switch(l==null?void 0:l.type){case"ul":{var P,N=((P=r[r.length-1])===null||P===void 0?void 0:P.children)||r,R=n(l.props.children||[],g);N.push.apply(N,O()(R));break}case"li":{var U=n(l.props.children,g);r.push({title:[].concat(l.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),r}var o=function(s){var r=(0,a.useState)(n(s)),l=A()(r,2),I=l[0],g=l[1];return(0,a.useEffect)(function(){g(n(s))},[s]),I},h=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(L.r,{fill:"currentColor"})}):l?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(T.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},c=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):l?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(d.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})})})},i=function(){return{height:0,opacity:0}},f=function(s){var r=s.scrollHeight;return{height:r,opacity:1}},u=function(s){return{height:s?s.offsetHeight:0}},p=function(s,r){return(r==null?void 0:r.deadline)===!0||r.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:i,onEnterStart:i,onAppearActive:f,onEnterActive:f,onLeaveStart:u,onLeaveActive:i,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(_){var s=o(_.children),r=(0,a.createRef)(),l=function(g,P){var N=P.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||r.current.onNodeExpand(g,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:h,ref:r,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:j()(j()({},m),{},{motionAppear:!1}),onClick:l,treeData:[{key:"0",title:_.title||"",children:s}],defaultExpandAll:!0,switcherIcon:c})}}}]); diff --git a/docs/docs__api__atom-ctx__get-action-loading.md.6d8e80d5.async.js b/docs/docs__api__atom-ctx__get-action-loading.md.6d8e80d5.async.js new file mode 100644 index 00000000..e563bd24 --- /dev/null +++ b/docs/docs__api__atom-ctx__get-action-loading.md.6d8e80d5.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[269],{62012:function(S,x,t){t.r(x);var A=t(4311),D=t(53267),j=t(82197),O=t(12620),L=t(74692),T=t(33296),b=t(12133),y=t(54996),C=t(70079),i=t(35250);function E(){var M=(0,y.eL)(),n=M.texts;return(0,i.jsx)(y.dY,{children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"markdown",children:[(0,i.jsxs)("h1",{id:"getactionloading",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#getactionloading",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"getActionLoading"]}),(0,i.jsxs)("p",{children:[n[0].value,(0,i.jsx)("code",{children:n[1].value}),n[2].value]}),(0,i.jsx)("hr",{})]}),(0,i.jsx)(j.Z,{type:"info",children:(0,i.jsxs)("p",{children:[n[3].value,(0,i.jsx)(y.rU,{to:"/api/utils/get-action-loading",children:n[4].value})]})})]})})}x.default=E},4311:function(S,x,t){var A=t(39114),D=t.n(A),j=t(70125),O=t.n(j),L=t(54996),T=t(70079),b=t(33296),y=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var r=this,o=[];return Object.entries(e.properties||{}).forEach(function(h){var l,c=O()(h,2),f=c[0],d=c[1];o.push("".concat(f).concat((l=e.required)!==null&&l!==void 0&&l.includes(f)?"":"?",": ").concat(d.type==="object"?"object":r.toString(d)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var r=this.getValidClassName(e.items);return r?"".concat(r,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var r=this,o=e.signature;if(!o)return"Function";var h="oneOf"in o?o.oneOf:[o];return h.map(function(l){return"".concat(l.isAsync?"async ":"","(").concat(l.arguments.map(function(c){return"".concat(c.key,": ").concat(r.toString(c))}).join(", "),") => ").concat(r.toString(l.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(r){return JSON.stringify(r)}).join(" | ")},oneOf:function(e){var r=this;return e.oneOf.map(function(o){return r.getValidClassName(o)||r.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},i=function(e){var r=useState(function(){return C.toString(e)}),o=_slicedToArray(r,2),h=o[0],l=o[1];return useEffect(function(){l(C.toString(e))},[e]),_jsx("code",{children:h})},E=function(e){var r,o=useRouteMeta(),h=o.frontmatter,l=useAtomAssets(),c=l.components,f=e.id||h.atomId,d=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=c==null?void 0:c[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:d.formatMessage({id:"api.component.name"})}),_jsx("th",{children:d.formatMessage({id:"api.component.description"})}),_jsx("th",{children:d.formatMessage({id:"api.component.type"})}),_jsx("th",{children:d.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(r=p.propsConfig)!==null&&r!==void 0&&r.properties?Object.entries(p.propsConfig.properties).map(function(m){var v,_=_slicedToArray(m,2),a=_[0],s=_[1];return _jsxs("tr",{children:[_jsx("td",{children:a}),_jsx("td",{children:s.description||"--"}),_jsx("td",{children:_jsx(i,_objectSpread({},s))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(a)?d.formatMessage({id:"api.component.required"}):JSON.stringify(s.default)||"--"})})]},a)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:d.formatMessage({id:"api.component.".concat(c?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(S,x,t){var A=t(39114),D=t(35250),j=function(T){return _jsx("span",_objectSpread({className:"dumi-default-badge"},T))},O=null},33296:function(S,x,t){var A=t(39114),D=t(70125),j=t(11221),O=t(14315),L=t(70079),T=t(35250),b=null,y=function(E){var M=E.children,n=_objectWithoutProperties(E,b),e=useRef(null),r=useState(!1),o=_slicedToArray(r,2),h=o[0],l=o[1],c=useState(!1),f=_slicedToArray(c,2),d=f[0],p=f[1];return useEffect(function(){var m=e.current;if(m){var v=throttle(function(){l(m.scrollLeft>0),p(m.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",s=[];return[].concat(_).forEach(function(u,I){var g="".concat(a?"".concat(a,"-"):"").concat(I);switch(u==null?void 0:u.type){case"ul":{var P,N=((P=s[s.length-1])===null||P===void 0?void 0:P.children)||s,R=r(u.props.children||[],g);N.push.apply(N,T()(R));break}case"li":{var U=r(u.props.children,g);s.push({title:[].concat(u.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),s}var o=function(a){var s=(0,n.useState)(r(a)),u=O()(s,2),I=u[0],g=u[1];return(0,n.useEffect)(function(){g(r(a))},[a]),I},h=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(b.r,{fill:"currentColor"})}):u?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},l=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):u?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(i.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(E.r,{fill:"currentColor"})})})},c=function(){return{height:0,opacity:0}},f=function(a){var s=a.scrollHeight;return{height:s,opacity:1}},d=function(a){return{height:a?a.offsetHeight:0}},p=function(a,s){return(s==null?void 0:s.deadline)===!0||s.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:c,onEnterStart:c,onAppearActive:f,onEnterActive:f,onLeaveStart:d,onLeaveActive:c,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(_){var a=o(_.children),s=(0,n.createRef)(),u=function(g,P){var N=P.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||s.current.onNodeExpand(g,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:h,ref:s,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:D()(D()({},m),{},{motionAppear:!1}),onClick:u,treeData:[{key:"0",title:_.title||"",children:a}],defaultExpandAll:!0,switcherIcon:l})}}}]); diff --git a/docs/docs__api__atom-ctx__get-action-loading.md.75a4f904.async.js b/docs/docs__api__atom-ctx__get-action-loading.md.75a4f904.async.js deleted file mode 100644 index 95951e60..00000000 --- a/docs/docs__api__atom-ctx__get-action-loading.md.75a4f904.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[269],{62012:function(S,x,t){t.r(x);var E=t(4311),j=t(53267),A=t(82197),D=t(12620),L=t(74692),O=t(33296),b=t(12133),T=t(54996),C=t(70079),d=t(35250);function y(){var M=(0,T.eL)(),a=M.texts;return(0,d.jsx)(T.dY,{children:(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{className:"markdown",children:(0,d.jsxs)("h1",{id:"getactionloading",children:[(0,d.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#getactionloading",children:(0,d.jsx)("span",{className:"icon icon-link"})}),"getActionLoading"]})})})})}x.default=y},4311:function(S,x,t){var E=t(39114),j=t.n(E),A=t(70125),D=t.n(A),L=t(54996),O=t(70079),b=t(33296),T=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var n=this,o=[];return Object.entries(e.properties||{}).forEach(function(m){var c,i=D()(m,2),f=i[0],u=i[1];o.push("".concat(f).concat((c=e.required)!==null&&c!==void 0&&c.includes(f)?"":"?",": ").concat(u.type==="object"?"object":n.toString(u)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var n=this.getValidClassName(e.items);return n?"".concat(n,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var n=this,o=e.signature;if(!o)return"Function";var m="oneOf"in o?o.oneOf:[o];return m.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(i){return"".concat(i.key,": ").concat(n.toString(i))}).join(", "),") => ").concat(n.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(n){return JSON.stringify(n)}).join(" | ")},oneOf:function(e){var n=this;return e.oneOf.map(function(o){return n.getValidClassName(o)||n.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},d=function(e){var n=useState(function(){return C.toString(e)}),o=_slicedToArray(n,2),m=o[0],c=o[1];return useEffect(function(){c(C.toString(e))},[e]),_jsx("code",{children:m})},y=function(e){var n,o=useRouteMeta(),m=o.frontmatter,c=useAtomAssets(),i=c.components,f=e.id||m.atomId,u=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var g=i==null?void 0:i[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:u.formatMessage({id:"api.component.name"})}),_jsx("th",{children:u.formatMessage({id:"api.component.description"})}),_jsx("th",{children:u.formatMessage({id:"api.component.type"})}),_jsx("th",{children:u.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:g&&(n=g.propsConfig)!==null&&n!==void 0&&n.properties?Object.entries(g.propsConfig.properties).map(function(h){var v,_=_slicedToArray(h,2),s=_[0],r=_[1];return _jsxs("tr",{children:[_jsx("td",{children:s}),_jsx("td",{children:r.description||"--"}),_jsx("td",{children:_jsx(d,_objectSpread({},r))}),_jsx("td",{children:_jsx("code",{children:(v=g.propsConfig.required)!==null&&v!==void 0&&v.includes(s)?u.formatMessage({id:"api.component.required"}):JSON.stringify(r.default)||"--"})})]},s)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:u.formatMessage({id:"api.component.".concat(i?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(S,x,t){var E=t(39114),j=t(35250),A=function(O){return _jsx("span",_objectSpread({className:"dumi-default-badge"},O))},D=null},33296:function(S,x,t){var E=t(39114),j=t(70125),A=t(11221),D=t(14315),L=t(70079),O=t(35250),b=null,T=function(y){var M=y.children,a=_objectWithoutProperties(y,b),e=useRef(null),n=useState(!1),o=_slicedToArray(n,2),m=o[0],c=o[1],i=useState(!1),f=_slicedToArray(i,2),u=f[0],g=f[1];return useEffect(function(){var h=e.current;if(h){var v=throttle(function(){c(h.scrollLeft>0),g(h.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",r=[];return[].concat(_).forEach(function(l,I){var p="".concat(s?"".concat(s,"-"):"").concat(I);switch(l==null?void 0:l.type){case"ul":{var P,N=((P=r[r.length-1])===null||P===void 0?void 0:P.children)||r,R=n(l.props.children||[],p);N.push.apply(N,O()(R));break}case"li":{var U=n(l.props.children,p);r.push({title:[].concat(l.props.children).filter(function(B){return B.type!=="ul"}),key:p,children:U,isLeaf:!U.length});break}default:}}),r}var o=function(s){var r=(0,a.useState)(n(s)),l=D()(r,2),I=l[0],p=l[1];return(0,a.useEffect)(function(){p(n(s))},[s]),I},m=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(b.r,{fill:"currentColor"})}):l?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(T.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},c=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):l?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(d.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})})})},i=function(){return{height:0,opacity:0}},f=function(s){var r=s.scrollHeight;return{height:r,opacity:1}},u=function(s){return{height:s?s.offsetHeight:0}},g=function(s,r){return(r==null?void 0:r.deadline)===!0||r.propertyName==="height"},h={motionName:"ant-motion-collapse",onAppearStart:i,onEnterStart:i,onAppearActive:f,onEnterActive:f,onLeaveStart:u,onLeaveActive:i,onAppearEnd:g,onEnterEnd:g,onLeaveEnd:g,motionDeadline:500},v=function(_){var s=o(_.children),r=(0,a.createRef)(),l=function(p,P){var N=P.isLeaf;N||p.shiftKey||p.metaKey||p.ctrlKey||r.current.onNodeExpand(p,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:m,ref:r,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:j()(j()({},h),{},{motionAppear:!1}),onClick:l,treeData:[{key:"0",title:_.title||"",children:s}],defaultExpandAll:!0,switcherIcon:c})}}}]); diff --git a/docs/docs__api__atom-ctx__get-mutate-loading.md.740a175d.async.js b/docs/docs__api__atom-ctx__get-mutate-loading.md.740a175d.async.js new file mode 100644 index 00000000..4164d908 --- /dev/null +++ b/docs/docs__api__atom-ctx__get-mutate-loading.md.740a175d.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[8579],{32320:function(S,x,t){t.r(x);var D=t(4311),A=t(53267),j=t(82197),O=t(12620),L=t(74692),T=t(33296),b=t(12133),y=t(54996),C=t(70079),i=t(35250);function E(){var M=(0,y.eL)(),n=M.texts;return(0,i.jsx)(y.dY,{children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"markdown",children:[(0,i.jsxs)("h1",{id:"getmutateloading",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#getmutateloading",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"getMutateLoading"]}),(0,i.jsxs)("p",{children:[n[0].value,(0,i.jsx)("code",{children:n[1].value}),n[2].value]}),(0,i.jsx)("hr",{})]}),(0,i.jsx)(j.Z,{type:"info",children:(0,i.jsxs)("p",{children:[n[3].value,(0,i.jsx)(y.rU,{to:"/api/utils/get-mutate-loading",children:n[4].value})]})})]})})}x.default=E},4311:function(S,x,t){var D=t(39114),A=t.n(D),j=t(70125),O=t.n(j),L=t(54996),T=t(70079),b=t(33296),y=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var r=this,o=[];return Object.entries(e.properties||{}).forEach(function(h){var c,l=O()(h,2),f=l[0],d=l[1];o.push("".concat(f).concat((c=e.required)!==null&&c!==void 0&&c.includes(f)?"":"?",": ").concat(d.type==="object"?"object":r.toString(d)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var r=this.getValidClassName(e.items);return r?"".concat(r,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var r=this,o=e.signature;if(!o)return"Function";var h="oneOf"in o?o.oneOf:[o];return h.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(l){return"".concat(l.key,": ").concat(r.toString(l))}).join(", "),") => ").concat(r.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(r){return JSON.stringify(r)}).join(" | ")},oneOf:function(e){var r=this;return e.oneOf.map(function(o){return r.getValidClassName(o)||r.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},i=function(e){var r=useState(function(){return C.toString(e)}),o=_slicedToArray(r,2),h=o[0],c=o[1];return useEffect(function(){c(C.toString(e))},[e]),_jsx("code",{children:h})},E=function(e){var r,o=useRouteMeta(),h=o.frontmatter,c=useAtomAssets(),l=c.components,f=e.id||h.atomId,d=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=l==null?void 0:l[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:d.formatMessage({id:"api.component.name"})}),_jsx("th",{children:d.formatMessage({id:"api.component.description"})}),_jsx("th",{children:d.formatMessage({id:"api.component.type"})}),_jsx("th",{children:d.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(r=p.propsConfig)!==null&&r!==void 0&&r.properties?Object.entries(p.propsConfig.properties).map(function(m){var v,_=_slicedToArray(m,2),a=_[0],s=_[1];return _jsxs("tr",{children:[_jsx("td",{children:a}),_jsx("td",{children:s.description||"--"}),_jsx("td",{children:_jsx(i,_objectSpread({},s))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(a)?d.formatMessage({id:"api.component.required"}):JSON.stringify(s.default)||"--"})})]},a)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:d.formatMessage({id:"api.component.".concat(l?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(S,x,t){var D=t(39114),A=t(35250),j=function(T){return _jsx("span",_objectSpread({className:"dumi-default-badge"},T))},O=null},33296:function(S,x,t){var D=t(39114),A=t(70125),j=t(11221),O=t(14315),L=t(70079),T=t(35250),b=null,y=function(E){var M=E.children,n=_objectWithoutProperties(E,b),e=useRef(null),r=useState(!1),o=_slicedToArray(r,2),h=o[0],c=o[1],l=useState(!1),f=_slicedToArray(l,2),d=f[0],p=f[1];return useEffect(function(){var m=e.current;if(m){var v=throttle(function(){c(m.scrollLeft>0),p(m.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",s=[];return[].concat(_).forEach(function(u,I){var g="".concat(a?"".concat(a,"-"):"").concat(I);switch(u==null?void 0:u.type){case"ul":{var P,N=((P=s[s.length-1])===null||P===void 0?void 0:P.children)||s,R=r(u.props.children||[],g);N.push.apply(N,T()(R));break}case"li":{var U=r(u.props.children,g);s.push({title:[].concat(u.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),s}var o=function(a){var s=(0,n.useState)(r(a)),u=O()(s,2),I=u[0],g=u[1];return(0,n.useEffect)(function(){g(r(a))},[a]),I},h=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(b.r,{fill:"currentColor"})}):u?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},c=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):u?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(i.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(E.r,{fill:"currentColor"})})})},l=function(){return{height:0,opacity:0}},f=function(a){var s=a.scrollHeight;return{height:s,opacity:1}},d=function(a){return{height:a?a.offsetHeight:0}},p=function(a,s){return(s==null?void 0:s.deadline)===!0||s.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:l,onEnterStart:l,onAppearActive:f,onEnterActive:f,onLeaveStart:d,onLeaveActive:l,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(_){var a=o(_.children),s=(0,n.createRef)(),u=function(g,P){var N=P.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||s.current.onNodeExpand(g,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:h,ref:s,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:A()(A()({},m),{},{motionAppear:!1}),onClick:u,treeData:[{key:"0",title:_.title||"",children:a}],defaultExpandAll:!0,switcherIcon:c})}}}]); diff --git a/docs/docs__api__atom-ctx__get-mutate-loading.md.cfeb9ffa.async.js b/docs/docs__api__atom-ctx__get-mutate-loading.md.cfeb9ffa.async.js deleted file mode 100644 index 921e61fd..00000000 --- a/docs/docs__api__atom-ctx__get-mutate-loading.md.cfeb9ffa.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[8579],{32320:function(S,x,t){t.r(x);var E=t(4311),j=t(53267),D=t(82197),A=t(12620),L=t(74692),O=t(33296),b=t(12133),T=t(54996),C=t(70079),d=t(35250);function y(){var M=(0,T.eL)(),a=M.texts;return(0,d.jsx)(T.dY,{children:(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{className:"markdown",children:(0,d.jsxs)("h1",{id:"getmutateloading",children:[(0,d.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#getmutateloading",children:(0,d.jsx)("span",{className:"icon icon-link"})}),"getMutateLoading"]})})})})}x.default=y},4311:function(S,x,t){var E=t(39114),j=t.n(E),D=t(70125),A=t.n(D),L=t(54996),O=t(70079),b=t(33296),T=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var n=this,o=[];return Object.entries(e.properties||{}).forEach(function(m){var c,i=A()(m,2),f=i[0],u=i[1];o.push("".concat(f).concat((c=e.required)!==null&&c!==void 0&&c.includes(f)?"":"?",": ").concat(u.type==="object"?"object":n.toString(u)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var n=this.getValidClassName(e.items);return n?"".concat(n,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var n=this,o=e.signature;if(!o)return"Function";var m="oneOf"in o?o.oneOf:[o];return m.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(i){return"".concat(i.key,": ").concat(n.toString(i))}).join(", "),") => ").concat(n.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(n){return JSON.stringify(n)}).join(" | ")},oneOf:function(e){var n=this;return e.oneOf.map(function(o){return n.getValidClassName(o)||n.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},d=function(e){var n=useState(function(){return C.toString(e)}),o=_slicedToArray(n,2),m=o[0],c=o[1];return useEffect(function(){c(C.toString(e))},[e]),_jsx("code",{children:m})},y=function(e){var n,o=useRouteMeta(),m=o.frontmatter,c=useAtomAssets(),i=c.components,f=e.id||m.atomId,u=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var g=i==null?void 0:i[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:u.formatMessage({id:"api.component.name"})}),_jsx("th",{children:u.formatMessage({id:"api.component.description"})}),_jsx("th",{children:u.formatMessage({id:"api.component.type"})}),_jsx("th",{children:u.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:g&&(n=g.propsConfig)!==null&&n!==void 0&&n.properties?Object.entries(g.propsConfig.properties).map(function(h){var v,_=_slicedToArray(h,2),s=_[0],r=_[1];return _jsxs("tr",{children:[_jsx("td",{children:s}),_jsx("td",{children:r.description||"--"}),_jsx("td",{children:_jsx(d,_objectSpread({},r))}),_jsx("td",{children:_jsx("code",{children:(v=g.propsConfig.required)!==null&&v!==void 0&&v.includes(s)?u.formatMessage({id:"api.component.required"}):JSON.stringify(r.default)||"--"})})]},s)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:u.formatMessage({id:"api.component.".concat(i?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(S,x,t){var E=t(39114),j=t(35250),D=function(O){return _jsx("span",_objectSpread({className:"dumi-default-badge"},O))},A=null},33296:function(S,x,t){var E=t(39114),j=t(70125),D=t(11221),A=t(14315),L=t(70079),O=t(35250),b=null,T=function(y){var M=y.children,a=_objectWithoutProperties(y,b),e=useRef(null),n=useState(!1),o=_slicedToArray(n,2),m=o[0],c=o[1],i=useState(!1),f=_slicedToArray(i,2),u=f[0],g=f[1];return useEffect(function(){var h=e.current;if(h){var v=throttle(function(){c(h.scrollLeft>0),g(h.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",r=[];return[].concat(_).forEach(function(l,I){var p="".concat(s?"".concat(s,"-"):"").concat(I);switch(l==null?void 0:l.type){case"ul":{var P,N=((P=r[r.length-1])===null||P===void 0?void 0:P.children)||r,R=n(l.props.children||[],p);N.push.apply(N,O()(R));break}case"li":{var U=n(l.props.children,p);r.push({title:[].concat(l.props.children).filter(function(B){return B.type!=="ul"}),key:p,children:U,isLeaf:!U.length});break}default:}}),r}var o=function(s){var r=(0,a.useState)(n(s)),l=A()(r,2),I=l[0],p=l[1];return(0,a.useEffect)(function(){p(n(s))},[s]),I},m=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(b.r,{fill:"currentColor"})}):l?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(T.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},c=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):l?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(d.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})})})},i=function(){return{height:0,opacity:0}},f=function(s){var r=s.scrollHeight;return{height:r,opacity:1}},u=function(s){return{height:s?s.offsetHeight:0}},g=function(s,r){return(r==null?void 0:r.deadline)===!0||r.propertyName==="height"},h={motionName:"ant-motion-collapse",onAppearStart:i,onEnterStart:i,onAppearActive:f,onEnterActive:f,onLeaveStart:u,onLeaveActive:i,onAppearEnd:g,onEnterEnd:g,onLeaveEnd:g,motionDeadline:500},v=function(_){var s=o(_.children),r=(0,a.createRef)(),l=function(p,P){var N=P.isLeaf;N||p.shiftKey||p.metaKey||p.ctrlKey||r.current.onNodeExpand(p,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:m,ref:r,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:j()(j()({},h),{},{motionAppear:!1}),onClick:l,treeData:[{key:"0",title:_.title||"",children:s}],defaultExpandAll:!0,switcherIcon:c})}}}]); diff --git a/docs/docs__api__atom-ctx__reactive-desc.md.245e732b.async.js b/docs/docs__api__atom-ctx__reactive-desc.md.245e732b.async.js deleted file mode 100644 index 46508f20..00000000 --- a/docs/docs__api__atom-ctx__reactive-desc.md.245e732b.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[9485],{88207:function(S,x,t){t.r(x);var E=t(4311),j=t(53267),D=t(82197),A=t(12620),b=t(74692),O=t(33296),L=t(12133),T=t(54996),C=t(70079),d=t(35250);function y(){var M=(0,T.eL)(),a=M.texts;return(0,d.jsx)(T.dY,{children:(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{className:"markdown",children:(0,d.jsxs)("h1",{id:"reactivedesc",children:[(0,d.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#reactivedesc",children:(0,d.jsx)("span",{className:"icon icon-link"})}),"reactiveDesc"]})})})})}x.default=y},4311:function(S,x,t){var E=t(39114),j=t.n(E),D=t(70125),A=t.n(D),b=t(54996),O=t(70079),L=t(33296),T=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var n=this,o=[];return Object.entries(e.properties||{}).forEach(function(m){var c,i=A()(m,2),f=i[0],u=i[1];o.push("".concat(f).concat((c=e.required)!==null&&c!==void 0&&c.includes(f)?"":"?",": ").concat(u.type==="object"?"object":n.toString(u)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var n=this.getValidClassName(e.items);return n?"".concat(n,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var n=this,o=e.signature;if(!o)return"Function";var m="oneOf"in o?o.oneOf:[o];return m.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(i){return"".concat(i.key,": ").concat(n.toString(i))}).join(", "),") => ").concat(n.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(n){return JSON.stringify(n)}).join(" | ")},oneOf:function(e){var n=this;return e.oneOf.map(function(o){return n.getValidClassName(o)||n.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},d=function(e){var n=useState(function(){return C.toString(e)}),o=_slicedToArray(n,2),m=o[0],c=o[1];return useEffect(function(){c(C.toString(e))},[e]),_jsx("code",{children:m})},y=function(e){var n,o=useRouteMeta(),m=o.frontmatter,c=useAtomAssets(),i=c.components,f=e.id||m.atomId,u=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=i==null?void 0:i[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:u.formatMessage({id:"api.component.name"})}),_jsx("th",{children:u.formatMessage({id:"api.component.description"})}),_jsx("th",{children:u.formatMessage({id:"api.component.type"})}),_jsx("th",{children:u.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(n=p.propsConfig)!==null&&n!==void 0&&n.properties?Object.entries(p.propsConfig.properties).map(function(h){var v,_=_slicedToArray(h,2),s=_[0],r=_[1];return _jsxs("tr",{children:[_jsx("td",{children:s}),_jsx("td",{children:r.description||"--"}),_jsx("td",{children:_jsx(d,_objectSpread({},r))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(s)?u.formatMessage({id:"api.component.required"}):JSON.stringify(r.default)||"--"})})]},s)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:u.formatMessage({id:"api.component.".concat(i?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(S,x,t){var E=t(39114),j=t(35250),D=function(O){return _jsx("span",_objectSpread({className:"dumi-default-badge"},O))},A=null},33296:function(S,x,t){var E=t(39114),j=t(70125),D=t(11221),A=t(14315),b=t(70079),O=t(35250),L=null,T=function(y){var M=y.children,a=_objectWithoutProperties(y,L),e=useRef(null),n=useState(!1),o=_slicedToArray(n,2),m=o[0],c=o[1],i=useState(!1),f=_slicedToArray(i,2),u=f[0],p=f[1];return useEffect(function(){var h=e.current;if(h){var v=throttle(function(){c(h.scrollLeft>0),p(h.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",r=[];return[].concat(_).forEach(function(l,I){var g="".concat(s?"".concat(s,"-"):"").concat(I);switch(l==null?void 0:l.type){case"ul":{var P,N=((P=r[r.length-1])===null||P===void 0?void 0:P.children)||r,R=n(l.props.children||[],g);N.push.apply(N,O()(R));break}case"li":{var U=n(l.props.children,g);r.push({title:[].concat(l.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),r}var o=function(s){var r=(0,a.useState)(n(s)),l=A()(r,2),I=l[0],g=l[1];return(0,a.useEffect)(function(){g(n(s))},[s]),I},m=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(L.r,{fill:"currentColor"})}):l?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(T.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},c=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):l?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(d.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})})})},i=function(){return{height:0,opacity:0}},f=function(s){var r=s.scrollHeight;return{height:r,opacity:1}},u=function(s){return{height:s?s.offsetHeight:0}},p=function(s,r){return(r==null?void 0:r.deadline)===!0||r.propertyName==="height"},h={motionName:"ant-motion-collapse",onAppearStart:i,onEnterStart:i,onAppearActive:f,onEnterActive:f,onLeaveStart:u,onLeaveActive:i,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(_){var s=o(_.children),r=(0,a.createRef)(),l=function(g,P){var N=P.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||r.current.onNodeExpand(g,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:m,ref:r,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:j()(j()({},h),{},{motionAppear:!1}),onClick:l,treeData:[{key:"0",title:_.title||"",children:s}],defaultExpandAll:!0,switcherIcon:c})}}}]); diff --git a/docs/docs__api__atom-ctx__reactive-desc.md.f0f1a3ea.async.js b/docs/docs__api__atom-ctx__reactive-desc.md.f0f1a3ea.async.js new file mode 100644 index 00000000..4fe1f559 --- /dev/null +++ b/docs/docs__api__atom-ctx__reactive-desc.md.f0f1a3ea.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[9485],{88207:function(S,x,t){t.r(x);var D=t(4311),A=t(53267),j=t(82197),O=t(12620),b=t(74692),T=t(33296),L=t(12133),y=t(54996),C=t(70079),i=t(35250);function E(){var M=(0,y.eL)(),n=M.texts;return(0,i.jsx)(y.dY,{children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"markdown",children:[(0,i.jsxs)("h1",{id:"reactivedesc",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#reactivedesc",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"reactiveDesc"]}),(0,i.jsxs)("p",{children:[n[0].value,(0,i.jsx)("code",{children:n[1].value}),n[2].value]}),(0,i.jsx)("hr",{})]}),(0,i.jsx)(j.Z,{type:"info",children:(0,i.jsxs)("p",{children:[n[3].value,(0,i.jsx)(y.rU,{to:"/api/utils/reactive-desc",children:n[4].value})]})})]})})}x.default=E},4311:function(S,x,t){var D=t(39114),A=t.n(D),j=t(70125),O=t.n(j),b=t(54996),T=t(70079),L=t(33296),y=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var r=this,o=[];return Object.entries(e.properties||{}).forEach(function(h){var l,c=O()(h,2),f=c[0],d=c[1];o.push("".concat(f).concat((l=e.required)!==null&&l!==void 0&&l.includes(f)?"":"?",": ").concat(d.type==="object"?"object":r.toString(d)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var r=this.getValidClassName(e.items);return r?"".concat(r,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var r=this,o=e.signature;if(!o)return"Function";var h="oneOf"in o?o.oneOf:[o];return h.map(function(l){return"".concat(l.isAsync?"async ":"","(").concat(l.arguments.map(function(c){return"".concat(c.key,": ").concat(r.toString(c))}).join(", "),") => ").concat(r.toString(l.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(r){return JSON.stringify(r)}).join(" | ")},oneOf:function(e){var r=this;return e.oneOf.map(function(o){return r.getValidClassName(o)||r.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},i=function(e){var r=useState(function(){return C.toString(e)}),o=_slicedToArray(r,2),h=o[0],l=o[1];return useEffect(function(){l(C.toString(e))},[e]),_jsx("code",{children:h})},E=function(e){var r,o=useRouteMeta(),h=o.frontmatter,l=useAtomAssets(),c=l.components,f=e.id||h.atomId,d=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=c==null?void 0:c[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:d.formatMessage({id:"api.component.name"})}),_jsx("th",{children:d.formatMessage({id:"api.component.description"})}),_jsx("th",{children:d.formatMessage({id:"api.component.type"})}),_jsx("th",{children:d.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(r=p.propsConfig)!==null&&r!==void 0&&r.properties?Object.entries(p.propsConfig.properties).map(function(m){var v,_=_slicedToArray(m,2),a=_[0],s=_[1];return _jsxs("tr",{children:[_jsx("td",{children:a}),_jsx("td",{children:s.description||"--"}),_jsx("td",{children:_jsx(i,_objectSpread({},s))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(a)?d.formatMessage({id:"api.component.required"}):JSON.stringify(s.default)||"--"})})]},a)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:d.formatMessage({id:"api.component.".concat(c?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(S,x,t){var D=t(39114),A=t(35250),j=function(T){return _jsx("span",_objectSpread({className:"dumi-default-badge"},T))},O=null},33296:function(S,x,t){var D=t(39114),A=t(70125),j=t(11221),O=t(14315),b=t(70079),T=t(35250),L=null,y=function(E){var M=E.children,n=_objectWithoutProperties(E,L),e=useRef(null),r=useState(!1),o=_slicedToArray(r,2),h=o[0],l=o[1],c=useState(!1),f=_slicedToArray(c,2),d=f[0],p=f[1];return useEffect(function(){var m=e.current;if(m){var v=throttle(function(){l(m.scrollLeft>0),p(m.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",s=[];return[].concat(_).forEach(function(u,I){var g="".concat(a?"".concat(a,"-"):"").concat(I);switch(u==null?void 0:u.type){case"ul":{var P,N=((P=s[s.length-1])===null||P===void 0?void 0:P.children)||s,R=r(u.props.children||[],g);N.push.apply(N,T()(R));break}case"li":{var U=r(u.props.children,g);s.push({title:[].concat(u.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),s}var o=function(a){var s=(0,n.useState)(r(a)),u=O()(s,2),I=u[0],g=u[1];return(0,n.useEffect)(function(){g(r(a))},[a]),I},h=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(L.r,{fill:"currentColor"})}):u?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},l=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):u?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(i.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(E.r,{fill:"currentColor"})})})},c=function(){return{height:0,opacity:0}},f=function(a){var s=a.scrollHeight;return{height:s,opacity:1}},d=function(a){return{height:a?a.offsetHeight:0}},p=function(a,s){return(s==null?void 0:s.deadline)===!0||s.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:c,onEnterStart:c,onAppearActive:f,onEnterActive:f,onLeaveStart:d,onLeaveActive:c,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(_){var a=o(_.children),s=(0,n.createRef)(),u=function(g,P){var N=P.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||s.current.onNodeExpand(g,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:h,ref:s,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:A()(A()({},m),{},{motionAppear:!1}),onClick:u,treeData:[{key:"0",title:_.title||"",children:a}],defaultExpandAll:!0,switcherIcon:l})}}}]); diff --git a/docs/docs__api__atom-ctx__use-action-loading.md.2d165a9c.async.js b/docs/docs__api__atom-ctx__use-action-loading.md.2d165a9c.async.js new file mode 100644 index 00000000..c57eec50 --- /dev/null +++ b/docs/docs__api__atom-ctx__use-action-loading.md.2d165a9c.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[1654],{1354:function(S,x,n){n.r(x);var A=n(4311),D=n(53267),j=n(82197),O=n(12620),L=n(74692),T=n(33296),b=n(12133),y=n(54996),C=n(70079),i=n(35250);function E(){var M=(0,y.eL)(),t=M.texts;return(0,i.jsx)(y.dY,{children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"markdown",children:[(0,i.jsxs)("h1",{id:"useactionloading",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#useactionloading",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"useActionLoading"]}),(0,i.jsxs)("p",{children:[t[0].value,(0,i.jsx)("code",{children:t[1].value}),t[2].value]}),(0,i.jsx)("hr",{})]}),(0,i.jsx)(j.Z,{type:"info",children:(0,i.jsxs)("p",{children:[t[3].value,(0,i.jsx)(y.rU,{to:"/api/hooks/use-action-loading",children:t[4].value}),t[5].value]})})]})})}x.default=E},4311:function(S,x,n){var A=n(39114),D=n.n(A),j=n(70125),O=n.n(j),L=n(54996),T=n(70079),b=n(33296),y=n(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var r=this,o=[];return Object.entries(e.properties||{}).forEach(function(h){var l,c=O()(h,2),f=c[0],d=c[1];o.push("".concat(f).concat((l=e.required)!==null&&l!==void 0&&l.includes(f)?"":"?",": ").concat(d.type==="object"?"object":r.toString(d)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var r=this.getValidClassName(e.items);return r?"".concat(r,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var r=this,o=e.signature;if(!o)return"Function";var h="oneOf"in o?o.oneOf:[o];return h.map(function(l){return"".concat(l.isAsync?"async ":"","(").concat(l.arguments.map(function(c){return"".concat(c.key,": ").concat(r.toString(c))}).join(", "),") => ").concat(r.toString(l.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(r){return JSON.stringify(r)}).join(" | ")},oneOf:function(e){var r=this;return e.oneOf.map(function(o){return r.getValidClassName(o)||r.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},i=function(e){var r=useState(function(){return C.toString(e)}),o=_slicedToArray(r,2),h=o[0],l=o[1];return useEffect(function(){l(C.toString(e))},[e]),_jsx("code",{children:h})},E=function(e){var r,o=useRouteMeta(),h=o.frontmatter,l=useAtomAssets(),c=l.components,f=e.id||h.atomId,d=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=c==null?void 0:c[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:d.formatMessage({id:"api.component.name"})}),_jsx("th",{children:d.formatMessage({id:"api.component.description"})}),_jsx("th",{children:d.formatMessage({id:"api.component.type"})}),_jsx("th",{children:d.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(r=p.propsConfig)!==null&&r!==void 0&&r.properties?Object.entries(p.propsConfig.properties).map(function(m){var v,_=_slicedToArray(m,2),a=_[0],s=_[1];return _jsxs("tr",{children:[_jsx("td",{children:a}),_jsx("td",{children:s.description||"--"}),_jsx("td",{children:_jsx(i,_objectSpread({},s))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(a)?d.formatMessage({id:"api.component.required"}):JSON.stringify(s.default)||"--"})})]},a)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:d.formatMessage({id:"api.component.".concat(c?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(S,x,n){var A=n(39114),D=n(35250),j=function(T){return _jsx("span",_objectSpread({className:"dumi-default-badge"},T))},O=null},33296:function(S,x,n){var A=n(39114),D=n(70125),j=n(11221),O=n(14315),L=n(70079),T=n(35250),b=null,y=function(E){var M=E.children,t=_objectWithoutProperties(E,b),e=useRef(null),r=useState(!1),o=_slicedToArray(r,2),h=o[0],l=o[1],c=useState(!1),f=_slicedToArray(c,2),d=f[0],p=f[1];return useEffect(function(){var m=e.current;if(m){var v=throttle(function(){l(m.scrollLeft>0),p(m.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",s=[];return[].concat(_).forEach(function(u,I){var g="".concat(a?"".concat(a,"-"):"").concat(I);switch(u==null?void 0:u.type){case"ul":{var P,N=((P=s[s.length-1])===null||P===void 0?void 0:P.children)||s,R=r(u.props.children||[],g);N.push.apply(N,T()(R));break}case"li":{var U=r(u.props.children,g);s.push({title:[].concat(u.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),s}var o=function(a){var s=(0,t.useState)(r(a)),u=O()(s,2),I=u[0],g=u[1];return(0,t.useEffect)(function(){g(r(a))},[a]),I},h=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(b.r,{fill:"currentColor"})}):u?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},l=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):u?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(i.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(E.r,{fill:"currentColor"})})})},c=function(){return{height:0,opacity:0}},f=function(a){var s=a.scrollHeight;return{height:s,opacity:1}},d=function(a){return{height:a?a.offsetHeight:0}},p=function(a,s){return(s==null?void 0:s.deadline)===!0||s.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:c,onEnterStart:c,onAppearActive:f,onEnterActive:f,onLeaveStart:d,onLeaveActive:c,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(_){var a=o(_.children),s=(0,t.createRef)(),u=function(g,P){var N=P.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||s.current.onNodeExpand(g,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:h,ref:s,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:D()(D()({},m),{},{motionAppear:!1}),onClick:u,treeData:[{key:"0",title:_.title||"",children:a}],defaultExpandAll:!0,switcherIcon:l})}}}]); diff --git a/docs/docs__api__atom-ctx__use-action-loading.md.705b57f7.async.js b/docs/docs__api__atom-ctx__use-action-loading.md.705b57f7.async.js deleted file mode 100644 index 01045a34..00000000 --- a/docs/docs__api__atom-ctx__use-action-loading.md.705b57f7.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[1654],{1354:function(S,x,t){t.r(x);var E=t(4311),j=t(53267),A=t(82197),D=t(12620),L=t(74692),O=t(33296),b=t(12133),T=t(54996),C=t(70079),d=t(35250);function y(){var M=(0,T.eL)(),a=M.texts;return(0,d.jsx)(T.dY,{children:(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{className:"markdown",children:(0,d.jsxs)("h1",{id:"useactionloading",children:[(0,d.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#useactionloading",children:(0,d.jsx)("span",{className:"icon icon-link"})}),"useActionLoading"]})})})})}x.default=y},4311:function(S,x,t){var E=t(39114),j=t.n(E),A=t(70125),D=t.n(A),L=t(54996),O=t(70079),b=t(33296),T=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var n=this,o=[];return Object.entries(e.properties||{}).forEach(function(m){var c,i=D()(m,2),f=i[0],u=i[1];o.push("".concat(f).concat((c=e.required)!==null&&c!==void 0&&c.includes(f)?"":"?",": ").concat(u.type==="object"?"object":n.toString(u)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var n=this.getValidClassName(e.items);return n?"".concat(n,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var n=this,o=e.signature;if(!o)return"Function";var m="oneOf"in o?o.oneOf:[o];return m.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(i){return"".concat(i.key,": ").concat(n.toString(i))}).join(", "),") => ").concat(n.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(n){return JSON.stringify(n)}).join(" | ")},oneOf:function(e){var n=this;return e.oneOf.map(function(o){return n.getValidClassName(o)||n.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},d=function(e){var n=useState(function(){return C.toString(e)}),o=_slicedToArray(n,2),m=o[0],c=o[1];return useEffect(function(){c(C.toString(e))},[e]),_jsx("code",{children:m})},y=function(e){var n,o=useRouteMeta(),m=o.frontmatter,c=useAtomAssets(),i=c.components,f=e.id||m.atomId,u=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=i==null?void 0:i[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:u.formatMessage({id:"api.component.name"})}),_jsx("th",{children:u.formatMessage({id:"api.component.description"})}),_jsx("th",{children:u.formatMessage({id:"api.component.type"})}),_jsx("th",{children:u.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(n=p.propsConfig)!==null&&n!==void 0&&n.properties?Object.entries(p.propsConfig.properties).map(function(h){var v,_=_slicedToArray(h,2),s=_[0],r=_[1];return _jsxs("tr",{children:[_jsx("td",{children:s}),_jsx("td",{children:r.description||"--"}),_jsx("td",{children:_jsx(d,_objectSpread({},r))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(s)?u.formatMessage({id:"api.component.required"}):JSON.stringify(r.default)||"--"})})]},s)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:u.formatMessage({id:"api.component.".concat(i?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(S,x,t){var E=t(39114),j=t(35250),A=function(O){return _jsx("span",_objectSpread({className:"dumi-default-badge"},O))},D=null},33296:function(S,x,t){var E=t(39114),j=t(70125),A=t(11221),D=t(14315),L=t(70079),O=t(35250),b=null,T=function(y){var M=y.children,a=_objectWithoutProperties(y,b),e=useRef(null),n=useState(!1),o=_slicedToArray(n,2),m=o[0],c=o[1],i=useState(!1),f=_slicedToArray(i,2),u=f[0],p=f[1];return useEffect(function(){var h=e.current;if(h){var v=throttle(function(){c(h.scrollLeft>0),p(h.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",r=[];return[].concat(_).forEach(function(l,I){var g="".concat(s?"".concat(s,"-"):"").concat(I);switch(l==null?void 0:l.type){case"ul":{var P,N=((P=r[r.length-1])===null||P===void 0?void 0:P.children)||r,R=n(l.props.children||[],g);N.push.apply(N,O()(R));break}case"li":{var U=n(l.props.children,g);r.push({title:[].concat(l.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),r}var o=function(s){var r=(0,a.useState)(n(s)),l=D()(r,2),I=l[0],g=l[1];return(0,a.useEffect)(function(){g(n(s))},[s]),I},m=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(b.r,{fill:"currentColor"})}):l?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(T.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},c=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):l?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(d.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})})})},i=function(){return{height:0,opacity:0}},f=function(s){var r=s.scrollHeight;return{height:r,opacity:1}},u=function(s){return{height:s?s.offsetHeight:0}},p=function(s,r){return(r==null?void 0:r.deadline)===!0||r.propertyName==="height"},h={motionName:"ant-motion-collapse",onAppearStart:i,onEnterStart:i,onAppearActive:f,onEnterActive:f,onLeaveStart:u,onLeaveActive:i,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(_){var s=o(_.children),r=(0,a.createRef)(),l=function(g,P){var N=P.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||r.current.onNodeExpand(g,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:m,ref:r,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:j()(j()({},h),{},{motionAppear:!1}),onClick:l,treeData:[{key:"0",title:_.title||"",children:s}],defaultExpandAll:!0,switcherIcon:c})}}}]); diff --git a/docs/docs__api__atom-ctx__use-force-update.md.584cba47.async.js b/docs/docs__api__atom-ctx__use-force-update.md.584cba47.async.js new file mode 100644 index 00000000..c7e60c3f --- /dev/null +++ b/docs/docs__api__atom-ctx__use-force-update.md.584cba47.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[948],{74456:function(S,x,t){t.r(x);var D=t(4311),A=t(53267),j=t(82197),O=t(12620),b=t(74692),T=t(33296),L=t(12133),y=t(54996),C=t(70079),i=t(35250);function E(){var M=(0,y.eL)(),n=M.texts;return(0,i.jsx)(y.dY,{children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"markdown",children:[(0,i.jsxs)("h1",{id:"useforceupdate",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#useforceupdate",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"useForceUpdate"]}),(0,i.jsx)("p",{children:n[0].value}),(0,i.jsx)("hr",{})]}),(0,i.jsx)(j.Z,{type:"info",children:(0,i.jsxs)("p",{children:[n[1].value,(0,i.jsx)(y.rU,{to:"/api/hooks/use-global-force-update",children:n[2].value}),n[3].value]})})]})})}x.default=E},4311:function(S,x,t){var D=t(39114),A=t.n(D),j=t(70125),O=t.n(j),b=t(54996),T=t(70079),L=t(33296),y=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var r=this,o=[];return Object.entries(e.properties||{}).forEach(function(h){var l,c=O()(h,2),f=c[0],d=c[1];o.push("".concat(f).concat((l=e.required)!==null&&l!==void 0&&l.includes(f)?"":"?",": ").concat(d.type==="object"?"object":r.toString(d)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var r=this.getValidClassName(e.items);return r?"".concat(r,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var r=this,o=e.signature;if(!o)return"Function";var h="oneOf"in o?o.oneOf:[o];return h.map(function(l){return"".concat(l.isAsync?"async ":"","(").concat(l.arguments.map(function(c){return"".concat(c.key,": ").concat(r.toString(c))}).join(", "),") => ").concat(r.toString(l.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(r){return JSON.stringify(r)}).join(" | ")},oneOf:function(e){var r=this;return e.oneOf.map(function(o){return r.getValidClassName(o)||r.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},i=function(e){var r=useState(function(){return C.toString(e)}),o=_slicedToArray(r,2),h=o[0],l=o[1];return useEffect(function(){l(C.toString(e))},[e]),_jsx("code",{children:h})},E=function(e){var r,o=useRouteMeta(),h=o.frontmatter,l=useAtomAssets(),c=l.components,f=e.id||h.atomId,d=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=c==null?void 0:c[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:d.formatMessage({id:"api.component.name"})}),_jsx("th",{children:d.formatMessage({id:"api.component.description"})}),_jsx("th",{children:d.formatMessage({id:"api.component.type"})}),_jsx("th",{children:d.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(r=p.propsConfig)!==null&&r!==void 0&&r.properties?Object.entries(p.propsConfig.properties).map(function(m){var v,_=_slicedToArray(m,2),a=_[0],s=_[1];return _jsxs("tr",{children:[_jsx("td",{children:a}),_jsx("td",{children:s.description||"--"}),_jsx("td",{children:_jsx(i,_objectSpread({},s))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(a)?d.formatMessage({id:"api.component.required"}):JSON.stringify(s.default)||"--"})})]},a)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:d.formatMessage({id:"api.component.".concat(c?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(S,x,t){var D=t(39114),A=t(35250),j=function(T){return _jsx("span",_objectSpread({className:"dumi-default-badge"},T))},O=null},33296:function(S,x,t){var D=t(39114),A=t(70125),j=t(11221),O=t(14315),b=t(70079),T=t(35250),L=null,y=function(E){var M=E.children,n=_objectWithoutProperties(E,L),e=useRef(null),r=useState(!1),o=_slicedToArray(r,2),h=o[0],l=o[1],c=useState(!1),f=_slicedToArray(c,2),d=f[0],p=f[1];return useEffect(function(){var m=e.current;if(m){var v=throttle(function(){l(m.scrollLeft>0),p(m.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",s=[];return[].concat(_).forEach(function(u,I){var g="".concat(a?"".concat(a,"-"):"").concat(I);switch(u==null?void 0:u.type){case"ul":{var P,U=((P=s[s.length-1])===null||P===void 0?void 0:P.children)||s,R=r(u.props.children||[],g);U.push.apply(U,T()(R));break}case"li":{var N=r(u.props.children,g);s.push({title:[].concat(u.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:N,isLeaf:!N.length});break}default:}}),s}var o=function(a){var s=(0,n.useState)(r(a)),u=O()(s,2),I=u[0],g=u[1];return(0,n.useEffect)(function(){g(r(a))},[a]),I},h=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(L.r,{fill:"currentColor"})}):u?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},l=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):u?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(i.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(E.r,{fill:"currentColor"})})})},c=function(){return{height:0,opacity:0}},f=function(a){var s=a.scrollHeight;return{height:s,opacity:1}},d=function(a){return{height:a?a.offsetHeight:0}},p=function(a,s){return(s==null?void 0:s.deadline)===!0||s.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:c,onEnterStart:c,onAppearActive:f,onEnterActive:f,onLeaveStart:d,onLeaveActive:c,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(_){var a=o(_.children),s=(0,n.createRef)(),u=function(g,P){var U=P.isLeaf;U||g.shiftKey||g.metaKey||g.ctrlKey||s.current.onNodeExpand(g,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:h,ref:s,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:A()(A()({},m),{},{motionAppear:!1}),onClick:u,treeData:[{key:"0",title:_.title||"",children:a}],defaultExpandAll:!0,switcherIcon:l})}}}]); diff --git a/docs/docs__api__atom-ctx__use-force-update.md.891d7a7d.async.js b/docs/docs__api__atom-ctx__use-force-update.md.891d7a7d.async.js deleted file mode 100644 index c454e9a0..00000000 --- a/docs/docs__api__atom-ctx__use-force-update.md.891d7a7d.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[948],{74456:function(S,x,t){t.r(x);var E=t(4311),j=t(53267),D=t(82197),A=t(12620),b=t(74692),O=t(33296),L=t(12133),T=t(54996),C=t(70079),d=t(35250);function y(){var M=(0,T.eL)(),a=M.texts;return(0,d.jsx)(T.dY,{children:(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{className:"markdown",children:(0,d.jsxs)("h1",{id:"useforceupdate",children:[(0,d.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#useforceupdate",children:(0,d.jsx)("span",{className:"icon icon-link"})}),"useForceUpdate"]})})})})}x.default=y},4311:function(S,x,t){var E=t(39114),j=t.n(E),D=t(70125),A=t.n(D),b=t(54996),O=t(70079),L=t(33296),T=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var n=this,o=[];return Object.entries(e.properties||{}).forEach(function(m){var c,i=A()(m,2),f=i[0],u=i[1];o.push("".concat(f).concat((c=e.required)!==null&&c!==void 0&&c.includes(f)?"":"?",": ").concat(u.type==="object"?"object":n.toString(u)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var n=this.getValidClassName(e.items);return n?"".concat(n,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var n=this,o=e.signature;if(!o)return"Function";var m="oneOf"in o?o.oneOf:[o];return m.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(i){return"".concat(i.key,": ").concat(n.toString(i))}).join(", "),") => ").concat(n.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(n){return JSON.stringify(n)}).join(" | ")},oneOf:function(e){var n=this;return e.oneOf.map(function(o){return n.getValidClassName(o)||n.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},d=function(e){var n=useState(function(){return C.toString(e)}),o=_slicedToArray(n,2),m=o[0],c=o[1];return useEffect(function(){c(C.toString(e))},[e]),_jsx("code",{children:m})},y=function(e){var n,o=useRouteMeta(),m=o.frontmatter,c=useAtomAssets(),i=c.components,f=e.id||m.atomId,u=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=i==null?void 0:i[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:u.formatMessage({id:"api.component.name"})}),_jsx("th",{children:u.formatMessage({id:"api.component.description"})}),_jsx("th",{children:u.formatMessage({id:"api.component.type"})}),_jsx("th",{children:u.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(n=p.propsConfig)!==null&&n!==void 0&&n.properties?Object.entries(p.propsConfig.properties).map(function(h){var v,_=_slicedToArray(h,2),s=_[0],r=_[1];return _jsxs("tr",{children:[_jsx("td",{children:s}),_jsx("td",{children:r.description||"--"}),_jsx("td",{children:_jsx(d,_objectSpread({},r))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(s)?u.formatMessage({id:"api.component.required"}):JSON.stringify(r.default)||"--"})})]},s)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:u.formatMessage({id:"api.component.".concat(i?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(S,x,t){var E=t(39114),j=t(35250),D=function(O){return _jsx("span",_objectSpread({className:"dumi-default-badge"},O))},A=null},33296:function(S,x,t){var E=t(39114),j=t(70125),D=t(11221),A=t(14315),b=t(70079),O=t(35250),L=null,T=function(y){var M=y.children,a=_objectWithoutProperties(y,L),e=useRef(null),n=useState(!1),o=_slicedToArray(n,2),m=o[0],c=o[1],i=useState(!1),f=_slicedToArray(i,2),u=f[0],p=f[1];return useEffect(function(){var h=e.current;if(h){var v=throttle(function(){c(h.scrollLeft>0),p(h.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",r=[];return[].concat(_).forEach(function(l,I){var g="".concat(s?"".concat(s,"-"):"").concat(I);switch(l==null?void 0:l.type){case"ul":{var P,N=((P=r[r.length-1])===null||P===void 0?void 0:P.children)||r,R=n(l.props.children||[],g);N.push.apply(N,O()(R));break}case"li":{var U=n(l.props.children,g);r.push({title:[].concat(l.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),r}var o=function(s){var r=(0,a.useState)(n(s)),l=A()(r,2),I=l[0],g=l[1];return(0,a.useEffect)(function(){g(n(s))},[s]),I},m=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(L.r,{fill:"currentColor"})}):l?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(T.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},c=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):l?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(d.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})})})},i=function(){return{height:0,opacity:0}},f=function(s){var r=s.scrollHeight;return{height:r,opacity:1}},u=function(s){return{height:s?s.offsetHeight:0}},p=function(s,r){return(r==null?void 0:r.deadline)===!0||r.propertyName==="height"},h={motionName:"ant-motion-collapse",onAppearStart:i,onEnterStart:i,onAppearActive:f,onEnterActive:f,onLeaveStart:u,onLeaveActive:i,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(_){var s=o(_.children),r=(0,a.createRef)(),l=function(g,P){var N=P.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||r.current.onNodeExpand(g,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:m,ref:r,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:j()(j()({},h),{},{motionAppear:!1}),onClick:l,treeData:[{key:"0",title:_.title||"",children:s}],defaultExpandAll:!0,switcherIcon:c})}}}]); diff --git a/docs/docs__api__atom-ctx__use-local-force-update.md.3d382f0c.async.js b/docs/docs__api__atom-ctx__use-local-force-update.md.3d382f0c.async.js deleted file mode 100644 index e7b97972..00000000 --- a/docs/docs__api__atom-ctx__use-local-force-update.md.3d382f0c.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[317],{75304:function(S,x,t){t.r(x);var E=t(4311),j=t(53267),D=t(82197),A=t(12620),L=t(74692),O=t(33296),b=t(12133),T=t(54996),C=t(70079),d=t(35250);function y(){var M=(0,T.eL)(),a=M.texts;return(0,d.jsx)(T.dY,{children:(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{className:"markdown",children:(0,d.jsxs)("h1",{id:"uselocalforceupdate",children:[(0,d.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#uselocalforceupdate",children:(0,d.jsx)("span",{className:"icon icon-link"})}),"useLocalForceUpdate"]})})})})}x.default=y},4311:function(S,x,t){var E=t(39114),j=t.n(E),D=t(70125),A=t.n(D),L=t(54996),O=t(70079),b=t(33296),T=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var n=this,o=[];return Object.entries(e.properties||{}).forEach(function(m){var c,i=A()(m,2),f=i[0],u=i[1];o.push("".concat(f).concat((c=e.required)!==null&&c!==void 0&&c.includes(f)?"":"?",": ").concat(u.type==="object"?"object":n.toString(u)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var n=this.getValidClassName(e.items);return n?"".concat(n,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var n=this,o=e.signature;if(!o)return"Function";var m="oneOf"in o?o.oneOf:[o];return m.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(i){return"".concat(i.key,": ").concat(n.toString(i))}).join(", "),") => ").concat(n.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(n){return JSON.stringify(n)}).join(" | ")},oneOf:function(e){var n=this;return e.oneOf.map(function(o){return n.getValidClassName(o)||n.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},d=function(e){var n=useState(function(){return C.toString(e)}),o=_slicedToArray(n,2),m=o[0],c=o[1];return useEffect(function(){c(C.toString(e))},[e]),_jsx("code",{children:m})},y=function(e){var n,o=useRouteMeta(),m=o.frontmatter,c=useAtomAssets(),i=c.components,f=e.id||m.atomId,u=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=i==null?void 0:i[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:u.formatMessage({id:"api.component.name"})}),_jsx("th",{children:u.formatMessage({id:"api.component.description"})}),_jsx("th",{children:u.formatMessage({id:"api.component.type"})}),_jsx("th",{children:u.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(n=p.propsConfig)!==null&&n!==void 0&&n.properties?Object.entries(p.propsConfig.properties).map(function(h){var v,_=_slicedToArray(h,2),s=_[0],r=_[1];return _jsxs("tr",{children:[_jsx("td",{children:s}),_jsx("td",{children:r.description||"--"}),_jsx("td",{children:_jsx(d,_objectSpread({},r))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(s)?u.formatMessage({id:"api.component.required"}):JSON.stringify(r.default)||"--"})})]},s)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:u.formatMessage({id:"api.component.".concat(i?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(S,x,t){var E=t(39114),j=t(35250),D=function(O){return _jsx("span",_objectSpread({className:"dumi-default-badge"},O))},A=null},33296:function(S,x,t){var E=t(39114),j=t(70125),D=t(11221),A=t(14315),L=t(70079),O=t(35250),b=null,T=function(y){var M=y.children,a=_objectWithoutProperties(y,b),e=useRef(null),n=useState(!1),o=_slicedToArray(n,2),m=o[0],c=o[1],i=useState(!1),f=_slicedToArray(i,2),u=f[0],p=f[1];return useEffect(function(){var h=e.current;if(h){var v=throttle(function(){c(h.scrollLeft>0),p(h.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",r=[];return[].concat(_).forEach(function(l,I){var g="".concat(s?"".concat(s,"-"):"").concat(I);switch(l==null?void 0:l.type){case"ul":{var P,N=((P=r[r.length-1])===null||P===void 0?void 0:P.children)||r,R=n(l.props.children||[],g);N.push.apply(N,O()(R));break}case"li":{var U=n(l.props.children,g);r.push({title:[].concat(l.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),r}var o=function(s){var r=(0,a.useState)(n(s)),l=A()(r,2),I=l[0],g=l[1];return(0,a.useEffect)(function(){g(n(s))},[s]),I},m=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(b.r,{fill:"currentColor"})}):l?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(T.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},c=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):l?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(d.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})})})},i=function(){return{height:0,opacity:0}},f=function(s){var r=s.scrollHeight;return{height:r,opacity:1}},u=function(s){return{height:s?s.offsetHeight:0}},p=function(s,r){return(r==null?void 0:r.deadline)===!0||r.propertyName==="height"},h={motionName:"ant-motion-collapse",onAppearStart:i,onEnterStart:i,onAppearActive:f,onEnterActive:f,onLeaveStart:u,onLeaveActive:i,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(_){var s=o(_.children),r=(0,a.createRef)(),l=function(g,P){var N=P.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||r.current.onNodeExpand(g,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:m,ref:r,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:j()(j()({},h),{},{motionAppear:!1}),onClick:l,treeData:[{key:"0",title:_.title||"",children:s}],defaultExpandAll:!0,switcherIcon:c})}}}]); diff --git a/docs/docs__api__atom-ctx__use-local-force-update.md.7e87b5bd.async.js b/docs/docs__api__atom-ctx__use-local-force-update.md.7e87b5bd.async.js new file mode 100644 index 00000000..f1de711f --- /dev/null +++ b/docs/docs__api__atom-ctx__use-local-force-update.md.7e87b5bd.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[317],{75304:function(S,x,t){t.r(x);var D=t(4311),A=t(53267),j=t(82197),O=t(12620),L=t(74692),T=t(33296),b=t(12133),y=t(54996),C=t(70079),i=t(35250);function E(){var M=(0,y.eL)(),n=M.texts;return(0,i.jsx)(y.dY,{children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"markdown",children:[(0,i.jsxs)("h1",{id:"uselocalforceupdate",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#uselocalforceupdate",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"useLocalForceUpdate"]}),(0,i.jsx)("p",{children:n[0].value}),(0,i.jsx)("hr",{})]}),(0,i.jsx)(j.Z,{type:"info",children:(0,i.jsxs)("p",{children:[n[1].value,(0,i.jsx)(y.rU,{to:"/api/hooks/use-local-force-update",children:n[2].value}),n[3].value]})})]})})}x.default=E},4311:function(S,x,t){var D=t(39114),A=t.n(D),j=t(70125),O=t.n(j),L=t(54996),T=t(70079),b=t(33296),y=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var r=this,o=[];return Object.entries(e.properties||{}).forEach(function(h){var l,c=O()(h,2),f=c[0],d=c[1];o.push("".concat(f).concat((l=e.required)!==null&&l!==void 0&&l.includes(f)?"":"?",": ").concat(d.type==="object"?"object":r.toString(d)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var r=this.getValidClassName(e.items);return r?"".concat(r,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var r=this,o=e.signature;if(!o)return"Function";var h="oneOf"in o?o.oneOf:[o];return h.map(function(l){return"".concat(l.isAsync?"async ":"","(").concat(l.arguments.map(function(c){return"".concat(c.key,": ").concat(r.toString(c))}).join(", "),") => ").concat(r.toString(l.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(r){return JSON.stringify(r)}).join(" | ")},oneOf:function(e){var r=this;return e.oneOf.map(function(o){return r.getValidClassName(o)||r.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},i=function(e){var r=useState(function(){return C.toString(e)}),o=_slicedToArray(r,2),h=o[0],l=o[1];return useEffect(function(){l(C.toString(e))},[e]),_jsx("code",{children:h})},E=function(e){var r,o=useRouteMeta(),h=o.frontmatter,l=useAtomAssets(),c=l.components,f=e.id||h.atomId,d=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=c==null?void 0:c[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:d.formatMessage({id:"api.component.name"})}),_jsx("th",{children:d.formatMessage({id:"api.component.description"})}),_jsx("th",{children:d.formatMessage({id:"api.component.type"})}),_jsx("th",{children:d.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(r=p.propsConfig)!==null&&r!==void 0&&r.properties?Object.entries(p.propsConfig.properties).map(function(m){var v,_=_slicedToArray(m,2),a=_[0],s=_[1];return _jsxs("tr",{children:[_jsx("td",{children:a}),_jsx("td",{children:s.description||"--"}),_jsx("td",{children:_jsx(i,_objectSpread({},s))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(a)?d.formatMessage({id:"api.component.required"}):JSON.stringify(s.default)||"--"})})]},a)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:d.formatMessage({id:"api.component.".concat(c?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(S,x,t){var D=t(39114),A=t(35250),j=function(T){return _jsx("span",_objectSpread({className:"dumi-default-badge"},T))},O=null},33296:function(S,x,t){var D=t(39114),A=t(70125),j=t(11221),O=t(14315),L=t(70079),T=t(35250),b=null,y=function(E){var M=E.children,n=_objectWithoutProperties(E,b),e=useRef(null),r=useState(!1),o=_slicedToArray(r,2),h=o[0],l=o[1],c=useState(!1),f=_slicedToArray(c,2),d=f[0],p=f[1];return useEffect(function(){var m=e.current;if(m){var v=throttle(function(){l(m.scrollLeft>0),p(m.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",s=[];return[].concat(_).forEach(function(u,I){var g="".concat(a?"".concat(a,"-"):"").concat(I);switch(u==null?void 0:u.type){case"ul":{var P,U=((P=s[s.length-1])===null||P===void 0?void 0:P.children)||s,R=r(u.props.children||[],g);U.push.apply(U,T()(R));break}case"li":{var N=r(u.props.children,g);s.push({title:[].concat(u.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:N,isLeaf:!N.length});break}default:}}),s}var o=function(a){var s=(0,n.useState)(r(a)),u=O()(s,2),I=u[0],g=u[1];return(0,n.useEffect)(function(){g(r(a))},[a]),I},h=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(b.r,{fill:"currentColor"})}):u?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},l=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):u?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(i.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(E.r,{fill:"currentColor"})})})},c=function(){return{height:0,opacity:0}},f=function(a){var s=a.scrollHeight;return{height:s,opacity:1}},d=function(a){return{height:a?a.offsetHeight:0}},p=function(a,s){return(s==null?void 0:s.deadline)===!0||s.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:c,onEnterStart:c,onAppearActive:f,onEnterActive:f,onLeaveStart:d,onLeaveActive:c,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(_){var a=o(_.children),s=(0,n.createRef)(),u=function(g,P){var U=P.isLeaf;U||g.shiftKey||g.metaKey||g.ctrlKey||s.current.onNodeExpand(g,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:h,ref:s,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:A()(A()({},m),{},{motionAppear:!1}),onClick:u,treeData:[{key:"0",title:_.title||"",children:a}],defaultExpandAll:!0,switcherIcon:l})}}}]); diff --git a/docs/docs__api__atom-ctx__use-local-state.md.2e026a7d.async.js b/docs/docs__api__atom-ctx__use-local-state.md.2e026a7d.async.js new file mode 100644 index 00000000..804ea3af --- /dev/null +++ b/docs/docs__api__atom-ctx__use-local-state.md.2e026a7d.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[4027],{86021:function(S,x,t){t.r(x);var D=t(4311),A=t(53267),j=t(82197),O=t(12620),b=t(74692),T=t(33296),L=t(12133),y=t(54996),C=t(70079),i=t(35250);function E(){var M=(0,y.eL)(),n=M.texts;return(0,i.jsx)(y.dY,{children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"markdown",children:[(0,i.jsxs)("h1",{id:"uselocalstate",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#uselocalstate",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"useLocalState"]}),(0,i.jsx)("p",{children:n[0].value}),(0,i.jsx)("hr",{})]}),(0,i.jsx)(j.Z,{type:"info",children:(0,i.jsxs)("p",{children:[n[1].value,(0,i.jsx)(y.rU,{to:"/api/hooks/use-mutable",children:n[2].value}),n[3].value]})})]})})}x.default=E},4311:function(S,x,t){var D=t(39114),A=t.n(D),j=t(70125),O=t.n(j),b=t(54996),T=t(70079),L=t(33296),y=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var r=this,o=[];return Object.entries(e.properties||{}).forEach(function(h){var c,l=O()(h,2),f=l[0],d=l[1];o.push("".concat(f).concat((c=e.required)!==null&&c!==void 0&&c.includes(f)?"":"?",": ").concat(d.type==="object"?"object":r.toString(d)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var r=this.getValidClassName(e.items);return r?"".concat(r,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var r=this,o=e.signature;if(!o)return"Function";var h="oneOf"in o?o.oneOf:[o];return h.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(l){return"".concat(l.key,": ").concat(r.toString(l))}).join(", "),") => ").concat(r.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(r){return JSON.stringify(r)}).join(" | ")},oneOf:function(e){var r=this;return e.oneOf.map(function(o){return r.getValidClassName(o)||r.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},i=function(e){var r=useState(function(){return C.toString(e)}),o=_slicedToArray(r,2),h=o[0],c=o[1];return useEffect(function(){c(C.toString(e))},[e]),_jsx("code",{children:h})},E=function(e){var r,o=useRouteMeta(),h=o.frontmatter,c=useAtomAssets(),l=c.components,f=e.id||h.atomId,d=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=l==null?void 0:l[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:d.formatMessage({id:"api.component.name"})}),_jsx("th",{children:d.formatMessage({id:"api.component.description"})}),_jsx("th",{children:d.formatMessage({id:"api.component.type"})}),_jsx("th",{children:d.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(r=p.propsConfig)!==null&&r!==void 0&&r.properties?Object.entries(p.propsConfig.properties).map(function(m){var v,_=_slicedToArray(m,2),a=_[0],s=_[1];return _jsxs("tr",{children:[_jsx("td",{children:a}),_jsx("td",{children:s.description||"--"}),_jsx("td",{children:_jsx(i,_objectSpread({},s))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(a)?d.formatMessage({id:"api.component.required"}):JSON.stringify(s.default)||"--"})})]},a)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:d.formatMessage({id:"api.component.".concat(l?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(S,x,t){var D=t(39114),A=t(35250),j=function(T){return _jsx("span",_objectSpread({className:"dumi-default-badge"},T))},O=null},33296:function(S,x,t){var D=t(39114),A=t(70125),j=t(11221),O=t(14315),b=t(70079),T=t(35250),L=null,y=function(E){var M=E.children,n=_objectWithoutProperties(E,L),e=useRef(null),r=useState(!1),o=_slicedToArray(r,2),h=o[0],c=o[1],l=useState(!1),f=_slicedToArray(l,2),d=f[0],p=f[1];return useEffect(function(){var m=e.current;if(m){var v=throttle(function(){c(m.scrollLeft>0),p(m.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",s=[];return[].concat(_).forEach(function(u,I){var g="".concat(a?"".concat(a,"-"):"").concat(I);switch(u==null?void 0:u.type){case"ul":{var P,N=((P=s[s.length-1])===null||P===void 0?void 0:P.children)||s,R=r(u.props.children||[],g);N.push.apply(N,T()(R));break}case"li":{var U=r(u.props.children,g);s.push({title:[].concat(u.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),s}var o=function(a){var s=(0,n.useState)(r(a)),u=O()(s,2),I=u[0],g=u[1];return(0,n.useEffect)(function(){g(r(a))},[a]),I},h=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(L.r,{fill:"currentColor"})}):u?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},c=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):u?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(i.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(E.r,{fill:"currentColor"})})})},l=function(){return{height:0,opacity:0}},f=function(a){var s=a.scrollHeight;return{height:s,opacity:1}},d=function(a){return{height:a?a.offsetHeight:0}},p=function(a,s){return(s==null?void 0:s.deadline)===!0||s.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:l,onEnterStart:l,onAppearActive:f,onEnterActive:f,onLeaveStart:d,onLeaveActive:l,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(_){var a=o(_.children),s=(0,n.createRef)(),u=function(g,P){var N=P.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||s.current.onNodeExpand(g,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:h,ref:s,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:A()(A()({},m),{},{motionAppear:!1}),onClick:u,treeData:[{key:"0",title:_.title||"",children:a}],defaultExpandAll:!0,switcherIcon:c})}}}]); diff --git a/docs/docs__api__atom-ctx__use-local-state.md.ae7dbf8d.async.js b/docs/docs__api__atom-ctx__use-local-state.md.ae7dbf8d.async.js deleted file mode 100644 index c8dac9f2..00000000 --- a/docs/docs__api__atom-ctx__use-local-state.md.ae7dbf8d.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[4027],{86021:function(b,x,t){t.r(x);var E=t(4311),j=t(53267),D=t(82197),A=t(12620),L=t(74692),O=t(33296),S=t(12133),T=t(54996),C=t(70079),d=t(35250);function y(){var M=(0,T.eL)(),a=M.texts;return(0,d.jsx)(T.dY,{children:(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{className:"markdown",children:(0,d.jsxs)("h1",{id:"uselocalstate",children:[(0,d.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#uselocalstate",children:(0,d.jsx)("span",{className:"icon icon-link"})}),"useLocalState"]})})})})}x.default=y},4311:function(b,x,t){var E=t(39114),j=t.n(E),D=t(70125),A=t.n(D),L=t(54996),O=t(70079),S=t(33296),T=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var n=this,o=[];return Object.entries(e.properties||{}).forEach(function(m){var c,i=A()(m,2),f=i[0],u=i[1];o.push("".concat(f).concat((c=e.required)!==null&&c!==void 0&&c.includes(f)?"":"?",": ").concat(u.type==="object"?"object":n.toString(u)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var n=this.getValidClassName(e.items);return n?"".concat(n,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var n=this,o=e.signature;if(!o)return"Function";var m="oneOf"in o?o.oneOf:[o];return m.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(i){return"".concat(i.key,": ").concat(n.toString(i))}).join(", "),") => ").concat(n.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(n){return JSON.stringify(n)}).join(" | ")},oneOf:function(e){var n=this;return e.oneOf.map(function(o){return n.getValidClassName(o)||n.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},d=function(e){var n=useState(function(){return C.toString(e)}),o=_slicedToArray(n,2),m=o[0],c=o[1];return useEffect(function(){c(C.toString(e))},[e]),_jsx("code",{children:m})},y=function(e){var n,o=useRouteMeta(),m=o.frontmatter,c=useAtomAssets(),i=c.components,f=e.id||m.atomId,u=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=i==null?void 0:i[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:u.formatMessage({id:"api.component.name"})}),_jsx("th",{children:u.formatMessage({id:"api.component.description"})}),_jsx("th",{children:u.formatMessage({id:"api.component.type"})}),_jsx("th",{children:u.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(n=p.propsConfig)!==null&&n!==void 0&&n.properties?Object.entries(p.propsConfig.properties).map(function(h){var v,_=_slicedToArray(h,2),s=_[0],r=_[1];return _jsxs("tr",{children:[_jsx("td",{children:s}),_jsx("td",{children:r.description||"--"}),_jsx("td",{children:_jsx(d,_objectSpread({},r))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(s)?u.formatMessage({id:"api.component.required"}):JSON.stringify(r.default)||"--"})})]},s)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:u.formatMessage({id:"api.component.".concat(i?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(b,x,t){var E=t(39114),j=t(35250),D=function(O){return _jsx("span",_objectSpread({className:"dumi-default-badge"},O))},A=null},33296:function(b,x,t){var E=t(39114),j=t(70125),D=t(11221),A=t(14315),L=t(70079),O=t(35250),S=null,T=function(y){var M=y.children,a=_objectWithoutProperties(y,S),e=useRef(null),n=useState(!1),o=_slicedToArray(n,2),m=o[0],c=o[1],i=useState(!1),f=_slicedToArray(i,2),u=f[0],p=f[1];return useEffect(function(){var h=e.current;if(h){var v=throttle(function(){c(h.scrollLeft>0),p(h.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",r=[];return[].concat(_).forEach(function(l,I){var g="".concat(s?"".concat(s,"-"):"").concat(I);switch(l==null?void 0:l.type){case"ul":{var P,N=((P=r[r.length-1])===null||P===void 0?void 0:P.children)||r,R=n(l.props.children||[],g);N.push.apply(N,O()(R));break}case"li":{var U=n(l.props.children,g);r.push({title:[].concat(l.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),r}var o=function(s){var r=(0,a.useState)(n(s)),l=A()(r,2),I=l[0],g=l[1];return(0,a.useEffect)(function(){g(n(s))},[s]),I},m=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(S.r,{fill:"currentColor"})}):l?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(T.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},c=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):l?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(d.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})})})},i=function(){return{height:0,opacity:0}},f=function(s){var r=s.scrollHeight;return{height:r,opacity:1}},u=function(s){return{height:s?s.offsetHeight:0}},p=function(s,r){return(r==null?void 0:r.deadline)===!0||r.propertyName==="height"},h={motionName:"ant-motion-collapse",onAppearStart:i,onEnterStart:i,onAppearActive:f,onEnterActive:f,onLeaveStart:u,onLeaveActive:i,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(_){var s=o(_.children),r=(0,a.createRef)(),l=function(g,P){var N=P.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||r.current.onNodeExpand(g,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:m,ref:r,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:j()(j()({},h),{},{motionAppear:!1}),onClick:l,treeData:[{key:"0",title:_.title||"",children:s}],defaultExpandAll:!0,switcherIcon:c})}}}]); diff --git a/docs/docs__api__atom-ctx__use-mutate-loading.md.3d6ba05e.async.js b/docs/docs__api__atom-ctx__use-mutate-loading.md.3d6ba05e.async.js new file mode 100644 index 00000000..16a9d966 --- /dev/null +++ b/docs/docs__api__atom-ctx__use-mutate-loading.md.3d6ba05e.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[4741],{11001:function(S,x,t){t.r(x);var D=t(4311),A=t(53267),j=t(82197),O=t(12620),L=t(74692),T=t(33296),b=t(12133),y=t(54996),C=t(70079),i=t(35250);function E(){var M=(0,y.eL)(),n=M.texts;return(0,i.jsx)(y.dY,{children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"markdown",children:[(0,i.jsxs)("h1",{id:"usemutateloading",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#usemutateloading",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"useMutateLoading"]}),(0,i.jsxs)("p",{children:[n[0].value,(0,i.jsx)("code",{children:n[1].value}),n[2].value]}),(0,i.jsx)("hr",{})]}),(0,i.jsx)(j.Z,{type:"info",children:(0,i.jsxs)("p",{children:[n[3].value,(0,i.jsx)(y.rU,{to:"/api/hooks/use-mutate-loading",children:n[4].value}),n[5].value]})})]})})}x.default=E},4311:function(S,x,t){var D=t(39114),A=t.n(D),j=t(70125),O=t.n(j),L=t(54996),T=t(70079),b=t(33296),y=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var r=this,o=[];return Object.entries(e.properties||{}).forEach(function(h){var c,l=O()(h,2),f=l[0],d=l[1];o.push("".concat(f).concat((c=e.required)!==null&&c!==void 0&&c.includes(f)?"":"?",": ").concat(d.type==="object"?"object":r.toString(d)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var r=this.getValidClassName(e.items);return r?"".concat(r,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var r=this,o=e.signature;if(!o)return"Function";var h="oneOf"in o?o.oneOf:[o];return h.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(l){return"".concat(l.key,": ").concat(r.toString(l))}).join(", "),") => ").concat(r.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(r){return JSON.stringify(r)}).join(" | ")},oneOf:function(e){var r=this;return e.oneOf.map(function(o){return r.getValidClassName(o)||r.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},i=function(e){var r=useState(function(){return C.toString(e)}),o=_slicedToArray(r,2),h=o[0],c=o[1];return useEffect(function(){c(C.toString(e))},[e]),_jsx("code",{children:h})},E=function(e){var r,o=useRouteMeta(),h=o.frontmatter,c=useAtomAssets(),l=c.components,f=e.id||h.atomId,d=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=l==null?void 0:l[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:d.formatMessage({id:"api.component.name"})}),_jsx("th",{children:d.formatMessage({id:"api.component.description"})}),_jsx("th",{children:d.formatMessage({id:"api.component.type"})}),_jsx("th",{children:d.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(r=p.propsConfig)!==null&&r!==void 0&&r.properties?Object.entries(p.propsConfig.properties).map(function(m){var v,_=_slicedToArray(m,2),a=_[0],s=_[1];return _jsxs("tr",{children:[_jsx("td",{children:a}),_jsx("td",{children:s.description||"--"}),_jsx("td",{children:_jsx(i,_objectSpread({},s))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(a)?d.formatMessage({id:"api.component.required"}):JSON.stringify(s.default)||"--"})})]},a)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:d.formatMessage({id:"api.component.".concat(l?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(S,x,t){var D=t(39114),A=t(35250),j=function(T){return _jsx("span",_objectSpread({className:"dumi-default-badge"},T))},O=null},33296:function(S,x,t){var D=t(39114),A=t(70125),j=t(11221),O=t(14315),L=t(70079),T=t(35250),b=null,y=function(E){var M=E.children,n=_objectWithoutProperties(E,b),e=useRef(null),r=useState(!1),o=_slicedToArray(r,2),h=o[0],c=o[1],l=useState(!1),f=_slicedToArray(l,2),d=f[0],p=f[1];return useEffect(function(){var m=e.current;if(m){var v=throttle(function(){c(m.scrollLeft>0),p(m.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",s=[];return[].concat(_).forEach(function(u,I){var g="".concat(a?"".concat(a,"-"):"").concat(I);switch(u==null?void 0:u.type){case"ul":{var P,N=((P=s[s.length-1])===null||P===void 0?void 0:P.children)||s,R=r(u.props.children||[],g);N.push.apply(N,T()(R));break}case"li":{var U=r(u.props.children,g);s.push({title:[].concat(u.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),s}var o=function(a){var s=(0,n.useState)(r(a)),u=O()(s,2),I=u[0],g=u[1];return(0,n.useEffect)(function(){g(r(a))},[a]),I},h=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(b.r,{fill:"currentColor"})}):u?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},c=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):u?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(i.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(E.r,{fill:"currentColor"})})})},l=function(){return{height:0,opacity:0}},f=function(a){var s=a.scrollHeight;return{height:s,opacity:1}},d=function(a){return{height:a?a.offsetHeight:0}},p=function(a,s){return(s==null?void 0:s.deadline)===!0||s.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:l,onEnterStart:l,onAppearActive:f,onEnterActive:f,onLeaveStart:d,onLeaveActive:l,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(_){var a=o(_.children),s=(0,n.createRef)(),u=function(g,P){var N=P.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||s.current.onNodeExpand(g,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:h,ref:s,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:A()(A()({},m),{},{motionAppear:!1}),onClick:u,treeData:[{key:"0",title:_.title||"",children:a}],defaultExpandAll:!0,switcherIcon:c})}}}]); diff --git a/docs/docs__api__atom-ctx__use-mutate-loading.md.82f0f468.async.js b/docs/docs__api__atom-ctx__use-mutate-loading.md.82f0f468.async.js deleted file mode 100644 index 77b9c65f..00000000 --- a/docs/docs__api__atom-ctx__use-mutate-loading.md.82f0f468.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[4741],{11001:function(S,x,t){t.r(x);var E=t(4311),j=t(53267),D=t(82197),A=t(12620),L=t(74692),O=t(33296),b=t(12133),T=t(54996),C=t(70079),d=t(35250);function y(){var M=(0,T.eL)(),a=M.texts;return(0,d.jsx)(T.dY,{children:(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{className:"markdown",children:(0,d.jsxs)("h1",{id:"usemutateloading",children:[(0,d.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#usemutateloading",children:(0,d.jsx)("span",{className:"icon icon-link"})}),"useMutateLoading"]})})})})}x.default=y},4311:function(S,x,t){var E=t(39114),j=t.n(E),D=t(70125),A=t.n(D),L=t(54996),O=t(70079),b=t(33296),T=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var n=this,o=[];return Object.entries(e.properties||{}).forEach(function(m){var c,i=A()(m,2),f=i[0],_=i[1];o.push("".concat(f).concat((c=e.required)!==null&&c!==void 0&&c.includes(f)?"":"?",": ").concat(_.type==="object"?"object":n.toString(_)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var n=this.getValidClassName(e.items);return n?"".concat(n,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var n=this,o=e.signature;if(!o)return"Function";var m="oneOf"in o?o.oneOf:[o];return m.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(i){return"".concat(i.key,": ").concat(n.toString(i))}).join(", "),") => ").concat(n.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(n){return JSON.stringify(n)}).join(" | ")},oneOf:function(e){var n=this;return e.oneOf.map(function(o){return n.getValidClassName(o)||n.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},d=function(e){var n=useState(function(){return C.toString(e)}),o=_slicedToArray(n,2),m=o[0],c=o[1];return useEffect(function(){c(C.toString(e))},[e]),_jsx("code",{children:m})},y=function(e){var n,o=useRouteMeta(),m=o.frontmatter,c=useAtomAssets(),i=c.components,f=e.id||m.atomId,_=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=i==null?void 0:i[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:_.formatMessage({id:"api.component.name"})}),_jsx("th",{children:_.formatMessage({id:"api.component.description"})}),_jsx("th",{children:_.formatMessage({id:"api.component.type"})}),_jsx("th",{children:_.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(n=p.propsConfig)!==null&&n!==void 0&&n.properties?Object.entries(p.propsConfig.properties).map(function(h){var v,u=_slicedToArray(h,2),s=u[0],r=u[1];return _jsxs("tr",{children:[_jsx("td",{children:s}),_jsx("td",{children:r.description||"--"}),_jsx("td",{children:_jsx(d,_objectSpread({},r))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(s)?_.formatMessage({id:"api.component.required"}):JSON.stringify(r.default)||"--"})})]},s)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:_.formatMessage({id:"api.component.".concat(i?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(S,x,t){var E=t(39114),j=t(35250),D=function(O){return _jsx("span",_objectSpread({className:"dumi-default-badge"},O))},A=null},33296:function(S,x,t){var E=t(39114),j=t(70125),D=t(11221),A=t(14315),L=t(70079),O=t(35250),b=null,T=function(y){var M=y.children,a=_objectWithoutProperties(y,b),e=useRef(null),n=useState(!1),o=_slicedToArray(n,2),m=o[0],c=o[1],i=useState(!1),f=_slicedToArray(i,2),_=f[0],p=f[1];return useEffect(function(){var h=e.current;if(h){var v=throttle(function(){c(h.scrollLeft>0),p(h.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",r=[];return[].concat(u).forEach(function(l,I){var g="".concat(s?"".concat(s,"-"):"").concat(I);switch(l==null?void 0:l.type){case"ul":{var P,N=((P=r[r.length-1])===null||P===void 0?void 0:P.children)||r,R=n(l.props.children||[],g);N.push.apply(N,O()(R));break}case"li":{var U=n(l.props.children,g);r.push({title:[].concat(l.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),r}var o=function(s){var r=(0,a.useState)(n(s)),l=A()(r,2),I=l[0],g=l[1];return(0,a.useEffect)(function(){g(n(s))},[s]),I},m=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(b.r,{fill:"currentColor"})}):l?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(T.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},c=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):l?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(d.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})})})},i=function(){return{height:0,opacity:0}},f=function(s){var r=s.scrollHeight;return{height:r,opacity:1}},_=function(s){return{height:s?s.offsetHeight:0}},p=function(s,r){return(r==null?void 0:r.deadline)===!0||r.propertyName==="height"},h={motionName:"ant-motion-collapse",onAppearStart:i,onEnterStart:i,onAppearActive:f,onEnterActive:f,onLeaveStart:_,onLeaveActive:i,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(u){var s=o(u.children),r=(0,a.createRef)(),l=function(g,P){var N=P.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||r.current.onNodeExpand(g,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:m,ref:r,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:j()(j()({},h),{},{motionAppear:!1}),onClick:l,treeData:[{key:"0",title:u.title||"",children:s}],defaultExpandAll:!0,switcherIcon:c})}}}]); diff --git a/docs/docs__api__atom-ctx__use-reactive.md.57832340.async.js b/docs/docs__api__atom-ctx__use-reactive.md.57832340.async.js new file mode 100644 index 00000000..5b553537 --- /dev/null +++ b/docs/docs__api__atom-ctx__use-reactive.md.57832340.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[7554],{90490:function(S,x,t){t.r(x);var D=t(4311),A=t(53267),j=t(82197),O=t(12620),b=t(74692),T=t(33296),L=t(12133),y=t(54996),C=t(70079),i=t(35250);function E(){var M=(0,y.eL)(),n=M.texts;return(0,i.jsx)(y.dY,{children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"markdown",children:[(0,i.jsxs)("h1",{id:"usereactive",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#usereactive",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"useReactive"]}),(0,i.jsxs)("p",{children:[n[0].value,(0,i.jsx)("code",{children:n[1].value}),n[2].value]}),(0,i.jsx)("hr",{})]}),(0,i.jsx)(j.Z,{type:"info",children:(0,i.jsxs)("p",{children:[n[3].value,(0,i.jsx)(y.rU,{to:"/api/hooks/use-reactive",children:n[4].value}),n[5].value]})})]})})}x.default=E},4311:function(S,x,t){var D=t(39114),A=t.n(D),j=t(70125),O=t.n(j),b=t(54996),T=t(70079),L=t(33296),y=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var r=this,o=[];return Object.entries(e.properties||{}).forEach(function(h){var l,c=O()(h,2),f=c[0],d=c[1];o.push("".concat(f).concat((l=e.required)!==null&&l!==void 0&&l.includes(f)?"":"?",": ").concat(d.type==="object"?"object":r.toString(d)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var r=this.getValidClassName(e.items);return r?"".concat(r,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var r=this,o=e.signature;if(!o)return"Function";var h="oneOf"in o?o.oneOf:[o];return h.map(function(l){return"".concat(l.isAsync?"async ":"","(").concat(l.arguments.map(function(c){return"".concat(c.key,": ").concat(r.toString(c))}).join(", "),") => ").concat(r.toString(l.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(r){return JSON.stringify(r)}).join(" | ")},oneOf:function(e){var r=this;return e.oneOf.map(function(o){return r.getValidClassName(o)||r.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},i=function(e){var r=useState(function(){return C.toString(e)}),o=_slicedToArray(r,2),h=o[0],l=o[1];return useEffect(function(){l(C.toString(e))},[e]),_jsx("code",{children:h})},E=function(e){var r,o=useRouteMeta(),h=o.frontmatter,l=useAtomAssets(),c=l.components,f=e.id||h.atomId,d=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=c==null?void 0:c[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:d.formatMessage({id:"api.component.name"})}),_jsx("th",{children:d.formatMessage({id:"api.component.description"})}),_jsx("th",{children:d.formatMessage({id:"api.component.type"})}),_jsx("th",{children:d.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(r=p.propsConfig)!==null&&r!==void 0&&r.properties?Object.entries(p.propsConfig.properties).map(function(m){var v,_=_slicedToArray(m,2),a=_[0],s=_[1];return _jsxs("tr",{children:[_jsx("td",{children:a}),_jsx("td",{children:s.description||"--"}),_jsx("td",{children:_jsx(i,_objectSpread({},s))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(a)?d.formatMessage({id:"api.component.required"}):JSON.stringify(s.default)||"--"})})]},a)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:d.formatMessage({id:"api.component.".concat(c?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(S,x,t){var D=t(39114),A=t(35250),j=function(T){return _jsx("span",_objectSpread({className:"dumi-default-badge"},T))},O=null},33296:function(S,x,t){var D=t(39114),A=t(70125),j=t(11221),O=t(14315),b=t(70079),T=t(35250),L=null,y=function(E){var M=E.children,n=_objectWithoutProperties(E,L),e=useRef(null),r=useState(!1),o=_slicedToArray(r,2),h=o[0],l=o[1],c=useState(!1),f=_slicedToArray(c,2),d=f[0],p=f[1];return useEffect(function(){var m=e.current;if(m){var v=throttle(function(){l(m.scrollLeft>0),p(m.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",s=[];return[].concat(_).forEach(function(u,I){var g="".concat(a?"".concat(a,"-"):"").concat(I);switch(u==null?void 0:u.type){case"ul":{var P,N=((P=s[s.length-1])===null||P===void 0?void 0:P.children)||s,R=r(u.props.children||[],g);N.push.apply(N,T()(R));break}case"li":{var U=r(u.props.children,g);s.push({title:[].concat(u.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),s}var o=function(a){var s=(0,n.useState)(r(a)),u=O()(s,2),I=u[0],g=u[1];return(0,n.useEffect)(function(){g(r(a))},[a]),I},h=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(L.r,{fill:"currentColor"})}):u?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},l=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):u?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(i.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(E.r,{fill:"currentColor"})})})},c=function(){return{height:0,opacity:0}},f=function(a){var s=a.scrollHeight;return{height:s,opacity:1}},d=function(a){return{height:a?a.offsetHeight:0}},p=function(a,s){return(s==null?void 0:s.deadline)===!0||s.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:c,onEnterStart:c,onAppearActive:f,onEnterActive:f,onLeaveStart:d,onLeaveActive:c,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(_){var a=o(_.children),s=(0,n.createRef)(),u=function(g,P){var N=P.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||s.current.onNodeExpand(g,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:h,ref:s,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:A()(A()({},m),{},{motionAppear:!1}),onClick:u,treeData:[{key:"0",title:_.title||"",children:a}],defaultExpandAll:!0,switcherIcon:l})}}}]); diff --git a/docs/docs__api__atom-ctx__use-reactive.md.cb86add3.async.js b/docs/docs__api__atom-ctx__use-reactive.md.cb86add3.async.js deleted file mode 100644 index 930c5363..00000000 --- a/docs/docs__api__atom-ctx__use-reactive.md.cb86add3.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[7554],{90490:function(S,x,t){t.r(x);var E=t(4311),j=t(53267),D=t(82197),A=t(12620),b=t(74692),O=t(33296),L=t(12133),T=t(54996),C=t(70079),d=t(35250);function y(){var M=(0,T.eL)(),a=M.texts;return(0,d.jsx)(T.dY,{children:(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{className:"markdown",children:(0,d.jsxs)("h1",{id:"usereactive",children:[(0,d.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#usereactive",children:(0,d.jsx)("span",{className:"icon icon-link"})}),"useReactive"]})})})})}x.default=y},4311:function(S,x,t){var E=t(39114),j=t.n(E),D=t(70125),A=t.n(D),b=t(54996),O=t(70079),L=t(33296),T=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var n=this,o=[];return Object.entries(e.properties||{}).forEach(function(m){var c,i=A()(m,2),f=i[0],u=i[1];o.push("".concat(f).concat((c=e.required)!==null&&c!==void 0&&c.includes(f)?"":"?",": ").concat(u.type==="object"?"object":n.toString(u)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var n=this.getValidClassName(e.items);return n?"".concat(n,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var n=this,o=e.signature;if(!o)return"Function";var m="oneOf"in o?o.oneOf:[o];return m.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(i){return"".concat(i.key,": ").concat(n.toString(i))}).join(", "),") => ").concat(n.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(n){return JSON.stringify(n)}).join(" | ")},oneOf:function(e){var n=this;return e.oneOf.map(function(o){return n.getValidClassName(o)||n.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},d=function(e){var n=useState(function(){return C.toString(e)}),o=_slicedToArray(n,2),m=o[0],c=o[1];return useEffect(function(){c(C.toString(e))},[e]),_jsx("code",{children:m})},y=function(e){var n,o=useRouteMeta(),m=o.frontmatter,c=useAtomAssets(),i=c.components,f=e.id||m.atomId,u=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=i==null?void 0:i[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:u.formatMessage({id:"api.component.name"})}),_jsx("th",{children:u.formatMessage({id:"api.component.description"})}),_jsx("th",{children:u.formatMessage({id:"api.component.type"})}),_jsx("th",{children:u.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(n=p.propsConfig)!==null&&n!==void 0&&n.properties?Object.entries(p.propsConfig.properties).map(function(h){var v,_=_slicedToArray(h,2),s=_[0],r=_[1];return _jsxs("tr",{children:[_jsx("td",{children:s}),_jsx("td",{children:r.description||"--"}),_jsx("td",{children:_jsx(d,_objectSpread({},r))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(s)?u.formatMessage({id:"api.component.required"}):JSON.stringify(r.default)||"--"})})]},s)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:u.formatMessage({id:"api.component.".concat(i?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(S,x,t){var E=t(39114),j=t(35250),D=function(O){return _jsx("span",_objectSpread({className:"dumi-default-badge"},O))},A=null},33296:function(S,x,t){var E=t(39114),j=t(70125),D=t(11221),A=t(14315),b=t(70079),O=t(35250),L=null,T=function(y){var M=y.children,a=_objectWithoutProperties(y,L),e=useRef(null),n=useState(!1),o=_slicedToArray(n,2),m=o[0],c=o[1],i=useState(!1),f=_slicedToArray(i,2),u=f[0],p=f[1];return useEffect(function(){var h=e.current;if(h){var v=throttle(function(){c(h.scrollLeft>0),p(h.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",r=[];return[].concat(_).forEach(function(l,I){var g="".concat(s?"".concat(s,"-"):"").concat(I);switch(l==null?void 0:l.type){case"ul":{var P,N=((P=r[r.length-1])===null||P===void 0?void 0:P.children)||r,U=n(l.props.children||[],g);N.push.apply(N,O()(U));break}case"li":{var R=n(l.props.children,g);r.push({title:[].concat(l.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:R,isLeaf:!R.length});break}default:}}),r}var o=function(s){var r=(0,a.useState)(n(s)),l=A()(r,2),I=l[0],g=l[1];return(0,a.useEffect)(function(){g(n(s))},[s]),I},m=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(L.r,{fill:"currentColor"})}):l?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(T.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},c=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):l?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(d.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})})})},i=function(){return{height:0,opacity:0}},f=function(s){var r=s.scrollHeight;return{height:r,opacity:1}},u=function(s){return{height:s?s.offsetHeight:0}},p=function(s,r){return(r==null?void 0:r.deadline)===!0||r.propertyName==="height"},h={motionName:"ant-motion-collapse",onAppearStart:i,onEnterStart:i,onAppearActive:f,onEnterActive:f,onLeaveStart:u,onLeaveActive:i,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(_){var s=o(_.children),r=(0,a.createRef)(),l=function(g,P){var N=P.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||r.current.onNodeExpand(g,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:m,ref:r,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:j()(j()({},h),{},{motionAppear:!1}),onClick:l,treeData:[{key:"0",title:_.title||"",children:s}],defaultExpandAll:!0,switcherIcon:c})}}}]); diff --git a/docs/docs__api__atom-ctx__use-state-x.md.75685fd1.async.js b/docs/docs__api__atom-ctx__use-state-x.md.75685fd1.async.js new file mode 100644 index 00000000..fd63a8d2 --- /dev/null +++ b/docs/docs__api__atom-ctx__use-state-x.md.75685fd1.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[6262],{77706:function(L,x,t){t.r(x);var D=t(4311),A=t(53267),j=t(82197),O=t(12620),S=t(74692),T=t(33296),b=t(12133),y=t(54996),C=t(70079),i=t(35250);function E(){var M=(0,y.eL)(),n=M.texts;return(0,i.jsx)(y.dY,{children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"markdown",children:[(0,i.jsxs)("h1",{id:"usestatex",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#usestatex",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"useStateX"]}),(0,i.jsxs)("p",{children:[n[0].value,(0,i.jsx)("code",{children:n[1].value}),n[2].value]}),(0,i.jsx)("hr",{})]}),(0,i.jsx)(j.Z,{type:"info",children:(0,i.jsxs)("p",{children:[n[3].value,(0,i.jsx)(y.rU,{to:"/api/hooks/use-atom-x",children:n[4].value})]})})]})})}x.default=E},4311:function(L,x,t){var D=t(39114),A=t.n(D),j=t(70125),O=t.n(j),S=t(54996),T=t(70079),b=t(33296),y=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var r=this,o=[];return Object.entries(e.properties||{}).forEach(function(h){var l,c=O()(h,2),f=c[0],d=c[1];o.push("".concat(f).concat((l=e.required)!==null&&l!==void 0&&l.includes(f)?"":"?",": ").concat(d.type==="object"?"object":r.toString(d)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var r=this.getValidClassName(e.items);return r?"".concat(r,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var r=this,o=e.signature;if(!o)return"Function";var h="oneOf"in o?o.oneOf:[o];return h.map(function(l){return"".concat(l.isAsync?"async ":"","(").concat(l.arguments.map(function(c){return"".concat(c.key,": ").concat(r.toString(c))}).join(", "),") => ").concat(r.toString(l.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(r){return JSON.stringify(r)}).join(" | ")},oneOf:function(e){var r=this;return e.oneOf.map(function(o){return r.getValidClassName(o)||r.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},i=function(e){var r=useState(function(){return C.toString(e)}),o=_slicedToArray(r,2),h=o[0],l=o[1];return useEffect(function(){l(C.toString(e))},[e]),_jsx("code",{children:h})},E=function(e){var r,o=useRouteMeta(),h=o.frontmatter,l=useAtomAssets(),c=l.components,f=e.id||h.atomId,d=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=c==null?void 0:c[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:d.formatMessage({id:"api.component.name"})}),_jsx("th",{children:d.formatMessage({id:"api.component.description"})}),_jsx("th",{children:d.formatMessage({id:"api.component.type"})}),_jsx("th",{children:d.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(r=p.propsConfig)!==null&&r!==void 0&&r.properties?Object.entries(p.propsConfig.properties).map(function(m){var v,_=_slicedToArray(m,2),a=_[0],s=_[1];return _jsxs("tr",{children:[_jsx("td",{children:a}),_jsx("td",{children:s.description||"--"}),_jsx("td",{children:_jsx(i,_objectSpread({},s))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(a)?d.formatMessage({id:"api.component.required"}):JSON.stringify(s.default)||"--"})})]},a)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:d.formatMessage({id:"api.component.".concat(c?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(L,x,t){var D=t(39114),A=t(35250),j=function(T){return _jsx("span",_objectSpread({className:"dumi-default-badge"},T))},O=null},33296:function(L,x,t){var D=t(39114),A=t(70125),j=t(11221),O=t(14315),S=t(70079),T=t(35250),b=null,y=function(E){var M=E.children,n=_objectWithoutProperties(E,b),e=useRef(null),r=useState(!1),o=_slicedToArray(r,2),h=o[0],l=o[1],c=useState(!1),f=_slicedToArray(c,2),d=f[0],p=f[1];return useEffect(function(){var m=e.current;if(m){var v=throttle(function(){l(m.scrollLeft>0),p(m.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",s=[];return[].concat(_).forEach(function(u,I){var g="".concat(a?"".concat(a,"-"):"").concat(I);switch(u==null?void 0:u.type){case"ul":{var P,N=((P=s[s.length-1])===null||P===void 0?void 0:P.children)||s,R=r(u.props.children||[],g);N.push.apply(N,T()(R));break}case"li":{var U=r(u.props.children,g);s.push({title:[].concat(u.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),s}var o=function(a){var s=(0,n.useState)(r(a)),u=O()(s,2),I=u[0],g=u[1];return(0,n.useEffect)(function(){g(r(a))},[a]),I},h=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(b.r,{fill:"currentColor"})}):u?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},l=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):u?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(i.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(E.r,{fill:"currentColor"})})})},c=function(){return{height:0,opacity:0}},f=function(a){var s=a.scrollHeight;return{height:s,opacity:1}},d=function(a){return{height:a?a.offsetHeight:0}},p=function(a,s){return(s==null?void 0:s.deadline)===!0||s.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:c,onEnterStart:c,onAppearActive:f,onEnterActive:f,onLeaveStart:d,onLeaveActive:c,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(_){var a=o(_.children),s=(0,n.createRef)(),u=function(g,P){var N=P.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||s.current.onNodeExpand(g,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:h,ref:s,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:A()(A()({},m),{},{motionAppear:!1}),onClick:u,treeData:[{key:"0",title:_.title||"",children:a}],defaultExpandAll:!0,switcherIcon:l})}}}]); diff --git a/docs/docs__api__atom-ctx__use-state-x.md.89894365.async.js b/docs/docs__api__atom-ctx__use-state-x.md.89894365.async.js deleted file mode 100644 index 7f304365..00000000 --- a/docs/docs__api__atom-ctx__use-state-x.md.89894365.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[6262],{77706:function(L,x,t){t.r(x);var E=t(4311),j=t(53267),D=t(82197),A=t(12620),S=t(74692),O=t(33296),b=t(12133),T=t(54996),C=t(70079),d=t(35250);function y(){var M=(0,T.eL)(),a=M.texts;return(0,d.jsx)(T.dY,{children:(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{className:"markdown",children:(0,d.jsxs)("h1",{id:"usestatex",children:[(0,d.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#usestatex",children:(0,d.jsx)("span",{className:"icon icon-link"})}),"useStateX"]})})})})}x.default=y},4311:function(L,x,t){var E=t(39114),j=t.n(E),D=t(70125),A=t.n(D),S=t(54996),O=t(70079),b=t(33296),T=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var n=this,o=[];return Object.entries(e.properties||{}).forEach(function(m){var c,i=A()(m,2),f=i[0],u=i[1];o.push("".concat(f).concat((c=e.required)!==null&&c!==void 0&&c.includes(f)?"":"?",": ").concat(u.type==="object"?"object":n.toString(u)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var n=this.getValidClassName(e.items);return n?"".concat(n,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var n=this,o=e.signature;if(!o)return"Function";var m="oneOf"in o?o.oneOf:[o];return m.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(i){return"".concat(i.key,": ").concat(n.toString(i))}).join(", "),") => ").concat(n.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(n){return JSON.stringify(n)}).join(" | ")},oneOf:function(e){var n=this;return e.oneOf.map(function(o){return n.getValidClassName(o)||n.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},d=function(e){var n=useState(function(){return C.toString(e)}),o=_slicedToArray(n,2),m=o[0],c=o[1];return useEffect(function(){c(C.toString(e))},[e]),_jsx("code",{children:m})},y=function(e){var n,o=useRouteMeta(),m=o.frontmatter,c=useAtomAssets(),i=c.components,f=e.id||m.atomId,u=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=i==null?void 0:i[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:u.formatMessage({id:"api.component.name"})}),_jsx("th",{children:u.formatMessage({id:"api.component.description"})}),_jsx("th",{children:u.formatMessage({id:"api.component.type"})}),_jsx("th",{children:u.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(n=p.propsConfig)!==null&&n!==void 0&&n.properties?Object.entries(p.propsConfig.properties).map(function(h){var v,_=_slicedToArray(h,2),s=_[0],r=_[1];return _jsxs("tr",{children:[_jsx("td",{children:s}),_jsx("td",{children:r.description||"--"}),_jsx("td",{children:_jsx(d,_objectSpread({},r))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(s)?u.formatMessage({id:"api.component.required"}):JSON.stringify(r.default)||"--"})})]},s)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:u.formatMessage({id:"api.component.".concat(i?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(L,x,t){var E=t(39114),j=t(35250),D=function(O){return _jsx("span",_objectSpread({className:"dumi-default-badge"},O))},A=null},33296:function(L,x,t){var E=t(39114),j=t(70125),D=t(11221),A=t(14315),S=t(70079),O=t(35250),b=null,T=function(y){var M=y.children,a=_objectWithoutProperties(y,b),e=useRef(null),n=useState(!1),o=_slicedToArray(n,2),m=o[0],c=o[1],i=useState(!1),f=_slicedToArray(i,2),u=f[0],p=f[1];return useEffect(function(){var h=e.current;if(h){var v=throttle(function(){c(h.scrollLeft>0),p(h.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",r=[];return[].concat(_).forEach(function(l,I){var g="".concat(s?"".concat(s,"-"):"").concat(I);switch(l==null?void 0:l.type){case"ul":{var P,N=((P=r[r.length-1])===null||P===void 0?void 0:P.children)||r,R=n(l.props.children||[],g);N.push.apply(N,O()(R));break}case"li":{var U=n(l.props.children,g);r.push({title:[].concat(l.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),r}var o=function(s){var r=(0,a.useState)(n(s)),l=A()(r,2),I=l[0],g=l[1];return(0,a.useEffect)(function(){g(n(s))},[s]),I},m=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(b.r,{fill:"currentColor"})}):l?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(T.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},c=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):l?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(d.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})})})},i=function(){return{height:0,opacity:0}},f=function(s){var r=s.scrollHeight;return{height:r,opacity:1}},u=function(s){return{height:s?s.offsetHeight:0}},p=function(s,r){return(r==null?void 0:r.deadline)===!0||r.propertyName==="height"},h={motionName:"ant-motion-collapse",onAppearStart:i,onEnterStart:i,onAppearActive:f,onEnterActive:f,onLeaveStart:u,onLeaveActive:i,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(_){var s=o(_.children),r=(0,a.createRef)(),l=function(g,P){var N=P.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||r.current.onNodeExpand(g,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:m,ref:r,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:j()(j()({},h),{},{motionAppear:!1}),onClick:l,treeData:[{key:"0",title:_.title||"",children:s}],defaultExpandAll:!0,switcherIcon:c})}}}]); diff --git a/docs/docs__api__utils__action.md.d147e2dc.chunk.css b/docs/docs__api__base__action.md.d147e2dc.chunk.css similarity index 100% rename from docs/docs__api__utils__action.md.d147e2dc.chunk.css rename to docs/docs__api__base__action.md.d147e2dc.chunk.css diff --git a/docs/docs__api__base__action.md.f1e28807.async.js b/docs/docs__api__base__action.md.f1e28807.async.js new file mode 100644 index 00000000..5870baaf --- /dev/null +++ b/docs/docs__api__base__action.md.f1e28807.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[4371],{16342:function(S,j,n){n.r(j);var D=n(4311),C=n(53267),E=n(82197),O=n(12620),g=n(74692),T=n(33296),L=n(12133),y=n(54996),M=n(70079),t=n(35250);function A(){var P=(0,y.eL)(),r=P.texts;return(0,t.jsx)(y.dY,{children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"markdown",children:[(0,t.jsxs)("h1",{id:"action",children:[(0,t.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#action",children:(0,t.jsx)("span",{className:"icon icon-link"})}),"action"]}),(0,t.jsxs)("p",{children:[r[0].value,(0,t.jsx)("code",{children:r[1].value}),r[2].value,(0,t.jsx)("code",{children:r[3].value}),r[4].value]}),(0,t.jsx)("hr",{})]}),(0,t.jsx)(E.Z,{type:"info",children:(0,t.jsxs)("p",{children:[r[5].value,(0,t.jsx)(y.rU,{to:"/guide/action",children:r[6].value})]})}),(0,t.jsxs)("div",{className:"markdown",children:[(0,t.jsxs)("h2",{id:"\u57FA\u7840\u7528\u6CD5",children:[(0,t.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#\u57FA\u7840\u7528\u6CD5",children:(0,t.jsx)("span",{className:"icon icon-link"})}),"\u57FA\u7840\u7528\u6CD5"]}),(0,t.jsxs)("h3",{id:"\u521B\u5EFA\u540C\u6B65action",children:[(0,t.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#\u521B\u5EFA\u540C\u6B65action",children:(0,t.jsx)("span",{className:"icon icon-link"})}),"\u521B\u5EFA\u540C\u6B65action"]}),(0,t.jsx)(g.Z,{lang:"ts",children:r[7].value}),(0,t.jsxs)("p",{children:[r[8].value,(0,t.jsx)("code",{children:r[9].value}),r[10].value]}),(0,t.jsx)(g.Z,{lang:"ts",children:r[11].value}),(0,t.jsxs)("h3",{id:"\u521B\u5EFA\u5F02\u6B65action",children:[(0,t.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#\u521B\u5EFA\u5F02\u6B65action",children:(0,t.jsx)("span",{className:"icon icon-link"})}),"\u521B\u5EFA\u5F02\u6B65action"]}),(0,t.jsx)("p",{children:r[12].value}),(0,t.jsx)(g.Z,{lang:"ts",children:r[13].value})]})]})})}j.default=A},4311:function(S,j,n){var D=n(39114),C=n.n(D),E=n(70125),O=n.n(E),g=n(54996),T=n(70079),L=n(33296),y=n(35250),M={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var s=this,o=[];return Object.entries(e.properties||{}).forEach(function(f){var l,c=O()(f,2),h=c[0],_=c[1];o.push("".concat(h).concat((l=e.required)!==null&&l!==void 0&&l.includes(h)?"":"?",": ").concat(_.type==="object"?"object":s.toString(_)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var s=this.getValidClassName(e.items);return s?"".concat(s,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var s=this,o=e.signature;if(!o)return"Function";var f="oneOf"in o?o.oneOf:[o];return f.map(function(l){return"".concat(l.isAsync?"async ":"","(").concat(l.arguments.map(function(c){return"".concat(c.key,": ").concat(s.toString(c))}).join(", "),") => ").concat(s.toString(l.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(s){return JSON.stringify(s)}).join(" | ")},oneOf:function(e){var s=this;return e.oneOf.map(function(o){return s.getValidClassName(o)||s.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},t=function(e){var s=useState(function(){return M.toString(e)}),o=_slicedToArray(s,2),f=o[0],l=o[1];return useEffect(function(){l(M.toString(e))},[e]),_jsx("code",{children:f})},A=function(e){var s,o=useRouteMeta(),f=o.frontmatter,l=useAtomAssets(),c=l.components,h=e.id||f.atomId,_=useIntl();if(!h)throw new Error("`id` properties if required for API component!");var p=c==null?void 0:c[h];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:_.formatMessage({id:"api.component.name"})}),_jsx("th",{children:_.formatMessage({id:"api.component.description"})}),_jsx("th",{children:_.formatMessage({id:"api.component.type"})}),_jsx("th",{children:_.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(s=p.propsConfig)!==null&&s!==void 0&&s.properties?Object.entries(p.propsConfig.properties).map(function(m){var v,d=_slicedToArray(m,2),i=d[0],a=d[1];return _jsxs("tr",{children:[_jsx("td",{children:i}),_jsx("td",{children:a.description||"--"}),_jsx("td",{children:_jsx(t,_objectSpread({},a))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(i)?_.formatMessage({id:"api.component.required"}):JSON.stringify(a.default)||"--"})})]},i)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:_.formatMessage({id:"api.component.".concat(c?"not.found":"unavailable")},{id:h})})})})]})})},P=null},53267:function(S,j,n){var D=n(39114),C=n(35250),E=function(T){return _jsx("span",_objectSpread({className:"dumi-default-badge"},T))},O=null},33296:function(S,j,n){var D=n(39114),C=n(70125),E=n(11221),O=n(14315),g=n(70079),T=n(35250),L=null,y=function(A){var P=A.children,r=_objectWithoutProperties(A,L),e=useRef(null),s=useState(!1),o=_slicedToArray(s,2),f=o[0],l=o[1],c=useState(!1),h=_slicedToArray(c,2),_=h[0],p=h[1];return useEffect(function(){var m=e.current;if(m){var v=throttle(function(){l(m.scrollLeft>0),p(m.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",a=[];return[].concat(d).forEach(function(u,I){var x="".concat(i?"".concat(i,"-"):"").concat(I);switch(u==null?void 0:u.type){case"ul":{var b,N=((b=a[a.length-1])===null||b===void 0?void 0:b.children)||a,U=s(u.props.children||[],x);N.push.apply(N,T()(U));break}case"li":{var B=s(u.props.children,x);a.push({title:[].concat(u.props.children).filter(function(R){return R.type!=="ul"}),key:x,children:B,isLeaf:!B.length});break}default:}}),a}var o=function(i){var a=(0,r.useState)(s(i)),u=O()(a,2),I=u[0],x=u[1];return(0,r.useEffect)(function(){x(s(i))},[i]),I},f=function(i){var a=i.isLeaf,u=i.expanded;return a?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(L.r,{fill:"currentColor"})}):u?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(M.r,{fill:"currentColor"})})},l=function(i){var a=i.isLeaf,u=i.expanded;return a?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):u?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(t.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(A.r,{fill:"currentColor"})})})},c=function(){return{height:0,opacity:0}},h=function(i){var a=i.scrollHeight;return{height:a,opacity:1}},_=function(i){return{height:i?i.offsetHeight:0}},p=function(i,a){return(a==null?void 0:a.deadline)===!0||a.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:c,onEnterStart:c,onAppearActive:h,onEnterActive:h,onLeaveStart:_,onLeaveActive:c,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(d){var i=o(d.children),a=(0,r.createRef)(),u=function(x,b){var N=b.isLeaf;N||x.shiftKey||x.metaKey||x.ctrlKey||a.current.onNodeExpand(x,b)};return(0,e.jsx)(P.Z,{className:"dumi-default-tree",icon:f,ref:a,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:C()(C()({},m),{},{motionAppear:!1}),onClick:u,treeData:[{key:"0",title:d.title||"",children:i}],defaultExpandAll:!0,switcherIcon:l})}}}]); diff --git a/docs/docs__api__hooks__index.md.1ad5dbe7.async.js b/docs/docs__api__hooks__index.md.1ad5dbe7.async.js new file mode 100644 index 00000000..dd047674 --- /dev/null +++ b/docs/docs__api__hooks__index.md.1ad5dbe7.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[4699],{52421:function(L,g,s){s.r(g);var E=s(4311),D=s(53267),A=s(82197),O=s(12620),U=s(74692),T=s(33296),b=s(12133),l=s(54996),C=s(70079),t=s(35250);function y(){var M=(0,l.eL)(),n=M.texts;return(0,t.jsx)(l.dY,{children:(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"markdown",children:[(0,t.jsxs)("h1",{id:"hooks",children:[(0,t.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#hooks",children:(0,t.jsx)("span",{className:"icon icon-link"})}),"Hooks"]}),(0,t.jsx)("p",{children:n[0].value}),(0,t.jsxs)("ul",{children:[(0,t.jsxs)("li",{children:[(0,t.jsx)(l.rU,{to:"/api/hooks/use-atom",children:n[1].value}),n[2].value,(0,t.jsx)("code",{children:n[3].value}),n[4].value]}),(0,t.jsxs)("li",{children:[(0,t.jsx)(l.rU,{to:"/api/hooks/use-atom-x",children:n[5].value}),n[6].value,(0,t.jsx)("code",{children:n[7].value}),n[8].value]}),(0,t.jsxs)("li",{children:[(0,t.jsx)(l.rU,{to:"/api/hooks/use-reactive",children:n[9].value}),n[10].value,(0,t.jsx)("code",{children:n[11].value}),n[12].value]}),(0,t.jsxs)("li",{children:[(0,t.jsx)(l.rU,{to:"/api/hooks/use-reactive-x",children:n[13].value}),n[14].value,(0,t.jsx)("code",{children:n[15].value}),n[16].value]}),(0,t.jsxs)("li",{children:[(0,t.jsx)(l.rU,{to:"/api/hooks/use-derived",children:n[17].value}),n[18].value]}),(0,t.jsxs)("li",{children:[(0,t.jsx)(l.rU,{to:"/api/hooks/use-on-event",children:n[19].value}),n[20].value]}),(0,t.jsxs)("li",{children:[(0,t.jsx)(l.rU,{to:"/api/hooks/use-watch",children:n[21].value}),n[22].value]}),(0,t.jsxs)("li",{children:[(0,t.jsx)(l.rU,{to:"/api/hooks/use-global-id",children:n[23].value}),n[24].value,(0,t.jsx)("code",{children:n[25].value})]}),(0,t.jsxs)("li",{children:[(0,t.jsx)(l.rU,{to:"/api/hooks/use-mutate",children:n[26].value}),n[27].value]}),(0,t.jsxs)("li",{children:[(0,t.jsx)(l.rU,{to:"/api/hooks/use-service",children:n[28].value}),n[29].value]}),(0,t.jsxs)("li",{children:[(0,t.jsx)(l.rU,{to:"/api/hooks/use-action-loading",children:n[30].value}),n[31].value,(0,t.jsx)("code",{children:n[32].value}),n[33].value]}),(0,t.jsxs)("li",{children:[(0,t.jsx)(l.rU,{to:"/api/hooks/use-mutate-loading",children:n[34].value}),n[35].value,(0,t.jsx)("code",{children:n[36].value}),n[37].value]}),(0,t.jsxs)("li",{children:[(0,t.jsx)(l.rU,{to:"/api/hooks/use-local-force-update",children:n[38].value}),n[39].value]}),(0,t.jsxs)("li",{children:[(0,t.jsx)(l.rU,{to:"/api/hooks/use-global-force-update",children:n[40].value}),n[41].value]})]})]})})})}g.default=y},4311:function(L,g,s){var E=s(39114),D=s.n(E),A=s(70125),O=s.n(A),U=s(54996),T=s(70079),b=s(33296),l=s(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var r=this,i=[];return Object.entries(e.properties||{}).forEach(function(v){var u,c=O()(v,2),f=c[0],h=c[1];i.push("".concat(f).concat((u=e.required)!==null&&u!==void 0&&u.includes(f)?"":"?",": ").concat(h.type==="object"?"object":r.toString(h)))}),i.length?"{ ".concat(i.join("; ")," }"):"{}"},array:function(e){if(e.items){var r=this.getValidClassName(e.items);return r?"".concat(r,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var r=this,i=e.signature;if(!i)return"Function";var v="oneOf"in i?i.oneOf:[i];return v.map(function(u){return"".concat(u.isAsync?"async ":"","(").concat(u.arguments.map(function(c){return"".concat(c.key,": ").concat(r.toString(c))}).join(", "),") => ").concat(r.toString(u.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(r){return JSON.stringify(r)}).join(" | ")},oneOf:function(e){var r=this;return e.oneOf.map(function(i){return r.getValidClassName(i)||r.toString(i)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},t=function(e){var r=useState(function(){return C.toString(e)}),i=_slicedToArray(r,2),v=i[0],u=i[1];return useEffect(function(){u(C.toString(e))},[e]),_jsx("code",{children:v})},y=function(e){var r,i=useRouteMeta(),v=i.frontmatter,u=useAtomAssets(),c=u.components,f=e.id||v.atomId,h=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=c==null?void 0:c[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:h.formatMessage({id:"api.component.name"})}),_jsx("th",{children:h.formatMessage({id:"api.component.description"})}),_jsx("th",{children:h.formatMessage({id:"api.component.type"})}),_jsx("th",{children:h.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(r=p.propsConfig)!==null&&r!==void 0&&r.properties?Object.entries(p.propsConfig.properties).map(function(m){var x,_=_slicedToArray(m,2),o=_[0],a=_[1];return _jsxs("tr",{children:[_jsx("td",{children:o}),_jsx("td",{children:a.description||"--"}),_jsx("td",{children:_jsx(t,_objectSpread({},a))}),_jsx("td",{children:_jsx("code",{children:(x=p.propsConfig.required)!==null&&x!==void 0&&x.includes(o)?h.formatMessage({id:"api.component.required"}):JSON.stringify(a.default)||"--"})})]},o)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:h.formatMessage({id:"api.component.".concat(c?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(L,g,s){var E=s(39114),D=s(35250),A=function(T){return _jsx("span",_objectSpread({className:"dumi-default-badge"},T))},O=null},33296:function(L,g,s){var E=s(39114),D=s(70125),A=s(11221),O=s(14315),U=s(70079),T=s(35250),b=null,l=function(y){var M=y.children,n=_objectWithoutProperties(y,b),e=useRef(null),r=useState(!1),i=_slicedToArray(r,2),v=i[0],u=i[1],c=useState(!1),f=_slicedToArray(c,2),h=f[0],p=f[1];return useEffect(function(){var m=e.current;if(m){var x=throttle(function(){u(m.scrollLeft>0),p(m.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",a=[];return[].concat(_).forEach(function(d,S){var j="".concat(o?"".concat(o,"-"):"").concat(S);switch(d==null?void 0:d.type){case"ul":{var P,I=((P=a[a.length-1])===null||P===void 0?void 0:P.children)||a,R=r(d.props.children||[],j);I.push.apply(I,T()(R));break}case"li":{var N=r(d.props.children,j);a.push({title:[].concat(d.props.children).filter(function(B){return B.type!=="ul"}),key:j,children:N,isLeaf:!N.length});break}default:}}),a}var i=function(o){var a=(0,n.useState)(r(o)),d=O()(a,2),S=d[0],j=d[1];return(0,n.useEffect)(function(){j(r(o))},[o]),S},v=function(o){var a=o.isLeaf,d=o.expanded;return a?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(b.r,{fill:"currentColor"})}):d?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(l.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},u=function(o){var a=o.isLeaf,d=o.expanded;return a?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):d?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(t.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})})})},c=function(){return{height:0,opacity:0}},f=function(o){var a=o.scrollHeight;return{height:a,opacity:1}},h=function(o){return{height:o?o.offsetHeight:0}},p=function(o,a){return(a==null?void 0:a.deadline)===!0||a.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:c,onEnterStart:c,onAppearActive:f,onEnterActive:f,onLeaveStart:h,onLeaveActive:c,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},x=function(_){var o=i(_.children),a=(0,n.createRef)(),d=function(j,P){var I=P.isLeaf;I||j.shiftKey||j.metaKey||j.ctrlKey||a.current.onNodeExpand(j,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:v,ref:a,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:D()(D()({},m),{},{motionAppear:!1}),onClick:d,treeData:[{key:"0",title:_.title||"",children:o}],defaultExpandAll:!0,switcherIcon:u})}}}]); diff --git a/docs/docs__api__hooks__index.md.b3f0a918.async.js b/docs/docs__api__hooks__index.md.b3f0a918.async.js deleted file mode 100644 index b2bd606a..00000000 --- a/docs/docs__api__hooks__index.md.b3f0a918.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[4699],{52421:function(S,x,t){t.r(x);var E=t(4311),j=t(53267),D=t(82197),A=t(12620),b=t(74692),O=t(33296),L=t(12133),T=t(54996),C=t(70079),d=t(35250);function y(){var M=(0,T.eL)(),a=M.texts;return(0,d.jsx)(T.dY,{children:(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{className:"markdown",children:(0,d.jsxs)("h1",{id:"hooks",children:[(0,d.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#hooks",children:(0,d.jsx)("span",{className:"icon icon-link"})}),"Hooks"]})})})})}x.default=y},4311:function(S,x,t){var E=t(39114),j=t.n(E),D=t(70125),A=t.n(D),b=t(54996),O=t(70079),L=t(33296),T=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var n=this,o=[];return Object.entries(e.properties||{}).forEach(function(h){var c,i=A()(h,2),f=i[0],u=i[1];o.push("".concat(f).concat((c=e.required)!==null&&c!==void 0&&c.includes(f)?"":"?",": ").concat(u.type==="object"?"object":n.toString(u)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var n=this.getValidClassName(e.items);return n?"".concat(n,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var n=this,o=e.signature;if(!o)return"Function";var h="oneOf"in o?o.oneOf:[o];return h.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(i){return"".concat(i.key,": ").concat(n.toString(i))}).join(", "),") => ").concat(n.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(n){return JSON.stringify(n)}).join(" | ")},oneOf:function(e){var n=this;return e.oneOf.map(function(o){return n.getValidClassName(o)||n.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},d=function(e){var n=useState(function(){return C.toString(e)}),o=_slicedToArray(n,2),h=o[0],c=o[1];return useEffect(function(){c(C.toString(e))},[e]),_jsx("code",{children:h})},y=function(e){var n,o=useRouteMeta(),h=o.frontmatter,c=useAtomAssets(),i=c.components,f=e.id||h.atomId,u=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=i==null?void 0:i[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:u.formatMessage({id:"api.component.name"})}),_jsx("th",{children:u.formatMessage({id:"api.component.description"})}),_jsx("th",{children:u.formatMessage({id:"api.component.type"})}),_jsx("th",{children:u.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(n=p.propsConfig)!==null&&n!==void 0&&n.properties?Object.entries(p.propsConfig.properties).map(function(m){var v,_=_slicedToArray(m,2),s=_[0],r=_[1];return _jsxs("tr",{children:[_jsx("td",{children:s}),_jsx("td",{children:r.description||"--"}),_jsx("td",{children:_jsx(d,_objectSpread({},r))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(s)?u.formatMessage({id:"api.component.required"}):JSON.stringify(r.default)||"--"})})]},s)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:u.formatMessage({id:"api.component.".concat(i?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(S,x,t){var E=t(39114),j=t(35250),D=function(O){return _jsx("span",_objectSpread({className:"dumi-default-badge"},O))},A=null},33296:function(S,x,t){var E=t(39114),j=t(70125),D=t(11221),A=t(14315),b=t(70079),O=t(35250),L=null,T=function(y){var M=y.children,a=_objectWithoutProperties(y,L),e=useRef(null),n=useState(!1),o=_slicedToArray(n,2),h=o[0],c=o[1],i=useState(!1),f=_slicedToArray(i,2),u=f[0],p=f[1];return useEffect(function(){var m=e.current;if(m){var v=throttle(function(){c(m.scrollLeft>0),p(m.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",r=[];return[].concat(_).forEach(function(l,I){var g="".concat(s?"".concat(s,"-"):"").concat(I);switch(l==null?void 0:l.type){case"ul":{var P,N=((P=r[r.length-1])===null||P===void 0?void 0:P.children)||r,R=n(l.props.children||[],g);N.push.apply(N,O()(R));break}case"li":{var U=n(l.props.children,g);r.push({title:[].concat(l.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),r}var o=function(s){var r=(0,a.useState)(n(s)),l=A()(r,2),I=l[0],g=l[1];return(0,a.useEffect)(function(){g(n(s))},[s]),I},h=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(L.r,{fill:"currentColor"})}):l?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(T.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},c=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):l?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(d.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})})})},i=function(){return{height:0,opacity:0}},f=function(s){var r=s.scrollHeight;return{height:r,opacity:1}},u=function(s){return{height:s?s.offsetHeight:0}},p=function(s,r){return(r==null?void 0:r.deadline)===!0||r.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:i,onEnterStart:i,onAppearActive:f,onEnterActive:f,onLeaveStart:u,onLeaveActive:i,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(_){var s=o(_.children),r=(0,a.createRef)(),l=function(g,P){var N=P.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||r.current.onNodeExpand(g,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:h,ref:r,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:j()(j()({},m),{},{motionAppear:!1}),onClick:l,treeData:[{key:"0",title:_.title||"",children:s}],defaultExpandAll:!0,switcherIcon:c})}}}]); diff --git a/docs/docs__api__hooks__use-reactive-x.md.0cd46de0.async.js b/docs/docs__api__hooks__use-reactive-x.md.0cd46de0.async.js new file mode 100644 index 00000000..715b5a3c --- /dev/null +++ b/docs/docs__api__hooks__use-reactive-x.md.0cd46de0.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[6913],{33165:function(S,x,t){t.r(x);var D=t(4311),A=t(53267),j=t(82197),O=t(12620),b=t(74692),T=t(33296),L=t(12133),y=t(54996),C=t(70079),o=t(35250);function E(){var M=(0,y.eL)(),n=M.texts;return(0,o.jsx)(y.dY,{children:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"markdown",children:[(0,o.jsxs)("h1",{id:"usereactivex",children:[(0,o.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#usereactivex",children:(0,o.jsx)("span",{className:"icon icon-link"})}),"useReactiveX"]}),(0,o.jsxs)("p",{children:[(0,o.jsx)("code",{children:n[0].value}),n[1].value,(0,o.jsx)("code",{children:n[2].value}),n[3].value,(0,o.jsx)("code",{children:n[4].value}),n[5].value,(0,o.jsx)("code",{children:n[6].value}),n[7].value]}),(0,o.jsx)("hr",{})]}),(0,o.jsx)(j.Z,{type:"info",children:(0,o.jsxs)("p",{children:[n[8].value,(0,o.jsx)(y.rU,{to:"/api/hooks/use-reactive",children:n[9].value})]})})]})})}x.default=E},4311:function(S,x,t){var D=t(39114),A=t.n(D),j=t(70125),O=t.n(j),b=t(54996),T=t(70079),L=t(33296),y=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var r=this,i=[];return Object.entries(e.properties||{}).forEach(function(h){var l,c=O()(h,2),f=c[0],_=c[1];i.push("".concat(f).concat((l=e.required)!==null&&l!==void 0&&l.includes(f)?"":"?",": ").concat(_.type==="object"?"object":r.toString(_)))}),i.length?"{ ".concat(i.join("; ")," }"):"{}"},array:function(e){if(e.items){var r=this.getValidClassName(e.items);return r?"".concat(r,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var r=this,i=e.signature;if(!i)return"Function";var h="oneOf"in i?i.oneOf:[i];return h.map(function(l){return"".concat(l.isAsync?"async ":"","(").concat(l.arguments.map(function(c){return"".concat(c.key,": ").concat(r.toString(c))}).join(", "),") => ").concat(r.toString(l.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(r){return JSON.stringify(r)}).join(" | ")},oneOf:function(e){var r=this;return e.oneOf.map(function(i){return r.getValidClassName(i)||r.toString(i)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},o=function(e){var r=useState(function(){return C.toString(e)}),i=_slicedToArray(r,2),h=i[0],l=i[1];return useEffect(function(){l(C.toString(e))},[e]),_jsx("code",{children:h})},E=function(e){var r,i=useRouteMeta(),h=i.frontmatter,l=useAtomAssets(),c=l.components,f=e.id||h.atomId,_=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=c==null?void 0:c[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:_.formatMessage({id:"api.component.name"})}),_jsx("th",{children:_.formatMessage({id:"api.component.description"})}),_jsx("th",{children:_.formatMessage({id:"api.component.type"})}),_jsx("th",{children:_.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(r=p.propsConfig)!==null&&r!==void 0&&r.properties?Object.entries(p.propsConfig.properties).map(function(m){var v,d=_slicedToArray(m,2),a=d[0],s=d[1];return _jsxs("tr",{children:[_jsx("td",{children:a}),_jsx("td",{children:s.description||"--"}),_jsx("td",{children:_jsx(o,_objectSpread({},s))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(a)?_.formatMessage({id:"api.component.required"}):JSON.stringify(s.default)||"--"})})]},a)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:_.formatMessage({id:"api.component.".concat(c?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(S,x,t){var D=t(39114),A=t(35250),j=function(T){return _jsx("span",_objectSpread({className:"dumi-default-badge"},T))},O=null},33296:function(S,x,t){var D=t(39114),A=t(70125),j=t(11221),O=t(14315),b=t(70079),T=t(35250),L=null,y=function(E){var M=E.children,n=_objectWithoutProperties(E,L),e=useRef(null),r=useState(!1),i=_slicedToArray(r,2),h=i[0],l=i[1],c=useState(!1),f=_slicedToArray(c,2),_=f[0],p=f[1];return useEffect(function(){var m=e.current;if(m){var v=throttle(function(){l(m.scrollLeft>0),p(m.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",s=[];return[].concat(d).forEach(function(u,I){var g="".concat(a?"".concat(a,"-"):"").concat(I);switch(u==null?void 0:u.type){case"ul":{var P,N=((P=s[s.length-1])===null||P===void 0?void 0:P.children)||s,R=r(u.props.children||[],g);N.push.apply(N,T()(R));break}case"li":{var U=r(u.props.children,g);s.push({title:[].concat(u.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),s}var i=function(a){var s=(0,n.useState)(r(a)),u=O()(s,2),I=u[0],g=u[1];return(0,n.useEffect)(function(){g(r(a))},[a]),I},h=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(L.r,{fill:"currentColor"})}):u?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},l=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):u?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(o.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(E.r,{fill:"currentColor"})})})},c=function(){return{height:0,opacity:0}},f=function(a){var s=a.scrollHeight;return{height:s,opacity:1}},_=function(a){return{height:a?a.offsetHeight:0}},p=function(a,s){return(s==null?void 0:s.deadline)===!0||s.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:c,onEnterStart:c,onAppearActive:f,onEnterActive:f,onLeaveStart:_,onLeaveActive:c,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(d){var a=i(d.children),s=(0,n.createRef)(),u=function(g,P){var N=P.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||s.current.onNodeExpand(g,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:h,ref:s,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:A()(A()({},m),{},{motionAppear:!1}),onClick:u,treeData:[{key:"0",title:d.title||"",children:a}],defaultExpandAll:!0,switcherIcon:l})}}}]); diff --git a/docs/docs__api__hooks__use-reactive-x.md.d147e2dc.chunk.css b/docs/docs__api__hooks__use-reactive-x.md.d147e2dc.chunk.css new file mode 100644 index 00000000..c979c13f --- /dev/null +++ b/docs/docs__api__hooks__use-reactive-x.md.d147e2dc.chunk.css @@ -0,0 +1 @@ +.dumi-default-table{margin:24px 0 32px;transform:translate(0)}.dumi-default-table-content{overflow:auto}.dumi-default-table-content:before,.dumi-default-table-content:after{content:"";display:block;position:fixed;z-index:1;top:0;bottom:0;width:6px;pointer-events:none}.dumi-default-table-content[data-left-folded]:before{left:0;background-image:linear-gradient(to right,rgba(0,0,0,.1),rgba(0,0,0,0))}[data-prefers-color=dark] .dumi-default-table-content[data-left-folded]:before{background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}.dumi-default-table-content[data-right-folded]:after{right:0;background-image:linear-gradient(to left,rgba(0,0,0,.1),rgba(0,0,0,0))}[data-prefers-color=dark] .dumi-default-table-content[data-right-folded]:after{background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}.dumi-default-table-content>table>thead>tr>th,.dumi-default-table-content>table>tr>th{white-space:nowrap}.dumi-default-badge{display:inline-block;margin-inline-start:2px;padding:1px 8px;font-size:12px;font-weight:400;line-height:20px;border-radius:4px;vertical-align:top}.dumi-default-badge:not([type]),.dumi-default-badge[type=info]{color:#645ab7;background:#e9e8f5}[data-prefers-color=dark] .dumi-default-badge:not([type]),[data-prefers-color=dark] .dumi-default-badge[type=info]{color:#645ab7;background:#211d42}.dumi-default-badge[type=warning]{color:#d59200;background:#ffefcb}[data-prefers-color=dark] .dumi-default-badge[type=warning]{color:#d59200;background:#231800}.dumi-default-badge[type=success]{color:#208a41;background:#cbf3d7}[data-prefers-color=dark] .dumi-default-badge[type=success]{color:#208a41;background:#092712}.dumi-default-badge[type=error]{color:#ce1f31;background:#fbe2e5}[data-prefers-color=dark] .dumi-default-badge[type=error]{color:#ce1f31;background:#3c090e}.dumi-default-tree{padding:16px;margin:24px 0 32px;background:#fbfcfd;border:1px solid #e4e9ec;border-radius:2px;color:#30363f;overflow-y:auto}[data-prefers-color=dark] .dumi-default-tree{color:#c6c9cd;background:#020305;border-color:#1c2022}.dumi-default-tree small{padding-left:24px;color:#616d7f;font-size:14px;white-space:nowrap}[data-prefers-color=dark] .dumi-default-tree small{color:#616d7f}.dumi-default-tree small:before{content:"# "}.dumi-default-tree.rc-tree{transition:all .3s;line-height:1.5715;list-style:none;font-size:14px}.dumi-default-tree.rc-tree .rc-tree-treenode{position:relative;display:flex;align-items:flex-start}.dumi-default-tree.rc-tree .rc-tree-treenode:before{position:absolute;top:0;right:0;bottom:4px;left:0;transition:background .3s;content:""}.dumi-default-tree.rc-tree .rc-tree-treenode:hover:before{background:#eeeff0}[data-prefers-color=dark] .dumi-default-tree.rc-tree .rc-tree-treenode:hover:before{background:#1c1d1e}.dumi-default-tree.rc-tree .rc-tree-treenode>*{z-index:1}.dumi-default-tree.rc-tree .rc-tree-treenode span.rc-tree-switcher{display:flex;align-items:center;justify-content:center;width:24px;height:28px;margin-right:2px;line-height:28px;background:transparent;cursor:pointer;flex-shrink:0}.dumi-default-tree.rc-tree .rc-tree-treenode .rc-tree-node-content-wrapper{flex:auto;min-height:28px;margin:0;padding:0 4px;line-height:28px;cursor:pointer;white-space:nowrap}.dumi-default-tree.rc-tree .rc-tree-treenode .rc-tree-node-content-wrapper .rc-tree-iconEle{margin-right:6px;vertical-align:0}.dumi-default-tree.rc-tree.rc-tree-show-line .rc-tree-indent{display:inline-block;height:0;vertical-align:bottom;flex-shrink:0}.dumi-default-tree.rc-tree.rc-tree-show-line .rc-tree-indent-unit{position:relative;display:inline-block;width:24px;height:28px}.dumi-default-tree.rc-tree.rc-tree-show-line .rc-tree-indent-unit:before{position:absolute;top:0;right:12px;bottom:-4px;border-right:1px solid #d9d9d9;content:""}.dumi-default-tree.rc-tree.rc-tree-show-line .rc-tree-indent-unit-end:before{display:none}.dumi-default-tree.rc-tree.rc-tree-show-line .tree-switcher-leaf-line{position:relative;z-index:1;display:inline-block;width:100%;height:100%;text-align:center}.dumi-default-tree.rc-tree.rc-tree-show-line .tree-switcher-leaf-line:before{position:absolute;top:0;bottom:-4px;margin-left:-1px;border-left:1px solid #d9d9d9;content:" "}.dumi-default-tree.rc-tree.rc-tree-show-line .tree-switcher-leaf-line:after{position:absolute;top:0;bottom:14px;width:12px;margin-left:-1px;border-bottom:1px solid #d9d9d9;content:" "}.dumi-default-tree.rc-tree.rc-tree-show-line .rc-tree-treenode-leaf-last .tree-switcher-leaf-line:before{height:14px}.dumi-default-tree-icon{width:16px;color:#30363f;vertical-align:-.225em;display:inline-block}[data-prefers-color=dark] .dumi-default-tree-icon{color:#c6c9cd}.ant-motion-collapse{overflow:hidden;transition:height .2s ease-in-out,opacity .2s ease-in-out!important} diff --git a/docs/docs__api__index.md.7ed32887.async.js b/docs/docs__api__index.md.7ed32887.async.js new file mode 100644 index 00000000..92b020bf --- /dev/null +++ b/docs/docs__api__index.md.7ed32887.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[2546],{66835:function(L,g,s){s.r(g);var E=s(4311),U=s(53267),A=s(82197),D=s(12620),M=s(74692),O=s(33296),b=s(12133),i=s(54996),T=s(70079),n=s(35250);function y(){var C=(0,i.eL)(),e=C.texts;return(0,n.jsx)(i.dY,{children:(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"markdown",children:[(0,n.jsxs)("h1",{id:"api",children:[(0,n.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#api",children:(0,n.jsx)("span",{className:"icon icon-link"})}),"API"]}),(0,n.jsxs)("ul",{children:[(0,n.jsx)("li",{children:(0,n.jsx)("p",{children:(0,n.jsx)(i.rU,{to:"/api/base/atom",children:e[0].value})})}),(0,n.jsx)("li",{children:(0,n.jsx)("p",{children:(0,n.jsx)(i.rU,{to:"/api/atom-ctx/",children:e[1].value})})}),(0,n.jsx)("li",{children:(0,n.jsx)("p",{children:(0,n.jsx)(i.rU,{to:"/api/hooks/",children:e[2].value})})})]}),(0,n.jsx)("blockquote",{children:(0,n.jsxs)("ul",{children:[(0,n.jsxs)("li",{children:[(0,n.jsx)(i.rU,{to:"/api/hooks/use-atom",children:e[3].value}),e[4].value,(0,n.jsx)("code",{children:e[5].value}),e[6].value]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(i.rU,{to:"/api/hooks/use-atom-x",children:e[7].value}),e[8].value,(0,n.jsx)("code",{children:e[9].value}),e[10].value]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(i.rU,{to:"/api/hooks/use-reactive",children:e[11].value}),e[12].value,(0,n.jsx)("code",{children:e[13].value}),e[14].value]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(i.rU,{to:"/api/hooks/use-reactive-x",children:e[15].value}),e[16].value,(0,n.jsx)("code",{children:e[17].value}),e[18].value]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(i.rU,{to:"/api/hooks/use-derived",children:e[19].value}),e[20].value]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(i.rU,{to:"/api/hooks/use-on-event",children:e[21].value}),e[22].value]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(i.rU,{to:"/api/hooks/use-watch",children:e[23].value}),e[24].value]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(i.rU,{to:"/api/hooks/use-global-id",children:e[25].value}),e[26].value,(0,n.jsx)("code",{children:e[27].value})]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(i.rU,{to:"/api/hooks/use-mutate",children:e[28].value}),e[29].value]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(i.rU,{to:"/api/hooks/use-service",children:e[30].value}),e[31].value]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(i.rU,{to:"/api/hooks/use-action-loading",children:e[32].value}),e[33].value,(0,n.jsx)("code",{children:e[34].value}),e[35].value]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(i.rU,{to:"/api/hooks/use-mutate-loading",children:e[36].value}),e[37].value,(0,n.jsx)("code",{children:e[38].value}),e[39].value]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(i.rU,{to:"/api/hooks/use-local-force-update",children:e[40].value}),e[41].value]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(i.rU,{to:"/api/hooks/use-global-force-update",children:e[42].value}),e[43].value]})]})}),(0,n.jsx)("ul",{children:(0,n.jsx)("li",{children:(0,n.jsx)(i.rU,{to:"/api/utils/",children:e[44].value})})}),(0,n.jsx)("blockquote",{children:(0,n.jsxs)("ul",{children:[(0,n.jsxs)("li",{children:[(0,n.jsx)(i.rU,{to:"/api/utils/init",children:e[45].value}),e[46].value]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(i.rU,{to:"/api/utils/flush",children:e[47].value}),e[48].value,(0,n.jsx)("code",{children:e[49].value}),e[50].value]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(i.rU,{to:"/api/utils/reactive-desc",children:e[51].value}),e[52].value,(0,n.jsx)("code",{children:e[53].value}),e[54].value]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(i.rU,{to:"/api/utils/add-middleware",children:e[55].value}),e[56].value]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(i.rU,{to:"/api/utils/add-plugin",children:e[57].value}),e[58].value]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(i.rU,{to:"/api/utils/cst",children:e[59].value}),e[60].value]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(i.rU,{to:"/api/utils/get-atom",children:e[61].value}),e[62].value,(0,n.jsx)("code",{children:e[63].value}),e[64].value]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(i.rU,{to:"/api/utils/get-snap",children:e[65].value}),e[66].value,(0,n.jsx)("code",{children:e[67].value}),e[68].value]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(i.rU,{to:"/api/utils/get-action-loading",children:e[69].value}),e[70].value,(0,n.jsx)("code",{children:e[71].value}),e[72].value]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(i.rU,{to:"/api/utils/get-derive-loading",children:e[73].value}),e[74].value,(0,n.jsx)("code",{children:e[75].value}),e[76].value]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(i.rU,{to:"/api/utils/get-mutate-loading",children:e[77].value}),e[78].value,(0,n.jsx)("code",{children:e[79].value}),e[80].value]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(i.rU,{to:"/api/utils/is-atom",children:e[81].value}),e[82].value,(0,n.jsx)("code",{children:e[83].value}),e[84].value]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(i.rU,{to:"/api/utils/is-derived-atom",children:e[85].value}),e[86].value,(0,n.jsx)("code",{children:e[87].value}),e[88].value]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(i.rU,{to:"/api/utils/is-diff",children:e[89].value}),e[90].value]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(i.rU,{to:"/api/utils/shallow-compare",children:e[91].value}),e[92].value]})]})})]})})})}g.default=y},4311:function(L,g,s){var E=s(39114),U=s.n(E),A=s(70125),D=s.n(A),M=s(54996),O=s(70079),b=s(33296),i=s(35250),T={toString:function(t){return typeof t.type=="string"&&t.type in this?"enum"in t?this.enum(t):this[t.type](t):t.type?this.getValidClassName(t)||t.type:"const"in t?"".concat(t.const):"oneOf"in t?this.oneOf(t):"unknown"},string:function(t){return t.type},number:function(t){return t.type},boolean:function(t){return t.type},any:function(t){return t.type},object:function(t){var r=this,o=[];return Object.entries(t.properties||{}).forEach(function(x){var u,c=D()(x,2),v=c[0],h=c[1];o.push("".concat(v).concat((u=t.required)!==null&&u!==void 0&&u.includes(v)?"":"?",": ").concat(h.type==="object"?"object":r.toString(h)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(t){if(t.items){var r=this.getValidClassName(t.items);return r?"".concat(r,"[]"):"".concat(this.toString(t.items),"[]")}return"any[]"},element:function(t){return"<".concat(t.componentName," />")},function:function(t){var r=this,o=t.signature;if(!o)return"Function";var x="oneOf"in o?o.oneOf:[o];return x.map(function(u){return"".concat(u.isAsync?"async ":"","(").concat(u.arguments.map(function(c){return"".concat(c.key,": ").concat(r.toString(c))}).join(", "),") => ").concat(r.toString(u.returnType))}).join(" | ")},dom:function(t){return t.className||"DOM"},enum:function(t){return t.enum.map(function(r){return JSON.stringify(r)}).join(" | ")},oneOf:function(t){var r=this;return t.oneOf.map(function(o){return r.getValidClassName(o)||r.toString(o)}).join(" | ")},getValidClassName:function(t){return"className"in t&&typeof t.className=="string"&&t.className!=="__type"?t.className:null}},n=function(t){var r=useState(function(){return T.toString(t)}),o=_slicedToArray(r,2),x=o[0],u=o[1];return useEffect(function(){u(T.toString(t))},[t]),_jsx("code",{children:x})},y=function(t){var r,o=useRouteMeta(),x=o.frontmatter,u=useAtomAssets(),c=u.components,v=t.id||x.atomId,h=useIntl();if(!v)throw new Error("`id` properties if required for API component!");var j=c==null?void 0:c[v];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:h.formatMessage({id:"api.component.name"})}),_jsx("th",{children:h.formatMessage({id:"api.component.description"})}),_jsx("th",{children:h.formatMessage({id:"api.component.type"})}),_jsx("th",{children:h.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:j&&(r=j.propsConfig)!==null&&r!==void 0&&r.properties?Object.entries(j.propsConfig.properties).map(function(f){var m,_=_slicedToArray(f,2),l=_[0],a=_[1];return _jsxs("tr",{children:[_jsx("td",{children:l}),_jsx("td",{children:a.description||"--"}),_jsx("td",{children:_jsx(n,_objectSpread({},a))}),_jsx("td",{children:_jsx("code",{children:(m=j.propsConfig.required)!==null&&m!==void 0&&m.includes(l)?h.formatMessage({id:"api.component.required"}):JSON.stringify(a.default)||"--"})})]},l)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:h.formatMessage({id:"api.component.".concat(c?"not.found":"unavailable")},{id:v})})})})]})})},C=null},53267:function(L,g,s){var E=s(39114),U=s(35250),A=function(O){return _jsx("span",_objectSpread({className:"dumi-default-badge"},O))},D=null},33296:function(L,g,s){var E=s(39114),U=s(70125),A=s(11221),D=s(14315),M=s(70079),O=s(35250),b=null,i=function(y){var C=y.children,e=_objectWithoutProperties(y,b),t=useRef(null),r=useState(!1),o=_slicedToArray(r,2),x=o[0],u=o[1],c=useState(!1),v=_slicedToArray(c,2),h=v[0],j=v[1];return useEffect(function(){var f=t.current;if(f){var m=throttle(function(){u(f.scrollLeft>0),j(f.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",a=[];return[].concat(_).forEach(function(d,S){var p="".concat(l?"".concat(l,"-"):"").concat(S);switch(d==null?void 0:d.type){case"ul":{var P,I=((P=a[a.length-1])===null||P===void 0?void 0:P.children)||a,R=r(d.props.children||[],p);I.push.apply(I,O()(R));break}case"li":{var N=r(d.props.children,p);a.push({title:[].concat(d.props.children).filter(function(B){return B.type!=="ul"}),key:p,children:N,isLeaf:!N.length});break}default:}}),a}var o=function(l){var a=(0,e.useState)(r(l)),d=D()(a,2),S=d[0],p=d[1];return(0,e.useEffect)(function(){p(r(l))},[l]),S},x=function(l){var a=l.isLeaf,d=l.expanded;return a?(0,t.jsx)("span",{className:"dumi-default-tree-icon",children:(0,t.jsx)(b.r,{fill:"currentColor"})}):d?(0,t.jsx)("span",{className:"dumi-default-tree-icon",children:(0,t.jsx)(i.r,{fill:"currentColor"})}):(0,t.jsx)("span",{className:"dumi-default-tree-icon",children:(0,t.jsx)(T.r,{fill:"currentColor"})})},u=function(l){var a=l.isLeaf,d=l.expanded;return a?(0,t.jsx)("span",{className:"tree-switcher-leaf-line"}):d?(0,t.jsx)("span",{className:"tree-switcher-line-icon",children:(0,t.jsx)("span",{className:"dumi-default-tree-icon",children:(0,t.jsx)(n.r,{fill:"currentColor"})})}):(0,t.jsx)("span",{className:"tree-switcher-line-icon",children:(0,t.jsx)("span",{className:"dumi-default-tree-icon",children:(0,t.jsx)(y.r,{fill:"currentColor"})})})},c=function(){return{height:0,opacity:0}},v=function(l){var a=l.scrollHeight;return{height:a,opacity:1}},h=function(l){return{height:l?l.offsetHeight:0}},j=function(l,a){return(a==null?void 0:a.deadline)===!0||a.propertyName==="height"},f={motionName:"ant-motion-collapse",onAppearStart:c,onEnterStart:c,onAppearActive:v,onEnterActive:v,onLeaveStart:h,onLeaveActive:c,onAppearEnd:j,onEnterEnd:j,onLeaveEnd:j,motionDeadline:500},m=function(_){var l=o(_.children),a=(0,e.createRef)(),d=function(p,P){var I=P.isLeaf;I||p.shiftKey||p.metaKey||p.ctrlKey||a.current.onNodeExpand(p,P)};return(0,t.jsx)(C.Z,{className:"dumi-default-tree",icon:x,ref:a,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:U()(U()({},f),{},{motionAppear:!1}),onClick:d,treeData:[{key:"0",title:_.title||"",children:l}],defaultExpandAll:!0,switcherIcon:u})}}}]); diff --git a/docs/docs__api__index.md.c96d08a4.async.js b/docs/docs__api__index.md.c96d08a4.async.js deleted file mode 100644 index 913e3e95..00000000 --- a/docs/docs__api__index.md.c96d08a4.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[2546],{66835:function(S,j,t){t.r(j);var E=t(4311),A=t(53267),D=t(82197),O=t(12620),b=t(74692),T=t(33296),L=t(12133),p=t(54996),C=t(70079),i=t(35250);function y(){var P=(0,p.eL)(),n=P.texts;return(0,i.jsx)(p.dY,{children:(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"markdown",children:[(0,i.jsxs)("h1",{id:"api",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#api",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"API"]}),(0,i.jsxs)("ul",{children:[(0,i.jsx)("li",{children:(0,i.jsx)(p.rU,{to:"/api/base/atom",children:n[0].value})}),(0,i.jsx)("li",{children:(0,i.jsx)(p.rU,{to:"/api/atom-ctx/",children:n[1].value})}),(0,i.jsx)("li",{children:(0,i.jsx)(p.rU,{to:"/api/hooks/",children:n[2].value})}),(0,i.jsx)("li",{children:(0,i.jsx)(p.rU,{to:"/api/utils/",children:n[3].value})})]})]})})})}j.default=y},4311:function(S,j,t){var E=t(39114),A=t.n(E),D=t(70125),O=t.n(D),b=t(54996),T=t(70079),L=t(33296),p=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var r=this,o=[];return Object.entries(e.properties||{}).forEach(function(h){var c,l=O()(h,2),f=l[0],d=l[1];o.push("".concat(f).concat((c=e.required)!==null&&c!==void 0&&c.includes(f)?"":"?",": ").concat(d.type==="object"?"object":r.toString(d)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var r=this.getValidClassName(e.items);return r?"".concat(r,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var r=this,o=e.signature;if(!o)return"Function";var h="oneOf"in o?o.oneOf:[o];return h.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(l){return"".concat(l.key,": ").concat(r.toString(l))}).join(", "),") => ").concat(r.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(r){return JSON.stringify(r)}).join(" | ")},oneOf:function(e){var r=this;return e.oneOf.map(function(o){return r.getValidClassName(o)||r.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},i=function(e){var r=useState(function(){return C.toString(e)}),o=_slicedToArray(r,2),h=o[0],c=o[1];return useEffect(function(){c(C.toString(e))},[e]),_jsx("code",{children:h})},y=function(e){var r,o=useRouteMeta(),h=o.frontmatter,c=useAtomAssets(),l=c.components,f=e.id||h.atomId,d=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var g=l==null?void 0:l[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:d.formatMessage({id:"api.component.name"})}),_jsx("th",{children:d.formatMessage({id:"api.component.description"})}),_jsx("th",{children:d.formatMessage({id:"api.component.type"})}),_jsx("th",{children:d.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:g&&(r=g.propsConfig)!==null&&r!==void 0&&r.properties?Object.entries(g.propsConfig.properties).map(function(m){var v,_=_slicedToArray(m,2),a=_[0],s=_[1];return _jsxs("tr",{children:[_jsx("td",{children:a}),_jsx("td",{children:s.description||"--"}),_jsx("td",{children:_jsx(i,_objectSpread({},s))}),_jsx("td",{children:_jsx("code",{children:(v=g.propsConfig.required)!==null&&v!==void 0&&v.includes(a)?d.formatMessage({id:"api.component.required"}):JSON.stringify(s.default)||"--"})})]},a)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:d.formatMessage({id:"api.component.".concat(l?"not.found":"unavailable")},{id:f})})})})]})})},P=null},53267:function(S,j,t){var E=t(39114),A=t(35250),D=function(T){return _jsx("span",_objectSpread({className:"dumi-default-badge"},T))},O=null},33296:function(S,j,t){var E=t(39114),A=t(70125),D=t(11221),O=t(14315),b=t(70079),T=t(35250),L=null,p=function(y){var P=y.children,n=_objectWithoutProperties(y,L),e=useRef(null),r=useState(!1),o=_slicedToArray(r,2),h=o[0],c=o[1],l=useState(!1),f=_slicedToArray(l,2),d=f[0],g=f[1];return useEffect(function(){var m=e.current;if(m){var v=throttle(function(){c(m.scrollLeft>0),g(m.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",s=[];return[].concat(_).forEach(function(u,I){var x="".concat(a?"".concat(a,"-"):"").concat(I);switch(u==null?void 0:u.type){case"ul":{var M,U=((M=s[s.length-1])===null||M===void 0?void 0:M.children)||s,R=r(u.props.children||[],x);U.push.apply(U,T()(R));break}case"li":{var N=r(u.props.children,x);s.push({title:[].concat(u.props.children).filter(function(B){return B.type!=="ul"}),key:x,children:N,isLeaf:!N.length});break}default:}}),s}var o=function(a){var s=(0,n.useState)(r(a)),u=O()(s,2),I=u[0],x=u[1];return(0,n.useEffect)(function(){x(r(a))},[a]),I},h=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(L.r,{fill:"currentColor"})}):u?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(p.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},c=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):u?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(i.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})})})},l=function(){return{height:0,opacity:0}},f=function(a){var s=a.scrollHeight;return{height:s,opacity:1}},d=function(a){return{height:a?a.offsetHeight:0}},g=function(a,s){return(s==null?void 0:s.deadline)===!0||s.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:l,onEnterStart:l,onAppearActive:f,onEnterActive:f,onLeaveStart:d,onLeaveActive:l,onAppearEnd:g,onEnterEnd:g,onLeaveEnd:g,motionDeadline:500},v=function(_){var a=o(_.children),s=(0,n.createRef)(),u=function(x,M){var U=M.isLeaf;U||x.shiftKey||x.metaKey||x.ctrlKey||s.current.onNodeExpand(x,M)};return(0,e.jsx)(P.Z,{className:"dumi-default-tree",icon:h,ref:s,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:A()(A()({},m),{},{motionAppear:!1}),onClick:u,treeData:[{key:"0",title:_.title||"",children:a}],defaultExpandAll:!0,switcherIcon:c})}}}]); diff --git a/docs/docs__api__utils__action.md.032d64af.async.js b/docs/docs__api__utils__action.md.032d64af.async.js deleted file mode 100644 index e76f80f6..00000000 --- a/docs/docs__api__utils__action.md.032d64af.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[6556],{31999:function(S,x,t){t.r(x);var E=t(4311),j=t(53267),D=t(82197),A=t(12620),b=t(74692),O=t(33296),L=t(12133),T=t(54996),C=t(70079),d=t(35250);function y(){var M=(0,T.eL)(),a=M.texts;return(0,d.jsx)(T.dY,{children:(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{className:"markdown",children:(0,d.jsxs)("h1",{id:"action",children:[(0,d.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#action",children:(0,d.jsx)("span",{className:"icon icon-link"})}),"action"]})})})})}x.default=y},4311:function(S,x,t){var E=t(39114),j=t.n(E),D=t(70125),A=t.n(D),b=t(54996),O=t(70079),L=t(33296),T=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var n=this,o=[];return Object.entries(e.properties||{}).forEach(function(m){var c,i=A()(m,2),f=i[0],u=i[1];o.push("".concat(f).concat((c=e.required)!==null&&c!==void 0&&c.includes(f)?"":"?",": ").concat(u.type==="object"?"object":n.toString(u)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var n=this.getValidClassName(e.items);return n?"".concat(n,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var n=this,o=e.signature;if(!o)return"Function";var m="oneOf"in o?o.oneOf:[o];return m.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(i){return"".concat(i.key,": ").concat(n.toString(i))}).join(", "),") => ").concat(n.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(n){return JSON.stringify(n)}).join(" | ")},oneOf:function(e){var n=this;return e.oneOf.map(function(o){return n.getValidClassName(o)||n.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},d=function(e){var n=useState(function(){return C.toString(e)}),o=_slicedToArray(n,2),m=o[0],c=o[1];return useEffect(function(){c(C.toString(e))},[e]),_jsx("code",{children:m})},y=function(e){var n,o=useRouteMeta(),m=o.frontmatter,c=useAtomAssets(),i=c.components,f=e.id||m.atomId,u=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=i==null?void 0:i[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:u.formatMessage({id:"api.component.name"})}),_jsx("th",{children:u.formatMessage({id:"api.component.description"})}),_jsx("th",{children:u.formatMessage({id:"api.component.type"})}),_jsx("th",{children:u.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(n=p.propsConfig)!==null&&n!==void 0&&n.properties?Object.entries(p.propsConfig.properties).map(function(h){var v,_=_slicedToArray(h,2),s=_[0],r=_[1];return _jsxs("tr",{children:[_jsx("td",{children:s}),_jsx("td",{children:r.description||"--"}),_jsx("td",{children:_jsx(d,_objectSpread({},r))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(s)?u.formatMessage({id:"api.component.required"}):JSON.stringify(r.default)||"--"})})]},s)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:u.formatMessage({id:"api.component.".concat(i?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(S,x,t){var E=t(39114),j=t(35250),D=function(O){return _jsx("span",_objectSpread({className:"dumi-default-badge"},O))},A=null},33296:function(S,x,t){var E=t(39114),j=t(70125),D=t(11221),A=t(14315),b=t(70079),O=t(35250),L=null,T=function(y){var M=y.children,a=_objectWithoutProperties(y,L),e=useRef(null),n=useState(!1),o=_slicedToArray(n,2),m=o[0],c=o[1],i=useState(!1),f=_slicedToArray(i,2),u=f[0],p=f[1];return useEffect(function(){var h=e.current;if(h){var v=throttle(function(){c(h.scrollLeft>0),p(h.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",r=[];return[].concat(_).forEach(function(l,I){var g="".concat(s?"".concat(s,"-"):"").concat(I);switch(l==null?void 0:l.type){case"ul":{var P,N=((P=r[r.length-1])===null||P===void 0?void 0:P.children)||r,R=n(l.props.children||[],g);N.push.apply(N,O()(R));break}case"li":{var U=n(l.props.children,g);r.push({title:[].concat(l.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),r}var o=function(s){var r=(0,a.useState)(n(s)),l=A()(r,2),I=l[0],g=l[1];return(0,a.useEffect)(function(){g(n(s))},[s]),I},m=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(L.r,{fill:"currentColor"})}):l?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(T.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},c=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):l?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(d.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})})})},i=function(){return{height:0,opacity:0}},f=function(s){var r=s.scrollHeight;return{height:r,opacity:1}},u=function(s){return{height:s?s.offsetHeight:0}},p=function(s,r){return(r==null?void 0:r.deadline)===!0||r.propertyName==="height"},h={motionName:"ant-motion-collapse",onAppearStart:i,onEnterStart:i,onAppearActive:f,onEnterActive:f,onLeaveStart:u,onLeaveActive:i,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(_){var s=o(_.children),r=(0,a.createRef)(),l=function(g,P){var N=P.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||r.current.onNodeExpand(g,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:m,ref:r,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:j()(j()({},h),{},{motionAppear:!1}),onClick:l,treeData:[{key:"0",title:_.title||"",children:s}],defaultExpandAll:!0,switcherIcon:c})}}}]); diff --git a/docs/docs__api__utils__add-middleware.md.456f3f13.async.js b/docs/docs__api__utils__add-middleware.md.456f3f13.async.js new file mode 100644 index 00000000..48dab9ee --- /dev/null +++ b/docs/docs__api__utils__add-middleware.md.456f3f13.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[97],{66137:function(S,x,n){n.r(x);var y=n(4311),E=n(53267),A=n(82197),D=n(12620),O=n(74692),T=n(33296),L=n(12133),C=n(54996),M=n(70079),o=n(35250);function j(){var P=(0,C.eL)(),a=P.texts;return(0,o.jsx)(C.dY,{children:(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{className:"markdown",children:[(0,o.jsxs)("h1",{id:"addmiddleware",children:[(0,o.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#addmiddleware",children:(0,o.jsx)("span",{className:"icon icon-link"})}),"addMiddleware"]}),(0,o.jsx)("p",{children:a[0].value}),(0,o.jsxs)("h2",{id:"\u57FA\u7840\u4F7F\u7528",children:[(0,o.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#\u57FA\u7840\u4F7F\u7528",children:(0,o.jsx)("span",{className:"icon icon-link"})}),"\u57FA\u7840\u4F7F\u7528"]}),(0,o.jsx)(O.Z,{lang:"ts",children:a[1].value})]})})})}x.default=j},4311:function(S,x,n){var y=n(39114),E=n.n(y),A=n(70125),D=n.n(A),O=n(54996),T=n(70079),L=n(33296),C=n(35250),M={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var t=this,i=[];return Object.entries(e.properties||{}).forEach(function(h){var l,c=D()(h,2),f=c[0],_=c[1];i.push("".concat(f).concat((l=e.required)!==null&&l!==void 0&&l.includes(f)?"":"?",": ").concat(_.type==="object"?"object":t.toString(_)))}),i.length?"{ ".concat(i.join("; ")," }"):"{}"},array:function(e){if(e.items){var t=this.getValidClassName(e.items);return t?"".concat(t,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var t=this,i=e.signature;if(!i)return"Function";var h="oneOf"in i?i.oneOf:[i];return h.map(function(l){return"".concat(l.isAsync?"async ":"","(").concat(l.arguments.map(function(c){return"".concat(c.key,": ").concat(t.toString(c))}).join(", "),") => ").concat(t.toString(l.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(t){return JSON.stringify(t)}).join(" | ")},oneOf:function(e){var t=this;return e.oneOf.map(function(i){return t.getValidClassName(i)||t.toString(i)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},o=function(e){var t=useState(function(){return M.toString(e)}),i=_slicedToArray(t,2),h=i[0],l=i[1];return useEffect(function(){l(M.toString(e))},[e]),_jsx("code",{children:h})},j=function(e){var t,i=useRouteMeta(),h=i.frontmatter,l=useAtomAssets(),c=l.components,f=e.id||h.atomId,_=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=c==null?void 0:c[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:_.formatMessage({id:"api.component.name"})}),_jsx("th",{children:_.formatMessage({id:"api.component.description"})}),_jsx("th",{children:_.formatMessage({id:"api.component.type"})}),_jsx("th",{children:_.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(t=p.propsConfig)!==null&&t!==void 0&&t.properties?Object.entries(p.propsConfig.properties).map(function(m){var v,u=_slicedToArray(m,2),s=u[0],r=u[1];return _jsxs("tr",{children:[_jsx("td",{children:s}),_jsx("td",{children:r.description||"--"}),_jsx("td",{children:_jsx(o,_objectSpread({},r))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(s)?_.formatMessage({id:"api.component.required"}):JSON.stringify(r.default)||"--"})})]},s)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:_.formatMessage({id:"api.component.".concat(c?"not.found":"unavailable")},{id:f})})})})]})})},P=null},53267:function(S,x,n){var y=n(39114),E=n(35250),A=function(T){return _jsx("span",_objectSpread({className:"dumi-default-badge"},T))},D=null},33296:function(S,x,n){var y=n(39114),E=n(70125),A=n(11221),D=n(14315),O=n(70079),T=n(35250),L=null,C=function(j){var P=j.children,a=_objectWithoutProperties(j,L),e=useRef(null),t=useState(!1),i=_slicedToArray(t,2),h=i[0],l=i[1],c=useState(!1),f=_slicedToArray(c,2),_=f[0],p=f[1];return useEffect(function(){var m=e.current;if(m){var v=throttle(function(){l(m.scrollLeft>0),p(m.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",r=[];return[].concat(u).forEach(function(d,I){var g="".concat(s?"".concat(s,"-"):"").concat(I);switch(d==null?void 0:d.type){case"ul":{var b,N=((b=r[r.length-1])===null||b===void 0?void 0:b.children)||r,R=t(d.props.children||[],g);N.push.apply(N,T()(R));break}case"li":{var U=t(d.props.children,g);r.push({title:[].concat(d.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),r}var i=function(s){var r=(0,a.useState)(t(s)),d=D()(r,2),I=d[0],g=d[1];return(0,a.useEffect)(function(){g(t(s))},[s]),I},h=function(s){var r=s.isLeaf,d=s.expanded;return r?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(L.r,{fill:"currentColor"})}):d?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(M.r,{fill:"currentColor"})})},l=function(s){var r=s.isLeaf,d=s.expanded;return r?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):d?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(o.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(j.r,{fill:"currentColor"})})})},c=function(){return{height:0,opacity:0}},f=function(s){var r=s.scrollHeight;return{height:r,opacity:1}},_=function(s){return{height:s?s.offsetHeight:0}},p=function(s,r){return(r==null?void 0:r.deadline)===!0||r.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:c,onEnterStart:c,onAppearActive:f,onEnterActive:f,onLeaveStart:_,onLeaveActive:c,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(u){var s=i(u.children),r=(0,a.createRef)(),d=function(g,b){var N=b.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||r.current.onNodeExpand(g,b)};return(0,e.jsx)(P.Z,{className:"dumi-default-tree",icon:h,ref:r,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:E()(E()({},m),{},{motionAppear:!1}),onClick:d,treeData:[{key:"0",title:u.title||"",children:s}],defaultExpandAll:!0,switcherIcon:l})}}}]); diff --git a/docs/docs__api__utils__add-middleware.md.5365ff68.async.js b/docs/docs__api__utils__add-middleware.md.5365ff68.async.js deleted file mode 100644 index d8303e86..00000000 --- a/docs/docs__api__utils__add-middleware.md.5365ff68.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[97],{66137:function(S,x,t){t.r(x);var E=t(4311),j=t(53267),D=t(82197),A=t(12620),b=t(74692),O=t(33296),L=t(12133),T=t(54996),C=t(70079),u=t(35250);function y(){var M=(0,T.eL)(),a=M.texts;return(0,u.jsx)(T.dY,{children:(0,u.jsx)(u.Fragment,{children:(0,u.jsx)("div",{className:"markdown",children:(0,u.jsxs)("h1",{id:"addmiddleware",children:[(0,u.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#addmiddleware",children:(0,u.jsx)("span",{className:"icon icon-link"})}),"addMiddleware"]})})})})}x.default=y},4311:function(S,x,t){var E=t(39114),j=t.n(E),D=t(70125),A=t.n(D),b=t(54996),O=t(70079),L=t(33296),T=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var n=this,o=[];return Object.entries(e.properties||{}).forEach(function(m){var c,i=A()(m,2),f=i[0],_=i[1];o.push("".concat(f).concat((c=e.required)!==null&&c!==void 0&&c.includes(f)?"":"?",": ").concat(_.type==="object"?"object":n.toString(_)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var n=this.getValidClassName(e.items);return n?"".concat(n,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var n=this,o=e.signature;if(!o)return"Function";var m="oneOf"in o?o.oneOf:[o];return m.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(i){return"".concat(i.key,": ").concat(n.toString(i))}).join(", "),") => ").concat(n.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(n){return JSON.stringify(n)}).join(" | ")},oneOf:function(e){var n=this;return e.oneOf.map(function(o){return n.getValidClassName(o)||n.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},u=function(e){var n=useState(function(){return C.toString(e)}),o=_slicedToArray(n,2),m=o[0],c=o[1];return useEffect(function(){c(C.toString(e))},[e]),_jsx("code",{children:m})},y=function(e){var n,o=useRouteMeta(),m=o.frontmatter,c=useAtomAssets(),i=c.components,f=e.id||m.atomId,_=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=i==null?void 0:i[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:_.formatMessage({id:"api.component.name"})}),_jsx("th",{children:_.formatMessage({id:"api.component.description"})}),_jsx("th",{children:_.formatMessage({id:"api.component.type"})}),_jsx("th",{children:_.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(n=p.propsConfig)!==null&&n!==void 0&&n.properties?Object.entries(p.propsConfig.properties).map(function(h){var v,d=_slicedToArray(h,2),s=d[0],r=d[1];return _jsxs("tr",{children:[_jsx("td",{children:s}),_jsx("td",{children:r.description||"--"}),_jsx("td",{children:_jsx(u,_objectSpread({},r))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(s)?_.formatMessage({id:"api.component.required"}):JSON.stringify(r.default)||"--"})})]},s)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:_.formatMessage({id:"api.component.".concat(i?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(S,x,t){var E=t(39114),j=t(35250),D=function(O){return _jsx("span",_objectSpread({className:"dumi-default-badge"},O))},A=null},33296:function(S,x,t){var E=t(39114),j=t(70125),D=t(11221),A=t(14315),b=t(70079),O=t(35250),L=null,T=function(y){var M=y.children,a=_objectWithoutProperties(y,L),e=useRef(null),n=useState(!1),o=_slicedToArray(n,2),m=o[0],c=o[1],i=useState(!1),f=_slicedToArray(i,2),_=f[0],p=f[1];return useEffect(function(){var h=e.current;if(h){var v=throttle(function(){c(h.scrollLeft>0),p(h.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",r=[];return[].concat(d).forEach(function(l,I){var g="".concat(s?"".concat(s,"-"):"").concat(I);switch(l==null?void 0:l.type){case"ul":{var P,N=((P=r[r.length-1])===null||P===void 0?void 0:P.children)||r,R=n(l.props.children||[],g);N.push.apply(N,O()(R));break}case"li":{var U=n(l.props.children,g);r.push({title:[].concat(l.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),r}var o=function(s){var r=(0,a.useState)(n(s)),l=A()(r,2),I=l[0],g=l[1];return(0,a.useEffect)(function(){g(n(s))},[s]),I},m=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(L.r,{fill:"currentColor"})}):l?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(T.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},c=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):l?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(u.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})})})},i=function(){return{height:0,opacity:0}},f=function(s){var r=s.scrollHeight;return{height:r,opacity:1}},_=function(s){return{height:s?s.offsetHeight:0}},p=function(s,r){return(r==null?void 0:r.deadline)===!0||r.propertyName==="height"},h={motionName:"ant-motion-collapse",onAppearStart:i,onEnterStart:i,onAppearActive:f,onEnterActive:f,onLeaveStart:_,onLeaveActive:i,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(d){var s=o(d.children),r=(0,a.createRef)(),l=function(g,P){var N=P.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||r.current.onNodeExpand(g,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:m,ref:r,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:j()(j()({},h),{},{motionAppear:!1}),onClick:l,treeData:[{key:"0",title:d.title||"",children:s}],defaultExpandAll:!0,switcherIcon:c})}}}]); diff --git a/docs/docs__api__utils__add-plugin.md.1b592e1b.async.js b/docs/docs__api__utils__add-plugin.md.1b592e1b.async.js deleted file mode 100644 index 3cc867cf..00000000 --- a/docs/docs__api__utils__add-plugin.md.1b592e1b.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[6854],{60412:function(S,x,t){t.r(x);var E=t(4311),j=t(53267),D=t(82197),A=t(12620),b=t(74692),O=t(33296),L=t(12133),T=t(54996),C=t(70079),d=t(35250);function y(){var P=(0,T.eL)(),a=P.texts;return(0,d.jsx)(T.dY,{children:(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{className:"markdown",children:(0,d.jsxs)("h1",{id:"addplugin",children:[(0,d.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#addplugin",children:(0,d.jsx)("span",{className:"icon icon-link"})}),"addPlugin"]})})})})}x.default=y},4311:function(S,x,t){var E=t(39114),j=t.n(E),D=t(70125),A=t.n(D),b=t(54996),O=t(70079),L=t(33296),T=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var n=this,o=[];return Object.entries(e.properties||{}).forEach(function(m){var c,i=A()(m,2),f=i[0],u=i[1];o.push("".concat(f).concat((c=e.required)!==null&&c!==void 0&&c.includes(f)?"":"?",": ").concat(u.type==="object"?"object":n.toString(u)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var n=this.getValidClassName(e.items);return n?"".concat(n,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var n=this,o=e.signature;if(!o)return"Function";var m="oneOf"in o?o.oneOf:[o];return m.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(i){return"".concat(i.key,": ").concat(n.toString(i))}).join(", "),") => ").concat(n.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(n){return JSON.stringify(n)}).join(" | ")},oneOf:function(e){var n=this;return e.oneOf.map(function(o){return n.getValidClassName(o)||n.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},d=function(e){var n=useState(function(){return C.toString(e)}),o=_slicedToArray(n,2),m=o[0],c=o[1];return useEffect(function(){c(C.toString(e))},[e]),_jsx("code",{children:m})},y=function(e){var n,o=useRouteMeta(),m=o.frontmatter,c=useAtomAssets(),i=c.components,f=e.id||m.atomId,u=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=i==null?void 0:i[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:u.formatMessage({id:"api.component.name"})}),_jsx("th",{children:u.formatMessage({id:"api.component.description"})}),_jsx("th",{children:u.formatMessage({id:"api.component.type"})}),_jsx("th",{children:u.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(n=p.propsConfig)!==null&&n!==void 0&&n.properties?Object.entries(p.propsConfig.properties).map(function(h){var v,_=_slicedToArray(h,2),s=_[0],r=_[1];return _jsxs("tr",{children:[_jsx("td",{children:s}),_jsx("td",{children:r.description||"--"}),_jsx("td",{children:_jsx(d,_objectSpread({},r))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(s)?u.formatMessage({id:"api.component.required"}):JSON.stringify(r.default)||"--"})})]},s)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:u.formatMessage({id:"api.component.".concat(i?"not.found":"unavailable")},{id:f})})})})]})})},P=null},53267:function(S,x,t){var E=t(39114),j=t(35250),D=function(O){return _jsx("span",_objectSpread({className:"dumi-default-badge"},O))},A=null},33296:function(S,x,t){var E=t(39114),j=t(70125),D=t(11221),A=t(14315),b=t(70079),O=t(35250),L=null,T=function(y){var P=y.children,a=_objectWithoutProperties(y,L),e=useRef(null),n=useState(!1),o=_slicedToArray(n,2),m=o[0],c=o[1],i=useState(!1),f=_slicedToArray(i,2),u=f[0],p=f[1];return useEffect(function(){var h=e.current;if(h){var v=throttle(function(){c(h.scrollLeft>0),p(h.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",r=[];return[].concat(_).forEach(function(l,I){var g="".concat(s?"".concat(s,"-"):"").concat(I);switch(l==null?void 0:l.type){case"ul":{var M,N=((M=r[r.length-1])===null||M===void 0?void 0:M.children)||r,R=n(l.props.children||[],g);N.push.apply(N,O()(R));break}case"li":{var U=n(l.props.children,g);r.push({title:[].concat(l.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),r}var o=function(s){var r=(0,a.useState)(n(s)),l=A()(r,2),I=l[0],g=l[1];return(0,a.useEffect)(function(){g(n(s))},[s]),I},m=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(L.r,{fill:"currentColor"})}):l?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(T.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},c=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):l?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(d.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})})})},i=function(){return{height:0,opacity:0}},f=function(s){var r=s.scrollHeight;return{height:r,opacity:1}},u=function(s){return{height:s?s.offsetHeight:0}},p=function(s,r){return(r==null?void 0:r.deadline)===!0||r.propertyName==="height"},h={motionName:"ant-motion-collapse",onAppearStart:i,onEnterStart:i,onAppearActive:f,onEnterActive:f,onLeaveStart:u,onLeaveActive:i,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(_){var s=o(_.children),r=(0,a.createRef)(),l=function(g,M){var N=M.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||r.current.onNodeExpand(g,M)};return(0,e.jsx)(P.Z,{className:"dumi-default-tree",icon:m,ref:r,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:j()(j()({},h),{},{motionAppear:!1}),onClick:l,treeData:[{key:"0",title:_.title||"",children:s}],defaultExpandAll:!0,switcherIcon:c})}}}]); diff --git a/docs/docs__api__utils__add-plugin.md.c237b288.async.js b/docs/docs__api__utils__add-plugin.md.c237b288.async.js new file mode 100644 index 00000000..ccb3398c --- /dev/null +++ b/docs/docs__api__utils__add-plugin.md.c237b288.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[6854],{60412:function(S,x,n){n.r(x);var A=n(4311),D=n(53267),j=n(82197),O=n(12620),T=n(74692),C=n(33296),L=n(12133),y=n(54996),P=n(70079),i=n(35250);function E(){var M=(0,y.eL)(),t=M.texts;return(0,i.jsx)(y.dY,{children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"markdown",children:[(0,i.jsxs)("h1",{id:"addplugin",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#addplugin",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"addPlugin"]}),(0,i.jsx)("p",{children:t[0].value})]}),(0,i.jsx)(j.Z,{type:"info",children:(0,i.jsxs)("p",{children:[t[1].value,(0,i.jsx)(y.rU,{to:"/guide/plugins",children:t[2].value}),t[3].value]})}),(0,i.jsxs)("div",{className:"markdown",children:[(0,i.jsxs)("h2",{id:"\u57FA\u7840\u4F7F\u7528",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#\u57FA\u7840\u4F7F\u7528",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"\u57FA\u7840\u4F7F\u7528"]}),(0,i.jsx)(T.Z,{lang:"ts",children:t[4].value})]})]})})}x.default=E},4311:function(S,x,n){var A=n(39114),D=n.n(A),j=n(70125),O=n.n(j),T=n(54996),C=n(70079),L=n(33296),y=n(35250),P={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var r=this,o=[];return Object.entries(e.properties||{}).forEach(function(h){var c,l=O()(h,2),f=l[0],_=l[1];o.push("".concat(f).concat((c=e.required)!==null&&c!==void 0&&c.includes(f)?"":"?",": ").concat(_.type==="object"?"object":r.toString(_)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var r=this.getValidClassName(e.items);return r?"".concat(r,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var r=this,o=e.signature;if(!o)return"Function";var h="oneOf"in o?o.oneOf:[o];return h.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(l){return"".concat(l.key,": ").concat(r.toString(l))}).join(", "),") => ").concat(r.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(r){return JSON.stringify(r)}).join(" | ")},oneOf:function(e){var r=this;return e.oneOf.map(function(o){return r.getValidClassName(o)||r.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},i=function(e){var r=useState(function(){return P.toString(e)}),o=_slicedToArray(r,2),h=o[0],c=o[1];return useEffect(function(){c(P.toString(e))},[e]),_jsx("code",{children:h})},E=function(e){var r,o=useRouteMeta(),h=o.frontmatter,c=useAtomAssets(),l=c.components,f=e.id||h.atomId,_=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=l==null?void 0:l[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:_.formatMessage({id:"api.component.name"})}),_jsx("th",{children:_.formatMessage({id:"api.component.description"})}),_jsx("th",{children:_.formatMessage({id:"api.component.type"})}),_jsx("th",{children:_.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(r=p.propsConfig)!==null&&r!==void 0&&r.properties?Object.entries(p.propsConfig.properties).map(function(m){var v,d=_slicedToArray(m,2),a=d[0],s=d[1];return _jsxs("tr",{children:[_jsx("td",{children:a}),_jsx("td",{children:s.description||"--"}),_jsx("td",{children:_jsx(i,_objectSpread({},s))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(a)?_.formatMessage({id:"api.component.required"}):JSON.stringify(s.default)||"--"})})]},a)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:_.formatMessage({id:"api.component.".concat(l?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(S,x,n){var A=n(39114),D=n(35250),j=function(C){return _jsx("span",_objectSpread({className:"dumi-default-badge"},C))},O=null},33296:function(S,x,n){var A=n(39114),D=n(70125),j=n(11221),O=n(14315),T=n(70079),C=n(35250),L=null,y=function(E){var M=E.children,t=_objectWithoutProperties(E,L),e=useRef(null),r=useState(!1),o=_slicedToArray(r,2),h=o[0],c=o[1],l=useState(!1),f=_slicedToArray(l,2),_=f[0],p=f[1];return useEffect(function(){var m=e.current;if(m){var v=throttle(function(){c(m.scrollLeft>0),p(m.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",s=[];return[].concat(d).forEach(function(u,I){var g="".concat(a?"".concat(a,"-"):"").concat(I);switch(u==null?void 0:u.type){case"ul":{var b,N=((b=s[s.length-1])===null||b===void 0?void 0:b.children)||s,R=r(u.props.children||[],g);N.push.apply(N,C()(R));break}case"li":{var U=r(u.props.children,g);s.push({title:[].concat(u.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),s}var o=function(a){var s=(0,t.useState)(r(a)),u=O()(s,2),I=u[0],g=u[1];return(0,t.useEffect)(function(){g(r(a))},[a]),I},h=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(L.r,{fill:"currentColor"})}):u?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(P.r,{fill:"currentColor"})})},c=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):u?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(i.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(E.r,{fill:"currentColor"})})})},l=function(){return{height:0,opacity:0}},f=function(a){var s=a.scrollHeight;return{height:s,opacity:1}},_=function(a){return{height:a?a.offsetHeight:0}},p=function(a,s){return(s==null?void 0:s.deadline)===!0||s.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:l,onEnterStart:l,onAppearActive:f,onEnterActive:f,onLeaveStart:_,onLeaveActive:l,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(d){var a=o(d.children),s=(0,t.createRef)(),u=function(g,b){var N=b.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||s.current.onNodeExpand(g,b)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:h,ref:s,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:D()(D()({},m),{},{motionAppear:!1}),onClick:u,treeData:[{key:"0",title:d.title||"",children:a}],defaultExpandAll:!0,switcherIcon:c})}}}]); diff --git a/docs/docs__api__utils__cst.md.125f3721.async.js b/docs/docs__api__utils__cst.md.125f3721.async.js deleted file mode 100644 index ec5c15f9..00000000 --- a/docs/docs__api__utils__cst.md.125f3721.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[5061],{61660:function(S,x,t){t.r(x);var E=t(4311),j=t(53267),D=t(82197),A=t(12620),b=t(74692),O=t(33296),L=t(12133),T=t(54996),C=t(70079),d=t(35250);function y(){var M=(0,T.eL)(),a=M.texts;return(0,d.jsx)(T.dY,{children:(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{className:"markdown",children:(0,d.jsxs)("h1",{id:"cst",children:[(0,d.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#cst",children:(0,d.jsx)("span",{className:"icon icon-link"})}),"cst"]})})})})}x.default=y},4311:function(S,x,t){var E=t(39114),j=t.n(E),D=t(70125),A=t.n(D),b=t(54996),O=t(70079),L=t(33296),T=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var n=this,o=[];return Object.entries(e.properties||{}).forEach(function(m){var c,i=A()(m,2),f=i[0],u=i[1];o.push("".concat(f).concat((c=e.required)!==null&&c!==void 0&&c.includes(f)?"":"?",": ").concat(u.type==="object"?"object":n.toString(u)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var n=this.getValidClassName(e.items);return n?"".concat(n,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var n=this,o=e.signature;if(!o)return"Function";var m="oneOf"in o?o.oneOf:[o];return m.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(i){return"".concat(i.key,": ").concat(n.toString(i))}).join(", "),") => ").concat(n.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(n){return JSON.stringify(n)}).join(" | ")},oneOf:function(e){var n=this;return e.oneOf.map(function(o){return n.getValidClassName(o)||n.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},d=function(e){var n=useState(function(){return C.toString(e)}),o=_slicedToArray(n,2),m=o[0],c=o[1];return useEffect(function(){c(C.toString(e))},[e]),_jsx("code",{children:m})},y=function(e){var n,o=useRouteMeta(),m=o.frontmatter,c=useAtomAssets(),i=c.components,f=e.id||m.atomId,u=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=i==null?void 0:i[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:u.formatMessage({id:"api.component.name"})}),_jsx("th",{children:u.formatMessage({id:"api.component.description"})}),_jsx("th",{children:u.formatMessage({id:"api.component.type"})}),_jsx("th",{children:u.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(n=p.propsConfig)!==null&&n!==void 0&&n.properties?Object.entries(p.propsConfig.properties).map(function(h){var v,_=_slicedToArray(h,2),s=_[0],r=_[1];return _jsxs("tr",{children:[_jsx("td",{children:s}),_jsx("td",{children:r.description||"--"}),_jsx("td",{children:_jsx(d,_objectSpread({},r))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(s)?u.formatMessage({id:"api.component.required"}):JSON.stringify(r.default)||"--"})})]},s)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:u.formatMessage({id:"api.component.".concat(i?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(S,x,t){var E=t(39114),j=t(35250),D=function(O){return _jsx("span",_objectSpread({className:"dumi-default-badge"},O))},A=null},33296:function(S,x,t){var E=t(39114),j=t(70125),D=t(11221),A=t(14315),b=t(70079),O=t(35250),L=null,T=function(y){var M=y.children,a=_objectWithoutProperties(y,L),e=useRef(null),n=useState(!1),o=_slicedToArray(n,2),m=o[0],c=o[1],i=useState(!1),f=_slicedToArray(i,2),u=f[0],p=f[1];return useEffect(function(){var h=e.current;if(h){var v=throttle(function(){c(h.scrollLeft>0),p(h.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",r=[];return[].concat(_).forEach(function(l,I){var g="".concat(s?"".concat(s,"-"):"").concat(I);switch(l==null?void 0:l.type){case"ul":{var P,N=((P=r[r.length-1])===null||P===void 0?void 0:P.children)||r,R=n(l.props.children||[],g);N.push.apply(N,O()(R));break}case"li":{var U=n(l.props.children,g);r.push({title:[].concat(l.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),r}var o=function(s){var r=(0,a.useState)(n(s)),l=A()(r,2),I=l[0],g=l[1];return(0,a.useEffect)(function(){g(n(s))},[s]),I},m=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(L.r,{fill:"currentColor"})}):l?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(T.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},c=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):l?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(d.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})})})},i=function(){return{height:0,opacity:0}},f=function(s){var r=s.scrollHeight;return{height:r,opacity:1}},u=function(s){return{height:s?s.offsetHeight:0}},p=function(s,r){return(r==null?void 0:r.deadline)===!0||r.propertyName==="height"},h={motionName:"ant-motion-collapse",onAppearStart:i,onEnterStart:i,onAppearActive:f,onEnterActive:f,onLeaveStart:u,onLeaveActive:i,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(_){var s=o(_.children),r=(0,a.createRef)(),l=function(g,P){var N=P.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||r.current.onNodeExpand(g,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:m,ref:r,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:j()(j()({},h),{},{motionAppear:!1}),onClick:l,treeData:[{key:"0",title:_.title||"",children:s}],defaultExpandAll:!0,switcherIcon:c})}}}]); diff --git a/docs/docs__api__utils__cst.md.f04dbf0f.async.js b/docs/docs__api__utils__cst.md.f04dbf0f.async.js new file mode 100644 index 00000000..01e71d2f --- /dev/null +++ b/docs/docs__api__utils__cst.md.f04dbf0f.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[5061],{61660:function(S,x,t){t.r(x);var y=t(4311),E=t(53267),D=t(82197),A=t(12620),O=t(74692),T=t(33296),L=t(12133),C=t(54996),M=t(70079),c=t(35250);function j(){var P=(0,C.eL)(),n=P.texts;return(0,c.jsx)(C.dY,{children:(0,c.jsx)(c.Fragment,{children:(0,c.jsxs)("div",{className:"markdown",children:[(0,c.jsxs)("h1",{id:"cst",children:[(0,c.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#cst",children:(0,c.jsx)("span",{className:"icon icon-link"})}),"cst"]}),(0,c.jsxs)("p",{children:[n[0].value,(0,c.jsx)("code",{children:n[1].value}),n[2].value]}),(0,c.jsx)(O.Z,{lang:"ts",children:n[3].value})]})})})}x.default=j},4311:function(S,x,t){var y=t(39114),E=t.n(y),D=t(70125),A=t.n(D),O=t(54996),T=t(70079),L=t(33296),C=t(35250),M={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var r=this,o=[];return Object.entries(e.properties||{}).forEach(function(h){var l,i=A()(h,2),f=i[0],d=i[1];o.push("".concat(f).concat((l=e.required)!==null&&l!==void 0&&l.includes(f)?"":"?",": ").concat(d.type==="object"?"object":r.toString(d)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var r=this.getValidClassName(e.items);return r?"".concat(r,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var r=this,o=e.signature;if(!o)return"Function";var h="oneOf"in o?o.oneOf:[o];return h.map(function(l){return"".concat(l.isAsync?"async ":"","(").concat(l.arguments.map(function(i){return"".concat(i.key,": ").concat(r.toString(i))}).join(", "),") => ").concat(r.toString(l.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(r){return JSON.stringify(r)}).join(" | ")},oneOf:function(e){var r=this;return e.oneOf.map(function(o){return r.getValidClassName(o)||r.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},c=function(e){var r=useState(function(){return M.toString(e)}),o=_slicedToArray(r,2),h=o[0],l=o[1];return useEffect(function(){l(M.toString(e))},[e]),_jsx("code",{children:h})},j=function(e){var r,o=useRouteMeta(),h=o.frontmatter,l=useAtomAssets(),i=l.components,f=e.id||h.atomId,d=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=i==null?void 0:i[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:d.formatMessage({id:"api.component.name"})}),_jsx("th",{children:d.formatMessage({id:"api.component.description"})}),_jsx("th",{children:d.formatMessage({id:"api.component.type"})}),_jsx("th",{children:d.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(r=p.propsConfig)!==null&&r!==void 0&&r.properties?Object.entries(p.propsConfig.properties).map(function(m){var v,u=_slicedToArray(m,2),a=u[0],s=u[1];return _jsxs("tr",{children:[_jsx("td",{children:a}),_jsx("td",{children:s.description||"--"}),_jsx("td",{children:_jsx(c,_objectSpread({},s))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(a)?d.formatMessage({id:"api.component.required"}):JSON.stringify(s.default)||"--"})})]},a)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:d.formatMessage({id:"api.component.".concat(i?"not.found":"unavailable")},{id:f})})})})]})})},P=null},53267:function(S,x,t){var y=t(39114),E=t(35250),D=function(T){return _jsx("span",_objectSpread({className:"dumi-default-badge"},T))},A=null},33296:function(S,x,t){var y=t(39114),E=t(70125),D=t(11221),A=t(14315),O=t(70079),T=t(35250),L=null,C=function(j){var P=j.children,n=_objectWithoutProperties(j,L),e=useRef(null),r=useState(!1),o=_slicedToArray(r,2),h=o[0],l=o[1],i=useState(!1),f=_slicedToArray(i,2),d=f[0],p=f[1];return useEffect(function(){var m=e.current;if(m){var v=throttle(function(){l(m.scrollLeft>0),p(m.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",s=[];return[].concat(u).forEach(function(_,I){var g="".concat(a?"".concat(a,"-"):"").concat(I);switch(_==null?void 0:_.type){case"ul":{var b,N=((b=s[s.length-1])===null||b===void 0?void 0:b.children)||s,R=r(_.props.children||[],g);N.push.apply(N,T()(R));break}case"li":{var U=r(_.props.children,g);s.push({title:[].concat(_.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),s}var o=function(a){var s=(0,n.useState)(r(a)),_=A()(s,2),I=_[0],g=_[1];return(0,n.useEffect)(function(){g(r(a))},[a]),I},h=function(a){var s=a.isLeaf,_=a.expanded;return s?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(L.r,{fill:"currentColor"})}):_?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(M.r,{fill:"currentColor"})})},l=function(a){var s=a.isLeaf,_=a.expanded;return s?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):_?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(c.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(j.r,{fill:"currentColor"})})})},i=function(){return{height:0,opacity:0}},f=function(a){var s=a.scrollHeight;return{height:s,opacity:1}},d=function(a){return{height:a?a.offsetHeight:0}},p=function(a,s){return(s==null?void 0:s.deadline)===!0||s.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:i,onEnterStart:i,onAppearActive:f,onEnterActive:f,onLeaveStart:d,onLeaveActive:i,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(u){var a=o(u.children),s=(0,n.createRef)(),_=function(g,b){var N=b.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||s.current.onNodeExpand(g,b)};return(0,e.jsx)(P.Z,{className:"dumi-default-tree",icon:h,ref:s,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:E()(E()({},m),{},{motionAppear:!1}),onClick:_,treeData:[{key:"0",title:u.title||"",children:a}],defaultExpandAll:!0,switcherIcon:l})}}}]); diff --git a/docs/docs__api__utils__flush.md.cdf3b238.async.js b/docs/docs__api__utils__flush.md.cdf3b238.async.js deleted file mode 100644 index 15ddd4f2..00000000 --- a/docs/docs__api__utils__flush.md.cdf3b238.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[4786],{55650:function(S,x,t){t.r(x);var E=t(4311),j=t(53267),D=t(82197),A=t(12620),b=t(74692),O=t(33296),L=t(12133),T=t(54996),C=t(70079),d=t(35250);function y(){var M=(0,T.eL)(),a=M.texts;return(0,d.jsx)(T.dY,{children:(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{className:"markdown",children:(0,d.jsxs)("h1",{id:"flush",children:[(0,d.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#flush",children:(0,d.jsx)("span",{className:"icon icon-link"})}),"flush"]})})})})}x.default=y},4311:function(S,x,t){var E=t(39114),j=t.n(E),D=t(70125),A=t.n(D),b=t(54996),O=t(70079),L=t(33296),T=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var n=this,o=[];return Object.entries(e.properties||{}).forEach(function(h){var c,i=A()(h,2),f=i[0],u=i[1];o.push("".concat(f).concat((c=e.required)!==null&&c!==void 0&&c.includes(f)?"":"?",": ").concat(u.type==="object"?"object":n.toString(u)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var n=this.getValidClassName(e.items);return n?"".concat(n,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var n=this,o=e.signature;if(!o)return"Function";var h="oneOf"in o?o.oneOf:[o];return h.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(i){return"".concat(i.key,": ").concat(n.toString(i))}).join(", "),") => ").concat(n.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(n){return JSON.stringify(n)}).join(" | ")},oneOf:function(e){var n=this;return e.oneOf.map(function(o){return n.getValidClassName(o)||n.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},d=function(e){var n=useState(function(){return C.toString(e)}),o=_slicedToArray(n,2),h=o[0],c=o[1];return useEffect(function(){c(C.toString(e))},[e]),_jsx("code",{children:h})},y=function(e){var n,o=useRouteMeta(),h=o.frontmatter,c=useAtomAssets(),i=c.components,f=e.id||h.atomId,u=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=i==null?void 0:i[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:u.formatMessage({id:"api.component.name"})}),_jsx("th",{children:u.formatMessage({id:"api.component.description"})}),_jsx("th",{children:u.formatMessage({id:"api.component.type"})}),_jsx("th",{children:u.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(n=p.propsConfig)!==null&&n!==void 0&&n.properties?Object.entries(p.propsConfig.properties).map(function(m){var v,_=_slicedToArray(m,2),s=_[0],r=_[1];return _jsxs("tr",{children:[_jsx("td",{children:s}),_jsx("td",{children:r.description||"--"}),_jsx("td",{children:_jsx(d,_objectSpread({},r))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(s)?u.formatMessage({id:"api.component.required"}):JSON.stringify(r.default)||"--"})})]},s)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:u.formatMessage({id:"api.component.".concat(i?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(S,x,t){var E=t(39114),j=t(35250),D=function(O){return _jsx("span",_objectSpread({className:"dumi-default-badge"},O))},A=null},33296:function(S,x,t){var E=t(39114),j=t(70125),D=t(11221),A=t(14315),b=t(70079),O=t(35250),L=null,T=function(y){var M=y.children,a=_objectWithoutProperties(y,L),e=useRef(null),n=useState(!1),o=_slicedToArray(n,2),h=o[0],c=o[1],i=useState(!1),f=_slicedToArray(i,2),u=f[0],p=f[1];return useEffect(function(){var m=e.current;if(m){var v=throttle(function(){c(m.scrollLeft>0),p(m.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",r=[];return[].concat(_).forEach(function(l,I){var g="".concat(s?"".concat(s,"-"):"").concat(I);switch(l==null?void 0:l.type){case"ul":{var P,N=((P=r[r.length-1])===null||P===void 0?void 0:P.children)||r,R=n(l.props.children||[],g);N.push.apply(N,O()(R));break}case"li":{var U=n(l.props.children,g);r.push({title:[].concat(l.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),r}var o=function(s){var r=(0,a.useState)(n(s)),l=A()(r,2),I=l[0],g=l[1];return(0,a.useEffect)(function(){g(n(s))},[s]),I},h=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(L.r,{fill:"currentColor"})}):l?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(T.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},c=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):l?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(d.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})})})},i=function(){return{height:0,opacity:0}},f=function(s){var r=s.scrollHeight;return{height:r,opacity:1}},u=function(s){return{height:s?s.offsetHeight:0}},p=function(s,r){return(r==null?void 0:r.deadline)===!0||r.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:i,onEnterStart:i,onAppearActive:f,onEnterActive:f,onLeaveStart:u,onLeaveActive:i,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(_){var s=o(_.children),r=(0,a.createRef)(),l=function(g,P){var N=P.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||r.current.onNodeExpand(g,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:h,ref:r,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:j()(j()({},m),{},{motionAppear:!1}),onClick:l,treeData:[{key:"0",title:_.title||"",children:s}],defaultExpandAll:!0,switcherIcon:c})}}}]); diff --git a/docs/docs__api__utils__flush.md.df47bd1d.async.js b/docs/docs__api__utils__flush.md.df47bd1d.async.js new file mode 100644 index 00000000..ebc44582 --- /dev/null +++ b/docs/docs__api__utils__flush.md.df47bd1d.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[4786],{55650:function(L,j,n){n.r(j);var y=n(4311),D=n(53267),A=n(82197),C=n(12620),b=n(74692),O=n(33296),S=n(12133),g=n(54996),T=n(70079),t=n(35250);function E(){var P=(0,g.eL)(),a=P.texts;return(0,t.jsx)(g.dY,{children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"markdown",children:[(0,t.jsxs)("h1",{id:"flush",children:[(0,t.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#flush",children:(0,t.jsx)("span",{className:"icon icon-link"})}),"flush"]}),(0,t.jsxs)("p",{children:[a[0].value,(0,t.jsx)("code",{children:a[1].value}),a[2].value]}),(0,t.jsxs)("h2",{id:"\u57FA\u7840\u4F7F\u7528",children:[(0,t.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#\u57FA\u7840\u4F7F\u7528",children:(0,t.jsx)("span",{className:"icon icon-link"})}),"\u57FA\u7840\u4F7F\u7528"]}),(0,t.jsxs)("h3",{id:"\u89E6\u53D1-reactive-\u63D0\u4EA4",children:[(0,t.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#\u89E6\u53D1-reactive-\u63D0\u4EA4",children:(0,t.jsx)("span",{className:"icon icon-link"})}),"\u89E6\u53D1 reactive \u63D0\u4EA4"]})]}),(0,t.jsx)(g.Dl,{demo:{id:"docs-api-utils-flush-demo-0"},previewerProps:{defaultShowCode:!0}}),(0,t.jsx)("div",{className:"markdown",children:(0,t.jsxs)("h3",{id:"\u89E6\u53D1-action-draft-\u63D0\u4EA4",children:[(0,t.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#\u89E6\u53D1-action-draft-\u63D0\u4EA4",children:(0,t.jsx)("span",{className:"icon icon-link"})}),"\u89E6\u53D1 action draft \u63D0\u4EA4"]})}),(0,t.jsx)(g.Dl,{demo:{id:"docs-api-utils-flush-demo-1"},previewerProps:{defaultShowCode:!0}})]})})}j.default=E},4311:function(L,j,n){var y=n(39114),D=n.n(y),A=n(70125),C=n.n(A),b=n(54996),O=n(70079),S=n(33296),g=n(35250),T={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var r=this,o=[];return Object.entries(e.properties||{}).forEach(function(h){var l,c=C()(h,2),f=c[0],_=c[1];o.push("".concat(f).concat((l=e.required)!==null&&l!==void 0&&l.includes(f)?"":"?",": ").concat(_.type==="object"?"object":r.toString(_)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var r=this.getValidClassName(e.items);return r?"".concat(r,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var r=this,o=e.signature;if(!o)return"Function";var h="oneOf"in o?o.oneOf:[o];return h.map(function(l){return"".concat(l.isAsync?"async ":"","(").concat(l.arguments.map(function(c){return"".concat(c.key,": ").concat(r.toString(c))}).join(", "),") => ").concat(r.toString(l.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(r){return JSON.stringify(r)}).join(" | ")},oneOf:function(e){var r=this;return e.oneOf.map(function(o){return r.getValidClassName(o)||r.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},t=function(e){var r=useState(function(){return T.toString(e)}),o=_slicedToArray(r,2),h=o[0],l=o[1];return useEffect(function(){l(T.toString(e))},[e]),_jsx("code",{children:h})},E=function(e){var r,o=useRouteMeta(),h=o.frontmatter,l=useAtomAssets(),c=l.components,f=e.id||h.atomId,_=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=c==null?void 0:c[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:_.formatMessage({id:"api.component.name"})}),_jsx("th",{children:_.formatMessage({id:"api.component.description"})}),_jsx("th",{children:_.formatMessage({id:"api.component.type"})}),_jsx("th",{children:_.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(r=p.propsConfig)!==null&&r!==void 0&&r.properties?Object.entries(p.propsConfig.properties).map(function(m){var v,d=_slicedToArray(m,2),i=d[0],s=d[1];return _jsxs("tr",{children:[_jsx("td",{children:i}),_jsx("td",{children:s.description||"--"}),_jsx("td",{children:_jsx(t,_objectSpread({},s))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(i)?_.formatMessage({id:"api.component.required"}):JSON.stringify(s.default)||"--"})})]},i)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:_.formatMessage({id:"api.component.".concat(c?"not.found":"unavailable")},{id:f})})})})]})})},P=null},53267:function(L,j,n){var y=n(39114),D=n(35250),A=function(O){return _jsx("span",_objectSpread({className:"dumi-default-badge"},O))},C=null},33296:function(L,j,n){var y=n(39114),D=n(70125),A=n(11221),C=n(14315),b=n(70079),O=n(35250),S=null,g=function(E){var P=E.children,a=_objectWithoutProperties(E,S),e=useRef(null),r=useState(!1),o=_slicedToArray(r,2),h=o[0],l=o[1],c=useState(!1),f=_slicedToArray(c,2),_=f[0],p=f[1];return useEffect(function(){var m=e.current;if(m){var v=throttle(function(){l(m.scrollLeft>0),p(m.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",s=[];return[].concat(d).forEach(function(u,I){var x="".concat(i?"".concat(i,"-"):"").concat(I);switch(u==null?void 0:u.type){case"ul":{var M,N=((M=s[s.length-1])===null||M===void 0?void 0:M.children)||s,R=r(u.props.children||[],x);N.push.apply(N,O()(R));break}case"li":{var U=r(u.props.children,x);s.push({title:[].concat(u.props.children).filter(function(B){return B.type!=="ul"}),key:x,children:U,isLeaf:!U.length});break}default:}}),s}var o=function(i){var s=(0,a.useState)(r(i)),u=C()(s,2),I=u[0],x=u[1];return(0,a.useEffect)(function(){x(r(i))},[i]),I},h=function(i){var s=i.isLeaf,u=i.expanded;return s?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(S.r,{fill:"currentColor"})}):u?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(g.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(T.r,{fill:"currentColor"})})},l=function(i){var s=i.isLeaf,u=i.expanded;return s?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):u?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(t.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(E.r,{fill:"currentColor"})})})},c=function(){return{height:0,opacity:0}},f=function(i){var s=i.scrollHeight;return{height:s,opacity:1}},_=function(i){return{height:i?i.offsetHeight:0}},p=function(i,s){return(s==null?void 0:s.deadline)===!0||s.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:c,onEnterStart:c,onAppearActive:f,onEnterActive:f,onLeaveStart:_,onLeaveActive:c,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(d){var i=o(d.children),s=(0,a.createRef)(),u=function(x,M){var N=M.isLeaf;N||x.shiftKey||x.metaKey||x.ctrlKey||s.current.onNodeExpand(x,M)};return(0,e.jsx)(P.Z,{className:"dumi-default-tree",icon:h,ref:s,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:D()(D()({},m),{},{motionAppear:!1}),onClick:u,treeData:[{key:"0",title:d.title||"",children:i}],defaultExpandAll:!0,switcherIcon:l})}}}]); diff --git a/docs/docs__api__utils__get-action-loading.md.2e42439a.async.js b/docs/docs__api__utils__get-action-loading.md.2e42439a.async.js deleted file mode 100644 index c845495e..00000000 --- a/docs/docs__api__utils__get-action-loading.md.2e42439a.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[8756],{62449:function(S,x,t){t.r(x);var E=t(4311),j=t(53267),A=t(82197),D=t(12620),L=t(74692),O=t(33296),b=t(12133),T=t(54996),C=t(70079),d=t(35250);function y(){var M=(0,T.eL)(),a=M.texts;return(0,d.jsx)(T.dY,{children:(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{className:"markdown",children:(0,d.jsxs)("h1",{id:"getactionloading",children:[(0,d.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#getactionloading",children:(0,d.jsx)("span",{className:"icon icon-link"})}),"getActionLoading"]})})})})}x.default=y},4311:function(S,x,t){var E=t(39114),j=t.n(E),A=t(70125),D=t.n(A),L=t(54996),O=t(70079),b=t(33296),T=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var n=this,o=[];return Object.entries(e.properties||{}).forEach(function(m){var c,i=D()(m,2),f=i[0],u=i[1];o.push("".concat(f).concat((c=e.required)!==null&&c!==void 0&&c.includes(f)?"":"?",": ").concat(u.type==="object"?"object":n.toString(u)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var n=this.getValidClassName(e.items);return n?"".concat(n,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var n=this,o=e.signature;if(!o)return"Function";var m="oneOf"in o?o.oneOf:[o];return m.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(i){return"".concat(i.key,": ").concat(n.toString(i))}).join(", "),") => ").concat(n.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(n){return JSON.stringify(n)}).join(" | ")},oneOf:function(e){var n=this;return e.oneOf.map(function(o){return n.getValidClassName(o)||n.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},d=function(e){var n=useState(function(){return C.toString(e)}),o=_slicedToArray(n,2),m=o[0],c=o[1];return useEffect(function(){c(C.toString(e))},[e]),_jsx("code",{children:m})},y=function(e){var n,o=useRouteMeta(),m=o.frontmatter,c=useAtomAssets(),i=c.components,f=e.id||m.atomId,u=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var g=i==null?void 0:i[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:u.formatMessage({id:"api.component.name"})}),_jsx("th",{children:u.formatMessage({id:"api.component.description"})}),_jsx("th",{children:u.formatMessage({id:"api.component.type"})}),_jsx("th",{children:u.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:g&&(n=g.propsConfig)!==null&&n!==void 0&&n.properties?Object.entries(g.propsConfig.properties).map(function(h){var v,_=_slicedToArray(h,2),s=_[0],r=_[1];return _jsxs("tr",{children:[_jsx("td",{children:s}),_jsx("td",{children:r.description||"--"}),_jsx("td",{children:_jsx(d,_objectSpread({},r))}),_jsx("td",{children:_jsx("code",{children:(v=g.propsConfig.required)!==null&&v!==void 0&&v.includes(s)?u.formatMessage({id:"api.component.required"}):JSON.stringify(r.default)||"--"})})]},s)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:u.formatMessage({id:"api.component.".concat(i?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(S,x,t){var E=t(39114),j=t(35250),A=function(O){return _jsx("span",_objectSpread({className:"dumi-default-badge"},O))},D=null},33296:function(S,x,t){var E=t(39114),j=t(70125),A=t(11221),D=t(14315),L=t(70079),O=t(35250),b=null,T=function(y){var M=y.children,a=_objectWithoutProperties(y,b),e=useRef(null),n=useState(!1),o=_slicedToArray(n,2),m=o[0],c=o[1],i=useState(!1),f=_slicedToArray(i,2),u=f[0],g=f[1];return useEffect(function(){var h=e.current;if(h){var v=throttle(function(){c(h.scrollLeft>0),g(h.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",r=[];return[].concat(_).forEach(function(l,I){var p="".concat(s?"".concat(s,"-"):"").concat(I);switch(l==null?void 0:l.type){case"ul":{var P,N=((P=r[r.length-1])===null||P===void 0?void 0:P.children)||r,R=n(l.props.children||[],p);N.push.apply(N,O()(R));break}case"li":{var U=n(l.props.children,p);r.push({title:[].concat(l.props.children).filter(function(B){return B.type!=="ul"}),key:p,children:U,isLeaf:!U.length});break}default:}}),r}var o=function(s){var r=(0,a.useState)(n(s)),l=D()(r,2),I=l[0],p=l[1];return(0,a.useEffect)(function(){p(n(s))},[s]),I},m=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(b.r,{fill:"currentColor"})}):l?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(T.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},c=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):l?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(d.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})})})},i=function(){return{height:0,opacity:0}},f=function(s){var r=s.scrollHeight;return{height:r,opacity:1}},u=function(s){return{height:s?s.offsetHeight:0}},g=function(s,r){return(r==null?void 0:r.deadline)===!0||r.propertyName==="height"},h={motionName:"ant-motion-collapse",onAppearStart:i,onEnterStart:i,onAppearActive:f,onEnterActive:f,onLeaveStart:u,onLeaveActive:i,onAppearEnd:g,onEnterEnd:g,onLeaveEnd:g,motionDeadline:500},v=function(_){var s=o(_.children),r=(0,a.createRef)(),l=function(p,P){var N=P.isLeaf;N||p.shiftKey||p.metaKey||p.ctrlKey||r.current.onNodeExpand(p,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:m,ref:r,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:j()(j()({},h),{},{motionAppear:!1}),onClick:l,treeData:[{key:"0",title:_.title||"",children:s}],defaultExpandAll:!0,switcherIcon:c})}}}]); diff --git a/docs/docs__api__utils__get-action-loading.md.6f2d7258.async.js b/docs/docs__api__utils__get-action-loading.md.6f2d7258.async.js new file mode 100644 index 00000000..f81148c4 --- /dev/null +++ b/docs/docs__api__utils__get-action-loading.md.6f2d7258.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[8756],{62449:function(S,x,n){n.r(x);var y=n(4311),E=n(53267),A=n(82197),D=n(12620),C=n(74692),O=n(33296),L=n(12133),T=n(54996),M=n(70079),i=n(35250);function j(){var P=(0,T.eL)(),t=P.texts;return(0,i.jsx)(T.dY,{children:(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"markdown",children:[(0,i.jsxs)("h1",{id:"getactionloading",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#getactionloading",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"getActionLoading"]}),(0,i.jsxs)("p",{children:[t[0].value,(0,i.jsx)("code",{children:t[1].value}),t[2].value]}),(0,i.jsxs)("h2",{id:"\u57FA\u7840\u7528\u6CD5",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#\u57FA\u7840\u7528\u6CD5",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"\u57FA\u7840\u7528\u6CD5"]}),(0,i.jsx)(C.Z,{lang:"ts",children:t[3].value})]})})})}x.default=j},4311:function(S,x,n){var y=n(39114),E=n.n(y),A=n(70125),D=n.n(A),C=n(54996),O=n(70079),L=n(33296),T=n(35250),M={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var r=this,o=[];return Object.entries(e.properties||{}).forEach(function(h){var l,c=D()(h,2),f=c[0],_=c[1];o.push("".concat(f).concat((l=e.required)!==null&&l!==void 0&&l.includes(f)?"":"?",": ").concat(_.type==="object"?"object":r.toString(_)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var r=this.getValidClassName(e.items);return r?"".concat(r,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var r=this,o=e.signature;if(!o)return"Function";var h="oneOf"in o?o.oneOf:[o];return h.map(function(l){return"".concat(l.isAsync?"async ":"","(").concat(l.arguments.map(function(c){return"".concat(c.key,": ").concat(r.toString(c))}).join(", "),") => ").concat(r.toString(l.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(r){return JSON.stringify(r)}).join(" | ")},oneOf:function(e){var r=this;return e.oneOf.map(function(o){return r.getValidClassName(o)||r.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},i=function(e){var r=useState(function(){return M.toString(e)}),o=_slicedToArray(r,2),h=o[0],l=o[1];return useEffect(function(){l(M.toString(e))},[e]),_jsx("code",{children:h})},j=function(e){var r,o=useRouteMeta(),h=o.frontmatter,l=useAtomAssets(),c=l.components,f=e.id||h.atomId,_=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=c==null?void 0:c[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:_.formatMessage({id:"api.component.name"})}),_jsx("th",{children:_.formatMessage({id:"api.component.description"})}),_jsx("th",{children:_.formatMessage({id:"api.component.type"})}),_jsx("th",{children:_.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(r=p.propsConfig)!==null&&r!==void 0&&r.properties?Object.entries(p.propsConfig.properties).map(function(m){var v,d=_slicedToArray(m,2),a=d[0],s=d[1];return _jsxs("tr",{children:[_jsx("td",{children:a}),_jsx("td",{children:s.description||"--"}),_jsx("td",{children:_jsx(i,_objectSpread({},s))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(a)?_.formatMessage({id:"api.component.required"}):JSON.stringify(s.default)||"--"})})]},a)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:_.formatMessage({id:"api.component.".concat(c?"not.found":"unavailable")},{id:f})})})})]})})},P=null},53267:function(S,x,n){var y=n(39114),E=n(35250),A=function(O){return _jsx("span",_objectSpread({className:"dumi-default-badge"},O))},D=null},33296:function(S,x,n){var y=n(39114),E=n(70125),A=n(11221),D=n(14315),C=n(70079),O=n(35250),L=null,T=function(j){var P=j.children,t=_objectWithoutProperties(j,L),e=useRef(null),r=useState(!1),o=_slicedToArray(r,2),h=o[0],l=o[1],c=useState(!1),f=_slicedToArray(c,2),_=f[0],p=f[1];return useEffect(function(){var m=e.current;if(m){var v=throttle(function(){l(m.scrollLeft>0),p(m.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",s=[];return[].concat(d).forEach(function(u,I){var g="".concat(a?"".concat(a,"-"):"").concat(I);switch(u==null?void 0:u.type){case"ul":{var b,N=((b=s[s.length-1])===null||b===void 0?void 0:b.children)||s,R=r(u.props.children||[],g);N.push.apply(N,O()(R));break}case"li":{var U=r(u.props.children,g);s.push({title:[].concat(u.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),s}var o=function(a){var s=(0,t.useState)(r(a)),u=D()(s,2),I=u[0],g=u[1];return(0,t.useEffect)(function(){g(r(a))},[a]),I},h=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(L.r,{fill:"currentColor"})}):u?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(T.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(M.r,{fill:"currentColor"})})},l=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):u?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(i.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(j.r,{fill:"currentColor"})})})},c=function(){return{height:0,opacity:0}},f=function(a){var s=a.scrollHeight;return{height:s,opacity:1}},_=function(a){return{height:a?a.offsetHeight:0}},p=function(a,s){return(s==null?void 0:s.deadline)===!0||s.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:c,onEnterStart:c,onAppearActive:f,onEnterActive:f,onLeaveStart:_,onLeaveActive:c,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(d){var a=o(d.children),s=(0,t.createRef)(),u=function(g,b){var N=b.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||s.current.onNodeExpand(g,b)};return(0,e.jsx)(P.Z,{className:"dumi-default-tree",icon:h,ref:s,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:E()(E()({},m),{},{motionAppear:!1}),onClick:u,treeData:[{key:"0",title:d.title||"",children:a}],defaultExpandAll:!0,switcherIcon:l})}}}]); diff --git a/docs/docs__api__utils__get-atom.md.28b7daf6.async.js b/docs/docs__api__utils__get-atom.md.28b7daf6.async.js new file mode 100644 index 00000000..96e28ebe --- /dev/null +++ b/docs/docs__api__utils__get-atom.md.28b7daf6.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[7220],{56526:function(S,x,t){t.r(x);var y=t(4311),E=t(53267),A=t(82197),D=t(12620),O=t(74692),T=t(33296),L=t(12133),C=t(54996),M=t(70079),i=t(35250);function j(){var P=(0,C.eL)(),n=P.texts;return(0,i.jsx)(C.dY,{children:(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"markdown",children:[(0,i.jsxs)("h1",{id:"getatom",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#getatom",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"getAtom"]}),(0,i.jsxs)("p",{children:[n[0].value,(0,i.jsx)("code",{children:n[1].value}),n[2].value,(0,i.jsx)("code",{children:n[3].value}),n[4].value]}),(0,i.jsxs)("h2",{id:"\u57FA\u7840\u4F7F\u7528",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#\u57FA\u7840\u4F7F\u7528",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"\u57FA\u7840\u4F7F\u7528"]}),(0,i.jsx)(O.Z,{lang:"ts",children:n[5].value})]})})})}x.default=j},4311:function(S,x,t){var y=t(39114),E=t.n(y),A=t(70125),D=t.n(A),O=t(54996),T=t(70079),L=t(33296),C=t(35250),M={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var r=this,o=[];return Object.entries(e.properties||{}).forEach(function(h){var l,c=D()(h,2),f=c[0],_=c[1];o.push("".concat(f).concat((l=e.required)!==null&&l!==void 0&&l.includes(f)?"":"?",": ").concat(_.type==="object"?"object":r.toString(_)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var r=this.getValidClassName(e.items);return r?"".concat(r,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var r=this,o=e.signature;if(!o)return"Function";var h="oneOf"in o?o.oneOf:[o];return h.map(function(l){return"".concat(l.isAsync?"async ":"","(").concat(l.arguments.map(function(c){return"".concat(c.key,": ").concat(r.toString(c))}).join(", "),") => ").concat(r.toString(l.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(r){return JSON.stringify(r)}).join(" | ")},oneOf:function(e){var r=this;return e.oneOf.map(function(o){return r.getValidClassName(o)||r.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},i=function(e){var r=useState(function(){return M.toString(e)}),o=_slicedToArray(r,2),h=o[0],l=o[1];return useEffect(function(){l(M.toString(e))},[e]),_jsx("code",{children:h})},j=function(e){var r,o=useRouteMeta(),h=o.frontmatter,l=useAtomAssets(),c=l.components,f=e.id||h.atomId,_=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=c==null?void 0:c[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:_.formatMessage({id:"api.component.name"})}),_jsx("th",{children:_.formatMessage({id:"api.component.description"})}),_jsx("th",{children:_.formatMessage({id:"api.component.type"})}),_jsx("th",{children:_.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(r=p.propsConfig)!==null&&r!==void 0&&r.properties?Object.entries(p.propsConfig.properties).map(function(m){var v,d=_slicedToArray(m,2),a=d[0],s=d[1];return _jsxs("tr",{children:[_jsx("td",{children:a}),_jsx("td",{children:s.description||"--"}),_jsx("td",{children:_jsx(i,_objectSpread({},s))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(a)?_.formatMessage({id:"api.component.required"}):JSON.stringify(s.default)||"--"})})]},a)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:_.formatMessage({id:"api.component.".concat(c?"not.found":"unavailable")},{id:f})})})})]})})},P=null},53267:function(S,x,t){var y=t(39114),E=t(35250),A=function(T){return _jsx("span",_objectSpread({className:"dumi-default-badge"},T))},D=null},33296:function(S,x,t){var y=t(39114),E=t(70125),A=t(11221),D=t(14315),O=t(70079),T=t(35250),L=null,C=function(j){var P=j.children,n=_objectWithoutProperties(j,L),e=useRef(null),r=useState(!1),o=_slicedToArray(r,2),h=o[0],l=o[1],c=useState(!1),f=_slicedToArray(c,2),_=f[0],p=f[1];return useEffect(function(){var m=e.current;if(m){var v=throttle(function(){l(m.scrollLeft>0),p(m.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",s=[];return[].concat(d).forEach(function(u,I){var g="".concat(a?"".concat(a,"-"):"").concat(I);switch(u==null?void 0:u.type){case"ul":{var b,N=((b=s[s.length-1])===null||b===void 0?void 0:b.children)||s,R=r(u.props.children||[],g);N.push.apply(N,T()(R));break}case"li":{var U=r(u.props.children,g);s.push({title:[].concat(u.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),s}var o=function(a){var s=(0,n.useState)(r(a)),u=D()(s,2),I=u[0],g=u[1];return(0,n.useEffect)(function(){g(r(a))},[a]),I},h=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(L.r,{fill:"currentColor"})}):u?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(M.r,{fill:"currentColor"})})},l=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):u?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(i.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(j.r,{fill:"currentColor"})})})},c=function(){return{height:0,opacity:0}},f=function(a){var s=a.scrollHeight;return{height:s,opacity:1}},_=function(a){return{height:a?a.offsetHeight:0}},p=function(a,s){return(s==null?void 0:s.deadline)===!0||s.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:c,onEnterStart:c,onAppearActive:f,onEnterActive:f,onLeaveStart:_,onLeaveActive:c,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(d){var a=o(d.children),s=(0,n.createRef)(),u=function(g,b){var N=b.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||s.current.onNodeExpand(g,b)};return(0,e.jsx)(P.Z,{className:"dumi-default-tree",icon:h,ref:s,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:E()(E()({},m),{},{motionAppear:!1}),onClick:u,treeData:[{key:"0",title:d.title||"",children:a}],defaultExpandAll:!0,switcherIcon:l})}}}]); diff --git a/docs/docs__api__utils__get-atom.md.a87574ba.async.js b/docs/docs__api__utils__get-atom.md.a87574ba.async.js deleted file mode 100644 index 0d3b7a6a..00000000 --- a/docs/docs__api__utils__get-atom.md.a87574ba.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[7220],{56526:function(S,x,t){t.r(x);var E=t(4311),j=t(53267),A=t(82197),D=t(12620),b=t(74692),O=t(33296),L=t(12133),T=t(54996),C=t(70079),d=t(35250);function y(){var M=(0,T.eL)(),a=M.texts;return(0,d.jsx)(T.dY,{children:(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{className:"markdown",children:(0,d.jsxs)("h1",{id:"getatom",children:[(0,d.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#getatom",children:(0,d.jsx)("span",{className:"icon icon-link"})}),"getAtom"]})})})})}x.default=y},4311:function(S,x,t){var E=t(39114),j=t.n(E),A=t(70125),D=t.n(A),b=t(54996),O=t(70079),L=t(33296),T=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var n=this,o=[];return Object.entries(e.properties||{}).forEach(function(m){var c,i=D()(m,2),f=i[0],u=i[1];o.push("".concat(f).concat((c=e.required)!==null&&c!==void 0&&c.includes(f)?"":"?",": ").concat(u.type==="object"?"object":n.toString(u)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var n=this.getValidClassName(e.items);return n?"".concat(n,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var n=this,o=e.signature;if(!o)return"Function";var m="oneOf"in o?o.oneOf:[o];return m.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(i){return"".concat(i.key,": ").concat(n.toString(i))}).join(", "),") => ").concat(n.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(n){return JSON.stringify(n)}).join(" | ")},oneOf:function(e){var n=this;return e.oneOf.map(function(o){return n.getValidClassName(o)||n.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},d=function(e){var n=useState(function(){return C.toString(e)}),o=_slicedToArray(n,2),m=o[0],c=o[1];return useEffect(function(){c(C.toString(e))},[e]),_jsx("code",{children:m})},y=function(e){var n,o=useRouteMeta(),m=o.frontmatter,c=useAtomAssets(),i=c.components,f=e.id||m.atomId,u=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=i==null?void 0:i[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:u.formatMessage({id:"api.component.name"})}),_jsx("th",{children:u.formatMessage({id:"api.component.description"})}),_jsx("th",{children:u.formatMessage({id:"api.component.type"})}),_jsx("th",{children:u.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(n=p.propsConfig)!==null&&n!==void 0&&n.properties?Object.entries(p.propsConfig.properties).map(function(h){var v,_=_slicedToArray(h,2),s=_[0],r=_[1];return _jsxs("tr",{children:[_jsx("td",{children:s}),_jsx("td",{children:r.description||"--"}),_jsx("td",{children:_jsx(d,_objectSpread({},r))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(s)?u.formatMessage({id:"api.component.required"}):JSON.stringify(r.default)||"--"})})]},s)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:u.formatMessage({id:"api.component.".concat(i?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(S,x,t){var E=t(39114),j=t(35250),A=function(O){return _jsx("span",_objectSpread({className:"dumi-default-badge"},O))},D=null},33296:function(S,x,t){var E=t(39114),j=t(70125),A=t(11221),D=t(14315),b=t(70079),O=t(35250),L=null,T=function(y){var M=y.children,a=_objectWithoutProperties(y,L),e=useRef(null),n=useState(!1),o=_slicedToArray(n,2),m=o[0],c=o[1],i=useState(!1),f=_slicedToArray(i,2),u=f[0],p=f[1];return useEffect(function(){var h=e.current;if(h){var v=throttle(function(){c(h.scrollLeft>0),p(h.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",r=[];return[].concat(_).forEach(function(l,I){var g="".concat(s?"".concat(s,"-"):"").concat(I);switch(l==null?void 0:l.type){case"ul":{var P,N=((P=r[r.length-1])===null||P===void 0?void 0:P.children)||r,R=n(l.props.children||[],g);N.push.apply(N,O()(R));break}case"li":{var U=n(l.props.children,g);r.push({title:[].concat(l.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),r}var o=function(s){var r=(0,a.useState)(n(s)),l=D()(r,2),I=l[0],g=l[1];return(0,a.useEffect)(function(){g(n(s))},[s]),I},m=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(L.r,{fill:"currentColor"})}):l?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(T.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},c=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):l?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(d.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})})})},i=function(){return{height:0,opacity:0}},f=function(s){var r=s.scrollHeight;return{height:r,opacity:1}},u=function(s){return{height:s?s.offsetHeight:0}},p=function(s,r){return(r==null?void 0:r.deadline)===!0||r.propertyName==="height"},h={motionName:"ant-motion-collapse",onAppearStart:i,onEnterStart:i,onAppearActive:f,onEnterActive:f,onLeaveStart:u,onLeaveActive:i,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(_){var s=o(_.children),r=(0,a.createRef)(),l=function(g,P){var N=P.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||r.current.onNodeExpand(g,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:m,ref:r,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:j()(j()({},h),{},{motionAppear:!1}),onClick:l,treeData:[{key:"0",title:_.title||"",children:s}],defaultExpandAll:!0,switcherIcon:c})}}}]); diff --git a/docs/docs__api__utils__get-derive-loading.md.85d88085.async.js b/docs/docs__api__utils__get-derive-loading.md.85d88085.async.js deleted file mode 100644 index 9f3c3640..00000000 --- a/docs/docs__api__utils__get-derive-loading.md.85d88085.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[4366],{61901:function(S,x,t){t.r(x);var E=t(4311),j=t(53267),D=t(82197),A=t(12620),L=t(74692),O=t(33296),b=t(12133),T=t(54996),C=t(70079),d=t(35250);function y(){var M=(0,T.eL)(),a=M.texts;return(0,d.jsx)(T.dY,{children:(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{className:"markdown",children:(0,d.jsxs)("h1",{id:"getderiveloading",children:[(0,d.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#getderiveloading",children:(0,d.jsx)("span",{className:"icon icon-link"})}),"getDeriveLoading"]})})})})}x.default=y},4311:function(S,x,t){var E=t(39114),j=t.n(E),D=t(70125),A=t.n(D),L=t(54996),O=t(70079),b=t(33296),T=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var n=this,o=[];return Object.entries(e.properties||{}).forEach(function(m){var c,i=A()(m,2),f=i[0],u=i[1];o.push("".concat(f).concat((c=e.required)!==null&&c!==void 0&&c.includes(f)?"":"?",": ").concat(u.type==="object"?"object":n.toString(u)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var n=this.getValidClassName(e.items);return n?"".concat(n,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var n=this,o=e.signature;if(!o)return"Function";var m="oneOf"in o?o.oneOf:[o];return m.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(i){return"".concat(i.key,": ").concat(n.toString(i))}).join(", "),") => ").concat(n.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(n){return JSON.stringify(n)}).join(" | ")},oneOf:function(e){var n=this;return e.oneOf.map(function(o){return n.getValidClassName(o)||n.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},d=function(e){var n=useState(function(){return C.toString(e)}),o=_slicedToArray(n,2),m=o[0],c=o[1];return useEffect(function(){c(C.toString(e))},[e]),_jsx("code",{children:m})},y=function(e){var n,o=useRouteMeta(),m=o.frontmatter,c=useAtomAssets(),i=c.components,f=e.id||m.atomId,u=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var g=i==null?void 0:i[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:u.formatMessage({id:"api.component.name"})}),_jsx("th",{children:u.formatMessage({id:"api.component.description"})}),_jsx("th",{children:u.formatMessage({id:"api.component.type"})}),_jsx("th",{children:u.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:g&&(n=g.propsConfig)!==null&&n!==void 0&&n.properties?Object.entries(g.propsConfig.properties).map(function(h){var v,_=_slicedToArray(h,2),s=_[0],r=_[1];return _jsxs("tr",{children:[_jsx("td",{children:s}),_jsx("td",{children:r.description||"--"}),_jsx("td",{children:_jsx(d,_objectSpread({},r))}),_jsx("td",{children:_jsx("code",{children:(v=g.propsConfig.required)!==null&&v!==void 0&&v.includes(s)?u.formatMessage({id:"api.component.required"}):JSON.stringify(r.default)||"--"})})]},s)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:u.formatMessage({id:"api.component.".concat(i?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(S,x,t){var E=t(39114),j=t(35250),D=function(O){return _jsx("span",_objectSpread({className:"dumi-default-badge"},O))},A=null},33296:function(S,x,t){var E=t(39114),j=t(70125),D=t(11221),A=t(14315),L=t(70079),O=t(35250),b=null,T=function(y){var M=y.children,a=_objectWithoutProperties(y,b),e=useRef(null),n=useState(!1),o=_slicedToArray(n,2),m=o[0],c=o[1],i=useState(!1),f=_slicedToArray(i,2),u=f[0],g=f[1];return useEffect(function(){var h=e.current;if(h){var v=throttle(function(){c(h.scrollLeft>0),g(h.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",r=[];return[].concat(_).forEach(function(l,I){var p="".concat(s?"".concat(s,"-"):"").concat(I);switch(l==null?void 0:l.type){case"ul":{var P,N=((P=r[r.length-1])===null||P===void 0?void 0:P.children)||r,R=n(l.props.children||[],p);N.push.apply(N,O()(R));break}case"li":{var U=n(l.props.children,p);r.push({title:[].concat(l.props.children).filter(function(B){return B.type!=="ul"}),key:p,children:U,isLeaf:!U.length});break}default:}}),r}var o=function(s){var r=(0,a.useState)(n(s)),l=A()(r,2),I=l[0],p=l[1];return(0,a.useEffect)(function(){p(n(s))},[s]),I},m=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(b.r,{fill:"currentColor"})}):l?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(T.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},c=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):l?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(d.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})})})},i=function(){return{height:0,opacity:0}},f=function(s){var r=s.scrollHeight;return{height:r,opacity:1}},u=function(s){return{height:s?s.offsetHeight:0}},g=function(s,r){return(r==null?void 0:r.deadline)===!0||r.propertyName==="height"},h={motionName:"ant-motion-collapse",onAppearStart:i,onEnterStart:i,onAppearActive:f,onEnterActive:f,onLeaveStart:u,onLeaveActive:i,onAppearEnd:g,onEnterEnd:g,onLeaveEnd:g,motionDeadline:500},v=function(_){var s=o(_.children),r=(0,a.createRef)(),l=function(p,P){var N=P.isLeaf;N||p.shiftKey||p.metaKey||p.ctrlKey||r.current.onNodeExpand(p,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:m,ref:r,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:j()(j()({},h),{},{motionAppear:!1}),onClick:l,treeData:[{key:"0",title:_.title||"",children:s}],defaultExpandAll:!0,switcherIcon:c})}}}]); diff --git a/docs/docs__api__utils__get-derive-loading.md.fc316cc1.async.js b/docs/docs__api__utils__get-derive-loading.md.fc316cc1.async.js new file mode 100644 index 00000000..1866bfcf --- /dev/null +++ b/docs/docs__api__utils__get-derive-loading.md.fc316cc1.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[4366],{61901:function(S,x,n){n.r(x);var y=n(4311),E=n(53267),A=n(82197),D=n(12620),O=n(74692),T=n(33296),L=n(12133),C=n(54996),M=n(70079),o=n(35250);function j(){var P=(0,C.eL)(),t=P.texts;return(0,o.jsx)(C.dY,{children:(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{className:"markdown",children:[(0,o.jsxs)("h1",{id:"getderiveloading",children:[(0,o.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#getderiveloading",children:(0,o.jsx)("span",{className:"icon icon-link"})}),"getDeriveLoading"]}),(0,o.jsxs)("p",{children:[t[0].value,(0,o.jsx)("code",{children:t[1].value}),t[2].value]}),(0,o.jsxs)("h2",{id:"\u57FA\u7840\u4F7F\u7528",children:[(0,o.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#\u57FA\u7840\u4F7F\u7528",children:(0,o.jsx)("span",{className:"icon icon-link"})}),"\u57FA\u7840\u4F7F\u7528"]}),(0,o.jsx)(O.Z,{lang:"ts",children:t[3].value})]})})})}x.default=j},4311:function(S,x,n){var y=n(39114),E=n.n(y),A=n(70125),D=n.n(A),O=n(54996),T=n(70079),L=n(33296),C=n(35250),M={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var r=this,i=[];return Object.entries(e.properties||{}).forEach(function(h){var l,c=D()(h,2),f=c[0],_=c[1];i.push("".concat(f).concat((l=e.required)!==null&&l!==void 0&&l.includes(f)?"":"?",": ").concat(_.type==="object"?"object":r.toString(_)))}),i.length?"{ ".concat(i.join("; ")," }"):"{}"},array:function(e){if(e.items){var r=this.getValidClassName(e.items);return r?"".concat(r,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var r=this,i=e.signature;if(!i)return"Function";var h="oneOf"in i?i.oneOf:[i];return h.map(function(l){return"".concat(l.isAsync?"async ":"","(").concat(l.arguments.map(function(c){return"".concat(c.key,": ").concat(r.toString(c))}).join(", "),") => ").concat(r.toString(l.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(r){return JSON.stringify(r)}).join(" | ")},oneOf:function(e){var r=this;return e.oneOf.map(function(i){return r.getValidClassName(i)||r.toString(i)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},o=function(e){var r=useState(function(){return M.toString(e)}),i=_slicedToArray(r,2),h=i[0],l=i[1];return useEffect(function(){l(M.toString(e))},[e]),_jsx("code",{children:h})},j=function(e){var r,i=useRouteMeta(),h=i.frontmatter,l=useAtomAssets(),c=l.components,f=e.id||h.atomId,_=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=c==null?void 0:c[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:_.formatMessage({id:"api.component.name"})}),_jsx("th",{children:_.formatMessage({id:"api.component.description"})}),_jsx("th",{children:_.formatMessage({id:"api.component.type"})}),_jsx("th",{children:_.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(r=p.propsConfig)!==null&&r!==void 0&&r.properties?Object.entries(p.propsConfig.properties).map(function(m){var v,d=_slicedToArray(m,2),a=d[0],s=d[1];return _jsxs("tr",{children:[_jsx("td",{children:a}),_jsx("td",{children:s.description||"--"}),_jsx("td",{children:_jsx(o,_objectSpread({},s))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(a)?_.formatMessage({id:"api.component.required"}):JSON.stringify(s.default)||"--"})})]},a)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:_.formatMessage({id:"api.component.".concat(c?"not.found":"unavailable")},{id:f})})})})]})})},P=null},53267:function(S,x,n){var y=n(39114),E=n(35250),A=function(T){return _jsx("span",_objectSpread({className:"dumi-default-badge"},T))},D=null},33296:function(S,x,n){var y=n(39114),E=n(70125),A=n(11221),D=n(14315),O=n(70079),T=n(35250),L=null,C=function(j){var P=j.children,t=_objectWithoutProperties(j,L),e=useRef(null),r=useState(!1),i=_slicedToArray(r,2),h=i[0],l=i[1],c=useState(!1),f=_slicedToArray(c,2),_=f[0],p=f[1];return useEffect(function(){var m=e.current;if(m){var v=throttle(function(){l(m.scrollLeft>0),p(m.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",s=[];return[].concat(d).forEach(function(u,I){var g="".concat(a?"".concat(a,"-"):"").concat(I);switch(u==null?void 0:u.type){case"ul":{var b,N=((b=s[s.length-1])===null||b===void 0?void 0:b.children)||s,R=r(u.props.children||[],g);N.push.apply(N,T()(R));break}case"li":{var U=r(u.props.children,g);s.push({title:[].concat(u.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),s}var i=function(a){var s=(0,t.useState)(r(a)),u=D()(s,2),I=u[0],g=u[1];return(0,t.useEffect)(function(){g(r(a))},[a]),I},h=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(L.r,{fill:"currentColor"})}):u?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(M.r,{fill:"currentColor"})})},l=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):u?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(o.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(j.r,{fill:"currentColor"})})})},c=function(){return{height:0,opacity:0}},f=function(a){var s=a.scrollHeight;return{height:s,opacity:1}},_=function(a){return{height:a?a.offsetHeight:0}},p=function(a,s){return(s==null?void 0:s.deadline)===!0||s.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:c,onEnterStart:c,onAppearActive:f,onEnterActive:f,onLeaveStart:_,onLeaveActive:c,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(d){var a=i(d.children),s=(0,t.createRef)(),u=function(g,b){var N=b.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||s.current.onNodeExpand(g,b)};return(0,e.jsx)(P.Z,{className:"dumi-default-tree",icon:h,ref:s,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:E()(E()({},m),{},{motionAppear:!1}),onClick:u,treeData:[{key:"0",title:d.title||"",children:a}],defaultExpandAll:!0,switcherIcon:l})}}}]); diff --git a/docs/docs__api__utils__get-mutate-loading.md.76dc306d.async.js b/docs/docs__api__utils__get-mutate-loading.md.76dc306d.async.js deleted file mode 100644 index cda12b57..00000000 --- a/docs/docs__api__utils__get-mutate-loading.md.76dc306d.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[5841],{76519:function(S,x,t){t.r(x);var E=t(4311),j=t(53267),D=t(82197),A=t(12620),L=t(74692),O=t(33296),b=t(12133),T=t(54996),C=t(70079),d=t(35250);function y(){var M=(0,T.eL)(),a=M.texts;return(0,d.jsx)(T.dY,{children:(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{className:"markdown",children:(0,d.jsxs)("h1",{id:"getmutateloading",children:[(0,d.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#getmutateloading",children:(0,d.jsx)("span",{className:"icon icon-link"})}),"getMutateLoading"]})})})})}x.default=y},4311:function(S,x,t){var E=t(39114),j=t.n(E),D=t(70125),A=t.n(D),L=t(54996),O=t(70079),b=t(33296),T=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var n=this,o=[];return Object.entries(e.properties||{}).forEach(function(m){var c,i=A()(m,2),f=i[0],u=i[1];o.push("".concat(f).concat((c=e.required)!==null&&c!==void 0&&c.includes(f)?"":"?",": ").concat(u.type==="object"?"object":n.toString(u)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var n=this.getValidClassName(e.items);return n?"".concat(n,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var n=this,o=e.signature;if(!o)return"Function";var m="oneOf"in o?o.oneOf:[o];return m.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(i){return"".concat(i.key,": ").concat(n.toString(i))}).join(", "),") => ").concat(n.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(n){return JSON.stringify(n)}).join(" | ")},oneOf:function(e){var n=this;return e.oneOf.map(function(o){return n.getValidClassName(o)||n.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},d=function(e){var n=useState(function(){return C.toString(e)}),o=_slicedToArray(n,2),m=o[0],c=o[1];return useEffect(function(){c(C.toString(e))},[e]),_jsx("code",{children:m})},y=function(e){var n,o=useRouteMeta(),m=o.frontmatter,c=useAtomAssets(),i=c.components,f=e.id||m.atomId,u=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var g=i==null?void 0:i[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:u.formatMessage({id:"api.component.name"})}),_jsx("th",{children:u.formatMessage({id:"api.component.description"})}),_jsx("th",{children:u.formatMessage({id:"api.component.type"})}),_jsx("th",{children:u.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:g&&(n=g.propsConfig)!==null&&n!==void 0&&n.properties?Object.entries(g.propsConfig.properties).map(function(h){var v,_=_slicedToArray(h,2),s=_[0],r=_[1];return _jsxs("tr",{children:[_jsx("td",{children:s}),_jsx("td",{children:r.description||"--"}),_jsx("td",{children:_jsx(d,_objectSpread({},r))}),_jsx("td",{children:_jsx("code",{children:(v=g.propsConfig.required)!==null&&v!==void 0&&v.includes(s)?u.formatMessage({id:"api.component.required"}):JSON.stringify(r.default)||"--"})})]},s)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:u.formatMessage({id:"api.component.".concat(i?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(S,x,t){var E=t(39114),j=t(35250),D=function(O){return _jsx("span",_objectSpread({className:"dumi-default-badge"},O))},A=null},33296:function(S,x,t){var E=t(39114),j=t(70125),D=t(11221),A=t(14315),L=t(70079),O=t(35250),b=null,T=function(y){var M=y.children,a=_objectWithoutProperties(y,b),e=useRef(null),n=useState(!1),o=_slicedToArray(n,2),m=o[0],c=o[1],i=useState(!1),f=_slicedToArray(i,2),u=f[0],g=f[1];return useEffect(function(){var h=e.current;if(h){var v=throttle(function(){c(h.scrollLeft>0),g(h.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",r=[];return[].concat(_).forEach(function(l,I){var p="".concat(s?"".concat(s,"-"):"").concat(I);switch(l==null?void 0:l.type){case"ul":{var P,N=((P=r[r.length-1])===null||P===void 0?void 0:P.children)||r,R=n(l.props.children||[],p);N.push.apply(N,O()(R));break}case"li":{var U=n(l.props.children,p);r.push({title:[].concat(l.props.children).filter(function(B){return B.type!=="ul"}),key:p,children:U,isLeaf:!U.length});break}default:}}),r}var o=function(s){var r=(0,a.useState)(n(s)),l=A()(r,2),I=l[0],p=l[1];return(0,a.useEffect)(function(){p(n(s))},[s]),I},m=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(b.r,{fill:"currentColor"})}):l?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(T.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},c=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):l?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(d.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})})})},i=function(){return{height:0,opacity:0}},f=function(s){var r=s.scrollHeight;return{height:r,opacity:1}},u=function(s){return{height:s?s.offsetHeight:0}},g=function(s,r){return(r==null?void 0:r.deadline)===!0||r.propertyName==="height"},h={motionName:"ant-motion-collapse",onAppearStart:i,onEnterStart:i,onAppearActive:f,onEnterActive:f,onLeaveStart:u,onLeaveActive:i,onAppearEnd:g,onEnterEnd:g,onLeaveEnd:g,motionDeadline:500},v=function(_){var s=o(_.children),r=(0,a.createRef)(),l=function(p,P){var N=P.isLeaf;N||p.shiftKey||p.metaKey||p.ctrlKey||r.current.onNodeExpand(p,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:m,ref:r,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:j()(j()({},h),{},{motionAppear:!1}),onClick:l,treeData:[{key:"0",title:_.title||"",children:s}],defaultExpandAll:!0,switcherIcon:c})}}}]); diff --git a/docs/docs__api__utils__get-mutate-loading.md.ec802001.async.js b/docs/docs__api__utils__get-mutate-loading.md.ec802001.async.js new file mode 100644 index 00000000..a2ef2316 --- /dev/null +++ b/docs/docs__api__utils__get-mutate-loading.md.ec802001.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[5841],{76519:function(S,x,t){t.r(x);var y=t(4311),E=t(53267),A=t(82197),D=t(12620),O=t(74692),T=t(33296),L=t(12133),C=t(54996),M=t(70079),i=t(35250);function j(){var P=(0,C.eL)(),n=P.texts;return(0,i.jsx)(C.dY,{children:(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"markdown",children:[(0,i.jsxs)("h1",{id:"getmutateloading",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#getmutateloading",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"getMutateLoading"]}),(0,i.jsxs)("p",{children:[n[0].value,(0,i.jsx)("code",{children:n[1].value}),n[2].value]}),(0,i.jsxs)("h2",{id:"\u57FA\u7840\u4F7F\u7528",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#\u57FA\u7840\u4F7F\u7528",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"\u57FA\u7840\u4F7F\u7528"]}),(0,i.jsx)(O.Z,{lang:"ts",children:n[3].value})]})})})}x.default=j},4311:function(S,x,t){var y=t(39114),E=t.n(y),A=t(70125),D=t.n(A),O=t(54996),T=t(70079),L=t(33296),C=t(35250),M={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var r=this,o=[];return Object.entries(e.properties||{}).forEach(function(h){var l,c=D()(h,2),f=c[0],_=c[1];o.push("".concat(f).concat((l=e.required)!==null&&l!==void 0&&l.includes(f)?"":"?",": ").concat(_.type==="object"?"object":r.toString(_)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var r=this.getValidClassName(e.items);return r?"".concat(r,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var r=this,o=e.signature;if(!o)return"Function";var h="oneOf"in o?o.oneOf:[o];return h.map(function(l){return"".concat(l.isAsync?"async ":"","(").concat(l.arguments.map(function(c){return"".concat(c.key,": ").concat(r.toString(c))}).join(", "),") => ").concat(r.toString(l.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(r){return JSON.stringify(r)}).join(" | ")},oneOf:function(e){var r=this;return e.oneOf.map(function(o){return r.getValidClassName(o)||r.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},i=function(e){var r=useState(function(){return M.toString(e)}),o=_slicedToArray(r,2),h=o[0],l=o[1];return useEffect(function(){l(M.toString(e))},[e]),_jsx("code",{children:h})},j=function(e){var r,o=useRouteMeta(),h=o.frontmatter,l=useAtomAssets(),c=l.components,f=e.id||h.atomId,_=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=c==null?void 0:c[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:_.formatMessage({id:"api.component.name"})}),_jsx("th",{children:_.formatMessage({id:"api.component.description"})}),_jsx("th",{children:_.formatMessage({id:"api.component.type"})}),_jsx("th",{children:_.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(r=p.propsConfig)!==null&&r!==void 0&&r.properties?Object.entries(p.propsConfig.properties).map(function(m){var v,d=_slicedToArray(m,2),a=d[0],s=d[1];return _jsxs("tr",{children:[_jsx("td",{children:a}),_jsx("td",{children:s.description||"--"}),_jsx("td",{children:_jsx(i,_objectSpread({},s))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(a)?_.formatMessage({id:"api.component.required"}):JSON.stringify(s.default)||"--"})})]},a)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:_.formatMessage({id:"api.component.".concat(c?"not.found":"unavailable")},{id:f})})})})]})})},P=null},53267:function(S,x,t){var y=t(39114),E=t(35250),A=function(T){return _jsx("span",_objectSpread({className:"dumi-default-badge"},T))},D=null},33296:function(S,x,t){var y=t(39114),E=t(70125),A=t(11221),D=t(14315),O=t(70079),T=t(35250),L=null,C=function(j){var P=j.children,n=_objectWithoutProperties(j,L),e=useRef(null),r=useState(!1),o=_slicedToArray(r,2),h=o[0],l=o[1],c=useState(!1),f=_slicedToArray(c,2),_=f[0],p=f[1];return useEffect(function(){var m=e.current;if(m){var v=throttle(function(){l(m.scrollLeft>0),p(m.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",s=[];return[].concat(d).forEach(function(u,I){var g="".concat(a?"".concat(a,"-"):"").concat(I);switch(u==null?void 0:u.type){case"ul":{var b,N=((b=s[s.length-1])===null||b===void 0?void 0:b.children)||s,R=r(u.props.children||[],g);N.push.apply(N,T()(R));break}case"li":{var U=r(u.props.children,g);s.push({title:[].concat(u.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),s}var o=function(a){var s=(0,n.useState)(r(a)),u=D()(s,2),I=u[0],g=u[1];return(0,n.useEffect)(function(){g(r(a))},[a]),I},h=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(L.r,{fill:"currentColor"})}):u?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(M.r,{fill:"currentColor"})})},l=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):u?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(i.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(j.r,{fill:"currentColor"})})})},c=function(){return{height:0,opacity:0}},f=function(a){var s=a.scrollHeight;return{height:s,opacity:1}},_=function(a){return{height:a?a.offsetHeight:0}},p=function(a,s){return(s==null?void 0:s.deadline)===!0||s.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:c,onEnterStart:c,onAppearActive:f,onEnterActive:f,onLeaveStart:_,onLeaveActive:c,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(d){var a=o(d.children),s=(0,n.createRef)(),u=function(g,b){var N=b.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||s.current.onNodeExpand(g,b)};return(0,e.jsx)(P.Z,{className:"dumi-default-tree",icon:h,ref:s,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:E()(E()({},m),{},{motionAppear:!1}),onClick:u,treeData:[{key:"0",title:d.title||"",children:a}],defaultExpandAll:!0,switcherIcon:l})}}}]); diff --git a/docs/docs__api__utils__get-snap.md.075fca71.async.js b/docs/docs__api__utils__get-snap.md.075fca71.async.js new file mode 100644 index 00000000..d8cdc878 --- /dev/null +++ b/docs/docs__api__utils__get-snap.md.075fca71.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[1231],{94968:function(L,j,n){n.r(j);var y=n(4311),D=n(53267),A=n(82197),O=n(12620),x=n(74692),T=n(33296),S=n(12133),C=n(54996),M=n(70079),t=n(35250);function E(){var P=(0,C.eL)(),r=P.texts;return(0,t.jsx)(C.dY,{children:(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"markdown",children:[(0,t.jsxs)("h1",{id:"getsnap",children:[(0,t.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#getsnap",children:(0,t.jsx)("span",{className:"icon icon-link"})}),"getSnap"]}),(0,t.jsx)("p",{children:r[0].value}),(0,t.jsx)(x.Z,{lang:"ts",children:r[1].value}),(0,t.jsxs)("h2",{id:"\u57FA\u7840\u4F7F\u7528",children:[(0,t.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#\u57FA\u7840\u4F7F\u7528",children:(0,t.jsx)("span",{className:"icon icon-link"})}),"\u57FA\u7840\u4F7F\u7528"]}),(0,t.jsxs)("h3",{id:"\u83B7\u53D6\u524D\u4E00\u523B\u5FEB\u7167",children:[(0,t.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#\u83B7\u53D6\u524D\u4E00\u523B\u5FEB\u7167",children:(0,t.jsx)("span",{className:"icon icon-link"})}),"\u83B7\u53D6\u524D\u4E00\u523B\u5FEB\u7167"]}),(0,t.jsx)(x.Z,{lang:"ts",children:r[2].value}),(0,t.jsxs)("h3",{id:"\u83B7\u53D6\u6700\u65B0\u5FEB\u7167",children:[(0,t.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#\u83B7\u53D6\u6700\u65B0\u5FEB\u7167",children:(0,t.jsx)("span",{className:"icon icon-link"})}),"\u83B7\u53D6\u6700\u65B0\u5FEB\u7167"]}),(0,t.jsx)(x.Z,{lang:"ts",children:r[3].value})]})})})}j.default=E},4311:function(L,j,n){var y=n(39114),D=n.n(y),A=n(70125),O=n.n(A),x=n(54996),T=n(70079),S=n(33296),C=n(35250),M={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var s=this,o=[];return Object.entries(e.properties||{}).forEach(function(h){var c,u=O()(h,2),f=u[0],_=u[1];o.push("".concat(f).concat((c=e.required)!==null&&c!==void 0&&c.includes(f)?"":"?",": ").concat(_.type==="object"?"object":s.toString(_)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var s=this.getValidClassName(e.items);return s?"".concat(s,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var s=this,o=e.signature;if(!o)return"Function";var h="oneOf"in o?o.oneOf:[o];return h.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(u){return"".concat(u.key,": ").concat(s.toString(u))}).join(", "),") => ").concat(s.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(s){return JSON.stringify(s)}).join(" | ")},oneOf:function(e){var s=this;return e.oneOf.map(function(o){return s.getValidClassName(o)||s.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},t=function(e){var s=useState(function(){return M.toString(e)}),o=_slicedToArray(s,2),h=o[0],c=o[1];return useEffect(function(){c(M.toString(e))},[e]),_jsx("code",{children:h})},E=function(e){var s,o=useRouteMeta(),h=o.frontmatter,c=useAtomAssets(),u=c.components,f=e.id||h.atomId,_=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=u==null?void 0:u[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:_.formatMessage({id:"api.component.name"})}),_jsx("th",{children:_.formatMessage({id:"api.component.description"})}),_jsx("th",{children:_.formatMessage({id:"api.component.type"})}),_jsx("th",{children:_.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(s=p.propsConfig)!==null&&s!==void 0&&s.properties?Object.entries(p.propsConfig.properties).map(function(m){var v,d=_slicedToArray(m,2),i=d[0],a=d[1];return _jsxs("tr",{children:[_jsx("td",{children:i}),_jsx("td",{children:a.description||"--"}),_jsx("td",{children:_jsx(t,_objectSpread({},a))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(i)?_.formatMessage({id:"api.component.required"}):JSON.stringify(a.default)||"--"})})]},i)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:_.formatMessage({id:"api.component.".concat(u?"not.found":"unavailable")},{id:f})})})})]})})},P=null},53267:function(L,j,n){var y=n(39114),D=n(35250),A=function(T){return _jsx("span",_objectSpread({className:"dumi-default-badge"},T))},O=null},33296:function(L,j,n){var y=n(39114),D=n(70125),A=n(11221),O=n(14315),x=n(70079),T=n(35250),S=null,C=function(E){var P=E.children,r=_objectWithoutProperties(E,S),e=useRef(null),s=useState(!1),o=_slicedToArray(s,2),h=o[0],c=o[1],u=useState(!1),f=_slicedToArray(u,2),_=f[0],p=f[1];return useEffect(function(){var m=e.current;if(m){var v=throttle(function(){c(m.scrollLeft>0),p(m.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",a=[];return[].concat(d).forEach(function(l,B){var g="".concat(i?"".concat(i,"-"):"").concat(B);switch(l==null?void 0:l.type){case"ul":{var b,I=((b=a[a.length-1])===null||b===void 0?void 0:b.children)||a,U=s(l.props.children||[],g);I.push.apply(I,T()(U));break}case"li":{var N=s(l.props.children,g);a.push({title:[].concat(l.props.children).filter(function(R){return R.type!=="ul"}),key:g,children:N,isLeaf:!N.length});break}default:}}),a}var o=function(i){var a=(0,r.useState)(s(i)),l=O()(a,2),B=l[0],g=l[1];return(0,r.useEffect)(function(){g(s(i))},[i]),B},h=function(i){var a=i.isLeaf,l=i.expanded;return a?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(S.r,{fill:"currentColor"})}):l?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(M.r,{fill:"currentColor"})})},c=function(i){var a=i.isLeaf,l=i.expanded;return a?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):l?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(t.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(E.r,{fill:"currentColor"})})})},u=function(){return{height:0,opacity:0}},f=function(i){var a=i.scrollHeight;return{height:a,opacity:1}},_=function(i){return{height:i?i.offsetHeight:0}},p=function(i,a){return(a==null?void 0:a.deadline)===!0||a.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:u,onEnterStart:u,onAppearActive:f,onEnterActive:f,onLeaveStart:_,onLeaveActive:u,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(d){var i=o(d.children),a=(0,r.createRef)(),l=function(g,b){var I=b.isLeaf;I||g.shiftKey||g.metaKey||g.ctrlKey||a.current.onNodeExpand(g,b)};return(0,e.jsx)(P.Z,{className:"dumi-default-tree",icon:h,ref:a,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:D()(D()({},m),{},{motionAppear:!1}),onClick:l,treeData:[{key:"0",title:d.title||"",children:i}],defaultExpandAll:!0,switcherIcon:c})}}}]); diff --git a/docs/docs__api__utils__get-snap.md.2d55288c.async.js b/docs/docs__api__utils__get-snap.md.2d55288c.async.js deleted file mode 100644 index 2ec80d8b..00000000 --- a/docs/docs__api__utils__get-snap.md.2d55288c.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[1231],{94968:function(L,x,t){t.r(x);var E=t(4311),j=t(53267),D=t(82197),A=t(12620),S=t(74692),O=t(33296),b=t(12133),T=t(54996),C=t(70079),d=t(35250);function y(){var M=(0,T.eL)(),a=M.texts;return(0,d.jsx)(T.dY,{children:(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{className:"markdown",children:(0,d.jsxs)("h1",{id:"getsnap",children:[(0,d.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#getsnap",children:(0,d.jsx)("span",{className:"icon icon-link"})}),"getSnap"]})})})})}x.default=y},4311:function(L,x,t){var E=t(39114),j=t.n(E),D=t(70125),A=t.n(D),S=t(54996),O=t(70079),b=t(33296),T=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var n=this,o=[];return Object.entries(e.properties||{}).forEach(function(m){var c,i=A()(m,2),f=i[0],u=i[1];o.push("".concat(f).concat((c=e.required)!==null&&c!==void 0&&c.includes(f)?"":"?",": ").concat(u.type==="object"?"object":n.toString(u)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var n=this.getValidClassName(e.items);return n?"".concat(n,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var n=this,o=e.signature;if(!o)return"Function";var m="oneOf"in o?o.oneOf:[o];return m.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(i){return"".concat(i.key,": ").concat(n.toString(i))}).join(", "),") => ").concat(n.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(n){return JSON.stringify(n)}).join(" | ")},oneOf:function(e){var n=this;return e.oneOf.map(function(o){return n.getValidClassName(o)||n.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},d=function(e){var n=useState(function(){return C.toString(e)}),o=_slicedToArray(n,2),m=o[0],c=o[1];return useEffect(function(){c(C.toString(e))},[e]),_jsx("code",{children:m})},y=function(e){var n,o=useRouteMeta(),m=o.frontmatter,c=useAtomAssets(),i=c.components,f=e.id||m.atomId,u=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=i==null?void 0:i[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:u.formatMessage({id:"api.component.name"})}),_jsx("th",{children:u.formatMessage({id:"api.component.description"})}),_jsx("th",{children:u.formatMessage({id:"api.component.type"})}),_jsx("th",{children:u.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(n=p.propsConfig)!==null&&n!==void 0&&n.properties?Object.entries(p.propsConfig.properties).map(function(h){var v,_=_slicedToArray(h,2),s=_[0],r=_[1];return _jsxs("tr",{children:[_jsx("td",{children:s}),_jsx("td",{children:r.description||"--"}),_jsx("td",{children:_jsx(d,_objectSpread({},r))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(s)?u.formatMessage({id:"api.component.required"}):JSON.stringify(r.default)||"--"})})]},s)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:u.formatMessage({id:"api.component.".concat(i?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(L,x,t){var E=t(39114),j=t(35250),D=function(O){return _jsx("span",_objectSpread({className:"dumi-default-badge"},O))},A=null},33296:function(L,x,t){var E=t(39114),j=t(70125),D=t(11221),A=t(14315),S=t(70079),O=t(35250),b=null,T=function(y){var M=y.children,a=_objectWithoutProperties(y,b),e=useRef(null),n=useState(!1),o=_slicedToArray(n,2),m=o[0],c=o[1],i=useState(!1),f=_slicedToArray(i,2),u=f[0],p=f[1];return useEffect(function(){var h=e.current;if(h){var v=throttle(function(){c(h.scrollLeft>0),p(h.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",r=[];return[].concat(_).forEach(function(l,I){var g="".concat(s?"".concat(s,"-"):"").concat(I);switch(l==null?void 0:l.type){case"ul":{var P,N=((P=r[r.length-1])===null||P===void 0?void 0:P.children)||r,R=n(l.props.children||[],g);N.push.apply(N,O()(R));break}case"li":{var U=n(l.props.children,g);r.push({title:[].concat(l.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),r}var o=function(s){var r=(0,a.useState)(n(s)),l=A()(r,2),I=l[0],g=l[1];return(0,a.useEffect)(function(){g(n(s))},[s]),I},m=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(b.r,{fill:"currentColor"})}):l?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(T.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},c=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):l?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(d.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})})})},i=function(){return{height:0,opacity:0}},f=function(s){var r=s.scrollHeight;return{height:r,opacity:1}},u=function(s){return{height:s?s.offsetHeight:0}},p=function(s,r){return(r==null?void 0:r.deadline)===!0||r.propertyName==="height"},h={motionName:"ant-motion-collapse",onAppearStart:i,onEnterStart:i,onAppearActive:f,onEnterActive:f,onLeaveStart:u,onLeaveActive:i,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(_){var s=o(_.children),r=(0,a.createRef)(),l=function(g,P){var N=P.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||r.current.onNodeExpand(g,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:m,ref:r,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:j()(j()({},h),{},{motionAppear:!1}),onClick:l,treeData:[{key:"0",title:_.title||"",children:s}],defaultExpandAll:!0,switcherIcon:c})}}}]); diff --git a/docs/docs__api__utils__index.md.9eb84100.async.js b/docs/docs__api__utils__index.md.9eb84100.async.js deleted file mode 100644 index 0b247469..00000000 --- a/docs/docs__api__utils__index.md.9eb84100.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[2591],{65212:function(S,x,t){t.r(x);var E=t(4311),j=t(53267),D=t(82197),A=t(12620),b=t(74692),O=t(33296),L=t(12133),T=t(54996),C=t(70079),d=t(35250);function y(){var M=(0,T.eL)(),a=M.texts;return(0,d.jsx)(T.dY,{children:(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{className:"markdown",children:(0,d.jsxs)("h1",{id:"\u5DE5\u5177",children:[(0,d.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#\u5DE5\u5177",children:(0,d.jsx)("span",{className:"icon icon-link"})}),"\u5DE5\u5177"]})})})})}x.default=y},4311:function(S,x,t){var E=t(39114),j=t.n(E),D=t(70125),A=t.n(D),b=t(54996),O=t(70079),L=t(33296),T=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var n=this,o=[];return Object.entries(e.properties||{}).forEach(function(m){var c,i=A()(m,2),f=i[0],u=i[1];o.push("".concat(f).concat((c=e.required)!==null&&c!==void 0&&c.includes(f)?"":"?",": ").concat(u.type==="object"?"object":n.toString(u)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var n=this.getValidClassName(e.items);return n?"".concat(n,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var n=this,o=e.signature;if(!o)return"Function";var m="oneOf"in o?o.oneOf:[o];return m.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(i){return"".concat(i.key,": ").concat(n.toString(i))}).join(", "),") => ").concat(n.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(n){return JSON.stringify(n)}).join(" | ")},oneOf:function(e){var n=this;return e.oneOf.map(function(o){return n.getValidClassName(o)||n.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},d=function(e){var n=useState(function(){return C.toString(e)}),o=_slicedToArray(n,2),m=o[0],c=o[1];return useEffect(function(){c(C.toString(e))},[e]),_jsx("code",{children:m})},y=function(e){var n,o=useRouteMeta(),m=o.frontmatter,c=useAtomAssets(),i=c.components,f=e.id||m.atomId,u=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=i==null?void 0:i[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:u.formatMessage({id:"api.component.name"})}),_jsx("th",{children:u.formatMessage({id:"api.component.description"})}),_jsx("th",{children:u.formatMessage({id:"api.component.type"})}),_jsx("th",{children:u.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(n=p.propsConfig)!==null&&n!==void 0&&n.properties?Object.entries(p.propsConfig.properties).map(function(h){var v,_=_slicedToArray(h,2),s=_[0],r=_[1];return _jsxs("tr",{children:[_jsx("td",{children:s}),_jsx("td",{children:r.description||"--"}),_jsx("td",{children:_jsx(d,_objectSpread({},r))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(s)?u.formatMessage({id:"api.component.required"}):JSON.stringify(r.default)||"--"})})]},s)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:u.formatMessage({id:"api.component.".concat(i?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(S,x,t){var E=t(39114),j=t(35250),D=function(O){return _jsx("span",_objectSpread({className:"dumi-default-badge"},O))},A=null},33296:function(S,x,t){var E=t(39114),j=t(70125),D=t(11221),A=t(14315),b=t(70079),O=t(35250),L=null,T=function(y){var M=y.children,a=_objectWithoutProperties(y,L),e=useRef(null),n=useState(!1),o=_slicedToArray(n,2),m=o[0],c=o[1],i=useState(!1),f=_slicedToArray(i,2),u=f[0],p=f[1];return useEffect(function(){var h=e.current;if(h){var v=throttle(function(){c(h.scrollLeft>0),p(h.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",r=[];return[].concat(_).forEach(function(l,I){var g="".concat(s?"".concat(s,"-"):"").concat(I);switch(l==null?void 0:l.type){case"ul":{var P,N=((P=r[r.length-1])===null||P===void 0?void 0:P.children)||r,R=n(l.props.children||[],g);N.push.apply(N,O()(R));break}case"li":{var U=n(l.props.children,g);r.push({title:[].concat(l.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),r}var o=function(s){var r=(0,a.useState)(n(s)),l=A()(r,2),I=l[0],g=l[1];return(0,a.useEffect)(function(){g(n(s))},[s]),I},m=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(L.r,{fill:"currentColor"})}):l?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(T.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},c=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):l?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(d.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})})})},i=function(){return{height:0,opacity:0}},f=function(s){var r=s.scrollHeight;return{height:r,opacity:1}},u=function(s){return{height:s?s.offsetHeight:0}},p=function(s,r){return(r==null?void 0:r.deadline)===!0||r.propertyName==="height"},h={motionName:"ant-motion-collapse",onAppearStart:i,onEnterStart:i,onAppearActive:f,onEnterActive:f,onLeaveStart:u,onLeaveActive:i,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(_){var s=o(_.children),r=(0,a.createRef)(),l=function(g,P){var N=P.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||r.current.onNodeExpand(g,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:m,ref:r,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:j()(j()({},h),{},{motionAppear:!1}),onClick:l,treeData:[{key:"0",title:_.title||"",children:s}],defaultExpandAll:!0,switcherIcon:c})}}}]); diff --git a/docs/docs__api__utils__index.md.c5b84568.async.js b/docs/docs__api__utils__index.md.c5b84568.async.js new file mode 100644 index 00000000..1ec51c6f --- /dev/null +++ b/docs/docs__api__utils__index.md.c5b84568.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[2591],{65212:function(L,g,r){r.r(g);var E=r(4311),D=r(53267),A=r(82197),O=r(12620),U=r(74692),T=r(33296),b=r(12133),l=r(54996),C=r(70079),n=r(35250);function y(){var M=(0,l.eL)(),e=M.texts;return(0,n.jsx)(l.dY,{children:(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"markdown",children:[(0,n.jsxs)("h1",{id:"\u5DE5\u5177",children:[(0,n.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#\u5DE5\u5177",children:(0,n.jsx)("span",{className:"icon icon-link"})}),"\u5DE5\u5177"]}),(0,n.jsx)("p",{children:e[0].value}),(0,n.jsxs)("ul",{children:[(0,n.jsxs)("li",{children:[(0,n.jsx)(l.rU,{to:"/api/utils/init",children:e[1].value}),e[2].value]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(l.rU,{to:"/api/utils/flush",children:e[3].value}),e[4].value,(0,n.jsx)("code",{children:e[5].value}),e[6].value]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(l.rU,{to:"/api/utils/reactive-desc",children:e[7].value}),e[8].value,(0,n.jsx)("code",{children:e[9].value}),e[10].value]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(l.rU,{to:"/api/utils/add-middleware",children:e[11].value}),e[12].value]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(l.rU,{to:"/api/utils/add-plugin",children:e[13].value}),e[14].value]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(l.rU,{to:"/api/utils/cst",children:e[15].value}),e[16].value]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(l.rU,{to:"/api/utils/get-atom",children:e[17].value}),e[18].value,(0,n.jsx)("code",{children:e[19].value}),e[20].value]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(l.rU,{to:"/api/utils/get-snap",children:e[21].value}),e[22].value,(0,n.jsx)("code",{children:e[23].value}),e[24].value]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(l.rU,{to:"/api/utils/get-action-loading",children:e[25].value}),e[26].value,(0,n.jsx)("code",{children:e[27].value}),e[28].value]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(l.rU,{to:"/api/utils/get-derive-loading",children:e[29].value}),e[30].value,(0,n.jsx)("code",{children:e[31].value}),e[32].value]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(l.rU,{to:"/api/utils/get-mutate-loading",children:e[33].value}),e[34].value,(0,n.jsx)("code",{children:e[35].value}),e[36].value]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(l.rU,{to:"/api/utils/is-atom",children:e[37].value}),e[38].value,(0,n.jsx)("code",{children:e[39].value}),e[40].value]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(l.rU,{to:"/api/utils/is-derived-atom",children:e[41].value}),e[42].value,(0,n.jsx)("code",{children:e[43].value}),e[44].value]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(l.rU,{to:"/api/utils/is-diff",children:e[45].value}),e[46].value]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(l.rU,{to:"/api/utils/shallow-compare",children:e[47].value}),e[48].value]})]})]})})})}g.default=y},4311:function(L,g,r){var E=r(39114),D=r.n(E),A=r(70125),O=r.n(A),U=r(54996),T=r(70079),b=r(33296),l=r(35250),C={toString:function(t){return typeof t.type=="string"&&t.type in this?"enum"in t?this.enum(t):this[t.type](t):t.type?this.getValidClassName(t)||t.type:"const"in t?"".concat(t.const):"oneOf"in t?this.oneOf(t):"unknown"},string:function(t){return t.type},number:function(t){return t.type},boolean:function(t){return t.type},any:function(t){return t.type},object:function(t){var s=this,o=[];return Object.entries(t.properties||{}).forEach(function(v){var u,c=O()(v,2),f=c[0],h=c[1];o.push("".concat(f).concat((u=t.required)!==null&&u!==void 0&&u.includes(f)?"":"?",": ").concat(h.type==="object"?"object":s.toString(h)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(t){if(t.items){var s=this.getValidClassName(t.items);return s?"".concat(s,"[]"):"".concat(this.toString(t.items),"[]")}return"any[]"},element:function(t){return"<".concat(t.componentName," />")},function:function(t){var s=this,o=t.signature;if(!o)return"Function";var v="oneOf"in o?o.oneOf:[o];return v.map(function(u){return"".concat(u.isAsync?"async ":"","(").concat(u.arguments.map(function(c){return"".concat(c.key,": ").concat(s.toString(c))}).join(", "),") => ").concat(s.toString(u.returnType))}).join(" | ")},dom:function(t){return t.className||"DOM"},enum:function(t){return t.enum.map(function(s){return JSON.stringify(s)}).join(" | ")},oneOf:function(t){var s=this;return t.oneOf.map(function(o){return s.getValidClassName(o)||s.toString(o)}).join(" | ")},getValidClassName:function(t){return"className"in t&&typeof t.className=="string"&&t.className!=="__type"?t.className:null}},n=function(t){var s=useState(function(){return C.toString(t)}),o=_slicedToArray(s,2),v=o[0],u=o[1];return useEffect(function(){u(C.toString(t))},[t]),_jsx("code",{children:v})},y=function(t){var s,o=useRouteMeta(),v=o.frontmatter,u=useAtomAssets(),c=u.components,f=t.id||v.atomId,h=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=c==null?void 0:c[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:h.formatMessage({id:"api.component.name"})}),_jsx("th",{children:h.formatMessage({id:"api.component.description"})}),_jsx("th",{children:h.formatMessage({id:"api.component.type"})}),_jsx("th",{children:h.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(s=p.propsConfig)!==null&&s!==void 0&&s.properties?Object.entries(p.propsConfig.properties).map(function(m){var x,_=_slicedToArray(m,2),i=_[0],a=_[1];return _jsxs("tr",{children:[_jsx("td",{children:i}),_jsx("td",{children:a.description||"--"}),_jsx("td",{children:_jsx(n,_objectSpread({},a))}),_jsx("td",{children:_jsx("code",{children:(x=p.propsConfig.required)!==null&&x!==void 0&&x.includes(i)?h.formatMessage({id:"api.component.required"}):JSON.stringify(a.default)||"--"})})]},i)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:h.formatMessage({id:"api.component.".concat(c?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(L,g,r){var E=r(39114),D=r(35250),A=function(T){return _jsx("span",_objectSpread({className:"dumi-default-badge"},T))},O=null},33296:function(L,g,r){var E=r(39114),D=r(70125),A=r(11221),O=r(14315),U=r(70079),T=r(35250),b=null,l=function(y){var M=y.children,e=_objectWithoutProperties(y,b),t=useRef(null),s=useState(!1),o=_slicedToArray(s,2),v=o[0],u=o[1],c=useState(!1),f=_slicedToArray(c,2),h=f[0],p=f[1];return useEffect(function(){var m=t.current;if(m){var x=throttle(function(){u(m.scrollLeft>0),p(m.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",a=[];return[].concat(_).forEach(function(d,S){var j="".concat(i?"".concat(i,"-"):"").concat(S);switch(d==null?void 0:d.type){case"ul":{var P,I=((P=a[a.length-1])===null||P===void 0?void 0:P.children)||a,R=s(d.props.children||[],j);I.push.apply(I,T()(R));break}case"li":{var N=s(d.props.children,j);a.push({title:[].concat(d.props.children).filter(function(B){return B.type!=="ul"}),key:j,children:N,isLeaf:!N.length});break}default:}}),a}var o=function(i){var a=(0,e.useState)(s(i)),d=O()(a,2),S=d[0],j=d[1];return(0,e.useEffect)(function(){j(s(i))},[i]),S},v=function(i){var a=i.isLeaf,d=i.expanded;return a?(0,t.jsx)("span",{className:"dumi-default-tree-icon",children:(0,t.jsx)(b.r,{fill:"currentColor"})}):d?(0,t.jsx)("span",{className:"dumi-default-tree-icon",children:(0,t.jsx)(l.r,{fill:"currentColor"})}):(0,t.jsx)("span",{className:"dumi-default-tree-icon",children:(0,t.jsx)(C.r,{fill:"currentColor"})})},u=function(i){var a=i.isLeaf,d=i.expanded;return a?(0,t.jsx)("span",{className:"tree-switcher-leaf-line"}):d?(0,t.jsx)("span",{className:"tree-switcher-line-icon",children:(0,t.jsx)("span",{className:"dumi-default-tree-icon",children:(0,t.jsx)(n.r,{fill:"currentColor"})})}):(0,t.jsx)("span",{className:"tree-switcher-line-icon",children:(0,t.jsx)("span",{className:"dumi-default-tree-icon",children:(0,t.jsx)(y.r,{fill:"currentColor"})})})},c=function(){return{height:0,opacity:0}},f=function(i){var a=i.scrollHeight;return{height:a,opacity:1}},h=function(i){return{height:i?i.offsetHeight:0}},p=function(i,a){return(a==null?void 0:a.deadline)===!0||a.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:c,onEnterStart:c,onAppearActive:f,onEnterActive:f,onLeaveStart:h,onLeaveActive:c,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},x=function(_){var i=o(_.children),a=(0,e.createRef)(),d=function(j,P){var I=P.isLeaf;I||j.shiftKey||j.metaKey||j.ctrlKey||a.current.onNodeExpand(j,P)};return(0,t.jsx)(M.Z,{className:"dumi-default-tree",icon:v,ref:a,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:D()(D()({},m),{},{motionAppear:!1}),onClick:d,treeData:[{key:"0",title:_.title||"",children:i}],defaultExpandAll:!0,switcherIcon:u})}}}]); diff --git a/docs/docs__api__utils__init.md.580754bc.async.js b/docs/docs__api__utils__init.md.580754bc.async.js deleted file mode 100644 index cacae948..00000000 --- a/docs/docs__api__utils__init.md.580754bc.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[421],{63688:function(S,x,t){t.r(x);var E=t(4311),j=t(53267),D=t(82197),A=t(12620),b=t(74692),O=t(33296),L=t(12133),T=t(54996),C=t(70079),d=t(35250);function y(){var M=(0,T.eL)(),a=M.texts;return(0,d.jsx)(T.dY,{children:(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{className:"markdown",children:(0,d.jsxs)("h1",{id:"init",children:[(0,d.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#init",children:(0,d.jsx)("span",{className:"icon icon-link"})}),"init"]})})})})}x.default=y},4311:function(S,x,t){var E=t(39114),j=t.n(E),D=t(70125),A=t.n(D),b=t(54996),O=t(70079),L=t(33296),T=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var n=this,o=[];return Object.entries(e.properties||{}).forEach(function(m){var c,i=A()(m,2),f=i[0],u=i[1];o.push("".concat(f).concat((c=e.required)!==null&&c!==void 0&&c.includes(f)?"":"?",": ").concat(u.type==="object"?"object":n.toString(u)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var n=this.getValidClassName(e.items);return n?"".concat(n,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var n=this,o=e.signature;if(!o)return"Function";var m="oneOf"in o?o.oneOf:[o];return m.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(i){return"".concat(i.key,": ").concat(n.toString(i))}).join(", "),") => ").concat(n.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(n){return JSON.stringify(n)}).join(" | ")},oneOf:function(e){var n=this;return e.oneOf.map(function(o){return n.getValidClassName(o)||n.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},d=function(e){var n=useState(function(){return C.toString(e)}),o=_slicedToArray(n,2),m=o[0],c=o[1];return useEffect(function(){c(C.toString(e))},[e]),_jsx("code",{children:m})},y=function(e){var n,o=useRouteMeta(),m=o.frontmatter,c=useAtomAssets(),i=c.components,f=e.id||m.atomId,u=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=i==null?void 0:i[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:u.formatMessage({id:"api.component.name"})}),_jsx("th",{children:u.formatMessage({id:"api.component.description"})}),_jsx("th",{children:u.formatMessage({id:"api.component.type"})}),_jsx("th",{children:u.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(n=p.propsConfig)!==null&&n!==void 0&&n.properties?Object.entries(p.propsConfig.properties).map(function(h){var v,_=_slicedToArray(h,2),s=_[0],r=_[1];return _jsxs("tr",{children:[_jsx("td",{children:s}),_jsx("td",{children:r.description||"--"}),_jsx("td",{children:_jsx(d,_objectSpread({},r))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(s)?u.formatMessage({id:"api.component.required"}):JSON.stringify(r.default)||"--"})})]},s)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:u.formatMessage({id:"api.component.".concat(i?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(S,x,t){var E=t(39114),j=t(35250),D=function(O){return _jsx("span",_objectSpread({className:"dumi-default-badge"},O))},A=null},33296:function(S,x,t){var E=t(39114),j=t(70125),D=t(11221),A=t(14315),b=t(70079),O=t(35250),L=null,T=function(y){var M=y.children,a=_objectWithoutProperties(y,L),e=useRef(null),n=useState(!1),o=_slicedToArray(n,2),m=o[0],c=o[1],i=useState(!1),f=_slicedToArray(i,2),u=f[0],p=f[1];return useEffect(function(){var h=e.current;if(h){var v=throttle(function(){c(h.scrollLeft>0),p(h.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",r=[];return[].concat(_).forEach(function(l,I){var g="".concat(s?"".concat(s,"-"):"").concat(I);switch(l==null?void 0:l.type){case"ul":{var P,N=((P=r[r.length-1])===null||P===void 0?void 0:P.children)||r,R=n(l.props.children||[],g);N.push.apply(N,O()(R));break}case"li":{var U=n(l.props.children,g);r.push({title:[].concat(l.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),r}var o=function(s){var r=(0,a.useState)(n(s)),l=A()(r,2),I=l[0],g=l[1];return(0,a.useEffect)(function(){g(n(s))},[s]),I},m=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(L.r,{fill:"currentColor"})}):l?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(T.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},c=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):l?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(d.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})})})},i=function(){return{height:0,opacity:0}},f=function(s){var r=s.scrollHeight;return{height:r,opacity:1}},u=function(s){return{height:s?s.offsetHeight:0}},p=function(s,r){return(r==null?void 0:r.deadline)===!0||r.propertyName==="height"},h={motionName:"ant-motion-collapse",onAppearStart:i,onEnterStart:i,onAppearActive:f,onEnterActive:f,onLeaveStart:u,onLeaveActive:i,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(_){var s=o(_.children),r=(0,a.createRef)(),l=function(g,P){var N=P.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||r.current.onNodeExpand(g,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:m,ref:r,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:j()(j()({},h),{},{motionAppear:!1}),onClick:l,treeData:[{key:"0",title:_.title||"",children:s}],defaultExpandAll:!0,switcherIcon:c})}}}]); diff --git a/docs/docs__api__utils__init.md.c59fcada.async.js b/docs/docs__api__utils__init.md.c59fcada.async.js new file mode 100644 index 00000000..2ae8a29a --- /dev/null +++ b/docs/docs__api__utils__init.md.c59fcada.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[421],{63688:function(S,x,n){n.r(x);var E=n(4311),A=n(53267),D=n(82197),O=n(12620),j=n(74692),T=n(33296),L=n(12133),C=n(54996),M=n(70079),r=n(35250);function y(){var P=(0,C.eL)(),t=P.texts;return(0,r.jsx)(C.dY,{children:(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"markdown",children:[(0,r.jsxs)("h1",{id:"init",children:[(0,r.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#init",children:(0,r.jsx)("span",{className:"icon icon-link"})}),"init"]}),(0,r.jsx)("p",{children:t[0].value}),(0,r.jsx)("p",{children:t[1].value}),(0,r.jsx)(j.Z,{lang:"ts",children:t[2].value}),(0,r.jsxs)("h2",{id:"\u57FA\u7840\u4F7F\u7528",children:[(0,r.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#\u57FA\u7840\u4F7F\u7528",children:(0,r.jsx)("span",{className:"icon icon-link"})}),"\u57FA\u7840\u4F7F\u7528"]}),(0,r.jsxs)("h3",{id:"isrootrender",children:[(0,r.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#isrootrender",children:(0,r.jsx)("span",{className:"icon icon-link"})}),"isRootRender"]}),(0,r.jsxs)("p",{children:[t[3].value,(0,r.jsx)("code",{children:t[4].value}),t[5].value]}),(0,r.jsxs)("p",{children:[t[6].value,(0,r.jsx)("code",{children:t[7].value}),t[8].value]}),(0,r.jsx)(j.Z,{lang:"ts",children:t[9].value})]})})})}x.default=y},4311:function(S,x,n){var E=n(39114),A=n.n(E),D=n(70125),O=n.n(D),j=n(54996),T=n(70079),L=n(33296),C=n(35250),M={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var s=this,o=[];return Object.entries(e.properties||{}).forEach(function(h){var c,l=O()(h,2),f=l[0],_=l[1];o.push("".concat(f).concat((c=e.required)!==null&&c!==void 0&&c.includes(f)?"":"?",": ").concat(_.type==="object"?"object":s.toString(_)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var s=this.getValidClassName(e.items);return s?"".concat(s,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var s=this,o=e.signature;if(!o)return"Function";var h="oneOf"in o?o.oneOf:[o];return h.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(l){return"".concat(l.key,": ").concat(s.toString(l))}).join(", "),") => ").concat(s.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(s){return JSON.stringify(s)}).join(" | ")},oneOf:function(e){var s=this;return e.oneOf.map(function(o){return s.getValidClassName(o)||s.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},r=function(e){var s=useState(function(){return M.toString(e)}),o=_slicedToArray(s,2),h=o[0],c=o[1];return useEffect(function(){c(M.toString(e))},[e]),_jsx("code",{children:h})},y=function(e){var s,o=useRouteMeta(),h=o.frontmatter,c=useAtomAssets(),l=c.components,f=e.id||h.atomId,_=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=l==null?void 0:l[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:_.formatMessage({id:"api.component.name"})}),_jsx("th",{children:_.formatMessage({id:"api.component.description"})}),_jsx("th",{children:_.formatMessage({id:"api.component.type"})}),_jsx("th",{children:_.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(s=p.propsConfig)!==null&&s!==void 0&&s.properties?Object.entries(p.propsConfig.properties).map(function(m){var v,d=_slicedToArray(m,2),i=d[0],a=d[1];return _jsxs("tr",{children:[_jsx("td",{children:i}),_jsx("td",{children:a.description||"--"}),_jsx("td",{children:_jsx(r,_objectSpread({},a))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(i)?_.formatMessage({id:"api.component.required"}):JSON.stringify(a.default)||"--"})})]},i)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:_.formatMessage({id:"api.component.".concat(l?"not.found":"unavailable")},{id:f})})})})]})})},P=null},53267:function(S,x,n){var E=n(39114),A=n(35250),D=function(T){return _jsx("span",_objectSpread({className:"dumi-default-badge"},T))},O=null},33296:function(S,x,n){var E=n(39114),A=n(70125),D=n(11221),O=n(14315),j=n(70079),T=n(35250),L=null,C=function(y){var P=y.children,t=_objectWithoutProperties(y,L),e=useRef(null),s=useState(!1),o=_slicedToArray(s,2),h=o[0],c=o[1],l=useState(!1),f=_slicedToArray(l,2),_=f[0],p=f[1];return useEffect(function(){var m=e.current;if(m){var v=throttle(function(){c(m.scrollLeft>0),p(m.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",a=[];return[].concat(d).forEach(function(u,I){var g="".concat(i?"".concat(i,"-"):"").concat(I);switch(u==null?void 0:u.type){case"ul":{var b,N=((b=a[a.length-1])===null||b===void 0?void 0:b.children)||a,U=s(u.props.children||[],g);N.push.apply(N,T()(U));break}case"li":{var R=s(u.props.children,g);a.push({title:[].concat(u.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:R,isLeaf:!R.length});break}default:}}),a}var o=function(i){var a=(0,t.useState)(s(i)),u=O()(a,2),I=u[0],g=u[1];return(0,t.useEffect)(function(){g(s(i))},[i]),I},h=function(i){var a=i.isLeaf,u=i.expanded;return a?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(L.r,{fill:"currentColor"})}):u?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(M.r,{fill:"currentColor"})})},c=function(i){var a=i.isLeaf,u=i.expanded;return a?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):u?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(r.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})})})},l=function(){return{height:0,opacity:0}},f=function(i){var a=i.scrollHeight;return{height:a,opacity:1}},_=function(i){return{height:i?i.offsetHeight:0}},p=function(i,a){return(a==null?void 0:a.deadline)===!0||a.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:l,onEnterStart:l,onAppearActive:f,onEnterActive:f,onLeaveStart:_,onLeaveActive:l,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(d){var i=o(d.children),a=(0,t.createRef)(),u=function(g,b){var N=b.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||a.current.onNodeExpand(g,b)};return(0,e.jsx)(P.Z,{className:"dumi-default-tree",icon:h,ref:a,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:A()(A()({},m),{},{motionAppear:!1}),onClick:u,treeData:[{key:"0",title:d.title||"",children:i}],defaultExpandAll:!0,switcherIcon:c})}}}]); diff --git a/docs/docs__api__utils__is-atom.md.3c74cd55.async.js b/docs/docs__api__utils__is-atom.md.3c74cd55.async.js new file mode 100644 index 00000000..01da008a --- /dev/null +++ b/docs/docs__api__utils__is-atom.md.3c74cd55.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[1198],{90473:function(S,x,n){n.r(x);var E=n(4311),A=n(53267),D=n(82197),O=n(12620),j=n(74692),T=n(33296),L=n(12133),C=n(54996),M=n(70079),i=n(35250);function y(){var P=(0,C.eL)(),t=P.texts;return(0,i.jsx)(C.dY,{children:(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"markdown",children:[(0,i.jsxs)("h1",{id:"isatom",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#isatom",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"isAtom"]}),(0,i.jsxs)("p",{children:[t[0].value,(0,i.jsx)("code",{children:t[1].value}),t[2].value]}),(0,i.jsxs)("h2",{id:"\u57FA\u7840\u4F7F\u7528",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#\u57FA\u7840\u4F7F\u7528",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"\u57FA\u7840\u4F7F\u7528"]}),(0,i.jsx)(j.Z,{lang:"ts",children:t[3].value}),(0,i.jsxs)("p",{children:[t[4].value,(0,i.jsx)("code",{children:t[5].value}),t[6].value,(0,i.jsx)("code",{children:t[7].value})]}),(0,i.jsx)(j.Z,{lang:"ts",children:t[8].value})]})})})}x.default=y},4311:function(S,x,n){var E=n(39114),A=n.n(E),D=n(70125),O=n.n(D),j=n(54996),T=n(70079),L=n(33296),C=n(35250),M={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var r=this,o=[];return Object.entries(e.properties||{}).forEach(function(h){var c,l=O()(h,2),f=l[0],_=l[1];o.push("".concat(f).concat((c=e.required)!==null&&c!==void 0&&c.includes(f)?"":"?",": ").concat(_.type==="object"?"object":r.toString(_)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var r=this.getValidClassName(e.items);return r?"".concat(r,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var r=this,o=e.signature;if(!o)return"Function";var h="oneOf"in o?o.oneOf:[o];return h.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(l){return"".concat(l.key,": ").concat(r.toString(l))}).join(", "),") => ").concat(r.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(r){return JSON.stringify(r)}).join(" | ")},oneOf:function(e){var r=this;return e.oneOf.map(function(o){return r.getValidClassName(o)||r.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},i=function(e){var r=useState(function(){return M.toString(e)}),o=_slicedToArray(r,2),h=o[0],c=o[1];return useEffect(function(){c(M.toString(e))},[e]),_jsx("code",{children:h})},y=function(e){var r,o=useRouteMeta(),h=o.frontmatter,c=useAtomAssets(),l=c.components,f=e.id||h.atomId,_=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=l==null?void 0:l[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:_.formatMessage({id:"api.component.name"})}),_jsx("th",{children:_.formatMessage({id:"api.component.description"})}),_jsx("th",{children:_.formatMessage({id:"api.component.type"})}),_jsx("th",{children:_.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(r=p.propsConfig)!==null&&r!==void 0&&r.properties?Object.entries(p.propsConfig.properties).map(function(m){var v,d=_slicedToArray(m,2),a=d[0],s=d[1];return _jsxs("tr",{children:[_jsx("td",{children:a}),_jsx("td",{children:s.description||"--"}),_jsx("td",{children:_jsx(i,_objectSpread({},s))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(a)?_.formatMessage({id:"api.component.required"}):JSON.stringify(s.default)||"--"})})]},a)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:_.formatMessage({id:"api.component.".concat(l?"not.found":"unavailable")},{id:f})})})})]})})},P=null},53267:function(S,x,n){var E=n(39114),A=n(35250),D=function(T){return _jsx("span",_objectSpread({className:"dumi-default-badge"},T))},O=null},33296:function(S,x,n){var E=n(39114),A=n(70125),D=n(11221),O=n(14315),j=n(70079),T=n(35250),L=null,C=function(y){var P=y.children,t=_objectWithoutProperties(y,L),e=useRef(null),r=useState(!1),o=_slicedToArray(r,2),h=o[0],c=o[1],l=useState(!1),f=_slicedToArray(l,2),_=f[0],p=f[1];return useEffect(function(){var m=e.current;if(m){var v=throttle(function(){c(m.scrollLeft>0),p(m.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",s=[];return[].concat(d).forEach(function(u,I){var g="".concat(a?"".concat(a,"-"):"").concat(I);switch(u==null?void 0:u.type){case"ul":{var b,N=((b=s[s.length-1])===null||b===void 0?void 0:b.children)||s,R=r(u.props.children||[],g);N.push.apply(N,T()(R));break}case"li":{var U=r(u.props.children,g);s.push({title:[].concat(u.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),s}var o=function(a){var s=(0,t.useState)(r(a)),u=O()(s,2),I=u[0],g=u[1];return(0,t.useEffect)(function(){g(r(a))},[a]),I},h=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(L.r,{fill:"currentColor"})}):u?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(M.r,{fill:"currentColor"})})},c=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):u?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(i.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})})})},l=function(){return{height:0,opacity:0}},f=function(a){var s=a.scrollHeight;return{height:s,opacity:1}},_=function(a){return{height:a?a.offsetHeight:0}},p=function(a,s){return(s==null?void 0:s.deadline)===!0||s.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:l,onEnterStart:l,onAppearActive:f,onEnterActive:f,onLeaveStart:_,onLeaveActive:l,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(d){var a=o(d.children),s=(0,t.createRef)(),u=function(g,b){var N=b.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||s.current.onNodeExpand(g,b)};return(0,e.jsx)(P.Z,{className:"dumi-default-tree",icon:h,ref:s,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:A()(A()({},m),{},{motionAppear:!1}),onClick:u,treeData:[{key:"0",title:d.title||"",children:a}],defaultExpandAll:!0,switcherIcon:c})}}}]); diff --git a/docs/docs__api__utils__is-atom.md.4373c414.async.js b/docs/docs__api__utils__is-atom.md.4373c414.async.js deleted file mode 100644 index ca658ae1..00000000 --- a/docs/docs__api__utils__is-atom.md.4373c414.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[1198],{90473:function(S,x,t){t.r(x);var E=t(4311),j=t(53267),A=t(82197),D=t(12620),b=t(74692),O=t(33296),L=t(12133),T=t(54996),C=t(70079),d=t(35250);function y(){var M=(0,T.eL)(),a=M.texts;return(0,d.jsx)(T.dY,{children:(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{className:"markdown",children:(0,d.jsxs)("h1",{id:"isatom",children:[(0,d.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#isatom",children:(0,d.jsx)("span",{className:"icon icon-link"})}),"isAtom"]})})})})}x.default=y},4311:function(S,x,t){var E=t(39114),j=t.n(E),A=t(70125),D=t.n(A),b=t(54996),O=t(70079),L=t(33296),T=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var n=this,o=[];return Object.entries(e.properties||{}).forEach(function(m){var c,i=D()(m,2),f=i[0],u=i[1];o.push("".concat(f).concat((c=e.required)!==null&&c!==void 0&&c.includes(f)?"":"?",": ").concat(u.type==="object"?"object":n.toString(u)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var n=this.getValidClassName(e.items);return n?"".concat(n,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var n=this,o=e.signature;if(!o)return"Function";var m="oneOf"in o?o.oneOf:[o];return m.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(i){return"".concat(i.key,": ").concat(n.toString(i))}).join(", "),") => ").concat(n.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(n){return JSON.stringify(n)}).join(" | ")},oneOf:function(e){var n=this;return e.oneOf.map(function(o){return n.getValidClassName(o)||n.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},d=function(e){var n=useState(function(){return C.toString(e)}),o=_slicedToArray(n,2),m=o[0],c=o[1];return useEffect(function(){c(C.toString(e))},[e]),_jsx("code",{children:m})},y=function(e){var n,o=useRouteMeta(),m=o.frontmatter,c=useAtomAssets(),i=c.components,f=e.id||m.atomId,u=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=i==null?void 0:i[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:u.formatMessage({id:"api.component.name"})}),_jsx("th",{children:u.formatMessage({id:"api.component.description"})}),_jsx("th",{children:u.formatMessage({id:"api.component.type"})}),_jsx("th",{children:u.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(n=p.propsConfig)!==null&&n!==void 0&&n.properties?Object.entries(p.propsConfig.properties).map(function(h){var v,_=_slicedToArray(h,2),s=_[0],r=_[1];return _jsxs("tr",{children:[_jsx("td",{children:s}),_jsx("td",{children:r.description||"--"}),_jsx("td",{children:_jsx(d,_objectSpread({},r))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(s)?u.formatMessage({id:"api.component.required"}):JSON.stringify(r.default)||"--"})})]},s)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:u.formatMessage({id:"api.component.".concat(i?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(S,x,t){var E=t(39114),j=t(35250),A=function(O){return _jsx("span",_objectSpread({className:"dumi-default-badge"},O))},D=null},33296:function(S,x,t){var E=t(39114),j=t(70125),A=t(11221),D=t(14315),b=t(70079),O=t(35250),L=null,T=function(y){var M=y.children,a=_objectWithoutProperties(y,L),e=useRef(null),n=useState(!1),o=_slicedToArray(n,2),m=o[0],c=o[1],i=useState(!1),f=_slicedToArray(i,2),u=f[0],p=f[1];return useEffect(function(){var h=e.current;if(h){var v=throttle(function(){c(h.scrollLeft>0),p(h.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",r=[];return[].concat(_).forEach(function(l,I){var g="".concat(s?"".concat(s,"-"):"").concat(I);switch(l==null?void 0:l.type){case"ul":{var P,N=((P=r[r.length-1])===null||P===void 0?void 0:P.children)||r,R=n(l.props.children||[],g);N.push.apply(N,O()(R));break}case"li":{var U=n(l.props.children,g);r.push({title:[].concat(l.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),r}var o=function(s){var r=(0,a.useState)(n(s)),l=D()(r,2),I=l[0],g=l[1];return(0,a.useEffect)(function(){g(n(s))},[s]),I},m=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(L.r,{fill:"currentColor"})}):l?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(T.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},c=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):l?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(d.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})})})},i=function(){return{height:0,opacity:0}},f=function(s){var r=s.scrollHeight;return{height:r,opacity:1}},u=function(s){return{height:s?s.offsetHeight:0}},p=function(s,r){return(r==null?void 0:r.deadline)===!0||r.propertyName==="height"},h={motionName:"ant-motion-collapse",onAppearStart:i,onEnterStart:i,onAppearActive:f,onEnterActive:f,onLeaveStart:u,onLeaveActive:i,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(_){var s=o(_.children),r=(0,a.createRef)(),l=function(g,P){var N=P.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||r.current.onNodeExpand(g,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:m,ref:r,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:j()(j()({},h),{},{motionAppear:!1}),onClick:l,treeData:[{key:"0",title:_.title||"",children:s}],defaultExpandAll:!0,switcherIcon:c})}}}]); diff --git a/docs/docs__api__utils__is-derived-atom.md.0c7d1362.async.js b/docs/docs__api__utils__is-derived-atom.md.0c7d1362.async.js deleted file mode 100644 index a480e226..00000000 --- a/docs/docs__api__utils__is-derived-atom.md.0c7d1362.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[649],{93960:function(S,x,t){t.r(x);var E=t(4311),j=t(53267),D=t(82197),A=t(12620),b=t(74692),O=t(33296),L=t(12133),T=t(54996),C=t(70079),d=t(35250);function y(){var M=(0,T.eL)(),a=M.texts;return(0,d.jsx)(T.dY,{children:(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{className:"markdown",children:(0,d.jsxs)("h1",{id:"isderivedatom",children:[(0,d.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#isderivedatom",children:(0,d.jsx)("span",{className:"icon icon-link"})}),"isDerivedAtom"]})})})})}x.default=y},4311:function(S,x,t){var E=t(39114),j=t.n(E),D=t(70125),A=t.n(D),b=t(54996),O=t(70079),L=t(33296),T=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var n=this,o=[];return Object.entries(e.properties||{}).forEach(function(m){var c,i=A()(m,2),f=i[0],u=i[1];o.push("".concat(f).concat((c=e.required)!==null&&c!==void 0&&c.includes(f)?"":"?",": ").concat(u.type==="object"?"object":n.toString(u)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var n=this.getValidClassName(e.items);return n?"".concat(n,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var n=this,o=e.signature;if(!o)return"Function";var m="oneOf"in o?o.oneOf:[o];return m.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(i){return"".concat(i.key,": ").concat(n.toString(i))}).join(", "),") => ").concat(n.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(n){return JSON.stringify(n)}).join(" | ")},oneOf:function(e){var n=this;return e.oneOf.map(function(o){return n.getValidClassName(o)||n.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},d=function(e){var n=useState(function(){return C.toString(e)}),o=_slicedToArray(n,2),m=o[0],c=o[1];return useEffect(function(){c(C.toString(e))},[e]),_jsx("code",{children:m})},y=function(e){var n,o=useRouteMeta(),m=o.frontmatter,c=useAtomAssets(),i=c.components,f=e.id||m.atomId,u=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=i==null?void 0:i[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:u.formatMessage({id:"api.component.name"})}),_jsx("th",{children:u.formatMessage({id:"api.component.description"})}),_jsx("th",{children:u.formatMessage({id:"api.component.type"})}),_jsx("th",{children:u.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(n=p.propsConfig)!==null&&n!==void 0&&n.properties?Object.entries(p.propsConfig.properties).map(function(h){var v,_=_slicedToArray(h,2),s=_[0],r=_[1];return _jsxs("tr",{children:[_jsx("td",{children:s}),_jsx("td",{children:r.description||"--"}),_jsx("td",{children:_jsx(d,_objectSpread({},r))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(s)?u.formatMessage({id:"api.component.required"}):JSON.stringify(r.default)||"--"})})]},s)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:u.formatMessage({id:"api.component.".concat(i?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(S,x,t){var E=t(39114),j=t(35250),D=function(O){return _jsx("span",_objectSpread({className:"dumi-default-badge"},O))},A=null},33296:function(S,x,t){var E=t(39114),j=t(70125),D=t(11221),A=t(14315),b=t(70079),O=t(35250),L=null,T=function(y){var M=y.children,a=_objectWithoutProperties(y,L),e=useRef(null),n=useState(!1),o=_slicedToArray(n,2),m=o[0],c=o[1],i=useState(!1),f=_slicedToArray(i,2),u=f[0],p=f[1];return useEffect(function(){var h=e.current;if(h){var v=throttle(function(){c(h.scrollLeft>0),p(h.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",r=[];return[].concat(_).forEach(function(l,I){var g="".concat(s?"".concat(s,"-"):"").concat(I);switch(l==null?void 0:l.type){case"ul":{var P,N=((P=r[r.length-1])===null||P===void 0?void 0:P.children)||r,R=n(l.props.children||[],g);N.push.apply(N,O()(R));break}case"li":{var U=n(l.props.children,g);r.push({title:[].concat(l.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),r}var o=function(s){var r=(0,a.useState)(n(s)),l=A()(r,2),I=l[0],g=l[1];return(0,a.useEffect)(function(){g(n(s))},[s]),I},m=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(L.r,{fill:"currentColor"})}):l?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(T.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},c=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):l?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(d.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})})})},i=function(){return{height:0,opacity:0}},f=function(s){var r=s.scrollHeight;return{height:r,opacity:1}},u=function(s){return{height:s?s.offsetHeight:0}},p=function(s,r){return(r==null?void 0:r.deadline)===!0||r.propertyName==="height"},h={motionName:"ant-motion-collapse",onAppearStart:i,onEnterStart:i,onAppearActive:f,onEnterActive:f,onLeaveStart:u,onLeaveActive:i,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(_){var s=o(_.children),r=(0,a.createRef)(),l=function(g,P){var N=P.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||r.current.onNodeExpand(g,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:m,ref:r,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:j()(j()({},h),{},{motionAppear:!1}),onClick:l,treeData:[{key:"0",title:_.title||"",children:s}],defaultExpandAll:!0,switcherIcon:c})}}}]); diff --git a/docs/docs__api__utils__is-derived-atom.md.9b0d0b73.async.js b/docs/docs__api__utils__is-derived-atom.md.9b0d0b73.async.js new file mode 100644 index 00000000..f1bd132f --- /dev/null +++ b/docs/docs__api__utils__is-derived-atom.md.9b0d0b73.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[649],{93960:function(S,x,n){n.r(x);var E=n(4311),A=n(53267),D=n(82197),O=n(12620),j=n(74692),T=n(33296),L=n(12133),C=n(54996),M=n(70079),i=n(35250);function y(){var P=(0,C.eL)(),t=P.texts;return(0,i.jsx)(C.dY,{children:(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"markdown",children:[(0,i.jsxs)("h1",{id:"isderivedatom",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#isderivedatom",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"isDerivedAtom"]}),(0,i.jsxs)("p",{children:[t[0].value,(0,i.jsx)("code",{children:t[1].value}),t[2].value]}),(0,i.jsxs)("h2",{id:"\u57FA\u7840\u4F7F\u7528",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#\u57FA\u7840\u4F7F\u7528",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"\u57FA\u7840\u4F7F\u7528"]}),(0,i.jsx)(j.Z,{lang:"ts",children:t[3].value}),(0,i.jsxs)("p",{children:[t[4].value,(0,i.jsx)("code",{children:t[5].value}),t[6].value,(0,i.jsx)("code",{children:t[7].value})]}),(0,i.jsx)(j.Z,{lang:"ts",children:t[8].value})]})})})}x.default=y},4311:function(S,x,n){var E=n(39114),A=n.n(E),D=n(70125),O=n.n(D),j=n(54996),T=n(70079),L=n(33296),C=n(35250),M={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var r=this,o=[];return Object.entries(e.properties||{}).forEach(function(h){var c,l=O()(h,2),f=l[0],_=l[1];o.push("".concat(f).concat((c=e.required)!==null&&c!==void 0&&c.includes(f)?"":"?",": ").concat(_.type==="object"?"object":r.toString(_)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var r=this.getValidClassName(e.items);return r?"".concat(r,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var r=this,o=e.signature;if(!o)return"Function";var h="oneOf"in o?o.oneOf:[o];return h.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(l){return"".concat(l.key,": ").concat(r.toString(l))}).join(", "),") => ").concat(r.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(r){return JSON.stringify(r)}).join(" | ")},oneOf:function(e){var r=this;return e.oneOf.map(function(o){return r.getValidClassName(o)||r.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},i=function(e){var r=useState(function(){return M.toString(e)}),o=_slicedToArray(r,2),h=o[0],c=o[1];return useEffect(function(){c(M.toString(e))},[e]),_jsx("code",{children:h})},y=function(e){var r,o=useRouteMeta(),h=o.frontmatter,c=useAtomAssets(),l=c.components,f=e.id||h.atomId,_=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=l==null?void 0:l[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:_.formatMessage({id:"api.component.name"})}),_jsx("th",{children:_.formatMessage({id:"api.component.description"})}),_jsx("th",{children:_.formatMessage({id:"api.component.type"})}),_jsx("th",{children:_.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(r=p.propsConfig)!==null&&r!==void 0&&r.properties?Object.entries(p.propsConfig.properties).map(function(m){var v,d=_slicedToArray(m,2),a=d[0],s=d[1];return _jsxs("tr",{children:[_jsx("td",{children:a}),_jsx("td",{children:s.description||"--"}),_jsx("td",{children:_jsx(i,_objectSpread({},s))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(a)?_.formatMessage({id:"api.component.required"}):JSON.stringify(s.default)||"--"})})]},a)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:_.formatMessage({id:"api.component.".concat(l?"not.found":"unavailable")},{id:f})})})})]})})},P=null},53267:function(S,x,n){var E=n(39114),A=n(35250),D=function(T){return _jsx("span",_objectSpread({className:"dumi-default-badge"},T))},O=null},33296:function(S,x,n){var E=n(39114),A=n(70125),D=n(11221),O=n(14315),j=n(70079),T=n(35250),L=null,C=function(y){var P=y.children,t=_objectWithoutProperties(y,L),e=useRef(null),r=useState(!1),o=_slicedToArray(r,2),h=o[0],c=o[1],l=useState(!1),f=_slicedToArray(l,2),_=f[0],p=f[1];return useEffect(function(){var m=e.current;if(m){var v=throttle(function(){c(m.scrollLeft>0),p(m.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",s=[];return[].concat(d).forEach(function(u,I){var g="".concat(a?"".concat(a,"-"):"").concat(I);switch(u==null?void 0:u.type){case"ul":{var b,N=((b=s[s.length-1])===null||b===void 0?void 0:b.children)||s,R=r(u.props.children||[],g);N.push.apply(N,T()(R));break}case"li":{var U=r(u.props.children,g);s.push({title:[].concat(u.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),s}var o=function(a){var s=(0,t.useState)(r(a)),u=O()(s,2),I=u[0],g=u[1];return(0,t.useEffect)(function(){g(r(a))},[a]),I},h=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(L.r,{fill:"currentColor"})}):u?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(M.r,{fill:"currentColor"})})},c=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):u?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(i.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})})})},l=function(){return{height:0,opacity:0}},f=function(a){var s=a.scrollHeight;return{height:s,opacity:1}},_=function(a){return{height:a?a.offsetHeight:0}},p=function(a,s){return(s==null?void 0:s.deadline)===!0||s.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:l,onEnterStart:l,onAppearActive:f,onEnterActive:f,onLeaveStart:_,onLeaveActive:l,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(d){var a=o(d.children),s=(0,t.createRef)(),u=function(g,b){var N=b.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||s.current.onNodeExpand(g,b)};return(0,e.jsx)(P.Z,{className:"dumi-default-tree",icon:h,ref:s,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:A()(A()({},m),{},{motionAppear:!1}),onClick:u,treeData:[{key:"0",title:d.title||"",children:a}],defaultExpandAll:!0,switcherIcon:c})}}}]); diff --git a/docs/docs__api__utils__is-diff.md.58b4b078.async.js b/docs/docs__api__utils__is-diff.md.58b4b078.async.js deleted file mode 100644 index 510ddd6e..00000000 --- a/docs/docs__api__utils__is-diff.md.58b4b078.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[9655],{9904:function(S,x,t){t.r(x);var E=t(4311),j=t(53267),D=t(82197),A=t(12620),b=t(74692),O=t(33296),L=t(12133),T=t(54996),C=t(70079),d=t(35250);function y(){var M=(0,T.eL)(),a=M.texts;return(0,d.jsx)(T.dY,{children:(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{className:"markdown",children:(0,d.jsxs)("h1",{id:"isdiff",children:[(0,d.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#isdiff",children:(0,d.jsx)("span",{className:"icon icon-link"})}),"isDiff"]})})})})}x.default=y},4311:function(S,x,t){var E=t(39114),j=t.n(E),D=t(70125),A=t.n(D),b=t(54996),O=t(70079),L=t(33296),T=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var n=this,o=[];return Object.entries(e.properties||{}).forEach(function(m){var c,i=A()(m,2),f=i[0],u=i[1];o.push("".concat(f).concat((c=e.required)!==null&&c!==void 0&&c.includes(f)?"":"?",": ").concat(u.type==="object"?"object":n.toString(u)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var n=this.getValidClassName(e.items);return n?"".concat(n,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var n=this,o=e.signature;if(!o)return"Function";var m="oneOf"in o?o.oneOf:[o];return m.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(i){return"".concat(i.key,": ").concat(n.toString(i))}).join(", "),") => ").concat(n.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(n){return JSON.stringify(n)}).join(" | ")},oneOf:function(e){var n=this;return e.oneOf.map(function(o){return n.getValidClassName(o)||n.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},d=function(e){var n=useState(function(){return C.toString(e)}),o=_slicedToArray(n,2),m=o[0],c=o[1];return useEffect(function(){c(C.toString(e))},[e]),_jsx("code",{children:m})},y=function(e){var n,o=useRouteMeta(),m=o.frontmatter,c=useAtomAssets(),i=c.components,f=e.id||m.atomId,u=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=i==null?void 0:i[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:u.formatMessage({id:"api.component.name"})}),_jsx("th",{children:u.formatMessage({id:"api.component.description"})}),_jsx("th",{children:u.formatMessage({id:"api.component.type"})}),_jsx("th",{children:u.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(n=p.propsConfig)!==null&&n!==void 0&&n.properties?Object.entries(p.propsConfig.properties).map(function(h){var v,_=_slicedToArray(h,2),s=_[0],r=_[1];return _jsxs("tr",{children:[_jsx("td",{children:s}),_jsx("td",{children:r.description||"--"}),_jsx("td",{children:_jsx(d,_objectSpread({},r))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(s)?u.formatMessage({id:"api.component.required"}):JSON.stringify(r.default)||"--"})})]},s)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:u.formatMessage({id:"api.component.".concat(i?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(S,x,t){var E=t(39114),j=t(35250),D=function(O){return _jsx("span",_objectSpread({className:"dumi-default-badge"},O))},A=null},33296:function(S,x,t){var E=t(39114),j=t(70125),D=t(11221),A=t(14315),b=t(70079),O=t(35250),L=null,T=function(y){var M=y.children,a=_objectWithoutProperties(y,L),e=useRef(null),n=useState(!1),o=_slicedToArray(n,2),m=o[0],c=o[1],i=useState(!1),f=_slicedToArray(i,2),u=f[0],p=f[1];return useEffect(function(){var h=e.current;if(h){var v=throttle(function(){c(h.scrollLeft>0),p(h.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",r=[];return[].concat(_).forEach(function(l,I){var g="".concat(s?"".concat(s,"-"):"").concat(I);switch(l==null?void 0:l.type){case"ul":{var P,N=((P=r[r.length-1])===null||P===void 0?void 0:P.children)||r,R=n(l.props.children||[],g);N.push.apply(N,O()(R));break}case"li":{var U=n(l.props.children,g);r.push({title:[].concat(l.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),r}var o=function(s){var r=(0,a.useState)(n(s)),l=A()(r,2),I=l[0],g=l[1];return(0,a.useEffect)(function(){g(n(s))},[s]),I},m=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(L.r,{fill:"currentColor"})}):l?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(T.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},c=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):l?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(d.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})})})},i=function(){return{height:0,opacity:0}},f=function(s){var r=s.scrollHeight;return{height:r,opacity:1}},u=function(s){return{height:s?s.offsetHeight:0}},p=function(s,r){return(r==null?void 0:r.deadline)===!0||r.propertyName==="height"},h={motionName:"ant-motion-collapse",onAppearStart:i,onEnterStart:i,onAppearActive:f,onEnterActive:f,onLeaveStart:u,onLeaveActive:i,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(_){var s=o(_.children),r=(0,a.createRef)(),l=function(g,P){var N=P.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||r.current.onNodeExpand(g,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:m,ref:r,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:j()(j()({},h),{},{motionAppear:!1}),onClick:l,treeData:[{key:"0",title:_.title||"",children:s}],defaultExpandAll:!0,switcherIcon:c})}}}]); diff --git a/docs/docs__api__utils__is-diff.md.ff9108ca.async.js b/docs/docs__api__utils__is-diff.md.ff9108ca.async.js new file mode 100644 index 00000000..83ed4c8c --- /dev/null +++ b/docs/docs__api__utils__is-diff.md.ff9108ca.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[9655],{9904:function(S,g,n){n.r(g);var E=n(4311),D=n(53267),A=n(82197),C=n(12620),j=n(74692),O=n(33296),L=n(12133),T=n(54996),M=n(70079),r=n(35250);function y(){var P=(0,T.eL)(),t=P.texts;return(0,r.jsx)(T.dY,{children:(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"markdown",children:[(0,r.jsxs)("h1",{id:"isdiff",children:[(0,r.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#isdiff",children:(0,r.jsx)("span",{className:"icon icon-link"})}),"isDiff"]}),(0,r.jsx)("p",{children:t[0].value}),(0,r.jsxs)("h2",{id:"\u57FA\u7840\u4F7F\u7528",children:[(0,r.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#\u57FA\u7840\u4F7F\u7528",children:(0,r.jsx)("span",{className:"icon icon-link"})}),"\u57FA\u7840\u4F7F\u7528"]}),(0,r.jsxs)("h3",{id:"\u6BD4\u8F83\u539F\u59CB\u503C",children:[(0,r.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#\u6BD4\u8F83\u539F\u59CB\u503C",children:(0,r.jsx)("span",{className:"icon icon-link"})}),"\u6BD4\u8F83\u539F\u59CB\u503C"]}),(0,r.jsx)(j.Z,{lang:"ts",children:t[1].value}),(0,r.jsxs)("h3",{id:"\u6BD4\u8F83atom\u5B50\u8282\u70B9",children:[(0,r.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#\u6BD4\u8F83atom\u5B50\u8282\u70B9",children:(0,r.jsx)("span",{className:"icon icon-link"})}),"\u6BD4\u8F83atom\u5B50\u8282\u70B9"]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("code",{children:t[2].value}),t[3].value,(0,r.jsx)("code",{children:t[4].value}),t[5].value]}),(0,r.jsx)(j.Z,{lang:"ts",children:t[6].value})]})})})}g.default=y},4311:function(S,g,n){var E=n(39114),D=n.n(E),A=n(70125),C=n.n(A),j=n(54996),O=n(70079),L=n(33296),T=n(35250),M={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var s=this,o=[];return Object.entries(e.properties||{}).forEach(function(h){var l,c=C()(h,2),f=c[0],_=c[1];o.push("".concat(f).concat((l=e.required)!==null&&l!==void 0&&l.includes(f)?"":"?",": ").concat(_.type==="object"?"object":s.toString(_)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var s=this.getValidClassName(e.items);return s?"".concat(s,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var s=this,o=e.signature;if(!o)return"Function";var h="oneOf"in o?o.oneOf:[o];return h.map(function(l){return"".concat(l.isAsync?"async ":"","(").concat(l.arguments.map(function(c){return"".concat(c.key,": ").concat(s.toString(c))}).join(", "),") => ").concat(s.toString(l.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(s){return JSON.stringify(s)}).join(" | ")},oneOf:function(e){var s=this;return e.oneOf.map(function(o){return s.getValidClassName(o)||s.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},r=function(e){var s=useState(function(){return M.toString(e)}),o=_slicedToArray(s,2),h=o[0],l=o[1];return useEffect(function(){l(M.toString(e))},[e]),_jsx("code",{children:h})},y=function(e){var s,o=useRouteMeta(),h=o.frontmatter,l=useAtomAssets(),c=l.components,f=e.id||h.atomId,_=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=c==null?void 0:c[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:_.formatMessage({id:"api.component.name"})}),_jsx("th",{children:_.formatMessage({id:"api.component.description"})}),_jsx("th",{children:_.formatMessage({id:"api.component.type"})}),_jsx("th",{children:_.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(s=p.propsConfig)!==null&&s!==void 0&&s.properties?Object.entries(p.propsConfig.properties).map(function(m){var v,d=_slicedToArray(m,2),i=d[0],a=d[1];return _jsxs("tr",{children:[_jsx("td",{children:i}),_jsx("td",{children:a.description||"--"}),_jsx("td",{children:_jsx(r,_objectSpread({},a))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(i)?_.formatMessage({id:"api.component.required"}):JSON.stringify(a.default)||"--"})})]},i)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:_.formatMessage({id:"api.component.".concat(c?"not.found":"unavailable")},{id:f})})})})]})})},P=null},53267:function(S,g,n){var E=n(39114),D=n(35250),A=function(O){return _jsx("span",_objectSpread({className:"dumi-default-badge"},O))},C=null},33296:function(S,g,n){var E=n(39114),D=n(70125),A=n(11221),C=n(14315),j=n(70079),O=n(35250),L=null,T=function(y){var P=y.children,t=_objectWithoutProperties(y,L),e=useRef(null),s=useState(!1),o=_slicedToArray(s,2),h=o[0],l=o[1],c=useState(!1),f=_slicedToArray(c,2),_=f[0],p=f[1];return useEffect(function(){var m=e.current;if(m){var v=throttle(function(){l(m.scrollLeft>0),p(m.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",a=[];return[].concat(d).forEach(function(u,I){var x="".concat(i?"".concat(i,"-"):"").concat(I);switch(u==null?void 0:u.type){case"ul":{var b,B=((b=a[a.length-1])===null||b===void 0?void 0:b.children)||a,U=s(u.props.children||[],x);B.push.apply(B,O()(U));break}case"li":{var N=s(u.props.children,x);a.push({title:[].concat(u.props.children).filter(function(R){return R.type!=="ul"}),key:x,children:N,isLeaf:!N.length});break}default:}}),a}var o=function(i){var a=(0,t.useState)(s(i)),u=C()(a,2),I=u[0],x=u[1];return(0,t.useEffect)(function(){x(s(i))},[i]),I},h=function(i){var a=i.isLeaf,u=i.expanded;return a?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(L.r,{fill:"currentColor"})}):u?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(T.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(M.r,{fill:"currentColor"})})},l=function(i){var a=i.isLeaf,u=i.expanded;return a?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):u?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(r.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})})})},c=function(){return{height:0,opacity:0}},f=function(i){var a=i.scrollHeight;return{height:a,opacity:1}},_=function(i){return{height:i?i.offsetHeight:0}},p=function(i,a){return(a==null?void 0:a.deadline)===!0||a.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:c,onEnterStart:c,onAppearActive:f,onEnterActive:f,onLeaveStart:_,onLeaveActive:c,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(d){var i=o(d.children),a=(0,t.createRef)(),u=function(x,b){var B=b.isLeaf;B||x.shiftKey||x.metaKey||x.ctrlKey||a.current.onNodeExpand(x,b)};return(0,e.jsx)(P.Z,{className:"dumi-default-tree",icon:h,ref:a,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:D()(D()({},m),{},{motionAppear:!1}),onClick:u,treeData:[{key:"0",title:d.title||"",children:i}],defaultExpandAll:!0,switcherIcon:l})}}}]); diff --git a/docs/docs__api__utils__reactive-desc.md.2e43b85a.async.js b/docs/docs__api__utils__reactive-desc.md.2e43b85a.async.js new file mode 100644 index 00000000..0467ff09 --- /dev/null +++ b/docs/docs__api__utils__reactive-desc.md.2e43b85a.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[7742],{89529:function(S,x,n){n.r(x);var A=n(4311),D=n(53267),j=n(82197),O=n(12620),T=n(74692),C=n(33296),L=n(12133),y=n(54996),M=n(70079),r=n(35250);function E(){var P=(0,y.eL)(),t=P.texts;return(0,r.jsx)(y.dY,{children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"markdown",children:[(0,r.jsxs)("h1",{id:"reactivedesc",children:[(0,r.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#reactivedesc",children:(0,r.jsx)("span",{className:"icon icon-link"})}),"reactiveDesc"]}),(0,r.jsxs)("p",{children:[t[0].value,(0,r.jsx)("code",{children:t[1].value}),t[2].value,(0,r.jsx)("code",{children:t[3].value}),t[4].value]}),(0,r.jsx)("hr",{})]}),(0,r.jsx)(j.Z,{type:"info",children:(0,r.jsxs)("p",{children:[t[5].value,(0,r.jsx)("code",{children:t[6].value}),t[7].value,(0,r.jsx)(y.rU,{to:"/guide/modular#defineactions",children:t[8].value})]})}),(0,r.jsxs)("div",{className:"markdown",children:[(0,r.jsxs)("h2",{id:"\u57FA\u7840\u4F7F\u7528",children:[(0,r.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#\u57FA\u7840\u4F7F\u7528",children:(0,r.jsx)("span",{className:"icon icon-link"})}),"\u57FA\u7840\u4F7F\u7528"]}),(0,r.jsx)(T.Z,{lang:"ts",children:t[9].value})]})]})})}x.default=E},4311:function(S,x,n){var A=n(39114),D=n.n(A),j=n(70125),O=n.n(j),T=n(54996),C=n(70079),L=n(33296),y=n(35250),M={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var s=this,o=[];return Object.entries(e.properties||{}).forEach(function(h){var l,c=O()(h,2),f=c[0],_=c[1];o.push("".concat(f).concat((l=e.required)!==null&&l!==void 0&&l.includes(f)?"":"?",": ").concat(_.type==="object"?"object":s.toString(_)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var s=this.getValidClassName(e.items);return s?"".concat(s,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var s=this,o=e.signature;if(!o)return"Function";var h="oneOf"in o?o.oneOf:[o];return h.map(function(l){return"".concat(l.isAsync?"async ":"","(").concat(l.arguments.map(function(c){return"".concat(c.key,": ").concat(s.toString(c))}).join(", "),") => ").concat(s.toString(l.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(s){return JSON.stringify(s)}).join(" | ")},oneOf:function(e){var s=this;return e.oneOf.map(function(o){return s.getValidClassName(o)||s.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},r=function(e){var s=useState(function(){return M.toString(e)}),o=_slicedToArray(s,2),h=o[0],l=o[1];return useEffect(function(){l(M.toString(e))},[e]),_jsx("code",{children:h})},E=function(e){var s,o=useRouteMeta(),h=o.frontmatter,l=useAtomAssets(),c=l.components,f=e.id||h.atomId,_=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=c==null?void 0:c[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:_.formatMessage({id:"api.component.name"})}),_jsx("th",{children:_.formatMessage({id:"api.component.description"})}),_jsx("th",{children:_.formatMessage({id:"api.component.type"})}),_jsx("th",{children:_.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(s=p.propsConfig)!==null&&s!==void 0&&s.properties?Object.entries(p.propsConfig.properties).map(function(m){var v,d=_slicedToArray(m,2),i=d[0],a=d[1];return _jsxs("tr",{children:[_jsx("td",{children:i}),_jsx("td",{children:a.description||"--"}),_jsx("td",{children:_jsx(r,_objectSpread({},a))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(i)?_.formatMessage({id:"api.component.required"}):JSON.stringify(a.default)||"--"})})]},i)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:_.formatMessage({id:"api.component.".concat(c?"not.found":"unavailable")},{id:f})})})})]})})},P=null},53267:function(S,x,n){var A=n(39114),D=n(35250),j=function(C){return _jsx("span",_objectSpread({className:"dumi-default-badge"},C))},O=null},33296:function(S,x,n){var A=n(39114),D=n(70125),j=n(11221),O=n(14315),T=n(70079),C=n(35250),L=null,y=function(E){var P=E.children,t=_objectWithoutProperties(E,L),e=useRef(null),s=useState(!1),o=_slicedToArray(s,2),h=o[0],l=o[1],c=useState(!1),f=_slicedToArray(c,2),_=f[0],p=f[1];return useEffect(function(){var m=e.current;if(m){var v=throttle(function(){l(m.scrollLeft>0),p(m.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",a=[];return[].concat(d).forEach(function(u,I){var g="".concat(i?"".concat(i,"-"):"").concat(I);switch(u==null?void 0:u.type){case"ul":{var b,N=((b=a[a.length-1])===null||b===void 0?void 0:b.children)||a,R=s(u.props.children||[],g);N.push.apply(N,C()(R));break}case"li":{var U=s(u.props.children,g);a.push({title:[].concat(u.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),a}var o=function(i){var a=(0,t.useState)(s(i)),u=O()(a,2),I=u[0],g=u[1];return(0,t.useEffect)(function(){g(s(i))},[i]),I},h=function(i){var a=i.isLeaf,u=i.expanded;return a?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(L.r,{fill:"currentColor"})}):u?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(M.r,{fill:"currentColor"})})},l=function(i){var a=i.isLeaf,u=i.expanded;return a?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):u?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(r.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(E.r,{fill:"currentColor"})})})},c=function(){return{height:0,opacity:0}},f=function(i){var a=i.scrollHeight;return{height:a,opacity:1}},_=function(i){return{height:i?i.offsetHeight:0}},p=function(i,a){return(a==null?void 0:a.deadline)===!0||a.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:c,onEnterStart:c,onAppearActive:f,onEnterActive:f,onLeaveStart:_,onLeaveActive:c,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(d){var i=o(d.children),a=(0,t.createRef)(),u=function(g,b){var N=b.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||a.current.onNodeExpand(g,b)};return(0,e.jsx)(P.Z,{className:"dumi-default-tree",icon:h,ref:a,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:D()(D()({},m),{},{motionAppear:!1}),onClick:u,treeData:[{key:"0",title:d.title||"",children:i}],defaultExpandAll:!0,switcherIcon:l})}}}]); diff --git a/docs/docs__api__utils__reactive-desc.md.f4ee94b4.async.js b/docs/docs__api__utils__reactive-desc.md.f4ee94b4.async.js deleted file mode 100644 index 9831a6bd..00000000 --- a/docs/docs__api__utils__reactive-desc.md.f4ee94b4.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[7742],{89529:function(S,x,t){t.r(x);var E=t(4311),j=t(53267),D=t(82197),A=t(12620),b=t(74692),O=t(33296),L=t(12133),T=t(54996),C=t(70079),d=t(35250);function y(){var M=(0,T.eL)(),a=M.texts;return(0,d.jsx)(T.dY,{children:(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{className:"markdown",children:(0,d.jsxs)("h1",{id:"reactivedesc",children:[(0,d.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#reactivedesc",children:(0,d.jsx)("span",{className:"icon icon-link"})}),"reactiveDesc"]})})})})}x.default=y},4311:function(S,x,t){var E=t(39114),j=t.n(E),D=t(70125),A=t.n(D),b=t(54996),O=t(70079),L=t(33296),T=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var n=this,o=[];return Object.entries(e.properties||{}).forEach(function(m){var c,i=A()(m,2),f=i[0],u=i[1];o.push("".concat(f).concat((c=e.required)!==null&&c!==void 0&&c.includes(f)?"":"?",": ").concat(u.type==="object"?"object":n.toString(u)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var n=this.getValidClassName(e.items);return n?"".concat(n,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var n=this,o=e.signature;if(!o)return"Function";var m="oneOf"in o?o.oneOf:[o];return m.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(i){return"".concat(i.key,": ").concat(n.toString(i))}).join(", "),") => ").concat(n.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(n){return JSON.stringify(n)}).join(" | ")},oneOf:function(e){var n=this;return e.oneOf.map(function(o){return n.getValidClassName(o)||n.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},d=function(e){var n=useState(function(){return C.toString(e)}),o=_slicedToArray(n,2),m=o[0],c=o[1];return useEffect(function(){c(C.toString(e))},[e]),_jsx("code",{children:m})},y=function(e){var n,o=useRouteMeta(),m=o.frontmatter,c=useAtomAssets(),i=c.components,f=e.id||m.atomId,u=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=i==null?void 0:i[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:u.formatMessage({id:"api.component.name"})}),_jsx("th",{children:u.formatMessage({id:"api.component.description"})}),_jsx("th",{children:u.formatMessage({id:"api.component.type"})}),_jsx("th",{children:u.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(n=p.propsConfig)!==null&&n!==void 0&&n.properties?Object.entries(p.propsConfig.properties).map(function(h){var v,_=_slicedToArray(h,2),s=_[0],r=_[1];return _jsxs("tr",{children:[_jsx("td",{children:s}),_jsx("td",{children:r.description||"--"}),_jsx("td",{children:_jsx(d,_objectSpread({},r))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(s)?u.formatMessage({id:"api.component.required"}):JSON.stringify(r.default)||"--"})})]},s)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:u.formatMessage({id:"api.component.".concat(i?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(S,x,t){var E=t(39114),j=t(35250),D=function(O){return _jsx("span",_objectSpread({className:"dumi-default-badge"},O))},A=null},33296:function(S,x,t){var E=t(39114),j=t(70125),D=t(11221),A=t(14315),b=t(70079),O=t(35250),L=null,T=function(y){var M=y.children,a=_objectWithoutProperties(y,L),e=useRef(null),n=useState(!1),o=_slicedToArray(n,2),m=o[0],c=o[1],i=useState(!1),f=_slicedToArray(i,2),u=f[0],p=f[1];return useEffect(function(){var h=e.current;if(h){var v=throttle(function(){c(h.scrollLeft>0),p(h.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",r=[];return[].concat(_).forEach(function(l,I){var g="".concat(s?"".concat(s,"-"):"").concat(I);switch(l==null?void 0:l.type){case"ul":{var P,N=((P=r[r.length-1])===null||P===void 0?void 0:P.children)||r,R=n(l.props.children||[],g);N.push.apply(N,O()(R));break}case"li":{var U=n(l.props.children,g);r.push({title:[].concat(l.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),r}var o=function(s){var r=(0,a.useState)(n(s)),l=A()(r,2),I=l[0],g=l[1];return(0,a.useEffect)(function(){g(n(s))},[s]),I},m=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(L.r,{fill:"currentColor"})}):l?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(T.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},c=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):l?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(d.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})})})},i=function(){return{height:0,opacity:0}},f=function(s){var r=s.scrollHeight;return{height:r,opacity:1}},u=function(s){return{height:s?s.offsetHeight:0}},p=function(s,r){return(r==null?void 0:r.deadline)===!0||r.propertyName==="height"},h={motionName:"ant-motion-collapse",onAppearStart:i,onEnterStart:i,onAppearActive:f,onEnterActive:f,onLeaveStart:u,onLeaveActive:i,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(_){var s=o(_.children),r=(0,a.createRef)(),l=function(g,P){var N=P.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||r.current.onNodeExpand(g,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:m,ref:r,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:j()(j()({},h),{},{motionAppear:!1}),onClick:l,treeData:[{key:"0",title:_.title||"",children:s}],defaultExpandAll:!0,switcherIcon:c})}}}]); diff --git a/docs/docs__api__utils__shallow-compare.md.92332ae4.async.js b/docs/docs__api__utils__shallow-compare.md.92332ae4.async.js deleted file mode 100644 index 8c90afa4..00000000 --- a/docs/docs__api__utils__shallow-compare.md.92332ae4.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[1261],{96897:function(S,x,t){t.r(x);var E=t(4311),j=t(53267),D=t(82197),A=t(12620),b=t(74692),O=t(33296),L=t(12133),T=t(54996),C=t(70079),d=t(35250);function y(){var M=(0,T.eL)(),a=M.texts;return(0,d.jsx)(T.dY,{children:(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{className:"markdown",children:(0,d.jsxs)("h1",{id:"shallowcompare",children:[(0,d.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#shallowcompare",children:(0,d.jsx)("span",{className:"icon icon-link"})}),"shallowCompare"]})})})})}x.default=y},4311:function(S,x,t){var E=t(39114),j=t.n(E),D=t(70125),A=t.n(D),b=t(54996),O=t(70079),L=t(33296),T=t(35250),C={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var n=this,o=[];return Object.entries(e.properties||{}).forEach(function(m){var c,i=A()(m,2),f=i[0],u=i[1];o.push("".concat(f).concat((c=e.required)!==null&&c!==void 0&&c.includes(f)?"":"?",": ").concat(u.type==="object"?"object":n.toString(u)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var n=this.getValidClassName(e.items);return n?"".concat(n,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var n=this,o=e.signature;if(!o)return"Function";var m="oneOf"in o?o.oneOf:[o];return m.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(i){return"".concat(i.key,": ").concat(n.toString(i))}).join(", "),") => ").concat(n.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(n){return JSON.stringify(n)}).join(" | ")},oneOf:function(e){var n=this;return e.oneOf.map(function(o){return n.getValidClassName(o)||n.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},d=function(e){var n=useState(function(){return C.toString(e)}),o=_slicedToArray(n,2),m=o[0],c=o[1];return useEffect(function(){c(C.toString(e))},[e]),_jsx("code",{children:m})},y=function(e){var n,o=useRouteMeta(),m=o.frontmatter,c=useAtomAssets(),i=c.components,f=e.id||m.atomId,u=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=i==null?void 0:i[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:u.formatMessage({id:"api.component.name"})}),_jsx("th",{children:u.formatMessage({id:"api.component.description"})}),_jsx("th",{children:u.formatMessage({id:"api.component.type"})}),_jsx("th",{children:u.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(n=p.propsConfig)!==null&&n!==void 0&&n.properties?Object.entries(p.propsConfig.properties).map(function(h){var v,_=_slicedToArray(h,2),s=_[0],r=_[1];return _jsxs("tr",{children:[_jsx("td",{children:s}),_jsx("td",{children:r.description||"--"}),_jsx("td",{children:_jsx(d,_objectSpread({},r))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(s)?u.formatMessage({id:"api.component.required"}):JSON.stringify(r.default)||"--"})})]},s)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:u.formatMessage({id:"api.component.".concat(i?"not.found":"unavailable")},{id:f})})})})]})})},M=null},53267:function(S,x,t){var E=t(39114),j=t(35250),D=function(O){return _jsx("span",_objectSpread({className:"dumi-default-badge"},O))},A=null},33296:function(S,x,t){var E=t(39114),j=t(70125),D=t(11221),A=t(14315),b=t(70079),O=t(35250),L=null,T=function(y){var M=y.children,a=_objectWithoutProperties(y,L),e=useRef(null),n=useState(!1),o=_slicedToArray(n,2),m=o[0],c=o[1],i=useState(!1),f=_slicedToArray(i,2),u=f[0],p=f[1];return useEffect(function(){var h=e.current;if(h){var v=throttle(function(){c(h.scrollLeft>0),p(h.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",r=[];return[].concat(_).forEach(function(l,I){var g="".concat(s?"".concat(s,"-"):"").concat(I);switch(l==null?void 0:l.type){case"ul":{var P,N=((P=r[r.length-1])===null||P===void 0?void 0:P.children)||r,R=n(l.props.children||[],g);N.push.apply(N,O()(R));break}case"li":{var U=n(l.props.children,g);r.push({title:[].concat(l.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),r}var o=function(s){var r=(0,a.useState)(n(s)),l=A()(r,2),I=l[0],g=l[1];return(0,a.useEffect)(function(){g(n(s))},[s]),I},m=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(L.r,{fill:"currentColor"})}):l?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(T.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(C.r,{fill:"currentColor"})})},c=function(s){var r=s.isLeaf,l=s.expanded;return r?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):l?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(d.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})})})},i=function(){return{height:0,opacity:0}},f=function(s){var r=s.scrollHeight;return{height:r,opacity:1}},u=function(s){return{height:s?s.offsetHeight:0}},p=function(s,r){return(r==null?void 0:r.deadline)===!0||r.propertyName==="height"},h={motionName:"ant-motion-collapse",onAppearStart:i,onEnterStart:i,onAppearActive:f,onEnterActive:f,onLeaveStart:u,onLeaveActive:i,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(_){var s=o(_.children),r=(0,a.createRef)(),l=function(g,P){var N=P.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||r.current.onNodeExpand(g,P)};return(0,e.jsx)(M.Z,{className:"dumi-default-tree",icon:m,ref:r,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:j()(j()({},h),{},{motionAppear:!1}),onClick:l,treeData:[{key:"0",title:_.title||"",children:s}],defaultExpandAll:!0,switcherIcon:c})}}}]); diff --git a/docs/docs__api__utils__shallow-compare.md.cb88aacc.async.js b/docs/docs__api__utils__shallow-compare.md.cb88aacc.async.js new file mode 100644 index 00000000..d31d9864 --- /dev/null +++ b/docs/docs__api__utils__shallow-compare.md.cb88aacc.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[1261],{96897:function(L,x,n){n.r(x);var E=n(4311),A=n(53267),D=n(82197),C=n(12620),b=n(74692),O=n(33296),S=n(12133),j=n(54996),T=n(70079),i=n(35250);function y(){var P=(0,j.eL)(),t=P.texts;return(0,i.jsx)(j.dY,{children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"markdown",children:[(0,i.jsxs)("h1",{id:"shallowcompare",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#shallowcompare",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"shallowCompare"]}),(0,i.jsx)("p",{children:t[0].value}),(0,i.jsxs)("h2",{id:"\u57FA\u7840\u4F7F\u7528",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#\u57FA\u7840\u4F7F\u7528",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"\u57FA\u7840\u4F7F\u7528"]}),(0,i.jsxs)("p",{children:[t[1].value,(0,i.jsx)("code",{children:t[2].value}),t[3].value]})]}),(0,i.jsx)(j.Dl,{demo:{id:"docs-api-utils-shallow-compare-demo-0"},previewerProps:{defaultShowCode:!0}})]})})}x.default=y},4311:function(L,x,n){var E=n(39114),A=n.n(E),D=n(70125),C=n.n(D),b=n(54996),O=n(70079),S=n(33296),j=n(35250),T={toString:function(e){return typeof e.type=="string"&&e.type in this?"enum"in e?this.enum(e):this[e.type](e):e.type?this.getValidClassName(e)||e.type:"const"in e?"".concat(e.const):"oneOf"in e?this.oneOf(e):"unknown"},string:function(e){return e.type},number:function(e){return e.type},boolean:function(e){return e.type},any:function(e){return e.type},object:function(e){var r=this,o=[];return Object.entries(e.properties||{}).forEach(function(h){var c,l=C()(h,2),f=l[0],_=l[1];o.push("".concat(f).concat((c=e.required)!==null&&c!==void 0&&c.includes(f)?"":"?",": ").concat(_.type==="object"?"object":r.toString(_)))}),o.length?"{ ".concat(o.join("; ")," }"):"{}"},array:function(e){if(e.items){var r=this.getValidClassName(e.items);return r?"".concat(r,"[]"):"".concat(this.toString(e.items),"[]")}return"any[]"},element:function(e){return"<".concat(e.componentName," />")},function:function(e){var r=this,o=e.signature;if(!o)return"Function";var h="oneOf"in o?o.oneOf:[o];return h.map(function(c){return"".concat(c.isAsync?"async ":"","(").concat(c.arguments.map(function(l){return"".concat(l.key,": ").concat(r.toString(l))}).join(", "),") => ").concat(r.toString(c.returnType))}).join(" | ")},dom:function(e){return e.className||"DOM"},enum:function(e){return e.enum.map(function(r){return JSON.stringify(r)}).join(" | ")},oneOf:function(e){var r=this;return e.oneOf.map(function(o){return r.getValidClassName(o)||r.toString(o)}).join(" | ")},getValidClassName:function(e){return"className"in e&&typeof e.className=="string"&&e.className!=="__type"?e.className:null}},i=function(e){var r=useState(function(){return T.toString(e)}),o=_slicedToArray(r,2),h=o[0],c=o[1];return useEffect(function(){c(T.toString(e))},[e]),_jsx("code",{children:h})},y=function(e){var r,o=useRouteMeta(),h=o.frontmatter,c=useAtomAssets(),l=c.components,f=e.id||h.atomId,_=useIntl();if(!f)throw new Error("`id` properties if required for API component!");var p=l==null?void 0:l[f];return _jsx("div",{className:"markdown",children:_jsxs(Table,{children:[_jsx("thead",{children:_jsxs("tr",{children:[_jsx("th",{children:_.formatMessage({id:"api.component.name"})}),_jsx("th",{children:_.formatMessage({id:"api.component.description"})}),_jsx("th",{children:_.formatMessage({id:"api.component.type"})}),_jsx("th",{children:_.formatMessage({id:"api.component.default"})})]})}),_jsx("tbody",{children:p&&(r=p.propsConfig)!==null&&r!==void 0&&r.properties?Object.entries(p.propsConfig.properties).map(function(m){var v,d=_slicedToArray(m,2),a=d[0],s=d[1];return _jsxs("tr",{children:[_jsx("td",{children:a}),_jsx("td",{children:s.description||"--"}),_jsx("td",{children:_jsx(i,_objectSpread({},s))}),_jsx("td",{children:_jsx("code",{children:(v=p.propsConfig.required)!==null&&v!==void 0&&v.includes(a)?_.formatMessage({id:"api.component.required"}):JSON.stringify(s.default)||"--"})})]},a)}):_jsx("tr",{children:_jsx("td",{colSpan:4,children:_.formatMessage({id:"api.component.".concat(l?"not.found":"unavailable")},{id:f})})})})]})})},P=null},53267:function(L,x,n){var E=n(39114),A=n(35250),D=function(O){return _jsx("span",_objectSpread({className:"dumi-default-badge"},O))},C=null},33296:function(L,x,n){var E=n(39114),A=n(70125),D=n(11221),C=n(14315),b=n(70079),O=n(35250),S=null,j=function(y){var P=y.children,t=_objectWithoutProperties(y,S),e=useRef(null),r=useState(!1),o=_slicedToArray(r,2),h=o[0],c=o[1],l=useState(!1),f=_slicedToArray(l,2),_=f[0],p=f[1];return useEffect(function(){var m=e.current;if(m){var v=throttle(function(){c(m.scrollLeft>0),p(m.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"",s=[];return[].concat(d).forEach(function(u,I){var g="".concat(a?"".concat(a,"-"):"").concat(I);switch(u==null?void 0:u.type){case"ul":{var M,N=((M=s[s.length-1])===null||M===void 0?void 0:M.children)||s,R=r(u.props.children||[],g);N.push.apply(N,O()(R));break}case"li":{var U=r(u.props.children,g);s.push({title:[].concat(u.props.children).filter(function(B){return B.type!=="ul"}),key:g,children:U,isLeaf:!U.length});break}default:}}),s}var o=function(a){var s=(0,t.useState)(r(a)),u=C()(s,2),I=u[0],g=u[1];return(0,t.useEffect)(function(){g(r(a))},[a]),I},h=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(S.r,{fill:"currentColor"})}):u?(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(j.r,{fill:"currentColor"})}):(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(T.r,{fill:"currentColor"})})},c=function(a){var s=a.isLeaf,u=a.expanded;return s?(0,e.jsx)("span",{className:"tree-switcher-leaf-line"}):u?(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(i.r,{fill:"currentColor"})})}):(0,e.jsx)("span",{className:"tree-switcher-line-icon",children:(0,e.jsx)("span",{className:"dumi-default-tree-icon",children:(0,e.jsx)(y.r,{fill:"currentColor"})})})},l=function(){return{height:0,opacity:0}},f=function(a){var s=a.scrollHeight;return{height:s,opacity:1}},_=function(a){return{height:a?a.offsetHeight:0}},p=function(a,s){return(s==null?void 0:s.deadline)===!0||s.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:l,onEnterStart:l,onAppearActive:f,onEnterActive:f,onLeaveStart:_,onLeaveActive:l,onAppearEnd:p,onEnterEnd:p,onLeaveEnd:p,motionDeadline:500},v=function(d){var a=o(d.children),s=(0,t.createRef)(),u=function(g,M){var N=M.isLeaf;N||g.shiftKey||g.metaKey||g.ctrlKey||s.current.onNodeExpand(g,M)};return(0,e.jsx)(P.Z,{className:"dumi-default-tree",icon:h,ref:s,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:A()(A()({},m),{},{motionAppear:!1}),onClick:u,treeData:[{key:"0",title:d.title||"",children:a}],defaultExpandAll:!0,switcherIcon:c})}}}]); diff --git a/docs/dumi__tmp-production__dumi__theme__ContextWrapper.19af5995.async.js b/docs/dumi__tmp-production__dumi__theme__ContextWrapper.4d7fcf75.async.js similarity index 95% rename from docs/dumi__tmp-production__dumi__theme__ContextWrapper.19af5995.async.js rename to docs/dumi__tmp-production__dumi__theme__ContextWrapper.4d7fcf75.async.js index 609bedb4..c4abbc98 100644 --- a/docs/dumi__tmp-production__dumi__theme__ContextWrapper.19af5995.async.js +++ b/docs/dumi__tmp-production__dumi__theme__ContextWrapper.4d7fcf75.async.js @@ -1 +1 @@ -"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[1923],{99547:function(v,n,e){e.r(n),e.d(n,{default:function(){return h}});var r=e(70125),u=e.n(r),t=e(70079),_=e(54996),i=e(15243),o=e(39483),d=e(33865),m=e(35250),c={};function h(){var p=(0,_.pC)(),g=(0,t.useState)(!1),s=u()(g,2),f=s[0],E=s[1],l=(0,t.useRef)(_.m8.location.pathname);return(0,t.useEffect)(function(){return _.m8.listen(function(a){a.location.pathname!==l.current&&(l.current=a.location.pathname,document.documentElement.scrollTo(0,0))})},[]),(0,m.jsx)(i.D.Provider,{value:{pkg:{name:"helux-docs",description:"A state library that integrates atom, signal, derive, watch and collection dep",version:"0.0.2",license:"MIT",authors:[]},historyType:"browser",entryExports:c,demos:o.DE,components:o.wx,locales:d.k,loading:f,setLoading:E,hostname:void 0,themeConfig:{logo:"https://tnfe.gtimg.com/image/dlykfuw8ai_1703851692543.png",footer:'Copyright \xA9 2024 | Powered by dumi',prefersColor:{default:"light",switch:!0},nprogress:!0,lastUpdated:!0,name:"Helux",nav:[{title:"\u6307\u5357",link:"/guide"},{title:"API",link:"/api"},{title:"\u53C2\u8003",link:"/reference"},{title:"\u751F\u6001",link:"/ecosystem"},{title:"GitHub",link:"https://github.com/heluxjs/helux"}]},_2_level_nav_available:!0},children:p})}}}]); +"use strict";(self.webpackChunkhelux_docs=self.webpackChunkhelux_docs||[]).push([[1923],{99547:function(v,n,e){e.r(n),e.d(n,{default:function(){return h}});var r=e(70125),u=e.n(r),t=e(70079),_=e(54996),i=e(15243),o=e(59710),d=e(33865),m=e(35250),c={};function h(){var p=(0,_.pC)(),g=(0,t.useState)(!1),s=u()(g,2),f=s[0],E=s[1],l=(0,t.useRef)(_.m8.location.pathname);return(0,t.useEffect)(function(){return _.m8.listen(function(a){a.location.pathname!==l.current&&(l.current=a.location.pathname,document.documentElement.scrollTo(0,0))})},[]),(0,m.jsx)(i.D.Provider,{value:{pkg:{name:"helux-docs",description:"A state library that integrates atom, signal, derive, watch and collection dep",version:"0.0.2",license:"MIT",authors:[]},historyType:"browser",entryExports:c,demos:o.DE,components:o.wx,locales:d.k,loading:f,setLoading:E,hostname:void 0,themeConfig:{logo:"https://tnfe.gtimg.com/image/dlykfuw8ai_1703851692543.png",footer:'Copyright \xA9 2024 | Powered by dumi',prefersColor:{default:"light",switch:!0},nprogress:!0,lastUpdated:!0,name:"Helux",nav:[{title:"\u6307\u5357",link:"/guide"},{title:"API",link:"/api"},{title:"\u53C2\u8003",link:"/reference"},{title:"\u751F\u6001",link:"/ecosystem"},{title:"GitHub",link:"https://github.com/heluxjs/helux"}]},_2_level_nav_available:!0},children:p})}}}]); diff --git a/docs/ecosystem/index.html b/docs/ecosystem/index.html index 26d394db..ce7162b2 100644 --- a/docs/ecosystem/index.html +++ b/docs/ecosystem/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/guide/action/index.html b/docs/guide/action/index.html index 26d394db..ce7162b2 100644 --- a/docs/guide/action/index.html +++ b/docs/guide/action/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/guide/adapt-react-like/index.html b/docs/guide/adapt-react-like/index.html index 26d394db..ce7162b2 100644 --- a/docs/guide/adapt-react-like/index.html +++ b/docs/guide/adapt-react-like/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/guide/atom/index.html b/docs/guide/atom/index.html index 26d394db..ce7162b2 100644 --- a/docs/guide/atom/index.html +++ b/docs/guide/atom/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/guide/dep-tracking/index.html b/docs/guide/dep-tracking/index.html index 26d394db..ce7162b2 100644 --- a/docs/guide/dep-tracking/index.html +++ b/docs/guide/dep-tracking/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/guide/derive/index.html b/docs/guide/derive/index.html index 26d394db..ce7162b2 100644 --- a/docs/guide/derive/index.html +++ b/docs/guide/derive/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/guide/events/index.html b/docs/guide/events/index.html index 26d394db..ce7162b2 100644 --- a/docs/guide/events/index.html +++ b/docs/guide/events/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/guide/index.html b/docs/guide/index.html index 26d394db..ce7162b2 100644 --- a/docs/guide/index.html +++ b/docs/guide/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/guide/install/index.html b/docs/guide/install/index.html index 26d394db..ce7162b2 100644 --- a/docs/guide/install/index.html +++ b/docs/guide/install/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/guide/middleware/index.html b/docs/guide/middleware/index.html index 26d394db..ce7162b2 100644 --- a/docs/guide/middleware/index.html +++ b/docs/guide/middleware/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/guide/model/index.html b/docs/guide/model/index.html index 26d394db..ce7162b2 100644 --- a/docs/guide/model/index.html +++ b/docs/guide/model/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/guide/modular/index.html b/docs/guide/modular/index.html index 26d394db..ce7162b2 100644 --- a/docs/guide/modular/index.html +++ b/docs/guide/modular/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/guide/plugins/index.html b/docs/guide/plugins/index.html index 26d394db..ce7162b2 100644 --- a/docs/guide/plugins/index.html +++ b/docs/guide/plugins/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/guide/quick-start/index.html b/docs/guide/quick-start/index.html index 26d394db..ce7162b2 100644 --- a/docs/guide/quick-start/index.html +++ b/docs/guide/quick-start/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/guide/reactive/index.html b/docs/guide/reactive/index.html index 26d394db..ce7162b2 100644 --- a/docs/guide/reactive/index.html +++ b/docs/guide/reactive/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/guide/signal/index.html b/docs/guide/signal/index.html index 26d394db..ce7162b2 100644 --- a/docs/guide/signal/index.html +++ b/docs/guide/signal/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/guide/sync/index.html b/docs/guide/sync/index.html index 26d394db..ce7162b2 100644 --- a/docs/guide/sync/index.html +++ b/docs/guide/sync/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/guide/watch/index.html b/docs/guide/watch/index.html index 26d394db..ce7162b2 100644 --- a/docs/guide/watch/index.html +++ b/docs/guide/watch/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 26d394db..ce7162b2 100644 --- a/docs/index.html +++ b/docs/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/reference/glossary/index.html b/docs/reference/glossary/index.html index 26d394db..ce7162b2 100644 --- a/docs/reference/glossary/index.html +++ b/docs/reference/glossary/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/reference/history/index.html b/docs/reference/history/index.html index 26d394db..ce7162b2 100644 --- a/docs/reference/history/index.html +++ b/docs/reference/history/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/reference/index.html b/docs/reference/index.html index 26d394db..ce7162b2 100644 --- a/docs/reference/index.html +++ b/docs/reference/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/reference/question/index.html b/docs/reference/question/index.html index 26d394db..ce7162b2 100644 --- a/docs/reference/question/index.html +++ b/docs/reference/question/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/umi.ca82a497.js b/docs/umi.eb8a6beb.js similarity index 56% rename from docs/umi.ca82a497.js rename to docs/umi.eb8a6beb.js index 042b2073..0b80e148 100644 --- a/docs/umi.ca82a497.js +++ b/docs/umi.eb8a6beb.js @@ -1,50 +1,50 @@ -!(function(){var hd=Object.defineProperty,yd=Object.defineProperties;var gd=Object.getOwnPropertyDescriptors;var zc=Object.getOwnPropertySymbols;var Id=Object.prototype.hasOwnProperty,bd=Object.prototype.propertyIsEnumerable;var Hc=(c,m,e)=>m in c?hd(c,m,{enumerable:!0,configurable:!0,writable:!0,value:e}):c[m]=e,Zc=(c,m)=>{for(var e in m||(m={}))Id.call(m,e)&&Hc(c,e,m[e]);if(zc)for(var e of zc(m))bd.call(m,e)&&Hc(c,e,m[e]);return c},Wc=(c,m)=>yd(c,gd(m));(function(){var __webpack_modules__={78060:function(c,m,e){"use strict";e.d(m,{kG:function(){return h}});function i(l){return Math.floor(Math.log(l)*Math.LOG10E)}function a(l,b){if(typeof l.repeat=="function")return l.repeat(b);for(var g=new Array(b),E=0;E0}),we=[],Le=0,et=V;Le1)throw new RangeError("integer-width stems only accept a single optional option");et.options[0].replace(ge,function(Et,kt,Mt,Ae,gt,rt){if(kt)V.minimumIntegerDigits=Mt.length;else{if(Ae&>)throw new Error("We currently do not support maximum integer digits");if(rt)throw new Error("We currently do not support exact integer digits")}return""});continue}if(ke.test(et.stem)){V.minimumIntegerDigits=et.stem.length;continue}if(q.test(et.stem)){if(et.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");et.stem.replace(q,function(Et,kt,Mt,Ae,gt,rt){return Mt==="*"?V.minimumFractionDigits=kt.length:Ae&&Ae[0]==="#"?V.maximumFractionDigits=Ae.length:gt&&rt?(V.minimumFractionDigits=gt.length,V.maximumFractionDigits=gt.length+rt.length):(V.minimumFractionDigits=kt.length,V.maximumFractionDigits=kt.length),""});var it=et.options[0];it==="w"?V=(0,i.pi)((0,i.pi)({},V),{trailingZeroDisplay:"stripIfInteger"}):it&&(V=(0,i.pi)((0,i.pi)({},V),Me(it)));continue}if(X.test(et.stem)){V=(0,i.pi)((0,i.pi)({},V),Me(et.stem));continue}var Ue=He(et.stem);Ue&&(V=(0,i.pi)((0,i.pi)({},V),Ue));var mt=Ke(et.stem);mt&&(V=(0,i.pi)((0,i.pi)({},V),mt))}return V}var re={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function ie(I,V){for(var we="",Le=0;Le>1),Et="a",kt=C(V);for((kt=="H"||kt=="k")&&(mt=0);mt-- >0;)we+=Et;for(;Ue-- >0;)we=kt+we}else et==="J"?we+="H":we+=et}return we}function C(I){var V=I.hourCycle;if(V===void 0&&I.hourCycles&&I.hourCycles.length&&(V=I.hourCycles[0]),V)switch(V){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var we=I.language,Le;we!=="root"&&(Le=I.maximize().region);var et=re[Le||""]||re[we||""]||re["".concat(we,"-001")]||re["001"];return et[0]}var N,Q=new RegExp("^".concat(j.source,"*")),de=new RegExp("".concat(j.source,"*$"));function k(I,V){return{start:I,end:V}}var $=!!String.prototype.startsWith&&"_a".startsWith("a",1),Z=!!String.fromCodePoint,ye=!!Object.fromEntries,lt=!!String.prototype.codePointAt,Re=!!String.prototype.trimStart,Dt=!!String.prototype.trimEnd,an=!!Number.isSafeInteger,ln=an?Number.isSafeInteger:function(I){return typeof I=="number"&&isFinite(I)&&Math.floor(I)===I&&Math.abs(I)<=9007199254740991},Mn=!0;try{var wn=Pe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Mn=((N=wn.exec("a"))===null||N===void 0?void 0:N[0])==="a"}catch(I){Mn=!1}var jn=$?function(V,we,Le){return V.startsWith(we,Le)}:function(V,we,Le){return V.slice(Le,Le+we.length)===we},Qe=Z?String.fromCodePoint:function(){for(var V=[],we=0;weit;){if(Ue=V[it++],Ue>1114111)throw RangeError(Ue+" is not a valid code point");Le+=Ue<65536?String.fromCharCode(Ue):String.fromCharCode(((Ue-=65536)>>10)+55296,Ue%1024+56320)}return Le},bt=ye?Object.fromEntries:function(V){for(var we={},Le=0,et=V;Le=Le)){var et=V.charCodeAt(we),it;return et<55296||et>56319||we+1===Le||(it=V.charCodeAt(we+1))<56320||it>57343?et:(et-55296<<10)+(it-56320)+65536}},at=Re?function(V){return V.trimStart()}:function(V){return V.replace(Q,"")},Ht=Dt?function(V){return V.trimEnd()}:function(V){return V.replace(de,"")};function Pe(I,V){return new RegExp(I,V)}var Be;if(Mn){var Je=Pe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Be=function(V,we){var Le;Je.lastIndex=we;var et=Je.exec(V);return(Le=et[1])!==null&&Le!==void 0?Le:""}}else Be=function(V,we){for(var Le=[];;){var et=vt(V,we);if(et===void 0||ce(et)||$e(et))break;Le.push(et),we+=et>=65536?2:1}return Qe.apply(void 0,Le)};var xe=function(){function I(V,we){we===void 0&&(we={}),this.message=V,this.position={offset:0,line:1,column:1},this.ignoreTag=!!we.ignoreTag,this.locale=we.locale,this.requiresOtherClause=!!we.requiresOtherClause,this.shouldParseSkeletons=!!we.shouldParseSkeletons}return I.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},I.prototype.parseMessage=function(V,we,Le){for(var et=[];!this.isEOF();){var it=this.char();if(it===123){var Ue=this.parseArgument(V,Le);if(Ue.err)return Ue;et.push(Ue.val)}else{if(it===125&&V>0)break;if(it===35&&(we==="plural"||we==="selectordinal")){var mt=this.clonePosition();this.bump(),et.push({type:r.pound,location:k(mt,this.clonePosition())})}else if(it===60&&!this.ignoreTag&&this.peek()===47){if(Le)break;return this.error(a.UNMATCHED_CLOSING_TAG,k(this.clonePosition(),this.clonePosition()))}else if(it===60&&!this.ignoreTag&&Oe(this.peek()||0)){var Ue=this.parseTag(V,we);if(Ue.err)return Ue;et.push(Ue.val)}else{var Ue=this.parseLiteral(V,we);if(Ue.err)return Ue;et.push(Ue.val)}}}return{val:et,err:null}},I.prototype.parseTag=function(V,we){var Le=this.clonePosition();this.bump();var et=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:r.literal,value:"<".concat(et,"/>"),location:k(Le,this.clonePosition())},err:null};if(this.bumpIf(">")){var it=this.parseMessage(V+1,we,!0);if(it.err)return it;var Ue=it.val,mt=this.clonePosition();if(this.bumpIf("")?{val:{type:r.tag,value:et,children:Ue,location:k(Le,this.clonePosition())},err:null}:this.error(a.INVALID_TAG,k(mt,this.clonePosition())))}else return this.error(a.UNCLOSED_TAG,k(Le,this.clonePosition()))}else return this.error(a.INVALID_TAG,k(Le,this.clonePosition()))},I.prototype.parseTagName=function(){var V=this.offset();for(this.bump();!this.isEOF()&&nt(this.char());)this.bump();return this.message.slice(V,this.offset())},I.prototype.parseLiteral=function(V,we){for(var Le=this.clonePosition(),et="";;){var it=this.tryParseQuote(we);if(it){et+=it;continue}var Ue=this.tryParseUnquoted(V,we);if(Ue){et+=Ue;continue}var mt=this.tryParseLeftAngleBracket();if(mt){et+=mt;continue}break}var Et=k(Le,this.clonePosition());return{val:{type:r.literal,value:et,location:Et},err:null}},I.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!tt(this.peek()||0))?(this.bump(),"<"):null},I.prototype.tryParseQuote=function(V){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(V==="plural"||V==="selectordinal")break;return null;default:return null}this.bump();var we=[this.char()];for(this.bump();!this.isEOF();){var Le=this.char();if(Le===39)if(this.peek()===39)we.push(39),this.bump();else{this.bump();break}else we.push(Le);this.bump()}return Qe.apply(void 0,we)},I.prototype.tryParseUnquoted=function(V,we){if(this.isEOF())return null;var Le=this.char();return Le===60||Le===123||Le===35&&(we==="plural"||we==="selectordinal")||Le===125&&V>0?null:(this.bump(),Qe(Le))},I.prototype.parseArgument=function(V,we){var Le=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(a.EXPECT_ARGUMENT_CLOSING_BRACE,k(Le,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(a.EMPTY_ARGUMENT,k(Le,this.clonePosition()));var et=this.parseIdentifierIfPossible().value;if(!et)return this.error(a.MALFORMED_ARGUMENT,k(Le,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(a.EXPECT_ARGUMENT_CLOSING_BRACE,k(Le,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:r.argument,value:et,location:k(Le,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(a.EXPECT_ARGUMENT_CLOSING_BRACE,k(Le,this.clonePosition())):this.parseArgumentOptions(V,we,et,Le);default:return this.error(a.MALFORMED_ARGUMENT,k(Le,this.clonePosition()))}},I.prototype.parseIdentifierIfPossible=function(){var V=this.clonePosition(),we=this.offset(),Le=Be(this.message,we),et=we+Le.length;this.bumpTo(et);var it=this.clonePosition(),Ue=k(V,it);return{value:Le,location:Ue}},I.prototype.parseArgumentOptions=function(V,we,Le,et){var it,Ue=this.clonePosition(),mt=this.parseIdentifierIfPossible().value,Et=this.clonePosition();switch(mt){case"":return this.error(a.EXPECT_ARGUMENT_TYPE,k(Ue,Et));case"number":case"date":case"time":{this.bumpSpace();var kt=null;if(this.bumpIf(",")){this.bumpSpace();var Mt=this.clonePosition(),Ae=this.parseSimpleArgStyleIfPossible();if(Ae.err)return Ae;var gt=Ht(Ae.val);if(gt.length===0)return this.error(a.EXPECT_ARGUMENT_STYLE,k(this.clonePosition(),this.clonePosition()));var rt=k(Mt,this.clonePosition());kt={style:gt,styleLocation:rt}}var ze=this.tryParseArgumentClose(et);if(ze.err)return ze;var St=k(et,this.clonePosition());if(kt&&jn(kt==null?void 0:kt.style,"::",0)){var At=at(kt.style.slice(2));if(mt==="number"){var Ae=this.parseNumberSkeletonFromString(At,kt.styleLocation);return Ae.err?Ae:{val:{type:r.number,value:Le,location:St,style:Ae.val},err:null}}else{if(At.length===0)return this.error(a.EXPECT_DATE_TIME_SKELETON,St);var Kt=At;this.locale&&(Kt=ie(At,this.locale));var gt={type:s.dateTime,pattern:Kt,location:kt.styleLocation,parsedOptions:this.shouldParseSkeletons?A(Kt):{}},nn=mt==="date"?r.date:r.time;return{val:{type:nn,value:Le,location:St,style:gt},err:null}}}return{val:{type:mt==="number"?r.number:mt==="date"?r.date:r.time,value:Le,location:St,style:(it=kt==null?void 0:kt.style)!==null&&it!==void 0?it:null},err:null}}case"plural":case"selectordinal":case"select":{var An=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(a.EXPECT_SELECT_ARGUMENT_OPTIONS,k(An,(0,i.pi)({},An)));this.bumpSpace();var tr=this.parseIdentifierIfPossible(),Kn=0;if(mt!=="select"&&tr.value==="offset"){if(!this.bumpIf(":"))return this.error(a.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,k(this.clonePosition(),this.clonePosition()));this.bumpSpace();var Ae=this.tryParseDecimalInteger(a.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,a.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(Ae.err)return Ae;this.bumpSpace(),tr=this.parseIdentifierIfPossible(),Kn=Ae.val}var cr=this.tryParsePluralOrSelectOptions(V,mt,we,tr);if(cr.err)return cr;var ze=this.tryParseArgumentClose(et);if(ze.err)return ze;var Tr=k(et,this.clonePosition());return mt==="select"?{val:{type:r.select,value:Le,options:bt(cr.val),location:Tr},err:null}:{val:{type:r.plural,value:Le,options:bt(cr.val),offset:Kn,pluralType:mt==="plural"?"cardinal":"ordinal",location:Tr},err:null}}default:return this.error(a.INVALID_ARGUMENT_TYPE,k(Ue,Et))}},I.prototype.tryParseArgumentClose=function(V){return this.isEOF()||this.char()!==125?this.error(a.EXPECT_ARGUMENT_CLOSING_BRACE,k(V,this.clonePosition())):(this.bump(),{val:!0,err:null})},I.prototype.parseSimpleArgStyleIfPossible=function(){for(var V=0,we=this.clonePosition();!this.isEOF();){var Le=this.char();switch(Le){case 39:{this.bump();var et=this.clonePosition();if(!this.bumpUntil("'"))return this.error(a.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,k(et,this.clonePosition()));this.bump();break}case 123:{V+=1,this.bump();break}case 125:{if(V>0)V-=1;else return{val:this.message.slice(we.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(we.offset,this.offset()),err:null}},I.prototype.parseNumberSkeletonFromString=function(V,we){var Le=[];try{Le=z(V)}catch(et){return this.error(a.INVALID_NUMBER_SKELETON,we)}return{val:{type:s.number,tokens:Le,location:we,parsedOptions:this.shouldParseSkeletons?Y(Le):{}},err:null}},I.prototype.tryParsePluralOrSelectOptions=function(V,we,Le,et){for(var it,Ue=!1,mt=[],Et=new Set,kt=et.value,Mt=et.location;;){if(kt.length===0){var Ae=this.clonePosition();if(we!=="select"&&this.bumpIf("=")){var gt=this.tryParseDecimalInteger(a.EXPECT_PLURAL_ARGUMENT_SELECTOR,a.INVALID_PLURAL_ARGUMENT_SELECTOR);if(gt.err)return gt;Mt=k(Ae,this.clonePosition()),kt=this.message.slice(Ae.offset,this.offset())}else break}if(Et.has(kt))return this.error(we==="select"?a.DUPLICATE_SELECT_ARGUMENT_SELECTOR:a.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,Mt);kt==="other"&&(Ue=!0),this.bumpSpace();var rt=this.clonePosition();if(!this.bumpIf("{"))return this.error(we==="select"?a.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:a.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,k(this.clonePosition(),this.clonePosition()));var ze=this.parseMessage(V+1,we,Le);if(ze.err)return ze;var St=this.tryParseArgumentClose(rt);if(St.err)return St;mt.push([kt,{value:ze.val,location:k(rt,this.clonePosition())}]),Et.add(kt),this.bumpSpace(),it=this.parseIdentifierIfPossible(),kt=it.value,Mt=it.location}return mt.length===0?this.error(we==="select"?a.EXPECT_SELECT_ARGUMENT_SELECTOR:a.EXPECT_PLURAL_ARGUMENT_SELECTOR,k(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!Ue?this.error(a.MISSING_OTHER_CLAUSE,k(this.clonePosition(),this.clonePosition())):{val:mt,err:null}},I.prototype.tryParseDecimalInteger=function(V,we){var Le=1,et=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(Le=-1);for(var it=!1,Ue=0;!this.isEOF();){var mt=this.char();if(mt>=48&&mt<=57)it=!0,Ue=Ue*10+(mt-48),this.bump();else break}var Et=k(et,this.clonePosition());return it?(Ue*=Le,ln(Ue)?{val:Ue,err:null}:this.error(we,Et)):this.error(V,Et)},I.prototype.offset=function(){return this.position.offset},I.prototype.isEOF=function(){return this.offset()===this.message.length},I.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},I.prototype.char=function(){var V=this.position.offset;if(V>=this.message.length)throw Error("out of bound");var we=vt(this.message,V);if(we===void 0)throw Error("Offset ".concat(V," is at invalid UTF-16 code unit boundary"));return we},I.prototype.error=function(V,we){return{val:null,err:{kind:V,message:this.message,location:we}}},I.prototype.bump=function(){if(!this.isEOF()){var V=this.char();V===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=V<65536?1:2)}},I.prototype.bumpIf=function(V){if(jn(this.message,V,this.offset())){for(var we=0;we=0?(this.bumpTo(Le),!0):(this.bumpTo(this.message.length),!1)},I.prototype.bumpTo=function(V){if(this.offset()>V)throw Error("targetOffset ".concat(V," must be greater than or equal to the current offset ").concat(this.offset()));for(V=Math.min(V,this.message.length);;){var we=this.offset();if(we===V)break;if(we>V)throw Error("targetOffset ".concat(V," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},I.prototype.bumpSpace=function(){for(;!this.isEOF()&&ce(this.char());)this.bump()},I.prototype.peek=function(){if(this.isEOF())return null;var V=this.char(),we=this.offset(),Le=this.message.charCodeAt(we+(V>=65536?2:1));return Le!=null?Le:null},I}();function Oe(I){return I>=97&&I<=122||I>=65&&I<=90}function tt(I){return Oe(I)||I===47}function nt(I){return I===45||I===46||I>=48&&I<=57||I===95||I>=97&&I<=122||I>=65&&I<=90||I==183||I>=192&&I<=214||I>=216&&I<=246||I>=248&&I<=893||I>=895&&I<=8191||I>=8204&&I<=8205||I>=8255&&I<=8256||I>=8304&&I<=8591||I>=11264&&I<=12271||I>=12289&&I<=55295||I>=63744&&I<=64975||I>=65008&&I<=65533||I>=65536&&I<=983039}function ce(I){return I>=9&&I<=13||I===32||I===133||I>=8206&&I<=8207||I===8232||I===8233}function $e(I){return I>=33&&I<=35||I===36||I>=37&&I<=39||I===40||I===41||I===42||I===43||I===44||I===45||I>=46&&I<=47||I>=58&&I<=59||I>=60&&I<=62||I>=63&&I<=64||I===91||I===92||I===93||I===94||I===96||I===123||I===124||I===125||I===126||I===161||I>=162&&I<=165||I===166||I===167||I===169||I===171||I===172||I===174||I===176||I===177||I===182||I===187||I===191||I===215||I===247||I>=8208&&I<=8213||I>=8214&&I<=8215||I===8216||I===8217||I===8218||I>=8219&&I<=8220||I===8221||I===8222||I===8223||I>=8224&&I<=8231||I>=8240&&I<=8248||I===8249||I===8250||I>=8251&&I<=8254||I>=8257&&I<=8259||I===8260||I===8261||I===8262||I>=8263&&I<=8273||I===8274||I===8275||I>=8277&&I<=8286||I>=8592&&I<=8596||I>=8597&&I<=8601||I>=8602&&I<=8603||I>=8604&&I<=8607||I===8608||I>=8609&&I<=8610||I===8611||I>=8612&&I<=8613||I===8614||I>=8615&&I<=8621||I===8622||I>=8623&&I<=8653||I>=8654&&I<=8655||I>=8656&&I<=8657||I===8658||I===8659||I===8660||I>=8661&&I<=8691||I>=8692&&I<=8959||I>=8960&&I<=8967||I===8968||I===8969||I===8970||I===8971||I>=8972&&I<=8991||I>=8992&&I<=8993||I>=8994&&I<=9e3||I===9001||I===9002||I>=9003&&I<=9083||I===9084||I>=9085&&I<=9114||I>=9115&&I<=9139||I>=9140&&I<=9179||I>=9180&&I<=9185||I>=9186&&I<=9254||I>=9255&&I<=9279||I>=9280&&I<=9290||I>=9291&&I<=9311||I>=9472&&I<=9654||I===9655||I>=9656&&I<=9664||I===9665||I>=9666&&I<=9719||I>=9720&&I<=9727||I>=9728&&I<=9838||I===9839||I>=9840&&I<=10087||I===10088||I===10089||I===10090||I===10091||I===10092||I===10093||I===10094||I===10095||I===10096||I===10097||I===10098||I===10099||I===10100||I===10101||I>=10132&&I<=10175||I>=10176&&I<=10180||I===10181||I===10182||I>=10183&&I<=10213||I===10214||I===10215||I===10216||I===10217||I===10218||I===10219||I===10220||I===10221||I===10222||I===10223||I>=10224&&I<=10239||I>=10240&&I<=10495||I>=10496&&I<=10626||I===10627||I===10628||I===10629||I===10630||I===10631||I===10632||I===10633||I===10634||I===10635||I===10636||I===10637||I===10638||I===10639||I===10640||I===10641||I===10642||I===10643||I===10644||I===10645||I===10646||I===10647||I===10648||I>=10649&&I<=10711||I===10712||I===10713||I===10714||I===10715||I>=10716&&I<=10747||I===10748||I===10749||I>=10750&&I<=11007||I>=11008&&I<=11055||I>=11056&&I<=11076||I>=11077&&I<=11078||I>=11079&&I<=11084||I>=11085&&I<=11123||I>=11124&&I<=11125||I>=11126&&I<=11157||I===11158||I>=11159&&I<=11263||I>=11776&&I<=11777||I===11778||I===11779||I===11780||I===11781||I>=11782&&I<=11784||I===11785||I===11786||I===11787||I===11788||I===11789||I>=11790&&I<=11798||I===11799||I>=11800&&I<=11801||I===11802||I===11803||I===11804||I===11805||I>=11806&&I<=11807||I===11808||I===11809||I===11810||I===11811||I===11812||I===11813||I===11814||I===11815||I===11816||I===11817||I>=11818&&I<=11822||I===11823||I>=11824&&I<=11833||I>=11834&&I<=11835||I>=11836&&I<=11839||I===11840||I===11841||I===11842||I>=11843&&I<=11855||I>=11856&&I<=11857||I===11858||I>=11859&&I<=11903||I>=12289&&I<=12291||I===12296||I===12297||I===12298||I===12299||I===12300||I===12301||I===12302||I===12303||I===12304||I===12305||I>=12306&&I<=12307||I===12308||I===12309||I===12310||I===12311||I===12312||I===12313||I===12314||I===12315||I===12316||I===12317||I>=12318&&I<=12319||I===12320||I===12336||I===64830||I===64831||I>=65093&&I<=65094}function ut(I){I.forEach(function(V){if(delete V.location,h(V)||l(V))for(var we in V.options)delete V.options[we].location,ut(V.options[we].value);else v(V)&&E(V.style)||(y(V)||u(V))&&P(V.style)?delete V.style.location:g(V)&&ut(V.children)})}function Xe(I,V){V===void 0&&(V={}),V=(0,i.pi)({shouldParseSkeletons:!0,requiresOtherClause:!0},V);var we=new xe(I,V).parse();if(we.err){var Le=SyntaxError(a[we.err.kind]);throw Le.location=we.err.location,Le.originalMessage=we.err.message,Le}return V!=null&&V.captureLocation||ut(we.val),we.val}var xt=null},29100:function(c,m,e){"use strict";e.d(m,{$6:function(){return u},OV:function(){return f},Qe:function(){return v},X9:function(){return y},gb:function(){return d},wI:function(){return s}});var i=e(38104),a;(function(h){h.FORMAT_ERROR="FORMAT_ERROR",h.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",h.INVALID_CONFIG="INVALID_CONFIG",h.MISSING_DATA="MISSING_DATA",h.MISSING_TRANSLATION="MISSING_TRANSLATION"})(a||(a={}));var r=function(h){(0,i.ZT)(l,h);function l(b,g,E){var P=this,T=E?E instanceof Error?E:new Error(String(E)):void 0;return P=h.call(this,"[@formatjs/intl Error ".concat(b,"] ").concat(g,` +!(function(){var hd=Object.defineProperty,yd=Object.defineProperties;var gd=Object.getOwnPropertyDescriptors;var zc=Object.getOwnPropertySymbols;var Id=Object.prototype.hasOwnProperty,xd=Object.prototype.propertyIsEnumerable;var Hc=(c,m,e)=>m in c?hd(c,m,{enumerable:!0,configurable:!0,writable:!0,value:e}):c[m]=e,Zc=(c,m)=>{for(var e in m||(m={}))Id.call(m,e)&&Hc(c,e,m[e]);if(zc)for(var e of zc(m))xd.call(m,e)&&Hc(c,e,m[e]);return c},Wc=(c,m)=>yd(c,gd(m));(function(){var __webpack_modules__={78060:function(c,m,e){"use strict";e.d(m,{kG:function(){return h}});function i(l){return Math.floor(Math.log(l)*Math.LOG10E)}function a(l,x){if(typeof l.repeat=="function")return l.repeat(x);for(var g=new Array(x),E=0;E0}),we=[],Ne=0,et=V;Ne1)throw new RangeError("integer-width stems only accept a single optional option");et.options[0].replace(Ie,function(Et,kt,Mt,Te,gt,at){if(kt)V.minimumIntegerDigits=Mt.length;else{if(Te&>)throw new Error("We currently do not support maximum integer digits");if(at)throw new Error("We currently do not support exact integer digits")}return""});continue}if(De.test(et.stem)){V.minimumIntegerDigits=et.stem.length;continue}if(q.test(et.stem)){if(et.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");et.stem.replace(q,function(Et,kt,Mt,Te,gt,at){return Mt==="*"?V.minimumFractionDigits=kt.length:Te&&Te[0]==="#"?V.maximumFractionDigits=Te.length:gt&&at?(V.minimumFractionDigits=gt.length,V.maximumFractionDigits=gt.length+at.length):(V.minimumFractionDigits=kt.length,V.maximumFractionDigits=kt.length),""});var ut=et.options[0];ut==="w"?V=(0,i.pi)((0,i.pi)({},V),{trailingZeroDisplay:"stripIfInteger"}):ut&&(V=(0,i.pi)((0,i.pi)({},V),Re(ut)));continue}if(X.test(et.stem)){V=(0,i.pi)((0,i.pi)({},V),Re(et.stem));continue}var ze=We(et.stem);ze&&(V=(0,i.pi)((0,i.pi)({},V),ze));var mt=Ve(et.stem);mt&&(V=(0,i.pi)((0,i.pi)({},V),mt))}return V}var re={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function oe(I,V){for(var we="",Ne=0;Ne>1),Et="a",kt=C(V);for((kt=="H"||kt=="k")&&(mt=0);mt-- >0;)we+=Et;for(;ze-- >0;)we=kt+we}else et==="J"?we+="H":we+=et}return we}function C(I){var V=I.hourCycle;if(V===void 0&&I.hourCycles&&I.hourCycles.length&&(V=I.hourCycles[0]),V)switch(V){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var we=I.language,Ne;we!=="root"&&(Ne=I.maximize().region);var et=re[Ne||""]||re[we||""]||re["".concat(we,"-001")]||re["001"];return et[0]}var N,Q=new RegExp("^".concat(j.source,"*")),fe=new RegExp("".concat(j.source,"*$"));function k(I,V){return{start:I,end:V}}var $=!!String.prototype.startsWith&&"_a".startsWith("a",1),Z=!!String.fromCodePoint,ge=!!Object.fromEntries,lt=!!String.prototype.codePointAt,Le=!!String.prototype.trimStart,Dt=!!String.prototype.trimEnd,an=!!Number.isSafeInteger,sn=an?Number.isSafeInteger:function(I){return typeof I=="number"&&isFinite(I)&&Math.floor(I)===I&&Math.abs(I)<=9007199254740991},Rn=!0;try{var An=ke("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Rn=((N=An.exec("a"))===null||N===void 0?void 0:N[0])==="a"}catch(I){Rn=!1}var Fn=$?function(V,we,Ne){return V.startsWith(we,Ne)}:function(V,we,Ne){return V.slice(Ne,Ne+we.length)===we},Xe=Z?String.fromCodePoint:function(){for(var V=[],we=0;weut;){if(ze=V[ut++],ze>1114111)throw RangeError(ze+" is not a valid code point");Ne+=ze<65536?String.fromCharCode(ze):String.fromCharCode(((ze-=65536)>>10)+55296,ze%1024+56320)}return Ne},xt=ge?Object.fromEntries:function(V){for(var we={},Ne=0,et=V;Ne=Ne)){var et=V.charCodeAt(we),ut;return et<55296||et>56319||we+1===Ne||(ut=V.charCodeAt(we+1))<56320||ut>57343?et:(et-55296<<10)+(ut-56320)+65536}},ot=Le?function(V){return V.trimStart()}:function(V){return V.replace(Q,"")},Ht=Dt?function(V){return V.trimEnd()}:function(V){return V.replace(fe,"")};function ke(I,V){return new RegExp(I,V)}var $e;if(Rn){var qe=ke("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");$e=function(V,we){var Ne;qe.lastIndex=we;var et=qe.exec(V);return(Ne=et[1])!==null&&Ne!==void 0?Ne:""}}else $e=function(V,we){for(var Ne=[];;){var et=vt(V,we);if(et===void 0||de(et)||Ue(et))break;Ne.push(et),we+=et>=65536?2:1}return Xe.apply(void 0,Ne)};var Ee=function(){function I(V,we){we===void 0&&(we={}),this.message=V,this.position={offset:0,line:1,column:1},this.ignoreTag=!!we.ignoreTag,this.locale=we.locale,this.requiresOtherClause=!!we.requiresOtherClause,this.shouldParseSkeletons=!!we.shouldParseSkeletons}return I.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},I.prototype.parseMessage=function(V,we,Ne){for(var et=[];!this.isEOF();){var ut=this.char();if(ut===123){var ze=this.parseArgument(V,Ne);if(ze.err)return ze;et.push(ze.val)}else{if(ut===125&&V>0)break;if(ut===35&&(we==="plural"||we==="selectordinal")){var mt=this.clonePosition();this.bump(),et.push({type:r.pound,location:k(mt,this.clonePosition())})}else if(ut===60&&!this.ignoreTag&&this.peek()===47){if(Ne)break;return this.error(a.UNMATCHED_CLOSING_TAG,k(this.clonePosition(),this.clonePosition()))}else if(ut===60&&!this.ignoreTag&&Pe(this.peek()||0)){var ze=this.parseTag(V,we);if(ze.err)return ze;et.push(ze.val)}else{var ze=this.parseLiteral(V,we);if(ze.err)return ze;et.push(ze.val)}}}return{val:et,err:null}},I.prototype.parseTag=function(V,we){var Ne=this.clonePosition();this.bump();var et=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:r.literal,value:"<".concat(et,"/>"),location:k(Ne,this.clonePosition())},err:null};if(this.bumpIf(">")){var ut=this.parseMessage(V+1,we,!0);if(ut.err)return ut;var ze=ut.val,mt=this.clonePosition();if(this.bumpIf("")?{val:{type:r.tag,value:et,children:ze,location:k(Ne,this.clonePosition())},err:null}:this.error(a.INVALID_TAG,k(mt,this.clonePosition())))}else return this.error(a.UNCLOSED_TAG,k(Ne,this.clonePosition()))}else return this.error(a.INVALID_TAG,k(Ne,this.clonePosition()))},I.prototype.parseTagName=function(){var V=this.offset();for(this.bump();!this.isEOF()&&nt(this.char());)this.bump();return this.message.slice(V,this.offset())},I.prototype.parseLiteral=function(V,we){for(var Ne=this.clonePosition(),et="";;){var ut=this.tryParseQuote(we);if(ut){et+=ut;continue}var ze=this.tryParseUnquoted(V,we);if(ze){et+=ze;continue}var mt=this.tryParseLeftAngleBracket();if(mt){et+=mt;continue}break}var Et=k(Ne,this.clonePosition());return{val:{type:r.literal,value:et,location:Et},err:null}},I.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!tt(this.peek()||0))?(this.bump(),"<"):null},I.prototype.tryParseQuote=function(V){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(V==="plural"||V==="selectordinal")break;return null;default:return null}this.bump();var we=[this.char()];for(this.bump();!this.isEOF();){var Ne=this.char();if(Ne===39)if(this.peek()===39)we.push(39),this.bump();else{this.bump();break}else we.push(Ne);this.bump()}return Xe.apply(void 0,we)},I.prototype.tryParseUnquoted=function(V,we){if(this.isEOF())return null;var Ne=this.char();return Ne===60||Ne===123||Ne===35&&(we==="plural"||we==="selectordinal")||Ne===125&&V>0?null:(this.bump(),Xe(Ne))},I.prototype.parseArgument=function(V,we){var Ne=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(a.EXPECT_ARGUMENT_CLOSING_BRACE,k(Ne,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(a.EMPTY_ARGUMENT,k(Ne,this.clonePosition()));var et=this.parseIdentifierIfPossible().value;if(!et)return this.error(a.MALFORMED_ARGUMENT,k(Ne,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(a.EXPECT_ARGUMENT_CLOSING_BRACE,k(Ne,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:r.argument,value:et,location:k(Ne,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(a.EXPECT_ARGUMENT_CLOSING_BRACE,k(Ne,this.clonePosition())):this.parseArgumentOptions(V,we,et,Ne);default:return this.error(a.MALFORMED_ARGUMENT,k(Ne,this.clonePosition()))}},I.prototype.parseIdentifierIfPossible=function(){var V=this.clonePosition(),we=this.offset(),Ne=$e(this.message,we),et=we+Ne.length;this.bumpTo(et);var ut=this.clonePosition(),ze=k(V,ut);return{value:Ne,location:ze}},I.prototype.parseArgumentOptions=function(V,we,Ne,et){var ut,ze=this.clonePosition(),mt=this.parseIdentifierIfPossible().value,Et=this.clonePosition();switch(mt){case"":return this.error(a.EXPECT_ARGUMENT_TYPE,k(ze,Et));case"number":case"date":case"time":{this.bumpSpace();var kt=null;if(this.bumpIf(",")){this.bumpSpace();var Mt=this.clonePosition(),Te=this.parseSimpleArgStyleIfPossible();if(Te.err)return Te;var gt=Ht(Te.val);if(gt.length===0)return this.error(a.EXPECT_ARGUMENT_STYLE,k(this.clonePosition(),this.clonePosition()));var at=k(Mt,this.clonePosition());kt={style:gt,styleLocation:at}}var He=this.tryParseArgumentClose(et);if(He.err)return He;var St=k(et,this.clonePosition());if(kt&&Fn(kt==null?void 0:kt.style,"::",0)){var At=ot(kt.style.slice(2));if(mt==="number"){var Te=this.parseNumberSkeletonFromString(At,kt.styleLocation);return Te.err?Te:{val:{type:r.number,value:Ne,location:St,style:Te.val},err:null}}else{if(At.length===0)return this.error(a.EXPECT_DATE_TIME_SKELETON,St);var Kt=At;this.locale&&(Kt=oe(At,this.locale));var gt={type:s.dateTime,pattern:Kt,location:kt.styleLocation,parsedOptions:this.shouldParseSkeletons?A(Kt):{}},nn=mt==="date"?r.date:r.time;return{val:{type:nn,value:Ne,location:St,style:gt},err:null}}}return{val:{type:mt==="number"?r.number:mt==="date"?r.date:r.time,value:Ne,location:St,style:(ut=kt==null?void 0:kt.style)!==null&&ut!==void 0?ut:null},err:null}}case"plural":case"selectordinal":case"select":{var Cn=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(a.EXPECT_SELECT_ARGUMENT_OPTIONS,k(Cn,(0,i.pi)({},Cn)));this.bumpSpace();var nr=this.parseIdentifierIfPossible(),Gn=0;if(mt!=="select"&&nr.value==="offset"){if(!this.bumpIf(":"))return this.error(a.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,k(this.clonePosition(),this.clonePosition()));this.bumpSpace();var Te=this.tryParseDecimalInteger(a.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,a.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(Te.err)return Te;this.bumpSpace(),nr=this.parseIdentifierIfPossible(),Gn=Te.val}var dr=this.tryParsePluralOrSelectOptions(V,mt,we,nr);if(dr.err)return dr;var He=this.tryParseArgumentClose(et);if(He.err)return He;var Cr=k(et,this.clonePosition());return mt==="select"?{val:{type:r.select,value:Ne,options:xt(dr.val),location:Cr},err:null}:{val:{type:r.plural,value:Ne,options:xt(dr.val),offset:Gn,pluralType:mt==="plural"?"cardinal":"ordinal",location:Cr},err:null}}default:return this.error(a.INVALID_ARGUMENT_TYPE,k(ze,Et))}},I.prototype.tryParseArgumentClose=function(V){return this.isEOF()||this.char()!==125?this.error(a.EXPECT_ARGUMENT_CLOSING_BRACE,k(V,this.clonePosition())):(this.bump(),{val:!0,err:null})},I.prototype.parseSimpleArgStyleIfPossible=function(){for(var V=0,we=this.clonePosition();!this.isEOF();){var Ne=this.char();switch(Ne){case 39:{this.bump();var et=this.clonePosition();if(!this.bumpUntil("'"))return this.error(a.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,k(et,this.clonePosition()));this.bump();break}case 123:{V+=1,this.bump();break}case 125:{if(V>0)V-=1;else return{val:this.message.slice(we.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(we.offset,this.offset()),err:null}},I.prototype.parseNumberSkeletonFromString=function(V,we){var Ne=[];try{Ne=z(V)}catch(et){return this.error(a.INVALID_NUMBER_SKELETON,we)}return{val:{type:s.number,tokens:Ne,location:we,parsedOptions:this.shouldParseSkeletons?Y(Ne):{}},err:null}},I.prototype.tryParsePluralOrSelectOptions=function(V,we,Ne,et){for(var ut,ze=!1,mt=[],Et=new Set,kt=et.value,Mt=et.location;;){if(kt.length===0){var Te=this.clonePosition();if(we!=="select"&&this.bumpIf("=")){var gt=this.tryParseDecimalInteger(a.EXPECT_PLURAL_ARGUMENT_SELECTOR,a.INVALID_PLURAL_ARGUMENT_SELECTOR);if(gt.err)return gt;Mt=k(Te,this.clonePosition()),kt=this.message.slice(Te.offset,this.offset())}else break}if(Et.has(kt))return this.error(we==="select"?a.DUPLICATE_SELECT_ARGUMENT_SELECTOR:a.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,Mt);kt==="other"&&(ze=!0),this.bumpSpace();var at=this.clonePosition();if(!this.bumpIf("{"))return this.error(we==="select"?a.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:a.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,k(this.clonePosition(),this.clonePosition()));var He=this.parseMessage(V+1,we,Ne);if(He.err)return He;var St=this.tryParseArgumentClose(at);if(St.err)return St;mt.push([kt,{value:He.val,location:k(at,this.clonePosition())}]),Et.add(kt),this.bumpSpace(),ut=this.parseIdentifierIfPossible(),kt=ut.value,Mt=ut.location}return mt.length===0?this.error(we==="select"?a.EXPECT_SELECT_ARGUMENT_SELECTOR:a.EXPECT_PLURAL_ARGUMENT_SELECTOR,k(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!ze?this.error(a.MISSING_OTHER_CLAUSE,k(this.clonePosition(),this.clonePosition())):{val:mt,err:null}},I.prototype.tryParseDecimalInteger=function(V,we){var Ne=1,et=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(Ne=-1);for(var ut=!1,ze=0;!this.isEOF();){var mt=this.char();if(mt>=48&&mt<=57)ut=!0,ze=ze*10+(mt-48),this.bump();else break}var Et=k(et,this.clonePosition());return ut?(ze*=Ne,sn(ze)?{val:ze,err:null}:this.error(we,Et)):this.error(V,Et)},I.prototype.offset=function(){return this.position.offset},I.prototype.isEOF=function(){return this.offset()===this.message.length},I.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},I.prototype.char=function(){var V=this.position.offset;if(V>=this.message.length)throw Error("out of bound");var we=vt(this.message,V);if(we===void 0)throw Error("Offset ".concat(V," is at invalid UTF-16 code unit boundary"));return we},I.prototype.error=function(V,we){return{val:null,err:{kind:V,message:this.message,location:we}}},I.prototype.bump=function(){if(!this.isEOF()){var V=this.char();V===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=V<65536?1:2)}},I.prototype.bumpIf=function(V){if(Fn(this.message,V,this.offset())){for(var we=0;we=0?(this.bumpTo(Ne),!0):(this.bumpTo(this.message.length),!1)},I.prototype.bumpTo=function(V){if(this.offset()>V)throw Error("targetOffset ".concat(V," must be greater than or equal to the current offset ").concat(this.offset()));for(V=Math.min(V,this.message.length);;){var we=this.offset();if(we===V)break;if(we>V)throw Error("targetOffset ".concat(V," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},I.prototype.bumpSpace=function(){for(;!this.isEOF()&&de(this.char());)this.bump()},I.prototype.peek=function(){if(this.isEOF())return null;var V=this.char(),we=this.offset(),Ne=this.message.charCodeAt(we+(V>=65536?2:1));return Ne!=null?Ne:null},I}();function Pe(I){return I>=97&&I<=122||I>=65&&I<=90}function tt(I){return Pe(I)||I===47}function nt(I){return I===45||I===46||I>=48&&I<=57||I===95||I>=97&&I<=122||I>=65&&I<=90||I==183||I>=192&&I<=214||I>=216&&I<=246||I>=248&&I<=893||I>=895&&I<=8191||I>=8204&&I<=8205||I>=8255&&I<=8256||I>=8304&&I<=8591||I>=11264&&I<=12271||I>=12289&&I<=55295||I>=63744&&I<=64975||I>=65008&&I<=65533||I>=65536&&I<=983039}function de(I){return I>=9&&I<=13||I===32||I===133||I>=8206&&I<=8207||I===8232||I===8233}function Ue(I){return I>=33&&I<=35||I===36||I>=37&&I<=39||I===40||I===41||I===42||I===43||I===44||I===45||I>=46&&I<=47||I>=58&&I<=59||I>=60&&I<=62||I>=63&&I<=64||I===91||I===92||I===93||I===94||I===96||I===123||I===124||I===125||I===126||I===161||I>=162&&I<=165||I===166||I===167||I===169||I===171||I===172||I===174||I===176||I===177||I===182||I===187||I===191||I===215||I===247||I>=8208&&I<=8213||I>=8214&&I<=8215||I===8216||I===8217||I===8218||I>=8219&&I<=8220||I===8221||I===8222||I===8223||I>=8224&&I<=8231||I>=8240&&I<=8248||I===8249||I===8250||I>=8251&&I<=8254||I>=8257&&I<=8259||I===8260||I===8261||I===8262||I>=8263&&I<=8273||I===8274||I===8275||I>=8277&&I<=8286||I>=8592&&I<=8596||I>=8597&&I<=8601||I>=8602&&I<=8603||I>=8604&&I<=8607||I===8608||I>=8609&&I<=8610||I===8611||I>=8612&&I<=8613||I===8614||I>=8615&&I<=8621||I===8622||I>=8623&&I<=8653||I>=8654&&I<=8655||I>=8656&&I<=8657||I===8658||I===8659||I===8660||I>=8661&&I<=8691||I>=8692&&I<=8959||I>=8960&&I<=8967||I===8968||I===8969||I===8970||I===8971||I>=8972&&I<=8991||I>=8992&&I<=8993||I>=8994&&I<=9e3||I===9001||I===9002||I>=9003&&I<=9083||I===9084||I>=9085&&I<=9114||I>=9115&&I<=9139||I>=9140&&I<=9179||I>=9180&&I<=9185||I>=9186&&I<=9254||I>=9255&&I<=9279||I>=9280&&I<=9290||I>=9291&&I<=9311||I>=9472&&I<=9654||I===9655||I>=9656&&I<=9664||I===9665||I>=9666&&I<=9719||I>=9720&&I<=9727||I>=9728&&I<=9838||I===9839||I>=9840&&I<=10087||I===10088||I===10089||I===10090||I===10091||I===10092||I===10093||I===10094||I===10095||I===10096||I===10097||I===10098||I===10099||I===10100||I===10101||I>=10132&&I<=10175||I>=10176&&I<=10180||I===10181||I===10182||I>=10183&&I<=10213||I===10214||I===10215||I===10216||I===10217||I===10218||I===10219||I===10220||I===10221||I===10222||I===10223||I>=10224&&I<=10239||I>=10240&&I<=10495||I>=10496&&I<=10626||I===10627||I===10628||I===10629||I===10630||I===10631||I===10632||I===10633||I===10634||I===10635||I===10636||I===10637||I===10638||I===10639||I===10640||I===10641||I===10642||I===10643||I===10644||I===10645||I===10646||I===10647||I===10648||I>=10649&&I<=10711||I===10712||I===10713||I===10714||I===10715||I>=10716&&I<=10747||I===10748||I===10749||I>=10750&&I<=11007||I>=11008&&I<=11055||I>=11056&&I<=11076||I>=11077&&I<=11078||I>=11079&&I<=11084||I>=11085&&I<=11123||I>=11124&&I<=11125||I>=11126&&I<=11157||I===11158||I>=11159&&I<=11263||I>=11776&&I<=11777||I===11778||I===11779||I===11780||I===11781||I>=11782&&I<=11784||I===11785||I===11786||I===11787||I===11788||I===11789||I>=11790&&I<=11798||I===11799||I>=11800&&I<=11801||I===11802||I===11803||I===11804||I===11805||I>=11806&&I<=11807||I===11808||I===11809||I===11810||I===11811||I===11812||I===11813||I===11814||I===11815||I===11816||I===11817||I>=11818&&I<=11822||I===11823||I>=11824&&I<=11833||I>=11834&&I<=11835||I>=11836&&I<=11839||I===11840||I===11841||I===11842||I>=11843&&I<=11855||I>=11856&&I<=11857||I===11858||I>=11859&&I<=11903||I>=12289&&I<=12291||I===12296||I===12297||I===12298||I===12299||I===12300||I===12301||I===12302||I===12303||I===12304||I===12305||I>=12306&&I<=12307||I===12308||I===12309||I===12310||I===12311||I===12312||I===12313||I===12314||I===12315||I===12316||I===12317||I>=12318&&I<=12319||I===12320||I===12336||I===64830||I===64831||I>=65093&&I<=65094}function st(I){I.forEach(function(V){if(delete V.location,h(V)||l(V))for(var we in V.options)delete V.options[we].location,st(V.options[we].value);else v(V)&&E(V.style)||(y(V)||u(V))&&P(V.style)?delete V.style.location:g(V)&&st(V.children)})}function Je(I,V){V===void 0&&(V={}),V=(0,i.pi)({shouldParseSkeletons:!0,requiresOtherClause:!0},V);var we=new Ee(I,V).parse();if(we.err){var Ne=SyntaxError(a[we.err.kind]);throw Ne.location=we.err.location,Ne.originalMessage=we.err.message,Ne}return V!=null&&V.captureLocation||st(we.val),we.val}var bt=null},29100:function(c,m,e){"use strict";e.d(m,{$6:function(){return u},OV:function(){return f},Qe:function(){return v},X9:function(){return y},gb:function(){return d},wI:function(){return s}});var i=e(38104),a;(function(h){h.FORMAT_ERROR="FORMAT_ERROR",h.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",h.INVALID_CONFIG="INVALID_CONFIG",h.MISSING_DATA="MISSING_DATA",h.MISSING_TRANSLATION="MISSING_TRANSLATION"})(a||(a={}));var r=function(h){(0,i.ZT)(l,h);function l(x,g,E){var P=this,T=E?E instanceof Error?E:new Error(String(E)):void 0;return P=h.call(this,"[@formatjs/intl Error ".concat(x,"] ").concat(g,` `).concat(T?` `.concat(T.message,` -`).concat(T.stack):""))||this,P.code=b,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(P,l),P}return l}(Error),s=function(h){(0,i.ZT)(l,h);function l(b,g){return h.call(this,a.UNSUPPORTED_FORMATTER,b,g)||this}return l}(r),f=function(h){(0,i.ZT)(l,h);function l(b,g){return h.call(this,a.INVALID_CONFIG,b,g)||this}return l}(r),d=function(h){(0,i.ZT)(l,h);function l(b,g){return h.call(this,a.MISSING_DATA,b,g)||this}return l}(r),v=function(h){(0,i.ZT)(l,h);function l(b,g,E){var P=h.call(this,a.FORMAT_ERROR,"".concat(b,` +`).concat(T.stack):""))||this,P.code=x,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(P,l),P}return l}(Error),s=function(h){(0,i.ZT)(l,h);function l(x,g){return h.call(this,a.UNSUPPORTED_FORMATTER,x,g)||this}return l}(r),f=function(h){(0,i.ZT)(l,h);function l(x,g){return h.call(this,a.INVALID_CONFIG,x,g)||this}return l}(r),d=function(h){(0,i.ZT)(l,h);function l(x,g){return h.call(this,a.MISSING_DATA,x,g)||this}return l}(r),v=function(h){(0,i.ZT)(l,h);function l(x,g,E){var P=h.call(this,a.FORMAT_ERROR,"".concat(x,` Locale: `).concat(g,` -`),E)||this;return P.locale=g,P}return l}(r),y=function(h){(0,i.ZT)(l,h);function l(b,g,E,P){var T=h.call(this,"".concat(b,` +`),E)||this;return P.locale=g,P}return l}(r),y=function(h){(0,i.ZT)(l,h);function l(x,g,E,P){var T=h.call(this,"".concat(x,` MessageID: `).concat(E==null?void 0:E.id,` Default Message: `).concat(E==null?void 0:E.defaultMessage,` Description: `).concat(E==null?void 0:E.description,` -`),g,P)||this;return T.descriptor=E,T.locale=g,T}return l}(v),u=function(h){(0,i.ZT)(l,h);function l(b,g){var E=h.call(this,a.MISSING_TRANSLATION,'Missing message: "'.concat(b.id,'" for locale "').concat(g,'", using ').concat(b.defaultMessage?"default message (".concat(typeof b.defaultMessage=="string"?b.defaultMessage:b.defaultMessage.map(function(P){var T;return(T=P.value)!==null&&T!==void 0?T:JSON.stringify(P)}).join(),")"):"id"," as fallback."))||this;return E.descriptor=b,E}return l}(r)},58610:function(c,m,e){"use strict";e.d(m,{L6:function(){return f},Sn:function(){return u},TB:function(){return b},Z0:function(){return y},ax:function(){return l}});var i=e(38104),a=e(28726),r=e(57840),s=e(29100);function f(g,E,P){return P===void 0&&(P={}),E.reduce(function(T,w){return w in g?T[w]=g[w]:w in P&&(T[w]=P[w]),T},{})}var d=function(g){},v=function(g){},y={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:d,onWarn:v};function u(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function h(g){return{create:function(){return{get:function(E){return g[E]},set:function(E,P){g[E]=P}}}}}function l(g){g===void 0&&(g=u());var E=Intl.RelativeTimeFormat,P=Intl.ListFormat,T=Intl.DisplayNames,w=(0,r.H)(function(){for(var B,A=[],R=0;R$ in k?s(k,$,{enumerable:!0,configurable:!0,writable:!0,value:Z}):k[$]=Z,u=(k,$)=>{for(var Z in $||($={}))d.call($,Z)&&y(k,Z,$[Z]);if(f)for(var Z of f($))v.call($,Z)&&y(k,Z,$[Z]);return k};const h=k=>r.createElement("svg",u({viewBox:"64 64 896 896"},k),r.createElement("path",{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0 0 51.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}),r.createElement("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}));var l="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNNjk5IDM1M2gtNDYuOWMtMTAuMiAwLTE5LjkgNC45LTI1LjkgMTMuM0w0NjkgNTg0LjNsLTcxLjItOTguOGMtNi04LjMtMTUuNi0xMy4zLTI1LjktMTMuM0gzMjVjLTYuNSAwLTEwLjMgNy40LTYuNSAxMi43bDEyNC42IDE3Mi44YTMxLjggMzEuOCAwIDAgMCA1MS43IDBsMjEwLjYtMjkyYzMuOS01LjMuMS0xMi43LTYuNC0xMi43eiIvPjxwYXRoIGQ9Ik01MTIgNjRDMjY0LjYgNjQgNjQgMjY0LjYgNjQgNTEyczIwMC42IDQ0OCA0NDggNDQ4IDQ0OC0yMDAuNiA0NDgtNDQ4Uzc1OS40IDY0IDUxMiA2NHptMCA4MjBjLTIwNS40IDAtMzcyLTE2Ni42LTM3Mi0zNzJzMTY2LjYtMzcyIDM3Mi0zNzIgMzcyIDE2Ni42IDM3MiAzNzItMTY2LjYgMzcyLTM3MiAzNzJ6Ii8+PC9zdmc+",b=Object.defineProperty,g=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable,T=(k,$,Z)=>$ in k?b(k,$,{enumerable:!0,configurable:!0,writable:!0,value:Z}):k[$]=Z,w=(k,$)=>{for(var Z in $||($={}))E.call($,Z)&&T(k,Z,$[Z]);if(g)for(var Z of g($))P.call($,Z)&&T(k,Z,$[Z]);return k};const j=k=>r.createElement("svg",w({fillRule:"evenodd",viewBox:"64 64 896 896"},k),r.createElement("path",{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 0 1 .05.09.12.12 0 0 1 0 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 0 1 .05.06v.02a.12.12 0 0 1 0 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 0 1-.09.05.12.12 0 0 1-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 0 1-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 0 1-.05-.09.12.12 0 0 1 0-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 0 1-.05-.06l-.01-.02a.12.12 0 0 1 0-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 0 1 .09-.05.12.12 0 0 1 .07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 0 1 .07 0z"}));var D="data:image/svg+xml;base64,PHN2ZyBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiPjxwYXRoIGQ9Ik01MTIgNjRjMjQ3LjQgMCA0NDggMjAwLjYgNDQ4IDQ0OFM3NTkuNCA5NjAgNTEyIDk2MCA2NCA3NTkuNCA2NCA1MTIgMjY0LjYgNjQgNTEyIDY0em0wIDc2Yy0yMDUuNCAwLTM3MiAxNjYuNi0zNzIgMzcyczE2Ni42IDM3MiAzNzIgMzcyIDM3Mi0xNjYuNiAzNzItMzcyLTE2Ni42LTM3Mi0zNzItMzcyem0xMjguMDEgMTk4LjgzYy4wMyAwIC4wNS4wMS4wOS4wNmw0NS4wMiA0NS4wMWEuMi4yIDAgMCAxIC4wNS4wOS4xMi4xMiAwIDAgMSAwIC4wN2MwIC4wMi0uMDEuMDQtLjA1LjA4TDU1Ny4yNSA1MTJsMTI3Ljg3IDEyNy44NmEuMjcuMjcgMCAwIDEgLjA1LjA2di4wMmEuMTIuMTIgMCAwIDEgMCAuMDdjMCAuMDMtLjAxLjA1LS4wNS4wOWwtNDUuMDIgNDUuMDJhLjIuMiAwIDAgMS0uMDkuMDUuMTIuMTIgMCAwIDEtLjA3IDBjLS4wMiAwLS4wNC0uMDEtLjA4LS4wNUw1MTIgNTU3LjI1IDM4NC4xNCA2ODUuMTJjLS4wNC4wNC0uMDYuMDUtLjA4LjA1YS4xMi4xMiAwIDAgMS0uMDcgMGMtLjAzIDAtLjA1LS4wMS0uMDktLjA1bC00NS4wMi00NS4wMmEuMi4yIDAgMCAxLS4wNS0uMDkuMTIuMTIgMCAwIDEgMC0uMDdjMC0uMDIuMDEtLjA0LjA2LS4wOEw0NjYuNzUgNTEyIDMzOC44OCAzODQuMTRhLjI3LjI3IDAgMCAxLS4wNS0uMDZsLS4wMS0uMDJhLjEyLjEyIDAgMCAxIDAtLjA3YzAtLjAzLjAxLS4wNS4wNS0uMDlsNDUuMDItNDUuMDJhLjIuMiAwIDAgMSAuMDktLjA1LjEyLjEyIDAgMCAxIC4wNyAwYy4wMiAwIC4wNC4wMS4wOC4wNkw1MTIgNDY2Ljc1bDEyNy44Ni0xMjcuODZjLjA0LS4wNS4wNi0uMDYuMDgtLjA2YS4xMi4xMiAwIDAgMSAuMDcgMHoiLz48L3N2Zz4=",B=Object.defineProperty,A=Object.getOwnPropertySymbols,R=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,W=(k,$,Z)=>$ in k?B(k,$,{enumerable:!0,configurable:!0,writable:!0,value:Z}):k[$]=Z,q=(k,$)=>{for(var Z in $||($={}))R.call($,Z)&&W(k,Z,$[Z]);if(A)for(var Z of A($))z.call($,Z)&&W(k,Z,$[Z]);return k};const X=k=>r.createElement("svg",q({viewBox:"64 64 896 896"},k),r.createElement("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}),r.createElement("path",{d:"M464 336a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}));var ge="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNNTEyIDY0QzI2NC42IDY0IDY0IDI2NC42IDY0IDUxMnMyMDAuNiA0NDggNDQ4IDQ0OCA0NDgtMjAwLjYgNDQ4LTQ0OFM3NTkuNCA2NCA1MTIgNjR6bTAgODIwYy0yMDUuNCAwLTM3Mi0xNjYuNi0zNzItMzcyczE2Ni42LTM3MiAzNzItMzcyIDM3MiAxNjYuNiAzNzIgMzcyLTE2Ni42IDM3Mi0zNzIgMzcyeiIvPjxwYXRoIGQ9Ik00NjQgMzM2YTQ4IDQ4IDAgMSAwIDk2IDAgNDggNDggMCAxIDAtOTYgMHptNzIgMTEyaC00OGMtNC40IDAtOCAzLjYtOCA4djI3MmMwIDQuNCAzLjYgOCA4IDhoNDhjNC40IDAgOC0zLjYgOC04VjQ1NmMwLTQuNC0zLjYtOC04LTh6Ii8+PC9zdmc+",ke=Object.defineProperty,Me=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,Ze=(k,$,Z)=>$ in k?ke(k,$,{enumerable:!0,configurable:!0,writable:!0,value:Z}):k[$]=Z,Y=(k,$)=>{for(var Z in $||($={}))He.call($,Z)&&Ze(k,Z,$[Z]);if(Me)for(var Z of Me($))Ke.call($,Z)&&Ze(k,Z,$[Z]);return k};const re=k=>r.createElement("svg",Y({viewBox:"64 64 896 896"},k),r.createElement("path",{d:"M464 720a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}));var ie="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNNDY0IDcyMGE0OCA0OCAwIDEgMCA5NiAwIDQ4IDQ4IDAgMSAwLTk2IDB6bTE2LTMwNHYxODRjMCA0LjQgMy42IDggOCA4aDQ4YzQuNCAwIDgtMy42IDgtOFY0MTZjMC00LjQtMy42LTgtOC04aC00OGMtNC40IDAtOCAzLjYtOCA4em00NzUuNyA0NDAtNDE2LTcyMGMtNi4yLTEwLjctMTYuOS0xNi0yNy43LTE2cy0yMS42IDUuMy0yNy43IDE2bC00MTYgNzIwQzU2IDg3Ny40IDcxLjQgOTA0IDk2IDkwNGg4MzJjMjQuNiAwIDQwLTI2LjYgMjcuNy00OHptLTc4My41LTI3LjlMNTEyIDIzOS45bDMzOS44IDU4OC4ySDE3Mi4yeiIvPjwvc3ZnPg==",C=e(35250),N={info:X,warning:re,success:h,error:j},Q=function($){var Z=(0,r.useState)(function(){return N[$.type]}),ye=a()(Z,1),lt=ye[0];return(0,C.jsxs)("div",{className:"dumi-default-container markdown","data-type":$.type,children:[(0,C.jsx)(lt,{}),(0,C.jsx)("h4",{children:$.title||$.type.toUpperCase()}),(0,C.jsx)("section",{children:$.children})]})},de=Q},12620:function(c,m,e){"use strict";e.d(m,{Z:function(){return Us}});var i=e(39114),a=e.n(i),r=e(26851),s=e.n(r),f=e(5602),d=e.n(f),v=e(54996),y=e(70835),u=e(70079),h=e.t(u,2),l=Object.defineProperty,b=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,P=(S,F,U)=>F in S?l(S,F,{enumerable:!0,configurable:!0,writable:!0,value:U}):S[F]=U,T=(S,F)=>{for(var U in F||(F={}))g.call(F,U)&&P(S,U,F[U]);if(b)for(var U of b(F))E.call(F,U)&&P(S,U,F[U]);return S};const w=S=>u.createElement("svg",T({viewBox:"64 64 896 896"},S),u.createElement("path",{d:"m709.6 210 .4-.2h.2L512 96 313.9 209.8h-.2l.7.3L151.5 304v416L512 928l360.5-208V304l-162.9-94zM482.7 843.6 339.6 761V621.4L210 547.8V372.9l272.7 157.3v313.4zM238.2 321.5l134.7-77.8 138.9 79.7 139.1-79.9 135.2 78-273.9 158-274-158zM814 548.3l-128.8 73.1v139.1l-143.9 83V530.4L814 373.1v175.2z"}));var j="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJtNzA5LjYgMjEwIC40LS4yaC4yTDUxMiA5NiAzMTMuOSAyMDkuOGgtLjJsLjcuM0wxNTEuNSAzMDR2NDE2TDUxMiA5MjhsMzYwLjUtMjA4VjMwNGwtMTYyLjktOTR6TTQ4Mi43IDg0My42IDMzOS42IDc2MVY2MjEuNEwyMTAgNTQ3LjhWMzcyLjlsMjcyLjcgMTU3LjN2MzEzLjR6TTIzOC4yIDMyMS41bDEzNC43LTc3LjggMTM4LjkgNzkuNyAxMzkuMS03OS45IDEzNS4yIDc4LTI3My45IDE1OC0yNzQtMTU4ek04MTQgNTQ4LjNsLTEyOC44IDczLjF2MTM5LjFsLTE0My45IDgzVjUzMC40TDgxNCAzNzMuMXYxNzUuMnoiLz48L3N2Zz4=",D=Object.defineProperty,B=Object.getOwnPropertySymbols,A=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,z=(S,F,U)=>F in S?D(S,F,{enumerable:!0,configurable:!0,writable:!0,value:U}):S[F]=U,W=(S,F)=>{for(var U in F||(F={}))A.call(F,U)&&z(S,U,F[U]);if(B)for(var U of B(F))R.call(F,U)&&z(S,U,F[U]);return S};const q=S=>u.createElement("svg",W({viewBox:"64 64 896 896"},S),u.createElement("path",{d:"m925.6 405.1-203-253.7a6.5 6.5 0 0 0-5-2.4H306.4c-1.9 0-3.8.9-5 2.4l-203 253.7a6.5 6.5 0 0 0 .2 8.3l408.6 459.5c1.2 1.4 3 2.1 4.8 2.1 1.8 0 3.5-.8 4.8-2.1l408.6-459.5a6.5 6.5 0 0 0 .2-8.3zM645.2 206.4l34.4 133.9-132.5-133.9h98.1zm8.2 178.5H370.6L512 242l141.4 142.9zM378.8 206.4h98.1L344.3 340.3l34.5-133.9zm-53.4 7-44.1 171.5h-93.1l137.2-171.5zM194.6 434.9H289l125.8 247.7-220.2-247.7zM512 763.4 345.1 434.9h333.7L512 763.4zm97.1-80.8L735 434.9h94.4L609.1 682.6zm133.6-297.7-44.1-171.5 137.2 171.5h-93.1z"}));var X="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJtOTI1LjYgNDA1LjEtMjAzLTI1My43YTYuNSA2LjUgMCAwIDAtNS0yLjRIMzA2LjRjLTEuOSAwLTMuOC45LTUgMi40bC0yMDMgMjUzLjdhNi41IDYuNSAwIDAgMCAuMiA4LjNsNDA4LjYgNDU5LjVjMS4yIDEuNCAzIDIuMSA0LjggMi4xIDEuOCAwIDMuNS0uOCA0LjgtMi4xbDQwOC42LTQ1OS41YTYuNSA2LjUgMCAwIDAgLjItOC4zek02NDUuMiAyMDYuNGwzNC40IDEzMy45LTEzMi41LTEzMy45aDk4LjF6bTguMiAxNzguNUgzNzAuNkw1MTIgMjQybDE0MS40IDE0Mi45ek0zNzguOCAyMDYuNGg5OC4xTDM0NC4zIDM0MC4zbDM0LjUtMTMzLjl6bS01My40IDctNDQuMSAxNzEuNWgtOTMuMWwxMzcuMi0xNzEuNXpNMTk0LjYgNDM0LjlIMjg5bDEyNS44IDI0Ny43LTIyMC4yLTI0Ny43ek01MTIgNzYzLjQgMzQ1LjEgNDM0LjloMzMzLjdMNTEyIDc2My40em05Ny4xLTgwLjhMNzM1IDQzNC45aDk0LjRMNjA5LjEgNjgyLjZ6bTEzMy42LTI5Ny43LTQ0LjEtMTcxLjUgMTM3LjIgMTcxLjVoLTkzLjF6Ii8+PC9zdmc+",ge=Object.defineProperty,ke=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,Ke=(S,F,U)=>F in S?ge(S,F,{enumerable:!0,configurable:!0,writable:!0,value:U}):S[F]=U,Ze=(S,F)=>{for(var U in F||(F={}))Me.call(F,U)&&Ke(S,U,F[U]);if(ke)for(var U of ke(F))He.call(F,U)&&Ke(S,U,F[U]);return S};const Y=S=>u.createElement("svg",Ze({viewBox:"64 64 896 896"},S),u.createElement("path",{d:"M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z"}));var re="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNODQ4IDM1OS4zSDYyNy43TDgyNS44IDEwOWM0LjEtNS4zLjQtMTMtNi4zLTEzSDQzNmMtMi44IDAtNS41IDEuNS02LjkgNEwxNzAgNTQ3LjVjLTMuMSA1LjMuNyAxMiA2LjkgMTJoMTc0LjRsLTg5LjQgMzU3LjZjLTEuOSA3LjggNy41IDEzLjMgMTMuMyA3LjdMODUzLjUgMzczYzUuMi00LjkgMS43LTEzLjctNS41LTEzLjd6TTM3OC4yIDczMi41bDYwLjMtMjQxSDI4MS4xbDE4OS42LTMyNy40aDIyNC42TDQ4NyA0MjcuNGgyMTFMMzc4LjIgNzMyLjV6Ii8+PC9zdmc+",ie=e(47831),C=e.n(ie),N=e(74692),Q=function(){return u.createElement(u.Fragment,null)},de=Q,k=e(5527),$=e(54744),Z=e(56673),ye=e(32630),lt=e(51062),Re=e(85801),Dt=e(87107),an=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var S=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(S)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(S==null?void 0:S.substr(0,4))},ln=(0,u.createContext)(null),Mn=e(70051),wn=e(13054),jn=e(71409),Qe=e(44116),bt=e(54272),vt=function(F){var U=F.activeTabOffset,ue=F.horizontal,ae=F.rtl,Ie=F.indicatorSize,Ee=F.indicatorAlign,je=(0,u.useState)(),Ve=(0,ye.Z)(je,2),pt=Ve[0],Rt=Ve[1],ht=(0,u.useRef)(),jt=u.useCallback(function(Lt){return typeof Ie=="function"?Ie(Lt):typeof Ie=="number"?Ie:Lt},[Ie]);function Wt(){bt.Z.cancel(ht.current)}return(0,u.useEffect)(function(){var Lt={};if(U)if(ue){Lt.width=jt(U.width);var sn=ae?"right":"left";Ee==="start"&&(Lt[sn]=U[sn]),Ee==="center"&&(Lt[sn]=U[sn]+U.width/2,Lt.transform=ae?"translateX(50%)":"translateX(-50%)"),Ee==="end"&&(Lt[sn]=U[sn]+U.width,Lt.transform="translateX(-100%)")}else Lt.height=jt(U.height),Ee==="start"&&(Lt.top=U.top),Ee==="center"&&(Lt.top=U.top+U.height/2,Lt.transform="translateY(-50%)"),Ee==="end"&&(Lt.top=U.top+U.height,Lt.transform="translateY(-100%)");return Wt(),ht.current=(0,bt.Z)(function(){Rt(Lt)}),Wt},[U,ue,ae,Ie,Ee,jt]),{style:pt}},at=vt,Ht={width:0,height:0,left:0,top:0};function Pe(S,F,U){return(0,u.useMemo)(function(){for(var ue,ae=new Map,Ie=F.get((ue=S[0])===null||ue===void 0?void 0:ue.key)||Ht,Ee=Ie.left+Ie.width,je=0;jeHn?(Ln=rn,_n.current="x"):(Ln=kn,_n.current="y"),F(-Ln,-Ln)&&pn.preventDefault()}var yn=(0,u.useRef)(null);yn.current={onTouchStart:Zt,onTouchMove:Pt,onTouchEnd:In,onWheel:Bn},u.useEffect(function(){function pn(En){yn.current.onTouchStart(En)}function rn(En){yn.current.onTouchMove(En)}function kn(En){yn.current.onTouchEnd(En)}function Ln(En){yn.current.onWheel(En)}return document.addEventListener("touchmove",rn,{passive:!1}),document.addEventListener("touchend",kn,{passive:!1}),S.current.addEventListener("touchstart",pn,{passive:!1}),S.current.addEventListener("wheel",Ln),function(){document.removeEventListener("touchmove",rn),document.removeEventListener("touchend",kn)}},[])}var ce=e(81703);function $e(S){var F=(0,u.useState)(0),U=(0,ye.Z)(F,2),ue=U[0],ae=U[1],Ie=(0,u.useRef)(0),Ee=(0,u.useRef)();return Ee.current=S,(0,ce.o)(function(){var je;(je=Ee.current)===null||je===void 0||je.call(Ee)},[ue]),function(){Ie.current===ue&&(Ie.current+=1,ae(Ie.current))}}function ut(S){var F=(0,u.useRef)([]),U=(0,u.useState)({}),ue=(0,ye.Z)(U,2),ae=ue[1],Ie=(0,u.useRef)(typeof S=="function"?S():S),Ee=$e(function(){var Ve=Ie.current;F.current.forEach(function(pt){Ve=pt(Ve)}),F.current=[],Ie.current=Ve,ae({})});function je(Ve){F.current.push(Ve),Ee()}return[Ie.current,je]}var Xe={width:0,height:0,left:0,top:0,right:0};function xt(S,F,U,ue,ae,Ie,Ee){var je=Ee.tabs,Ve=Ee.tabPosition,pt=Ee.rtl,Rt,ht,jt;return["top","bottom"].includes(Ve)?(Rt="width",ht=pt?"right":"left",jt=Math.abs(U)):(Rt="height",ht="top",jt=-U),(0,u.useMemo)(function(){if(!je.length)return[0,0];for(var Wt=je.length,Lt=Wt,sn=0;snjt+F){Lt=sn-1;break}}for(var fn=0,zt=Wt-1;zt>=0;zt-=1){var Zt=S.get(je[zt].key)||Xe;if(Zt[ht]=Lt?[0,0]:[fn,Lt]},[S,F,ue,ae,Ie,jt,Ve,je.map(function(Wt){return Wt.key}).join("_"),pt])}function I(S){var F;return S instanceof Map?(F={},S.forEach(function(U,ue){F[ue]=U})):F=S,JSON.stringify(F)}var V="TABS_DQ";function we(S){return String(S).replace(/"/g,V)}function Le(S,F,U,ue){return!(!U||ue||S===!1||S===void 0&&(F===!1||F===null))}var et=u.forwardRef(function(S,F){var U=S.prefixCls,ue=S.editable,ae=S.locale,Ie=S.style;return!ue||ue.showAdd===!1?null:u.createElement("button",{ref:F,type:"button",className:"".concat(U,"-nav-add"),style:Ie,"aria-label":(ae==null?void 0:ae.addAriaLabel)||"Add tab",onClick:function(je){ue.onEdit("add",{event:je})}},ue.addIcon||"+")}),it=et,Ue=u.forwardRef(function(S,F){var U=S.position,ue=S.prefixCls,ae=S.extra;if(!ae)return null;var Ie,Ee={};return(0,lt.Z)(ae)==="object"&&!u.isValidElement(ae)?Ee=ae:Ee.right=ae,U==="right"&&(Ie=Ee.right),U==="left"&&(Ie=Ee.left),Ie?u.createElement("div",{className:"".concat(ue,"-extra-content"),ref:F},Ie):null}),mt=Ue,Et=e(99581),kt=e(80197),Mt=e(30336),Ae=u.createContext(null),gt=Ae,rt=[];function ze(S,F){var U=u.useState(function(){if(!(0,kt.Z)())return null;var Lt=document.createElement("div");return Lt}),ue=(0,ye.Z)(U,1),ae=ue[0],Ie=u.useRef(!1),Ee=u.useContext(gt),je=u.useState(rt),Ve=(0,ye.Z)(je,2),pt=Ve[0],Rt=Ve[1],ht=Ee||(Ie.current?void 0:function(Lt){Rt(function(sn){var Jt=[Lt].concat((0,Mn.Z)(sn));return Jt})});function jt(){ae.parentElement||document.body.appendChild(ae),Ie.current=!0}function Wt(){var Lt;(Lt=ae.parentElement)===null||Lt===void 0||Lt.removeChild(ae),Ie.current=!1}return(0,ce.Z)(function(){return S?Ee?Ee(jt):jt():Wt(),Wt},[S]),(0,ce.Z)(function(){pt.length&&(pt.forEach(function(Lt){return Lt()}),Rt(rt))},[pt]),[ae,ht]}function St(S,F){if(!S)return!1;if(S.contains)return S.contains(F);for(var U=F;U;){if(U===S)return!0;U=U.parentNode}return!1}var At="data-rc-order",Kt="data-rc-priority",nn="rc-util-key",An=new Map;function tr(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},F=S.mark;return F?F.startsWith("data-")?F:"data-".concat(F):nn}function Kn(S){if(S.attachTo)return S.attachTo;var F=document.querySelector("head");return F||document.body}function cr(S){return S==="queue"?"prependQueue":S?"prepend":"append"}function Tr(S){return Array.from((An.get(S)||S).children).filter(function(F){return F.tagName==="STYLE"})}function Or(S){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,kt.Z)())return null;var U=F.csp,ue=F.prepend,ae=F.priority,Ie=ae===void 0?0:ae,Ee=cr(ue),je=Ee==="prependQueue",Ve=document.createElement("style");Ve.setAttribute(At,Ee),je&&Ie&&Ve.setAttribute(Kt,"".concat(Ie)),U!=null&&U.nonce&&(Ve.nonce=U==null?void 0:U.nonce),Ve.innerHTML=S;var pt=Kn(F),Rt=pt.firstChild;if(ue){if(je){var ht=Tr(pt).filter(function(jt){if(!["prepend","prependQueue"].includes(jt.getAttribute(At)))return!1;var Wt=Number(jt.getAttribute(Kt)||0);return Ie>=Wt});if(ht.length)return pt.insertBefore(Ve,ht[ht.length-1].nextSibling),Ve}pt.insertBefore(Ve,Rt)}else pt.appendChild(Ve);return Ve}function va(S){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U=Kn(F);return Tr(U).find(function(ue){return ue.getAttribute(tr(F))===S})}function Gr(S){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U=va(S,F);if(U){var ue=Kn(F);ue.removeChild(U)}}function Gt(S,F){var U=An.get(S);if(!U||!St(document,U)){var ue=Or("",F),ae=ue.parentNode;An.set(S,ae),S.removeChild(ue)}}function wt(){An.clear()}function $t(S,F){var U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ue=Kn(U);Gt(ue,U);var ae=va(F,U);if(ae){var Ie,Ee;if((Ie=U.csp)!==null&&Ie!==void 0&&Ie.nonce&&ae.nonce!==((Ee=U.csp)===null||Ee===void 0?void 0:Ee.nonce)){var je;ae.nonce=(je=U.csp)===null||je===void 0?void 0:je.nonce}return ae.innerHTML!==S&&(ae.innerHTML=S),ae}var Ve=Or(S,U);return Ve.setAttribute(tr(U),F),Ve}var On;function Gn(S){if(typeof document=="undefined")return 0;if(S||On===void 0){var F=document.createElement("div");F.style.width="100%",F.style.height="200px";var U=document.createElement("div"),ue=U.style;ue.position="absolute",ue.top="0",ue.left="0",ue.pointerEvents="none",ue.visibility="hidden",ue.width="200px",ue.height="150px",ue.overflow="hidden",U.appendChild(F),document.body.appendChild(U);var ae=F.offsetWidth;U.style.overflow="scroll";var Ie=F.offsetWidth;ae===Ie&&(Ie=U.clientWidth),document.body.removeChild(U),On=ae-Ie}return On}function K(S){var F=S.match(/^(.*)px$/),U=Number(F==null?void 0:F[1]);return Number.isNaN(U)?Gn():U}function De(S){if(typeof document=="undefined"||!S||!(S instanceof Element))return{width:0,height:0};var F=getComputedStyle(S,"::-webkit-scrollbar"),U=F.width,ue=F.height;return{width:K(U),height:K(ue)}}function Ye(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Ct="rc-util-locker-".concat(Date.now()),Nt=0;function hn(S){var F=!!S,U=u.useState(function(){return Nt+=1,"".concat(Ct,"_").concat(Nt)}),ue=(0,ye.Z)(U,1),ae=ue[0];(0,ce.Z)(function(){if(F){var Ie=De(document.body).width,Ee=Ye();$t(` +`),g,P)||this;return T.descriptor=E,T.locale=g,T}return l}(v),u=function(h){(0,i.ZT)(l,h);function l(x,g){var E=h.call(this,a.MISSING_TRANSLATION,'Missing message: "'.concat(x.id,'" for locale "').concat(g,'", using ').concat(x.defaultMessage?"default message (".concat(typeof x.defaultMessage=="string"?x.defaultMessage:x.defaultMessage.map(function(P){var T;return(T=P.value)!==null&&T!==void 0?T:JSON.stringify(P)}).join(),")"):"id"," as fallback."))||this;return E.descriptor=x,E}return l}(r)},58610:function(c,m,e){"use strict";e.d(m,{L6:function(){return f},Sn:function(){return u},TB:function(){return x},Z0:function(){return y},ax:function(){return l}});var i=e(38104),a=e(28726),r=e(57840),s=e(29100);function f(g,E,P){return P===void 0&&(P={}),E.reduce(function(T,w){return w in g?T[w]=g[w]:w in P&&(T[w]=P[w]),T},{})}var d=function(g){},v=function(g){},y={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:d,onWarn:v};function u(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function h(g){return{create:function(){return{get:function(E){return g[E]},set:function(E,P){g[E]=P}}}}}function l(g){g===void 0&&(g=u());var E=Intl.RelativeTimeFormat,P=Intl.ListFormat,T=Intl.DisplayNames,w=(0,r.H)(function(){for(var B,A=[],R=0;R$ in k?s(k,$,{enumerable:!0,configurable:!0,writable:!0,value:Z}):k[$]=Z,u=(k,$)=>{for(var Z in $||($={}))d.call($,Z)&&y(k,Z,$[Z]);if(f)for(var Z of f($))v.call($,Z)&&y(k,Z,$[Z]);return k};const h=k=>r.createElement("svg",u({viewBox:"64 64 896 896"},k),r.createElement("path",{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0 0 51.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}),r.createElement("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}));var l="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNNjk5IDM1M2gtNDYuOWMtMTAuMiAwLTE5LjkgNC45LTI1LjkgMTMuM0w0NjkgNTg0LjNsLTcxLjItOTguOGMtNi04LjMtMTUuNi0xMy4zLTI1LjktMTMuM0gzMjVjLTYuNSAwLTEwLjMgNy40LTYuNSAxMi43bDEyNC42IDE3Mi44YTMxLjggMzEuOCAwIDAgMCA1MS43IDBsMjEwLjYtMjkyYzMuOS01LjMuMS0xMi43LTYuNC0xMi43eiIvPjxwYXRoIGQ9Ik01MTIgNjRDMjY0LjYgNjQgNjQgMjY0LjYgNjQgNTEyczIwMC42IDQ0OCA0NDggNDQ4IDQ0OC0yMDAuNiA0NDgtNDQ4Uzc1OS40IDY0IDUxMiA2NHptMCA4MjBjLTIwNS40IDAtMzcyLTE2Ni42LTM3Mi0zNzJzMTY2LjYtMzcyIDM3Mi0zNzIgMzcyIDE2Ni42IDM3MiAzNzItMTY2LjYgMzcyLTM3MiAzNzJ6Ii8+PC9zdmc+",x=Object.defineProperty,g=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable,T=(k,$,Z)=>$ in k?x(k,$,{enumerable:!0,configurable:!0,writable:!0,value:Z}):k[$]=Z,w=(k,$)=>{for(var Z in $||($={}))E.call($,Z)&&T(k,Z,$[Z]);if(g)for(var Z of g($))P.call($,Z)&&T(k,Z,$[Z]);return k};const j=k=>r.createElement("svg",w({fillRule:"evenodd",viewBox:"64 64 896 896"},k),r.createElement("path",{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 0 1 .05.09.12.12 0 0 1 0 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 0 1 .05.06v.02a.12.12 0 0 1 0 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 0 1-.09.05.12.12 0 0 1-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 0 1-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 0 1-.05-.09.12.12 0 0 1 0-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 0 1-.05-.06l-.01-.02a.12.12 0 0 1 0-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 0 1 .09-.05.12.12 0 0 1 .07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 0 1 .07 0z"}));var D="data:image/svg+xml;base64,PHN2ZyBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiPjxwYXRoIGQ9Ik01MTIgNjRjMjQ3LjQgMCA0NDggMjAwLjYgNDQ4IDQ0OFM3NTkuNCA5NjAgNTEyIDk2MCA2NCA3NTkuNCA2NCA1MTIgMjY0LjYgNjQgNTEyIDY0em0wIDc2Yy0yMDUuNCAwLTM3MiAxNjYuNi0zNzIgMzcyczE2Ni42IDM3MiAzNzIgMzcyIDM3Mi0xNjYuNiAzNzItMzcyLTE2Ni42LTM3Mi0zNzItMzcyem0xMjguMDEgMTk4LjgzYy4wMyAwIC4wNS4wMS4wOS4wNmw0NS4wMiA0NS4wMWEuMi4yIDAgMCAxIC4wNS4wOS4xMi4xMiAwIDAgMSAwIC4wN2MwIC4wMi0uMDEuMDQtLjA1LjA4TDU1Ny4yNSA1MTJsMTI3Ljg3IDEyNy44NmEuMjcuMjcgMCAwIDEgLjA1LjA2di4wMmEuMTIuMTIgMCAwIDEgMCAuMDdjMCAuMDMtLjAxLjA1LS4wNS4wOWwtNDUuMDIgNDUuMDJhLjIuMiAwIDAgMS0uMDkuMDUuMTIuMTIgMCAwIDEtLjA3IDBjLS4wMiAwLS4wNC0uMDEtLjA4LS4wNUw1MTIgNTU3LjI1IDM4NC4xNCA2ODUuMTJjLS4wNC4wNC0uMDYuMDUtLjA4LjA1YS4xMi4xMiAwIDAgMS0uMDcgMGMtLjAzIDAtLjA1LS4wMS0uMDktLjA1bC00NS4wMi00NS4wMmEuMi4yIDAgMCAxLS4wNS0uMDkuMTIuMTIgMCAwIDEgMC0uMDdjMC0uMDIuMDEtLjA0LjA2LS4wOEw0NjYuNzUgNTEyIDMzOC44OCAzODQuMTRhLjI3LjI3IDAgMCAxLS4wNS0uMDZsLS4wMS0uMDJhLjEyLjEyIDAgMCAxIDAtLjA3YzAtLjAzLjAxLS4wNS4wNS0uMDlsNDUuMDItNDUuMDJhLjIuMiAwIDAgMSAuMDktLjA1LjEyLjEyIDAgMCAxIC4wNyAwYy4wMiAwIC4wNC4wMS4wOC4wNkw1MTIgNDY2Ljc1bDEyNy44Ni0xMjcuODZjLjA0LS4wNS4wNi0uMDYuMDgtLjA2YS4xMi4xMiAwIDAgMSAuMDcgMHoiLz48L3N2Zz4=",B=Object.defineProperty,A=Object.getOwnPropertySymbols,R=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,K=(k,$,Z)=>$ in k?B(k,$,{enumerable:!0,configurable:!0,writable:!0,value:Z}):k[$]=Z,q=(k,$)=>{for(var Z in $||($={}))R.call($,Z)&&K(k,Z,$[Z]);if(A)for(var Z of A($))z.call($,Z)&&K(k,Z,$[Z]);return k};const X=k=>r.createElement("svg",q({viewBox:"64 64 896 896"},k),r.createElement("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}),r.createElement("path",{d:"M464 336a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}));var Ie="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNNTEyIDY0QzI2NC42IDY0IDY0IDI2NC42IDY0IDUxMnMyMDAuNiA0NDggNDQ4IDQ0OCA0NDgtMjAwLjYgNDQ4LTQ0OFM3NTkuNCA2NCA1MTIgNjR6bTAgODIwYy0yMDUuNCAwLTM3Mi0xNjYuNi0zNzItMzcyczE2Ni42LTM3MiAzNzItMzcyIDM3MiAxNjYuNiAzNzIgMzcyLTE2Ni42IDM3Mi0zNzIgMzcyeiIvPjxwYXRoIGQ9Ik00NjQgMzM2YTQ4IDQ4IDAgMSAwIDk2IDAgNDggNDggMCAxIDAtOTYgMHptNzIgMTEyaC00OGMtNC40IDAtOCAzLjYtOCA4djI3MmMwIDQuNCAzLjYgOCA4IDhoNDhjNC40IDAgOC0zLjYgOC04VjQ1NmMwLTQuNC0zLjYtOC04LTh6Ii8+PC9zdmc+",De=Object.defineProperty,Re=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,Ke=(k,$,Z)=>$ in k?De(k,$,{enumerable:!0,configurable:!0,writable:!0,value:Z}):k[$]=Z,Y=(k,$)=>{for(var Z in $||($={}))We.call($,Z)&&Ke(k,Z,$[Z]);if(Re)for(var Z of Re($))Ve.call($,Z)&&Ke(k,Z,$[Z]);return k};const re=k=>r.createElement("svg",Y({viewBox:"64 64 896 896"},k),r.createElement("path",{d:"M464 720a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}));var oe="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNNDY0IDcyMGE0OCA0OCAwIDEgMCA5NiAwIDQ4IDQ4IDAgMSAwLTk2IDB6bTE2LTMwNHYxODRjMCA0LjQgMy42IDggOCA4aDQ4YzQuNCAwIDgtMy42IDgtOFY0MTZjMC00LjQtMy42LTgtOC04aC00OGMtNC40IDAtOCAzLjYtOCA4em00NzUuNyA0NDAtNDE2LTcyMGMtNi4yLTEwLjctMTYuOS0xNi0yNy43LTE2cy0yMS42IDUuMy0yNy43IDE2bC00MTYgNzIwQzU2IDg3Ny40IDcxLjQgOTA0IDk2IDkwNGg4MzJjMjQuNiAwIDQwLTI2LjYgMjcuNy00OHptLTc4My41LTI3LjlMNTEyIDIzOS45bDMzOS44IDU4OC4ySDE3Mi4yeiIvPjwvc3ZnPg==",C=e(35250),N={info:X,warning:re,success:h,error:j},Q=function($){var Z=(0,r.useState)(function(){return N[$.type]}),ge=a()(Z,1),lt=ge[0];return(0,C.jsxs)("div",{className:"dumi-default-container markdown","data-type":$.type,children:[(0,C.jsx)(lt,{}),(0,C.jsx)("h4",{children:$.title||$.type.toUpperCase()}),(0,C.jsx)("section",{children:$.children})]})},fe=Q},12620:function(c,m,e){"use strict";e.d(m,{Z:function(){return Us}});var i=e(39114),a=e.n(i),r=e(26851),s=e.n(r),f=e(5602),d=e.n(f),v=e(54996),y=e(70835),u=e(70079),h=e.t(u,2),l=Object.defineProperty,x=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,P=(S,F,U)=>F in S?l(S,F,{enumerable:!0,configurable:!0,writable:!0,value:U}):S[F]=U,T=(S,F)=>{for(var U in F||(F={}))g.call(F,U)&&P(S,U,F[U]);if(x)for(var U of x(F))E.call(F,U)&&P(S,U,F[U]);return S};const w=S=>u.createElement("svg",T({viewBox:"64 64 896 896"},S),u.createElement("path",{d:"m709.6 210 .4-.2h.2L512 96 313.9 209.8h-.2l.7.3L151.5 304v416L512 928l360.5-208V304l-162.9-94zM482.7 843.6 339.6 761V621.4L210 547.8V372.9l272.7 157.3v313.4zM238.2 321.5l134.7-77.8 138.9 79.7 139.1-79.9 135.2 78-273.9 158-274-158zM814 548.3l-128.8 73.1v139.1l-143.9 83V530.4L814 373.1v175.2z"}));var j="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJtNzA5LjYgMjEwIC40LS4yaC4yTDUxMiA5NiAzMTMuOSAyMDkuOGgtLjJsLjcuM0wxNTEuNSAzMDR2NDE2TDUxMiA5MjhsMzYwLjUtMjA4VjMwNGwtMTYyLjktOTR6TTQ4Mi43IDg0My42IDMzOS42IDc2MVY2MjEuNEwyMTAgNTQ3LjhWMzcyLjlsMjcyLjcgMTU3LjN2MzEzLjR6TTIzOC4yIDMyMS41bDEzNC43LTc3LjggMTM4LjkgNzkuNyAxMzkuMS03OS45IDEzNS4yIDc4LTI3My45IDE1OC0yNzQtMTU4ek04MTQgNTQ4LjNsLTEyOC44IDczLjF2MTM5LjFsLTE0My45IDgzVjUzMC40TDgxNCAzNzMuMXYxNzUuMnoiLz48L3N2Zz4=",D=Object.defineProperty,B=Object.getOwnPropertySymbols,A=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,z=(S,F,U)=>F in S?D(S,F,{enumerable:!0,configurable:!0,writable:!0,value:U}):S[F]=U,K=(S,F)=>{for(var U in F||(F={}))A.call(F,U)&&z(S,U,F[U]);if(B)for(var U of B(F))R.call(F,U)&&z(S,U,F[U]);return S};const q=S=>u.createElement("svg",K({viewBox:"64 64 896 896"},S),u.createElement("path",{d:"m925.6 405.1-203-253.7a6.5 6.5 0 0 0-5-2.4H306.4c-1.9 0-3.8.9-5 2.4l-203 253.7a6.5 6.5 0 0 0 .2 8.3l408.6 459.5c1.2 1.4 3 2.1 4.8 2.1 1.8 0 3.5-.8 4.8-2.1l408.6-459.5a6.5 6.5 0 0 0 .2-8.3zM645.2 206.4l34.4 133.9-132.5-133.9h98.1zm8.2 178.5H370.6L512 242l141.4 142.9zM378.8 206.4h98.1L344.3 340.3l34.5-133.9zm-53.4 7-44.1 171.5h-93.1l137.2-171.5zM194.6 434.9H289l125.8 247.7-220.2-247.7zM512 763.4 345.1 434.9h333.7L512 763.4zm97.1-80.8L735 434.9h94.4L609.1 682.6zm133.6-297.7-44.1-171.5 137.2 171.5h-93.1z"}));var X="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJtOTI1LjYgNDA1LjEtMjAzLTI1My43YTYuNSA2LjUgMCAwIDAtNS0yLjRIMzA2LjRjLTEuOSAwLTMuOC45LTUgMi40bC0yMDMgMjUzLjdhNi41IDYuNSAwIDAgMCAuMiA4LjNsNDA4LjYgNDU5LjVjMS4yIDEuNCAzIDIuMSA0LjggMi4xIDEuOCAwIDMuNS0uOCA0LjgtMi4xbDQwOC42LTQ1OS41YTYuNSA2LjUgMCAwIDAgLjItOC4zek02NDUuMiAyMDYuNGwzNC40IDEzMy45LTEzMi41LTEzMy45aDk4LjF6bTguMiAxNzguNUgzNzAuNkw1MTIgMjQybDE0MS40IDE0Mi45ek0zNzguOCAyMDYuNGg5OC4xTDM0NC4zIDM0MC4zbDM0LjUtMTMzLjl6bS01My40IDctNDQuMSAxNzEuNWgtOTMuMWwxMzcuMi0xNzEuNXpNMTk0LjYgNDM0LjlIMjg5bDEyNS44IDI0Ny43LTIyMC4yLTI0Ny43ek01MTIgNzYzLjQgMzQ1LjEgNDM0LjloMzMzLjdMNTEyIDc2My40em05Ny4xLTgwLjhMNzM1IDQzNC45aDk0LjRMNjA5LjEgNjgyLjZ6bTEzMy42LTI5Ny43LTQ0LjEtMTcxLjUgMTM3LjIgMTcxLjVoLTkzLjF6Ii8+PC9zdmc+",Ie=Object.defineProperty,De=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,Ve=(S,F,U)=>F in S?Ie(S,F,{enumerable:!0,configurable:!0,writable:!0,value:U}):S[F]=U,Ke=(S,F)=>{for(var U in F||(F={}))Re.call(F,U)&&Ve(S,U,F[U]);if(De)for(var U of De(F))We.call(F,U)&&Ve(S,U,F[U]);return S};const Y=S=>u.createElement("svg",Ke({viewBox:"64 64 896 896"},S),u.createElement("path",{d:"M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z"}));var re="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNODQ4IDM1OS4zSDYyNy43TDgyNS44IDEwOWM0LjEtNS4zLjQtMTMtNi4zLTEzSDQzNmMtMi44IDAtNS41IDEuNS02LjkgNEwxNzAgNTQ3LjVjLTMuMSA1LjMuNyAxMiA2LjkgMTJoMTc0LjRsLTg5LjQgMzU3LjZjLTEuOSA3LjggNy41IDEzLjMgMTMuMyA3LjdMODUzLjUgMzczYzUuMi00LjkgMS43LTEzLjctNS41LTEzLjd6TTM3OC4yIDczMi41bDYwLjMtMjQxSDI4MS4xbDE4OS42LTMyNy40aDIyNC42TDQ4NyA0MjcuNGgyMTFMMzc4LjIgNzMyLjV6Ii8+PC9zdmc+",oe=e(47831),C=e.n(oe),N=e(74692),Q=function(){return u.createElement(u.Fragment,null)},fe=Q,k=e(5527),$=e(54744),Z=e(56673),ge=e(32630),lt=e(51062),Le=e(85801),Dt=e(87107),an=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var S=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(S)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(S==null?void 0:S.substr(0,4))},sn=(0,u.createContext)(null),Rn=e(70051),An=e(13054),Fn=e(71409),Xe=e(44116),xt=e(54272),vt=function(F){var U=F.activeTabOffset,le=F.horizontal,ae=F.rtl,xe=F.indicatorSize,Se=F.indicatorAlign,je=(0,u.useState)(),Ye=(0,ge.Z)(je,2),pt=Ye[0],Rt=Ye[1],ht=(0,u.useRef)(),Ft=u.useCallback(function(Lt){return typeof xe=="function"?xe(Lt):typeof xe=="number"?xe:Lt},[xe]);function Wt(){xt.Z.cancel(ht.current)}return(0,u.useEffect)(function(){var Lt={};if(U)if(le){Lt.width=Ft(U.width);var un=ae?"right":"left";Se==="start"&&(Lt[un]=U[un]),Se==="center"&&(Lt[un]=U[un]+U.width/2,Lt.transform=ae?"translateX(50%)":"translateX(-50%)"),Se==="end"&&(Lt[un]=U[un]+U.width,Lt.transform="translateX(-100%)")}else Lt.height=Ft(U.height),Se==="start"&&(Lt.top=U.top),Se==="center"&&(Lt.top=U.top+U.height/2,Lt.transform="translateY(-50%)"),Se==="end"&&(Lt.top=U.top+U.height,Lt.transform="translateY(-100%)");return Wt(),ht.current=(0,xt.Z)(function(){Rt(Lt)}),Wt},[U,le,ae,xe,Se,Ft]),{style:pt}},ot=vt,Ht={width:0,height:0,left:0,top:0};function ke(S,F,U){return(0,u.useMemo)(function(){for(var le,ae=new Map,xe=F.get((le=S[0])===null||le===void 0?void 0:le.key)||Ht,Se=xe.left+xe.width,je=0;jeZn?(Nn=rn,wn.current="x"):(Nn=Dn,wn.current="y"),F(-Nn,-Nn)&&fn.preventDefault()}var hn=(0,u.useRef)(null);hn.current={onTouchStart:Zt,onTouchMove:Pt,onTouchEnd:In,onWheel:$n},u.useEffect(function(){function fn(En){hn.current.onTouchStart(En)}function rn(En){hn.current.onTouchMove(En)}function Dn(En){hn.current.onTouchEnd(En)}function Nn(En){hn.current.onWheel(En)}return document.addEventListener("touchmove",rn,{passive:!1}),document.addEventListener("touchend",Dn,{passive:!1}),S.current.addEventListener("touchstart",fn,{passive:!1}),S.current.addEventListener("wheel",Nn),function(){document.removeEventListener("touchmove",rn),document.removeEventListener("touchend",Dn)}},[])}var de=e(81703);function Ue(S){var F=(0,u.useState)(0),U=(0,ge.Z)(F,2),le=U[0],ae=U[1],xe=(0,u.useRef)(0),Se=(0,u.useRef)();return Se.current=S,(0,de.o)(function(){var je;(je=Se.current)===null||je===void 0||je.call(Se)},[le]),function(){xe.current===le&&(xe.current+=1,ae(xe.current))}}function st(S){var F=(0,u.useRef)([]),U=(0,u.useState)({}),le=(0,ge.Z)(U,2),ae=le[1],xe=(0,u.useRef)(typeof S=="function"?S():S),Se=Ue(function(){var Ye=xe.current;F.current.forEach(function(pt){Ye=pt(Ye)}),F.current=[],xe.current=Ye,ae({})});function je(Ye){F.current.push(Ye),Se()}return[xe.current,je]}var Je={width:0,height:0,left:0,top:0,right:0};function bt(S,F,U,le,ae,xe,Se){var je=Se.tabs,Ye=Se.tabPosition,pt=Se.rtl,Rt,ht,Ft;return["top","bottom"].includes(Ye)?(Rt="width",ht=pt?"right":"left",Ft=Math.abs(U)):(Rt="height",ht="top",Ft=-U),(0,u.useMemo)(function(){if(!je.length)return[0,0];for(var Wt=je.length,Lt=Wt,un=0;unFt+F){Lt=un-1;break}}for(var dn=0,zt=Wt-1;zt>=0;zt-=1){var Zt=S.get(je[zt].key)||Je;if(Zt[ht]=Lt?[0,0]:[dn,Lt]},[S,F,le,ae,xe,Ft,Ye,je.map(function(Wt){return Wt.key}).join("_"),pt])}function I(S){var F;return S instanceof Map?(F={},S.forEach(function(U,le){F[le]=U})):F=S,JSON.stringify(F)}var V="TABS_DQ";function we(S){return String(S).replace(/"/g,V)}function Ne(S,F,U,le){return!(!U||le||S===!1||S===void 0&&(F===!1||F===null))}var et=u.forwardRef(function(S,F){var U=S.prefixCls,le=S.editable,ae=S.locale,xe=S.style;return!le||le.showAdd===!1?null:u.createElement("button",{ref:F,type:"button",className:"".concat(U,"-nav-add"),style:xe,"aria-label":(ae==null?void 0:ae.addAriaLabel)||"Add tab",onClick:function(je){le.onEdit("add",{event:je})}},le.addIcon||"+")}),ut=et,ze=u.forwardRef(function(S,F){var U=S.position,le=S.prefixCls,ae=S.extra;if(!ae)return null;var xe,Se={};return(0,lt.Z)(ae)==="object"&&!u.isValidElement(ae)?Se=ae:Se.right=ae,U==="right"&&(xe=Se.right),U==="left"&&(xe=Se.left),xe?u.createElement("div",{className:"".concat(le,"-extra-content"),ref:F},xe):null}),mt=ze,Et=e(99581),kt=e(80197),Mt=e(30336),Te=u.createContext(null),gt=Te,at=[];function He(S,F){var U=u.useState(function(){if(!(0,kt.Z)())return null;var Lt=document.createElement("div");return Lt}),le=(0,ge.Z)(U,1),ae=le[0],xe=u.useRef(!1),Se=u.useContext(gt),je=u.useState(at),Ye=(0,ge.Z)(je,2),pt=Ye[0],Rt=Ye[1],ht=Se||(xe.current?void 0:function(Lt){Rt(function(un){var Jt=[Lt].concat((0,Rn.Z)(un));return Jt})});function Ft(){ae.parentElement||document.body.appendChild(ae),xe.current=!0}function Wt(){var Lt;(Lt=ae.parentElement)===null||Lt===void 0||Lt.removeChild(ae),xe.current=!1}return(0,de.Z)(function(){return S?Se?Se(Ft):Ft():Wt(),Wt},[S]),(0,de.Z)(function(){pt.length&&(pt.forEach(function(Lt){return Lt()}),Rt(at))},[pt]),[ae,ht]}function St(S,F){if(!S)return!1;if(S.contains)return S.contains(F);for(var U=F;U;){if(U===S)return!0;U=U.parentNode}return!1}var At="data-rc-order",Kt="data-rc-priority",nn="rc-util-key",Cn=new Map;function nr(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},F=S.mark;return F?F.startsWith("data-")?F:"data-".concat(F):nn}function Gn(S){if(S.attachTo)return S.attachTo;var F=document.querySelector("head");return F||document.body}function dr(S){return S==="queue"?"prependQueue":S?"prepend":"append"}function Cr(S){return Array.from((Cn.get(S)||S).children).filter(function(F){return F.tagName==="STYLE"})}function Tr(S){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,kt.Z)())return null;var U=F.csp,le=F.prepend,ae=F.priority,xe=ae===void 0?0:ae,Se=dr(le),je=Se==="prependQueue",Ye=document.createElement("style");Ye.setAttribute(At,Se),je&&xe&&Ye.setAttribute(Kt,"".concat(xe)),U!=null&&U.nonce&&(Ye.nonce=U==null?void 0:U.nonce),Ye.innerHTML=S;var pt=Gn(F),Rt=pt.firstChild;if(le){if(je){var ht=Cr(pt).filter(function(Ft){if(!["prepend","prependQueue"].includes(Ft.getAttribute(At)))return!1;var Wt=Number(Ft.getAttribute(Kt)||0);return xe>=Wt});if(ht.length)return pt.insertBefore(Ye,ht[ht.length-1].nextSibling),Ye}pt.insertBefore(Ye,Rt)}else pt.appendChild(Ye);return Ye}function ya(S){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U=Gn(F);return Cr(U).find(function(le){return le.getAttribute(nr(F))===S})}function Gr(S){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U=ya(S,F);if(U){var le=Gn(F);le.removeChild(U)}}function Gt(S,F){var U=Cn.get(S);if(!U||!St(document,U)){var le=Tr("",F),ae=le.parentNode;Cn.set(S,ae),S.removeChild(le)}}function wt(){Cn.clear()}function $t(S,F){var U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},le=Gn(U);Gt(le,U);var ae=ya(F,U);if(ae){var xe,Se;if((xe=U.csp)!==null&&xe!==void 0&&xe.nonce&&ae.nonce!==((Se=U.csp)===null||Se===void 0?void 0:Se.nonce)){var je;ae.nonce=(je=U.csp)===null||je===void 0?void 0:je.nonce}return ae.innerHTML!==S&&(ae.innerHTML=S),ae}var Ye=Tr(S,U);return Ye.setAttribute(nr(U),F),Ye}var Pn;function Vn(S){if(typeof document=="undefined")return 0;if(S||Pn===void 0){var F=document.createElement("div");F.style.width="100%",F.style.height="200px";var U=document.createElement("div"),le=U.style;le.position="absolute",le.top="0",le.left="0",le.pointerEvents="none",le.visibility="hidden",le.width="200px",le.height="150px",le.overflow="hidden",U.appendChild(F),document.body.appendChild(U);var ae=F.offsetWidth;U.style.overflow="scroll";var xe=F.offsetWidth;ae===xe&&(xe=U.clientWidth),document.body.removeChild(U),Pn=ae-xe}return Pn}function G(S){var F=S.match(/^(.*)px$/),U=Number(F==null?void 0:F[1]);return Number.isNaN(U)?Vn():U}function Me(S){if(typeof document=="undefined"||!S||!(S instanceof Element))return{width:0,height:0};var F=getComputedStyle(S,"::-webkit-scrollbar"),U=F.width,le=F.height;return{width:G(U),height:G(le)}}function Qe(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Ct="rc-util-locker-".concat(Date.now()),jt=0;function mn(S){var F=!!S,U=u.useState(function(){return jt+=1,"".concat(Ct,"_").concat(jt)}),le=(0,ge.Z)(U,1),ae=le[0];(0,de.Z)(function(){if(F){var xe=Me(document.body).width,Se=Qe();$t(` html body { overflow-y: hidden; - `.concat(Ee?"width: calc(100% - ".concat(Ie,"px);"):"",` -}`),ae)}else Gr(ae);return function(){Gr(ae)}},[F,ae])}var tn=!1;function cn(S){return typeof S=="boolean"&&(tn=S),tn}var gn=function(F){return F===!1?!1:!(0,kt.Z)()||!F?null:typeof F=="string"?document.querySelector(F):typeof F=="function"?F():F},dn=u.forwardRef(function(S,F){var U=S.open,ue=S.autoLock,ae=S.getContainer,Ie=S.debug,Ee=S.autoDestroy,je=Ee===void 0?!0:Ee,Ve=S.children,pt=u.useState(U),Rt=(0,ye.Z)(pt,2),ht=Rt[0],jt=Rt[1],Wt=ht||U;u.useEffect(function(){(je||U)&&jt(U)},[U,je]);var Lt=u.useState(function(){return gn(ae)}),sn=(0,ye.Z)(Lt,2),Jt=sn[0],fn=sn[1];u.useEffect(function(){var Ln=gn(ae);fn(Ln!=null?Ln:null)});var zt=ze(Wt&&!Jt,Ie),Zt=(0,ye.Z)(zt,2),Pt=Zt[0],In=Zt[1],_n=Jt!=null?Jt:Pt;hn(ue&&U&&(0,kt.Z)()&&(_n===Pt||_n===document.body));var Bn=null;if(Ve&&(0,Qe.Yr)(Ve)&&F){var yn=Ve;Bn=yn.ref}var pn=(0,Qe.x1)(Bn,F);if(!Wt||!(0,kt.Z)()||Jt===void 0)return null;var rn=_n===!1||cn(),kn=Ve;return F&&(kn=u.cloneElement(Ve,{ref:pn})),u.createElement(gt.Provider,{value:In},rn?kn:(0,Et.createPortal)(kn,_n))}),Cn=dn,vn=Cn,rr=e(26726);function Ar(S){var F;return S==null||(F=S.getRootNode)===null||F===void 0?void 0:F.call(S)}function _t(S){return Ar(S)instanceof ShadowRoot}function It(S){return _t(S)?Ar(S):null}function Ut(){var S=(0,Z.Z)({},h);return S.useId}var qt=0;function Xt(){}var mn=Ut(),ar=mn?function(F){var U=mn();return F||U}:function(F){var U=u.useState("ssr-id"),ue=(0,ye.Z)(U,2),ae=ue[0],Ie=ue[1];return u.useEffect(function(){var Ee=qt;qt+=1,Ie("rc_unique_".concat(Ee))},[]),F||ae},lr=e(71755);function Vr(S){var F=S.prefixCls,U=S.align,ue=S.arrow,ae=S.arrowPos,Ie=ue||{},Ee=Ie.className,je=Ie.content,Ve=ae.x,pt=Ve===void 0?0:Ve,Rt=ae.y,ht=Rt===void 0?0:Rt,jt=u.useRef();if(!U||!U.points)return null;var Wt={position:"absolute"};if(U.autoArrow!==!1){var Lt=U.points[0],sn=U.points[1],Jt=Lt[0],fn=Lt[1],zt=sn[0],Zt=sn[1];Jt===zt||!["t","b"].includes(Jt)?Wt.top=ht:Jt==="t"?Wt.top=0:Wt.bottom=0,fn===Zt||!["l","r"].includes(fn)?Wt.left=pt:fn==="l"?Wt.left=0:Wt.right=0}return u.createElement("div",{ref:jt,className:d()("".concat(F,"-arrow"),Ee),style:Wt},je)}function Fr(S){var F=S.prefixCls,U=S.open,ue=S.zIndex,ae=S.mask,Ie=S.motion;return ae?u.createElement(lr.ZP,(0,k.Z)({},Ie,{motionAppear:!0,visible:U,removeOnLeave:!0}),function(Ee){var je=Ee.className;return u.createElement("div",{style:{zIndex:ue},className:d()("".concat(F,"-mask"),je)})}):null}var Hr=u.memo(function(S){var F=S.children;return F},function(S,F){return F.cache}),ba=Hr,Ma=u.forwardRef(function(S,F){var U=S.popup,ue=S.className,ae=S.prefixCls,Ie=S.style,Ee=S.target,je=S.onVisibleChanged,Ve=S.open,pt=S.keepDom,Rt=S.fresh,ht=S.onClick,jt=S.mask,Wt=S.arrow,Lt=S.arrowPos,sn=S.align,Jt=S.motion,fn=S.maskMotion,zt=S.forceRender,Zt=S.getPopupContainer,Pt=S.autoDestroy,In=S.portal,_n=S.zIndex,Bn=S.onMouseEnter,yn=S.onMouseLeave,pn=S.onPointerEnter,rn=S.ready,kn=S.offsetX,Ln=S.offsetY,En=S.offsetR,Hn=S.offsetB,dr=S.onAlign,$n=S.onPrepare,er=S.stretch,Qn=S.targetWidth,br=S.targetHeight,Jn=typeof U=="function"?U():U,Ur=Ve||pt,Xn=(Zt==null?void 0:Zt.length)>0,or=u.useState(!Zt||!Xn),xr=(0,ye.Z)(or,2),_r=xr[0],Er=xr[1];if((0,ce.Z)(function(){!_r&&Xn&&Ee&&Er(!0)},[_r,Xn,Ee]),!_r)return null;var nr="auto",Zn={left:"-1000vw",top:"-1000vh",right:nr,bottom:nr};if(rn||!Ve){var Nr,ra=sn.points,gr=sn.dynamicInset||((Nr=sn._experimental)===null||Nr===void 0?void 0:Nr.dynamicInset),Zr=gr&&ra[0][1]==="r",Sa=gr&&ra[0][0]==="b";Zr?(Zn.right=En,Zn.left=nr):(Zn.left=kn,Zn.right=nr),Sa?(Zn.bottom=Hn,Zn.top=nr):(Zn.top=Ln,Zn.bottom=nr)}var aa={};return er&&(er.includes("height")&&br?aa.height=br:er.includes("minHeight")&&br&&(aa.minHeight=br),er.includes("width")&&Qn?aa.width=Qn:er.includes("minWidth")&&Qn&&(aa.minWidth=Qn)),Ve||(aa.pointerEvents="none"),u.createElement(In,{open:zt||Ur,getContainer:Zt&&function(){return Zt(Ee)},autoDestroy:Pt},u.createElement(Fr,{prefixCls:ae,open:Ve,zIndex:_n,mask:jt,motion:fn}),u.createElement(wn.Z,{onResize:dr,disabled:!Ve},function(_a){return u.createElement(lr.ZP,(0,k.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:zt,leavedClassName:"".concat(ae,"-hidden")},Jt,{onAppearPrepare:$n,onEnterPrepare:$n,visible:Ve,onVisibleChanged:function(wa){var pr;Jt==null||(pr=Jt.onVisibleChanged)===null||pr===void 0||pr.call(Jt,wa),je(wa)}}),function(la,wa){var pr=la.className,vr=la.style,ka=d()(ae,pr,ue);return u.createElement("div",{ref:(0,Qe.sQ)(_a,F,wa),className:ka,style:(0,Z.Z)((0,Z.Z)((0,Z.Z)((0,Z.Z)({"--arrow-x":"".concat(Lt.x||0,"px"),"--arrow-y":"".concat(Lt.y||0,"px")},Zn),aa),vr),{},{boxSizing:"border-box",zIndex:_n},Ie),onMouseEnter:Bn,onMouseLeave:yn,onPointerEnter:pn,onClick:ht},Wt&&u.createElement(Vr,{prefixCls:ae,arrow:Wt,arrowPos:Lt,align:sn}),u.createElement(ba,{cache:!Ve&&!Rt},Jn))})}))}),Oa=Ma,Br=u.forwardRef(function(S,F){var U=S.children,ue=S.getTriggerDOMNode,ae=(0,Qe.Yr)(U),Ie=u.useCallback(function(je){(0,Qe.mH)(F,ue?ue(je):je)},[ue]),Ee=(0,Qe.x1)(Ie,U.ref);return ae?u.cloneElement(U,{ref:Ee}):U}),fa=Br,yr=u.createContext(null),sa=yr;function Pa(S){return S?Array.isArray(S)?S:[S]:[]}function Pr(S,F,U,ue){return u.useMemo(function(){var ae=Pa(U!=null?U:F),Ie=Pa(ue!=null?ue:F),Ee=new Set(ae),je=new Set(Ie);return S&&(Ee.has("hover")&&(Ee.delete("hover"),Ee.add("click")),je.has("hover")&&(je.delete("hover"),je.add("click"))),[Ee,je]},[S,F,U,ue])}var Ka=function(S){if(!S)return!1;if(S instanceof Element){if(S.offsetParent)return!0;if(S.getBBox){var F=S.getBBox(),U=F.width,ue=F.height;if(U||ue)return!0}if(S.getBoundingClientRect){var ae=S.getBoundingClientRect(),Ie=ae.width,Ee=ae.height;if(Ie||Ee)return!0}}return!1};function ki(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],U=arguments.length>2?arguments[2]:void 0;return U?S[0]===F[0]:S[0]===F[0]&&S[1]===F[1]}function xo(S,F,U,ue){for(var ae=U.points,Ie=Object.keys(S),Ee=0;Ee1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(S)?F:S}function io(S){return vo(parseFloat(S),0)}function uo(S,F){var U=(0,Z.Z)({},S);return(F||[]).forEach(function(ue){if(!(ue instanceof HTMLBodyElement||ue instanceof HTMLHtmlElement)){var ae=Co(ue).getComputedStyle(ue),Ie=ae.overflow,Ee=ae.overflowClipMargin,je=ae.borderTopWidth,Ve=ae.borderBottomWidth,pt=ae.borderLeftWidth,Rt=ae.borderRightWidth,ht=ue.getBoundingClientRect(),jt=ue.offsetHeight,Wt=ue.clientHeight,Lt=ue.offsetWidth,sn=ue.clientWidth,Jt=io(je),fn=io(Ve),zt=io(pt),Zt=io(Rt),Pt=vo(Math.round(ht.width/Lt*1e3)/1e3),In=vo(Math.round(ht.height/jt*1e3)/1e3),_n=(Lt-sn-zt-Zt)*Pt,Bn=(jt-Wt-Jt-fn)*In,yn=Jt*In,pn=fn*In,rn=zt*Pt,kn=Zt*Pt,Ln=0,En=0;if(Ie==="clip"){var Hn=io(Ee);Ln=Hn*Pt,En=Hn*In}var dr=ht.x+rn-Ln,$n=ht.y+yn-En,er=dr+ht.width+2*Ln-rn-kn-_n,Qn=$n+ht.height+2*En-yn-pn-Bn;U.left=Math.max(U.left,dr),U.top=Math.max(U.top,$n),U.right=Math.min(U.right,er),U.bottom=Math.min(U.bottom,Qn)}}),U}function mo(S){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,U="".concat(F),ue=U.match(/^(.*)\%$/);return ue?S*(parseFloat(ue[1])/100):parseFloat(U)}function Oo(S,F){var U=F||[],ue=(0,ye.Z)(U,2),ae=ue[0],Ie=ue[1];return[mo(S.width,ae),mo(S.height,Ie)]}function so(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[S[0],S[1]]}function Po(S,F){var U=F[0],ue=F[1],ae,Ie;return U==="t"?Ie=S.y:U==="b"?Ie=S.y+S.height:Ie=S.y+S.height/2,ue==="l"?ae=S.x:ue==="r"?ae=S.x+S.width:ae=S.x+S.width/2,{x:ae,y:Ie}}function qa(S,F){var U={t:"b",b:"t",l:"r",r:"l"};return S.map(function(ue,ae){return ae===F?U[ue]||"c":ue}).join("")}function ss(S,F,U,ue,ae,Ie,Ee){var je=u.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:ae[ue]||{}}),Ve=(0,ye.Z)(je,2),pt=Ve[0],Rt=Ve[1],ht=u.useRef(0),jt=u.useMemo(function(){return F?To(F):[]},[F]),Wt=u.useRef({}),Lt=function(){Wt.current={}};S||Lt();var sn=(0,jn.Z)(function(){if(F&&U&&S){let Ce=function(Ge,Ne){var st=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ka,Ft=Jn.x+Ge,Yt=Jn.y+Ne,on=Ft+Nr,fr=Yt+Zn,$a=Math.max(Ft,st.left),ao=Math.max(Yt,st.top),Cu=Math.min(on,st.right),Ti=Math.min(fr,st.bottom);return Math.max(0,(Cu-$a)*(Ti-ao))},Te=function(){da=Jn.y+ir,Da=da+Zn,yo=Jn.x+Wr,zr=yo+Nr};var zt,Zt,Pt=F,In=Pt.ownerDocument,_n=Co(Pt),Bn=_n.getComputedStyle(Pt),yn=Bn.width,pn=Bn.height,rn=Bn.position,kn=Pt.style.left,Ln=Pt.style.top,En=Pt.style.right,Hn=Pt.style.bottom,dr=Pt.style.overflow,$n=(0,Z.Z)((0,Z.Z)({},ae[ue]),Ie),er=In.createElement("div");(zt=Pt.parentElement)===null||zt===void 0||zt.appendChild(er),er.style.left="".concat(Pt.offsetLeft,"px"),er.style.top="".concat(Pt.offsetTop,"px"),er.style.position=rn,er.style.height="".concat(Pt.offsetHeight,"px"),er.style.width="".concat(Pt.offsetWidth,"px"),Pt.style.left="0",Pt.style.top="0",Pt.style.right="auto",Pt.style.bottom="auto",Pt.style.overflow="hidden";var Qn;if(Array.isArray(U))Qn={x:U[0],y:U[1],width:0,height:0};else{var br=U.getBoundingClientRect();Qn={x:br.x,y:br.y,width:br.width,height:br.height}}var Jn=Pt.getBoundingClientRect(),Ur=In.documentElement,Xn=Ur.clientWidth,or=Ur.clientHeight,xr=Ur.scrollWidth,_r=Ur.scrollHeight,Er=Ur.scrollTop,nr=Ur.scrollLeft,Zn=Jn.height,Nr=Jn.width,ra=Qn.height,gr=Qn.width,Zr={left:0,top:0,right:Xn,bottom:or},Sa={left:-nr,top:-Er,right:xr-nr,bottom:_r-Er},aa=$n.htmlRegion,_a="visible",la="visibleFirst";aa!=="scroll"&&aa!==la&&(aa=_a);var wa=aa===la,pr=uo(Sa,jt),vr=uo(Zr,jt),ka=aa===_a?vr:pr,Na=wa?vr:ka;Pt.style.left="auto",Pt.style.top="auto",Pt.style.right="0",Pt.style.bottom="0";var co=Pt.getBoundingClientRect();Pt.style.left=kn,Pt.style.top=Ln,Pt.style.right=En,Pt.style.bottom=Hn,Pt.style.overflow=dr,(Zt=Pt.parentElement)===null||Zt===void 0||Zt.removeChild(er);var oa=vo(Math.round(Nr/parseFloat(yn)*1e3)/1e3),Aa=vo(Math.round(Zn/parseFloat(pn)*1e3)/1e3);if(oa===0||Aa===0||(0,rr.S)(U)&&!Ka(U))return;var Ua=$n.offset,Qr=$n.targetOffset,Lo=Oo(Jn,Ua),qr=(0,ye.Z)(Lo,2),ia=qr[0],jr=qr[1],Cr=Oo(Qn,Qr),za=(0,ye.Z)(Cr,2),Xr=za[0],Va=za[1];Qn.x-=Xr,Qn.y-=Va;var ja=$n.points||[],Rr=(0,ye.Z)(ja,2),ca=Rr[0],_o=Rr[1],wr=so(_o),ga=so(ca),fo=Po(Qn,wr),No=Po(Jn,ga),Fa=(0,Z.Z)({},$n),Wr=fo.x-No.x+ia,ir=fo.y-No.y+jr,Sr=Ce(Wr,ir),Sn=Ce(Wr,ir,vr),Dn=Po(Qn,["t","l"]),Kr=Po(Jn,["t","l"]),Ca=Po(Qn,["b","r"]),Ha=Po(Jn,["b","r"]),Ya=$n.overflow||{},Ba=Ya.adjustX,Si=Ya.adjustY,jo=Ya.shiftX,ro=Ya.shiftY,Qa=function(Ne){return typeof Ne=="boolean"?Ne:Ne>=0},da,Da,yo,zr;Te();var Ir=Qa(Si),ea=ga[0]===wr[0];if(Ir&&ga[0]==="t"&&(Da>Na.bottom||Wt.current.bt)){var Ta=ir;ea?Ta-=Zn-ra:Ta=Dn.y-Ha.y-jr;var Xa=Ce(Wr,Ta),wo=Ce(Wr,Ta,vr);Xa>Sr||Xa===Sr&&(!wa||wo>=Sn)?(Wt.current.bt=!0,ir=Ta,jr=-jr,Fa.points=[qa(ga,0),qa(wr,0)]):Wt.current.bt=!1}if(Ir&&ga[0]==="b"&&(daSr||_i===Sr&&(!wa||ru>=Sn)?(Wt.current.tb=!0,ir=Ia,jr=-jr,Fa.points=[qa(ga,0),qa(wr,0)]):Wt.current.tb=!1}var go=Qa(Ba),zo=ga[1]===wr[1];if(go&&ga[1]==="l"&&(zr>Na.right||Wt.current.rl)){var Io=Wr;zo?Io-=Nr-gr:Io=Dn.x-Ha.x-ia;var di=Ce(Io,ir),au=Ce(Io,ir,vr);di>Sr||di===Sr&&(!wa||au>=Sn)?(Wt.current.rl=!0,Wr=Io,ia=-ia,Fa.points=[qa(ga,1),qa(wr,1)]):Wt.current.rl=!1}if(go&&ga[1]==="r"&&(yoSr||ou===Sr&&(!wa||qo>=Sn)?(Wt.current.lr=!0,Wr=fi,ia=-ia,Fa.points=[qa(ga,1),qa(wr,1)]):Wt.current.lr=!1}Te();var ei=jo===!0?0:jo;typeof ei=="number"&&(yovr.right&&(Wr-=zr-vr.right-ia,Qn.x>vr.right-ei&&(Wr+=Qn.x-vr.right+ei)));var wi=ro===!0?0:ro;typeof wi=="number"&&(davr.bottom&&(ir-=Da-vr.bottom-jr,Qn.y>vr.bottom-wi&&(ir+=Qn.y-vr.bottom+wi)));var Ai=Jn.x+Wr,Ci=Ai+Nr,Ho=Jn.y+ir,Au=Ho+Zn,qe=Qn.x,G=qe+gr,se=Qn.y,oe=se+ra,te=Math.max(Ai,qe),ne=Math.min(Ci,G),J=(te+ne)/2,pe=J-Ai,le=Math.max(Ho,se),fe=Math.min(Au,oe),_e=(le+fe)/2,ve=_e-Ho;Ee==null||Ee(F,Fa);var he=co.right-Jn.x-(Wr+Jn.width),be=co.bottom-Jn.y-(ir+Jn.height);Rt({ready:!0,offsetX:Wr/oa,offsetY:ir/Aa,offsetR:he/oa,offsetB:be/Aa,arrowX:pe/oa,arrowY:ve/Aa,scaleX:oa,scaleY:Aa,align:Fa})}}),Jt=function(){ht.current+=1;var Zt=ht.current;Promise.resolve().then(function(){ht.current===Zt&&sn()})},fn=function(){Rt(function(Zt){return(0,Z.Z)((0,Z.Z)({},Zt),{},{ready:!1})})};return(0,ce.Z)(fn,[ue]),(0,ce.Z)(function(){S||fn()},[S]),[pt.ready,pt.offsetX,pt.offsetY,pt.offsetR,pt.offsetB,pt.arrowX,pt.arrowY,pt.scaleX,pt.scaleY,pt.align,Jt]}function Wu(S,F,U,ue,ae){(0,ce.Z)(function(){if(S&&F&&U){let ht=function(){ue(),ae()};var Ie=F,Ee=U,je=To(Ie),Ve=To(Ee),pt=Co(Ee),Rt=new Set([pt].concat((0,Mn.Z)(je),(0,Mn.Z)(Ve)));return Rt.forEach(function(jt){jt.addEventListener("scroll",ht,{passive:!0})}),pt.addEventListener("resize",ht,{passive:!0}),ue(),function(){Rt.forEach(function(jt){jt.removeEventListener("scroll",ht),pt.removeEventListener("resize",ht)})}}},[S,F,U])}function Go(S,F,U,ue,ae,Ie,Ee,je){var Ve=u.useRef(S),pt=u.useRef(!1);Ve.current!==S&&(pt.current=!0,Ve.current=S),u.useEffect(function(){var Rt=(0,bt.Z)(function(){pt.current=!1});return function(){bt.Z.cancel(Rt)}},[S]),u.useEffect(function(){if(F&&ue&&(!ae||Ie)){var Rt=function(){var rn=!1,kn=function(Hn){var dr=Hn.target;rn=Ee(dr)},Ln=function(Hn){var dr=Hn.target;!pt.current&&Ve.current&&!rn&&!Ee(dr)&&je(!1)};return[kn,Ln]},ht=Rt(),jt=(0,ye.Z)(ht,2),Wt=jt[0],Lt=jt[1],sn=Rt(),Jt=(0,ye.Z)(sn,2),fn=Jt[0],zt=Jt[1],Zt=Co(ue);Zt.addEventListener("mousedown",Wt,!0),Zt.addEventListener("click",Lt,!0),Zt.addEventListener("contextmenu",Lt,!0);var Pt=It(U);if(Pt&&(Pt.addEventListener("mousedown",fn,!0),Pt.addEventListener("click",zt,!0),Pt.addEventListener("contextmenu",zt,!0)),!1)var In,_n,Bn,yn;return function(){Zt.removeEventListener("mousedown",Wt,!0),Zt.removeEventListener("click",Lt,!0),Zt.removeEventListener("contextmenu",Lt,!0),Pt&&(Pt.removeEventListener("mousedown",fn,!0),Pt.removeEventListener("click",zt,!0),Pt.removeEventListener("contextmenu",zt,!0))}}},[F,U,ue,ae,Ie])}var ls=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function ku(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:vn,F=u.forwardRef(function(U,ue){var ae=U.prefixCls,Ie=ae===void 0?"rc-trigger-popup":ae,Ee=U.children,je=U.action,Ve=je===void 0?"hover":je,pt=U.showAction,Rt=U.hideAction,ht=U.popupVisible,jt=U.defaultPopupVisible,Wt=U.onPopupVisibleChange,Lt=U.afterPopupVisibleChange,sn=U.mouseEnterDelay,Jt=U.mouseLeaveDelay,fn=Jt===void 0?.1:Jt,zt=U.focusDelay,Zt=U.blurDelay,Pt=U.mask,In=U.maskClosable,_n=In===void 0?!0:In,Bn=U.getPopupContainer,yn=U.forceRender,pn=U.autoDestroy,rn=U.destroyPopupOnHide,kn=U.popup,Ln=U.popupClassName,En=U.popupStyle,Hn=U.popupPlacement,dr=U.builtinPlacements,$n=dr===void 0?{}:dr,er=U.popupAlign,Qn=U.zIndex,br=U.stretch,Jn=U.getPopupClassNameFromAlign,Ur=U.fresh,Xn=U.alignPoint,or=U.onPopupClick,xr=U.onPopupAlign,_r=U.arrow,Er=U.popupMotion,nr=U.maskMotion,Zn=U.popupTransitionName,Nr=U.popupAnimation,ra=U.maskTransitionName,gr=U.maskAnimation,Zr=U.className,Sa=U.getTriggerDOMNode,aa=(0,Re.Z)(U,ls),_a=pn||rn||!1,la=u.useState(!1),wa=(0,ye.Z)(la,2),pr=wa[0],vr=wa[1];(0,ce.Z)(function(){vr(an())},[]);var ka=u.useRef({}),Na=u.useContext(sa),co=u.useMemo(function(){return{registerSubPopup:function(mr,Za){ka.current[mr]=Za,Na==null||Na.registerSubPopup(mr,Za)}}},[Na]),oa=ar(),Aa=u.useState(null),Ua=(0,ye.Z)(Aa,2),Qr=Ua[0],Lo=Ua[1],qr=(0,jn.Z)(function(Un){(0,rr.S)(Un)&&Qr!==Un&&Lo(Un),Na==null||Na.registerSubPopup(oa,Un)}),ia=u.useState(null),jr=(0,ye.Z)(ia,2),Cr=jr[0],za=jr[1],Xr=u.useRef(null),Va=(0,jn.Z)(function(Un){(0,rr.S)(Un)&&Cr!==Un&&(za(Un),Xr.current=Un)}),ja=u.Children.only(Ee),Rr=(ja==null?void 0:ja.props)||{},ca={},_o=(0,jn.Z)(function(Un){var mr,Za,Ja=Cr;return(Ja==null?void 0:Ja.contains(Un))||((mr=It(Ja))===null||mr===void 0?void 0:mr.host)===Un||Un===Ja||(Qr==null?void 0:Qr.contains(Un))||((Za=It(Qr))===null||Za===void 0?void 0:Za.host)===Un||Un===Qr||Object.values(ka.current).some(function(Wa){return(Wa==null?void 0:Wa.contains(Un))||Un===Wa})}),wr=Ko(Ie,Er,Nr,Zn),ga=Ko(Ie,nr,gr,ra),fo=u.useState(jt||!1),No=(0,ye.Z)(fo,2),Fa=No[0],Wr=No[1],ir=ht!=null?ht:Fa,Sr=(0,jn.Z)(function(Un){ht===void 0&&Wr(Un)});(0,ce.Z)(function(){Wr(ht||!1)},[ht]);var Sn=u.useRef(ir);Sn.current=ir;var Dn=u.useRef([]);Dn.current=[];var Kr=(0,jn.Z)(function(Un){var mr;Sr(Un),((mr=Dn.current[Dn.current.length-1])!==null&&mr!==void 0?mr:ir)!==Un&&(Dn.current.push(Un),Wt==null||Wt(Un))}),Ca=u.useRef(),Ha=function(){clearTimeout(Ca.current)},Ya=function(mr){var Za=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ha(),Za===0?Kr(mr):Ca.current=setTimeout(function(){Kr(mr)},Za*1e3)};u.useEffect(function(){return Ha},[]);var Ba=u.useState(!1),Si=(0,ye.Z)(Ba,2),jo=Si[0],ro=Si[1];(0,ce.Z)(function(Un){(!Un||ir)&&ro(!0)},[ir]);var Qa=u.useState(null),da=(0,ye.Z)(Qa,2),Da=da[0],yo=da[1],zr=u.useState([0,0]),Ir=(0,ye.Z)(zr,2),ea=Ir[0],Ta=Ir[1],Xa=function(mr){Ta([mr.clientX,mr.clientY])},wo=ss(ir,Qr,Xn?ea:Cr,Hn,$n,er,xr),Ia=(0,ye.Z)(wo,11),_i=Ia[0],ru=Ia[1],go=Ia[2],zo=Ia[3],Io=Ia[4],di=Ia[5],au=Ia[6],fi=Ia[7],ou=Ia[8],qo=Ia[9],ei=Ia[10],wi=Pr(pr,Ve,pt,Rt),Ai=(0,ye.Z)(wi,2),Ci=Ai[0],Ho=Ai[1],Au=Ci.has("click"),qe=Ho.has("click")||Ho.has("contextMenu"),G=(0,jn.Z)(function(){jo||ei()}),se=function(){Sn.current&&Xn&&qe&&Ya(!1)};Wu(ir,Cr,Qr,G,se),(0,ce.Z)(function(){G()},[ea,Hn]),(0,ce.Z)(function(){ir&&!($n!=null&&$n[Hn])&&G()},[JSON.stringify(er)]);var oe=u.useMemo(function(){var Un=xo($n,Ie,qo,Xn);return d()(Un,Jn==null?void 0:Jn(qo))},[qo,Jn,$n,Ie,Xn]);u.useImperativeHandle(ue,function(){return{nativeElement:Xr.current,forceAlign:G}});var te=u.useState(0),ne=(0,ye.Z)(te,2),J=ne[0],pe=ne[1],le=u.useState(0),fe=(0,ye.Z)(le,2),_e=fe[0],ve=fe[1],he=function(){if(br&&Cr){var mr=Cr.getBoundingClientRect();pe(mr.width),ve(mr.height)}},be=function(){he(),G()},Ce=function(mr){ro(!1),ei(),Lt==null||Lt(mr)},Te=function(){return new Promise(function(mr){he(),yo(function(){return mr})})};(0,ce.Z)(function(){Da&&(ei(),Da(),yo(null))},[Da]);function Ge(Un,mr,Za,Ja){ca[Un]=function(Wa){var zs;Ja==null||Ja(Wa),Ya(mr,Za);for(var Hs=arguments.length,al=new Array(Hs>1?Hs-1:0),Zs=1;Zs1?Za-1:0),Wa=1;Wa1?Za-1:0),Wa=1;WaLt,ia=(0,u.useMemo)(function(){var Sn=Ie;return Qr?kn===null&&Bn?Sn=Ie:Sn=Ie.slice(0,Math.min(Ie.length,En/Rt)):typeof Lt=="number"&&(Sn=Ie.slice(0,Lt)),Sn},[Ie,Rt,kn,Lt,Qr]),jr=(0,u.useMemo)(function(){return Qr?Ie.slice(pr+1):Ie.slice(ia.length)},[Ie,ia,Qr,pr]),Cr=(0,u.useCallback)(function(Sn,Dn){var Kr;return typeof Ve=="function"?Ve(Sn):(Kr=Ve&&(Sn==null?void 0:Sn[Ve]))!==null&&Kr!==void 0?Kr:Dn},[Ve]),za=(0,u.useCallback)(Ee||function(Sn){return Sn},[Ee]);function Xr(Sn,Dn,Kr){la===Sn&&(Dn===void 0||Dn===Zr)||(wa(Sn),Kr||(co(SnEn){Xr(Ca-1,Sn-Ha-Zn+xr);break}}fn&&_o(0)+Zn>En&&Sa(null)}},[En,$n,xr,Zn,Cr,ia]);var wr=Na&&!!jr.length,ga={};Zr!==null&&Qr&&(ga={position:"absolute",left:Zr,top:0});var fo={prefixCls:oa,responsive:Qr,component:Pt,invalidate:Lo},No=je?function(Sn,Dn){var Kr=Cr(Sn,Dn);return u.createElement(lo.Provider,{key:Kr,value:(0,Z.Z)((0,Z.Z)({},fo),{},{order:Dn,item:Sn,itemKey:Kr,registerSize:ja,display:Dn<=pr})},je(Sn,Dn))}:function(Sn,Dn){var Kr=Cr(Sn,Dn);return u.createElement(Ki,(0,k.Z)({},fo,{order:Dn,key:Kr,item:Sn,renderItem:za,itemKey:Kr,registerSize:ja,display:Dn<=pr}))},Fa,Wr={order:wr?pr:Number.MAX_SAFE_INTEGER,className:"".concat(oa,"-rest"),registerSize:Rr,display:wr};if(Jt)Jt&&(Fa=u.createElement(lo.Provider,{value:(0,Z.Z)((0,Z.Z)({},fo),Wr)},Jt(jr)));else{var ir=sn||Lu;Fa=u.createElement(Ki,(0,k.Z)({},fo,Wr),typeof ir=="function"?ir(jr):ir)}var Sr=u.createElement(Zt,(0,k.Z)({className:d()(!Lo&&ue,Wt),style:jt,ref:F},_n),ia.map(No),qr?Fa:null,fn&&u.createElement(Ki,(0,k.Z)({},fo,{responsive:Ua,responsiveDisabled:!Qr,order:pr,className:"".concat(oa,"-suffix"),registerSize:ca,display:!0,style:ga}),fn));return Ua&&(Sr=u.createElement(wn.Z,{onResize:Va,disabled:!Qr},Sr)),Sr}var Ni=u.forwardRef(Qi);Ni.displayName="Overflow",Ni.Item=Ru,Ni.RESPONSIVE=Gu,Ni.INVALIDATE=Yi;var Vu=Ni,ji=Vu;function ps(S,F){var U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ue=new Set;function ae(Ie,Ee){var je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Ve=ue.has(Ie);if((0,Mt.ZP)(!Ve,"Warning: There may be circular references"),Ve)return!1;if(Ie===Ee)return!0;if(U&&je>1)return!1;ue.add(Ie);var pt=je+1;if(Array.isArray(Ie)){if(!Array.isArray(Ee)||Ie.length!==Ee.length)return!1;for(var Rt=0;Rt1&&arguments[1]!==void 0?arguments[1]:!1;if(Ka(S)){var U=S.nodeName.toLowerCase(),ue=["input","select","textarea","button"].includes(U)||S.isContentEditable||U==="a"&&!!S.getAttribute("href"),ae=S.getAttribute("tabindex"),Ie=Number(ae),Ee=null;return ae&&!Number.isNaN(Ie)?Ee=Ie:ue&&Ee===null&&(Ee=0),ue&&S.disabled&&(Ee=null),Ee!==null&&(Ee>=0||F&&Ee<0)}return!1}function Bt(S){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,U=(0,Mn.Z)(S.querySelectorAll("*")).filter(function(ue){return Ot(ue,F)});return Ot(S,F)&&U.unshift(S),U}var bn=null;function Vn(){bn=document.activeElement}function Pn(){bn=null}function Tn(){if(bn)try{bn.focus()}catch(S){}}function qn(S,F){if(F.keyCode===9){var U=Bt(S),ue=U[F.shiftKey?0:U.length-1],ae=ue===document.activeElement||S===document.activeElement;if(ae){var Ie=U[F.shiftKey?U.length-1:0];Ie.focus(),F.preventDefault()}}}var Mr=ma.Z.LEFT,kr=ma.Z.RIGHT,$r=ma.Z.UP,xa=ma.Z.DOWN,ha=ma.Z.ENTER,to=ma.Z.ESC,Do=ma.Z.HOME,Ga=ma.Z.END,Eo=[$r,xa,Mr,kr];function ii(S,F,U,ue){var ae,Ie,Ee,je,Ve="prev",pt="next",Rt="children",ht="parent";if(S==="inline"&&ue===ha)return{inlineTrigger:!0};var jt=(ae={},(0,$.Z)(ae,$r,Ve),(0,$.Z)(ae,xa,pt),ae),Wt=(Ie={},(0,$.Z)(Ie,Mr,U?pt:Ve),(0,$.Z)(Ie,kr,U?Ve:pt),(0,$.Z)(Ie,xa,Rt),(0,$.Z)(Ie,ha,Rt),Ie),Lt=(Ee={},(0,$.Z)(Ee,$r,Ve),(0,$.Z)(Ee,xa,pt),(0,$.Z)(Ee,ha,Rt),(0,$.Z)(Ee,to,ht),(0,$.Z)(Ee,Mr,U?Rt:ht),(0,$.Z)(Ee,kr,U?ht:Rt),Ee),sn={inline:jt,horizontal:Wt,vertical:Lt,inlineSub:jt,horizontalSub:Lt,verticalSub:Lt},Jt=(je=sn["".concat(S).concat(F?"":"Sub")])===null||je===void 0?void 0:je[ue];switch(Jt){case Ve:return{offset:-1,sibling:!0};case pt:return{offset:1,sibling:!0};case ht:return{offset:-1,sibling:!1};case Rt:return{offset:1,sibling:!1};default:return null}}function Ii(S){for(var F=S;F;){if(F.getAttribute("data-menu-list"))return F;F=F.parentElement}return null}function Fi(S,F){for(var U=S||document.activeElement;U;){if(F.has(U))return U;U=U.parentElement}return null}function bi(S,F){var U=Bt(S,!0);return U.filter(function(ue){return F.has(ue)})}function Vo(S,F,U){var ue=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!S)return null;var ae=bi(S,F),Ie=ae.length,Ee=ae.findIndex(function(je){return U===je});return ue<0?Ee===-1?Ee=Ie-1:Ee-=1:ue>0&&(Ee+=1),Ee=(Ee+Ie)%Ie,ae[Ee]}var ui=function(F,U){var ue=new Set,ae=new Map,Ie=new Map;return F.forEach(function(Ee){var je=document.querySelector("[data-menu-id='".concat(Yu(U,Ee),"']"));je&&(ue.add(je),Ie.set(je,Ee),ae.set(Ee,je))}),{elements:ue,key2element:ae,element2key:Ie}};function Yo(S,F,U,ue,ae,Ie,Ee,je,Ve,pt){var Rt=u.useRef(),ht=u.useRef();ht.current=F;var jt=function(){bt.Z.cancel(Rt.current)};return u.useEffect(function(){return function(){jt()}},[]),function(Wt){var Lt=Wt.which;if([].concat(Eo,[ha,to,Do,Ga]).includes(Lt)){var sn=Ie(),Jt=ui(sn,ue),fn=Jt,zt=fn.elements,Zt=fn.key2element,Pt=fn.element2key,In=Zt.get(F),_n=Fi(In,zt),Bn=Pt.get(_n),yn=ii(S,Ee(Bn,!0).length===1,U,Lt);if(!yn&&Lt!==Do&&Lt!==Ga)return;(Eo.includes(Lt)||[Do,Ga].includes(Lt))&&Wt.preventDefault();var pn=function(er){if(er){var Qn=er,br=er.querySelector("a");br!=null&&br.getAttribute("href")&&(Qn=br);var Jn=Pt.get(er);je(Jn),jt(),Rt.current=(0,bt.Z)(function(){ht.current===Jn&&Qn.focus()})}};if([Do,Ga].includes(Lt)||yn.sibling||!_n){var rn;!_n||S==="inline"?rn=ae.current:rn=Ii(_n);var kn,Ln=bi(rn,zt);Lt===Do?kn=Ln[0]:Lt===Ga?kn=Ln[Ln.length-1]:kn=Vo(rn,zt,_n,yn.offset),pn(kn)}else if(yn.inlineTrigger)Ve(Bn);else if(yn.offset>0)Ve(Bn,!0),jt(),Rt.current=(0,bt.Z)(function(){Jt=ui(sn,ue);var $n=_n.getAttribute("aria-controls"),er=document.getElementById($n),Qn=Vo(er,Jt.elements);pn(Qn)},5);else if(yn.offset<0){var En=Ee(Bn,!0),Hn=En[En.length-2],dr=Zt.get(Hn);Ve(Hn,!1),pn(dr)}}pt==null||pt(Wt)}}function Bi(S){Promise.resolve().then(S)}var Fu="__RC_UTIL_PATH_SPLIT__",vs=function(F){return F.join(Fu)},Ds=function(F){return F.split(Fu)},Ji="rc-menu-more";function Ms(){var S=u.useState({}),F=(0,ye.Z)(S,2),U=F[1],ue=(0,u.useRef)(new Map),ae=(0,u.useRef)(new Map),Ie=u.useState([]),Ee=(0,ye.Z)(Ie,2),je=Ee[0],Ve=Ee[1],pt=(0,u.useRef)(0),Rt=(0,u.useRef)(!1),ht=function(){Rt.current||U({})},jt=(0,u.useCallback)(function(Zt,Pt){var In=vs(Pt);ae.current.set(In,Zt),ue.current.set(Zt,In),pt.current+=1;var _n=pt.current;Bi(function(){_n===pt.current&&ht()})},[]),Wt=(0,u.useCallback)(function(Zt,Pt){var In=vs(Pt);ae.current.delete(In),ue.current.delete(Zt)},[]),Lt=(0,u.useCallback)(function(Zt){Ve(Zt)},[]),sn=(0,u.useCallback)(function(Zt,Pt){var In=ue.current.get(Zt)||"",_n=Ds(In);return Pt&&je.includes(_n[0])&&_n.unshift(Ji),_n},[je]),Jt=(0,u.useCallback)(function(Zt,Pt){return Zt.some(function(In){var _n=sn(In,!0);return _n.includes(Pt)})},[sn]),fn=function(){var Pt=(0,Mn.Z)(ue.current.keys());return je.length&&Pt.push(Ji),Pt},zt=(0,u.useCallback)(function(Zt){var Pt="".concat(ue.current.get(Zt)).concat(Fu),In=new Set;return(0,Mn.Z)(ae.current.keys()).forEach(function(_n){_n.startsWith(Pt)&&In.add(ae.current.get(_n))}),In},[]);return u.useEffect(function(){return function(){Rt.current=!0}},[]),{registerPath:jt,unregisterPath:Wt,refreshOverflowKeys:Lt,isSubPathKey:Jt,getKeyPath:sn,getKeys:fn,getSubPathKeys:zt}}function mu(S){var F=u.useRef(S);F.current=S;var U=u.useCallback(function(){for(var ue,ae=arguments.length,Ie=new Array(ae),Ee=0;Ee1&&(zt.motionAppear=!1);var Zt=zt.onVisibleChanged;return zt.onVisibleChanged=function(Pt){return!jt.current&&!Pt&&Jt(!0),Zt==null?void 0:Zt(Pt)},sn?null:u.createElement(gi,{mode:Ie,locked:!jt.current},u.createElement(lr.ZP,(0,k.Z)({visible:fn},zt,{forceRender:Ve,removeOnLeave:!1,leavedClassName:"".concat(je,"-hidden")}),function(Pt){var In=Pt.className,_n=Pt.style;return u.createElement(es,{id:F,className:In,style:_n},ae)}))}var Lr=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],li=["active"],Uo=function(F){var U,ue=F.style,ae=F.className,Ie=F.title,Ee=F.eventKey,je=F.warnKey,Ve=F.disabled,pt=F.internalPopupClose,Rt=F.children,ht=F.itemIcon,jt=F.expandIcon,Wt=F.popupClassName,Lt=F.popupOffset,sn=F.popupStyle,Jt=F.onClick,fn=F.onMouseEnter,zt=F.onMouseLeave,Zt=F.onTitleClick,Pt=F.onTitleMouseEnter,In=F.onTitleMouseLeave,_n=(0,Re.Z)(F,Lr),Bn=Qu(Ee),yn=u.useContext(ko),pn=yn.prefixCls,rn=yn.mode,kn=yn.openKeys,Ln=yn.disabled,En=yn.overflowDisabled,Hn=yn.activeKey,dr=yn.selectedKeys,$n=yn.itemIcon,er=yn.expandIcon,Qn=yn.onItemClick,br=yn.onOpenChange,Jn=yn.onActive,Ur=u.useContext(Tt),Xn=Ur._internalRenderSubMenuItem,or=u.useContext(dt),xr=or.isSubPathKey,_r=ee(),Er="".concat(pn,"-submenu"),nr=Ln||Ve,Zn=u.useRef(),Nr=u.useRef(),ra=ht!=null?ht:$n,gr=jt!=null?jt:er,Zr=kn.includes(Ee),Sa=!En&&Zr,aa=xr(dr,Ee),_a=Ra(Ee,nr,Pt,In),la=_a.active,wa=(0,Re.Z)(_a,li),pr=u.useState(!1),vr=(0,ye.Z)(pr,2),ka=vr[0],Na=vr[1],co=function(ca){nr||Na(ca)},oa=function(ca){co(!0),fn==null||fn({key:Ee,domEvent:ca})},Aa=function(ca){co(!1),zt==null||zt({key:Ee,domEvent:ca})},Ua=u.useMemo(function(){return la||(rn!=="inline"?ka||xr([Hn],Ee):!1)},[rn,la,Hn,ka,Ee,xr]),Qr=La(_r.length),Lo=function(ca){nr||(Zt==null||Zt({key:Ee,domEvent:ca}),rn==="inline"&&br(Ee,!Zr))},qr=mu(function(Rr){Jt==null||Jt(So(Rr)),Qn(Rr)}),ia=function(ca){rn!=="inline"&&br(Ee,ca)},jr=function(){Jn(Ee)},Cr=Bn&&"".concat(Bn,"-popup"),za=u.createElement("div",(0,k.Z)({role:"menuitem",style:Qr,className:"".concat(Er,"-title"),tabIndex:nr?null:-1,ref:Zn,title:typeof Ie=="string"?Ie:null,"data-menu-id":En&&Bn?null:Bn,"aria-expanded":Sa,"aria-haspopup":!0,"aria-controls":Cr,"aria-disabled":nr,onClick:Lo,onFocus:jr},wa),Ie,u.createElement(si,{icon:rn!=="horizontal"?gr:void 0,props:(0,Z.Z)((0,Z.Z)({},F),{},{isOpen:Sa,isSubMenu:!0})},u.createElement("i",{className:"".concat(Er,"-arrow")}))),Xr=u.useRef(rn);if(rn!=="inline"&&_r.length>1?Xr.current="vertical":Xr.current=rn,!En){var Va=Xr.current;za=u.createElement(Is,{mode:Va,prefixCls:Er,visible:!pt&&Sa&&rn!=="inline",popupClassName:Wt,popupOffset:Lt,popupStyle:sn,popup:u.createElement(gi,{mode:Va==="horizontal"?"vertical":Va},u.createElement(es,{id:Cr,ref:Nr},Rt)),disabled:nr,onVisibleChange:ia},za)}var ja=u.createElement(ji.Item,(0,k.Z)({role:"none"},_n,{component:"li",style:ue,className:d()(Er,"".concat(Er,"-").concat(rn),ae,(U={},(0,$.Z)(U,"".concat(Er,"-open"),Sa),(0,$.Z)(U,"".concat(Er,"-active"),Ua),(0,$.Z)(U,"".concat(Er,"-selected"),aa),(0,$.Z)(U,"".concat(Er,"-disabled"),nr),U)),onMouseEnter:oa,onMouseLeave:Aa}),za,!En&&u.createElement(ns,{id:Cr,open:Sa,keyPath:_r},Rt));return Xn&&(ja=Xn(ja,F,{selected:aa,active:Ua,open:Sa,disabled:nr})),u.createElement(gi,{onItemClick:qr,mode:rn==="horizontal"?"vertical":rn,itemIcon:ra,expandIcon:gr},ja)};function bu(S){var F=S.eventKey,U=S.children,ue=ee(F),ae=Xo(U,ue),Ie=L();u.useEffect(function(){if(Ie)return Ie.registerPath(F,ue),function(){Ie.unregisterPath(F,ue)}},[ue]);var Ee;return Ie?Ee=ae:Ee=u.createElement(Uo,S,ae),u.createElement(me.Provider,{value:ue},Ee)}var Qs=["className","title","eventKey","children"],Rs=["children"],rs=function(F){var U=F.className,ue=F.title,ae=F.eventKey,Ie=F.children,Ee=(0,Re.Z)(F,Qs),je=u.useContext(ko),Ve=je.prefixCls,pt="".concat(Ve,"-item-group");return u.createElement("li",(0,k.Z)({role:"presentation"},Ee,{onClick:function(ht){return ht.stopPropagation()},className:d()(pt,U)}),u.createElement("div",{role:"presentation",className:"".concat(pt,"-title"),title:typeof ue=="string"?ue:void 0},ue),u.createElement("ul",{role:"group",className:"".concat(pt,"-list")},Ie))};function as(S){var F=S.children,U=(0,Re.Z)(S,Rs),ue=ee(U.eventKey),ae=Xo(F,ue),Ie=L();return Ie?ae:u.createElement(rs,(0,Ea.Z)(U,["warnKey"]),ae)}function xu(S){var F=S.className,U=S.style,ue=u.useContext(ko),ae=ue.prefixCls,Ie=L();return Ie?null:u.createElement("li",{role:"separator",className:d()("".concat(ae,"-item-divider"),F),style:U})}var Xs=["label","children","key","type"];function Ls(S){return(S||[]).map(function(F,U){if(F&&(0,lt.Z)(F)==="object"){var ue=F,ae=ue.label,Ie=ue.children,Ee=ue.key,je=ue.type,Ve=(0,Re.Z)(ue,Xs),pt=Ee!=null?Ee:"tmp-".concat(U);return Ie||je==="group"?je==="group"?u.createElement(as,(0,k.Z)({key:pt},Ve,{title:ae}),Ls(Ie)):u.createElement(bu,(0,k.Z)({key:pt},Ve,{title:ae}),Ls(Ie)):je==="divider"?u.createElement(xu,(0,k.Z)({key:pt},Ve)):u.createElement(yu,(0,k.Z)({key:pt},Ve),ae)}return null}).filter(function(F){return F})}function ll(S,F,U){var ue=S;return F&&(ue=Ls(F)),Xo(ue,U)}var Js=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],zi=[],bs=u.forwardRef(function(S,F){var U,ue,ae=S,Ie=ae.prefixCls,Ee=Ie===void 0?"rc-menu":Ie,je=ae.rootClassName,Ve=ae.style,pt=ae.className,Rt=ae.tabIndex,ht=Rt===void 0?0:Rt,jt=ae.items,Wt=ae.children,Lt=ae.direction,sn=ae.id,Jt=ae.mode,fn=Jt===void 0?"vertical":Jt,zt=ae.inlineCollapsed,Zt=ae.disabled,Pt=ae.disabledOverflow,In=ae.subMenuOpenDelay,_n=In===void 0?.1:In,Bn=ae.subMenuCloseDelay,yn=Bn===void 0?.1:Bn,pn=ae.forceSubMenuRender,rn=ae.defaultOpenKeys,kn=ae.openKeys,Ln=ae.activeKey,En=ae.defaultActiveFirst,Hn=ae.selectable,dr=Hn===void 0?!0:Hn,$n=ae.multiple,er=$n===void 0?!1:$n,Qn=ae.defaultSelectedKeys,br=ae.selectedKeys,Jn=ae.onSelect,Ur=ae.onDeselect,Xn=ae.inlineIndent,or=Xn===void 0?24:Xn,xr=ae.motion,_r=ae.defaultMotions,Er=ae.triggerSubMenuAction,nr=Er===void 0?"hover":Er,Zn=ae.builtinPlacements,Nr=ae.itemIcon,ra=ae.expandIcon,gr=ae.overflowedIndicator,Zr=gr===void 0?"...":gr,Sa=ae.overflowedIndicatorPopupClassName,aa=ae.getPopupContainer,_a=ae.onClick,la=ae.onOpenChange,wa=ae.onKeyDown,pr=ae.openAnimation,vr=ae.openTransitionName,ka=ae._internalRenderMenuItem,Na=ae._internalRenderSubMenuItem,co=(0,Re.Z)(ae,Js),oa=u.useMemo(function(){return ll(Wt,jt,zi)},[Wt,jt]),Aa=u.useState(!1),Ua=(0,ye.Z)(Aa,2),Qr=Ua[0],Lo=Ua[1],qr=u.useRef(),ia=Nn(sn),jr=Lt==="rtl",Cr=(0,Dt.Z)(rn,{value:kn,postState:function(te){return te||zi}}),za=(0,ye.Z)(Cr,2),Xr=za[0],Va=za[1],ja=function(te){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function J(){Va(te),la==null||la(te)}ne?(0,Et.flushSync)(J):J()},Rr=u.useState(Xr),ca=(0,ye.Z)(Rr,2),_o=ca[0],wr=ca[1],ga=u.useRef(!1),fo=u.useMemo(function(){return(fn==="inline"||fn==="vertical")&&zt?["vertical",zt]:[fn,!1]},[fn,zt]),No=(0,ye.Z)(fo,2),Fa=No[0],Wr=No[1],ir=Fa==="inline",Sr=u.useState(Fa),Sn=(0,ye.Z)(Sr,2),Dn=Sn[0],Kr=Sn[1],Ca=u.useState(Wr),Ha=(0,ye.Z)(Ca,2),Ya=Ha[0],Ba=Ha[1];u.useEffect(function(){Kr(Fa),Ba(Wr),ga.current&&(ir?Va(_o):ja(zi))},[Fa,Wr]);var Si=u.useState(0),jo=(0,ye.Z)(Si,2),ro=jo[0],Qa=jo[1],da=ro>=oa.length-1||Dn!=="horizontal"||Pt;u.useEffect(function(){ir&&wr(Xr)},[Xr]),u.useEffect(function(){return ga.current=!0,function(){ga.current=!1}},[]);var Da=Ms(),yo=Da.registerPath,zr=Da.unregisterPath,Ir=Da.refreshOverflowKeys,ea=Da.isSubPathKey,Ta=Da.getKeyPath,Xa=Da.getKeys,wo=Da.getSubPathKeys,Ia=u.useMemo(function(){return{registerPath:yo,unregisterPath:zr}},[yo,zr]),_i=u.useMemo(function(){return{isSubPathKey:ea}},[ea]);u.useEffect(function(){Ir(da?zi:oa.slice(ro+1).map(function(oe){return oe.key}))},[ro,da]);var ru=(0,Dt.Z)(Ln||En&&((U=oa[0])===null||U===void 0?void 0:U.key),{value:Ln}),go=(0,ye.Z)(ru,2),zo=go[0],Io=go[1],di=mu(function(oe){Io(oe)}),au=mu(function(){Io(void 0)});(0,u.useImperativeHandle)(F,function(){return{list:qr.current,focus:function(te){var ne,J=Xa(),pe=ui(J,ia),le=pe.elements,fe=pe.key2element,_e=pe.element2key,ve=bi(qr.current,le),he=zo!=null?zo:ve[0]?_e.get(ve[0]):(ne=oa.find(function(Te){return!Te.props.disabled}))===null||ne===void 0?void 0:ne.key,be=fe.get(he);if(he&&be){var Ce;be==null||(Ce=be.focus)===null||Ce===void 0||Ce.call(be,te)}}}});var fi=(0,Dt.Z)(Qn||[],{value:br,postState:function(te){return Array.isArray(te)?te:te==null?zi:[te]}}),ou=(0,ye.Z)(fi,2),qo=ou[0],ei=ou[1],wi=function(te){if(dr){var ne=te.key,J=qo.includes(ne),pe;er?J?pe=qo.filter(function(fe){return fe!==ne}):pe=[].concat((0,Mn.Z)(qo),[ne]):pe=[ne],ei(pe);var le=(0,Z.Z)((0,Z.Z)({},te),{},{selectedKeys:pe});J?Ur==null||Ur(le):Jn==null||Jn(le)}!er&&Xr.length&&Dn!=="inline"&&ja(zi)},Ai=mu(function(oe){_a==null||_a(So(oe)),wi(oe)}),Ci=mu(function(oe,te){var ne=Xr.filter(function(pe){return pe!==oe});if(te)ne.push(oe);else if(Dn!=="inline"){var J=wo(oe);ne=ne.filter(function(pe){return!J.has(pe)})}Nu(Xr,ne,!0)||ja(ne,!0)}),Ho=function(te,ne){var J=ne!=null?ne:!Xr.includes(te);Ci(te,J)},Au=Yo(Dn,zo,jr,ia,qr,Xa,Ta,Io,Ho,wa);u.useEffect(function(){Lo(!0)},[]);var qe=u.useMemo(function(){return{_internalRenderMenuItem:ka,_internalRenderSubMenuItem:Na}},[ka,Na]),G=Dn!=="horizontal"||Pt?oa:oa.map(function(oe,te){return u.createElement(gi,{key:oe.key,overflowDisabled:te>ro},oe)}),se=u.createElement(ji,(0,k.Z)({id:sn,ref:qr,prefixCls:"".concat(Ee,"-overflow"),component:"ul",itemComponent:yu,className:d()(Ee,"".concat(Ee,"-root"),"".concat(Ee,"-").concat(Dn),pt,(ue={},(0,$.Z)(ue,"".concat(Ee,"-inline-collapsed"),Ya),(0,$.Z)(ue,"".concat(Ee,"-rtl"),jr),ue),je),dir:Lt,style:Ve,role:"menu",tabIndex:ht,data:G,renderRawItem:function(te){return te},renderRawRest:function(te){var ne=te.length,J=ne?oa.slice(-ne):null;return u.createElement(bu,{eventKey:Ji,title:Zr,disabled:da,internalPopupClose:ne===0,popupClassName:Sa},J)},maxCount:Dn!=="horizontal"||Pt?ji.INVALIDATE:ji.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(te){Qa(te)},onKeyDown:Au},co));return u.createElement(Tt.Provider,{value:qe},u.createElement(Xi.Provider,{value:ia},u.createElement(gi,{prefixCls:Ee,rootClassName:je,mode:Dn,openKeys:Xr,rtl:jr,disabled:Zt,motion:Qr?xr:null,defaultMotions:Qr?_r:null,activeKey:zo,onActive:di,onInactive:au,selectedKeys:qo,inlineIndent:or,subMenuOpenDelay:_n,subMenuCloseDelay:yn,forceSubMenuRender:pn,builtinPlacements:Zn,triggerSubMenuAction:nr,getPopupContainer:aa,itemIcon:Nr,expandIcon:ra,onItemClick:Ai,onOpenChange:Ci},u.createElement(dt.Provider,{value:_i},se),u.createElement("div",{style:{display:"none"},"aria-hidden":!0},u.createElement(M.Provider,{value:Ia},oa)))))}),Ns=bs,Eu=Ns;Eu.Item=yu,Eu.SubMenu=bu,Eu.ItemGroup=as,Eu.Divider=xu;var js=Eu,Fs=u.forwardRef(function(S,F){var U=S.prefixCls,ue=S.id,ae=S.tabs,Ie=S.locale,Ee=S.mobile,je=S.moreIcon,Ve=je===void 0?"More":je,pt=S.moreTransitionName,Rt=S.style,ht=S.className,jt=S.editable,Wt=S.tabBarGutter,Lt=S.rtl,sn=S.removeAriaLabel,Jt=S.onTabClick,fn=S.getPopupContainer,zt=S.popupClassName,Zt=(0,u.useState)(!1),Pt=(0,ye.Z)(Zt,2),In=Pt[0],_n=Pt[1],Bn=(0,u.useState)(null),yn=(0,ye.Z)(Bn,2),pn=yn[0],rn=yn[1],kn="".concat(ue,"-more-popup"),Ln="".concat(U,"-dropdown"),En=pn!==null?"".concat(kn,"-").concat(pn):null,Hn=Ie==null?void 0:Ie.dropdownAriaLabel;function dr(Xn,or){Xn.preventDefault(),Xn.stopPropagation(),jt.onEdit("remove",{key:or,event:Xn})}var $n=u.createElement(js,{onClick:function(or){var xr=or.key,_r=or.domEvent;Jt(xr,_r),_n(!1)},prefixCls:"".concat(Ln,"-menu"),id:kn,tabIndex:-1,role:"listbox","aria-activedescendant":En,selectedKeys:[pn],"aria-label":Hn!==void 0?Hn:"expanded dropdown"},ae.map(function(Xn){var or=Xn.closable,xr=Xn.disabled,_r=Xn.closeIcon,Er=Xn.key,nr=Xn.label,Zn=Le(or,_r,jt,xr);return u.createElement(yu,{key:Er,id:"".concat(kn,"-").concat(Er),role:"option","aria-controls":ue&&"".concat(ue,"-panel-").concat(Er),disabled:xr},u.createElement("span",null,nr),Zn&&u.createElement("button",{type:"button","aria-label":sn||"remove",tabIndex:0,className:"".concat(Ln,"-menu-item-remove"),onClick:function(ra){ra.stopPropagation(),dr(ra,Er)}},_r||jt.removeIcon||"\xD7"))}));function er(Xn){for(var or=ae.filter(function(Zn){return!Zn.disabled}),xr=or.findIndex(function(Zn){return Zn.key===pn})||0,_r=or.length,Er=0;Er<_r;Er+=1){xr=(xr+Xn+_r)%_r;var nr=or[xr];if(!nr.disabled){rn(nr.key);return}}}function Qn(Xn){var or=Xn.which;if(!In){[ma.Z.DOWN,ma.Z.SPACE,ma.Z.ENTER].includes(or)&&(_n(!0),Xn.preventDefault());return}switch(or){case ma.Z.UP:er(-1),Xn.preventDefault();break;case ma.Z.DOWN:er(1),Xn.preventDefault();break;case ma.Z.ESC:_n(!1);break;case ma.Z.SPACE:case ma.Z.ENTER:pn!==null&&Jt(pn,Xn);break}}(0,u.useEffect)(function(){var Xn=document.getElementById(En);Xn&&Xn.scrollIntoView&&Xn.scrollIntoView(!1)},[pn]),(0,u.useEffect)(function(){In||rn(null)},[In]);var br=(0,$.Z)({},Lt?"marginRight":"marginLeft",Wt);ae.length||(br.visibility="hidden",br.order=1);var Jn=d()((0,$.Z)({},"".concat(Ln,"-rtl"),Lt)),Ur=Ee?null:u.createElement(du,{prefixCls:Ln,overlay:$n,trigger:["hover"],visible:ae.length?In:!1,transitionName:pt,onVisibleChange:_n,overlayClassName:d()(Jn,zt),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:fn},u.createElement("button",{type:"button",className:"".concat(U,"-nav-more"),style:br,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":kn,id:"".concat(ue,"-more"),"aria-expanded":In,onKeyDown:Qn},Ve));return u.createElement("div",{className:d()("".concat(U,"-nav-operations"),ht),style:Rt,ref:F},Ur,u.createElement(it,{prefixCls:U,locale:Ie,editable:jt}))}),cl=u.memo(Fs,function(S,F){return F.tabMoving}),qs=function(F){var U,ue=F.prefixCls,ae=F.id,Ie=F.active,Ee=F.tab,je=Ee.key,Ve=Ee.label,pt=Ee.disabled,Rt=Ee.closeIcon,ht=Ee.icon,jt=F.closable,Wt=F.renderWrapper,Lt=F.removeAriaLabel,sn=F.editable,Jt=F.onClick,fn=F.onFocus,zt=F.style,Zt="".concat(ue,"-tab"),Pt=Le(jt,Rt,sn,pt);function In(pn){pt||Jt(pn)}function _n(pn){pn.preventDefault(),pn.stopPropagation(),sn.onEdit("remove",{key:je,event:pn})}var Bn=u.useMemo(function(){return ht&&typeof Ve=="string"?u.createElement("span",null,Ve):Ve},[Ve,ht]),yn=u.createElement("div",{key:je,"data-node-key":we(je),className:d()(Zt,(U={},(0,$.Z)(U,"".concat(Zt,"-with-remove"),Pt),(0,$.Z)(U,"".concat(Zt,"-active"),Ie),(0,$.Z)(U,"".concat(Zt,"-disabled"),pt),U)),style:zt,onClick:In},u.createElement("div",{role:"tab","aria-selected":Ie,id:ae&&"".concat(ae,"-tab-").concat(je),className:"".concat(Zt,"-btn"),"aria-controls":ae&&"".concat(ae,"-panel-").concat(je),"aria-disabled":pt,tabIndex:pt?null:0,onClick:function(rn){rn.stopPropagation(),In(rn)},onKeyDown:function(rn){[ma.Z.SPACE,ma.Z.ENTER].includes(rn.which)&&(rn.preventDefault(),In(rn))},onFocus:fn},ht&&u.createElement("span",{className:"".concat(Zt,"-icon")},ht),Ve&&Bn),Pt&&u.createElement("button",{type:"button","aria-label":Lt||"remove",tabIndex:0,className:"".concat(Zt,"-remove"),onClick:function(rn){rn.stopPropagation(),_n(rn)}},Rt||sn.removeIcon||"\xD7"));return Wt?Wt(yn):yn},dl=qs,fl=function(F,U){var ue=F.offsetWidth,ae=F.offsetHeight,Ie=F.offsetTop,Ee=F.offsetLeft,je=F.getBoundingClientRect(),Ve=je.width,pt=je.height,Rt=je.x,ht=je.y;return Math.abs(Ve-ue)<1?[Ve,pt,Rt-U.x,ht-U.y]:[ue,ae,Ee,Ie]},eu=function(F){var U=F.current||{},ue=U.offsetWidth,ae=ue===void 0?0:ue,Ie=U.offsetHeight,Ee=Ie===void 0?0:Ie;if(F.current){var je=F.current.getBoundingClientRect(),Ve=je.width,pt=je.height;if(Math.abs(Ve-ae)<1)return[Ve,pt]}return[ae,Ee]},ci=function(F,U){return F[U?0:1]},el=u.forwardRef(function(S,F){var U,ue=S.className,ae=S.style,Ie=S.id,Ee=S.animated,je=S.activeKey,Ve=S.rtl,pt=S.extra,Rt=S.editable,ht=S.locale,jt=S.tabPosition,Wt=S.tabBarGutter,Lt=S.children,sn=S.onTabClick,Jt=S.onTabScroll,fn=S.indicatorSize,zt=S.indicatorAlign,Zt=u.useContext(ln),Pt=Zt.prefixCls,In=Zt.tabs,_n=(0,u.useRef)(null),Bn=(0,u.useRef)(null),yn=(0,u.useRef)(null),pn=(0,u.useRef)(null),rn=(0,u.useRef)(null),kn=(0,u.useRef)(null),Ln=(0,u.useRef)(null),En=jt==="top"||jt==="bottom",Hn=Be(0,function(zr,Ir){En&&Jt&&Jt({direction:zr>Ir?"left":"right"})}),dr=(0,ye.Z)(Hn,2),$n=dr[0],er=dr[1],Qn=Be(0,function(zr,Ir){!En&&Jt&&Jt({direction:zr>Ir?"top":"bottom"})}),br=(0,ye.Z)(Qn,2),Jn=br[0],Ur=br[1],Xn=(0,u.useState)([0,0]),or=(0,ye.Z)(Xn,2),xr=or[0],_r=or[1],Er=(0,u.useState)([0,0]),nr=(0,ye.Z)(Er,2),Zn=nr[0],Nr=nr[1],ra=(0,u.useState)([0,0]),gr=(0,ye.Z)(ra,2),Zr=gr[0],Sa=gr[1],aa=(0,u.useState)([0,0]),_a=(0,ye.Z)(aa,2),la=_a[0],wa=_a[1],pr=ut(new Map),vr=(0,ye.Z)(pr,2),ka=vr[0],Na=vr[1],co=Pe(In,ka,Zn[0]),oa=ci(xr,En),Aa=ci(Zn,En),Ua=ci(Zr,En),Qr=ci(la,En),Lo=oaCr?Cr:zr}var Xr=(0,u.useRef)(null),Va=(0,u.useState)(),ja=(0,ye.Z)(Va,2),Rr=ja[0],ca=ja[1];function _o(){ca(Date.now())}function wr(){Xr.current&&clearTimeout(Xr.current)}nt(pn,function(zr,Ir){function ea(Ta,Xa){Ta(function(wo){var Ia=za(wo+Xa);return Ia})}return Lo?(En?ea(er,zr):ea(Ur,Ir),wr(),_o(),!0):!1}),(0,u.useEffect)(function(){return wr(),Rr&&(Xr.current=setTimeout(function(){ca(0)},100)),wr},[Rr]);var ga=xt(co,qr,En?$n:Jn,Aa,Ua,Qr,(0,Z.Z)((0,Z.Z)({},S),{},{tabs:In})),fo=(0,ye.Z)(ga,2),No=fo[0],Fa=fo[1],Wr=(0,jn.Z)(function(){var zr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:je,Ir=co.get(zr)||{width:0,height:0,left:0,right:0,top:0};if(En){var ea=$n;Ve?Ir.right<$n?ea=Ir.right:Ir.right+Ir.width>$n+qr&&(ea=Ir.right+Ir.width-qr):Ir.left<-$n?ea=-Ir.left:Ir.left+Ir.width>-$n+qr&&(ea=-(Ir.left+Ir.width-qr)),Ur(0),er(za(ea))}else{var Ta=Jn;Ir.top<-Jn?Ta=-Ir.top:Ir.top+Ir.height>-Jn+qr&&(Ta=-(Ir.top+Ir.height-qr)),er(0),Ur(za(Ta))}}),ir={};jt==="top"||jt==="bottom"?ir[Ve?"marginRight":"marginLeft"]=Wt:ir.marginTop=Wt;var Sr=In.map(function(zr,Ir){var ea=zr.key;return u.createElement(dl,{id:Ie,prefixCls:Pt,key:ea,tab:zr,style:Ir===0?void 0:ir,closable:zr.closable,editable:Rt,active:ea===je,renderWrapper:Lt,removeAriaLabel:ht==null?void 0:ht.removeAriaLabel,onClick:function(Xa){sn(ea,Xa)},onFocus:function(){Wr(ea),_o(),pn.current&&(Ve||(pn.current.scrollLeft=0),pn.current.scrollTop=0)}})}),Sn=function(){return Na(function(){var Ir,ea=new Map,Ta=(Ir=rn.current)===null||Ir===void 0?void 0:Ir.getBoundingClientRect();return In.forEach(function(Xa){var wo,Ia=Xa.key,_i=(wo=rn.current)===null||wo===void 0?void 0:wo.querySelector('[data-node-key="'.concat(we(Ia),'"]'));if(_i){var ru=fl(_i,Ta),go=(0,ye.Z)(ru,4),zo=go[0],Io=go[1],di=go[2],au=go[3];ea.set(Ia,{width:zo,height:Io,left:di,top:au})}}),ea})};(0,u.useEffect)(function(){Sn()},[In.map(function(zr){return zr.key}).join("_")]);var Dn=$e(function(){var zr=eu(_n),Ir=eu(Bn),ea=eu(yn);_r([zr[0]-Ir[0]-ea[0],zr[1]-Ir[1]-ea[1]]);var Ta=eu(Ln);Sa(Ta);var Xa=eu(kn);wa(Xa);var wo=eu(rn);Nr([wo[0]-Ta[0],wo[1]-Ta[1]]),Sn()}),Kr=In.slice(0,No),Ca=In.slice(Fa+1),Ha=[].concat((0,Mn.Z)(Kr),(0,Mn.Z)(Ca)),Ya=co.get(je),Ba=at({activeTabOffset:Ya,horizontal:En,rtl:Ve,indicatorSize:fn,indicatorAlign:zt}),Si=Ba.style;(0,u.useEffect)(function(){Wr()},[je,jr,Cr,I(Ya),I(co),En]),(0,u.useEffect)(function(){Dn()},[Ve]);var jo=!!Ha.length,ro="".concat(Pt,"-nav-wrap"),Qa,da,Da,yo;return En?Ve?(da=$n>0,Qa=$n!==Cr):(Qa=$n<0,da=$n!==jr):(Da=Jn<0,yo=Jn!==jr),u.createElement(wn.Z,{onResize:Dn},u.createElement("div",{ref:(0,Qe.x1)(F,_n),role:"tablist",className:d()("".concat(Pt,"-nav"),ue),style:ae,onKeyDown:function(){_o()}},u.createElement(mt,{ref:Bn,position:"left",extra:pt,prefixCls:Pt}),u.createElement(wn.Z,{onResize:Dn},u.createElement("div",{className:d()(ro,(U={},(0,$.Z)(U,"".concat(ro,"-ping-left"),Qa),(0,$.Z)(U,"".concat(ro,"-ping-right"),da),(0,$.Z)(U,"".concat(ro,"-ping-top"),Da),(0,$.Z)(U,"".concat(ro,"-ping-bottom"),yo),U)),ref:pn},u.createElement(wn.Z,{onResize:Dn},u.createElement("div",{ref:rn,className:"".concat(Pt,"-nav-list"),style:{transform:"translate(".concat($n,"px, ").concat(Jn,"px)"),transition:Rr?"none":void 0}},Sr,u.createElement(it,{ref:Ln,prefixCls:Pt,locale:ht,editable:Rt,style:(0,Z.Z)((0,Z.Z)({},Sr.length===0?void 0:ir),{},{visibility:jo?"hidden":null})}),u.createElement("div",{className:d()("".concat(Pt,"-ink-bar"),(0,$.Z)({},"".concat(Pt,"-ink-bar-animated"),Ee.inkBar)),style:Si}))))),u.createElement(cl,(0,k.Z)({},S,{removeAriaLabel:ht==null?void 0:ht.removeAriaLabel,ref:kn,prefixCls:Pt,tabs:Ha,className:!jo&&ia,tabMoving:!!Rr})),u.createElement(mt,{ref:yn,position:"right",extra:pt,prefixCls:Pt})))}),Su=el,Ei=u.forwardRef(function(S,F){var U=S.prefixCls,ue=S.className,ae=S.style,Ie=S.id,Ee=S.active,je=S.tabKey,Ve=S.children;return u.createElement("div",{id:Ie&&"".concat(Ie,"-panel-").concat(je),role:"tabpanel",tabIndex:Ee?0:-1,"aria-labelledby":Ie&&"".concat(Ie,"-tab-").concat(je),"aria-hidden":!Ee,style:ae,className:d()(U,Ee&&"".concat(U,"-active"),ue),ref:F},Ve)}),Uu=Ei,Hi=["renderTabBar"],Bs=["label","key"],pl=function(F){var U=F.renderTabBar,ue=(0,Re.Z)(F,Hi),ae=u.useContext(ln),Ie=ae.tabs;if(U){var Ee=(0,Z.Z)((0,Z.Z)({},ue),{},{panes:Ie.map(function(je){var Ve=je.label,pt=je.key,Rt=(0,Re.Z)(je,Bs);return u.createElement(Uu,(0,k.Z)({tab:Ve,key:pt,tabKey:pt},Rt))})});return U(Ee,Su)}return u.createElement(Su,ue)},vl=pl,_u=["key","forceRender","style","className","destroyInactiveTabPane"],os=function(F){var U=F.id,ue=F.activeKey,ae=F.animated,Ie=F.tabPosition,Ee=F.destroyInactiveTabPane,je=u.useContext(ln),Ve=je.prefixCls,pt=je.tabs,Rt=ae.tabPane,ht="".concat(Ve,"-tabpane");return u.createElement("div",{className:d()("".concat(Ve,"-content-holder"))},u.createElement("div",{className:d()("".concat(Ve,"-content"),"".concat(Ve,"-content-").concat(Ie),(0,$.Z)({},"".concat(Ve,"-content-animated"),Rt))},pt.map(function(jt){var Wt=jt.key,Lt=jt.forceRender,sn=jt.style,Jt=jt.className,fn=jt.destroyInactiveTabPane,zt=(0,Re.Z)(jt,_u),Zt=Wt===ue;return u.createElement(lr.ZP,(0,k.Z)({key:Wt,visible:Zt,forceRender:Lt,removeOnLeave:!!(Ee||fn),leavedClassName:"".concat(ht,"-hidden")},ae.tabPaneMotion),function(Pt,In){var _n=Pt.style,Bn=Pt.className;return u.createElement(Uu,(0,k.Z)({},zt,{prefixCls:ht,id:U,tabKey:Wt,animated:Rt,active:Zt,style:(0,Z.Z)((0,Z.Z)({},sn),_n),className:d()(Jt,Bn),ref:In}))})})))},zu=os;function xs(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},F;return S===!1?F={inkBar:!1,tabPane:!1}:S===!0?F={inkBar:!0,tabPane:!1}:F=(0,Z.Z)({inkBar:!0},(0,lt.Z)(S)==="object"?S:{}),F.tabPaneMotion&&F.tabPane===void 0&&(F.tabPane=!0),!F.tabPaneMotion&&F.tabPane&&(F.tabPane=!1),F}var $s=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize","indicatorAlign"],wu=0,tu=u.forwardRef(function(S,F){var U,ue=S.id,ae=S.prefixCls,Ie=ae===void 0?"rc-tabs":ae,Ee=S.className,je=S.items,Ve=S.direction,pt=S.activeKey,Rt=S.defaultActiveKey,ht=S.editable,jt=S.animated,Wt=S.tabPosition,Lt=Wt===void 0?"top":Wt,sn=S.tabBarGutter,Jt=S.tabBarStyle,fn=S.tabBarExtraContent,zt=S.locale,Zt=S.moreIcon,Pt=S.moreTransitionName,In=S.destroyInactiveTabPane,_n=S.renderTabBar,Bn=S.onChange,yn=S.onTabClick,pn=S.onTabScroll,rn=S.getPopupContainer,kn=S.popupClassName,Ln=S.indicatorSize,En=S.indicatorAlign,Hn=En===void 0?"center":En,dr=(0,Re.Z)(S,$s),$n=u.useMemo(function(){return(je||[]).filter(function(pr){return pr&&(0,lt.Z)(pr)==="object"&&"key"in pr})},[je]),er=Ve==="rtl",Qn=xs(jt),br=(0,u.useState)(!1),Jn=(0,ye.Z)(br,2),Ur=Jn[0],Xn=Jn[1];(0,u.useEffect)(function(){Xn(an())},[]);var or=(0,Dt.Z)(function(){var pr;return(pr=$n[0])===null||pr===void 0?void 0:pr.key},{value:pt,defaultValue:Rt}),xr=(0,ye.Z)(or,2),_r=xr[0],Er=xr[1],nr=(0,u.useState)(function(){return $n.findIndex(function(pr){return pr.key===_r})}),Zn=(0,ye.Z)(nr,2),Nr=Zn[0],ra=Zn[1];(0,u.useEffect)(function(){var pr=$n.findIndex(function(ka){return ka.key===_r});if(pr===-1){var vr;pr=Math.max(0,Math.min(Nr,$n.length-1)),Er((vr=$n[pr])===null||vr===void 0?void 0:vr.key)}ra(pr)},[$n.map(function(pr){return pr.key}).join("_"),_r,Nr]);var gr=(0,Dt.Z)(null,{value:ue}),Zr=(0,ye.Z)(gr,2),Sa=Zr[0],aa=Zr[1];(0,u.useEffect)(function(){ue||(aa("rc-tabs-".concat(wu)),wu+=1)},[]);function _a(pr,vr){yn==null||yn(pr,vr);var ka=pr!==_r;Er(pr),ka&&(Bn==null||Bn(pr))}var la={id:Sa,activeKey:_r,animated:Qn,tabPosition:Lt,rtl:er,mobile:Ur},wa=(0,Z.Z)((0,Z.Z)({},la),{},{editable:ht,locale:zt,moreIcon:Zt,moreTransitionName:Pt,tabBarGutter:sn,onTabClick:_a,onTabScroll:pn,extra:fn,style:Jt,panes:null,getPopupContainer:rn,popupClassName:kn,indicatorSize:Ln,indicatorAlign:Hn});return u.createElement(ln.Provider,{value:{tabs:$n,prefixCls:Ie}},u.createElement("div",(0,k.Z)({ref:F,id:ue,className:d()(Ie,"".concat(Ie,"-").concat(Lt),(U={},(0,$.Z)(U,"".concat(Ie,"-mobile"),Ur),(0,$.Z)(U,"".concat(Ie,"-editable"),ht),(0,$.Z)(U,"".concat(Ie,"-rtl"),er),U),Ee)},dr),u.createElement(vl,(0,k.Z)({},wa,{renderTabBar:_n})),u.createElement(zu,(0,k.Z)({destroyInactiveTabPane:In},la,{animated:Qn}))))}),ya=tu,pa=ya;function Jo(S,F){return Ro(S)||Hu(S,F)||Mo(S,F)||ho()}function ho(){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 Mo(S,F){if(S){if(typeof S=="string")return nu(S,F);var U=Object.prototype.toString.call(S).slice(8,-1);if(U==="Object"&&S.constructor&&(U=S.constructor.name),U==="Map"||U==="Set")return Array.from(S);if(U==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(U))return nu(S,F)}}function nu(S,F){(F==null||F>S.length)&&(F=S.length);for(var U=0,ue=new Array(F);UDe in K?v(K,De,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):K[De]=Ye,b=(K,De)=>{for(var Ye in De||(De={}))u.call(De,Ye)&&l(K,Ye,De[Ye]);if(y)for(var Ye of y(De))h.call(De,Ye)&&l(K,Ye,De[Ye]);return K};const g=K=>d.createElement("svg",b({viewBox:"64 64 896 896"},K),d.createElement("path",{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2 263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}));var E="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNODMyIDY0SDI5NmMtNC40IDAtOCAzLjYtOCA4djU2YzAgNC40IDMuNiA4IDggOGg0OTZ2Njg4YzAgNC40IDMuNiA4IDggOGg1NmM0LjQgMCA4LTMuNiA4LThWOTZjMC0xNy43LTE0LjMtMzItMzItMzJ6TTcwNCAxOTJIMTkyYy0xNy43IDAtMzIgMTQuMy0zMiAzMnY1MzAuN2MwIDguNSAzLjQgMTYuNiA5LjQgMjIuNmwxNzMuMyAxNzMuM2MyLjIgMi4yIDQuNyA0IDcuNCA1LjV2MS45aDQuMmMzLjUgMS4zIDcuMiAyIDExIDJINzA0YzE3LjcgMCAzMi0xNC4zIDMyLTMyVjIyNGMwLTE3LjctMTQuMy0zMi0zMi0zMnpNMzUwIDg1Ni4yIDI2My45IDc3MEgzNTB2ODYuMnpNNjY0IDg4OEg0MTRWNzQ2YzAtMjIuMS0xNy45LTQwLTQwLTQwSDIzMlYyNjRoNDMydjYyNHoiLz48L3N2Zz4=",P=e(5602),T=e.n(P),w=e(54996);function j(K){var De,Ye,Ct="";if(typeof K=="string"||typeof K=="number")Ct+=K;else if(typeof K=="object")if(Array.isArray(K)){var Nt=K.length;for(De=0;DeDe in K?R(K,De,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):K[De]=Ye,Ze=(K,De)=>{for(var Ye in De||(De={}))Me.call(De,Ye)&&Ke(K,Ye,De[Ye]);if(ge)for(var Ye of ge(De))He.call(De,Ye)&&Ke(K,Ye,De[Ye]);return K},Y=(K,De)=>z(K,q(De)),re=(K,De)=>{var Ye={};for(var Ct in K)Me.call(K,Ct)&&De.indexOf(Ct)<0&&(Ye[Ct]=K[Ct]);if(K!=null&&ge)for(var Ct of ge(K))De.indexOf(Ct)<0&&He.call(K,Ct)&&(Ye[Ct]=K[Ct]);return Ye},ie=(K,De)=>function(){return De||(0,K[X(K)[0]])((De={exports:{}}).exports,De),De.exports},C=(K,De)=>{for(var Ye in De)R(K,Ye,{get:De[Ye],enumerable:!0})},N=(K,De,Ye,Ct)=>{if(De&&typeof De=="object"||typeof De=="function")for(let Nt of X(De))!Me.call(K,Nt)&&Nt!==Ye&&R(K,Nt,{get:()=>De[Nt],enumerable:!(Ct=W(De,Nt))||Ct.enumerable});return K},Q=(K,De,Ye)=>(Ye=K!=null?A(ke(K)):{},N(De||!K||!K.__esModule?R(Ye,"default",{value:K,enumerable:!0}):Ye,K)),de=ie({"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(K,De){var Ye=function(){var Ct=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,Nt=0,hn={},tn={util:{encode:function _t(It){return It instanceof cn?new cn(It.type,_t(It.content),It.alias):Array.isArray(It)?It.map(_t):It.replace(/&/g,"&").replace(/"+Xt.content+""};function gn(_t,It,Ut,qt){_t.lastIndex=It;var Xt=_t.exec(Ut);if(Xt&&qt&&Xt[1]){var mn=Xt[1].length;Xt.index+=mn,Xt[0]=Xt[0].slice(mn)}return Xt}function dn(_t,It,Ut,qt,Xt,mn){for(var ar in Ut)if(!(!Ut.hasOwnProperty(ar)||!Ut[ar])){var lr=Ut[ar];lr=Array.isArray(lr)?lr:[lr];for(var Vr=0;Vr=mn.reach);sa+=yr.value.length,yr=yr.next){var Pa=yr.value;if(It.length>_t.length)return;if(!(Pa instanceof cn)){var Pr=1,Ka;if(Ma){if(Ka=gn(fa,sa,_t,ba),!Ka||Ka.index>=_t.length)break;var Co=Ka.index,ki=Ka.index+Ka[0].length,xo=sa;for(xo+=yr.value.length;Co>=xo;)yr=yr.next,xo+=yr.value.length;if(xo-=yr.value.length,sa=xo,yr.value instanceof cn)continue;for(var Ko=yr;Ko!==It.tail&&(xomn.reach&&(mn.reach=uo);var mo=yr.prev;vo&&(mo=vn(It,mo,vo),sa+=vo.length),rr(It,mo,Pr);var Oo=new cn(ar,Hr?tn.tokenize(To,Hr):To,Oa,To);if(yr=vn(It,mo,Oo),io&&vn(It,yr,io),Pr>1){var so={cause:ar+","+Vr,reach:uo};dn(_t,It,Ut,yr.prev,sa,so),mn&&so.reach>mn.reach&&(mn.reach=so.reach)}}}}}}function Cn(){var _t={value:null,prev:null,next:null},It={value:null,prev:_t,next:null};_t.next=It,this.head=_t,this.tail=It,this.length=0}function vn(_t,It,Ut){var qt=It.next,Xt={value:Ut,prev:It,next:qt};return It.next=Xt,qt.prev=Xt,_t.length++,Xt}function rr(_t,It,Ut){for(var qt=It.next,Xt=0;Xt/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},k.languages.markup.tag.inside["attr-value"].inside.entity=k.languages.markup.entity,k.languages.markup.doctype.inside["internal-subset"].inside=k.languages.markup,k.hooks.add("wrap",function(K){K.type==="entity"&&(K.attributes.title=K.content.replace(/&/,"&"))}),Object.defineProperty(k.languages.markup.tag,"addInlined",{value:function(K,Ct){var Ye={},Ye=(Ye["language-"+Ct]={pattern:/(^$)/i,lookbehind:!0,inside:k.languages[Ct]},Ye.cdata=/^$/i,{"included-cdata":{pattern://i,inside:Ye}}),Ct=(Ye["language-"+Ct]={pattern:/[\s\S]+/,inside:k.languages[Ct]},{});Ct[K]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return K}),"i"),lookbehind:!0,greedy:!0,inside:Ye},k.languages.insertBefore("markup","cdata",Ct)}}),Object.defineProperty(k.languages.markup.tag,"addAttribute",{value:function(K,De){k.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+K+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[De,"language-"+De],inside:k.languages[De]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),k.languages.html=k.languages.markup,k.languages.mathml=k.languages.markup,k.languages.svg=k.languages.markup,k.languages.xml=k.languages.extend("markup",{}),k.languages.ssml=k.languages.xml,k.languages.atom=k.languages.xml,k.languages.rss=k.languages.xml,function(K){var De={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},Ye=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,Ct="(?:[^\\\\-]|"+Ye.source+")",Ct=RegExp(Ct+"-"+Ct),Nt={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};K.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:Ct,inside:{escape:Ye,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":De,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:Ye}},"special-escape":De,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":Nt}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:Ye,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},k.languages.javascript=k.languages.extend("clike",{"class-name":[k.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),k.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,k.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:k.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:k.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:k.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:k.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:k.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),k.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:k.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),k.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),k.languages.markup&&(k.languages.markup.tag.addInlined("script","javascript"),k.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),k.languages.js=k.languages.javascript,k.languages.actionscript=k.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<>?>?|[!=]=?)=?|[~?@]/}),k.languages.actionscript["class-name"].alias="function",delete k.languages.actionscript.parameter,delete k.languages.actionscript["literal-property"],k.languages.markup&&k.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:k.languages.markup}}),function(K){var De=/#(?!\{).+/,Ye={pattern:/#\{[^}]+\}/,alias:"variable"};K.languages.coffeescript=K.languages.extend("javascript",{comment:De,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:Ye}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),K.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:De,interpolation:Ye}}}),K.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:K.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:Ye}}]}),K.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete K.languages.coffeescript["template-string"],K.languages.coffee=K.languages.coffeescript}(k),function(K){var De=K.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(De,"addSupport",{value:function(Ye,Ct){(Ye=typeof Ye=="string"?[Ye]:Ye).forEach(function(Nt){var hn=function(vn){vn.inside||(vn.inside={}),vn.inside.rest=Ct},tn="doc-comment";if(cn=K.languages[Nt]){var cn,gn=cn[tn];if((gn=gn||(cn=K.languages.insertBefore(Nt,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[tn])instanceof RegExp&&(gn=cn[tn]={pattern:gn}),Array.isArray(gn))for(var dn=0,Cn=gn.length;dn|\+|~|\|\|/,punctuation:/[(),]/}},K.languages.css.atrule.inside["selector-function-argument"].inside=De,K.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),Ye={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};K.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:De,number:Ye,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:De,number:Ye})}(k),function(K){var De=/[*&][^\s[\]{},]+/,Ye=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,Ct="(?:"+Ye.source+"(?:[ ]+"+De.source+")?|"+De.source+"(?:[ ]+"+Ye.source+")?)",Nt=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),hn=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function tn(cn,gn){gn=(gn||"").replace(/m/g,"")+"m";var dn=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return Ct}).replace(/<>/g,function(){return cn});return RegExp(dn,gn)}K.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return Ct})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return Ct}).replace(/<>/g,function(){return"(?:"+Nt+"|"+hn+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:tn(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:tn(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:tn(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:tn(hn),lookbehind:!0,greedy:!0},number:{pattern:tn(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:Ye,important:De,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},K.languages.yml=K.languages.yaml}(k),function(K){var De=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function Ye(dn){return dn=dn.replace(//g,function(){return De}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+dn+")")}var Ct=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,Nt=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return Ct}),hn=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,tn=(K.languages.markdown=K.languages.extend("markup",{}),K.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:K.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+Nt+hn+"(?:"+Nt+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+Nt+hn+")(?:"+Nt+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(Ct),inside:K.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+Nt+")"+hn+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+Nt+"$"),inside:{"table-header":{pattern:RegExp(Ct),alias:"important",inside:K.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:Ye(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:Ye(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:Ye(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:Ye(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(dn){["url","bold","italic","strike","code-snippet"].forEach(function(Cn){dn!==Cn&&(K.languages.markdown[dn].inside.content.inside[Cn]=K.languages.markdown[Cn])})}),K.hooks.add("after-tokenize",function(dn){dn.language!=="markdown"&&dn.language!=="md"||function Cn(vn){if(vn&&typeof vn!="string")for(var rr=0,Ar=vn.length;rr",quot:'"'},gn=String.fromCodePoint||String.fromCharCode;K.languages.md=K.languages.markdown}(k),k.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:k.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},k.hooks.add("after-tokenize",function(K){if(K.language==="graphql")for(var De=K.tokens.filter(function(_t){return typeof _t!="string"&&_t.type!=="comment"&&_t.type!=="scalar"}),Ye=0;Ye?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(K){var De=K.languages.javascript["template-string"],Ye=De.pattern.source,Ct=De.inside.interpolation,Nt=Ct.inside["interpolation-punctuation"],hn=Ct.pattern.source;function tn(vn,rr){if(K.languages[vn])return{pattern:RegExp("((?:"+rr+")\\s*)"+Ye),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:vn}}}}function cn(vn,rr,Ar){return vn={code:vn,grammar:rr,language:Ar},K.hooks.run("before-tokenize",vn),vn.tokens=K.tokenize(vn.code,vn.grammar),K.hooks.run("after-tokenize",vn),vn.tokens}function gn(vn,rr,Ar){var Ut=K.tokenize(vn,{interpolation:{pattern:RegExp(hn),lookbehind:!0}}),_t=0,It={},Ut=cn(Ut.map(function(Xt){if(typeof Xt=="string")return Xt;for(var mn,ar,Xt=Xt.content;vn.indexOf((ar=_t++,mn="___"+Ar.toUpperCase()+"_"+ar+"___"))!==-1;);return It[mn]=Xt,mn}).join(""),rr,Ar),qt=Object.keys(It);return _t=0,function Xt(mn){for(var ar=0;ar=qt.length)return;var lr,Vr,Fr,Hr,ba,Ma,Oa,Br=mn[ar];typeof Br=="string"||typeof Br.content=="string"?(lr=qt[_t],(Oa=(Ma=typeof Br=="string"?Br:Br.content).indexOf(lr))!==-1&&(++_t,Vr=Ma.substring(0,Oa),ba=It[lr],Fr=void 0,(Hr={})["interpolation-punctuation"]=Nt,(Hr=K.tokenize(ba,Hr)).length===3&&((Fr=[1,1]).push.apply(Fr,cn(Hr[1],K.languages.javascript,"javascript")),Hr.splice.apply(Hr,Fr)),Fr=new K.Token("interpolation",Hr,Ct.alias,ba),Hr=Ma.substring(Oa+lr.length),ba=[],Vr&&ba.push(Vr),ba.push(Fr),Hr&&(Xt(Ma=[Hr]),ba.push.apply(ba,Ma)),typeof Br=="string"?(mn.splice.apply(mn,[ar,1].concat(ba)),ar+=ba.length-1):Br.content=ba)):(Oa=Br.content,Array.isArray(Oa)?Xt(Oa):Xt([Oa]))}}(Ut),new K.Token(Ar,Ut,"language-"+Ar,vn)}K.languages.javascript["template-string"]=[tn("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),tn("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),tn("svg",/\bsvg/.source),tn("markdown",/\b(?:markdown|md)/.source),tn("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),tn("sql",/\bsql/.source),De].filter(Boolean);var dn={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function Cn(vn){return typeof vn=="string"?vn:Array.isArray(vn)?vn.map(Cn).join(""):Cn(vn.content)}K.hooks.add("after-tokenize",function(vn){vn.language in dn&&function rr(Ar){for(var _t=0,It=Ar.length;_t]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),K.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete K.languages.typescript.parameter,delete K.languages.typescript["literal-property"];var De=K.languages.extend("typescript",{});delete De["class-name"],K.languages.typescript["class-name"].inside=De,K.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:De}}}}),K.languages.ts=K.languages.typescript}(k),function(K){var De=K.languages.javascript,Ye=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,Ct="(@(?:arg|argument|param|property)\\s+(?:"+Ye+"\\s+)?)";K.languages.jsdoc=K.languages.extend("javadoclike",{parameter:{pattern:RegExp(Ct+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),K.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(Ct+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:De,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return Ye})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+Ye),lookbehind:!0,inside:{string:De.string,number:De.number,boolean:De.boolean,keyword:K.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:De,alias:"language-javascript"}}}}),K.languages.javadoclike.addSupport("javascript",K.languages.jsdoc)}(k),function(K){K.languages.flow=K.languages.extend("javascript",{}),K.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),K.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete K.languages.flow.parameter,K.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(K.languages.flow.keyword)||(K.languages.flow.keyword=[K.languages.flow.keyword]),K.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(k),k.languages.n4js=k.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),k.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),k.languages.n4jsd=k.languages.n4js,function(K){function De(tn,cn){return RegExp(tn.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),cn)}K.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+K.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),K.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+K.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),K.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),K.languages.insertBefore("javascript","keyword",{imports:{pattern:De(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:K.languages.javascript},exports:{pattern:De(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:K.languages.javascript}}),K.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),K.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),K.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:De(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var Ye=["function","function-variable","method","method-variable","property-access"],Ct=0;Ct*\.{3}(?:[^{}]|)*\})/.source;function hn(gn,dn){return gn=gn.replace(//g,function(){return Ye}).replace(//g,function(){return Ct}).replace(//g,function(){return Nt}),RegExp(gn,dn)}Nt=hn(Nt).source,K.languages.jsx=K.languages.extend("markup",De),K.languages.jsx.tag.pattern=hn(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),K.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,K.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,K.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,K.languages.jsx.tag.inside.comment=De.comment,K.languages.insertBefore("inside","attr-name",{spread:{pattern:hn(//.source),inside:K.languages.jsx}},K.languages.jsx.tag),K.languages.insertBefore("inside","special-attr",{script:{pattern:hn(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:K.languages.jsx}}},K.languages.jsx.tag);function tn(gn){for(var dn=[],Cn=0;Cn"&&dn.push({tagName:cn(vn.content[0].content[1]),openedBraces:0}):0]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},k.languages.swift["string-literal"].forEach(function(K){K.inside.interpolation.inside=k.languages.swift}),function(K){K.languages.kotlin=K.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete K.languages.kotlin["class-name"];var De={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:K.languages.kotlin}};K.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:De},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:De},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete K.languages.kotlin.string,K.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),K.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),K.languages.kt=K.languages.kotlin,K.languages.kts=K.languages.kotlin}(k),k.languages.c=k.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),k.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),k.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},k.languages.c.string],char:k.languages.c.char,comment:k.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:k.languages.c}}}}),k.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete k.languages.c.boolean,k.languages.objectivec=k.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete k.languages.objectivec["class-name"],k.languages.objc=k.languages.objectivec,k.languages.reason=k.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),k.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete k.languages.reason.function,function(K){for(var De=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,Ye=0;Ye<2;Ye++)De=De.replace(//g,function(){return De});De=De.replace(//g,function(){return/[^\s\S]/.source}),K.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+De),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},K.languages.rust["closure-params"].inside.rest=K.languages.rust,K.languages.rust.attribute.inside.string=K.languages.rust.string}(k),k.languages.go=k.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),k.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete k.languages.go["class-name"],function(K){var De=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,Ye=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return De.source});K.languages.cpp=K.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return De.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:De,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),K.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return Ye})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),K.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:K.languages.cpp}}}}),K.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),K.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:K.languages.extend("cpp",{})}}),K.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},K.languages.cpp["base-clause"])}(k),k.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},k.languages.python["string-interpolation"].inside.interpolation.inside.rest=k.languages.python,k.languages.py=k.languages.python;var $={};C($,{dracula:()=>ye,duotoneDark:()=>Re,duotoneLight:()=>an,github:()=>Mn,jettwaveDark:()=>Le,jettwaveLight:()=>it,nightOwl:()=>jn,nightOwlLight:()=>bt,oceanicNext:()=>Ht,okaidia:()=>Be,oneDark:()=>mt,oneLight:()=>kt,palenight:()=>xe,shadesOfPurple:()=>tt,synthwave84:()=>ce,ultramin:()=>ut,vsDark:()=>xt,vsLight:()=>V});var Z={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},ye=Z,lt={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},Re=lt,Dt={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},an=Dt,ln={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},Mn=ln,wn={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},jn=wn,Qe={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},bt=Qe,vt={char:"#D8DEE9",comment:"#999999",keyword:"#c5a5c5",primitive:"#5a9bcf",string:"#8dc891",variable:"#d7deea",boolean:"#ff8b50",punctuation:"#5FB3B3",tag:"#fc929e",function:"#79b6f2",className:"#FAC863",method:"#6699CC",operator:"#fc929e"},at={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:vt.keyword}},{types:["attr-value"],style:{color:vt.string}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:vt.comment}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:vt.primitive}},{types:["boolean"],style:{color:vt.boolean}},{types:["tag"],style:{color:vt.tag}},{types:["string"],style:{color:vt.string}},{types:["punctuation"],style:{color:vt.string}},{types:["selector","char","builtin","inserted"],style:{color:vt.char}},{types:["function"],style:{color:vt.function}},{types:["operator","entity","url","variable"],style:{color:vt.variable}},{types:["keyword"],style:{color:vt.keyword}},{types:["atrule","class-name"],style:{color:vt.className}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},Ht=at,Pe={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},Be=Pe,Je={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},xe=Je,Oe={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},tt=Oe,nt={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},ce=nt,$e={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},ut=$e,Xe={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},xt=Xe,I={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},V=I,we={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},Le=we,et={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},it=et,Ue={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},mt=Ue,Et={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},kt=Et,Mt=(K,De)=>{const{plain:Ye}=K,Ct=K.styles.reduce((Nt,hn)=>{const{languages:tn,style:cn}=hn;return tn&&!tn.includes(De)||hn.types.forEach(gn=>{const dn=Ze(Ze({},Nt[gn]),cn);Nt[gn]=dn}),Nt},{});return Ct.root=Ye,Ct.plain=Y(Ze({},Ye),{backgroundColor:void 0}),Ct},Ae=Mt,gt=(K,De)=>{const[Ye,Ct]=(0,d.useState)(Ae(De,K)),Nt=(0,d.useRef)(),hn=(0,d.useRef)();return(0,d.useEffect)(()=>{(De!==Nt.current||K!==hn.current)&&(Nt.current=De,hn.current=K,Ct(Ae(De,K)))},[K,De]),Ye},rt=K=>(0,d.useCallback)(De=>{var Ye=De,{className:Ct,style:Nt,line:hn}=Ye,tn=re(Ye,["className","style","line"]);const cn=Y(Ze({},tn),{className:B("token-line",Ct)});return typeof K=="object"&&"plain"in K&&(cn.style=K.plain),typeof Nt=="object"&&(cn.style=Ze(Ze({},cn.style||{}),Nt)),cn},[K]),ze=K=>{const De=(0,d.useCallback)(({types:Ye,empty:Ct})=>{if(K!=null){{if(Ye.length===1&&Ye[0]==="plain")return Ct!=null?{display:"inline-block"}:void 0;if(Ye.length===1&&Ct!=null)return K[Ye[0]]}return Object.assign(Ct!=null?{display:"inline-block"}:{},...Ye.map(Nt=>K[Nt]))}},[K]);return(0,d.useCallback)(Ye=>{var Ct=Ye,{token:Nt,className:hn,style:tn}=Ct,cn=re(Ct,["token","className","style"]);const gn=Y(Ze({},cn),{className:B("token",...Nt.types,hn),children:Nt.content,style:De(Nt)});return tn!=null&&(gn.style=Ze(Ze({},gn.style||{}),tn)),gn},[De])},St=/\r\n|\r|\n/,At=K=>{K.length===0?K.push({types:["plain"],content:` -`,empty:!0}):K.length===1&&K[0].content===""&&(K[0].content=` -`,K[0].empty=!0)},Kt=(K,De)=>{const Ye=K.length;return Ye>0&&K[Ye-1]===De?K:K.concat(De)},nn=K=>{const De=[[]],Ye=[K],Ct=[0],Nt=[K.length];let hn=0,tn=0,cn=[];const gn=[cn];for(;tn>-1;){for(;(hn=Ct[tn]++)0?Cn:["plain"],dn=rr):(Cn=Kt(Cn,rr.type),rr.alias&&(Cn=Kt(Cn,rr.alias)),dn=rr.content),typeof dn!="string"){tn++,De.push(Cn),Ye.push(dn),Ct.push(0),Nt.push(dn.length);continue}const Ar=dn.split(St),_t=Ar.length;cn.push({types:Cn,content:Ar[0]});for(let It=1;It<_t;It++)At(cn),gn.push(cn=[]),cn.push({types:Cn,content:Ar[It]})}tn--,De.pop(),Ye.pop(),Ct.pop(),Nt.pop()}return At(cn),gn},An=nn,tr=({prism:K,code:De,grammar:Ye,language:Ct})=>{const Nt=(0,d.useRef)(K);return(0,d.useMemo)(()=>{if(Ye==null)return An([De]);const hn={code:De,grammar:Ye,language:Ct,tokens:[]};return Nt.current.hooks.run("before-tokenize",hn),hn.tokens=Nt.current.tokenize(De,Ye),Nt.current.hooks.run("after-tokenize",hn),An(hn.tokens)},[De,Ye,Ct])},Kn=({children:K,language:De,code:Ye,theme:Ct,prism:Nt})=>{const hn=De.toLowerCase(),tn=gt(hn,Ct),cn=rt(tn),gn=ze(tn),dn=Nt.languages[hn],Cn=tr({prism:Nt,language:hn,code:Ye,grammar:dn});return K({tokens:Cn,className:`prism-code language-${hn}`,style:tn!=null?tn.root:{},getLineProps:cn,getTokenProps:gn})},cr=K=>(0,d.createElement)(Kn,Y(Ze({},K),{prism:K.prism||k,theme:K.theme||xt,code:K.code,language:K.language}));var Tr=e(73191),Or=e(35250),va=cr,Gr=k,Gt=$,wt={Prism:Gr,theme:Gt.oneLight},$t={acss:"css",axml:"markup"},On=function(De){var Ye=De.children,Ct=Ye===void 0?"":Ye,Nt=De.lang,hn=De.highlightLines,tn=hn===void 0?[]:hn,cn=(0,d.useRef)(),gn=(0,d.useState)(!1),dn=s()(gn,2),Cn=dn[0],vn=dn[1],rr=(0,d.useState)(Ct),Ar=s()(rr,2),_t=Ar[0],It=Ar[1],Ut=(0,w.WF)(),qt=Ut.themeConfig;return(0,d.useEffect)(function(){var Xt=/shellscript|shell|bash|sh|zsh/.test(Nt);if(Xt){var mn=Ct.replace(/^(\$|>)\s/gm,"");It(mn)}},[Nt,Ct]),(0,Or.jsxs)("div",{className:"dumi-default-source-code",children:[(0,Or.jsx)(Tr.CopyToClipboard,{text:_t,onCopy:function(){vn(!0),clearTimeout(cn.current),cn.current=window.setTimeout(function(){return vn(!1)},2e3)},children:(0,Or.jsx)("button",{type:"button",className:"dumi-default-source-code-copy","data-copied":Cn||void 0,children:Cn?(0,Or.jsx)(f.r,{}):(0,Or.jsx)(g,{})})}),(0,Or.jsx)(va,a()(a()({code:Ct.trim(),language:$t[Nt]||Nt,theme:void 0},wt),{},{children:function(mn){var ar=mn.className,lr=mn.style,Vr=mn.tokens,Fr=mn.getLineProps,Hr=mn.getTokenProps;return(0,Or.jsx)("pre",{className:ar,style:lr,children:Vr.map(function(ba,Ma){return(0,Or.jsxs)("div",{className:T()({highlighted:tn.includes(Ma+1),wrap:qt.showLineNum}),children:[qt.showLineNum&&(0,Or.jsx)("span",{className:"token-line-num",children:Ma+1}),(0,Or.jsx)("div",a()(a()({},Fr({line:ba,key:Ma})),{},{className:T()({"line-cell":qt.showLineNum}),children:ba.map(function(Oa,Br){return(0,Or.jsx)("span",a()({},Hr({token:Oa,key:Br})))})}))]},String(Ma))})})}}))]})},Gn=On},30194:function(c,m,e){"use strict";e.d(m,{f:function(){return y},m:function(){return d}});var i=e(26851),a=e.n(i),r=e(39114),s=e.n(r),f=e(22827),d,v="/";function y(l){var b;return l.type==="hash"?b=(0,f.q_)():l.type==="memory"?b=(0,f.PP)(l):b=(0,f.lX)(),l.basename&&(v=l.basename),d=s()(s()({},b),{},{push:function(E,P){b.push(u(E,b),P)},replace:function(E,P){b.replace(u(E,b),P)},get location(){return b.location},get action(){return b.action}}),b}function u(l,b){if(typeof l=="string")return"".concat(h(v)).concat(l);if(a()(l)==="object"){var g=b.location.pathname;return s()(s()({},l),{},{pathname:l.pathname?"".concat(h(v)).concat(l.pathname):g})}else throw new Error("Unexpected to: ".concat(l))}function h(l){return l.slice(-1)==="/"?l.slice(0,-1):l}},47278:function(c,m,e){"use strict";e.d(m,{gD:function(){return kt},We:function(){return Mt}});var i={};e.r(i),e.d(i,{modifyClientRenderOpts:function(){return y}});var a={};e.r(a),e.d(a,{innerProvider:function(){return b}});var r={};e.r(r),e.d(r,{patchRoutes:function(){return T}});var s={};e.r(s),e.d(s,{i18nProvider:function(){return we}});var f={};e.r(f),e.d(f,{modifyClientRenderOpts:function(){return Le}});var d=e(39114),v=e.n(d);function y(Ae){var gt=Ae.history,rt=Ae.hydrate;return v()(v()({},Ae),{},{hydrate:rt&&!["/~demos/:id"].includes(gt.location.pathname)})}var u=e(70079),h=e(27061),l={},b=function(gt){return u.createElement(h.B6,{context:l},gt)},g=e(39483),E=e(8026),P=e.n(E),T=function(gt){var rt=gt.routes;Object.values(rt).forEach(function(ze){if(g.C3[ze.id]){var St;if((St=ze.meta)!==null&&St!==void 0&&(St=St.frontmatter)!==null&&St!==void 0&&St.debug||g.C3[ze.id].frontmatter.debug)delete rt[ze.id];else{var At;ze.meta=P()(ze.meta,g.C3[ze.id]),ze.meta.tabs=(At=ze.meta.tabs)===null||At===void 0?void 0:At.map(function(Kt){var nn={frontmatter:{title:g.eA[Kt].title},toc:[],texts:[]};return v()(v()({},g.eA[Kt]),{},{meta:g.C3[Kt]||nn})})}}})},w=e(70125),j=e.n(w),D=e(54996),B=e(58610),A=e(38104),R=e(78060),z=e(28726),W=e(29100),q=e(32666);function X(Ae,gt){return Object.keys(Ae).reduce(function(rt,ze){return rt[ze]=(0,A.pi)({timeZone:gt},Ae[ze]),rt},{})}function ge(Ae,gt){var rt=Object.keys((0,A.pi)((0,A.pi)({},Ae),gt));return rt.reduce(function(ze,St){return ze[St]=(0,A.pi)((0,A.pi)({},Ae[St]||{}),gt[St]||{}),ze},{})}function ke(Ae,gt){if(!gt)return Ae;var rt=z.C.formats;return(0,A.pi)((0,A.pi)((0,A.pi)({},rt),Ae),{date:ge(X(rt.date,gt),X(Ae.date||{},gt)),time:ge(X(rt.time,gt),X(Ae.time||{},gt))})}var Me=function(Ae,gt,rt,ze,St){var At=Ae.locale,Kt=Ae.formats,nn=Ae.messages,An=Ae.defaultLocale,tr=Ae.defaultFormats,Kn=Ae.fallbackOnEmptyString,cr=Ae.onError,Tr=Ae.timeZone,Or=Ae.defaultRichTextElements;rt===void 0&&(rt={id:""});var va=rt.id,Gr=rt.defaultMessage;(0,R.kG)(!!va,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var Gt=String(va),wt=nn&&Object.prototype.hasOwnProperty.call(nn,Gt)&&nn[Gt];if(Array.isArray(wt)&&wt.length===1&&wt[0].type===q.wD.literal)return wt[0].value;if(!ze&&wt&&typeof wt=="string"&&!Or)return wt.replace(/'\{(.*?)\}'/gi,"{$1}");if(ze=(0,A.pi)((0,A.pi)({},Or),ze||{}),Kt=ke(Kt,Tr),tr=ke(tr,Tr),!wt){if(Kn===!1&&wt==="")return wt;if((!Gr||At&&At.toLowerCase()!==An.toLowerCase())&&cr(new W.$6(rt,At)),Gr)try{var $t=gt.getMessageFormat(Gr,An,tr,St);return $t.format(ze)}catch(On){return cr(new W.X9('Error formatting default message for: "'.concat(Gt,'", rendering default message verbatim'),At,rt,On)),typeof Gr=="string"?Gr:Gt}return Gt}try{var $t=gt.getMessageFormat(wt,At,Kt,(0,A.pi)({formatters:gt},St||{}));return $t.format(ze)}catch(On){cr(new W.X9('Error formatting message: "'.concat(Gt,'", using ').concat(Gr?"default message":"id"," as fallback."),At,rt,On))}if(Gr)try{var $t=gt.getMessageFormat(Gr,An,tr,St);return $t.format(ze)}catch(On){cr(new W.X9('Error formatting the default message for: "'.concat(Gt,'", rendering message verbatim'),At,rt,On))}return typeof wt=="string"?wt:typeof Gr=="string"?Gr:Gt},He=["style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function Ke(Ae,gt,rt){var ze=Ae.locale,St=Ae.formats,At=Ae.onError;rt===void 0&&(rt={});var Kt=rt.format,nn=Kt&&(0,B.TB)(St,"number",Kt,At)||{},An=(0,B.L6)(rt,He,nn);return gt(ze,An)}function Ze(Ae,gt,rt,ze){ze===void 0&&(ze={});try{return Ke(Ae,gt,ze).format(rt)}catch(St){Ae.onError(new W.Qe("Error formatting number.",Ae.locale,St))}return String(rt)}function Y(Ae,gt,rt,ze){ze===void 0&&(ze={});try{return Ke(Ae,gt,ze).formatToParts(rt)}catch(St){Ae.onError(new W.Qe("Error formatting number.",Ae.locale,St))}return[]}var re=e(6477),ie=["numeric","style"];function C(Ae,gt,rt){var ze=Ae.locale,St=Ae.formats,At=Ae.onError;rt===void 0&&(rt={});var Kt=rt.format,nn=!!Kt&&(0,B.TB)(St,"relative",Kt,At)||{},An=(0,B.L6)(rt,ie,nn);return gt(ze,An)}function N(Ae,gt,rt,ze,St){St===void 0&&(St={}),ze||(ze="second");var At=Intl.RelativeTimeFormat;At||Ae.onError(new re.u_(`Intl.RelativeTimeFormat is not available in this environment. + `.concat(Se?"width: calc(100% - ".concat(xe,"px);"):"",` +}`),ae)}else Gr(ae);return function(){Gr(ae)}},[F,ae])}var tn=!1;function ln(S){return typeof S=="boolean"&&(tn=S),tn}var gn=function(F){return F===!1?!1:!(0,kt.Z)()||!F?null:typeof F=="string"?document.querySelector(F):typeof F=="function"?F():F},cn=u.forwardRef(function(S,F){var U=S.open,le=S.autoLock,ae=S.getContainer,xe=S.debug,Se=S.autoDestroy,je=Se===void 0?!0:Se,Ye=S.children,pt=u.useState(U),Rt=(0,ge.Z)(pt,2),ht=Rt[0],Ft=Rt[1],Wt=ht||U;u.useEffect(function(){(je||U)&&Ft(U)},[U,je]);var Lt=u.useState(function(){return gn(ae)}),un=(0,ge.Z)(Lt,2),Jt=un[0],dn=un[1];u.useEffect(function(){var Nn=gn(ae);dn(Nn!=null?Nn:null)});var zt=He(Wt&&!Jt,xe),Zt=(0,ge.Z)(zt,2),Pt=Zt[0],In=Zt[1],wn=Jt!=null?Jt:Pt;mn(le&&U&&(0,kt.Z)()&&(wn===Pt||wn===document.body));var $n=null;if(Ye&&(0,Xe.Yr)(Ye)&&F){var hn=Ye;$n=hn.ref}var fn=(0,Xe.x1)($n,F);if(!Wt||!(0,kt.Z)()||Jt===void 0)return null;var rn=wn===!1||ln(),Dn=Ye;return F&&(Dn=u.cloneElement(Ye,{ref:fn})),u.createElement(gt.Provider,{value:In},rn?Dn:(0,Et.createPortal)(Dn,wn))}),Tn=cn,pn=Tn,ar=e(26726);function wr(S){var F;return S==null||(F=S.getRootNode)===null||F===void 0?void 0:F.call(S)}function _t(S){return wr(S)instanceof ShadowRoot}function It(S){return _t(S)?wr(S):null}function Ut(){var S=(0,Z.Z)({},h);return S.useId}var qt=0;function Xt(){}var vn=Ut(),or=vn?function(F){var U=vn();return F||U}:function(F){var U=u.useState("ssr-id"),le=(0,ge.Z)(U,2),ae=le[0],xe=le[1];return u.useEffect(function(){var Se=qt;qt+=1,xe("rc_unique_".concat(Se))},[]),F||ae},cr=e(71755);function Vr(S){var F=S.prefixCls,U=S.align,le=S.arrow,ae=S.arrowPos,xe=le||{},Se=xe.className,je=xe.content,Ye=ae.x,pt=Ye===void 0?0:Ye,Rt=ae.y,ht=Rt===void 0?0:Rt,Ft=u.useRef();if(!U||!U.points)return null;var Wt={position:"absolute"};if(U.autoArrow!==!1){var Lt=U.points[0],un=U.points[1],Jt=Lt[0],dn=Lt[1],zt=un[0],Zt=un[1];Jt===zt||!["t","b"].includes(Jt)?Wt.top=ht:Jt==="t"?Wt.top=0:Wt.bottom=0,dn===Zt||!["l","r"].includes(dn)?Wt.left=pt:dn==="l"?Wt.left=0:Wt.right=0}return u.createElement("div",{ref:Ft,className:d()("".concat(F,"-arrow"),Se),style:Wt},je)}function jr(S){var F=S.prefixCls,U=S.open,le=S.zIndex,ae=S.mask,xe=S.motion;return ae?u.createElement(cr.ZP,(0,k.Z)({},xe,{motionAppear:!0,visible:U,removeOnLeave:!0}),function(Se){var je=Se.className;return u.createElement("div",{style:{zIndex:le},className:d()("".concat(F,"-mask"),je)})}):null}var zr=u.memo(function(S){var F=S.children;return F},function(S,F){return F.cache}),Sa=zr,Na=u.forwardRef(function(S,F){var U=S.popup,le=S.className,ae=S.prefixCls,xe=S.style,Se=S.target,je=S.onVisibleChanged,Ye=S.open,pt=S.keepDom,Rt=S.fresh,ht=S.onClick,Ft=S.mask,Wt=S.arrow,Lt=S.arrowPos,un=S.align,Jt=S.motion,dn=S.maskMotion,zt=S.forceRender,Zt=S.getPopupContainer,Pt=S.autoDestroy,In=S.portal,wn=S.zIndex,$n=S.onMouseEnter,hn=S.onMouseLeave,fn=S.onPointerEnter,rn=S.ready,Dn=S.offsetX,Nn=S.offsetY,En=S.offsetR,Zn=S.offsetB,fr=S.onAlign,Un=S.onPrepare,tr=S.stretch,Xn=S.targetWidth,Ir=S.targetHeight,qn=typeof U=="function"?U():U,$r=Ye||pt,Jn=(Zt==null?void 0:Zt.length)>0,ir=u.useState(!Zt||!Jn),xr=(0,ge.Z)(ir,2),Sr=xr[0],br=xr[1];if((0,de.Z)(function(){!Sr&&Jn&&Se&&br(!0)},[Sr,Jn,Se]),!Sr)return null;var rr="auto",Wn={left:"-1000vw",top:"-1000vh",right:rr,bottom:rr};if(rn||!Ye){var Lr,ra=un.points,yr=un.dynamicInset||((Lr=un._experimental)===null||Lr===void 0?void 0:Lr.dynamicInset),Hr=yr&&ra[0][1]==="r",Aa=yr&&ra[0][0]==="b";Hr?(Wn.right=En,Wn.left=rr):(Wn.left=Dn,Wn.right=rr),Aa?(Wn.bottom=Zn,Wn.top=rr):(Wn.top=Nn,Wn.bottom=rr)}var aa={};return tr&&(tr.includes("height")&&Ir?aa.height=Ir:tr.includes("minHeight")&&Ir&&(aa.minHeight=Ir),tr.includes("width")&&Xn?aa.width=Xn:tr.includes("minWidth")&&Xn&&(aa.minWidth=Xn)),Ye||(aa.pointerEvents="none"),u.createElement(In,{open:zt||$r,getContainer:Zt&&function(){return Zt(Se)},autoDestroy:Pt},u.createElement(jr,{prefixCls:ae,open:Ye,zIndex:wn,mask:Ft,motion:dn}),u.createElement(An.Z,{onResize:fr,disabled:!Ye},function(Ca){return u.createElement(cr.ZP,(0,k.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:zt,leavedClassName:"".concat(ae,"-hidden")},Jt,{onAppearPrepare:Un,onEnterPrepare:Un,visible:Ye,onVisibleChanged:function(Ta){var pr;Jt==null||(pr=Jt.onVisibleChanged)===null||pr===void 0||pr.call(Jt,Ta),je(Ta)}}),function(la,Ta){var pr=la.className,vr=la.style,Ra=d()(ae,pr,le);return u.createElement("div",{ref:(0,Xe.sQ)(Ca,F,Ta),className:Ra,style:(0,Z.Z)((0,Z.Z)((0,Z.Z)((0,Z.Z)({"--arrow-x":"".concat(Lt.x||0,"px"),"--arrow-y":"".concat(Lt.y||0,"px")},Wn),aa),vr),{},{boxSizing:"border-box",zIndex:wn},xe),onMouseEnter:$n,onMouseLeave:hn,onPointerEnter:fn,onClick:ht},Wt&&u.createElement(Vr,{prefixCls:ae,arrow:Wt,arrowPos:Lt,align:un}),u.createElement(Sa,{cache:!Ye&&!Rt},qn))})}))}),Da=Na,Fr=u.forwardRef(function(S,F){var U=S.children,le=S.getTriggerDOMNode,ae=(0,Xe.Yr)(U),xe=u.useCallback(function(je){(0,Xe.mH)(F,le?le(je):je)},[le]),Se=(0,Xe.x1)(xe,U.ref);return ae?u.cloneElement(U,{ref:Se}):U}),pa=Fr,hr=u.createContext(null),sa=hr;function Ma(S){return S?Array.isArray(S)?S:[S]:[]}function Or(S,F,U,le){return u.useMemo(function(){var ae=Ma(U!=null?U:F),xe=Ma(le!=null?le:F),Se=new Set(ae),je=new Set(xe);return S&&(Se.has("hover")&&(Se.delete("hover"),Se.add("click")),je.has("hover")&&(je.delete("hover"),je.add("click"))),[Se,je]},[S,F,U,le])}var Ga=function(S){if(!S)return!1;if(S instanceof Element){if(S.offsetParent)return!0;if(S.getBBox){var F=S.getBBox(),U=F.width,le=F.height;if(U||le)return!0}if(S.getBoundingClientRect){var ae=S.getBoundingClientRect(),xe=ae.width,Se=ae.height;if(xe||Se)return!0}}return!1};function Pi(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],U=arguments.length>2?arguments[2]:void 0;return U?S[0]===F[0]:S[0]===F[0]&&S[1]===F[1]}function xo(S,F,U,le){for(var ae=U.points,xe=Object.keys(S),Se=0;Se1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(S)?F:S}function oo(S){return po(parseFloat(S),0)}function io(S,F){var U=(0,Z.Z)({},S);return(F||[]).forEach(function(le){if(!(le instanceof HTMLBodyElement||le instanceof HTMLHtmlElement)){var ae=Ao(le).getComputedStyle(le),xe=ae.overflow,Se=ae.overflowClipMargin,je=ae.borderTopWidth,Ye=ae.borderBottomWidth,pt=ae.borderLeftWidth,Rt=ae.borderRightWidth,ht=le.getBoundingClientRect(),Ft=le.offsetHeight,Wt=le.clientHeight,Lt=le.offsetWidth,un=le.clientWidth,Jt=oo(je),dn=oo(Ye),zt=oo(pt),Zt=oo(Rt),Pt=po(Math.round(ht.width/Lt*1e3)/1e3),In=po(Math.round(ht.height/Ft*1e3)/1e3),wn=(Lt-un-zt-Zt)*Pt,$n=(Ft-Wt-Jt-dn)*In,hn=Jt*In,fn=dn*In,rn=zt*Pt,Dn=Zt*Pt,Nn=0,En=0;if(xe==="clip"){var Zn=oo(Se);Nn=Zn*Pt,En=Zn*In}var fr=ht.x+rn-Nn,Un=ht.y+hn-En,tr=fr+ht.width+2*Nn-rn-Dn-wn,Xn=Un+ht.height+2*En-hn-fn-$n;U.left=Math.max(U.left,fr),U.top=Math.max(U.top,Un),U.right=Math.min(U.right,tr),U.bottom=Math.min(U.bottom,Xn)}}),U}function vo(S){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,U="".concat(F),le=U.match(/^(.*)\%$/);return le?S*(parseFloat(le[1])/100):parseFloat(U)}function To(S,F){var U=F||[],le=(0,ge.Z)(U,2),ae=le[0],xe=le[1];return[vo(S.width,ae),vo(S.height,xe)]}function uo(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[S[0],S[1]]}function Oo(S,F){var U=F[0],le=F[1],ae,xe;return U==="t"?xe=S.y:U==="b"?xe=S.y+S.height:xe=S.y+S.height/2,le==="l"?ae=S.x:le==="r"?ae=S.x+S.width:ae=S.x+S.width/2,{x:ae,y:xe}}function qa(S,F){var U={t:"b",b:"t",l:"r",r:"l"};return S.map(function(le,ae){return ae===F?U[le]||"c":le}).join("")}function ss(S,F,U,le,ae,xe,Se){var je=u.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:ae[le]||{}}),Ye=(0,ge.Z)(je,2),pt=Ye[0],Rt=Ye[1],ht=u.useRef(0),Ft=u.useMemo(function(){return F?Co(F):[]},[F]),Wt=u.useRef({}),Lt=function(){Wt.current={}};S||Lt();var un=(0,Fn.Z)(function(){if(F&&U&&S){let ye=function(me,be){var Ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ra,Ce=qn.x+me,Ze=qn.y+be,Oe=Ce+Lr,rt=Ze+Wn,Nt=Math.max(Ce,Ae.left),Yt=Math.max(Ze,Ae.top),_n=Math.min(Oe,Ae.right),Wr=Math.min(rt,Ae.bottom);return Math.max(0,(_n-Nt)*(Wr-Yt))},pe=function(){da=qn.y+ur,La=da+Wn,ho=qn.x+Zr,Ur=ho+Lr};var zt,Zt,Pt=F,In=Pt.ownerDocument,wn=Ao(Pt),$n=wn.getComputedStyle(Pt),hn=$n.width,fn=$n.height,rn=$n.position,Dn=Pt.style.left,Nn=Pt.style.top,En=Pt.style.right,Zn=Pt.style.bottom,fr=Pt.style.overflow,Un=(0,Z.Z)((0,Z.Z)({},ae[le]),xe),tr=In.createElement("div");(zt=Pt.parentElement)===null||zt===void 0||zt.appendChild(tr),tr.style.left="".concat(Pt.offsetLeft,"px"),tr.style.top="".concat(Pt.offsetTop,"px"),tr.style.position=rn,tr.style.height="".concat(Pt.offsetHeight,"px"),tr.style.width="".concat(Pt.offsetWidth,"px"),Pt.style.left="0",Pt.style.top="0",Pt.style.right="auto",Pt.style.bottom="auto",Pt.style.overflow="hidden";var Xn;if(Array.isArray(U))Xn={x:U[0],y:U[1],width:0,height:0};else{var Ir=U.getBoundingClientRect();Xn={x:Ir.x,y:Ir.y,width:Ir.width,height:Ir.height}}var qn=Pt.getBoundingClientRect(),$r=In.documentElement,Jn=$r.clientWidth,ir=$r.clientHeight,xr=$r.scrollWidth,Sr=$r.scrollHeight,br=$r.scrollTop,rr=$r.scrollLeft,Wn=qn.height,Lr=qn.width,ra=Xn.height,yr=Xn.width,Hr={left:0,top:0,right:Jn,bottom:ir},Aa={left:-rr,top:-br,right:xr-rr,bottom:Sr-br},aa=Un.htmlRegion,Ca="visible",la="visibleFirst";aa!=="scroll"&&aa!==la&&(aa=Ca);var Ta=aa===la,pr=io(Aa,Ft),vr=io(Hr,Ft),Ra=aa===Ca?vr:pr,Ba=Ta?vr:Ra;Pt.style.left="auto",Pt.style.top="auto",Pt.style.right="0",Pt.style.bottom="0";var lo=Pt.getBoundingClientRect();Pt.style.left=Dn,Pt.style.top=Nn,Pt.style.right=En,Pt.style.bottom=Zn,Pt.style.overflow=fr,(Zt=Pt.parentElement)===null||Zt===void 0||Zt.removeChild(tr);var oa=po(Math.round(Lr/parseFloat(hn)*1e3)/1e3),Oa=po(Math.round(Wn/parseFloat(fn)*1e3)/1e3);if(oa===0||Oa===0||(0,ar.S)(U)&&!Ga(U))return;var Ha=Un.offset,Qr=Un.targetOffset,Ro=To(qn,Ha),qr=(0,ge.Z)(Ro,2),ia=qr[0],Nr=qr[1],Ar=To(Xn,Qr),Za=(0,ge.Z)(Ar,2),Xr=Za[0],Ya=Za[1];Xn.x-=Xr,Xn.y-=Ya;var $a=Un.points||[],Mr=(0,ge.Z)($a,2),ca=Mr[0],So=Mr[1],_r=uo(So),ba=uo(ca),co=Oo(Xn,_r),Lo=Oo(qn,ba),Ua=(0,Z.Z)({},Un),Zr=co.x-Lo.x+ia,ur=co.y-Lo.y+Nr,Er=ye(Zr,ur),Sn=ye(Zr,ur,vr),Mn=Oo(Xn,["t","l"]),Kr=Oo(qn,["t","l"]),Pa=Oo(Xn,["b","r"]),Wa=Oo(qn,["b","r"]),Qa=Un.overflow||{},za=Qa.adjustX,Si=Qa.adjustY,No=Qa.shiftX,ro=Qa.shiftY,Xa=function(be){return typeof be=="boolean"?be:be>=0},da,La,ho,Ur;pe();var gr=Xa(Si),ea=ba[0]===_r[0];if(gr&&ba[0]==="t"&&(La>Ba.bottom||Wt.current.bt)){var ka=ur;ea?ka-=Wn-ra:ka=Mn.y-Wa.y-Nr;var Ja=ye(Zr,ka),_o=ye(Zr,ka,vr);Ja>Er||Ja===Er&&(!Ta||_o>=Sn)?(Wt.current.bt=!0,ur=ka,Nr=-Nr,Ua.points=[qa(ba,0),qa(_r,0)]):Wt.current.bt=!1}if(gr&&ba[0]==="b"&&(daEr||_i===Er&&(!Ta||ru>=Sn)?(Wt.current.tb=!0,ur=Ea,Nr=-Nr,Ua.points=[qa(ba,0),qa(_r,0)]):Wt.current.tb=!1}var yo=Xa(za),Uo=ba[1]===_r[1];if(yo&&ba[1]==="l"&&(Ur>Ba.right||Wt.current.rl)){var go=Zr;Uo?go-=Lr-yr:go=Mn.x-Wa.x-ia;var ci=ye(go,ur),au=ye(go,ur,vr);ci>Er||ci===Er&&(!Ta||au>=Sn)?(Wt.current.rl=!0,Zr=go,ia=-ia,Ua.points=[qa(ba,1),qa(_r,1)]):Wt.current.rl=!1}if(yo&&ba[1]==="r"&&(hoEr||ou===Er&&(!Ta||Xo>=Sn)?(Wt.current.lr=!0,Zr=di,ia=-ia,Ua.points=[qa(ba,1),qa(_r,1)]):Wt.current.lr=!1}pe();var Jo=No===!0?0:No;typeof Jo=="number"&&(hovr.right&&(Zr-=Ur-vr.right-ia,Xn.x>vr.right-Jo&&(Zr+=Xn.x-vr.right+Jo)));var wi=ro===!0?0:ro;typeof wi=="number"&&(davr.bottom&&(ur-=La-vr.bottom-Nr,Xn.y>vr.bottom-wi&&(ur+=Xn.y-vr.bottom+wi)));var Ai=qn.x+Zr,Ci=Ai+Lr,qo=qn.y+ur,Au=qo+Wn,Hi=Xn.x,fi=Hi+yr,Cu=Xn.y,ma=Cu+ra,Be=Math.max(Ai,Hi),W=Math.min(Ci,fi),te=(Be+W)/2,ne=te-Ai,se=Math.max(qo,Cu),ie=Math.min(Au,ma),J=(se+ie)/2,ve=J-qo;Se==null||Se(F,Ua);var ue=lo.right-qn.x-(Zr+qn.width),ce=lo.bottom-qn.y-(ur+qn.height);Rt({ready:!0,offsetX:Zr/oa,offsetY:ur/Oa,offsetR:ue/oa,offsetB:ce/Oa,arrowX:ne/oa,arrowY:ve/Oa,scaleX:oa,scaleY:Oa,align:Ua})}}),Jt=function(){ht.current+=1;var Zt=ht.current;Promise.resolve().then(function(){ht.current===Zt&&un()})},dn=function(){Rt(function(Zt){return(0,Z.Z)((0,Z.Z)({},Zt),{},{ready:!1})})};return(0,de.Z)(dn,[le]),(0,de.Z)(function(){S||dn()},[S]),[pt.ready,pt.offsetX,pt.offsetY,pt.offsetR,pt.offsetB,pt.arrowX,pt.arrowY,pt.scaleX,pt.scaleY,pt.align,Jt]}function Wu(S,F,U,le,ae){(0,de.Z)(function(){if(S&&F&&U){let ht=function(){le(),ae()};var xe=F,Se=U,je=Co(xe),Ye=Co(Se),pt=Ao(Se),Rt=new Set([pt].concat((0,Rn.Z)(je),(0,Rn.Z)(Ye)));return Rt.forEach(function(Ft){Ft.addEventListener("scroll",ht,{passive:!0})}),pt.addEventListener("resize",ht,{passive:!0}),le(),function(){Rt.forEach(function(Ft){Ft.removeEventListener("scroll",ht),pt.removeEventListener("resize",ht)})}}},[S,F,U])}function Wo(S,F,U,le,ae,xe,Se,je){var Ye=u.useRef(S),pt=u.useRef(!1);Ye.current!==S&&(pt.current=!0,Ye.current=S),u.useEffect(function(){var Rt=(0,xt.Z)(function(){pt.current=!1});return function(){xt.Z.cancel(Rt)}},[S]),u.useEffect(function(){if(F&&le&&(!ae||xe)){var Rt=function(){var rn=!1,Dn=function(Zn){var fr=Zn.target;rn=Se(fr)},Nn=function(Zn){var fr=Zn.target;!pt.current&&Ye.current&&!rn&&!Se(fr)&&je(!1)};return[Dn,Nn]},ht=Rt(),Ft=(0,ge.Z)(ht,2),Wt=Ft[0],Lt=Ft[1],un=Rt(),Jt=(0,ge.Z)(un,2),dn=Jt[0],zt=Jt[1],Zt=Ao(le);Zt.addEventListener("mousedown",Wt,!0),Zt.addEventListener("click",Lt,!0),Zt.addEventListener("contextmenu",Lt,!0);var Pt=It(U);if(Pt&&(Pt.addEventListener("mousedown",dn,!0),Pt.addEventListener("click",zt,!0),Pt.addEventListener("contextmenu",zt,!0)),!1)var In,wn,$n,hn;return function(){Zt.removeEventListener("mousedown",Wt,!0),Zt.removeEventListener("click",Lt,!0),Zt.removeEventListener("contextmenu",Lt,!0),Pt&&(Pt.removeEventListener("mousedown",dn,!0),Pt.removeEventListener("click",zt,!0),Pt.removeEventListener("contextmenu",zt,!0))}}},[F,U,le,ae,xe])}var ls=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function ku(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:pn,F=u.forwardRef(function(U,le){var ae=U.prefixCls,xe=ae===void 0?"rc-trigger-popup":ae,Se=U.children,je=U.action,Ye=je===void 0?"hover":je,pt=U.showAction,Rt=U.hideAction,ht=U.popupVisible,Ft=U.defaultPopupVisible,Wt=U.onPopupVisibleChange,Lt=U.afterPopupVisibleChange,un=U.mouseEnterDelay,Jt=U.mouseLeaveDelay,dn=Jt===void 0?.1:Jt,zt=U.focusDelay,Zt=U.blurDelay,Pt=U.mask,In=U.maskClosable,wn=In===void 0?!0:In,$n=U.getPopupContainer,hn=U.forceRender,fn=U.autoDestroy,rn=U.destroyPopupOnHide,Dn=U.popup,Nn=U.popupClassName,En=U.popupStyle,Zn=U.popupPlacement,fr=U.builtinPlacements,Un=fr===void 0?{}:fr,tr=U.popupAlign,Xn=U.zIndex,Ir=U.stretch,qn=U.getPopupClassNameFromAlign,$r=U.fresh,Jn=U.alignPoint,ir=U.onPopupClick,xr=U.onPopupAlign,Sr=U.arrow,br=U.popupMotion,rr=U.maskMotion,Wn=U.popupTransitionName,Lr=U.popupAnimation,ra=U.maskTransitionName,yr=U.maskAnimation,Hr=U.className,Aa=U.getTriggerDOMNode,aa=(0,Le.Z)(U,ls),Ca=fn||rn||!1,la=u.useState(!1),Ta=(0,ge.Z)(la,2),pr=Ta[0],vr=Ta[1];(0,de.Z)(function(){vr(an())},[]);var Ra=u.useRef({}),Ba=u.useContext(sa),lo=u.useMemo(function(){return{registerSubPopup:function(zn,ha){Ra.current[zn]=ha,Ba==null||Ba.registerSubPopup(zn,ha)}}},[Ba]),oa=or(),Oa=u.useState(null),Ha=(0,ge.Z)(Oa,2),Qr=Ha[0],Ro=Ha[1],qr=(0,Fn.Z)(function(yn){(0,ar.S)(yn)&&Qr!==yn&&Ro(yn),Ba==null||Ba.registerSubPopup(oa,yn)}),ia=u.useState(null),Nr=(0,ge.Z)(ia,2),Ar=Nr[0],Za=Nr[1],Xr=u.useRef(null),Ya=(0,Fn.Z)(function(yn){(0,ar.S)(yn)&&Ar!==yn&&(Za(yn),Xr.current=yn)}),$a=u.Children.only(Se),Mr=($a==null?void 0:$a.props)||{},ca={},So=(0,Fn.Z)(function(yn){var zn,ha,fa=Ar;return(fa==null?void 0:fa.contains(yn))||((zn=It(fa))===null||zn===void 0?void 0:zn.host)===yn||yn===fa||(Qr==null?void 0:Qr.contains(yn))||((ha=It(Qr))===null||ha===void 0?void 0:ha.host)===yn||yn===Qr||Object.values(Ra.current).some(function(Ka){return(Ka==null?void 0:Ka.contains(yn))||yn===Ka})}),_r=Zo(xe,br,Lr,Wn),ba=Zo(xe,rr,yr,ra),co=u.useState(Ft||!1),Lo=(0,ge.Z)(co,2),Ua=Lo[0],Zr=Lo[1],ur=ht!=null?ht:Ua,Er=(0,Fn.Z)(function(yn){ht===void 0&&Zr(yn)});(0,de.Z)(function(){Zr(ht||!1)},[ht]);var Sn=u.useRef(ur);Sn.current=ur;var Mn=u.useRef([]);Mn.current=[];var Kr=(0,Fn.Z)(function(yn){var zn;Er(yn),((zn=Mn.current[Mn.current.length-1])!==null&&zn!==void 0?zn:ur)!==yn&&(Mn.current.push(yn),Wt==null||Wt(yn))}),Pa=u.useRef(),Wa=function(){clearTimeout(Pa.current)},Qa=function(zn){var ha=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Wa(),ha===0?Kr(zn):Pa.current=setTimeout(function(){Kr(zn)},ha*1e3)};u.useEffect(function(){return Wa},[]);var za=u.useState(!1),Si=(0,ge.Z)(za,2),No=Si[0],ro=Si[1];(0,de.Z)(function(yn){(!yn||ur)&&ro(!0)},[ur]);var Xa=u.useState(null),da=(0,ge.Z)(Xa,2),La=da[0],ho=da[1],Ur=u.useState([0,0]),gr=(0,ge.Z)(Ur,2),ea=gr[0],ka=gr[1],Ja=function(zn){ka([zn.clientX,zn.clientY])},_o=ss(ur,Qr,Jn?ea:Ar,Zn,Un,tr,xr),Ea=(0,ge.Z)(_o,11),_i=Ea[0],ru=Ea[1],yo=Ea[2],Uo=Ea[3],go=Ea[4],ci=Ea[5],au=Ea[6],di=Ea[7],ou=Ea[8],Xo=Ea[9],Jo=Ea[10],wi=Or(pr,Ye,pt,Rt),Ai=(0,ge.Z)(wi,2),Ci=Ai[0],qo=Ai[1],Au=Ci.has("click"),Hi=qo.has("click")||qo.has("contextMenu"),fi=(0,Fn.Z)(function(){No||Jo()}),Cu=function(){Sn.current&&Jn&&Hi&&Qa(!1)};Wu(ur,Ar,Qr,fi,Cu),(0,de.Z)(function(){fi()},[ea,Zn]),(0,de.Z)(function(){ur&&!(Un!=null&&Un[Zn])&&fi()},[JSON.stringify(tr)]);var ma=u.useMemo(function(){var yn=xo(Un,xe,Xo,Jn);return d()(yn,qn==null?void 0:qn(Xo))},[Xo,qn,Un,xe,Jn]);u.useImperativeHandle(le,function(){return{nativeElement:Xr.current,forceAlign:fi}});var Be=u.useState(0),W=(0,ge.Z)(Be,2),te=W[0],ne=W[1],se=u.useState(0),ie=(0,ge.Z)(se,2),J=ie[0],ve=ie[1],ue=function(){if(Ir&&Ar){var zn=Ar.getBoundingClientRect();ne(zn.width),ve(zn.height)}},ce=function(){ue(),fi()},ye=function(zn){ro(!1),Jo(),Lt==null||Lt(zn)},pe=function(){return new Promise(function(zn){ue(),ho(function(){return zn})})};(0,de.Z)(function(){La&&(Jo(),La(),ho(null))},[La]);function me(yn,zn,ha,fa){ca[yn]=function(Ka){var zs;fa==null||fa(Ka),Qa(zn,ha);for(var Hs=arguments.length,al=new Array(Hs>1?Hs-1:0),Zs=1;Zs1?ha-1:0),Ka=1;Ka1?ha-1:0),Ka=1;KaLt,ia=(0,u.useMemo)(function(){var Sn=xe;return Qr?Dn===null&&$n?Sn=xe:Sn=xe.slice(0,Math.min(xe.length,En/Rt)):typeof Lt=="number"&&(Sn=xe.slice(0,Lt)),Sn},[xe,Rt,Dn,Lt,Qr]),Nr=(0,u.useMemo)(function(){return Qr?xe.slice(pr+1):xe.slice(ia.length)},[xe,ia,Qr,pr]),Ar=(0,u.useCallback)(function(Sn,Mn){var Kr;return typeof Ye=="function"?Ye(Sn):(Kr=Ye&&(Sn==null?void 0:Sn[Ye]))!==null&&Kr!==void 0?Kr:Mn},[Ye]),Za=(0,u.useCallback)(Se||function(Sn){return Sn},[Se]);function Xr(Sn,Mn,Kr){la===Sn&&(Mn===void 0||Mn===Hr)||(Ta(Sn),Kr||(lo(SnEn){Xr(Pa-1,Sn-Wa-Wn+xr);break}}dn&&So(0)+Wn>En&&Aa(null)}},[En,Un,xr,Wn,Ar,ia]);var _r=Ba&&!!Nr.length,ba={};Hr!==null&&Qr&&(ba={position:"absolute",left:Hr,top:0});var co={prefixCls:oa,responsive:Qr,component:Pt,invalidate:Ro},Lo=je?function(Sn,Mn){var Kr=Ar(Sn,Mn);return u.createElement(so.Provider,{key:Kr,value:(0,Z.Z)((0,Z.Z)({},co),{},{order:Mn,item:Sn,itemKey:Kr,registerSize:$a,display:Mn<=pr})},je(Sn,Mn))}:function(Sn,Mn){var Kr=Ar(Sn,Mn);return u.createElement(Ki,(0,k.Z)({},co,{order:Mn,key:Kr,item:Sn,renderItem:Za,itemKey:Kr,registerSize:$a,display:Mn<=pr}))},Ua,Zr={order:_r?pr:Number.MAX_SAFE_INTEGER,className:"".concat(oa,"-rest"),registerSize:Mr,display:_r};if(Jt)Jt&&(Ua=u.createElement(so.Provider,{value:(0,Z.Z)((0,Z.Z)({},co),Zr)},Jt(Nr)));else{var ur=un||Lu;Ua=u.createElement(Ki,(0,k.Z)({},co,Zr),typeof ur=="function"?ur(Nr):ur)}var Er=u.createElement(Zt,(0,k.Z)({className:d()(!Ro&&le,Wt),style:Ft,ref:F},wn),ia.map(Lo),qr?Ua:null,dn&&u.createElement(Ki,(0,k.Z)({},co,{responsive:Ha,responsiveDisabled:!Qr,order:pr,className:"".concat(oa,"-suffix"),registerSize:ca,display:!0,style:ba}),dn));return Ha&&(Er=u.createElement(An.Z,{onResize:Ya,disabled:!Qr},Er)),Er}var Li=u.forwardRef(Qi);Li.displayName="Overflow",Li.Item=Ru,Li.RESPONSIVE=Gu,Li.INVALIDATE=Yi;var Vu=Li,Ni=Vu;function ps(S,F){var U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,le=new Set;function ae(xe,Se){var je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Ye=le.has(xe);if((0,Mt.ZP)(!Ye,"Warning: There may be circular references"),Ye)return!1;if(xe===Se)return!0;if(U&&je>1)return!1;le.add(xe);var pt=je+1;if(Array.isArray(xe)){if(!Array.isArray(Se)||xe.length!==Se.length)return!1;for(var Rt=0;Rt1&&arguments[1]!==void 0?arguments[1]:!1;if(Ga(S)){var U=S.nodeName.toLowerCase(),le=["input","select","textarea","button"].includes(U)||S.isContentEditable||U==="a"&&!!S.getAttribute("href"),ae=S.getAttribute("tabindex"),xe=Number(ae),Se=null;return ae&&!Number.isNaN(xe)?Se=xe:le&&Se===null&&(Se=0),le&&S.disabled&&(Se=null),Se!==null&&(Se>=0||F&&Se<0)}return!1}function Bt(S){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,U=(0,Rn.Z)(S.querySelectorAll("*")).filter(function(le){return Ot(le,F)});return Ot(S,F)&&U.unshift(S),U}var xn=null;function Yn(){xn=document.activeElement}function kn(){xn=null}function On(){if(xn)try{xn.focus()}catch(S){}}function er(S,F){if(F.keyCode===9){var U=Bt(S),le=U[F.shiftKey?0:U.length-1],ae=le===document.activeElement||S===document.activeElement;if(ae){var xe=U[F.shiftKey?U.length-1:0];xe.focus(),F.preventDefault()}}}var Dr=ga.Z.LEFT,Pr=ga.Z.RIGHT,Br=ga.Z.UP,_a=ga.Z.DOWN,Ia=ga.Z.ENTER,to=ga.Z.ESC,ko=ga.Z.HOME,Va=ga.Z.END,bo=[Br,_a,Dr,Pr];function oi(S,F,U,le){var ae,xe,Se,je,Ye="prev",pt="next",Rt="children",ht="parent";if(S==="inline"&&le===Ia)return{inlineTrigger:!0};var Ft=(ae={},(0,$.Z)(ae,Br,Ye),(0,$.Z)(ae,_a,pt),ae),Wt=(xe={},(0,$.Z)(xe,Dr,U?pt:Ye),(0,$.Z)(xe,Pr,U?Ye:pt),(0,$.Z)(xe,_a,Rt),(0,$.Z)(xe,Ia,Rt),xe),Lt=(Se={},(0,$.Z)(Se,Br,Ye),(0,$.Z)(Se,_a,pt),(0,$.Z)(Se,Ia,Rt),(0,$.Z)(Se,to,ht),(0,$.Z)(Se,Dr,U?Rt:ht),(0,$.Z)(Se,Pr,U?ht:Rt),Se),un={inline:Ft,horizontal:Wt,vertical:Lt,inlineSub:Ft,horizontalSub:Lt,verticalSub:Lt},Jt=(je=un["".concat(S).concat(F?"":"Sub")])===null||je===void 0?void 0:je[le];switch(Jt){case Ye:return{offset:-1,sibling:!0};case pt:return{offset:1,sibling:!0};case ht:return{offset:-1,sibling:!1};case Rt:return{offset:1,sibling:!1};default:return null}}function Ii(S){for(var F=S;F;){if(F.getAttribute("data-menu-list"))return F;F=F.parentElement}return null}function ji(S,F){for(var U=S||document.activeElement;U;){if(F.has(U))return U;U=U.parentElement}return null}function xi(S,F){var U=Bt(S,!0);return U.filter(function(le){return F.has(le)})}function Ko(S,F,U){var le=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!S)return null;var ae=xi(S,F),xe=ae.length,Se=ae.findIndex(function(je){return U===je});return le<0?Se===-1?Se=xe-1:Se-=1:le>0&&(Se+=1),Se=(Se+xe)%xe,ae[Se]}var ii=function(F,U){var le=new Set,ae=new Map,xe=new Map;return F.forEach(function(Se){var je=document.querySelector("[data-menu-id='".concat(Yu(U,Se),"']"));je&&(le.add(je),xe.set(je,Se),ae.set(Se,je))}),{elements:le,key2element:ae,element2key:xe}};function Go(S,F,U,le,ae,xe,Se,je,Ye,pt){var Rt=u.useRef(),ht=u.useRef();ht.current=F;var Ft=function(){xt.Z.cancel(Rt.current)};return u.useEffect(function(){return function(){Ft()}},[]),function(Wt){var Lt=Wt.which;if([].concat(bo,[Ia,to,ko,Va]).includes(Lt)){var un=xe(),Jt=ii(un,le),dn=Jt,zt=dn.elements,Zt=dn.key2element,Pt=dn.element2key,In=Zt.get(F),wn=ji(In,zt),$n=Pt.get(wn),hn=oi(S,Se($n,!0).length===1,U,Lt);if(!hn&&Lt!==ko&&Lt!==Va)return;(bo.includes(Lt)||[ko,Va].includes(Lt))&&Wt.preventDefault();var fn=function(tr){if(tr){var Xn=tr,Ir=tr.querySelector("a");Ir!=null&&Ir.getAttribute("href")&&(Xn=Ir);var qn=Pt.get(tr);je(qn),Ft(),Rt.current=(0,xt.Z)(function(){ht.current===qn&&Xn.focus()})}};if([ko,Va].includes(Lt)||hn.sibling||!wn){var rn;!wn||S==="inline"?rn=ae.current:rn=Ii(wn);var Dn,Nn=xi(rn,zt);Lt===ko?Dn=Nn[0]:Lt===Va?Dn=Nn[Nn.length-1]:Dn=Ko(rn,zt,wn,hn.offset),fn(Dn)}else if(hn.inlineTrigger)Ye($n);else if(hn.offset>0)Ye($n,!0),Ft(),Rt.current=(0,xt.Z)(function(){Jt=ii(un,le);var Un=wn.getAttribute("aria-controls"),tr=document.getElementById(Un),Xn=Ko(tr,Jt.elements);fn(Xn)},5);else if(hn.offset<0){var En=Se($n,!0),Zn=En[En.length-2],fr=Zt.get(Zn);Ye(Zn,!1),fn(fr)}}pt==null||pt(Wt)}}function Fi(S){Promise.resolve().then(S)}var Fu="__RC_UTIL_PATH_SPLIT__",vs=function(F){return F.join(Fu)},Ds=function(F){return F.split(Fu)},Ji="rc-menu-more";function Ms(){var S=u.useState({}),F=(0,ge.Z)(S,2),U=F[1],le=(0,u.useRef)(new Map),ae=(0,u.useRef)(new Map),xe=u.useState([]),Se=(0,ge.Z)(xe,2),je=Se[0],Ye=Se[1],pt=(0,u.useRef)(0),Rt=(0,u.useRef)(!1),ht=function(){Rt.current||U({})},Ft=(0,u.useCallback)(function(Zt,Pt){var In=vs(Pt);ae.current.set(In,Zt),le.current.set(Zt,In),pt.current+=1;var wn=pt.current;Fi(function(){wn===pt.current&&ht()})},[]),Wt=(0,u.useCallback)(function(Zt,Pt){var In=vs(Pt);ae.current.delete(In),le.current.delete(Zt)},[]),Lt=(0,u.useCallback)(function(Zt){Ye(Zt)},[]),un=(0,u.useCallback)(function(Zt,Pt){var In=le.current.get(Zt)||"",wn=Ds(In);return Pt&&je.includes(wn[0])&&wn.unshift(Ji),wn},[je]),Jt=(0,u.useCallback)(function(Zt,Pt){return Zt.some(function(In){var wn=un(In,!0);return wn.includes(Pt)})},[un]),dn=function(){var Pt=(0,Rn.Z)(le.current.keys());return je.length&&Pt.push(Ji),Pt},zt=(0,u.useCallback)(function(Zt){var Pt="".concat(le.current.get(Zt)).concat(Fu),In=new Set;return(0,Rn.Z)(ae.current.keys()).forEach(function(wn){wn.startsWith(Pt)&&In.add(ae.current.get(wn))}),In},[]);return u.useEffect(function(){return function(){Rt.current=!0}},[]),{registerPath:Ft,unregisterPath:Wt,refreshOverflowKeys:Lt,isSubPathKey:Jt,getKeyPath:un,getKeys:dn,getSubPathKeys:zt}}function mu(S){var F=u.useRef(S);F.current=S;var U=u.useCallback(function(){for(var le,ae=arguments.length,xe=new Array(ae),Se=0;Se1&&(zt.motionAppear=!1);var Zt=zt.onVisibleChanged;return zt.onVisibleChanged=function(Pt){return!Ft.current&&!Pt&&Jt(!0),Zt==null?void 0:Zt(Pt)},un?null:u.createElement(gi,{mode:xe,locked:!Ft.current},u.createElement(cr.ZP,(0,k.Z)({visible:dn},zt,{forceRender:Ye,removeOnLeave:!1,leavedClassName:"".concat(je,"-hidden")}),function(Pt){var In=Pt.className,wn=Pt.style;return u.createElement(es,{id:F,className:In,style:wn},ae)}))}var Rr=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],si=["active"],$o=function(F){var U,le=F.style,ae=F.className,xe=F.title,Se=F.eventKey,je=F.warnKey,Ye=F.disabled,pt=F.internalPopupClose,Rt=F.children,ht=F.itemIcon,Ft=F.expandIcon,Wt=F.popupClassName,Lt=F.popupOffset,un=F.popupStyle,Jt=F.onClick,dn=F.onMouseEnter,zt=F.onMouseLeave,Zt=F.onTitleClick,Pt=F.onTitleMouseEnter,In=F.onTitleMouseLeave,wn=(0,Le.Z)(F,Rr),$n=Qu(Se),hn=u.useContext(Po),fn=hn.prefixCls,rn=hn.mode,Dn=hn.openKeys,Nn=hn.disabled,En=hn.overflowDisabled,Zn=hn.activeKey,fr=hn.selectedKeys,Un=hn.itemIcon,tr=hn.expandIcon,Xn=hn.onItemClick,Ir=hn.onOpenChange,qn=hn.onActive,$r=u.useContext(Tt),Jn=$r._internalRenderSubMenuItem,ir=u.useContext(dt),xr=ir.isSubPathKey,Sr=ee(),br="".concat(fn,"-submenu"),rr=Nn||Ye,Wn=u.useRef(),Lr=u.useRef(),ra=ht!=null?ht:Un,yr=Ft!=null?Ft:tr,Hr=Dn.includes(Se),Aa=!En&&Hr,aa=xr(fr,Se),Ca=ja(Se,rr,Pt,In),la=Ca.active,Ta=(0,Le.Z)(Ca,si),pr=u.useState(!1),vr=(0,ge.Z)(pr,2),Ra=vr[0],Ba=vr[1],lo=function(ca){rr||Ba(ca)},oa=function(ca){lo(!0),dn==null||dn({key:Se,domEvent:ca})},Oa=function(ca){lo(!1),zt==null||zt({key:Se,domEvent:ca})},Ha=u.useMemo(function(){return la||(rn!=="inline"?Ra||xr([Zn],Se):!1)},[rn,la,Zn,Ra,Se,xr]),Qr=Fa(Sr.length),Ro=function(ca){rr||(Zt==null||Zt({key:Se,domEvent:ca}),rn==="inline"&&Ir(Se,!Hr))},qr=mu(function(Mr){Jt==null||Jt(Eo(Mr)),Xn(Mr)}),ia=function(ca){rn!=="inline"&&Ir(Se,ca)},Nr=function(){qn(Se)},Ar=$n&&"".concat($n,"-popup"),Za=u.createElement("div",(0,k.Z)({role:"menuitem",style:Qr,className:"".concat(br,"-title"),tabIndex:rr?null:-1,ref:Wn,title:typeof xe=="string"?xe:null,"data-menu-id":En&&$n?null:$n,"aria-expanded":Aa,"aria-haspopup":!0,"aria-controls":Ar,"aria-disabled":rr,onClick:Ro,onFocus:Nr},Ta),xe,u.createElement(ui,{icon:rn!=="horizontal"?yr:void 0,props:(0,Z.Z)((0,Z.Z)({},F),{},{isOpen:Aa,isSubMenu:!0})},u.createElement("i",{className:"".concat(br,"-arrow")}))),Xr=u.useRef(rn);if(rn!=="inline"&&Sr.length>1?Xr.current="vertical":Xr.current=rn,!En){var Ya=Xr.current;Za=u.createElement(Is,{mode:Ya,prefixCls:br,visible:!pt&&Aa&&rn!=="inline",popupClassName:Wt,popupOffset:Lt,popupStyle:un,popup:u.createElement(gi,{mode:Ya==="horizontal"?"vertical":Ya},u.createElement(es,{id:Ar,ref:Lr},Rt)),disabled:rr,onVisibleChange:ia},Za)}var $a=u.createElement(Ni.Item,(0,k.Z)({role:"none"},wn,{component:"li",style:le,className:d()(br,"".concat(br,"-").concat(rn),ae,(U={},(0,$.Z)(U,"".concat(br,"-open"),Aa),(0,$.Z)(U,"".concat(br,"-active"),Ha),(0,$.Z)(U,"".concat(br,"-selected"),aa),(0,$.Z)(U,"".concat(br,"-disabled"),rr),U)),onMouseEnter:oa,onMouseLeave:Oa}),Za,!En&&u.createElement(ns,{id:Ar,open:Aa,keyPath:Sr},Rt));return Jn&&($a=Jn($a,F,{selected:aa,active:Ha,open:Aa,disabled:rr})),u.createElement(gi,{onItemClick:qr,mode:rn==="horizontal"?"vertical":rn,itemIcon:ra,expandIcon:yr},$a)};function xu(S){var F=S.eventKey,U=S.children,le=ee(F),ae=Yo(U,le),xe=L();u.useEffect(function(){if(xe)return xe.registerPath(F,le),function(){xe.unregisterPath(F,le)}},[le]);var Se;return xe?Se=ae:Se=u.createElement($o,S,ae),u.createElement(he.Provider,{value:le},Se)}var Qs=["className","title","eventKey","children"],Rs=["children"],rs=function(F){var U=F.className,le=F.title,ae=F.eventKey,xe=F.children,Se=(0,Le.Z)(F,Qs),je=u.useContext(Po),Ye=je.prefixCls,pt="".concat(Ye,"-item-group");return u.createElement("li",(0,k.Z)({role:"presentation"},Se,{onClick:function(ht){return ht.stopPropagation()},className:d()(pt,U)}),u.createElement("div",{role:"presentation",className:"".concat(pt,"-title"),title:typeof le=="string"?le:void 0},le),u.createElement("ul",{role:"group",className:"".concat(pt,"-list")},xe))};function as(S){var F=S.children,U=(0,Le.Z)(S,Rs),le=ee(U.eventKey),ae=Yo(F,le),xe=L();return xe?ae:u.createElement(rs,(0,wa.Z)(U,["warnKey"]),ae)}function bu(S){var F=S.className,U=S.style,le=u.useContext(Po),ae=le.prefixCls,xe=L();return xe?null:u.createElement("li",{role:"separator",className:d()("".concat(ae,"-item-divider"),F),style:U})}var Xs=["label","children","key","type"];function Ls(S){return(S||[]).map(function(F,U){if(F&&(0,lt.Z)(F)==="object"){var le=F,ae=le.label,xe=le.children,Se=le.key,je=le.type,Ye=(0,Le.Z)(le,Xs),pt=Se!=null?Se:"tmp-".concat(U);return xe||je==="group"?je==="group"?u.createElement(as,(0,k.Z)({key:pt},Ye,{title:ae}),Ls(xe)):u.createElement(xu,(0,k.Z)({key:pt},Ye,{title:ae}),Ls(xe)):je==="divider"?u.createElement(bu,(0,k.Z)({key:pt},Ye)):u.createElement(yu,(0,k.Z)({key:pt},Ye),ae)}return null}).filter(function(F){return F})}function ll(S,F,U){var le=S;return F&&(le=Ls(F)),Yo(le,U)}var Js=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],Ui=[],xs=u.forwardRef(function(S,F){var U,le,ae=S,xe=ae.prefixCls,Se=xe===void 0?"rc-menu":xe,je=ae.rootClassName,Ye=ae.style,pt=ae.className,Rt=ae.tabIndex,ht=Rt===void 0?0:Rt,Ft=ae.items,Wt=ae.children,Lt=ae.direction,un=ae.id,Jt=ae.mode,dn=Jt===void 0?"vertical":Jt,zt=ae.inlineCollapsed,Zt=ae.disabled,Pt=ae.disabledOverflow,In=ae.subMenuOpenDelay,wn=In===void 0?.1:In,$n=ae.subMenuCloseDelay,hn=$n===void 0?.1:$n,fn=ae.forceSubMenuRender,rn=ae.defaultOpenKeys,Dn=ae.openKeys,Nn=ae.activeKey,En=ae.defaultActiveFirst,Zn=ae.selectable,fr=Zn===void 0?!0:Zn,Un=ae.multiple,tr=Un===void 0?!1:Un,Xn=ae.defaultSelectedKeys,Ir=ae.selectedKeys,qn=ae.onSelect,$r=ae.onDeselect,Jn=ae.inlineIndent,ir=Jn===void 0?24:Jn,xr=ae.motion,Sr=ae.defaultMotions,br=ae.triggerSubMenuAction,rr=br===void 0?"hover":br,Wn=ae.builtinPlacements,Lr=ae.itemIcon,ra=ae.expandIcon,yr=ae.overflowedIndicator,Hr=yr===void 0?"...":yr,Aa=ae.overflowedIndicatorPopupClassName,aa=ae.getPopupContainer,Ca=ae.onClick,la=ae.onOpenChange,Ta=ae.onKeyDown,pr=ae.openAnimation,vr=ae.openTransitionName,Ra=ae._internalRenderMenuItem,Ba=ae._internalRenderSubMenuItem,lo=(0,Le.Z)(ae,Js),oa=u.useMemo(function(){return ll(Wt,Ft,Ui)},[Wt,Ft]),Oa=u.useState(!1),Ha=(0,ge.Z)(Oa,2),Qr=Ha[0],Ro=Ha[1],qr=u.useRef(),ia=jn(un),Nr=Lt==="rtl",Ar=(0,Dt.Z)(rn,{value:Dn,postState:function(Be){return Be||Ui}}),Za=(0,ge.Z)(Ar,2),Xr=Za[0],Ya=Za[1],$a=function(Be){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function te(){Ya(Be),la==null||la(Be)}W?(0,Et.flushSync)(te):te()},Mr=u.useState(Xr),ca=(0,ge.Z)(Mr,2),So=ca[0],_r=ca[1],ba=u.useRef(!1),co=u.useMemo(function(){return(dn==="inline"||dn==="vertical")&&zt?["vertical",zt]:[dn,!1]},[dn,zt]),Lo=(0,ge.Z)(co,2),Ua=Lo[0],Zr=Lo[1],ur=Ua==="inline",Er=u.useState(Ua),Sn=(0,ge.Z)(Er,2),Mn=Sn[0],Kr=Sn[1],Pa=u.useState(Zr),Wa=(0,ge.Z)(Pa,2),Qa=Wa[0],za=Wa[1];u.useEffect(function(){Kr(Ua),za(Zr),ba.current&&(ur?Ya(So):$a(Ui))},[Ua,Zr]);var Si=u.useState(0),No=(0,ge.Z)(Si,2),ro=No[0],Xa=No[1],da=ro>=oa.length-1||Mn!=="horizontal"||Pt;u.useEffect(function(){ur&&_r(Xr)},[Xr]),u.useEffect(function(){return ba.current=!0,function(){ba.current=!1}},[]);var La=Ms(),ho=La.registerPath,Ur=La.unregisterPath,gr=La.refreshOverflowKeys,ea=La.isSubPathKey,ka=La.getKeyPath,Ja=La.getKeys,_o=La.getSubPathKeys,Ea=u.useMemo(function(){return{registerPath:ho,unregisterPath:Ur}},[ho,Ur]),_i=u.useMemo(function(){return{isSubPathKey:ea}},[ea]);u.useEffect(function(){gr(da?Ui:oa.slice(ro+1).map(function(ma){return ma.key}))},[ro,da]);var ru=(0,Dt.Z)(Nn||En&&((U=oa[0])===null||U===void 0?void 0:U.key),{value:Nn}),yo=(0,ge.Z)(ru,2),Uo=yo[0],go=yo[1],ci=mu(function(ma){go(ma)}),au=mu(function(){go(void 0)});(0,u.useImperativeHandle)(F,function(){return{list:qr.current,focus:function(Be){var W,te=Ja(),ne=ii(te,ia),se=ne.elements,ie=ne.key2element,J=ne.element2key,ve=xi(qr.current,se),ue=Uo!=null?Uo:ve[0]?J.get(ve[0]):(W=oa.find(function(pe){return!pe.props.disabled}))===null||W===void 0?void 0:W.key,ce=ie.get(ue);if(ue&&ce){var ye;ce==null||(ye=ce.focus)===null||ye===void 0||ye.call(ce,Be)}}}});var di=(0,Dt.Z)(Xn||[],{value:Ir,postState:function(Be){return Array.isArray(Be)?Be:Be==null?Ui:[Be]}}),ou=(0,ge.Z)(di,2),Xo=ou[0],Jo=ou[1],wi=function(Be){if(fr){var W=Be.key,te=Xo.includes(W),ne;tr?te?ne=Xo.filter(function(ie){return ie!==W}):ne=[].concat((0,Rn.Z)(Xo),[W]):ne=[W],Jo(ne);var se=(0,Z.Z)((0,Z.Z)({},Be),{},{selectedKeys:ne});te?$r==null||$r(se):qn==null||qn(se)}!tr&&Xr.length&&Mn!=="inline"&&$a(Ui)},Ai=mu(function(ma){Ca==null||Ca(Eo(ma)),wi(ma)}),Ci=mu(function(ma,Be){var W=Xr.filter(function(ne){return ne!==ma});if(Be)W.push(ma);else if(Mn!=="inline"){var te=_o(ma);W=W.filter(function(ne){return!te.has(ne)})}Nu(Xr,W,!0)||$a(W,!0)}),qo=function(Be,W){var te=W!=null?W:!Xr.includes(Be);Ci(Be,te)},Au=Go(Mn,Uo,Nr,ia,qr,Ja,ka,go,qo,Ta);u.useEffect(function(){Ro(!0)},[]);var Hi=u.useMemo(function(){return{_internalRenderMenuItem:Ra,_internalRenderSubMenuItem:Ba}},[Ra,Ba]),fi=Mn!=="horizontal"||Pt?oa:oa.map(function(ma,Be){return u.createElement(gi,{key:ma.key,overflowDisabled:Be>ro},ma)}),Cu=u.createElement(Ni,(0,k.Z)({id:un,ref:qr,prefixCls:"".concat(Se,"-overflow"),component:"ul",itemComponent:yu,className:d()(Se,"".concat(Se,"-root"),"".concat(Se,"-").concat(Mn),pt,(le={},(0,$.Z)(le,"".concat(Se,"-inline-collapsed"),Qa),(0,$.Z)(le,"".concat(Se,"-rtl"),Nr),le),je),dir:Lt,style:Ye,role:"menu",tabIndex:ht,data:fi,renderRawItem:function(Be){return Be},renderRawRest:function(Be){var W=Be.length,te=W?oa.slice(-W):null;return u.createElement(xu,{eventKey:Ji,title:Hr,disabled:da,internalPopupClose:W===0,popupClassName:Aa},te)},maxCount:Mn!=="horizontal"||Pt?Ni.INVALIDATE:Ni.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Be){Xa(Be)},onKeyDown:Au},lo));return u.createElement(Tt.Provider,{value:Hi},u.createElement(Xi.Provider,{value:ia},u.createElement(gi,{prefixCls:Se,rootClassName:je,mode:Mn,openKeys:Xr,rtl:Nr,disabled:Zt,motion:Qr?xr:null,defaultMotions:Qr?Sr:null,activeKey:Uo,onActive:ci,onInactive:au,selectedKeys:Xo,inlineIndent:ir,subMenuOpenDelay:wn,subMenuCloseDelay:hn,forceSubMenuRender:fn,builtinPlacements:Wn,triggerSubMenuAction:rr,getPopupContainer:aa,itemIcon:Lr,expandIcon:ra,onItemClick:Ai,onOpenChange:Ci},u.createElement(dt.Provider,{value:_i},Cu),u.createElement("div",{style:{display:"none"},"aria-hidden":!0},u.createElement(M.Provider,{value:Ea},oa)))))}),Ns=xs,Eu=Ns;Eu.Item=yu,Eu.SubMenu=xu,Eu.ItemGroup=as,Eu.Divider=bu;var js=Eu,Fs=u.forwardRef(function(S,F){var U=S.prefixCls,le=S.id,ae=S.tabs,xe=S.locale,Se=S.mobile,je=S.moreIcon,Ye=je===void 0?"More":je,pt=S.moreTransitionName,Rt=S.style,ht=S.className,Ft=S.editable,Wt=S.tabBarGutter,Lt=S.rtl,un=S.removeAriaLabel,Jt=S.onTabClick,dn=S.getPopupContainer,zt=S.popupClassName,Zt=(0,u.useState)(!1),Pt=(0,ge.Z)(Zt,2),In=Pt[0],wn=Pt[1],$n=(0,u.useState)(null),hn=(0,ge.Z)($n,2),fn=hn[0],rn=hn[1],Dn="".concat(le,"-more-popup"),Nn="".concat(U,"-dropdown"),En=fn!==null?"".concat(Dn,"-").concat(fn):null,Zn=xe==null?void 0:xe.dropdownAriaLabel;function fr(Jn,ir){Jn.preventDefault(),Jn.stopPropagation(),Ft.onEdit("remove",{key:ir,event:Jn})}var Un=u.createElement(js,{onClick:function(ir){var xr=ir.key,Sr=ir.domEvent;Jt(xr,Sr),wn(!1)},prefixCls:"".concat(Nn,"-menu"),id:Dn,tabIndex:-1,role:"listbox","aria-activedescendant":En,selectedKeys:[fn],"aria-label":Zn!==void 0?Zn:"expanded dropdown"},ae.map(function(Jn){var ir=Jn.closable,xr=Jn.disabled,Sr=Jn.closeIcon,br=Jn.key,rr=Jn.label,Wn=Ne(ir,Sr,Ft,xr);return u.createElement(yu,{key:br,id:"".concat(Dn,"-").concat(br),role:"option","aria-controls":le&&"".concat(le,"-panel-").concat(br),disabled:xr},u.createElement("span",null,rr),Wn&&u.createElement("button",{type:"button","aria-label":un||"remove",tabIndex:0,className:"".concat(Nn,"-menu-item-remove"),onClick:function(ra){ra.stopPropagation(),fr(ra,br)}},Sr||Ft.removeIcon||"\xD7"))}));function tr(Jn){for(var ir=ae.filter(function(Wn){return!Wn.disabled}),xr=ir.findIndex(function(Wn){return Wn.key===fn})||0,Sr=ir.length,br=0;brgr?"left":"right"})}),fr=(0,ge.Z)(Zn,2),Un=fr[0],tr=fr[1],Xn=$e(0,function(Ur,gr){!En&&Jt&&Jt({direction:Ur>gr?"top":"bottom"})}),Ir=(0,ge.Z)(Xn,2),qn=Ir[0],$r=Ir[1],Jn=(0,u.useState)([0,0]),ir=(0,ge.Z)(Jn,2),xr=ir[0],Sr=ir[1],br=(0,u.useState)([0,0]),rr=(0,ge.Z)(br,2),Wn=rr[0],Lr=rr[1],ra=(0,u.useState)([0,0]),yr=(0,ge.Z)(ra,2),Hr=yr[0],Aa=yr[1],aa=(0,u.useState)([0,0]),Ca=(0,ge.Z)(aa,2),la=Ca[0],Ta=Ca[1],pr=st(new Map),vr=(0,ge.Z)(pr,2),Ra=vr[0],Ba=vr[1],lo=ke(In,Ra,Wn[0]),oa=li(xr,En),Oa=li(Wn,En),Ha=li(Hr,En),Qr=li(la,En),Ro=oaAr?Ar:Ur}var Xr=(0,u.useRef)(null),Ya=(0,u.useState)(),$a=(0,ge.Z)(Ya,2),Mr=$a[0],ca=$a[1];function So(){ca(Date.now())}function _r(){Xr.current&&clearTimeout(Xr.current)}nt(fn,function(Ur,gr){function ea(ka,Ja){ka(function(_o){var Ea=Za(_o+Ja);return Ea})}return Ro?(En?ea(tr,Ur):ea($r,gr),_r(),So(),!0):!1}),(0,u.useEffect)(function(){return _r(),Mr&&(Xr.current=setTimeout(function(){ca(0)},100)),_r},[Mr]);var ba=bt(lo,qr,En?Un:qn,Oa,Ha,Qr,(0,Z.Z)((0,Z.Z)({},S),{},{tabs:In})),co=(0,ge.Z)(ba,2),Lo=co[0],Ua=co[1],Zr=(0,Fn.Z)(function(){var Ur=arguments.length>0&&arguments[0]!==void 0?arguments[0]:je,gr=lo.get(Ur)||{width:0,height:0,left:0,right:0,top:0};if(En){var ea=Un;Ye?gr.rightUn+qr&&(ea=gr.right+gr.width-qr):gr.left<-Un?ea=-gr.left:gr.left+gr.width>-Un+qr&&(ea=-(gr.left+gr.width-qr)),$r(0),tr(Za(ea))}else{var ka=qn;gr.top<-qn?ka=-gr.top:gr.top+gr.height>-qn+qr&&(ka=-(gr.top+gr.height-qr)),tr(0),$r(Za(ka))}}),ur={};Ft==="top"||Ft==="bottom"?ur[Ye?"marginRight":"marginLeft"]=Wt:ur.marginTop=Wt;var Er=In.map(function(Ur,gr){var ea=Ur.key;return u.createElement(dl,{id:xe,prefixCls:Pt,key:ea,tab:Ur,style:gr===0?void 0:ur,closable:Ur.closable,editable:Rt,active:ea===je,renderWrapper:Lt,removeAriaLabel:ht==null?void 0:ht.removeAriaLabel,onClick:function(Ja){un(ea,Ja)},onFocus:function(){Zr(ea),So(),fn.current&&(Ye||(fn.current.scrollLeft=0),fn.current.scrollTop=0)}})}),Sn=function(){return Ba(function(){var gr,ea=new Map,ka=(gr=rn.current)===null||gr===void 0?void 0:gr.getBoundingClientRect();return In.forEach(function(Ja){var _o,Ea=Ja.key,_i=(_o=rn.current)===null||_o===void 0?void 0:_o.querySelector('[data-node-key="'.concat(we(Ea),'"]'));if(_i){var ru=fl(_i,ka),yo=(0,ge.Z)(ru,4),Uo=yo[0],go=yo[1],ci=yo[2],au=yo[3];ea.set(Ea,{width:Uo,height:go,left:ci,top:au})}}),ea})};(0,u.useEffect)(function(){Sn()},[In.map(function(Ur){return Ur.key}).join("_")]);var Mn=Ue(function(){var Ur=eu(wn),gr=eu($n),ea=eu(hn);Sr([Ur[0]-gr[0]-ea[0],Ur[1]-gr[1]-ea[1]]);var ka=eu(Nn);Aa(ka);var Ja=eu(Dn);Ta(Ja);var _o=eu(rn);Lr([_o[0]-ka[0],_o[1]-ka[1]]),Sn()}),Kr=In.slice(0,Lo),Pa=In.slice(Ua+1),Wa=[].concat((0,Rn.Z)(Kr),(0,Rn.Z)(Pa)),Qa=lo.get(je),za=ot({activeTabOffset:Qa,horizontal:En,rtl:Ye,indicatorSize:dn,indicatorAlign:zt}),Si=za.style;(0,u.useEffect)(function(){Zr()},[je,Nr,Ar,I(Qa),I(lo),En]),(0,u.useEffect)(function(){Mn()},[Ye]);var No=!!Wa.length,ro="".concat(Pt,"-nav-wrap"),Xa,da,La,ho;return En?Ye?(da=Un>0,Xa=Un!==Ar):(Xa=Un<0,da=Un!==Nr):(La=qn<0,ho=qn!==Nr),u.createElement(An.Z,{onResize:Mn},u.createElement("div",{ref:(0,Xe.x1)(F,wn),role:"tablist",className:d()("".concat(Pt,"-nav"),le),style:ae,onKeyDown:function(){So()}},u.createElement(mt,{ref:$n,position:"left",extra:pt,prefixCls:Pt}),u.createElement(An.Z,{onResize:Mn},u.createElement("div",{className:d()(ro,(U={},(0,$.Z)(U,"".concat(ro,"-ping-left"),Xa),(0,$.Z)(U,"".concat(ro,"-ping-right"),da),(0,$.Z)(U,"".concat(ro,"-ping-top"),La),(0,$.Z)(U,"".concat(ro,"-ping-bottom"),ho),U)),ref:fn},u.createElement(An.Z,{onResize:Mn},u.createElement("div",{ref:rn,className:"".concat(Pt,"-nav-list"),style:{transform:"translate(".concat(Un,"px, ").concat(qn,"px)"),transition:Mr?"none":void 0}},Er,u.createElement(ut,{ref:Nn,prefixCls:Pt,locale:ht,editable:Rt,style:(0,Z.Z)((0,Z.Z)({},Er.length===0?void 0:ur),{},{visibility:No?"hidden":null})}),u.createElement("div",{className:d()("".concat(Pt,"-ink-bar"),(0,$.Z)({},"".concat(Pt,"-ink-bar-animated"),Se.inkBar)),style:Si}))))),u.createElement(cl,(0,k.Z)({},S,{removeAriaLabel:ht==null?void 0:ht.removeAriaLabel,ref:Dn,prefixCls:Pt,tabs:Wa,className:!No&&ia,tabMoving:!!Mr})),u.createElement(mt,{ref:hn,position:"right",extra:pt,prefixCls:Pt})))}),Su=el,Ei=u.forwardRef(function(S,F){var U=S.prefixCls,le=S.className,ae=S.style,xe=S.id,Se=S.active,je=S.tabKey,Ye=S.children;return u.createElement("div",{id:xe&&"".concat(xe,"-panel-").concat(je),role:"tabpanel",tabIndex:Se?0:-1,"aria-labelledby":xe&&"".concat(xe,"-tab-").concat(je),"aria-hidden":!Se,style:ae,className:d()(U,Se&&"".concat(U,"-active"),le),ref:F},Ye)}),Uu=Ei,zi=["renderTabBar"],Bs=["label","key"],pl=function(F){var U=F.renderTabBar,le=(0,Le.Z)(F,zi),ae=u.useContext(sn),xe=ae.tabs;if(U){var Se=(0,Z.Z)((0,Z.Z)({},le),{},{panes:xe.map(function(je){var Ye=je.label,pt=je.key,Rt=(0,Le.Z)(je,Bs);return u.createElement(Uu,(0,k.Z)({tab:Ye,key:pt,tabKey:pt},Rt))})});return U(Se,Su)}return u.createElement(Su,le)},vl=pl,_u=["key","forceRender","style","className","destroyInactiveTabPane"],os=function(F){var U=F.id,le=F.activeKey,ae=F.animated,xe=F.tabPosition,Se=F.destroyInactiveTabPane,je=u.useContext(sn),Ye=je.prefixCls,pt=je.tabs,Rt=ae.tabPane,ht="".concat(Ye,"-tabpane");return u.createElement("div",{className:d()("".concat(Ye,"-content-holder"))},u.createElement("div",{className:d()("".concat(Ye,"-content"),"".concat(Ye,"-content-").concat(xe),(0,$.Z)({},"".concat(Ye,"-content-animated"),Rt))},pt.map(function(Ft){var Wt=Ft.key,Lt=Ft.forceRender,un=Ft.style,Jt=Ft.className,dn=Ft.destroyInactiveTabPane,zt=(0,Le.Z)(Ft,_u),Zt=Wt===le;return u.createElement(cr.ZP,(0,k.Z)({key:Wt,visible:Zt,forceRender:Lt,removeOnLeave:!!(Se||dn),leavedClassName:"".concat(ht,"-hidden")},ae.tabPaneMotion),function(Pt,In){var wn=Pt.style,$n=Pt.className;return u.createElement(Uu,(0,k.Z)({},zt,{prefixCls:ht,id:U,tabKey:Wt,animated:Rt,active:Zt,style:(0,Z.Z)((0,Z.Z)({},un),wn),className:d()(Jt,$n),ref:In}))})})))},zu=os;function bs(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},F;return S===!1?F={inkBar:!1,tabPane:!1}:S===!0?F={inkBar:!0,tabPane:!1}:F=(0,Z.Z)({inkBar:!0},(0,lt.Z)(S)==="object"?S:{}),F.tabPaneMotion&&F.tabPane===void 0&&(F.tabPane=!0),!F.tabPaneMotion&&F.tabPane&&(F.tabPane=!1),F}var $s=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize","indicatorAlign"],wu=0,tu=u.forwardRef(function(S,F){var U,le=S.id,ae=S.prefixCls,xe=ae===void 0?"rc-tabs":ae,Se=S.className,je=S.items,Ye=S.direction,pt=S.activeKey,Rt=S.defaultActiveKey,ht=S.editable,Ft=S.animated,Wt=S.tabPosition,Lt=Wt===void 0?"top":Wt,un=S.tabBarGutter,Jt=S.tabBarStyle,dn=S.tabBarExtraContent,zt=S.locale,Zt=S.moreIcon,Pt=S.moreTransitionName,In=S.destroyInactiveTabPane,wn=S.renderTabBar,$n=S.onChange,hn=S.onTabClick,fn=S.onTabScroll,rn=S.getPopupContainer,Dn=S.popupClassName,Nn=S.indicatorSize,En=S.indicatorAlign,Zn=En===void 0?"center":En,fr=(0,Le.Z)(S,$s),Un=u.useMemo(function(){return(je||[]).filter(function(pr){return pr&&(0,lt.Z)(pr)==="object"&&"key"in pr})},[je]),tr=Ye==="rtl",Xn=bs(Ft),Ir=(0,u.useState)(!1),qn=(0,ge.Z)(Ir,2),$r=qn[0],Jn=qn[1];(0,u.useEffect)(function(){Jn(an())},[]);var ir=(0,Dt.Z)(function(){var pr;return(pr=Un[0])===null||pr===void 0?void 0:pr.key},{value:pt,defaultValue:Rt}),xr=(0,ge.Z)(ir,2),Sr=xr[0],br=xr[1],rr=(0,u.useState)(function(){return Un.findIndex(function(pr){return pr.key===Sr})}),Wn=(0,ge.Z)(rr,2),Lr=Wn[0],ra=Wn[1];(0,u.useEffect)(function(){var pr=Un.findIndex(function(Ra){return Ra.key===Sr});if(pr===-1){var vr;pr=Math.max(0,Math.min(Lr,Un.length-1)),br((vr=Un[pr])===null||vr===void 0?void 0:vr.key)}ra(pr)},[Un.map(function(pr){return pr.key}).join("_"),Sr,Lr]);var yr=(0,Dt.Z)(null,{value:le}),Hr=(0,ge.Z)(yr,2),Aa=Hr[0],aa=Hr[1];(0,u.useEffect)(function(){le||(aa("rc-tabs-".concat(wu)),wu+=1)},[]);function Ca(pr,vr){hn==null||hn(pr,vr);var Ra=pr!==Sr;br(pr),Ra&&($n==null||$n(pr))}var la={id:Aa,activeKey:Sr,animated:Xn,tabPosition:Lt,rtl:tr,mobile:$r},Ta=(0,Z.Z)((0,Z.Z)({},la),{},{editable:ht,locale:zt,moreIcon:Zt,moreTransitionName:Pt,tabBarGutter:un,onTabClick:Ca,onTabScroll:fn,extra:dn,style:Jt,panes:null,getPopupContainer:rn,popupClassName:Dn,indicatorSize:Nn,indicatorAlign:Zn});return u.createElement(sn.Provider,{value:{tabs:Un,prefixCls:xe}},u.createElement("div",(0,k.Z)({ref:F,id:le,className:d()(xe,"".concat(xe,"-").concat(Lt),(U={},(0,$.Z)(U,"".concat(xe,"-mobile"),$r),(0,$.Z)(U,"".concat(xe,"-editable"),ht),(0,$.Z)(U,"".concat(xe,"-rtl"),tr),U),Se)},fr),u.createElement(vl,(0,k.Z)({},Ta,{renderTabBar:wn})),u.createElement(zu,(0,k.Z)({destroyInactiveTabPane:In},la,{animated:Xn}))))}),xa=tu,va=xa;function Qo(S,F){return Mo(S)||Hu(S,F)||Do(S,F)||mo()}function mo(){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 Do(S,F){if(S){if(typeof S=="string")return nu(S,F);var U=Object.prototype.toString.call(S).slice(8,-1);if(U==="Object"&&S.constructor&&(U=S.constructor.name),U==="Map"||U==="Set")return Array.from(S);if(U==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(U))return nu(S,F)}}function nu(S,F){(F==null||F>S.length)&&(F=S.length);for(var U=0,le=new Array(F);UMe in G?v(G,Me,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):G[Me]=Qe,x=(G,Me)=>{for(var Qe in Me||(Me={}))u.call(Me,Qe)&&l(G,Qe,Me[Qe]);if(y)for(var Qe of y(Me))h.call(Me,Qe)&&l(G,Qe,Me[Qe]);return G};const g=G=>d.createElement("svg",x({viewBox:"64 64 896 896"},G),d.createElement("path",{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2 263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}));var E="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNODMyIDY0SDI5NmMtNC40IDAtOCAzLjYtOCA4djU2YzAgNC40IDMuNiA4IDggOGg0OTZ2Njg4YzAgNC40IDMuNiA4IDggOGg1NmM0LjQgMCA4LTMuNiA4LThWOTZjMC0xNy43LTE0LjMtMzItMzItMzJ6TTcwNCAxOTJIMTkyYy0xNy43IDAtMzIgMTQuMy0zMiAzMnY1MzAuN2MwIDguNSAzLjQgMTYuNiA5LjQgMjIuNmwxNzMuMyAxNzMuM2MyLjIgMi4yIDQuNyA0IDcuNCA1LjV2MS45aDQuMmMzLjUgMS4zIDcuMiAyIDExIDJINzA0YzE3LjcgMCAzMi0xNC4zIDMyLTMyVjIyNGMwLTE3LjctMTQuMy0zMi0zMi0zMnpNMzUwIDg1Ni4yIDI2My45IDc3MEgzNTB2ODYuMnpNNjY0IDg4OEg0MTRWNzQ2YzAtMjIuMS0xNy45LTQwLTQwLTQwSDIzMlYyNjRoNDMydjYyNHoiLz48L3N2Zz4=",P=e(5602),T=e.n(P),w=e(54996);function j(G){var Me,Qe,Ct="";if(typeof G=="string"||typeof G=="number")Ct+=G;else if(typeof G=="object")if(Array.isArray(G)){var jt=G.length;for(Me=0;MeMe in G?R(G,Me,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):G[Me]=Qe,Ke=(G,Me)=>{for(var Qe in Me||(Me={}))Re.call(Me,Qe)&&Ve(G,Qe,Me[Qe]);if(Ie)for(var Qe of Ie(Me))We.call(Me,Qe)&&Ve(G,Qe,Me[Qe]);return G},Y=(G,Me)=>z(G,q(Me)),re=(G,Me)=>{var Qe={};for(var Ct in G)Re.call(G,Ct)&&Me.indexOf(Ct)<0&&(Qe[Ct]=G[Ct]);if(G!=null&&Ie)for(var Ct of Ie(G))Me.indexOf(Ct)<0&&We.call(G,Ct)&&(Qe[Ct]=G[Ct]);return Qe},oe=(G,Me)=>function(){return Me||(0,G[X(G)[0]])((Me={exports:{}}).exports,Me),Me.exports},C=(G,Me)=>{for(var Qe in Me)R(G,Qe,{get:Me[Qe],enumerable:!0})},N=(G,Me,Qe,Ct)=>{if(Me&&typeof Me=="object"||typeof Me=="function")for(let jt of X(Me))!Re.call(G,jt)&&jt!==Qe&&R(G,jt,{get:()=>Me[jt],enumerable:!(Ct=K(Me,jt))||Ct.enumerable});return G},Q=(G,Me,Qe)=>(Qe=G!=null?A(De(G)):{},N(Me||!G||!G.__esModule?R(Qe,"default",{value:G,enumerable:!0}):Qe,G)),fe=oe({"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(G,Me){var Qe=function(){var Ct=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,jt=0,mn={},tn={util:{encode:function _t(It){return It instanceof ln?new ln(It.type,_t(It.content),It.alias):Array.isArray(It)?It.map(_t):It.replace(/&/g,"&").replace(/"+Xt.content+""};function gn(_t,It,Ut,qt){_t.lastIndex=It;var Xt=_t.exec(Ut);if(Xt&&qt&&Xt[1]){var vn=Xt[1].length;Xt.index+=vn,Xt[0]=Xt[0].slice(vn)}return Xt}function cn(_t,It,Ut,qt,Xt,vn){for(var or in Ut)if(!(!Ut.hasOwnProperty(or)||!Ut[or])){var cr=Ut[or];cr=Array.isArray(cr)?cr:[cr];for(var Vr=0;Vr=vn.reach);sa+=hr.value.length,hr=hr.next){var Ma=hr.value;if(It.length>_t.length)return;if(!(Ma instanceof ln)){var Or=1,Ga;if(Na){if(Ga=gn(pa,sa,_t,Sa),!Ga||Ga.index>=_t.length)break;var Ao=Ga.index,Pi=Ga.index+Ga[0].length,xo=sa;for(xo+=hr.value.length;Ao>=xo;)hr=hr.next,xo+=hr.value.length;if(xo-=hr.value.length,sa=xo,hr.value instanceof ln)continue;for(var Zo=hr;Zo!==It.tail&&(xovn.reach&&(vn.reach=io);var vo=hr.prev;po&&(vo=pn(It,vo,po),sa+=po.length),ar(It,vo,Or);var To=new ln(or,zr?tn.tokenize(Co,zr):Co,Da,Co);if(hr=pn(It,vo,To),oo&&pn(It,hr,oo),Or>1){var uo={cause:or+","+Vr,reach:io};cn(_t,It,Ut,hr.prev,sa,uo),vn&&uo.reach>vn.reach&&(vn.reach=uo.reach)}}}}}}function Tn(){var _t={value:null,prev:null,next:null},It={value:null,prev:_t,next:null};_t.next=It,this.head=_t,this.tail=It,this.length=0}function pn(_t,It,Ut){var qt=It.next,Xt={value:Ut,prev:It,next:qt};return It.next=Xt,qt.prev=Xt,_t.length++,Xt}function ar(_t,It,Ut){for(var qt=It.next,Xt=0;Xt/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},k.languages.markup.tag.inside["attr-value"].inside.entity=k.languages.markup.entity,k.languages.markup.doctype.inside["internal-subset"].inside=k.languages.markup,k.hooks.add("wrap",function(G){G.type==="entity"&&(G.attributes.title=G.content.replace(/&/,"&"))}),Object.defineProperty(k.languages.markup.tag,"addInlined",{value:function(G,Ct){var Qe={},Qe=(Qe["language-"+Ct]={pattern:/(^$)/i,lookbehind:!0,inside:k.languages[Ct]},Qe.cdata=/^$/i,{"included-cdata":{pattern://i,inside:Qe}}),Ct=(Qe["language-"+Ct]={pattern:/[\s\S]+/,inside:k.languages[Ct]},{});Ct[G]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return G}),"i"),lookbehind:!0,greedy:!0,inside:Qe},k.languages.insertBefore("markup","cdata",Ct)}}),Object.defineProperty(k.languages.markup.tag,"addAttribute",{value:function(G,Me){k.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+G+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[Me,"language-"+Me],inside:k.languages[Me]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),k.languages.html=k.languages.markup,k.languages.mathml=k.languages.markup,k.languages.svg=k.languages.markup,k.languages.xml=k.languages.extend("markup",{}),k.languages.ssml=k.languages.xml,k.languages.atom=k.languages.xml,k.languages.rss=k.languages.xml,function(G){var Me={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},Qe=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,Ct="(?:[^\\\\-]|"+Qe.source+")",Ct=RegExp(Ct+"-"+Ct),jt={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};G.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:Ct,inside:{escape:Qe,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":Me,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:Qe}},"special-escape":Me,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":jt}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:Qe,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},k.languages.javascript=k.languages.extend("clike",{"class-name":[k.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),k.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,k.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:k.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:k.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:k.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:k.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:k.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),k.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:k.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),k.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),k.languages.markup&&(k.languages.markup.tag.addInlined("script","javascript"),k.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),k.languages.js=k.languages.javascript,k.languages.actionscript=k.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<>?>?|[!=]=?)=?|[~?@]/}),k.languages.actionscript["class-name"].alias="function",delete k.languages.actionscript.parameter,delete k.languages.actionscript["literal-property"],k.languages.markup&&k.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:k.languages.markup}}),function(G){var Me=/#(?!\{).+/,Qe={pattern:/#\{[^}]+\}/,alias:"variable"};G.languages.coffeescript=G.languages.extend("javascript",{comment:Me,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:Qe}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),G.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:Me,interpolation:Qe}}}),G.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:G.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:Qe}}]}),G.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete G.languages.coffeescript["template-string"],G.languages.coffee=G.languages.coffeescript}(k),function(G){var Me=G.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(Me,"addSupport",{value:function(Qe,Ct){(Qe=typeof Qe=="string"?[Qe]:Qe).forEach(function(jt){var mn=function(pn){pn.inside||(pn.inside={}),pn.inside.rest=Ct},tn="doc-comment";if(ln=G.languages[jt]){var ln,gn=ln[tn];if((gn=gn||(ln=G.languages.insertBefore(jt,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[tn])instanceof RegExp&&(gn=ln[tn]={pattern:gn}),Array.isArray(gn))for(var cn=0,Tn=gn.length;cn|\+|~|\|\|/,punctuation:/[(),]/}},G.languages.css.atrule.inside["selector-function-argument"].inside=Me,G.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),Qe={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};G.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:Me,number:Qe,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:Me,number:Qe})}(k),function(G){var Me=/[*&][^\s[\]{},]+/,Qe=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,Ct="(?:"+Qe.source+"(?:[ ]+"+Me.source+")?|"+Me.source+"(?:[ ]+"+Qe.source+")?)",jt=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),mn=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function tn(ln,gn){gn=(gn||"").replace(/m/g,"")+"m";var cn=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return Ct}).replace(/<>/g,function(){return ln});return RegExp(cn,gn)}G.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return Ct})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return Ct}).replace(/<>/g,function(){return"(?:"+jt+"|"+mn+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:tn(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:tn(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:tn(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:tn(mn),lookbehind:!0,greedy:!0},number:{pattern:tn(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:Qe,important:Me,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},G.languages.yml=G.languages.yaml}(k),function(G){var Me=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function Qe(cn){return cn=cn.replace(//g,function(){return Me}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+cn+")")}var Ct=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,jt=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return Ct}),mn=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,tn=(G.languages.markdown=G.languages.extend("markup",{}),G.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:G.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+jt+mn+"(?:"+jt+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+jt+mn+")(?:"+jt+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(Ct),inside:G.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+jt+")"+mn+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+jt+"$"),inside:{"table-header":{pattern:RegExp(Ct),alias:"important",inside:G.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:Qe(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:Qe(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:Qe(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:Qe(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(cn){["url","bold","italic","strike","code-snippet"].forEach(function(Tn){cn!==Tn&&(G.languages.markdown[cn].inside.content.inside[Tn]=G.languages.markdown[Tn])})}),G.hooks.add("after-tokenize",function(cn){cn.language!=="markdown"&&cn.language!=="md"||function Tn(pn){if(pn&&typeof pn!="string")for(var ar=0,wr=pn.length;ar",quot:'"'},gn=String.fromCodePoint||String.fromCharCode;G.languages.md=G.languages.markdown}(k),k.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:k.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},k.hooks.add("after-tokenize",function(G){if(G.language==="graphql")for(var Me=G.tokens.filter(function(_t){return typeof _t!="string"&&_t.type!=="comment"&&_t.type!=="scalar"}),Qe=0;Qe?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(G){var Me=G.languages.javascript["template-string"],Qe=Me.pattern.source,Ct=Me.inside.interpolation,jt=Ct.inside["interpolation-punctuation"],mn=Ct.pattern.source;function tn(pn,ar){if(G.languages[pn])return{pattern:RegExp("((?:"+ar+")\\s*)"+Qe),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:pn}}}}function ln(pn,ar,wr){return pn={code:pn,grammar:ar,language:wr},G.hooks.run("before-tokenize",pn),pn.tokens=G.tokenize(pn.code,pn.grammar),G.hooks.run("after-tokenize",pn),pn.tokens}function gn(pn,ar,wr){var Ut=G.tokenize(pn,{interpolation:{pattern:RegExp(mn),lookbehind:!0}}),_t=0,It={},Ut=ln(Ut.map(function(Xt){if(typeof Xt=="string")return Xt;for(var vn,or,Xt=Xt.content;pn.indexOf((or=_t++,vn="___"+wr.toUpperCase()+"_"+or+"___"))!==-1;);return It[vn]=Xt,vn}).join(""),ar,wr),qt=Object.keys(It);return _t=0,function Xt(vn){for(var or=0;or=qt.length)return;var cr,Vr,jr,zr,Sa,Na,Da,Fr=vn[or];typeof Fr=="string"||typeof Fr.content=="string"?(cr=qt[_t],(Da=(Na=typeof Fr=="string"?Fr:Fr.content).indexOf(cr))!==-1&&(++_t,Vr=Na.substring(0,Da),Sa=It[cr],jr=void 0,(zr={})["interpolation-punctuation"]=jt,(zr=G.tokenize(Sa,zr)).length===3&&((jr=[1,1]).push.apply(jr,ln(zr[1],G.languages.javascript,"javascript")),zr.splice.apply(zr,jr)),jr=new G.Token("interpolation",zr,Ct.alias,Sa),zr=Na.substring(Da+cr.length),Sa=[],Vr&&Sa.push(Vr),Sa.push(jr),zr&&(Xt(Na=[zr]),Sa.push.apply(Sa,Na)),typeof Fr=="string"?(vn.splice.apply(vn,[or,1].concat(Sa)),or+=Sa.length-1):Fr.content=Sa)):(Da=Fr.content,Array.isArray(Da)?Xt(Da):Xt([Da]))}}(Ut),new G.Token(wr,Ut,"language-"+wr,pn)}G.languages.javascript["template-string"]=[tn("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),tn("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),tn("svg",/\bsvg/.source),tn("markdown",/\b(?:markdown|md)/.source),tn("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),tn("sql",/\bsql/.source),Me].filter(Boolean);var cn={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function Tn(pn){return typeof pn=="string"?pn:Array.isArray(pn)?pn.map(Tn).join(""):Tn(pn.content)}G.hooks.add("after-tokenize",function(pn){pn.language in cn&&function ar(wr){for(var _t=0,It=wr.length;_t]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),G.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete G.languages.typescript.parameter,delete G.languages.typescript["literal-property"];var Me=G.languages.extend("typescript",{});delete Me["class-name"],G.languages.typescript["class-name"].inside=Me,G.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:Me}}}}),G.languages.ts=G.languages.typescript}(k),function(G){var Me=G.languages.javascript,Qe=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,Ct="(@(?:arg|argument|param|property)\\s+(?:"+Qe+"\\s+)?)";G.languages.jsdoc=G.languages.extend("javadoclike",{parameter:{pattern:RegExp(Ct+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),G.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(Ct+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:Me,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return Qe})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+Qe),lookbehind:!0,inside:{string:Me.string,number:Me.number,boolean:Me.boolean,keyword:G.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:Me,alias:"language-javascript"}}}}),G.languages.javadoclike.addSupport("javascript",G.languages.jsdoc)}(k),function(G){G.languages.flow=G.languages.extend("javascript",{}),G.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),G.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete G.languages.flow.parameter,G.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(G.languages.flow.keyword)||(G.languages.flow.keyword=[G.languages.flow.keyword]),G.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(k),k.languages.n4js=k.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),k.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),k.languages.n4jsd=k.languages.n4js,function(G){function Me(tn,ln){return RegExp(tn.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),ln)}G.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+G.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),G.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+G.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),G.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),G.languages.insertBefore("javascript","keyword",{imports:{pattern:Me(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:G.languages.javascript},exports:{pattern:Me(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:G.languages.javascript}}),G.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),G.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),G.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:Me(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var Qe=["function","function-variable","method","method-variable","property-access"],Ct=0;Ct*\.{3}(?:[^{}]|)*\})/.source;function mn(gn,cn){return gn=gn.replace(//g,function(){return Qe}).replace(//g,function(){return Ct}).replace(//g,function(){return jt}),RegExp(gn,cn)}jt=mn(jt).source,G.languages.jsx=G.languages.extend("markup",Me),G.languages.jsx.tag.pattern=mn(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),G.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,G.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,G.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,G.languages.jsx.tag.inside.comment=Me.comment,G.languages.insertBefore("inside","attr-name",{spread:{pattern:mn(//.source),inside:G.languages.jsx}},G.languages.jsx.tag),G.languages.insertBefore("inside","special-attr",{script:{pattern:mn(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:G.languages.jsx}}},G.languages.jsx.tag);function tn(gn){for(var cn=[],Tn=0;Tn"&&cn.push({tagName:ln(pn.content[0].content[1]),openedBraces:0}):0]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},k.languages.swift["string-literal"].forEach(function(G){G.inside.interpolation.inside=k.languages.swift}),function(G){G.languages.kotlin=G.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete G.languages.kotlin["class-name"];var Me={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:G.languages.kotlin}};G.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:Me},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:Me},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete G.languages.kotlin.string,G.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),G.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),G.languages.kt=G.languages.kotlin,G.languages.kts=G.languages.kotlin}(k),k.languages.c=k.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),k.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),k.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},k.languages.c.string],char:k.languages.c.char,comment:k.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:k.languages.c}}}}),k.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete k.languages.c.boolean,k.languages.objectivec=k.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete k.languages.objectivec["class-name"],k.languages.objc=k.languages.objectivec,k.languages.reason=k.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),k.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete k.languages.reason.function,function(G){for(var Me=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,Qe=0;Qe<2;Qe++)Me=Me.replace(//g,function(){return Me});Me=Me.replace(//g,function(){return/[^\s\S]/.source}),G.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+Me),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},G.languages.rust["closure-params"].inside.rest=G.languages.rust,G.languages.rust.attribute.inside.string=G.languages.rust.string}(k),k.languages.go=k.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),k.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete k.languages.go["class-name"],function(G){var Me=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,Qe=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return Me.source});G.languages.cpp=G.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return Me.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:Me,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),G.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return Qe})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),G.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:G.languages.cpp}}}}),G.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),G.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:G.languages.extend("cpp",{})}}),G.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},G.languages.cpp["base-clause"])}(k),k.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},k.languages.python["string-interpolation"].inside.interpolation.inside.rest=k.languages.python,k.languages.py=k.languages.python;var $={};C($,{dracula:()=>ge,duotoneDark:()=>Le,duotoneLight:()=>an,github:()=>Rn,jettwaveDark:()=>Ne,jettwaveLight:()=>ut,nightOwl:()=>Fn,nightOwlLight:()=>xt,oceanicNext:()=>Ht,okaidia:()=>$e,oneDark:()=>mt,oneLight:()=>kt,palenight:()=>Ee,shadesOfPurple:()=>tt,synthwave84:()=>de,ultramin:()=>st,vsDark:()=>bt,vsLight:()=>V});var Z={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},ge=Z,lt={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},Le=lt,Dt={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},an=Dt,sn={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},Rn=sn,An={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},Fn=An,Xe={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},xt=Xe,vt={char:"#D8DEE9",comment:"#999999",keyword:"#c5a5c5",primitive:"#5a9bcf",string:"#8dc891",variable:"#d7deea",boolean:"#ff8b50",punctuation:"#5FB3B3",tag:"#fc929e",function:"#79b6f2",className:"#FAC863",method:"#6699CC",operator:"#fc929e"},ot={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:vt.keyword}},{types:["attr-value"],style:{color:vt.string}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:vt.comment}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:vt.primitive}},{types:["boolean"],style:{color:vt.boolean}},{types:["tag"],style:{color:vt.tag}},{types:["string"],style:{color:vt.string}},{types:["punctuation"],style:{color:vt.string}},{types:["selector","char","builtin","inserted"],style:{color:vt.char}},{types:["function"],style:{color:vt.function}},{types:["operator","entity","url","variable"],style:{color:vt.variable}},{types:["keyword"],style:{color:vt.keyword}},{types:["atrule","class-name"],style:{color:vt.className}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},Ht=ot,ke={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},$e=ke,qe={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},Ee=qe,Pe={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},tt=Pe,nt={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},de=nt,Ue={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},st=Ue,Je={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},bt=Je,I={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},V=I,we={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},Ne=we,et={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},ut=et,ze={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},mt=ze,Et={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},kt=Et,Mt=(G,Me)=>{const{plain:Qe}=G,Ct=G.styles.reduce((jt,mn)=>{const{languages:tn,style:ln}=mn;return tn&&!tn.includes(Me)||mn.types.forEach(gn=>{const cn=Ke(Ke({},jt[gn]),ln);jt[gn]=cn}),jt},{});return Ct.root=Qe,Ct.plain=Y(Ke({},Qe),{backgroundColor:void 0}),Ct},Te=Mt,gt=(G,Me)=>{const[Qe,Ct]=(0,d.useState)(Te(Me,G)),jt=(0,d.useRef)(),mn=(0,d.useRef)();return(0,d.useEffect)(()=>{(Me!==jt.current||G!==mn.current)&&(jt.current=Me,mn.current=G,Ct(Te(Me,G)))},[G,Me]),Qe},at=G=>(0,d.useCallback)(Me=>{var Qe=Me,{className:Ct,style:jt,line:mn}=Qe,tn=re(Qe,["className","style","line"]);const ln=Y(Ke({},tn),{className:B("token-line",Ct)});return typeof G=="object"&&"plain"in G&&(ln.style=G.plain),typeof jt=="object"&&(ln.style=Ke(Ke({},ln.style||{}),jt)),ln},[G]),He=G=>{const Me=(0,d.useCallback)(({types:Qe,empty:Ct})=>{if(G!=null){{if(Qe.length===1&&Qe[0]==="plain")return Ct!=null?{display:"inline-block"}:void 0;if(Qe.length===1&&Ct!=null)return G[Qe[0]]}return Object.assign(Ct!=null?{display:"inline-block"}:{},...Qe.map(jt=>G[jt]))}},[G]);return(0,d.useCallback)(Qe=>{var Ct=Qe,{token:jt,className:mn,style:tn}=Ct,ln=re(Ct,["token","className","style"]);const gn=Y(Ke({},ln),{className:B("token",...jt.types,mn),children:jt.content,style:Me(jt)});return tn!=null&&(gn.style=Ke(Ke({},gn.style||{}),tn)),gn},[Me])},St=/\r\n|\r|\n/,At=G=>{G.length===0?G.push({types:["plain"],content:` +`,empty:!0}):G.length===1&&G[0].content===""&&(G[0].content=` +`,G[0].empty=!0)},Kt=(G,Me)=>{const Qe=G.length;return Qe>0&&G[Qe-1]===Me?G:G.concat(Me)},nn=G=>{const Me=[[]],Qe=[G],Ct=[0],jt=[G.length];let mn=0,tn=0,ln=[];const gn=[ln];for(;tn>-1;){for(;(mn=Ct[tn]++)0?Tn:["plain"],cn=ar):(Tn=Kt(Tn,ar.type),ar.alias&&(Tn=Kt(Tn,ar.alias)),cn=ar.content),typeof cn!="string"){tn++,Me.push(Tn),Qe.push(cn),Ct.push(0),jt.push(cn.length);continue}const wr=cn.split(St),_t=wr.length;ln.push({types:Tn,content:wr[0]});for(let It=1;It<_t;It++)At(ln),gn.push(ln=[]),ln.push({types:Tn,content:wr[It]})}tn--,Me.pop(),Qe.pop(),Ct.pop(),jt.pop()}return At(ln),gn},Cn=nn,nr=({prism:G,code:Me,grammar:Qe,language:Ct})=>{const jt=(0,d.useRef)(G);return(0,d.useMemo)(()=>{if(Qe==null)return Cn([Me]);const mn={code:Me,grammar:Qe,language:Ct,tokens:[]};return jt.current.hooks.run("before-tokenize",mn),mn.tokens=jt.current.tokenize(Me,Qe),jt.current.hooks.run("after-tokenize",mn),Cn(mn.tokens)},[Me,Qe,Ct])},Gn=({children:G,language:Me,code:Qe,theme:Ct,prism:jt})=>{const mn=Me.toLowerCase(),tn=gt(mn,Ct),ln=at(tn),gn=He(tn),cn=jt.languages[mn],Tn=nr({prism:jt,language:mn,code:Qe,grammar:cn});return G({tokens:Tn,className:`prism-code language-${mn}`,style:tn!=null?tn.root:{},getLineProps:ln,getTokenProps:gn})},dr=G=>(0,d.createElement)(Gn,Y(Ke({},G),{prism:G.prism||k,theme:G.theme||bt,code:G.code,language:G.language}));var Cr=e(73191),Tr=e(35250),ya=dr,Gr=k,Gt=$,wt={Prism:Gr,theme:Gt.oneLight},$t={acss:"css",axml:"markup"},Pn=function(Me){var Qe=Me.children,Ct=Qe===void 0?"":Qe,jt=Me.lang,mn=Me.highlightLines,tn=mn===void 0?[]:mn,ln=(0,d.useRef)(),gn=(0,d.useState)(!1),cn=s()(gn,2),Tn=cn[0],pn=cn[1],ar=(0,d.useState)(Ct),wr=s()(ar,2),_t=wr[0],It=wr[1],Ut=(0,w.WF)(),qt=Ut.themeConfig;return(0,d.useEffect)(function(){var Xt=/shellscript|shell|bash|sh|zsh/.test(jt);if(Xt){var vn=Ct.replace(/^(\$|>)\s/gm,"");It(vn)}},[jt,Ct]),(0,Tr.jsxs)("div",{className:"dumi-default-source-code",children:[(0,Tr.jsx)(Cr.CopyToClipboard,{text:_t,onCopy:function(){pn(!0),clearTimeout(ln.current),ln.current=window.setTimeout(function(){return pn(!1)},2e3)},children:(0,Tr.jsx)("button",{type:"button",className:"dumi-default-source-code-copy","data-copied":Tn||void 0,children:Tn?(0,Tr.jsx)(f.r,{}):(0,Tr.jsx)(g,{})})}),(0,Tr.jsx)(ya,a()(a()({code:Ct.trim(),language:$t[jt]||jt,theme:void 0},wt),{},{children:function(vn){var or=vn.className,cr=vn.style,Vr=vn.tokens,jr=vn.getLineProps,zr=vn.getTokenProps;return(0,Tr.jsx)("pre",{className:or,style:cr,children:Vr.map(function(Sa,Na){return(0,Tr.jsxs)("div",{className:T()({highlighted:tn.includes(Na+1),wrap:qt.showLineNum}),children:[qt.showLineNum&&(0,Tr.jsx)("span",{className:"token-line-num",children:Na+1}),(0,Tr.jsx)("div",a()(a()({},jr({line:Sa,key:Na})),{},{className:T()({"line-cell":qt.showLineNum}),children:Sa.map(function(Da,Fr){return(0,Tr.jsx)("span",a()({},zr({token:Da,key:Fr})))})}))]},String(Na))})})}}))]})},Vn=Pn},30194:function(c,m,e){"use strict";e.d(m,{f:function(){return y},m:function(){return d}});var i=e(26851),a=e.n(i),r=e(39114),s=e.n(r),f=e(22827),d,v="/";function y(l){var x;return l.type==="hash"?x=(0,f.q_)():l.type==="memory"?x=(0,f.PP)(l):x=(0,f.lX)(),l.basename&&(v=l.basename),d=s()(s()({},x),{},{push:function(E,P){x.push(u(E,x),P)},replace:function(E,P){x.replace(u(E,x),P)},get location(){return x.location},get action(){return x.action}}),x}function u(l,x){if(typeof l=="string")return"".concat(h(v)).concat(l);if(a()(l)==="object"){var g=x.location.pathname;return s()(s()({},l),{},{pathname:l.pathname?"".concat(h(v)).concat(l.pathname):g})}else throw new Error("Unexpected to: ".concat(l))}function h(l){return l.slice(-1)==="/"?l.slice(0,-1):l}},47278:function(c,m,e){"use strict";e.d(m,{gD:function(){return kt},We:function(){return Mt}});var i={};e.r(i),e.d(i,{modifyClientRenderOpts:function(){return y}});var a={};e.r(a),e.d(a,{innerProvider:function(){return x}});var r={};e.r(r),e.d(r,{patchRoutes:function(){return T}});var s={};e.r(s),e.d(s,{i18nProvider:function(){return we}});var f={};e.r(f),e.d(f,{modifyClientRenderOpts:function(){return Ne}});var d=e(39114),v=e.n(d);function y(Te){var gt=Te.history,at=Te.hydrate;return v()(v()({},Te),{},{hydrate:at&&!["/~demos/:id"].includes(gt.location.pathname)})}var u=e(70079),h=e(27061),l={},x=function(gt){return u.createElement(h.B6,{context:l},gt)},g=e(59710),E=e(8026),P=e.n(E),T=function(gt){var at=gt.routes;Object.values(at).forEach(function(He){if(g.C3[He.id]){var St;if((St=He.meta)!==null&&St!==void 0&&(St=St.frontmatter)!==null&&St!==void 0&&St.debug||g.C3[He.id].frontmatter.debug)delete at[He.id];else{var At;He.meta=P()(He.meta,g.C3[He.id]),He.meta.tabs=(At=He.meta.tabs)===null||At===void 0?void 0:At.map(function(Kt){var nn={frontmatter:{title:g.eA[Kt].title},toc:[],texts:[]};return v()(v()({},g.eA[Kt]),{},{meta:g.C3[Kt]||nn})})}}})},w=e(70125),j=e.n(w),D=e(54996),B=e(58610),A=e(38104),R=e(78060),z=e(28726),K=e(29100),q=e(32666);function X(Te,gt){return Object.keys(Te).reduce(function(at,He){return at[He]=(0,A.pi)({timeZone:gt},Te[He]),at},{})}function Ie(Te,gt){var at=Object.keys((0,A.pi)((0,A.pi)({},Te),gt));return at.reduce(function(He,St){return He[St]=(0,A.pi)((0,A.pi)({},Te[St]||{}),gt[St]||{}),He},{})}function De(Te,gt){if(!gt)return Te;var at=z.C.formats;return(0,A.pi)((0,A.pi)((0,A.pi)({},at),Te),{date:Ie(X(at.date,gt),X(Te.date||{},gt)),time:Ie(X(at.time,gt),X(Te.time||{},gt))})}var Re=function(Te,gt,at,He,St){var At=Te.locale,Kt=Te.formats,nn=Te.messages,Cn=Te.defaultLocale,nr=Te.defaultFormats,Gn=Te.fallbackOnEmptyString,dr=Te.onError,Cr=Te.timeZone,Tr=Te.defaultRichTextElements;at===void 0&&(at={id:""});var ya=at.id,Gr=at.defaultMessage;(0,R.kG)(!!ya,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var Gt=String(ya),wt=nn&&Object.prototype.hasOwnProperty.call(nn,Gt)&&nn[Gt];if(Array.isArray(wt)&&wt.length===1&&wt[0].type===q.wD.literal)return wt[0].value;if(!He&&wt&&typeof wt=="string"&&!Tr)return wt.replace(/'\{(.*?)\}'/gi,"{$1}");if(He=(0,A.pi)((0,A.pi)({},Tr),He||{}),Kt=De(Kt,Cr),nr=De(nr,Cr),!wt){if(Gn===!1&&wt==="")return wt;if((!Gr||At&&At.toLowerCase()!==Cn.toLowerCase())&&dr(new K.$6(at,At)),Gr)try{var $t=gt.getMessageFormat(Gr,Cn,nr,St);return $t.format(He)}catch(Pn){return dr(new K.X9('Error formatting default message for: "'.concat(Gt,'", rendering default message verbatim'),At,at,Pn)),typeof Gr=="string"?Gr:Gt}return Gt}try{var $t=gt.getMessageFormat(wt,At,Kt,(0,A.pi)({formatters:gt},St||{}));return $t.format(He)}catch(Pn){dr(new K.X9('Error formatting message: "'.concat(Gt,'", using ').concat(Gr?"default message":"id"," as fallback."),At,at,Pn))}if(Gr)try{var $t=gt.getMessageFormat(Gr,Cn,nr,St);return $t.format(He)}catch(Pn){dr(new K.X9('Error formatting the default message for: "'.concat(Gt,'", rendering message verbatim'),At,at,Pn))}return typeof wt=="string"?wt:typeof Gr=="string"?Gr:Gt},We=["style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function Ve(Te,gt,at){var He=Te.locale,St=Te.formats,At=Te.onError;at===void 0&&(at={});var Kt=at.format,nn=Kt&&(0,B.TB)(St,"number",Kt,At)||{},Cn=(0,B.L6)(at,We,nn);return gt(He,Cn)}function Ke(Te,gt,at,He){He===void 0&&(He={});try{return Ve(Te,gt,He).format(at)}catch(St){Te.onError(new K.Qe("Error formatting number.",Te.locale,St))}return String(at)}function Y(Te,gt,at,He){He===void 0&&(He={});try{return Ve(Te,gt,He).formatToParts(at)}catch(St){Te.onError(new K.Qe("Error formatting number.",Te.locale,St))}return[]}var re=e(6477),oe=["numeric","style"];function C(Te,gt,at){var He=Te.locale,St=Te.formats,At=Te.onError;at===void 0&&(at={});var Kt=at.format,nn=!!Kt&&(0,B.TB)(St,"relative",Kt,At)||{},Cn=(0,B.L6)(at,oe,nn);return gt(He,Cn)}function N(Te,gt,at,He,St){St===void 0&&(St={}),He||(He="second");var At=Intl.RelativeTimeFormat;At||Te.onError(new re.u_(`Intl.RelativeTimeFormat is not available in this environment. Try polyfilling it using "@formatjs/intl-relativetimeformat" -`,re.jK.MISSING_INTL_API));try{return C(Ae,gt,St).format(rt,ze)}catch(Kt){Ae.onError(new W.Qe("Error formatting relative time.",Ae.locale,Kt))}return String(rt)}var Q=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function de(Ae,gt,rt,ze){var St=Ae.locale,At=Ae.formats,Kt=Ae.onError,nn=Ae.timeZone;ze===void 0&&(ze={});var An=ze.format,tr=(0,A.pi)((0,A.pi)({},nn&&{timeZone:nn}),An&&(0,B.TB)(At,gt,An,Kt)),Kn=(0,B.L6)(ze,Q,tr);return gt==="time"&&!Kn.hour&&!Kn.minute&&!Kn.second&&!Kn.timeStyle&&!Kn.dateStyle&&(Kn=(0,A.pi)((0,A.pi)({},Kn),{hour:"numeric",minute:"numeric"})),rt(St,Kn)}function k(Ae,gt){for(var rt=[],ze=2;ze0&&arguments[0]!==void 0?arguments[0]:[],M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return O.length!==M.length||O.some((L,me)=>!Object.is(L,M[me]))}function D(O){if(O==null||typeof O.didCatch!="boolean"||typeof O.resetErrorBoundary!="function")throw new Error("ErrorBoundaryContext not found")}function B(){const O=useContext(P);D(O);const[M,L]=useState({error:null,hasError:!1}),me=useMemo(()=>({resetBoundary:()=>{O.resetErrorBoundary(),L({error:null,hasError:!1})},showBoundary:ee=>L({error:ee,hasError:!0})}),[O.resetErrorBoundary]);if(M.hasError)throw M.error;return me}function A(O,M){const L=forwardRef((ee,dt)=>createElement(w,M,createElement(O,Wc(Zc({},ee),{ref:dt})))),me=O.displayName||O.name||"Unknown";return L.displayName="withErrorBoundary(".concat(me,")"),L}function R(){return R=Object.assign?Object.assign.bind():function(O){for(var M=1;MO.length)&&(M=O.length);for(var L=0,me=new Array(M);L1&&(typeof window=="undefined"||window.innerWidth>1024)){for(var qn=0;qnO.length)&&(M=O.length);for(var L=0,me=new Array(M);LO.length)&&(M=O.length);for(var L=0,me=new Array(M);LO.length)&&(M=O.length);for(var L=0,me=new Array(M);L',isBinary:!1},Ot[bn]={content:(0,Qe.AM)(Bt.react),isBinary:!1};var Vn=Qe.EV.applyPlugins({type:i.Ac.modify,key:"modifyCodeSandboxData",initialValue:{files:Ot},args:O});return(0,jn.Z)(Vn)}var Oe=function(M,L){var me,ee=document.createElement("form"),dt=document.createElement("input"),ft=xe(M);ee.method="POST",ee.target="_blank",ee.style.display="none",ee.action=(L==null?void 0:L.api)||Je,ee.appendChild(dt),ee.setAttribute("data-demo",((me=M.assets)===null||me===void 0?void 0:me.id)||""),dt.name="parameters",dt.value=ft,document.body.appendChild(ee),ee.submit(),ee.remove()},tt=e(39114),nt=e.n(tt),ce=e(77937),$e=e.n(ce),ut=e(41176),Xe=e.n(ut),xt=e(26851),I=e.n(xt),V=e(70125),we=e.n(V),Le=500,et=20,it=300,Ue="https://stackblitz.com",mt=["angular-cli","create-react-app","html","javascript","node","polymer","typescript","vue"],Et=["project","search","ports","settings"],kt=["light","dark"],Mt=["editor","preview"],Ae={clickToLoad:function(M){return rt("ctl",M)},devToolsHeight:function(M){return St("devtoolsheight",M)},forceEmbedLayout:function(M){return rt("embed",M)},hideDevTools:function(M){return rt("hidedevtools",M)},hideExplorer:function(M){return rt("hideExplorer",M)},hideNavigation:function(M){return rt("hideNavigation",M)},openFile:function(M){return Kt("file",M)},showSidebar:function(M){return ze("showSidebar",M)},sidebarView:function(M){return At("sidebarView",M,Et)},startScript:function(M){return Kt("startScript",M)},terminalHeight:function(M){return St("terminalHeight",M)},theme:function(M){return At("theme",M,kt)},view:function(M){return At("view",M,Mt)},zenMode:function(M){return rt("zenMode",M)}};function gt(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=Object.entries(O).map(function(L){var me=we()(L,2),ee=me[0],dt=me[1];return dt!=null&&Ae.hasOwnProperty(ee)?Ae[ee](dt):""}).filter(Boolean);return M.length?"?".concat(M.join("&")):""}function rt(O,M){return M===!0?"".concat(O,"=1"):""}function ze(O,M){return typeof M=="boolean"?"".concat(O,"=").concat(M?"1":"0"):""}function St(O,M){if(typeof M=="number"&&!Number.isNaN(M)){var L=Math.min(100,Math.max(0,M));return"".concat(O,"=").concat(encodeURIComponent(Math.round(L)))}return""}function At(O){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return L.includes(M)?"".concat(O,"=").concat(encodeURIComponent(M)):""}function Kt(O,M){var L=Array.isArray(M)?M:[M];return L.filter(function(me){return typeof me=="string"&&me.trim()!==""}).map(function(me){return"".concat(O,"=").concat(encodeURIComponent(me))}).join("&")}function nn(){return Math.random().toString(36).slice(2,6)+Math.random().toString(36).slice(2,6)}function An(O,M){return"".concat(Kn(M)).concat(O).concat(gt(M))}function tr(O,M){var L={forceEmbedLayout:!0};return M&&I()(M)==="object"&&Object.assign(L,M),"".concat(Kn(L)).concat(O).concat(gt(L))}function Kn(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=typeof O.origin=="string"?O.origin:Ue;return M.replace(/\/$/,"")}function cr(O,M,L){if(!M||!O||!O.parentNode)throw new Error("Invalid Element");O.id&&(M.id=O.id),O.className&&(M.className=O.className),va(M,L),O.replaceWith(M)}function Tr(O){if(typeof O=="string"){var M=document.getElementById(O);if(!M)throw new Error("Could not find element with id '".concat(O,"'"));return M}else if(O instanceof HTMLElement)return O;throw new Error("Invalid element: ".concat(O))}function Or(O){return O&&O.newWindow===!1?"_self":"_blank"}function va(O){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},L=Object.hasOwnProperty.call(M,"height")?"".concat(M.height):"".concat(it),me=Object.hasOwnProperty.call(M,"width")?"".concat(M.width):void 0;O.setAttribute("height",L),me?O.setAttribute("width",me):O.setAttribute("style","width:100%;")}var Gr=function(){function O(M){$e()(this,O),this.pending={},this.port=M,this.port.onmessage=this.messageListener.bind(this)}return Xe()(O,[{key:"request",value:function(L){var me=this,ee=L.type,dt=L.payload;return new Promise(function(ft,Tt){var Ot=nn();me.pending[Ot]={resolve:ft,reject:Tt},me.port.postMessage({type:ee,payload:nt()(nt()({},dt),{},{__reqid:Ot})})})}},{key:"messageListener",value:function(L){var me;if(typeof((me=L.data.payload)===null||me===void 0?void 0:me.__reqid)=="string"){var ee=L.data,dt=ee.type,ft=ee.payload,Tt=ft.__reqid,Ot=ft.__success,Bt=ft.__error;this.pending[Tt]&&(Ot?this.pending[Tt].resolve(this.cleanResult(ft)):this.pending[Tt].reject(Bt?"".concat(dt,": ").concat(Bt):dt),delete this.pending[Tt])}}},{key:"cleanResult",value:function(L){var me=nt()({},L);return delete me.__reqid,delete me.__success,delete me.__error,Object.keys(me).length?me:null}}]),O}(),Gt=function(){function O(M,L){var me=this;$e()(this,O),this.editor={openFile:function(dt){return me._rdc.request({type:"SDK_OPEN_FILE",payload:{path:dt}})},setCurrentFile:function(dt){return me._rdc.request({type:"SDK_SET_CURRENT_FILE",payload:{path:dt}})},setTheme:function(dt){return me._rdc.request({type:"SDK_SET_UI_THEME",payload:{theme:dt}})},setView:function(dt){return me._rdc.request({type:"SDK_SET_UI_VIEW",payload:{view:dt}})},showSidebar:function(){var dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return me._rdc.request({type:"SDK_TOGGLE_SIDEBAR",payload:{visible:dt}})}},this.preview={origin:"",getUrl:function(){return me._rdc.request({type:"SDK_GET_PREVIEW_URL",payload:{}}).then(function(dt){var ft;return(ft=dt==null?void 0:dt.url)!==null&&ft!==void 0?ft:null})},setUrl:function(){var dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"/";if(typeof dt!="string"||!dt.startsWith("/"))throw new Error("Invalid argument: expected a path starting with '/', got '".concat(dt,"'"));return me._rdc.request({type:"SDK_SET_PREVIEW_URL",payload:{path:dt}})}},this._rdc=new Gr(M),Object.defineProperty(this.preview,"origin",{value:typeof L.previewOrigin=="string"?L.previewOrigin:null,writable:!1})}return Xe()(O,[{key:"applyFsDiff",value:function(L){var me=function(dt){return dt!==null&&I()(dt)==="object"};if(!me(L)||!me(L.create))throw new Error("Invalid diff object: expected diff.create to be an object.");if(!Array.isArray(L.destroy))throw new Error("Invalid diff object: expected diff.destroy to be an array.");return this._rdc.request({type:"SDK_APPLY_FS_DIFF",payload:L})}},{key:"getDependencies",value:function(){return this._rdc.request({type:"SDK_GET_DEPS_SNAPSHOT",payload:{}})}},{key:"getFsSnapshot",value:function(){return this._rdc.request({type:"SDK_GET_FS_SNAPSHOT",payload:{}})}}]),O}(),wt=[],$t=Xe()(function O(M){var L=this;$e()(this,O),this.id=nn(),this.element=M,this.pending=new Promise(function(me,ee){var dt=function(Vn){var Pn=Vn.data,Tn=Vn.ports;(Pn==null?void 0:Pn.action)==="SDK_INIT_SUCCESS"&&Pn.id===L.id&&(L.vm=new Gt(Tn[0],Pn.payload),me(L.vm),Tt())},ft=function(){var Vn;(Vn=L.element.contentWindow)===null||Vn===void 0||Vn.postMessage({action:"SDK_INIT",id:L.id},"*")};function Tt(){window.clearInterval(Bt),window.removeEventListener("message",dt)}window.addEventListener("message",dt),ft();var Ot=0,Bt=window.setInterval(function(){if(L.vm){Tt();return}if(Ot>=et){Tt(),ee("Timeout: Unable to establish a connection with the StackBlitz VM"),wt.forEach(function(bn,Vn){bn.id===L.id&&wt.splice(Vn,1)});return}Ot++,ft()},Le)}),wt.push(this)}),On=function(M){var L,me=M instanceof Element?"element":"id";return(L=wt.find(function(ee){return ee[me]===M}))!==null&&L!==void 0?L:null};function Gn(O,M){var L=document.createElement("input");return L.type="hidden",L.name=O,L.value=M,L}function K(O){return O.replace(/\[/g,"%5B").replace(/\]/g,"%5D")}function De(O){var M=O.template,L=O.title,me=O.description,ee=O.dependencies,dt=O.files,ft=O.settings;if(!mt.includes(M)){var Tt=mt.map(function(Vn){return"'".concat(Vn,"'")}).join(", ");console.warn("Unsupported project.template: must be one of ".concat(Tt))}var Ot=[],Bt=function(Pn,Tn){var qn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";Ot.push(Gn(Pn,typeof Tn=="string"?Tn:qn))};Bt("project[title]",L),typeof me=="string"&&me.length>0&&Bt("project[description]",me),Bt("project[template]",M,"javascript"),ee&&(M==="node"?console.warn("Invalid project.dependencies: dependencies must be provided as a 'package.json' file when using the 'node' template."):Bt("project[dependencies]",JSON.stringify(ee))),ft&&Bt("project[settings]",JSON.stringify(ft)),Object.entries(dt).forEach(function(Vn){var Pn=we()(Vn,2),Tn=Pn[0],qn=Pn[1];Bt("project[files][".concat(K(Tn),"]"),qn)});var bn=document.createElement("form");return bn.method="POST",bn.setAttribute("style","display:none!important;"),bn.append.apply(bn,Ot),bn}function Ye(O,M){var L=De(O);L.action=tr("/run",M),L.id="sb_run";var me=` +For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function Ht(Te,gt){var at=(0,B.ax)(gt),He=(0,A.pi)((0,A.pi)({},B.Z0),Te),St=He.locale,At=He.defaultLocale,Kt=He.onError;return St?!Intl.NumberFormat.supportedLocalesOf(St).length&&Kt?Kt(new K.gb('Missing locale data for locale: "'.concat(St,'" in Intl.NumberFormat. Using default locale: "').concat(At,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(St).length&&Kt&&Kt(new K.gb('Missing locale data for locale: "'.concat(St,'" in Intl.DateTimeFormat. Using default locale: "').concat(At,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(Kt&&Kt(new K.OV('"locale" was not configured, using "'.concat(At,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),He.locale=He.defaultLocale||"en"),ot(He),(0,A.pi)((0,A.pi)({},He),{formatters:at,formatNumber:Ke.bind(null,He,at.getNumberFormat),formatNumberToParts:Y.bind(null,He,at.getNumberFormat),formatRelativeTime:N.bind(null,He,at.getRelativeTimeFormat),formatDate:k.bind(null,He,at.getDateTimeFormat),formatDateToParts:ge.bind(null,He,at.getDateTimeFormat),formatTime:$.bind(null,He,at.getDateTimeFormat),formatDateTimeRange:Z.bind(null,He,at.getDateTimeFormat),formatTimeToParts:lt.bind(null,He,at.getDateTimeFormat),formatPlural:Dt.bind(null,He,at.getPluralRules),formatMessage:Re.bind(null,He,at),$t:Re.bind(null,He,at),formatList:An.bind(null,He,at.getListFormat),formatListToParts:Fn.bind(null,He,at.getListFormat),formatDisplayName:xt.bind(null,He,at.getDisplayNames)})}var ke=e(77136),$e=e(76858),qe=e(57421);function Ee(Te){return{locale:Te.locale,timeZone:Te.timeZone,fallbackOnEmptyString:Te.fallbackOnEmptyString,formats:Te.formats,textComponent:Te.textComponent,messages:Te.messages,defaultLocale:Te.defaultLocale,defaultFormats:Te.defaultFormats,onError:Te.onError,onWarn:Te.onWarn,wrapRichTextChunksInFragment:Te.wrapRichTextChunksInFragment,defaultRichTextElements:Te.defaultRichTextElements}}function Pe(Te){return Te&&Object.keys(Te).reduce(function(gt,at){var He=Te[at];return gt[at]=(0,qe.Gt)(He)?(0,ke.dt)(He):He,gt},{})}var tt=function(Te,gt,at,He){for(var St=[],At=4;At0&&arguments[0]!==void 0?arguments[0]:[],M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return O.length!==M.length||O.some((L,he)=>!Object.is(L,M[he]))}function D(O){if(O==null||typeof O.didCatch!="boolean"||typeof O.resetErrorBoundary!="function")throw new Error("ErrorBoundaryContext not found")}function B(){const O=useContext(P);D(O);const[M,L]=useState({error:null,hasError:!1}),he=useMemo(()=>({resetBoundary:()=>{O.resetErrorBoundary(),L({error:null,hasError:!1})},showBoundary:ee=>L({error:ee,hasError:!0})}),[O.resetErrorBoundary]);if(M.hasError)throw M.error;return he}function A(O,M){const L=forwardRef((ee,dt)=>createElement(w,M,createElement(O,Wc(Zc({},ee),{ref:dt})))),he=O.displayName||O.name||"Unknown";return L.displayName="withErrorBoundary(".concat(he,")"),L}function R(){return R=Object.assign?Object.assign.bind():function(O){for(var M=1;MO.length)&&(M=O.length);for(var L=0,he=new Array(M);L1&&(typeof window=="undefined"||window.innerWidth>1024)){for(var er=0;erO.length)&&(M=O.length);for(var L=0,he=new Array(M);LO.length)&&(M=O.length);for(var L=0,he=new Array(M);LO.length)&&(M=O.length);for(var L=0,he=new Array(M);L',isBinary:!1},Ot[xn]={content:(0,Xe.AM)(Bt.react),isBinary:!1};var Yn=Xe.EV.applyPlugins({type:i.Ac.modify,key:"modifyCodeSandboxData",initialValue:{files:Ot},args:O});return(0,Fn.Z)(Yn)}var Pe=function(M,L){var he,ee=document.createElement("form"),dt=document.createElement("input"),ft=Ee(M);ee.method="POST",ee.target="_blank",ee.style.display="none",ee.action=(L==null?void 0:L.api)||qe,ee.appendChild(dt),ee.setAttribute("data-demo",((he=M.assets)===null||he===void 0?void 0:he.id)||""),dt.name="parameters",dt.value=ft,document.body.appendChild(ee),ee.submit(),ee.remove()},tt=e(39114),nt=e.n(tt),de=e(77937),Ue=e.n(de),st=e(41176),Je=e.n(st),bt=e(26851),I=e.n(bt),V=e(70125),we=e.n(V),Ne=500,et=20,ut=300,ze="https://stackblitz.com",mt=["angular-cli","create-react-app","html","javascript","node","polymer","typescript","vue"],Et=["project","search","ports","settings"],kt=["light","dark"],Mt=["editor","preview"],Te={clickToLoad:function(M){return at("ctl",M)},devToolsHeight:function(M){return St("devtoolsheight",M)},forceEmbedLayout:function(M){return at("embed",M)},hideDevTools:function(M){return at("hidedevtools",M)},hideExplorer:function(M){return at("hideExplorer",M)},hideNavigation:function(M){return at("hideNavigation",M)},openFile:function(M){return Kt("file",M)},showSidebar:function(M){return He("showSidebar",M)},sidebarView:function(M){return At("sidebarView",M,Et)},startScript:function(M){return Kt("startScript",M)},terminalHeight:function(M){return St("terminalHeight",M)},theme:function(M){return At("theme",M,kt)},view:function(M){return At("view",M,Mt)},zenMode:function(M){return at("zenMode",M)}};function gt(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=Object.entries(O).map(function(L){var he=we()(L,2),ee=he[0],dt=he[1];return dt!=null&&Te.hasOwnProperty(ee)?Te[ee](dt):""}).filter(Boolean);return M.length?"?".concat(M.join("&")):""}function at(O,M){return M===!0?"".concat(O,"=1"):""}function He(O,M){return typeof M=="boolean"?"".concat(O,"=").concat(M?"1":"0"):""}function St(O,M){if(typeof M=="number"&&!Number.isNaN(M)){var L=Math.min(100,Math.max(0,M));return"".concat(O,"=").concat(encodeURIComponent(Math.round(L)))}return""}function At(O){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return L.includes(M)?"".concat(O,"=").concat(encodeURIComponent(M)):""}function Kt(O,M){var L=Array.isArray(M)?M:[M];return L.filter(function(he){return typeof he=="string"&&he.trim()!==""}).map(function(he){return"".concat(O,"=").concat(encodeURIComponent(he))}).join("&")}function nn(){return Math.random().toString(36).slice(2,6)+Math.random().toString(36).slice(2,6)}function Cn(O,M){return"".concat(Gn(M)).concat(O).concat(gt(M))}function nr(O,M){var L={forceEmbedLayout:!0};return M&&I()(M)==="object"&&Object.assign(L,M),"".concat(Gn(L)).concat(O).concat(gt(L))}function Gn(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=typeof O.origin=="string"?O.origin:ze;return M.replace(/\/$/,"")}function dr(O,M,L){if(!M||!O||!O.parentNode)throw new Error("Invalid Element");O.id&&(M.id=O.id),O.className&&(M.className=O.className),ya(M,L),O.replaceWith(M)}function Cr(O){if(typeof O=="string"){var M=document.getElementById(O);if(!M)throw new Error("Could not find element with id '".concat(O,"'"));return M}else if(O instanceof HTMLElement)return O;throw new Error("Invalid element: ".concat(O))}function Tr(O){return O&&O.newWindow===!1?"_self":"_blank"}function ya(O){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},L=Object.hasOwnProperty.call(M,"height")?"".concat(M.height):"".concat(ut),he=Object.hasOwnProperty.call(M,"width")?"".concat(M.width):void 0;O.setAttribute("height",L),he?O.setAttribute("width",he):O.setAttribute("style","width:100%;")}var Gr=function(){function O(M){Ue()(this,O),this.pending={},this.port=M,this.port.onmessage=this.messageListener.bind(this)}return Je()(O,[{key:"request",value:function(L){var he=this,ee=L.type,dt=L.payload;return new Promise(function(ft,Tt){var Ot=nn();he.pending[Ot]={resolve:ft,reject:Tt},he.port.postMessage({type:ee,payload:nt()(nt()({},dt),{},{__reqid:Ot})})})}},{key:"messageListener",value:function(L){var he;if(typeof((he=L.data.payload)===null||he===void 0?void 0:he.__reqid)=="string"){var ee=L.data,dt=ee.type,ft=ee.payload,Tt=ft.__reqid,Ot=ft.__success,Bt=ft.__error;this.pending[Tt]&&(Ot?this.pending[Tt].resolve(this.cleanResult(ft)):this.pending[Tt].reject(Bt?"".concat(dt,": ").concat(Bt):dt),delete this.pending[Tt])}}},{key:"cleanResult",value:function(L){var he=nt()({},L);return delete he.__reqid,delete he.__success,delete he.__error,Object.keys(he).length?he:null}}]),O}(),Gt=function(){function O(M,L){var he=this;Ue()(this,O),this.editor={openFile:function(dt){return he._rdc.request({type:"SDK_OPEN_FILE",payload:{path:dt}})},setCurrentFile:function(dt){return he._rdc.request({type:"SDK_SET_CURRENT_FILE",payload:{path:dt}})},setTheme:function(dt){return he._rdc.request({type:"SDK_SET_UI_THEME",payload:{theme:dt}})},setView:function(dt){return he._rdc.request({type:"SDK_SET_UI_VIEW",payload:{view:dt}})},showSidebar:function(){var dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return he._rdc.request({type:"SDK_TOGGLE_SIDEBAR",payload:{visible:dt}})}},this.preview={origin:"",getUrl:function(){return he._rdc.request({type:"SDK_GET_PREVIEW_URL",payload:{}}).then(function(dt){var ft;return(ft=dt==null?void 0:dt.url)!==null&&ft!==void 0?ft:null})},setUrl:function(){var dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"/";if(typeof dt!="string"||!dt.startsWith("/"))throw new Error("Invalid argument: expected a path starting with '/', got '".concat(dt,"'"));return he._rdc.request({type:"SDK_SET_PREVIEW_URL",payload:{path:dt}})}},this._rdc=new Gr(M),Object.defineProperty(this.preview,"origin",{value:typeof L.previewOrigin=="string"?L.previewOrigin:null,writable:!1})}return Je()(O,[{key:"applyFsDiff",value:function(L){var he=function(dt){return dt!==null&&I()(dt)==="object"};if(!he(L)||!he(L.create))throw new Error("Invalid diff object: expected diff.create to be an object.");if(!Array.isArray(L.destroy))throw new Error("Invalid diff object: expected diff.destroy to be an array.");return this._rdc.request({type:"SDK_APPLY_FS_DIFF",payload:L})}},{key:"getDependencies",value:function(){return this._rdc.request({type:"SDK_GET_DEPS_SNAPSHOT",payload:{}})}},{key:"getFsSnapshot",value:function(){return this._rdc.request({type:"SDK_GET_FS_SNAPSHOT",payload:{}})}}]),O}(),wt=[],$t=Je()(function O(M){var L=this;Ue()(this,O),this.id=nn(),this.element=M,this.pending=new Promise(function(he,ee){var dt=function(Yn){var kn=Yn.data,On=Yn.ports;(kn==null?void 0:kn.action)==="SDK_INIT_SUCCESS"&&kn.id===L.id&&(L.vm=new Gt(On[0],kn.payload),he(L.vm),Tt())},ft=function(){var Yn;(Yn=L.element.contentWindow)===null||Yn===void 0||Yn.postMessage({action:"SDK_INIT",id:L.id},"*")};function Tt(){window.clearInterval(Bt),window.removeEventListener("message",dt)}window.addEventListener("message",dt),ft();var Ot=0,Bt=window.setInterval(function(){if(L.vm){Tt();return}if(Ot>=et){Tt(),ee("Timeout: Unable to establish a connection with the StackBlitz VM"),wt.forEach(function(xn,Yn){xn.id===L.id&&wt.splice(Yn,1)});return}Ot++,ft()},Ne)}),wt.push(this)}),Pn=function(M){var L,he=M instanceof Element?"element":"id";return(L=wt.find(function(ee){return ee[he]===M}))!==null&&L!==void 0?L:null};function Vn(O,M){var L=document.createElement("input");return L.type="hidden",L.name=O,L.value=M,L}function G(O){return O.replace(/\[/g,"%5B").replace(/\]/g,"%5D")}function Me(O){var M=O.template,L=O.title,he=O.description,ee=O.dependencies,dt=O.files,ft=O.settings;if(!mt.includes(M)){var Tt=mt.map(function(Yn){return"'".concat(Yn,"'")}).join(", ");console.warn("Unsupported project.template: must be one of ".concat(Tt))}var Ot=[],Bt=function(kn,On){var er=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";Ot.push(Vn(kn,typeof On=="string"?On:er))};Bt("project[title]",L),typeof he=="string"&&he.length>0&&Bt("project[description]",he),Bt("project[template]",M,"javascript"),ee&&(M==="node"?console.warn("Invalid project.dependencies: dependencies must be provided as a 'package.json' file when using the 'node' template."):Bt("project[dependencies]",JSON.stringify(ee))),ft&&Bt("project[settings]",JSON.stringify(ft)),Object.entries(dt).forEach(function(Yn){var kn=we()(Yn,2),On=kn[0],er=kn[1];Bt("project[files][".concat(G(On),"]"),er)});var xn=document.createElement("form");return xn.method="POST",xn.setAttribute("style","display:none!important;"),xn.append.apply(xn,Ot),xn}function Qe(O,M){var L=Me(O);L.action=nr("/run",M),L.id="sb_run";var he=` `.concat(L.outerHTML,` + \ No newline at end of file diff --git a/docs/~demos/docs-api-base-block-demo-0/index.html b/docs/~demos/docs-api-base-block-demo-0/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-base-block-demo-0/index.html +++ b/docs/~demos/docs-api-base-block-demo-0/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-base-block-demo-1/index.html b/docs/~demos/docs-api-base-block-demo-1/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-base-block-demo-1/index.html +++ b/docs/~demos/docs-api-base-block-demo-1/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-base-block-demo-2/index.html b/docs/~demos/docs-api-base-block-demo-2/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-base-block-demo-2/index.html +++ b/docs/~demos/docs-api-base-block-demo-2/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-base-block-demo-3/index.html b/docs/~demos/docs-api-base-block-demo-3/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-base-block-demo-3/index.html +++ b/docs/~demos/docs-api-base-block-demo-3/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-base-block-demo-4/index.html b/docs/~demos/docs-api-base-block-demo-4/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-base-block-demo-4/index.html +++ b/docs/~demos/docs-api-base-block-demo-4/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-base-derive-demo-0/index.html b/docs/~demos/docs-api-base-derive-demo-0/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-base-derive-demo-0/index.html +++ b/docs/~demos/docs-api-base-derive-demo-0/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-base-dynamic-block-demo-0/index.html b/docs/~demos/docs-api-base-dynamic-block-demo-0/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-base-dynamic-block-demo-0/index.html +++ b/docs/~demos/docs-api-base-dynamic-block-demo-0/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-base-mutate-dict-demo-0/index.html b/docs/~demos/docs-api-base-mutate-dict-demo-0/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-base-mutate-dict-demo-0/index.html +++ b/docs/~demos/docs-api-base-mutate-dict-demo-0/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-base-run-derive-task-demo-0/index.html b/docs/~demos/docs-api-base-run-derive-task-demo-0/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-base-run-derive-task-demo-0/index.html +++ b/docs/~demos/docs-api-base-run-derive-task-demo-0/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-base-run-mutate-demo-0/index.html b/docs/~demos/docs-api-base-run-mutate-demo-0/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-base-run-mutate-demo-0/index.html +++ b/docs/~demos/docs-api-base-run-mutate-demo-0/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-base-run-mutate-task-demo-0/index.html b/docs/~demos/docs-api-base-run-mutate-task-demo-0/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-base-run-mutate-task-demo-0/index.html +++ b/docs/~demos/docs-api-base-run-mutate-task-demo-0/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-base-signal-demo-0/index.html b/docs/~demos/docs-api-base-signal-demo-0/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-base-signal-demo-0/index.html +++ b/docs/~demos/docs-api-base-signal-demo-0/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-base-signal-demo-1/index.html b/docs/~demos/docs-api-base-signal-demo-1/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-base-signal-demo-1/index.html +++ b/docs/~demos/docs-api-base-signal-demo-1/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-base-signal-demo-2/index.html b/docs/~demos/docs-api-base-signal-demo-2/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-base-signal-demo-2/index.html +++ b/docs/~demos/docs-api-base-signal-demo-2/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-base-signal-demo-3/index.html b/docs/~demos/docs-api-base-signal-demo-3/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-base-signal-demo-3/index.html +++ b/docs/~demos/docs-api-base-signal-demo-3/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-base-sync-demo-0/index.html b/docs/~demos/docs-api-base-sync-demo-0/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-base-sync-demo-0/index.html +++ b/docs/~demos/docs-api-base-sync-demo-0/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-base-sync-demo-1/index.html b/docs/~demos/docs-api-base-sync-demo-1/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-base-sync-demo-1/index.html +++ b/docs/~demos/docs-api-base-sync-demo-1/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-base-syncer-demo-0/index.html b/docs/~demos/docs-api-base-syncer-demo-0/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-base-syncer-demo-0/index.html +++ b/docs/~demos/docs-api-base-syncer-demo-0/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-base-syncer-demo-1/index.html b/docs/~demos/docs-api-base-syncer-demo-1/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-base-syncer-demo-1/index.html +++ b/docs/~demos/docs-api-base-syncer-demo-1/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-base-syncer-demo-2/index.html b/docs/~demos/docs-api-base-syncer-demo-2/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-base-syncer-demo-2/index.html +++ b/docs/~demos/docs-api-base-syncer-demo-2/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-base-syncer-demo-3/index.html b/docs/~demos/docs-api-base-syncer-demo-3/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-base-syncer-demo-3/index.html +++ b/docs/~demos/docs-api-base-syncer-demo-3/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-base-syncer-demo-4/index.html b/docs/~demos/docs-api-base-syncer-demo-4/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-base-syncer-demo-4/index.html +++ b/docs/~demos/docs-api-base-syncer-demo-4/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-base-watch-demo-watch-root-node/index.html b/docs/~demos/docs-api-base-watch-demo-watch-root-node/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-base-watch-demo-watch-root-node/index.html +++ b/docs/~demos/docs-api-base-watch-demo-watch-root-node/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-base-watch-demo-watch-sub-node/index.html b/docs/~demos/docs-api-base-watch-demo-watch-sub-node/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-base-watch-demo-watch-sub-node/index.html +++ b/docs/~demos/docs-api-base-watch-demo-watch-sub-node/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-hooks-use-action-loading-demo-0/index.html b/docs/~demos/docs-api-hooks-use-action-loading-demo-0/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-hooks-use-action-loading-demo-0/index.html +++ b/docs/~demos/docs-api-hooks-use-action-loading-demo-0/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-hooks-use-atom-demo-0/index.html b/docs/~demos/docs-api-hooks-use-atom-demo-0/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-hooks-use-atom-demo-0/index.html +++ b/docs/~demos/docs-api-hooks-use-atom-demo-0/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-hooks-use-atom-demo-1/index.html b/docs/~demos/docs-api-hooks-use-atom-demo-1/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-hooks-use-atom-demo-1/index.html +++ b/docs/~demos/docs-api-hooks-use-atom-demo-1/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-hooks-use-atom-demo-2/index.html b/docs/~demos/docs-api-hooks-use-atom-demo-2/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-hooks-use-atom-demo-2/index.html +++ b/docs/~demos/docs-api-hooks-use-atom-demo-2/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-hooks-use-atom-demo-3/index.html b/docs/~demos/docs-api-hooks-use-atom-demo-3/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-hooks-use-atom-demo-3/index.html +++ b/docs/~demos/docs-api-hooks-use-atom-demo-3/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-hooks-use-atom-demo-4/index.html b/docs/~demos/docs-api-hooks-use-atom-demo-4/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-hooks-use-atom-demo-4/index.html +++ b/docs/~demos/docs-api-hooks-use-atom-demo-4/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-hooks-use-atom-demo-5/index.html b/docs/~demos/docs-api-hooks-use-atom-demo-5/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-hooks-use-atom-demo-5/index.html +++ b/docs/~demos/docs-api-hooks-use-atom-demo-5/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-hooks-use-atom-demo-6/index.html b/docs/~demos/docs-api-hooks-use-atom-demo-6/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-hooks-use-atom-demo-6/index.html +++ b/docs/~demos/docs-api-hooks-use-atom-demo-6/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-hooks-use-atom-demo-setting-pure/index.html b/docs/~demos/docs-api-hooks-use-atom-demo-setting-pure/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-hooks-use-atom-demo-setting-pure/index.html +++ b/docs/~demos/docs-api-hooks-use-atom-demo-setting-pure/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-hooks-use-atom-x-demo-0/index.html b/docs/~demos/docs-api-hooks-use-atom-x-demo-0/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-hooks-use-atom-x-demo-0/index.html +++ b/docs/~demos/docs-api-hooks-use-atom-x-demo-0/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-hooks-use-derived-demo-0/index.html b/docs/~demos/docs-api-hooks-use-derived-demo-0/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-hooks-use-derived-demo-0/index.html +++ b/docs/~demos/docs-api-hooks-use-derived-demo-0/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-hooks-use-derived-demo-1/index.html b/docs/~demos/docs-api-hooks-use-derived-demo-1/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-hooks-use-derived-demo-1/index.html +++ b/docs/~demos/docs-api-hooks-use-derived-demo-1/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-hooks-use-global-force-update-demo-0/index.html b/docs/~demos/docs-api-hooks-use-global-force-update-demo-0/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-hooks-use-global-force-update-demo-0/index.html +++ b/docs/~demos/docs-api-hooks-use-global-force-update-demo-0/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-hooks-use-global-force-update-demo-1/index.html b/docs/~demos/docs-api-hooks-use-global-force-update-demo-1/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-hooks-use-global-force-update-demo-1/index.html +++ b/docs/~demos/docs-api-hooks-use-global-force-update-demo-1/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-hooks-use-global-id-demo-0/index.html b/docs/~demos/docs-api-hooks-use-global-id-demo-0/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-hooks-use-global-id-demo-0/index.html +++ b/docs/~demos/docs-api-hooks-use-global-id-demo-0/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-hooks-use-local-force-update-demo-0/index.html b/docs/~demos/docs-api-hooks-use-local-force-update-demo-0/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-hooks-use-local-force-update-demo-0/index.html +++ b/docs/~demos/docs-api-hooks-use-local-force-update-demo-0/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-hooks-use-mutable-demo-0/index.html b/docs/~demos/docs-api-hooks-use-mutable-demo-0/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-hooks-use-mutable-demo-0/index.html +++ b/docs/~demos/docs-api-hooks-use-mutable-demo-0/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-hooks-use-mutate-loading-demo-0/index.html b/docs/~demos/docs-api-hooks-use-mutate-loading-demo-0/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-hooks-use-mutate-loading-demo-0/index.html +++ b/docs/~demos/docs-api-hooks-use-mutate-loading-demo-0/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-hooks-use-on-event-demo-0/index.html b/docs/~demos/docs-api-hooks-use-on-event-demo-0/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-hooks-use-on-event-demo-0/index.html +++ b/docs/~demos/docs-api-hooks-use-on-event-demo-0/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-hooks-use-on-event-demo-1/index.html b/docs/~demos/docs-api-hooks-use-on-event-demo-1/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-hooks-use-on-event-demo-1/index.html +++ b/docs/~demos/docs-api-hooks-use-on-event-demo-1/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-hooks-use-reactive-demo-0/index.html b/docs/~demos/docs-api-hooks-use-reactive-demo-0/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-hooks-use-reactive-demo-0/index.html +++ b/docs/~demos/docs-api-hooks-use-reactive-demo-0/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-hooks-use-reactive-demo-1/index.html b/docs/~demos/docs-api-hooks-use-reactive-demo-1/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-hooks-use-reactive-demo-1/index.html +++ b/docs/~demos/docs-api-hooks-use-reactive-demo-1/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-hooks-use-reactive-demo-2/index.html b/docs/~demos/docs-api-hooks-use-reactive-demo-2/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-hooks-use-reactive-demo-2/index.html +++ b/docs/~demos/docs-api-hooks-use-reactive-demo-2/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-hooks-use-service-demo-0/index.html b/docs/~demos/docs-api-hooks-use-service-demo-0/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-hooks-use-service-demo-0/index.html +++ b/docs/~demos/docs-api-hooks-use-service-demo-0/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-hooks-use-service-demo-1/index.html b/docs/~demos/docs-api-hooks-use-service-demo-1/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-hooks-use-service-demo-1/index.html +++ b/docs/~demos/docs-api-hooks-use-service-demo-1/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-hooks-use-service-demo-2/index.html b/docs/~demos/docs-api-hooks-use-service-demo-2/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-hooks-use-service-demo-2/index.html +++ b/docs/~demos/docs-api-hooks-use-service-demo-2/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-hooks-use-watch-demo-0/index.html b/docs/~demos/docs-api-hooks-use-watch-demo-0/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-hooks-use-watch-demo-0/index.html +++ b/docs/~demos/docs-api-hooks-use-watch-demo-0/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-hooks-use-watch-demo-1/index.html b/docs/~demos/docs-api-hooks-use-watch-demo-1/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-hooks-use-watch-demo-1/index.html +++ b/docs/~demos/docs-api-hooks-use-watch-demo-1/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-hooks-use-watch-demo-2/index.html b/docs/~demos/docs-api-hooks-use-watch-demo-2/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-hooks-use-watch-demo-2/index.html +++ b/docs/~demos/docs-api-hooks-use-watch-demo-2/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-hooks-use-watch-demo-3/index.html b/docs/~demos/docs-api-hooks-use-watch-demo-3/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-api-hooks-use-watch-demo-3/index.html +++ b/docs/~demos/docs-api-hooks-use-watch-demo-3/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-api-utils-flush-demo-0/index.html b/docs/~demos/docs-api-utils-flush-demo-0/index.html new file mode 100644 index 00000000..ce7162b2 --- /dev/null +++ b/docs/~demos/docs-api-utils-flush-demo-0/index.html @@ -0,0 +1,12 @@ + + + + + + + + +
+ + + \ No newline at end of file diff --git a/docs/~demos/docs-api-utils-flush-demo-1/index.html b/docs/~demos/docs-api-utils-flush-demo-1/index.html new file mode 100644 index 00000000..ce7162b2 --- /dev/null +++ b/docs/~demos/docs-api-utils-flush-demo-1/index.html @@ -0,0 +1,12 @@ + + + + + + + + +
+ + + \ No newline at end of file diff --git a/docs/~demos/docs-api-utils-shallow-compare-demo-0/index.html b/docs/~demos/docs-api-utils-shallow-compare-demo-0/index.html new file mode 100644 index 00000000..ce7162b2 --- /dev/null +++ b/docs/~demos/docs-api-utils-shallow-compare-demo-0/index.html @@ -0,0 +1,12 @@ + + + + + + + + +
+ + + \ No newline at end of file diff --git a/docs/~demos/docs-guide-action-demo-0/index.html b/docs/~demos/docs-guide-action-demo-0/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-guide-action-demo-0/index.html +++ b/docs/~demos/docs-guide-action-demo-0/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-guide-action-demo-1/index.html b/docs/~demos/docs-guide-action-demo-1/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-guide-action-demo-1/index.html +++ b/docs/~demos/docs-guide-action-demo-1/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-guide-atom-demo-0/index.html b/docs/~demos/docs-guide-atom-demo-0/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-guide-atom-demo-0/index.html +++ b/docs/~demos/docs-guide-atom-demo-0/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-guide-atom-demo-1/index.html b/docs/~demos/docs-guide-atom-demo-1/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-guide-atom-demo-1/index.html +++ b/docs/~demos/docs-guide-atom-demo-1/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-guide-atom-demo-2/index.html b/docs/~demos/docs-guide-atom-demo-2/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-guide-atom-demo-2/index.html +++ b/docs/~demos/docs-guide-atom-demo-2/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-guide-atom-demo-3/index.html b/docs/~demos/docs-guide-atom-demo-3/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-guide-atom-demo-3/index.html +++ b/docs/~demos/docs-guide-atom-demo-3/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-guide-dep-tracking-demo-0/index.html b/docs/~demos/docs-guide-dep-tracking-demo-0/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-guide-dep-tracking-demo-0/index.html +++ b/docs/~demos/docs-guide-dep-tracking-demo-0/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-guide-dep-tracking-demo-1/index.html b/docs/~demos/docs-guide-dep-tracking-demo-1/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-guide-dep-tracking-demo-1/index.html +++ b/docs/~demos/docs-guide-dep-tracking-demo-1/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-guide-dep-tracking-demo-2/index.html b/docs/~demos/docs-guide-dep-tracking-demo-2/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-guide-dep-tracking-demo-2/index.html +++ b/docs/~demos/docs-guide-dep-tracking-demo-2/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-guide-dep-tracking-demo-3/index.html b/docs/~demos/docs-guide-dep-tracking-demo-3/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-guide-dep-tracking-demo-3/index.html +++ b/docs/~demos/docs-guide-dep-tracking-demo-3/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-guide-derive-demo-0/index.html b/docs/~demos/docs-guide-derive-demo-0/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-guide-derive-demo-0/index.html +++ b/docs/~demos/docs-guide-derive-demo-0/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-guide-derive-demo-1/index.html b/docs/~demos/docs-guide-derive-demo-1/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-guide-derive-demo-1/index.html +++ b/docs/~demos/docs-guide-derive-demo-1/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-guide-derive-demo-2/index.html b/docs/~demos/docs-guide-derive-demo-2/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-guide-derive-demo-2/index.html +++ b/docs/~demos/docs-guide-derive-demo-2/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-guide-modular-demo-0/index.html b/docs/~demos/docs-guide-modular-demo-0/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-guide-modular-demo-0/index.html +++ b/docs/~demos/docs-guide-modular-demo-0/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-guide-modular-demo-1/index.html b/docs/~demos/docs-guide-modular-demo-1/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-guide-modular-demo-1/index.html +++ b/docs/~demos/docs-guide-modular-demo-1/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-guide-modular-demo-2/index.html b/docs/~demos/docs-guide-modular-demo-2/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-guide-modular-demo-2/index.html +++ b/docs/~demos/docs-guide-modular-demo-2/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-guide-modular-demo-3/index.html b/docs/~demos/docs-guide-modular-demo-3/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-guide-modular-demo-3/index.html +++ b/docs/~demos/docs-guide-modular-demo-3/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-guide-quick-start-demo-0/index.html b/docs/~demos/docs-guide-quick-start-demo-0/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-guide-quick-start-demo-0/index.html +++ b/docs/~demos/docs-guide-quick-start-demo-0/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-guide-quick-start-demo-1/index.html b/docs/~demos/docs-guide-quick-start-demo-1/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-guide-quick-start-demo-1/index.html +++ b/docs/~demos/docs-guide-quick-start-demo-1/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-guide-reactive-demo-0/index.html b/docs/~demos/docs-guide-reactive-demo-0/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-guide-reactive-demo-0/index.html +++ b/docs/~demos/docs-guide-reactive-demo-0/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-guide-reactive-demo-1/index.html b/docs/~demos/docs-guide-reactive-demo-1/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-guide-reactive-demo-1/index.html +++ b/docs/~demos/docs-guide-reactive-demo-1/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-guide-signal-demo-0/index.html b/docs/~demos/docs-guide-signal-demo-0/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-guide-signal-demo-0/index.html +++ b/docs/~demos/docs-guide-signal-demo-0/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-guide-signal-demo-1/index.html b/docs/~demos/docs-guide-signal-demo-1/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-guide-signal-demo-1/index.html +++ b/docs/~demos/docs-guide-signal-demo-1/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-guide-sync-demo-0/index.html b/docs/~demos/docs-guide-sync-demo-0/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-guide-sync-demo-0/index.html +++ b/docs/~demos/docs-guide-sync-demo-0/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-guide-sync-demo-1/index.html b/docs/~demos/docs-guide-sync-demo-1/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-guide-sync-demo-1/index.html +++ b/docs/~demos/docs-guide-sync-demo-1/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-guide-sync-demo-2/index.html b/docs/~demos/docs-guide-sync-demo-2/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-guide-sync-demo-2/index.html +++ b/docs/~demos/docs-guide-sync-demo-2/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-guide-sync-demo-3/index.html b/docs/~demos/docs-guide-sync-demo-3/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-guide-sync-demo-3/index.html +++ b/docs/~demos/docs-guide-sync-demo-3/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-guide-sync-demo-4/index.html b/docs/~demos/docs-guide-sync-demo-4/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-guide-sync-demo-4/index.html +++ b/docs/~demos/docs-guide-sync-demo-4/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-guide-sync-demo-5/index.html b/docs/~demos/docs-guide-sync-demo-5/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-guide-sync-demo-5/index.html +++ b/docs/~demos/docs-guide-sync-demo-5/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-guide-watch-demo-0/index.html b/docs/~demos/docs-guide-watch-demo-0/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-guide-watch-demo-0/index.html +++ b/docs/~demos/docs-guide-watch-demo-0/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/docs/~demos/docs-guide-watch-demo-1/index.html b/docs/~demos/docs-guide-watch-demo-1/index.html index 26d394db..ce7162b2 100644 --- a/docs/~demos/docs-guide-watch-demo-1/index.html +++ b/docs/~demos/docs-guide-watch-demo-1/index.html @@ -7,6 +7,6 @@
- + \ No newline at end of file diff --git a/packages/helux/__tests__/hooks/useMutateLoading.test.ts b/packages/helux/__tests__/hooks/useMutateLoading.test.ts index 178243fe..857dc248 100644 --- a/packages/helux/__tests__/hooks/useMutateLoading.test.ts +++ b/packages/helux/__tests__/hooks/useMutateLoading.test.ts @@ -26,11 +26,11 @@ describe('useMutateLoading', () => { return ld['mutate1'].loading; }); expect(runCount).toBe(1); - expect(result.current).toBe(false); + expect(result.current).toBe(true); witness.run(); // still be 1 expect(runCount).toBe(1); - expect(result.current).toBe(false); + expect(result.current).toBe(true); await witness.runTask(); // ATTENTION: if task pass delay ms <= 100 to delay(), here will be 3