@yinuo-ngm/server 1.0.12 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/app.js +3 -1
- package/lib/plugins/error-handler.plugin.js +14 -0
- package/lib/plugins/static.plugin.js +4 -12
- package/lib/plugins/ws/topics/index.d.ts +2 -0
- package/lib/plugins/ws/topics/index.js +2 -0
- package/lib/plugins/ws/topics/svn.ws.d.ts +9 -0
- package/lib/plugins/ws/topics/svn.ws.js +46 -0
- package/lib/plugins/ws/ws.plugin.js +27 -11
- package/lib/routes/index.js +6 -0
- package/lib/routes/project.routes.js +15 -1
- package/lib/routes/sprite-browse.routes.d.ts +2 -0
- package/lib/routes/sprite-browse.routes.js +107 -0
- package/lib/routes/sprite.routes.js +40 -61
- package/lib/routes/static-files.routes.d.ts +2 -0
- package/lib/routes/static-files.routes.js +83 -0
- package/lib/routes/svn.routes.d.ts +2 -0
- package/lib/routes/svn.routes.js +53 -0
- package/package.json +6 -5
- package/www/3rdpartylicenses.txt +26 -0
- package/www/browser/{chunk-DJJC6FPO.js → chunk-25RT7L2O.js} +1 -1
- package/www/browser/{chunk-EP45FT55.js → chunk-2P5WKSWB.js} +2 -2
- package/www/browser/{chunk-FNLA2MNI.js → chunk-2XZHN52E.js} +1 -1
- package/www/browser/chunk-3MBM5AMR.js +1 -0
- package/www/browser/{chunk-AZV6AWGC.js → chunk-3V5PIKHE.js} +1 -1
- package/www/browser/{chunk-EC33AXSR.js → chunk-42JVTVYH.js} +1 -1
- package/www/browser/chunk-4IQIZX7Y.js +1 -0
- package/www/browser/{chunk-3MAJTMXX.js → chunk-4UAHOL42.js} +1 -1
- package/www/browser/{chunk-YVSVIACA.js → chunk-56SDBJDG.js} +1 -1
- package/www/browser/{chunk-IMQG3SAE.js → chunk-5DD65JMJ.js} +1 -1
- package/www/browser/{chunk-PTMJ422K.js → chunk-5EQOKH7G.js} +6 -6
- package/www/browser/chunk-6JH45SUC.js +1 -0
- package/www/browser/{chunk-G73D24UX.js → chunk-6X6PEDE5.js} +1 -1
- package/www/browser/{chunk-CO7S3LZV.js → chunk-AI6SNMEH.js} +1 -1
- package/www/browser/chunk-AMXCOT2F.js +1 -0
- package/www/browser/{chunk-J2JNFWJN.js → chunk-DP3VTELD.js} +1 -1
- package/www/browser/chunk-E6LF4XBJ.js +3 -0
- package/www/browser/chunk-EMK65RIU.js +1 -0
- package/www/browser/chunk-EYGWZTTT.js +1 -0
- package/www/browser/{chunk-CJISJEP3.js → chunk-GKY4LJF4.js} +1 -1
- package/www/browser/{chunk-V27A2EK4.js → chunk-HJC5MNP5.js} +1 -1
- package/www/browser/chunk-ITXWAN4J.js +1 -0
- package/www/browser/{chunk-GCKL62DR.js → chunk-IZNTCWTR.js} +1 -1
- package/www/browser/{chunk-CPA2B3DD.js → chunk-KN3WZJH7.js} +1 -1
- package/www/browser/chunk-KPO75P5E.js +1 -0
- package/www/browser/chunk-LWBZC6ZL.js +2 -0
- package/www/browser/{chunk-HCBKQAGF.js → chunk-NYXWJKSW.js} +1 -1
- package/www/browser/{chunk-ROB7EMN5.js → chunk-OC62FHHS.js} +1 -1
- package/www/browser/{chunk-POZS3PD3.js → chunk-QM5ROT66.js} +1 -1
- package/www/browser/{chunk-35COW2FA.js → chunk-W633D3VG.js} +1 -1
- package/www/browser/{chunk-53YRDYLS.js → chunk-X3HFJACM.js} +2 -2
- package/www/browser/chunk-YFAKNLWB.js +2 -0
- package/www/browser/{chunk-3PWCJ3D5.js → chunk-ZSPNEYSK.js} +1 -1
- package/www/browser/images/placeholder.png +0 -0
- package/www/browser/index.html +1 -1
- package/www/browser/main-O5GAJRDW.js +34 -0
- package/www/browser/chunk-37KQ3UTB.js +0 -1
- package/www/browser/chunk-3LDMO67C.js +0 -1
- package/www/browser/chunk-MD6RDGU4.js +0 -1
- package/www/browser/chunk-OUE23ZE4.js +0 -2
- package/www/browser/chunk-W6TCGG53.js +0 -1
- package/www/browser/chunk-XN5C33GH.js +0 -3
- package/www/browser/main-V3VSEZ7K.js +0 -29
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as X,b as D}from"./chunk-W6TCGG53.js";import{b as bt}from"./chunk-SNCDDYQR.js";import{G as wt,H as J,O as lt,P as dt,l as _t,x as St,y as Tt,z as kt}from"./chunk-PTMJ422K.js";import{d as st}from"./chunk-53YRDYLS.js";import{$b as Q,Ca as ut,Eb as N,Ec as E,Fb as V,Fc as P,Gb as W,Gc as K,Ha as x,Ic as O,Jc as L,Kb as k,Lb as zt,Oa as ot,Vb as z,Vc as vt,Xb as f,Yb as ft,Zb as gt,_b as $,a as c,ac as _,b as h,bc as C,cc as g,dc as A,f as nt,fd as y,gc as ht,gd as yt,hc as j,ic as I,l as it,ma as M,mb as s,na as q,qa as at,r as H,ra as v,rd as Z,s as b,tc as u,uc as B,vb as mt,vc as R,vd as T,wc as rt,xc as Ct,yc as G,z as pt,zc as U}from"./chunk-SJG2JCPL.js";var Dt=["nzType","avatar"];var jt=["*"];function It(e,n){if(e&1&&(C(0,"div",0),A(1,"nz-skeleton-element",4),g()),e&2){let t=u(2);s(),_("nzSize",t.avatar.size||"default")("nzShape",t.avatar.shape||"circle")}}function Bt(e,n){if(e&1&&A(0,"h3",5),e&2){let t=u(2);E("width",t.toCSSUnit(t.title.width))}}function Rt(e,n){if(e&1&&A(0,"li"),e&2){let t=n.$index,i=u(3);E("width",i.toCSSUnit(i.widthList[t]))}}function Et(e,n){if(e&1&&(C(0,"ul",3),$(1,Rt,1,2,"li",6,gt),g()),e&2){let t=u(2);s(),Q(t.rowsList)}}function Ot(e,n){if(e&1&&(z(0,It,2,2,"div",0),C(1,"div",1),z(2,Bt,1,2,"h3",2),z(3,Et,3,0,"ul",3),g()),e&2){let t=u();f(t.nzAvatar?0:-1),s(2),f(t.nzTitle?2:-1),s(),f(t.nzParagraph?3:-1)}}function Lt(e,n){e&1&&R(0)}var Ft=(()=>{class e{nzActive=!1;nzType;nzBlock=!1;static \u0275fac=function(i){return new(i||e)};static \u0275dir=W({type:e,selectors:[["nz-skeleton-element"]],hostAttrs:[1,"ant-skeleton","ant-skeleton-element"],hostVars:4,hostBindings:function(i,a){i&2&&P("ant-skeleton-active",a.nzActive)("ant-skeleton-block",a.nzBlock)},inputs:{nzActive:[2,"nzActive","nzActive",T],nzType:"nzType",nzBlock:[2,"nzBlock","nzBlock",T]}})}return e})();var Ht=(()=>{class e{nzShape="circle";nzSize="default";styleMap={};ngOnChanges(t){if(t.nzSize&&typeof this.nzSize=="number"){let i=`${this.nzSize}px`;this.styleMap={width:i,height:i,"line-height":i}}else this.styleMap={}}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=N({type:e,selectors:[["nz-skeleton-element","nzType","avatar"]],inputs:{nzShape:"nzShape",nzSize:"nzSize"},features:[ot],attrs:Dt,decls:1,vars:10,consts:[[1,"ant-skeleton-avatar"]],template:function(i,a){i&1&&ht(0,"span",0),i&2&&(K(a.styleMap),P("ant-skeleton-avatar-square",a.nzShape==="square")("ant-skeleton-avatar-circle",a.nzShape==="circle")("ant-skeleton-avatar-lg",a.nzSize==="large")("ant-skeleton-avatar-sm",a.nzSize==="small"))},encapsulation:2,changeDetection:0})}return e})();var xt=(()=>{class e{cdr=v(Z);nzActive=!1;nzLoading=!0;nzRound=!1;nzTitle=!0;nzAvatar=!1;nzParagraph=!0;title;avatar;paragraph;rowsList=[];widthList=[];toCSSUnit(t=""){return _t(t)}getTitleProps(){let t=!!this.nzAvatar,i=!!this.nzParagraph,a="";return!t&&i?a="38%":t&&i&&(a="50%"),c({width:a},this.getProps(this.nzTitle))}getAvatarProps(){let t=this.nzTitle&&!this.nzParagraph?"square":"circle";return c({shape:t,size:"large"},this.getProps(this.nzAvatar))}getParagraphProps(){let t=!!this.nzAvatar,i=!!this.nzTitle,a={};return(!t||!i)&&(a.width="61%"),!t&&i?a.rows=3:a.rows=2,c(c({},a),this.getProps(this.nzParagraph))}getProps(t){return t&&typeof t=="object"?t:{}}getWidthList(){let{width:t,rows:i}=this.paragraph,a=[];return t&&Array.isArray(t)?a=t:t&&!Array.isArray(t)&&(a=[],a[i-1]=t),a}updateProps(){this.title=this.getTitleProps(),this.avatar=this.getAvatarProps(),this.paragraph=this.getParagraphProps(),this.rowsList=[...Array(this.paragraph.rows)],this.widthList=this.getWidthList(),this.cdr.markForCheck()}ngOnInit(){this.updateProps()}ngOnChanges(t){(t.nzTitle||t.nzAvatar||t.nzParagraph)&&this.updateProps()}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=N({type:e,selectors:[["nz-skeleton"]],hostAttrs:[1,"ant-skeleton"],hostVars:6,hostBindings:function(i,a){i&2&&P("ant-skeleton-with-avatar",!!a.nzAvatar)("ant-skeleton-active",a.nzActive)("ant-skeleton-round",a.nzRound)},inputs:{nzActive:[2,"nzActive","nzActive",T],nzLoading:[2,"nzLoading","nzLoading",T],nzRound:[2,"nzRound","nzRound",T],nzTitle:"nzTitle",nzAvatar:"nzAvatar",nzParagraph:"nzParagraph"},exportAs:["nzSkeleton"],features:[ot],ngContentSelectors:jt,decls:2,vars:1,consts:[[1,"ant-skeleton-header"],[1,"ant-skeleton-content"],[1,"ant-skeleton-title",3,"width"],[1,"ant-skeleton-paragraph"],["nzType","avatar",3,"nzSize","nzShape"],[1,"ant-skeleton-title"],[3,"width"]],template:function(i,a){i&1&&(B(),z(0,Ot,4,3)(1,Lt,1,0)),i&2&&f(a.nzLoading?0:1)},dependencies:[Ft,Ht],encapsulation:2,changeDetection:0})}return e})(),Nt=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=V({type:e});static \u0275inj=q({})}return e})();function Vt(e,n){}function Wt(e,n){if(e&1&&(C(0,"div",0),k(1,Vt,0,0,"ng-template",2),g()),e&2){let t=u();s(),_("ngTemplateOutlet",t.nzAvatar)}}function $t(e,n){if(e&1&&(j(0),O(1),I()),e&2){let t=u(3);s(),L(t.nzTitle)}}function Qt(e,n){if(e&1&&(C(0,"div",3),k(1,$t,2,1,"ng-container",5),g()),e&2){let t=u(2);s(),_("nzStringTemplateOutlet",t.nzTitle)}}function Gt(e,n){if(e&1&&(j(0),O(1),I()),e&2){let t=u(3);s(),L(t.nzDescription)}}function Ut(e,n){if(e&1&&(C(0,"div",4),k(1,Gt,2,1,"ng-container",5),g()),e&2){let t=u(2);s(),_("nzStringTemplateOutlet",t.nzDescription)}}function Kt(e,n){if(e&1&&(C(0,"div",1),z(1,Qt,2,1,"div",3),z(2,Ut,2,1,"div",4),g()),e&2){let t=u();s(),f(t.nzTitle?1:-1),s(),f(t.nzDescription?2:-1)}}var Mt=["*"];function Zt(e,n){e&1&&R(0)}var Jt=()=>({rows:4});function Xt(e,n){if(e&1&&(j(0),O(1),I()),e&2){let t=u(3);s(),L(t.nzTitle)}}function Yt(e,n){if(e&1&&(C(0,"div",6),k(1,Xt,2,1,"ng-container",9),g()),e&2){let t=u(2);s(),_("nzStringTemplateOutlet",t.nzTitle)}}function te(e,n){if(e&1&&(j(0),O(1),I()),e&2){let t=u(3);s(),L(t.nzExtra)}}function ee(e,n){if(e&1&&(C(0,"div",7),k(1,te,2,1,"ng-container",9),g()),e&2){let t=u(2);s(),_("nzStringTemplateOutlet",t.nzExtra)}}function ne(e,n){}function ie(e,n){if(e&1&&k(0,ne,0,0,"ng-template",8),e&2){let t=u(2);_("ngTemplateOutlet",t.listOfNzCardTabComponent.template)}}function ae(e,n){if(e&1&&(C(0,"div",0)(1,"div",5),z(2,Yt,2,1,"div",6),z(3,ee,2,1,"div",7),g(),z(4,ie,1,1,null,8),g()),e&2){let t=u();s(2),f(t.nzTitle?2:-1),s(),f(t.nzExtra?3:-1),s(),f(t.listOfNzCardTabComponent?4:-1)}}function oe(e,n){}function re(e,n){if(e&1&&(C(0,"div",1),k(1,oe,0,0,"ng-template",8),g()),e&2){let t=u();s(),_("ngTemplateOutlet",t.nzCover)}}function se(e,n){e&1&&A(0,"nz-skeleton",3),e&2&&_("nzActive",!0)("nzTitle",!1)("nzParagraph",vt(3,Jt))}function le(e,n){e&1&&R(0)}function de(e,n){}function ce(e,n){if(e&1&&(C(0,"li")(1,"span"),k(2,de,0,0,"ng-template",8),g()()),e&2){let t=n.$implicit,i=u(2);E("width",100/i.nzActions.length,"%"),s(2),_("ngTemplateOutlet",t)}}function pe(e,n){if(e&1&&(C(0,"ul",4),$(1,ce,3,3,"li",10,ft),g()),e&2){let t=u();s(),Q(t.nzActions)}}var ue=(()=>{class e{nzHoverable=!0;static \u0275fac=function(i){return new(i||e)};static \u0275dir=W({type:e,selectors:[["","nz-card-grid",""]],hostAttrs:[1,"ant-card-grid"],hostVars:2,hostBindings:function(i,a){i&2&&P("ant-card-hoverable",a.nzHoverable)},inputs:{nzHoverable:[2,"nzHoverable","nzHoverable",T]},exportAs:["nzCardGrid"]})}return e})(),me=(()=>{class e{nzTitle=null;nzDescription=null;nzAvatar=null;static \u0275fac=function(i){return new(i||e)};static \u0275cmp=N({type:e,selectors:[["nz-card-meta"]],hostAttrs:[1,"ant-card-meta"],inputs:{nzTitle:"nzTitle",nzDescription:"nzDescription",nzAvatar:"nzAvatar"},exportAs:["nzCardMeta"],decls:2,vars:2,consts:[[1,"ant-card-meta-avatar"],[1,"ant-card-meta-detail"],[3,"ngTemplateOutlet"],[1,"ant-card-meta-title"],[1,"ant-card-meta-description"],[4,"nzStringTemplateOutlet"]],template:function(i,a){i&1&&(z(0,Wt,2,1,"div",0),z(1,Kt,3,2,"div",1)),i&2&&(f(a.nzAvatar?0:-1),s(),f(a.nzTitle||a.nzDescription?1:-1))},dependencies:[st,dt,lt],encapsulation:2,changeDetection:0})}return e})(),ze=(()=>{class e{template;static \u0275fac=function(i){return new(i||e)};static \u0275cmp=N({type:e,selectors:[["nz-card-tab"]],viewQuery:function(i,a){if(i&1&&Ct(mt,7),i&2){let p;G(p=U())&&(a.template=p.first)}},exportAs:["nzCardTab"],ngContentSelectors:Mt,decls:1,vars:0,template:function(i,a){i&1&&(B(),zt(0,Zt,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return e})(),Pt="card",fe=(()=>{var r;let e,n=[],t=[],i,a=[],p=[],o,m=[],w=[];return r=class{cdr=v(Z);directionality=v(St);destroyRef=v(ut);_nzModuleName=Pt;nzBordered=b(this,n,!0);nzLoading=(b(this,t),!1);nzHoverable=b(this,a,!1);nzBodyStyle=(b(this,p),null);nzCover;nzActions=[];nzType=null;nzSize=b(this,m,"default");nzTitle=b(this,w);nzExtra;listOfNzCardTabComponent;listOfNzCardGridDirective;dir="ltr";constructor(){wt(Pt,()=>this.cdr.markForCheck())}ngOnInit(){this.directionality.change?.pipe(kt(this.destroyRef)).subscribe(S=>{this.dir=S,this.cdr.detectChanges()}),this.dir=this.directionality.value}},(()=>{let S=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;e=[J()],i=[J()],o=[J()],H(null,null,e,{kind:"field",name:"nzBordered",static:!1,private:!1,access:{has:l=>"nzBordered"in l,get:l=>l.nzBordered,set:(l,d)=>{l.nzBordered=d}},metadata:S},n,t),H(null,null,i,{kind:"field",name:"nzHoverable",static:!1,private:!1,access:{has:l=>"nzHoverable"in l,get:l=>l.nzHoverable,set:(l,d)=>{l.nzHoverable=d}},metadata:S},a,p),H(null,null,o,{kind:"field",name:"nzSize",static:!1,private:!1,access:{has:l=>"nzSize"in l,get:l=>l.nzSize,set:(l,d)=>{l.nzSize=d}},metadata:S},m,w),S&&Object.defineProperty(r,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:S})})(),nt(r,"\u0275fac",function(l){return new(l||r)}),nt(r,"\u0275cmp",N({type:r,selectors:[["nz-card"]],contentQueries:function(l,d,ct){if(l&1&&(rt(ct,ze,5),rt(ct,ue,4)),l&2){let F;G(F=U())&&(d.listOfNzCardTabComponent=F.first),G(F=U())&&(d.listOfNzCardGridDirective=F)}},hostAttrs:[1,"ant-card"],hostVars:16,hostBindings:function(l,d){l&2&&P("ant-card-loading",d.nzLoading)("ant-card-bordered",d.nzBordered)("ant-card-hoverable",d.nzHoverable)("ant-card-small",d.nzSize==="small")("ant-card-contain-grid",d.listOfNzCardGridDirective&&d.listOfNzCardGridDirective.length)("ant-card-type-inner",d.nzType==="inner")("ant-card-contain-tabs",!!d.listOfNzCardTabComponent)("ant-card-rtl",d.dir==="rtl")},inputs:{nzBordered:[2,"nzBordered","nzBordered",T],nzLoading:[2,"nzLoading","nzLoading",T],nzHoverable:[2,"nzHoverable","nzHoverable",T],nzBodyStyle:"nzBodyStyle",nzCover:"nzCover",nzActions:"nzActions",nzType:"nzType",nzSize:"nzSize",nzTitle:"nzTitle",nzExtra:"nzExtra"},exportAs:["nzCard"],ngContentSelectors:Mt,decls:6,vars:6,consts:[[1,"ant-card-head"],[1,"ant-card-cover"],[1,"ant-card-body"],[3,"nzActive","nzTitle","nzParagraph"],[1,"ant-card-actions"],[1,"ant-card-head-wrapper"],[1,"ant-card-head-title"],[1,"ant-card-extra"],[3,"ngTemplateOutlet"],[4,"nzStringTemplateOutlet"],[3,"width"]],template:function(l,d){l&1&&(B(),z(0,ae,5,3,"div",0),z(1,re,2,1,"div",1),C(2,"div",2),z(3,se,1,4,"nz-skeleton",3)(4,le,1,0),g(),z(5,pe,3,0,"ul",4)),l&2&&(f(d.nzTitle||d.nzExtra||d.listOfNzCardTabComponent?0:-1),s(),f(d.nzCover?1:-1),s(),K(d.nzBodyStyle),s(),f(d.nzLoading?3:4),s(2),f(d.nzActions.length?5:-1))},dependencies:[dt,lt,st,Nt,xt],encapsulation:2,changeDetection:0})),r})(),Qe=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=V({type:e});static \u0275inj=q({imports:[fe,me,Tt]})}return e})();var tt=class e{constructor(n,t){this.ws=n;this.runtimeStore=t;this.ws.messages().subscribe(i=>this.onMessage(i)),this.ws.stateChanges().subscribe(i=>{i==="open"&&this.lastWsState!=="open"&&this.replaySubs(),this.lastWsState=i})}outputByTaskId=new Map;event$=new it;subs=new Map;lastWsState="idle";ensureConnected(){this.ws.connect()}subscribeTask(n,t=200){let i=n.trim();if(!i)return;let a=Math.max(0,Math.min(5e3,t|0));this.subs.get(i)!==a&&(this.subs.set(i,a),this.ws.isOpen()&&this.ws.send({op:"sub",topic:"task",taskId:i,tail:a}))}unsubscribeTask(n){let t=n.trim();this.subs.has(t)&&(this.subs.delete(t),this.ws.isOpen()&&this.ws.send({op:"unsub",topic:"task",taskId:t}))}resize(n,t,i){let a=String(n??"").trim();a&&this.ws.isOpen()&&this.ws.send({op:"resize",topic:"task",taskId:a,cols:t,rows:i})}output$(n){return this.ensureOutput(n).asObservable()}events$(){return this.event$.asObservable()}status$(n){return this.runtimeStore.status$(n)}replaySubs(){for(let[n,t]of this.subs.entries())this.ws.send({op:"sub",topic:"task",taskId:n,tail:t})}onMessage(n){let t=n?.op;if(t==="task.output"){let i=n.payload,a=String(i.taskId??"").trim();if(!a)return;this.ensureOutput(a).next(n);return}if(t==="task.event"){let i=n.payload,a=n.type,p=String(i.taskId??"").trim();if(!p)return;this.event$.next(n);let o=this.applyEventToRuntime(a,i);if(o&&this.runtimeStore.setRuntime(o),(a==="exited"||a==="failed")&&setTimeout(()=>this.outputByTaskId.delete(p),300*1e3),a==="failed"){let m=i,w=`[failed] ${m?.error??""}`.trim(),r={runId:m.runId,taskId:p,stream:"stderr",text:w+`
|
|
2
|
-
`};this.ensureOutput(p).next({op:"task.output",payload:r,ts:n.ts})}}}ensureOutput(n){let t=String(n??"").trim();return this.outputByTaskId.has(t)||this.outputByTaskId.set(t,new it),this.outputByTaskId.get(t)}applyEventToRuntime(n,t){let i=String(t?.taskId??"").trim(),a=String(t?.runId??"").trim();if(!i||!a)return null;let p=this.runtimeStore.runtimeSignal(i)(),o=p&&p.runId===a?c({},p):{taskId:i,runId:a,projectId:String(t?.projectId??p?.projectId??"").trim(),status:"idle"};switch(n){case"snapshot":let m=t;return o.projectId=String(m?.projectId??o.projectId??"").trim(),o.status=m.status,o.startedAt=m.startedAt,o.stoppedAt=m.stoppedAt,o.pid=m.pid,o.exitCode=m.exitCode,o.signal=m.signal,o;case"started":return o.projectId=String(t?.projectId??o.projectId??"").trim(),o.status="running",o.pid=t?.pid??o.pid,o.startedAt=t?.startedAt??o.startedAt??Date.now(),o.stoppedAt=void 0,o.exitCode=void 0,o.signal=void 0,o;case"stopRequested":return o.status="stopping",o;case"exited":return o.status="stopped",o.exitCode=t?.exitCode??null,o.signal=t?.signal??null,o.stoppedAt=t?.stoppedAt??Date.now(),o;case"failed":return o.status="failed",o.stoppedAt=o.stoppedAt??Date.now(),o.exitCode=o.exitCode??null,o.signal=o.signal??null,o;default:return null}}static \u0275fac=function(t){return new(t||e)(at(bt),at(D))};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})};var et=class e{api=v(X);runtimeStore=v(D);state=x({rowsByProject:{},loadingByProject:{},loadedAtByProject:{}});rowsOf(n){let t=(n??"").trim();return y(()=>this.state().rowsByProject[t]??[])}isLoading(n){let t=(n??"").trim();return y(()=>!!this.state().loadingByProject[t])}isLoaded(n){let t=(n??"").trim();return y(()=>this.state().loadedAtByProject[t]!=null)}async ensureLoaded(n,t){let i=(n??"").trim();if(!i)return;let a=this.state(),p=a.loadedAtByProject[i]!=null,o=!!a.loadingByProject[i];if(!(!t?.force&&(p||o))){this.state.update(m=>h(c({},m),{loadingByProject:h(c({},m.loadingByProject),{[i]:!0})}));try{let w=(await pt(this.api.getViews(i))??[]).map(r=>({spec:r.spec,runtime:r.runtime?{taskId:r.runtime.taskId,projectId:r.runtime.projectId,runId:r.runtime.runId,status:r.runtime.status,pid:r.runtime.pid,startedAt:r.runtime.startedAt,stoppedAt:r.runtime.stoppedAt,exitCode:r.runtime.exitCode,signal:r.runtime.signal}:void 0}));for(let r of w)r.runtime&&this.runtimeStore.setRuntime(r.runtime);this.state.update(r=>h(c({},r),{rowsByProject:h(c({},r.rowsByProject),{[i]:w}),loadedAtByProject:h(c({},r.loadedAtByProject),{[i]:Date.now()})}))}finally{this.state.update(m=>h(c({},m),{loadingByProject:h(c({},m.loadingByProject),{[i]:!1})}))}}}setRows(n,t){let i=(n??"").trim();if(i){for(let a of t??[])a.runtime&&this.runtimeStore.setRuntime(a.runtime);this.state.update(a=>h(c({},a),{rowsByProject:h(c({},a.rowsByProject),{[i]:t??[]}),loadedAtByProject:h(c({},a.loadedAtByProject),{[i]:Date.now()})}))}}clear(n){let t=(n??"").trim();t&&this.state.update(i=>{let a=c({},i.rowsByProject),p=c({},i.loadingByProject),o=c({},i.loadedAtByProject);return delete a[t],delete p[t],delete o[t],{rowsByProject:a,loadingByProject:p,loadedAtByProject:o}})}static \u0275fac=function(t){return new(t||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})};var At=class e{api=v(X);stream=v(tt);runtimeStore=v(D);catalog=v(et);projectId=x("");keyword=x("");loading=x(!1);selectedTaskId=x("");rows=y(()=>{let n=this.projectId();return n?this.catalog.rowsOf(n)():[]});rowsView=y(()=>this.rows().map(t=>{let i=t.spec.id,a=this.getRuntimeSignal(i);return h(c({},t),{runtime:a??t.runtime})}));rowsViewFiltered=y(()=>{let n=this.keyword().trim().toLowerCase(),t=this.rowsView();return n?t.filter(i=>i.spec.name?.toLowerCase().includes(n)):t});selectedRow=y(()=>{let n=this.selectedTaskId();return this.rowsView().find(t=>t.spec.id===n)??null});selectedRuntimeStatus=y(()=>{let n=this.selectedTaskId();return n?this.getRuntime(n):{status:"idle"}});isRunning=y(()=>this.selectedRuntimeStatus().status==="running");isStopping=y(()=>this.selectedRuntimeStatus().status==="stopping");isStopped=y(()=>{let n=this.selectedRuntimeStatus().status;return n==="idle"||n==="stopped"||n==="failed"||n==="success"});constructor(){yt(n=>{let t=this.selectedTaskId();if(!t)return;this.stream.ensureConnected(),this.stream.subscribeTask(t,200);let i=this.runtimeStore.status$(t).subscribe();n(()=>{i.unsubscribe(),this.stream.unsubscribeTask(t)})})}getRuntime(n){return this.runtimeStore.statusSignal(n)()}getRuntimeSignal(n){return this.runtimeStore.runtimeSignal(n)()}async setProject(n){let t=n?.trim();if(!t||this.projectId()===t)return;this.projectId.set(t),this.selectedTaskId.set(""),this.keyword.set(""),await this.catalog.ensureLoaded(t);let i=this.rows()[0];i&&this.select(i.spec.id)}refresh(){let n=this.projectId();n&&(this.loading.set(!0),this.api.refresh(n).subscribe({next:t=>{this.catalog.setRows(n,t??[]),this.loading.set(!1)},error:t=>{this.loading.set(!1)}}))}select(n){this.selectedTaskId.set(n)}toggleTask(){this.isRunning()?this.stopSelected():this.isStopped()&&this.startSelected()}startSelected(n){n=n?.trim()||this.selectedRow()?.spec?.id,n&&this.api.start(n).subscribe()}stopSelected(n){if(n=n?.trim()||this.selectedTaskId(),!n)return;let t=this.getRuntimeSignal(n);t&&this.runtimeStore.setRuntime(h(c({},t),{status:"stopping"})),this.api.stop(n).subscribe({next:()=>{},error:()=>{t&&t.status==="running"&&this.runtimeStore.setRuntime(t)}})}rowsViewOf(n){return y(()=>{let t=n?.trim();return t?this.catalog.rowsOf(t)().map(a=>{let p=a.spec.id,o=this.getRuntime(p);return h(c({},a),{runtime:h(c({},a.runtime??{}),{status:o.status})})}):[]})}ensureProjectLoaded(n){return this.catalog.ensureLoaded(n)}static \u0275fac=function(t){return new(t||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})};export{fe as a,Qe as b,tt as c,At as d};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as it}from"./chunk-EP45FT55.js";import{F as ot,H as V,O as H,Oa as G,P as L,Pa as U,x as et}from"./chunk-PTMJ422K.js";import{o as Z}from"./chunk-53YRDYLS.js";import{$b as j,Eb as k,Ec as y,Fb as Q,Fc as v,Gc as $,Ha as S,Hc as N,Ic as T,Jc as E,Kb as w,Kc as W,Oa as O,Tb as X,Vb as h,Xb as b,Zb as M,_b as P,a as q,ac as z,bc as d,cc as g,dc as x,f as D,hc as A,ic as B,m as J,ma as _,mb as p,mc as tt,na as K,r as R,ra as m,s as C,tc as u,uc as I,vc as F,vd as f,wd as nt}from"./chunk-SJG2JCPL.js";var at=class e{api=m(it);refresh(n){return this.api.post(`/api/tasks/refresh/${n}`,{})}getViews(n){return this.api.get(`/api/tasks/list/${n}`)}getStatus(n){return this.api.get(`/api/tasks/status/${n}`)}start(n){return this.api.post("/api/tasks/start",{taskId:n})}stop(n){return this.api.post("/api/tasks/stop",{taskId:n})}active(){return this.api.get("/api/tasks/active")}getRunLog(n,t=200){let i=new Z().set("tail",t.toString());return this.api.get(`/api/tasks/log/run/${n}`,i)}getSyslog(n=200){let t=new Z().set("tail",n.toString());return this.api.get("/api/tasks/syslog",t)}static \u0275fac=function(t){return new(t||e)};static \u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"})};var rt=class e{statusByTask=new Map;sigByTask=new Map;runtimeByTask=new Map;runningCountByProject=new Map;totalRunningCount=S(0);totalRunningCountSignal(){return this.totalRunningCount}setRuntime(n){let t=this.norm(n.taskId),i=this.norm(n.projectId);if(!t||!i)return;let o=this.ensureTaskSignal(t)(),c=this.isBusy(o.status),r=this.isBusy(n.status),Y=this.toStatus(n);if(this.ensureTaskSubject(t).next(Y),this.ensureTaskSignal(t).set(Y),this.ensureRuntimeSignal(t).set(n),c!==r){let l=this.ensureProjectCount(i),a=l();l.set(c?Math.max(0,a-1):a+1);let s=this.totalRunningCount();this.totalRunningCount.set(c?Math.max(0,s-1):s+1)}}status$(n){return this.ensureTaskSubject(n).asObservable()}statusSignal(n){return this.ensureTaskSignal(n)}runtimeSignal(n){return this.ensureRuntimeSignal(n)}hasRunning(n){return this.ensureProjectCount(n)()>0}runningCountSignal(n){return this.ensureProjectCount(n)}snapshot(n){return this.ensureTaskSignal(n)()}toStatus(n){switch(n.status){case"idle":return{status:"idle"};case"running":return{status:"running",pid:n.pid,startedAt:n.startedAt};case"stopping":return{status:"stopping"};case"failed":return{status:"failed",exitCode:n.exitCode??null,signal:n.signal??null,stoppedAt:n.stoppedAt};case"success":return{status:"success",exitCode:n.exitCode??null,signal:n.signal??null,stoppedAt:n.stoppedAt};case"stopped":return{status:"stopped",exitCode:n.exitCode??null,signal:n.signal??null,stoppedAt:n.stoppedAt};default:return{status:"idle"}}}isBusy(n){return n==="running"||n==="stopping"}norm(n){return(n??"").trim()}ensureTaskSubject(n){let t=this.norm(n);return this.statusByTask.has(t)||this.statusByTask.set(t,new J({status:"idle"})),this.statusByTask.get(t)}ensureTaskSignal(n){let t=this.norm(n);return this.sigByTask.has(t)||this.sigByTask.set(t,S({status:"idle"})),this.sigByTask.get(t)}ensureProjectCount(n){let t=this.norm(n);return this.runningCountByProject.has(t)||this.runningCountByProject.set(t,S(0)),this.runningCountByProject.get(t)}ensureRuntimeSignal(n){let t=this.norm(n);return this.runtimeByTask.has(t)||this.runtimeByTask.set(t,S(void 0)),this.runtimeByTask.get(t)}static \u0275fac=function(t){return new(t||e)};static \u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"})};function zt(e,n){if(e&1&&(d(0,"p",3),T(1),g()),e&2){let t=n.$implicit,i=u(2).$index,o=u(2);v("current",t===o.countArray[i]),p(),W(" ",t," ")}}function dt(e,n){if(e&1&&P(0,zt,2,3,"p",2,M),e&2){let t=u(3);j(t.countSingleArray)}}function gt(e,n){if(e&1&&(d(0,"span",1),h(1,dt,2,0),g()),e&2){let t=n.$index,i=u(2);y("transform","translateY("+-i.countArray[t]*100+"%)"),z("nzNoAnimation",i.noAnimation),p(),b(!i.nzDot&&i.countArray[t]!==void 0?1:-1)}}function ft(e,n){if(e&1&&P(0,gt,2,4,"span",0,M),e&2){let t=u();j(t.maxNumberArray)}}function Ct(e,n){if(e&1&&T(0),e&2){let t=u();W(" ",t.nzOverflowCount,"+ ")}}var lt=["*"];function St(e,n){if(e&1&&(A(0),T(1),B()),e&2){let t=u(2);p(),E(t.nzText)}}function ht(e,n){if(e&1&&(x(0,"span",1),d(1,"span",2),w(2,St,2,1,"ng-container",0),g()),e&2){let t=u();$(t.mergedStyle),N((t.nzStatus||t.presetColor)&&"ant-badge-status-"+(t.nzStatus||t.presetColor)),p(2),z("nzStringTemplateOutlet",t.nzText)}}function bt(e,n){if(e&1&&x(0,"nz-badge-sup",3),e&2){let t=u(2);z("isPresetColor",t.nzStatus||t.presetColor)("nzColor",t.nzStatus||t.presetColor||t.nzColor)("nzOffset",t.nzOffset)("nzSize",t.nzSize)("nzTitle",t.nzTitle)("nzStyle",t.mergedStyle)("nzDot",t.nzDot)("nzCount",t.nzCount)("nzOverflowCount",t.nzOverflowCount)("disableAnimation",!!(t.nzStandalone||t.nzStatus||t.presetColor||t.noAnimation!=null&&t.noAnimation.nzNoAnimation))("noAnimation",!!(t.noAnimation!=null&&t.noAnimation.nzNoAnimation))}}function yt(e,n){if(e&1&&(A(0),h(1,bt,1,11,"nz-badge-sup",3),B()),e&2){let t=u();p(),b(t.showSup?1:-1)}}function vt(e,n){if(e&1&&(A(0),d(1,"span",3),T(2),g(),B()),e&2){let t=u();p(2),E(t.nzText)}}var Tt=(()=>{class e{nzOffset;nzTitle;nzStyle=null;nzDot=!1;nzOverflowCount=99;disableAnimation=!1;nzCount;noAnimation=!1;nzSize="default";isPresetColor=!1;nzColor;maxNumberArray=[];countArray=[];count=0;countSingleArray=[0,1,2,3,4,5,6,7,8,9];generateMaxNumberArray(){this.maxNumberArray=this.nzOverflowCount.toString().split("").map((t,i)=>`${t}-${i}`)}ngOnInit(){this.generateMaxNumberArray()}ngOnChanges(t){let{nzOverflowCount:i,nzCount:o}=t;o&&typeof o.currentValue=="number"&&(this.count=Math.max(0,o.currentValue),this.countArray=this.count.toString().split("").map(c=>+c)),i&&this.generateMaxNumberArray()}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=k({type:e,selectors:[["nz-badge-sup"]],hostAttrs:[1,"ant-scroll-number"],hostVars:19,hostBindings:function(i,o){i&2&&(tt("@.disabled",o.disableAnimation)("@zoomBadgeMotion",void 0),X("title",o.nzTitle===null?"":o.nzTitle||o.nzCount),$(o.nzStyle),N(o.isPresetColor?"ant-badge-status-"+o.nzColor:""),y("right",o.nzOffset&&o.nzOffset[0]?-o.nzOffset[0]:null,"px")("margin-top",o.nzOffset&&o.nzOffset[1]?o.nzOffset[1]:null,"px"),v("ant-badge-count",!o.nzDot)("ant-badge-count-sm",o.nzSize==="small")("ant-badge-dot",o.nzDot)("ant-badge-multiple-words",o.countArray.length>=2))},inputs:{nzOffset:"nzOffset",nzTitle:"nzTitle",nzStyle:"nzStyle",nzDot:"nzDot",nzOverflowCount:[2,"nzOverflowCount","nzOverflowCount",nt],disableAnimation:"disableAnimation",nzCount:"nzCount",noAnimation:"noAnimation",nzSize:"nzSize",isPresetColor:[2,"isPresetColor","isPresetColor",f],nzColor:"nzColor"},exportAs:["nzBadgeSup"],features:[O],decls:2,vars:1,consts:[[1,"ant-scroll-number-only",3,"nzNoAnimation","transform"],[1,"ant-scroll-number-only",3,"nzNoAnimation"],[1,"ant-scroll-number-only-unit",3,"current"],[1,"ant-scroll-number-only-unit"]],template:function(i,o){i&1&&h(0,ft,2,0)(1,Ct,1,1),i&2&&b(o.count<=o.nzOverflowCount?0:1)},dependencies:[U],encapsulation:2,data:{animation:[G]},changeDetection:0})}return e})(),ut=["pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"],_t="badge",Ot=(()=>{var r;let e,n=[],t=[],i,o=[],c=[];return r=class{nzConfigService=m(ot);dir=m(et).valueSignal;noAnimation=m(U,{host:!0,optional:!0});_nzModuleName=_t;showSup=!1;presetColor=null;nzShowZero=!1;nzShowDot=!0;nzStandalone=!1;nzDot=!1;nzOverflowCount=C(this,n,99);nzColor=(C(this,t),C(this,o,void 0));nzStyle=(C(this,c),null);nzText=null;nzTitle;nzStatus;nzCount;nzOffset;nzSize="default";get mergedStyle(){return q({backgroundColor:!this.presetColor&&this.nzColor},this.nzStyle??{})}ngOnChanges(l){let{nzColor:a,nzShowDot:s,nzDot:pt,nzCount:ct,nzShowZero:mt}=l;a&&(this.presetColor=this.nzColor&&ut.indexOf(this.nzColor)!==-1?this.nzColor:null),(s||pt||ct||mt)&&(this.showSup=this.nzShowDot&&this.nzDot||typeof this.nzCount=="number"&&(this.nzCount>0||this.nzShowZero))}},(()=>{let l=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;e=[V()],i=[V()],R(null,null,e,{kind:"field",name:"nzOverflowCount",static:!1,private:!1,access:{has:a=>"nzOverflowCount"in a,get:a=>a.nzOverflowCount,set:(a,s)=>{a.nzOverflowCount=s}},metadata:l},n,t),R(null,null,i,{kind:"field",name:"nzColor",static:!1,private:!1,access:{has:a=>"nzColor"in a,get:a=>a.nzColor,set:(a,s)=>{a.nzColor=s}},metadata:l},o,c),l&&Object.defineProperty(r,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:l})})(),D(r,"\u0275fac",function(a){return new(a||r)}),D(r,"\u0275cmp",k({type:r,selectors:[["nz-badge"]],hostAttrs:[1,"ant-badge"],hostVars:6,hostBindings:function(a,s){a&2&&v("ant-badge-status",s.nzStatus)("ant-badge-not-a-wrapper",!!(s.nzStandalone||(s.nzStatus||s.nzColor)&&!s.showSup&&!s.nzCount))("ant-badge-rtl",s.dir()==="rtl")},inputs:{nzShowZero:[2,"nzShowZero","nzShowZero",f],nzShowDot:[2,"nzShowDot","nzShowDot",f],nzStandalone:[2,"nzStandalone","nzStandalone",f],nzDot:[2,"nzDot","nzDot",f],nzOverflowCount:"nzOverflowCount",nzColor:"nzColor",nzStyle:"nzStyle",nzText:"nzText",nzTitle:"nzTitle",nzStatus:"nzStatus",nzCount:"nzCount",nzOffset:"nzOffset",nzSize:"nzSize"},exportAs:["nzBadge"],features:[O],ngContentSelectors:lt,decls:3,vars:2,consts:[[4,"nzStringTemplateOutlet"],[1,"ant-badge-status-dot"],[1,"ant-badge-status-text"],[3,"isPresetColor","nzColor","nzOffset","nzSize","nzTitle","nzStyle","nzDot","nzCount","nzOverflowCount","disableAnimation","noAnimation"]],template:function(a,s){a&1&&(I(),h(0,ht,3,5),F(1),w(2,yt,2,1,"ng-container",0)),a&2&&(b((s.nzStatus||s.nzColor)&&!s.showSup&&!s.nzCount?0:-1),p(2),z("nzStringTemplateOutlet",s.nzCount))},dependencies:[Tt,L,H],encapsulation:2,data:{animation:[G]},changeDetection:0})),r})(),kt=(()=>{class e{nzColor;nzPlacement="end";nzText=null;presetColor=null;ngOnChanges(t){let{nzColor:i}=t;i&&(this.presetColor=this.nzColor&&ut.indexOf(this.nzColor)!==-1?this.nzColor:null)}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=k({type:e,selectors:[["nz-ribbon"]],hostAttrs:[1,"ant-ribbon-wrapper"],inputs:{nzColor:"nzColor",nzPlacement:"nzPlacement",nzText:"nzText"},exportAs:["nzRibbon"],features:[O],ngContentSelectors:lt,decls:4,vars:11,consts:[[1,"ant-ribbon"],[4,"nzStringTemplateOutlet"],[1,"ant-ribbon-corner"],[1,"ant-ribbon-text"]],template:function(i,o){i&1&&(I(),F(0),d(1,"div",0),w(2,vt,3,1,"ng-container",1),x(3,"div",2),g()),i&2&&(p(),N(o.presetColor&&"ant-ribbon-color-"+o.presetColor),y("background-color",!o.presetColor&&o.nzColor),v("ant-ribbon-placement-end",o.nzPlacement==="end")("ant-ribbon-placement-start",o.nzPlacement==="start"),p(),z("nzStringTemplateOutlet",o.nzText),p(),y("color",!o.presetColor&&o.nzColor))},dependencies:[L,H],encapsulation:2,changeDetection:0})}return e})(),Kt=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Q({type:e});static \u0275inj=K({imports:[Ot,kt]})}return e})();export{at as a,rt as b,Ot as c,Kt as d};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{a as fi,b as gi,c as Ci,d as _i,e as zi}from"./chunk-G73D24UX.js";import{a as ci,b as mi,c as di,d as ui}from"./chunk-HCBKQAGF.js";import{a as $n,b as Un,c as qn}from"./chunk-EC33AXSR.js";import{a as Mt,b as xt,c as Le}from"./chunk-CJISJEP3.js";import{b as ai,d as pi}from"./chunk-35COW2FA.js";import"./chunk-SIVPP74B.js";import{a as si,b as li}from"./chunk-POZS3PD3.js";import{a as yt,b as $e}from"./chunk-J2JNFWJN.js";import"./chunk-HZ73CM45.js";import{a as se,b as G,c as ei,d as ti}from"./chunk-OUE23ZE4.js";import{a as Pt,c as St,d as ni,e as ii,f as vt}from"./chunk-DJJC6FPO.js";import{a as tn,b as le,c as Q,d as pe,f as Yn,g as Jn}from"./chunk-ROB7EMN5.js";import{b as Kn,c as oi,d as ri}from"./chunk-W6TCGG53.js";import"./chunk-SNCDDYQR.js";import{A as _t,B as Re,C as zt,D as ht,F as Ge,G as xe,h as Xn,i as ft,t as gt,u as Ct,v as We,z as Me}from"./chunk-EP45FT55.js";import{Ab as me,Bb as Ae,Cb as Y,Fb as Se,G as Rn,H as Pe,Hb as ve,M as w,N as y,O as mt,P as dt,T as Gn,U as Ln,V as F,W as ae,Y as W,Z as j,f as en,h as An,i as pt,jb as ce,lb as Z,mb as Qn,ob as Zn,pb as H,qb as Hn,vb as I,w as Wn,x as ct,yb as ut,z as be}from"./chunk-PTMJ422K.js";import"./chunk-HFZLJHYR.js";import{B as Ke,d as Ve,f as Vn,i as x,y as lt}from"./chunk-53YRDYLS.js";import{$b as oe,A as Ht,Ca as He,Dc as O,Eb as S,Ec as Be,Fb as ze,Fc as he,Gc as st,Ha as L,Hc as Tn,Ic as p,Jc as N,Kb as T,Kc as re,L as gn,M as Qe,Mc as b,Nc as D,Oa as _e,Oc as E,Pc as wn,Q as Cn,Qc as bn,Rc as Dn,Tb as Ie,U as _n,Vb as h,Vc as En,W as zn,Wc as Je,Xb as P,Yb as at,Yc as Nn,Zb as Mn,Zc as jn,_b as ie,_c as In,a as K,ac as u,ad as A,b as Qt,bc as r,c as un,ca as hn,cc as a,da as Pn,dc as c,ea as Yt,f as Zt,fd as $,g as ot,gd as On,hc as de,ic as ue,jc as Xt,kc as M,l as je,ma as Sn,mb as s,na as Ce,pd as Fn,qc as g,r as ge,ra as f,rb as V,rd as Xe,s as R,sb as vn,tc as m,u as fn,uc as xn,vb as Jt,vc as yn,vd as Bn,wc as kn,wd as Kt,xa as C,xc as Ye,ya as _,yb as rt,yc as Oe,z as qe,za as Ze,zc as Fe}from"./chunk-SJG2JCPL.js";var bi=t=>({$implicit:t});function Di(t,i){if(t&1&&c(0,"nz-icon",3),t&2){let e=m(3);u("nzType",e.icon)}}function Ei(t,i){if(t&1&&(de(0),p(1),ue()),t&2){let e=i.$implicit,n=m(4);s(),re(" ",e(n.nzPercent)," ")}}function Ni(t,i){if(t&1&&T(0,Ei,2,1,"ng-container",4),t&2){let e=m(3);u("nzStringTemplateOutlet",e.formatter)("nzStringTemplateOutletContext",Je(2,bi,e.nzPercent))}}function ji(t,i){if(t&1&&(r(0,"span",2),h(1,Di,1,1,"nz-icon",3)(2,Ni,1,4,"ng-container"),a()),t&2){let e=m(2);s(),P((e.status==="exception"||e.status==="success")&&!e.nzFormat?1:2)}}function Ii(t,i){if(t&1&&h(0,ji,3,1,"span",2),t&2){let e=m();P(e.nzShowInfo?0:-1)}}function Oi(t,i){if(t&1&&c(0,"div",8),t&2){let e=i.$implicit;st(e)}}function Fi(t,i){}function Bi(t,i){if(t&1&&(r(0,"div",5),ie(1,Oi,1,2,"div",6,at),T(3,Fi,0,0,"ng-template",7),a()),t&2){let e=m(2),n=O(1);s(),oe(e.steps),s(2),u("ngTemplateOutlet",n)}}function Vi(t,i){if(t&1&&c(0,"div",13),t&2){let e=m(3);Be("width",e.nzSuccessPercent,"%")("border-radius",e.nzStrokeLinecap==="round"?"100px":"0")("height",e.strokeWidth,"px")}}function Ai(t,i){}function Wi(t,i){if(t&1&&(r(0,"div",9)(1,"div",10),c(2,"div",11),h(3,Vi,1,6,"div",12),a()(),T(4,Ai,0,0,"ng-template",7)),t&2){let e=m(2),n=O(1);s(2),Be("width",e.nzPercent,"%")("border-radius",e.nzStrokeLinecap==="round"?"100px":"0")("background",e.isGradient?null:e.nzStrokeColor)("background-image",e.isGradient?e.lineGradient:null)("height",e.strokeWidth,"px"),s(),P(e.nzSuccessPercent||e.nzSuccessPercent===0?3:-1),s(),u("ngTemplateOutlet",n)}}function Ri(t,i){if(t&1&&(r(0,"div"),h(1,Bi,4,1,"div",5)(2,Wi,5,12),a()),t&2){let e=m();s(),P(e.isSteps?1:2)}}function Gi(t,i){if(t&1&&(Ze(),c(0,"stop")),t&2){let e=i.$implicit;Ie("offset",e.offset)("stop-color",e.color)}}function Li(t,i){if(t&1&&(Ze(),r(0,"defs")(1,"linearGradient",17),ie(2,Gi,1,2,":svg:stop",null,at),a()()),t&2){let e=m(2);s(),u("id","gradient-"+e.gradientId),s(),oe(e.circleGradient)}}function $i(t,i){if(t&1&&(Ze(),c(0,"path",18)),t&2){let e=i.$implicit,n=m(2);st(e.strokePathStyle),Ie("d",n.pathString)("stroke-linecap",n.nzStrokeLinecap)("stroke",e.stroke)("stroke-width",n.nzPercent?n.strokeWidth:0)}}function Ui(t,i){}function qi(t,i){if(t&1&&(r(0,"div",10),Ze(),r(1,"svg",14),h(2,Li,4,1,":svg:defs"),c(3,"path",15),ie(4,$i,1,6,":svg:path",16,at),a(),T(6,Ui,0,0,"ng-template",7),a()),t&2){let e=m(),n=O(1);Be("width",e.nzWidth,"px")("height",e.nzWidth,"px")("font-size",e.nzWidth*.15+6,"px"),he("ant-progress-circle-gradient",e.isGradient),s(2),P(e.isGradient?2:-1),s(),st(e.trailPathStyle),Ie("stroke-width",e.strokeWidth)("d",e.pathString),s(),oe(e.progressCirclePath),s(2),u("ngTemplateOutlet",n)}}function Qi(t){return+t.replace("%","")}var Pi=t=>{let i=[];return Object.keys(t).forEach(e=>{let n=t[e],o=Qi(e);isNaN(o)||i.push({key:o,value:n})}),i=i.sort((e,n)=>e.key-n.key),i},Zi=t=>Pi(t).map(({key:i,value:e})=>({offset:`${i}%`,color:e})),Hi=t=>{let l=t,{from:i="#1890ff",to:e="#1890ff",direction:n="to right"}=l,o=un(l,["from","to","direction"]);if(Object.keys(o).length!==0){let z=Pi(o).map(({key:X,value:ke})=>`${ke} ${X}%`).join(", ");return`linear-gradient(${n}, ${z})`}return`linear-gradient(${n}, ${i}, ${e})`},Yi=0,hi="progress",Ji=new Map([["success","check"],["exception","close"]]),Xi=new Map([["normal","#108ee9"],["exception","#ff5500"],["success","#87d068"]]),Ki=t=>`${t}%`,nn=(()=>{var ee;let t,i=[],e=[],n,o=[],l=[],z,X=[],ke=[],Ee,fe=[],nt=[],on,rn=[],an=[],sn,ln=[],pn=[],cn,mn=[],dn=[];return ee=class{_nzModuleName=hi;cdr=f(Xe);directionality=f(ct);destroyRef=f(He);nzShowInfo=R(this,i,!0);nzWidth=(R(this,e),132);nzStrokeColor=R(this,o,void 0);nzSize=(R(this,l),R(this,X,"default"));nzFormat=R(this,ke);nzSuccessPercent;nzPercent=0;nzStrokeWidth=R(this,fe,void 0);nzGapDegree=(R(this,nt),R(this,rn,void 0));nzStatus=R(this,an);nzType="line";nzGapPosition=R(this,ln,"top");nzStrokeLinecap=(R(this,pn),R(this,mn,"round"));nzSteps=(R(this,dn),0);steps=[];lineGradient=null;isGradient=!1;isSteps=!1;gradientId=Yi++;progressCirclePath=[];circleGradient;trailPathStyle=null;pathString;icon;dir="ltr";get formatter(){return this.nzFormat||Ki}get status(){return this.nzStatus||this.inferredStatus}get strokeWidth(){return this.nzStrokeWidth||(this.nzType==="line"&&this.nzSize!=="small"?8:6)}get isCircleStyle(){return this.nzType==="circle"||this.nzType==="dashboard"}cachedStatus="normal";inferredStatus="normal";constructor(){Rn(hi,()=>{this.updateIcon(),this.setStrokeColor(),this.getCirclePaths()})}ngOnChanges(k){let{nzSteps:d,nzGapPosition:v,nzStrokeLinecap:te,nzStrokeColor:q,nzGapDegree:Te,nzType:Ne,nzStatus:we,nzPercent:ne,nzSuccessPercent:it,nzStrokeWidth:Ut}=k;we&&(this.cachedStatus=this.nzStatus||this.cachedStatus),(ne||it)&&(parseInt(this.nzPercent.toString(),10)>=100?(en(this.nzSuccessPercent)&&this.nzSuccessPercent>=100||this.nzSuccessPercent===void 0)&&(this.inferredStatus="success"):this.inferredStatus=this.cachedStatus),(we||ne||it||q)&&this.updateIcon(),q&&this.setStrokeColor(),(v||te||Te||Ne||ne||q||q)&&this.getCirclePaths(),(ne||d||Ut)&&(this.isSteps=this.nzSteps>0,this.isSteps&&this.getSteps())}ngOnInit(){this.directionality.change?.pipe(be(this.destroyRef)).subscribe(k=>{this.dir=k,this.cdr.detectChanges()}),this.dir=this.directionality.value}updateIcon(){let k=Ji.get(this.status);this.icon=k?k+(this.isCircleStyle?"-o":"-circle-fill"):""}getSteps(){let k=Math.floor(this.nzSteps*(this.nzPercent/100)),d=this.nzSize==="small"?2:14,v=[];for(let te=0;te<this.nzSteps;te++){let q;te<=k-1&&(q=this.nzStrokeColor);let Te={backgroundColor:`${q}`,width:`${d}px`,height:`${this.strokeWidth}px`};v.push(Te)}this.steps=v}getCirclePaths(){if(!this.isCircleStyle)return;let k=en(this.nzSuccessPercent)?[this.nzSuccessPercent,this.nzPercent]:[this.nzPercent],d=50-this.strokeWidth/2,v=this.nzGapPosition||(this.nzType==="circle"?"top":"bottom"),te=Math.PI*2*d,q=this.nzGapDegree||(this.nzType==="circle"?0:75),Te=0,Ne=-d,we=0,ne=d*-2;switch(v){case"left":Te=-d,Ne=0,we=d*2,ne=0;break;case"right":Te=d,Ne=0,we=d*-2,ne=0;break;case"bottom":Ne=d,ne=d*2;break;default:}this.pathString=`M 50,50 m ${Te},${Ne}
|
|
2
|
-
a ${d},${d} 0 1 1 ${we},${-ne}
|
|
3
|
-
a ${d},${d} 0 1 1 ${-we},${ne}`,this.trailPathStyle={strokeDasharray:`${te-q}px ${te}px`,strokeDashoffset:`-${q/2}px`,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s"},this.progressCirclePath=k.map((it,Ut)=>{let qt=k.length===2&&Ut===0;return{stroke:this.isGradient&&!qt?`url(#gradient-${this.gradientId})`:null,strokePathStyle:{stroke:this.isGradient?null:qt?Xi.get("success"):this.nzStrokeColor,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s",strokeDasharray:`${(it||0)/100*(te-q)}px ${te}px`,strokeDashoffset:`-${q/2}px`}}}).reverse()}setStrokeColor(){let k=this.nzStrokeColor,d=this.isGradient=!!k&&typeof k!="string";d&&!this.isCircleStyle?this.lineGradient=Hi(k):d&&this.isCircleStyle?this.circleGradient=Zi(this.nzStrokeColor):(this.lineGradient=null,this.circleGradient=[])}},(()=>{let k=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[Pe()],n=[Pe()],z=[Pe()],Ee=[Pe()],on=[Pe()],sn=[Pe()],cn=[Pe()],ge(null,null,t,{kind:"field",name:"nzShowInfo",static:!1,private:!1,access:{has:d=>"nzShowInfo"in d,get:d=>d.nzShowInfo,set:(d,v)=>{d.nzShowInfo=v}},metadata:k},i,e),ge(null,null,n,{kind:"field",name:"nzStrokeColor",static:!1,private:!1,access:{has:d=>"nzStrokeColor"in d,get:d=>d.nzStrokeColor,set:(d,v)=>{d.nzStrokeColor=v}},metadata:k},o,l),ge(null,null,z,{kind:"field",name:"nzSize",static:!1,private:!1,access:{has:d=>"nzSize"in d,get:d=>d.nzSize,set:(d,v)=>{d.nzSize=v}},metadata:k},X,ke),ge(null,null,Ee,{kind:"field",name:"nzStrokeWidth",static:!1,private:!1,access:{has:d=>"nzStrokeWidth"in d,get:d=>d.nzStrokeWidth,set:(d,v)=>{d.nzStrokeWidth=v}},metadata:k},fe,nt),ge(null,null,on,{kind:"field",name:"nzGapDegree",static:!1,private:!1,access:{has:d=>"nzGapDegree"in d,get:d=>d.nzGapDegree,set:(d,v)=>{d.nzGapDegree=v}},metadata:k},rn,an),ge(null,null,sn,{kind:"field",name:"nzGapPosition",static:!1,private:!1,access:{has:d=>"nzGapPosition"in d,get:d=>d.nzGapPosition,set:(d,v)=>{d.nzGapPosition=v}},metadata:k},ln,pn),ge(null,null,cn,{kind:"field",name:"nzStrokeLinecap",static:!1,private:!1,access:{has:d=>"nzStrokeLinecap"in d,get:d=>d.nzStrokeLinecap,set:(d,v)=>{d.nzStrokeLinecap=v}},metadata:k},mn,dn),k&&Object.defineProperty(ee,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:k})})(),Zt(ee,"\u0275fac",function(d){return new(d||ee)}),Zt(ee,"\u0275cmp",S({type:ee,selectors:[["nz-progress"]],inputs:{nzShowInfo:"nzShowInfo",nzWidth:"nzWidth",nzStrokeColor:"nzStrokeColor",nzSize:"nzSize",nzFormat:"nzFormat",nzSuccessPercent:[2,"nzSuccessPercent","nzSuccessPercent",pt],nzPercent:[2,"nzPercent","nzPercent",Kt],nzStrokeWidth:[2,"nzStrokeWidth","nzStrokeWidth",pt],nzGapDegree:[2,"nzGapDegree","nzGapDegree",pt],nzStatus:"nzStatus",nzType:"nzType",nzGapPosition:"nzGapPosition",nzStrokeLinecap:"nzStrokeLinecap",nzSteps:[2,"nzSteps","nzSteps",Kt]},exportAs:["nzProgress"],features:[_e],decls:5,vars:18,consts:[["progressInfoTemplate",""],[1,"ant-progress-inner",3,"width","height","fontSize","ant-progress-circle-gradient"],[1,"ant-progress-text"],[3,"nzType"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[1,"ant-progress-steps-outer"],[1,"ant-progress-steps-item",3,"style"],[3,"ngTemplateOutlet"],[1,"ant-progress-steps-item"],[1,"ant-progress-outer"],[1,"ant-progress-inner"],[1,"ant-progress-bg"],[1,"ant-progress-success-bg",3,"width","border-radius","height"],[1,"ant-progress-success-bg"],["viewBox","0 0 100 100",1,"ant-progress-circle"],["stroke","#f3f3f3","fill-opacity","0",1,"ant-progress-circle-trail"],["fill-opacity","0",1,"ant-progress-circle-path",3,"style"],["x1","100%","y1","0%","x2","0%","y2","0%",3,"id"],["fill-opacity","0",1,"ant-progress-circle-path"]],template:function(d,v){d&1&&(T(0,Ii,1,1,"ng-template",null,0,A),r(2,"div"),h(3,Ri,3,1,"div"),h(4,qi,7,14,"div",1),a()),d&2&&(s(2),Tn("ant-progress ant-progress-status-"+v.status),he("ant-progress-line",v.nzType==="line")("ant-progress-small",v.nzSize==="small")("ant-progress-default",v.nzSize==="default")("ant-progress-show-info",v.nzShowInfo)("ant-progress-circle",v.isCircleStyle)("ant-progress-steps",v.isSteps)("ant-progress-rtl",v.dir==="rtl"),s(),P(v.nzType==="line"?3:-1),s(),P(v.isCircleStyle?4:-1))},dependencies:[y,w,dt,mt,Ve],encapsulation:2,changeDetection:0})),ee})(),Si=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ze({type:t});static \u0275inj=Ce({imports:[nn]})}return t})();var to=["processDotTemplate"],no=["itemContainer"],io=(t,i,e)=>({$implicit:t,status:i,index:e});function oo(t,i){t&1&&c(0,"div",3)}function ro(t,i){if(t&1&&(r(0,"div",11),c(1,"nz-progress",12),a()),t&2){let e=m(2);s(),u("nzPercent",e.nzPercentage)("nzWidth",e.nzSize==="small"?32:40)("nzFormat",e.nullProcessFormat)("nzStrokeWidth",4)}}function ao(t,i){t&1&&(r(0,"span",5),c(1,"nz-icon",13),a())}function so(t,i){t&1&&(r(0,"span",5),c(1,"nz-icon",14),a())}function lo(t,i){if(t&1&&(r(0,"span",5),p(1),a()),t&2){let e=m(2);s(),re(" ",e.index+1," ")}}function po(t,i){if(t&1&&(de(0),c(1,"nz-icon",15),ue()),t&2){let e=i.$implicit;s(),u("nzType",e)}}function co(t,i){if(t&1&&(r(0,"span",5),T(1,po,2,1,"ng-container",8),a()),t&2){let e=m(2);s(),u("nzStringTemplateOutlet",e.nzIcon)}}function mo(t,i){if(t&1&&(h(0,ro,2,4,"div",11),h(1,ao,2,0,"span",5),h(2,so,2,0,"span",5),h(3,lo,2,1,"span",5),h(4,co,2,1,"span",5)),t&2){let e=m();P(e.showProgress?0:-1),s(),P(e.nzStatus==="finish"&&!e.nzIcon?1:-1),s(),P(e.nzStatus==="error"?2:-1),s(),P((e.nzStatus==="process"||e.nzStatus==="wait")&&!e.nzIcon?3:-1),s(),P(e.nzIcon?4:-1)}}function uo(t,i){t&1&&c(0,"span",17)}function fo(t,i){}function go(t,i){if(t&1&&(r(0,"span",5),T(1,uo,1,0,"ng-template",null,1,A)(3,fo,0,0,"ng-template",16),a()),t&2){let e=O(2),n=m();s(3),u("ngTemplateOutlet",n.customProcessTemplate||e)("ngTemplateOutletContext",Nn(2,io,e,n.nzStatus,n.index))}}function Co(t,i){if(t&1&&(de(0),p(1),ue()),t&2){let e=m();s(),N(e.nzTitle)}}function _o(t,i){if(t&1&&(de(0),p(1),ue()),t&2){let e=m(2);s(),N(e.nzSubtitle)}}function zo(t,i){if(t&1&&(r(0,"div",9),T(1,_o,2,1,"ng-container",8),a()),t&2){let e=m();s(),u("nzStringTemplateOutlet",e.nzSubtitle)}}function ho(t,i){if(t&1&&(de(0),p(1),ue()),t&2){let e=m();s(),N(e.nzDescription)}}var Po=["*"],kt=(()=>{class t{cdr=f(Xe);destroyRef=f(He);processDotTemplate;itemContainer;nzTitle;nzSubtitle;nzDescription;nzDisabled=!1;nzPercentage=null;nzSize="default";get nzStatus(){return this._status}set nzStatus(e){this._status=e,this.isCustomStatus=!0}isCustomStatus=!1;_status="wait";get nzIcon(){return this._icon}set nzIcon(e){e instanceof Jt||(this.oldAPIIcon=typeof e=="string"&&e.indexOf("anticon")>-1),this._icon=e}oldAPIIcon=!0;_icon;customProcessTemplate;direction="horizontal";index=0;last=!1;outStatus="process";showProcessDot=!1;clickable=!1;clickOutsideAngular$=new je;nullProcessFormat=()=>null;get showProgress(){return this.nzPercentage!==null&&!this.nzIcon&&this.nzStatus==="process"&&this.nzPercentage>=0&&this.nzPercentage<=100}get currentIndex(){return this._currentIndex}set currentIndex(e){this._currentIndex=e,this.isCustomStatus||(this._status=e>this.index?"finish":e===this.index?this.outStatus||"":"wait")}_currentIndex=0;ngOnInit(){Wn(this.itemContainer.nativeElement,"click").pipe(Qe(()=>this.clickable&&this.currentIndex!==this.index&&!this.nzDisabled),be(this.destroyRef)).subscribe(()=>{this.clickOutsideAngular$.next(this.index)})}enable(){this.nzDisabled=!1,this.cdr.markForCheck()}disable(){this.nzDisabled=!0,this.cdr.markForCheck()}markForCheck(){this.cdr.markForCheck()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["nz-step"]],viewQuery:function(n,o){if(n&1&&(Ye(to,5),Ye(no,7)),n&2){let l;Oe(l=Fe())&&(o.processDotTemplate=l.first),Oe(l=Fe())&&(o.itemContainer=l.first)}},hostAttrs:[1,"ant-steps-item"],hostVars:16,hostBindings:function(n,o){n&2&&he("ant-steps-item-wait",o.nzStatus==="wait")("ant-steps-item-process",o.nzStatus==="process")("ant-steps-item-finish",o.nzStatus==="finish")("ant-steps-item-error",o.nzStatus==="error")("ant-steps-item-active",o.currentIndex===o.index)("ant-steps-item-disabled",o.nzDisabled)("ant-steps-item-custom",!!o.nzIcon)("ant-steps-next-error",o.outStatus==="error"&&o.currentIndex===o.index+1)},inputs:{nzTitle:"nzTitle",nzSubtitle:"nzSubtitle",nzDescription:"nzDescription",nzDisabled:[2,"nzDisabled","nzDisabled",Bn],nzPercentage:"nzPercentage",nzSize:"nzSize",nzStatus:"nzStatus",nzIcon:"nzIcon"},exportAs:["nzStep"],decls:12,vars:8,consts:[["itemContainer",""],["processDotTemplate",""],[1,"ant-steps-item-container",3,"tabindex"],[1,"ant-steps-item-tail"],[1,"ant-steps-item-icon"],[1,"ant-steps-icon"],[1,"ant-steps-item-content"],[1,"ant-steps-item-title"],[4,"nzStringTemplateOutlet"],[1,"ant-steps-item-subtitle"],[1,"ant-steps-item-description"],[1,"ant-steps-progress-icon"],["nzType","circle",3,"nzPercent","nzWidth","nzFormat","nzStrokeWidth"],["nzType","check"],["nzType","close"],[3,"nzType"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-steps-icon-dot"]],template:function(n,o){n&1&&(r(0,"div",2,0),h(2,oo,1,0,"div",3),r(3,"div",4),h(4,mo,5,5),h(5,go,4,6,"span",5),a(),r(6,"div",6)(7,"div",7),T(8,Co,2,1,"ng-container",8),h(9,zo,2,1,"div",9),a(),r(10,"div",10),T(11,ho,2,1,"ng-container",8),a()()()),n&2&&(u("tabindex",o.clickable&&!o.nzDisabled?0:null),Ie("role",o.clickable&&!o.nzDisabled?"button":null),s(2),P(o.last?-1:2),s(2),P(o.showProcessDot?-1:4),s(),P(o.showProcessDot?5:-1),s(3),u("nzStringTemplateOutlet",o.nzTitle),s(),P(o.nzSubtitle?9:-1),s(2),u("nzStringTemplateOutlet",o.nzDescription))},dependencies:[Si,nn,y,w,dt,mt,Ve],encapsulation:2,changeDetection:0})}return t})(),vi=(()=>{class t{static ngAcceptInputType_nzProgressDot;cdr=f(Xe);ngZone=f(vn);directionality=f(ct);destroyRef=f(He);steps;nzCurrent=0;nzDirection="horizontal";nzLabelPlacement="horizontal";nzType="default";nzSize="default";nzStartIndex=0;nzStatus="process";set nzProgressDot(e){e instanceof Jt?(this.showProcessDot=!0,this.customProcessDotTemplate=e):this.showProcessDot=An(e),this.updateChildrenSteps()}nzIndexChange=new V;indexChangeSubscription=ot.EMPTY;showProcessDot=!1;showProgress=!1;customProcessDotTemplate;dir="ltr";ngOnChanges(e){let{nzStartIndex:n,nzDirection:o,nzStatus:l,nzCurrent:z,nzSize:X}=e;(n||o||l||z||X)&&this.updateChildrenSteps()}ngOnInit(){this.directionality.change?.pipe(be(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.updateChildrenSteps()}ngAfterContentInit(){this.steps&&this.steps.changes.pipe(hn(null),be(this.destroyRef)).subscribe(()=>{this.updateHostProgressClass(),this.updateChildrenSteps()})}updateHostProgressClass(){this.steps&&!this.showProcessDot&&(this.showProgress=!!this.steps.toArray().find(e=>e.nzPercentage!==null))}updateChildrenSteps(){if(this.steps){let e=this.steps.length;this.steps.toArray().forEach((n,o)=>{Promise.resolve().then(()=>{n.nzSize=this.nzSize,n.outStatus=this.nzStatus,n.showProcessDot=this.showProcessDot,this.customProcessDotTemplate&&(n.customProcessTemplate=this.customProcessDotTemplate),n.clickable=this.nzIndexChange.observers.length>0,n.direction=this.nzDirection,n.index=o+this.nzStartIndex,n.currentIndex=this.nzCurrent,n.last=e===o+1,n.markForCheck()})}),this.indexChangeSubscription.unsubscribe(),this.indexChangeSubscription=gn(...this.steps.map(n=>n.clickOutsideAngular$)).pipe(be(this.destroyRef)).subscribe(n=>{this.nzIndexChange.observers.length&&this.ngZone.run(()=>this.nzIndexChange.emit(n))})}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["nz-steps"]],contentQueries:function(n,o,l){if(n&1&&kn(l,kt,4),n&2){let z;Oe(z=Fe())&&(o.steps=z)}},hostAttrs:[1,"ant-steps"],hostVars:18,hostBindings:function(n,o){n&2&&he("ant-steps-horizontal",o.nzDirection==="horizontal")("ant-steps-vertical",o.nzDirection==="vertical")("ant-steps-label-horizontal",o.nzDirection==="horizontal")("ant-steps-label-vertical",(o.showProcessDot||o.nzLabelPlacement==="vertical")&&o.nzDirection==="horizontal")("ant-steps-dot",o.showProcessDot)("ant-steps-small",o.nzSize==="small")("ant-steps-navigation",o.nzType==="navigation")("ant-steps-rtl",o.dir==="rtl")("ant-steps-with-progress",o.showProgress)},inputs:{nzCurrent:"nzCurrent",nzDirection:"nzDirection",nzLabelPlacement:"nzLabelPlacement",nzType:"nzType",nzSize:"nzSize",nzStartIndex:"nzStartIndex",nzStatus:"nzStatus",nzProgressDot:"nzProgressDot"},outputs:{nzIndexChange:"nzIndexChange"},exportAs:["nzSteps"],features:[_e],ngContentSelectors:Po,decls:1,vars:0,template:function(n,o){n&1&&(xn(),yn(0))},encapsulation:2,changeDetection:0})}return t})(),Mi=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ze({type:t});static \u0275inj=Ce({imports:[kt]})}return t})();var Mo=()=>({padding:"8px"});function xo(t,i){if(t&1){let e=M();r(0,"button",13),g("click",function(){C(e);let o=m();return _(o.copy())}),c(1,"nz-icon",14),a()}if(t&2){let e=m();u("nz-tooltip",e.copyied?"\u5DF2\u590D\u5236":"\u590D\u5236")}}function yo(t,i){if(t&1&&(r(0,"div",9)(1,"nz-tag",15),p(2),a()()),t&2){let e=m();s(2),re("\u63A8\u8350\uFF1A",e.draft.detected==null?null:e.draft.detected.recommendedScript)}}function ko(t,i){t&1&&(r(0,"div",10),p(1," \u26A0\uFE0F \u8986\u76D6\u5DF2\u5B58\u5728\u76EE\u5F55 "),a())}function To(t,i){if(t&1){let e=M();r(0,"button",16),g("click",function(){C(e);let o=m();return _(o.isDrawerOpen=!o.isDrawerOpen)}),c(1,"nz-icon",17),p(2," \u65E5\u5FD7\u8F93\u51FA "),a()}}function wo(t,i){t&1&&(de(0),c(1,"app-terminal-view"),ue()),t&2&&(s(),Be("height",100,"%"))}var Tt=class t{draft;chunk="";clipboard=f(pi);term;isDrawerOpen=!1;isCreating=Fn(!1);copyied=!1;ngOnChanges(i){i.chunk&&i.chunk.currentValue&&this.term&&this.term.write(this.chunk),i.isCreating&&i.isCreating.currentValue===!0&&(this.isDrawerOpen=!0)}copy(){let i=this.draft.repoUrl||"";this.clipboard.copy(i),this.copyied=!0,setTimeout(()=>{this.copyied=!1},2e3)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=S({type:t,selectors:[["app-create-summary-aside"]],viewQuery:function(e,n){if(e&1&&Ye(tn,5),e&2){let o;Oe(o=Fe())&&(n.term=o.first)}},inputs:{draft:"draft",chunk:"chunk",isCreating:[1,"isCreating"]},outputs:{isCreating:"isCreatingChange"},features:[_e],decls:44,vars:16,consts:[["logActions",""],["nzTitle","\u6458\u8981","nzSize","small",3,"nzExtra"],[1,"item"],[1,"k"],[1,"v"],[1,"v","mono"],[1,"v",3,"nz-tooltip"],["nz-button","","nzType","text","nzSize","small",3,"nz-tooltip"],[1,"sep"],[1,"tag"],[1,"warn"],["nzTitle","\u65E5\u5FD7","nzPlacement","right",3,"nzOnClose","nzVisible","nzWidth","nzBodyStyle"],[4,"nzDrawerContent"],["nz-button","","nzType","text","nzSize","small",3,"click","nz-tooltip"],["nzType","copy","nzTheme","outline"],["nzColor","blue"],["nz-button","","nzType","text","nzSize","small",3,"click"],["nzType","desktop","nzTheme","outline"]],template:function(e,n){if(e&1){let o=M();r(0,"nz-card",1)(1,"div",2)(2,"span",3),p(3,"\u540D\u79F0"),a(),r(4,"span",4),p(5),a()(),r(6,"div",2)(7,"span",3),p(8,"\u8DEF\u5F84"),a(),r(9,"span",5),p(10),a()(),r(11,"div",2)(12,"span",3),p(13,"\u5305\u7BA1\u7406\u5668"),a(),r(14,"span",4),p(15),a()(),r(16,"div",2)(17,"span",3),p(18,"Git \u8FDC\u7A0B\u4ED3\u5E93"),a(),r(19,"span",6),p(20),a(),h(21,xo,2,1,"button",7),a(),c(22,"div",8),r(23,"div",2)(24,"span",3),p(25,"\u6846\u67B6"),a(),r(26,"span",4),p(27),a()(),r(28,"div",2)(29,"span",3),p(30,"\u811A\u672C\u547D\u4EE4"),a(),r(31,"span",4),p(32),a()(),r(33,"div",2)(34,"span",3),p(35,"Git"),a(),r(36,"span",4),p(37),a()(),h(38,yo,3,1,"div",9),h(39,ko,2,0,"div",10),a(),T(40,To,3,0,"ng-template",null,0,A),r(42,"nz-drawer",11),g("nzOnClose",function(){return C(o),_(n.isDrawerOpen=!1)}),T(43,wo,2,2,"ng-container",12),a()}if(e&2){let o=O(41);u("nzExtra",o),s(5),N(n.draft.name||"-"),s(5),N(n.draft.rootPath||"-"),s(5),N(n.draft.packageManager),s(4),u("nz-tooltip",n.draft.repoUrl||""),s(),N(n.draft.repoUrl||"-"),s(),P(n.draft.repoUrl?21:-1),s(6),N((n.draft.detected==null?null:n.draft.detected.framework)||"-"),s(5),N((n.draft.detected==null?null:n.draft.detected.scriptsCount)??"-"),s(5),N(n.draft.detected!=null&&n.draft.detected.hasGit?"Yes":"No"),s(),P(n.draft.detected!=null&&n.draft.detected.recommendedScript?38:-1),s(),P(n.draft.overwriteIfExists?39:-1),s(3),u("nzVisible",n.isDrawerOpen)("nzWidth",720)("nzBodyStyle",En(15,Mo))}},dependencies:[x,G,se,$e,yt,ve,Se,y,w,j,W,F,tn,qn,Un,$n],styles:[".item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:10px;padding:6px 0;align-items:center}.k[_ngcontent-%COMP%]{opacity:.7;width:90px;font-size:14px}.v[_ngcontent-%COMP%]{text-align:right;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mono[_ngcontent-%COMP%]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;word-break:break-all}.sep[_ngcontent-%COMP%]{height:1px;background:#0000000f;margin:10px 0}.tag[_ngcontent-%COMP%]{margin-top:8px;text-align:right}.warn[_ngcontent-%COMP%]{margin-top:10px;font-size:12px;color:#d46b08}"],changeDetection:0})};function jo(t,i){t&1&&c(0,"nz-empty",6)}function Io(t,i){if(t&1&&(r(0,"nz-tag",17),p(1),jn(2,"titlecase"),a()),t&2){let e=m().$implicit,n=Dn(4);u("nzColor",n==="angular"?"#dd0031":n==="vue"?"#42b883":"#108ee9"),s(),re(" ",In(2,2,e.kind)," ")}}function Oo(t,i){if(t&1&&(r(0,"div",14)(1,"div",15)(2,"div",16),p(3),a(),wn(4),h(5,Io,3,4,"nz-tag",17),a()()),t&2){let e=i.$implicit;u("nzValue",e.path),s(2),u("nz-tooltip",e.path),s(),N(e.path),s();let n=bn(e.kind);s(),P(n?5:-1)}}function Fo(t,i){if(t&1){let e=M();r(0,"nz-radio-group",13),E("ngModelChange",function(o){C(e);let l=m();return D(l.selectedPath,o)||(l.selectedPath=o),_(o)}),ie(1,Oo,6,5,"div",14,Mn),a()}if(t&2){let e=m();b("ngModel",e.selectedPath),s(),oe(e.filtered())}}var bt=class t{constructor(i){this.modalRef=i}data=f(gt);keyword=L("");selectedPath=L(null);ngOnInit(){let{candidates:i,defaultPicked:e}=this.data,n=e&&i.includes(e)?e:i[0]??"";this.selectedPath.set(n?.path??null)}filtered=$(()=>{let i=(this.keyword()||"").trim().toLowerCase(),e=this.data.candidates??[];return i?e.filter(n=>n.path.toLowerCase().includes(i)):e});cancel(){this.modalRef.close(null)}ok(){let i=this.selectedPath();i&&this.modalRef.close({pickedRoot:i})}static \u0275fac=function(e){return new(e||t)(rt(Ct))};static \u0275cmp=S({type:t,selectors:[["app-pick-workspace-modal"]],decls:17,vars:3,consts:[[1,"wrap"],[1,"hint"],[1,"toolbar"],["nz-input","","placeholder","\u8FC7\u6EE4\u8DEF\u5F84\uFF08\u5173\u952E\u5B57\uFF09",3,"ngModelChange","ngModel"],["nzType","search","nzTheme","outline","nzSuffix",""],[1,"list"],["nzNotFoundContent","\u6CA1\u6709\u5339\u914D\u7684\u76EE\u5F55"],["nzSize","large",3,"ngModel"],[1,"actions"],["nz-button","",3,"click"],["nzType","close","nzTheme","outline"],["nz-button","","nzType","primary",3,"click","disabled"],["nzType","check","nzTheme","outline"],["nzSize","large",3,"ngModelChange","ngModel"],["nz-radio","",1,"item",3,"nzValue"],[1,"path"],["nzTooltipPlacement","top",1,"value",3,"nz-tooltip"],["nzMode","default",3,"nzColor"]],template:function(e,n){e&1&&(r(0,"div",0)(1,"div",1),p(2," \u68C0\u6D4B\u5230\u8BE5\u4ED3\u5E93\u53EF\u80FD\u5305\u542B\u591A\u4E2A\u524D\u7AEF\u5DE5\u4F5C\u533A\uFF08Angular / Vue \u7B49\uFF09\u3002\u8BF7\u9009\u62E9\u4E00\u4E2A\u76EE\u5F55\u7EE7\u7EED\u5BFC\u5165\uFF1A "),a(),r(3,"div",2)(4,"nz-input-wrapper")(5,"input",3),E("ngModelChange",function(l){return D(n.keyword,l)||(n.keyword=l),l}),a(),c(6,"nz-icon",4),a()(),r(7,"div",5),h(8,jo,1,0,"nz-empty",6)(9,Fo,3,1,"nz-radio-group",7),a(),r(10,"div",8)(11,"button",9),g("click",function(){return n.cancel()}),c(12,"nz-icon",10),p(13," \u53D6\u6D88 "),a(),r(14,"button",11),g("click",function(){return n.ok()}),c(15,"nz-icon",12),p(16," \u9009\u4E2D\u5E76\u7EE7\u7EED "),a()()()),e&2&&(s(5),b("ngModel",n.keyword),s(3),P(n.filtered().length===0?8:9),s(6),u("disabled",!n.selectedPath()))},dependencies:[x,I,ce,Z,H,Me,Y,me,Ae,Le,xt,Mt,j,W,F,ae,y,w,St,Pt,$e,yt,ve,Se,Vn],styles:[".wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.hint[_ngcontent-%COMP%]{opacity:.85}.toolbar[_ngcontent-%COMP%]{margin-top:4px}nz-radio-group[_ngcontent-%COMP%]{width:100%}.list[_ngcontent-%COMP%]{height:240px;overflow:auto;padding:8px;border:var(--app-border-color);border-radius:8px}.item[_ngcontent-%COMP%]{display:flex;gap:8px;padding:12px;border-radius:8px;margin:0;width:100%}.item[_ngcontent-%COMP%]:hover{background-color:var(--app-primary-3)}.item[_ngcontent-%COMP%] .ant-radio+span{display:flex;gap:12px;align-items:center;flex:1 1 auto;width:0;padding:0}.path[_ngcontent-%COMP%]{display:flex;gap:12px;flex:1 1 auto;text-overflow:ellipsis;white-space:nowrap;width:0;overflow:hidden}.path[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;text-overflow:ellipsis;white-space:nowrap;flex:1 1 auto;width:0;overflow:hidden}.actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}"]})};function Vo(t,i){t&1&&(r(0,"span",4),p(1,"\u8BE5\u8DEF\u5F84\u5DF2\u5B58\u5728"),a())}function Ao(t,i){if(t&1){let e=M();r(0,"input",15),E("ngModelChange",function(o){C(e);let l=m();return D(l.draft.initialCommitMessage,o)||(l.draft.initialCommitMessage=o),_(o)}),a()}if(t&2){let e=m();b("ngModel",e.draft.initialCommitMessage)}}var Nt=class t{draft;draftChange=new V;pathCheck$=new je;pathExists=!1;fsApi=f(Xn);ngOnInit(){this.computeRootPath(),this.pathCheck$.pipe(Cn(200),_n(),Pn(i=>i?this.fsApi.pathExists(i):fn(!1))).subscribe(i=>{this.emit(),this.pathExists=i})}recalcRoot(){this.computeRootPath(),this.pathCheck$.next(this.draft.rootPath)}computeRootPath(){let i=(this.draft.parentDir??"").replace(/[\\/]+$/,""),e=(this.draft.name??"").trim();this.draft.rootPath=i&&e?`${i}/${e}`.replaceAll("\\","/"):i}emit(){this.draftChange.emit(K({},this.draft))}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=S({type:t,selectors:[["app-step-basic"]],inputs:{draft:"draft"},outputs:{draftChange:"draftChange"},decls:40,vars:8,consts:[["nzTitle","\u57FA\u7840\u8BBE\u7F6E"],["nz-form","","nzLayout","vertical"],["nz-input","","name","name","placeholder","\u8F93\u5165\u9879\u76EE\u540D",3,"ngModelChange","ngModel"],[1,"hint"],[2,"margin-left","8px","color","#ff4d4f"],["name","pm",3,"ngModelChange","ngModel"],["nzValue","auto","nzLabel","\u9ED8\u8BA4"],["nzValue","npm","nzLabel","npm"],["nzValue","pnpm","nzLabel","pnpm"],["nzValue","yarn","nzLabel","yarn"],[1,"switch-row"],["name","overwrite",3,"ngModelChange","ngModel"],["name","skip",3,"ngModelChange","ngModel"],["name","initGit",3,"ngModelChange","ngModel"],["nz-input","","name","msg","placeholder","\u8986\u76D6\u63D0\u4EA4\u4FE1\u606F(\u9009\u586B)",3,"ngModel"],["nz-input","","name","msg","placeholder","\u8986\u76D6\u63D0\u4EA4\u4FE1\u606F(\u9009\u586B)",3,"ngModelChange","ngModel"]],template:function(e,n){e&1&&(r(0,"nz-card",0)(1,"form",1)(2,"nz-form-item")(3,"nz-form-label"),p(4,"\u9879\u76EE\u6587\u4EF6\u5939"),a(),r(5,"nz-form-control")(6,"input",2),E("ngModelChange",function(l){return D(n.draft.name,l)||(n.draft.name=l),l}),g("ngModelChange",function(){return n.recalcRoot()}),a(),r(7,"div",3),p(8),h(9,Vo,2,0,"span",4),a()()(),r(10,"nz-form-item")(11,"nz-form-label"),p(12,"\u5305\u7BA1\u7406\u5668"),a(),r(13,"nz-form-control")(14,"nz-select",5),E("ngModelChange",function(l){return D(n.draft.packageManager,l)||(n.draft.packageManager=l),l}),c(15,"nz-option",6)(16,"nz-option",7)(17,"nz-option",8)(18,"nz-option",9),a()()(),r(19,"nz-form-item")(20,"nz-form-label"),p(21,"\u66F4\u591A\u9009\u9879"),a(),r(22,"nz-form-control")(23,"div",10)(24,"span"),p(25,"\u82E5\u76EE\u6807\u6587\u4EF6\u5939\u5DF2\u5B58\u5728\u5219\u8986\u76D6"),a(),r(26,"nz-switch",11),E("ngModelChange",function(l){return D(n.draft.overwriteIfExists,l)||(n.draft.overwriteIfExists=l),l}),g("ngModelChange",function(){return n.emit()}),a()(),r(27,"div",10)(28,"span"),p(29,"\u65E0\u65B0\u624B\u6307\u5F15\u7684\u811A\u624B\u67B6\u9879\u76EE"),a(),r(30,"nz-switch",12),E("ngModelChange",function(l){return D(n.draft.skipOnboarding,l)||(n.draft.skipOnboarding=l),l}),a()()()(),r(31,"nz-form-item")(32,"nz-form-label"),p(33,"Git"),a(),r(34,"nz-form-control")(35,"div",10)(36,"span"),p(37,"\u521D\u59CB\u5316 git \u4ED3\u5E93\uFF08\u5EFA\u8BAE\uFF09"),a(),r(38,"nz-switch",13),E("ngModelChange",function(l){return D(n.draft.initGit,l)||(n.draft.initGit=l),l}),a()(),h(39,Ao,1,1,"input",14),a()()()()),e&2&&(s(6),b("ngModel",n.draft.name),s(2),re(" ",n.draft.rootPath," "),s(),P(n.pathExists?9:-1),s(5),b("ngModel",n.draft.packageManager),s(12),b("ngModel",n.draft.overwriteIfExists),s(4),b("ngModel",n.draft.skipOnboarding),s(8),b("ngModel",n.draft.initGit),s(),P(n.draft.initGit?39:-1))},dependencies:[x,I,Hn,ce,Z,Qn,H,Zn,zi,Q,le,gi,fi,_i,Ci,Y,me,j,vt,ni,ii,Re,_t,G,se,ve,y,Me],styles:[".hint[_ngcontent-%COMP%]{margin-top:6px;font-size:12px;opacity:.7}.switch-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding-bottom:4px}.switch-row[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px}.emit[_ngcontent-%COMP%]{margin-top:8px}"]})};var jt=class t{draft;draftChange=new V;emit(){this.draftChange.emit(K({},this.draft))}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=S({type:t,selectors:[["app-step-config"]],inputs:{draft:"draft"},outputs:{draftChange:"draftChange"},decls:12,vars:2,consts:[["nzTitle","\u521B\u5EFA\u540E\u9ED8\u8BA4\u884C\u4E3A"],[1,"row"],[1,"label"],[3,"ngModelChange","ngModel"],[1,"row","col"],["nz-input","","placeholder","\u4F8B\u5982\uFF1Adev / start",3,"ngModelChange","ngModel"],[1,"hint"]],template:function(e,n){e&1&&(r(0,"nz-card",0)(1,"div",1)(2,"div",2),p(3,"\u7F6E\u9876\u6536\u85CF"),a(),r(4,"nz-switch",3),E("ngModelChange",function(l){return D(n.draft.pinFavorite,l)||(n.draft.pinFavorite=l),l}),g("ngModelChange",function(){return n.emit()}),a()(),c(5,"div",4),r(6,"div",4)(7,"div",2),p(8,"\u9ED8\u8BA4\u4EFB\u52A1\uFF08\u53EF\u9009\uFF09"),a(),r(9,"input",5),E("ngModelChange",function(l){return D(n.draft.defaultTaskName,l)||(n.draft.defaultTaskName=l),l}),g("ngModelChange",function(){return n.emit()}),a(),r(10,"div",6),p(11,"\u5EFA\u8BAE\u586B\u8BC6\u522B\u5230\u7684 dev \u6216 start"),a()()()),e&2&&(s(4),b("ngModel",n.draft.pinFavorite),s(5),b("ngModel",n.draft.defaultTaskName))},dependencies:[x,I,ce,Z,H,G,se,Le,Re,_t,Y,me],styles:[".row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:10px 0}.row.col[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:8px}.label[_ngcontent-%COMP%]{font-weight:500}.hint[_ngcontent-%COMP%]{font-size:12px;opacity:.7}"]})};var It=class t{draft;draftChange=new V;emit(){this.draftChange.emit(K({},this.draft))}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=S({type:t,selectors:[["app-step-features"]],inputs:{draft:"draft"},outputs:{draftChange:"draftChange"},decls:1,vars:0,consts:[["nzTitle","\u529F\u80FD\u5F00\u5173\uFF08Project Scope\uFF09"]],template:function(e,n){e&1&&c(0,"nz-card",0)},dependencies:[x,I,G,se,Re],styles:[".row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:10px 0}.label[_ngcontent-%COMP%]{font-weight:500}"]})};var Ot=class t{nzModalData=f(gt);isModalVisible=!1;isSaving=!1;static \u0275fac=function(e){return new(e||t)};static \u0275cmp=S({type:t,selectors:[["app-git-import-modal-component"]],decls:8,vars:1,consts:[[1,"modal-body"],[1,"label"],["nz-input","","placeholder","\u8BF7\u8F93\u5165Git\u4ED3\u5E93\u5730\u5740","autofocus","",3,"ngModelChange","ngModel"],["nzInputPrefix","","nzType","github","nzTheme","outline"],[1,"hint"]],template:function(e,n){e&1&&(r(0,"div",0)(1,"label",1),p(2,"URL"),a(),r(3,"nz-input-wrapper")(4,"input",2),E("ngModelChange",function(l){return D(n.nzModalData.cloneUrl,l)||(n.nzModalData.cloneUrl=l),l}),a(),c(5,"nz-icon",3),a(),r(6,"div",4),p(7," Git \u4ED3\u5E93\u5730\u5740, \u5982 'username/repo'. \u53EF\u4EE5\u4F7F\u7528\u524D\u7F00\u5982 'gitlab:' \u6216 'bitbucket:'. "),a()()),e&2&&(s(4),b("ngModel",n.nzModalData.cloneUrl))},dependencies:[x,I,ce,Z,H,y,w,Me,Y,me,Ae,ut,vt,j,F],styles:[".hint[_ngcontent-%COMP%]{margin-top:6px;font-size:12px;opacity:.7}"]})};function Wo(t,i){if(t&1){let e=M();r(0,"button",10),g("click",function(){C(e);let o=m();return _(o.requestDetect.emit())}),c(1,"nz-icon",11),a()}}var Ft=class t{draft;draftChange=new V;requestDetect=new V;modal=f(We);emit(){this.draftChange.emit(K({},this.draft))}presetChange(i){if(this.draft.preset=i,i==="git"){this.openImportGitModal();return}else this.draft.repoUrl=void 0,this.emit()}openImportGitModal(){let i=this.modal.create({nzTitle:"\u4ECE Git \u4ED3\u5E93\u5BFC\u5165\u9879\u76EE",nzMaskClosable:!1,nzContent:Ot,nzCentered:!0,nzWidth:"580px",nzClosable:!1,nzData:{cloneUrl:"",isSaving:!1},nzFooter:[{label:"\u53D6\u6D88",type:"default",onClick:()=>{i.close(),this.draft.repoUrl=void 0,this.draft.preset="angular",this.emit()}},{label:"\u5BFC\u5165",type:"primary",onClick:e=>{let n=e.nzModalData.cloneUrl,o=e.nzModalData.isSaving;!n||!n.trim()||o||(e.nzModalData.isSaving=!0,this.draft.repoUrl=n.trim(),e.nzModalData.isSaving=!1,this.emit(),i.close())},disabled:e=>{let n=e?.nzModalData.cloneUrl;return!n||!n.trim()},loading:e=>e?.nzModalData.isSaving===!0}]})}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=S({type:t,selectors:[["app-step-preset"]],inputs:{draft:"draft"},outputs:{draftChange:"draftChange",requestDetect:"requestDetect"},decls:19,vars:2,consts:[["reloadExtraTpl",""],["nzTitle","\u9009\u62E9\u4E00\u5957\u9884\u8BBE",3,"nzExtra"],["nzSize","large",3,"ngModelChange","ngModel"],["nz-radio","","nzValue","angular"],["for","angular"],[1,"hint"],["nz-radio","","nzValue","vue3"],["for","vue3"],["nz-radio","","nzValue","git"],["for","git"],["nz-button","","nzType","text","nzSize","small",3,"click"],["nzType","reload","nzTheme","outline"]],template:function(e,n){if(e&1){let o=M();r(0,"nz-card",1),T(1,Wo,2,0,"ng-template",null,0,A),r(3,"nz-radio-group",2),E("ngModelChange",function(z){return C(o),D(n.draft.preset,z)||(n.draft.preset=z),_(z)}),g("ngModelChange",function(z){return C(o),_(n.presetChange(z))}),r(4,"div",3)(5,"label",4),p(6,"Angular"),a(),r(7,"div",5),p(8," \u9002\u7528\u4E8E\u4F7F\u7528 Angular \u6846\u67B6\u5F00\u53D1\u7684\u9879\u76EE\uFF0C\u652F\u6301 Angular CLI \u76F8\u5173\u4EFB\u52A1\u548C\u914D\u7F6E\u3002 "),a()(),r(9,"div",6)(10,"label",7),p(11,"Vue 3"),a(),r(12,"div",5),p(13," \u9002\u7528\u4E8E\u4F7F\u7528 Vue 3 \u6846\u67B6\u5F00\u53D1\u7684\u9879\u76EE\uFF0C\u652F\u6301 Vite \u548C Vue CLI \u76F8\u5173\u4EFB\u52A1\u548C\u914D\u7F6E\u3002 "),a()(),r(14,"div",8)(15,"label",9),p(16,"Git\u5BFC\u5165"),a(),r(17,"div",5),p(18," \u4ECE\u73B0\u6709\u7684 Git \u4ED3\u5E93\u5BFC\u5165\u9879\u76EE\uFF0C\u81EA\u52A8\u8BC6\u522B\u9879\u76EE\u7ED3\u6784\u548C\u914D\u7F6E\u3002 "),a()()()()}if(e&2){let o=O(2);u("nzExtra",o),s(3),b("ngModel",n.draft.preset)}},dependencies:[x,I,Z,H,G,se,ai,j,W,F,$e,y,w,Le,xt,Mt],styles:[".kv[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px}.k[_ngcontent-%COMP%]{opacity:.7;display:inline-block;width:120px}.opt[_ngcontent-%COMP%]{margin-top:10px}nz-radio-group[_ngcontent-%COMP%]{width:100%}[nz-radio][_ngcontent-%COMP%]{display:block;padding:12px;border-radius:8px;width:100%;margin:0}[nz-radio][_ngcontent-%COMP%]:hover{background-color:var(--app-primary-3)}.hint[_ngcontent-%COMP%]{margin-left:24px;font-size:12px;opacity:.75}"]})};function yi(){return{preset:"angular",name:"",parentDir:"",rootPath:"",packageManager:"auto",overwriteIfExists:!1,skipOnboarding:!0,initGit:!0,initialCommitMessage:"",importScriptsAsTasks:!0,importMakefileTasks:!1,importDockerComposeTasks:!1,generateCommonTasks:!0,pinFavorite:!1,defaultTaskName:"",cliFramework:"angular",cliTool:"@angular/cli",cliArgs:[]}}function Ro(t,i){if(t&1){let e=M();r(0,"app-step-basic",15),g("draftChange",function(o){C(e);let l=m();return _(l.setDraft(o))}),a()}if(t&2){let e=m();u("draft",e.draft())}}function Go(t,i){if(t&1){let e=M();r(0,"app-step-preset",16),g("draftChange",function(o){C(e);let l=m();return _(l.setDraft(o))})("requestDetect",function(){C(e);let o=m();return _(o.detectNow())}),a()}if(t&2){let e=m();u("draft",e.draft())}}function Lo(t,i){if(t&1){let e=M();r(0,"app-step-features",15),g("draftChange",function(o){C(e);let l=m();return _(l.setDraft(o))}),a()}if(t&2){let e=m();u("draft",e.draft())}}function $o(t,i){if(t&1){let e=M();r(0,"app-step-config",15),g("draftChange",function(o){C(e);let l=m();return _(l.setDraft(o))}),a()}if(t&2){let e=m();u("draft",e.draft())}}function Uo(t,i){if(t&1){let e=M();r(0,"button",17),g("click",function(){C(e);let o=m();return _(o.cancel())}),c(1,"nz-icon",18),p(2," \u53D6\u6D88 "),a()}}function qo(t,i){if(t&1){let e=M();r(0,"button",17),g("click",function(){C(e);let o=m();return _(o.prev())}),c(1,"nz-icon",19),p(2," \u4E0A\u4E00\u6B65 "),a()}}function Qo(t,i){if(t&1){let e=M();r(0,"button",20),g("click",function(){C(e);let o=m();return _(o.create())}),c(1,"nz-icon",21),p(2," \u521B\u5EFA\u9879\u76EE "),a()}if(t&2){let e=m();u("disabled",e.creating())}}function Zo(t,i){if(t&1){let e=M();r(0,"button",20),g("click",function(){C(e);let o=m();return _(o.next())}),p(1," \u4E0B\u4E00\u6B65 "),c(2,"nz-icon",22),a()}if(t&2){let e=m();u("disabled",!e.canNext()||!e.canGoNext())}}var Bt=class t{step=L(0);draft=L(yi());creating=L(!1);output=L("");isDrawerOpen=L(!1);fs=f(ft);parentDir=this.fs.currentPath();modalRef=f(Ct);api=f(ht);modal=f(We);notify=f(Ge);taskStream=f(ei);projectState=f(xe);router=f(lt);sub=new ot;ngOnInit(){let i=this.draft(),e=this.parentDir;this.draft.set(Qt(K({},i),{rootPath:"",parentDir:e,name:""}))}detectNow(){let i=this.draft();i.rootPath?.trim()&&this.api.detect(i.rootPath).subscribe(e=>{let n=e.scripts??[],o={framework:e.framework??"unknown",hasPackageJson:!!e.hasPackageJson,scriptsCount:n.length,hasGit:!!e.hasGit,lockFile:e.lockFile??"unknown",recommendedScript:n.includes("dev")?"dev":n.includes("start")?"start":"",hasMakefile:!!e.hasMakefile,hasDockerCompose:!!e.hasDockerCompose},l=n.length>0,z=!!e.hasMakefile,X=!!e.hasDockerCompose;this.draft.set(Qt(K({},i),{detected:o,importScriptsAsTasks:l,importMakefileTasks:z&&i.importMakefileTasks,importDockerComposeTasks:X&&i.importDockerComposeTasks,defaultTaskName:o.recommendedScript||i.defaultTaskName}))})}async create(){let i=this.draft();if(!i.rootPath?.trim()||!i.name?.trim()){this.notify.error("\u8BF7\u5148\u5B8C\u5584\u9879\u76EE\u4FE1\u606F");return}if(this.creating())return;let e="\u786E\u8BA4\u521B\u5EFA\u9879\u76EE\uFF1F",n=`\u8BF7\u786E\u8BA4\u76EE\u6807\u8DEF\u5F84 ${i.rootPath}\uFF0C\u786E\u5B9A\u8981\u521B\u5EFA\u8BE5\u9879\u76EE\u5417\uFF1F`,o="\u786E\u8BA4\u521B\u5EFA",l=!1;i.overwriteIfExists&&(e="\u786E\u8BA4\u8986\u76D6\u5DF2\u5B58\u5728\u7684\u9879\u76EE\uFF1F",n=`\u8BF7\u786E\u8BA4\u76EE\u6807\u8DEF\u5F84 ${i.rootPath}\uFF0C\u521B\u5EFA\u65F6\u4F1A\u8986\u76D6\u539F\u6709\u6570\u636E\uFF0C\u4E14\u4E0D\u53EF\u6062\u590D\uFF0C\u786E\u5B9A\u8981\u7EE7\u7EED\u5417\uFF1F`,o="\u786E\u8BA4\u8986\u76D6",l=!0);let z=this.modal.confirm({nzTitle:e,nzContent:n,nzOkText:o,nzCancelText:"\u53D6\u6D88",nzOkDanger:l,nzCentered:!0,nzOnOk:async()=>{this.doCreate(i),z.close()}})}async doCreate(i){this.creating.set(!0),this.taskStream.ensureConnected();let e=new je;try{let n=i.preset==="git"?this.api.bootstrapByGit(i):this.api.bootstrapByCli(i),{taskId:o}=await qe(n);this.taskStream.subscribeTask(o,3e3),this.sub.add(this.taskStream.output$(o).subscribe(fe=>{let nt=fe.payload.text??"";this.output.set(nt)}));let l=await this.waitForTaskEvent(o,["bootstrapDone","bootstrapFailed","bootstrapNeedPickRoot"],600*1e3,e);if(l.type==="bootstrapDone"){let fe=l.payload;this.notify.success("\u9879\u76EE\u521B\u5EFA\u5B8C\u6210"),this.projectState.getProjects(fe.projectId),this.modalRef.close({ok:!0}),this.router.navigate(["/dashboard"]);return}if(l.type==="bootstrapFailed"){let fe=l.payload;this.notify.error(`\u9879\u76EE\u521B\u5EFA\u5931\u8D25\uFF1A${fe?.reason??"unknown error"}`);return}let X=l.payload?.candidates??[];if(!X.length){this.notify.error("\u9879\u76EE\u5BFC\u5165\u5931\u8D25\uFF1A\u672A\u627E\u5230\u53EF\u5BFC\u5165\u7684\u5DE5\u4F5C\u533A\u76EE\u5F55");return}let ke=await this.pickWorkspaceRootByModal(X);if(!ke){this.modal.info({nzTitle:"\u63D0\u793A",nzContent:"\u60A8\u672A\u9009\u62E9\u4EFB\u4F55\u76EE\u5F55\uFF0C\u9879\u76EE\u5BFC\u5165\u5DF2\u53D6\u6D88\u3002\u53EF\u901A\u8FC7\u201C\u5BFC\u5165\u201D\u529F\u80FD\u91CD\u65B0\u624B\u52A8\u5BFC\u5165\u3002",nzCancelText:null,nzOkText:"\u6211\u77E5\u9053\u4E86",nzOnOk:()=>{this.modalRef.close()}});return}let Ee=await qe(this.api.bootstrapPickRoot({taskId:o,pickedRoot:ke}).pipe(Ht(60*1e3),Yt(e)));if(!Ee.ok){this.notify.error(Ee.reason??"\u9879\u76EE\u5BFC\u5165\u5931\u8D25");return}this.notify.success("\u9879\u76EE\u5BFC\u5165\u5B8C\u6210"),this.projectState.getProjects(Ee.projectId),this.modalRef.close({ok:!0}),this.router.navigate(["/dashboard"])}catch(n){let o=n?.name==="TimeoutError"?"\u521B\u5EFA\u8D85\u65F6\uFF1A\u811A\u624B\u67B6/\u514B\u9686\u53EF\u80FD\u5361\u4F4F\u4E86\uFF0C\u8BF7\u67E5\u770B\u4EFB\u52A1\u65E5\u5FD7":n?.error?.message||n?.message||"\u521B\u5EFA\u5931\u8D25";console.error("\u521B\u5EFA\u9879\u76EE\u5931\u8D25",n),this.notify.error(o)}finally{e.next(),e.complete(),this.creating.set(!1)}}async waitForTaskEvent(i,e,n,o){let l=new Set(e);return await qe(this.taskStream.events$().pipe(Qe(z=>z?.payload?.taskId===i),Qe(z=>l.has(z.type)),zn(),Ht(n),Yt(o)))}setDraft(i){this.draft.set(i)}canNext(){let i=this.step(),e=this.draft();return i===0?!(!e.name?.trim()||!e.parentDir?.trim()||!e.rootPath?.trim()):i===1?!!e.rootPath?.trim():!0}async next(){let i=this.step();if(i===0&&await this.api.checkPathExists(this.draft().rootPath)&&!this.draft().overwriteIfExists){this.notify.error("\u8BE5\u8DEF\u5F84\u4E0D\u53EF\u7528\u6216\u5DF2\u5B58\u5728\u91CD\u590D\u9879\u76EE");return}let e=Math.min(3,i+1);this.step.set(e)}prev(){this.step.set(Math.max(0,this.step()-1))}canGoNext(){let i=this.step();return i===0?!0:i===1?this.isManual():i===2}isManual(){return this.draft().preset==="manual"}canCreateHere(){let i=this.step();return this.isManual()&&i===3||!this.isManual()&&i===1}cancel(){this.modal.confirm({nzTitle:"\u53D6\u6D88\u521B\u5EFA\u9879\u76EE",nzContent:"\u786E\u5B9A\u8981\u53D6\u6D88\u521B\u5EFA\u5417",nzOkDanger:!0,nzOkText:"\u53D6\u6D88\u521B\u5EFA",nzCancelText:"\u4E0D",nzCentered:!0,nzOnOk:()=>{this.modalRef.close()}})}async pickWorkspaceRootByModal(i){let e=this.modal.create({nzTitle:"\u9009\u62E9\u8981\u5BFC\u5165\u7684\u5DE5\u4F5C\u533A\u76EE\u5F55",nzContent:bt,nzData:{candidates:i,defaultPicked:i[0]},nzFooter:null,nzCentered:!0,nzMaskClosable:!1,nzClosable:!0,nzWidth:720});return(await qe(e.afterClose))?.pickedRoot??null}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=S({type:t,selectors:[["app-project-create-modal"]],decls:20,vars:9,consts:[["nz-col","","nzSpan","24",1,"modal-container"],[3,"nzCurrent"],["nzTitle","\u8BE6\u60C5"],["nzTitle","\u9884\u8BBE"],["nzTitle","\u529F\u80FD"],["nzTitle","\u914D\u7F6E"],[1,"content"],["nzTip","\u6B63\u5728\u521B\u5EFA\u9879\u76EE...",3,"nzSpinning"],[1,"main"],[3,"draft"],[1,"actions"],["nz-button",""],["nz-button","","nzType","primary",3,"disabled"],[1,"aside"],[3,"isCreatingChange","draft","isCreating","chunk"],[3,"draftChange","draft"],[3,"draftChange","requestDetect","draft"],["nz-button","",3,"click"],["nzType","close","nzTheme","outline"],["nzType","arrow-left","nzTheme","outline"],["nz-button","","nzType","primary",3,"click","disabled"],["nzType","check","nzTheme","outline"],["nzType","arrow-right","nzTheme","outline"]],template:function(e,n){if(e&1&&(r(0,"div",0)(1,"nz-steps",1),c(2,"nz-step",2)(3,"nz-step",3)(4,"nz-step",4)(5,"nz-step",5),a(),r(6,"div",6)(7,"nz-spin",7)(8,"div",8),h(9,Ro,1,1,"app-step-basic",9)(10,Go,1,1,"app-step-preset",9)(11,Lo,1,1,"app-step-features",9)(12,$o,1,1,"app-step-config",9),r(13,"div",10),h(14,Uo,3,0,"button",11),h(15,qo,3,0,"button",11),h(16,Qo,3,1,"button",12)(17,Zo,3,1,"button",12),a()()(),r(18,"div",13)(19,"app-create-summary-aside",14),E("isCreatingChange",function(l){return D(n.creating,l)||(n.creating=l),l}),a()()()()),e&2){let o;s(),u("nzCurrent",n.step()),s(6),u("nzSpinning",n.creating()),s(2),P((o=n.step())===0?9:o===1?10:o===2?11:o===3?12:-1),s(5),P(n.step()===0?14:-1),s(),P(n.step()>0?15:-1),s(),P(n.canCreateHere()?16:17),s(3),u("draft",n.draft()),b("isCreating",n.creating),u("chunk",n.output())}},dependencies:[x,I,Me,G,pe,Q,Mi,vi,kt,j,W,F,ae,Y,y,w,li,si,Nt,Ft,It,jt,Tt],styles:[".content[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 360px;gap:16px;margin-top:16px}.main[_ngcontent-%COMP%]{min-height:420px}.actions[_ngcontent-%COMP%]{display:flex;gap:8px;justify-content:flex-end;margin-top:18px}.aside[_ngcontent-%COMP%]{position:sticky;top:16px;height:fit-content}"]})};var Vt=class t{constructor(i){this.modal=i}goCreate(){let i=this.modal.create({nzTitle:"\u521B\u5EFA\u65B0\u9879\u76EE",nzFooter:null,nzMaskClosable:!1,nzClosable:!1,nzContent:Bt,nzWidth:"1020px",nzCentered:!0}),e=i.getContentComponent();i.afterClose.subscribe(n=>{n?.ok})}static \u0275fac=function(e){return new(e||t)(rt(We))};static \u0275cmp=S({type:t,selectors:[["app-project-create"]],decls:7,vars:0,consts:[["nz-row","",1,"page"],["nz-col","","nzSpan","16","nzOffset","4",1,"explorer-container"],[1,"actions-bar"],["nz-button","","nzType","primary","nzSize","large",3,"click"],["nzType","plus","nzTheme","outline"]],template:function(e,n){e&1&&(r(0,"div",0)(1,"div",1),c(2,"app-fs-explorer"),a(),r(3,"div",2)(4,"button",3),g("click",function(){return n.goCreate()}),c(5,"nz-icon",4),p(6," \u5728\u6B64\u521B\u5EFA\u65B0\u9879\u76EE "),a()()())},dependencies:[x,j,W,F,ae,pe,Q,le,zt,y,w],styles:[".page[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;flex-direction:column}.page[_ngcontent-%COMP%] .explorer-container[_ngcontent-%COMP%]{flex:1 1 auto;height:0}.page[_ngcontent-%COMP%] .actions-bar[_ngcontent-%COMP%]{flex:0 0 auto;padding:16px;display:flex;justify-content:center;align-items:center}"]})};var Ue=class t{fs=f(ft);projectApi=f(ht);projectState=f(xe);active=L(!1);checking=L(!1);result=L(null);canImport=$(()=>this.result()?.ok===!0);warnings=$(()=>this.result()?.warnings??[]);reason=$(()=>this.result()?.reason??"");currentPath=$(()=>this.fs.currentPath()||this.fs.path());_seq=0;notify=f(Ge);constructor(){On(()=>{if(!this.active())return;let i=this.currentPath();i&&this.check(i)})}enter(){this.active.set(!0)}leave(){this.active.set(!1),this.result.set(null)}check(i){let e=++this._seq;this.checking.set(!0),this.result.set(null),this.projectApi.checkImport(i).subscribe({next:n=>{e===this._seq&&this.result.set(n)},error:n=>{e===this._seq&&this.result.set({ok:!1,root:i,reason:n?.message||"check failed"})},complete:()=>{e===this._seq&&this.checking.set(!1)}})}import(i){let e=this.currentPath();if(!e||!this.canImport())return;let n=e.replace(/[\\\/]+$/,"").split(/[\\\/]/).pop()||"New Project";this.projectApi.importByPath({root:e,name:i||n,syncTasks:!0}).subscribe({next:o=>{this.projectState.getProjects(),this.projectState.setCurrentProjectById(o.id),this.check(e),this.notify.success("\u9879\u76EE\u5BFC\u5165\u6210\u529F")}})}static \u0275fac=function(e){return new(e||t)};static \u0275prov=Sn({token:t,factory:t.\u0275fac,providedIn:"root"})};var At=class t{importState=f(Ue);static \u0275fac=function(e){return new(e||t)};static \u0275cmp=S({type:t,selectors:[["app-project-import"]],decls:7,vars:1,consts:[["nz-row","",1,"page"],["nz-col","","nzSpan","16","nzOffset","4",1,"explorer-container"],[1,"actions-bar","center"],["nz-button","","nzSize","large","nzType","primary",3,"click","disabled"],["nzType","import","nzTheme","outline"]],template:function(e,n){e&1&&(r(0,"div",0)(1,"div",1),c(2,"app-fs-explorer"),a(),r(3,"div",2)(4,"button",3),g("click",function(){return n.importState.import()}),c(5,"nz-icon",4),p(6," \u5BFC\u5165\u8FD9\u4E2A\u6587\u4EF6\u5939 "),a()()()),e&2&&(s(4),u("disabled",n.importState.checking()||!n.importState.canImport()))},dependencies:[x,I,pe,Q,le,j,W,F,ae,y,w,zt],styles:[".page[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;flex-direction:column}.page[_ngcontent-%COMP%] .explorer-container[_ngcontent-%COMP%]{flex:1 1 auto;height:0}.page[_ngcontent-%COMP%] .actions-bar[_ngcontent-%COMP%]{flex:0 0 auto;padding:16px;display:flex;justify-content:center;align-items:center}"]})};var Ho=(t,i)=>i.spec.id;function Yo(t,i){if(t&1){let e=M();r(0,"div",8)(1,"div",9),g("click",function(){let o=C(e).$implicit,l=m();return _(l.openTask(o))}),r(2,"div",10),c(3,"nz-icon",11),a(),r(4,"div",12)(5,"div",13)(6,"span"),p(7),a()(),r(8,"div",14)(9,"span"),p(10),a()()()(),r(11,"button",15),g("click",function(o){let l=C(e).$implicit,z=m();return o.stopPropagation(),_(z.toggleTask(l))}),c(12,"nz-icon",16),a()()}if(t&2){let e=i.$implicit,n=m();u("nzTooltipTitle",n.getTaskDescription(e)),s(7),N(e.spec.name),s(3),N(n.getTaskDescription(e)),s(2),u("nzType",n.getTaskActionIcon(e))}}var Wt=class t{projectId;projectState=f(xe);router=f(lt);state=f(ti);tasks=$(()=>this.projectId?this.state.rowsViewOf(this.projectId)():[]);async ngOnChanges(){this.projectId&&await this.state.ensureProjectLoaded(this.projectId)}toggleTask(i){i.runtime?.status==="running"?this.state.stopSelected():this.state.startSelected(),this.openTask(i)}async openTask(i){this.state.select(i.spec.id),await this.router.navigate(["/tasks"]),this.projectState.setCurrentProjectById(i.spec.projectId)}getTaskName(i){return i.spec.name||i.spec.id}getTaskDescription(i){let e=i.runtime?.status;return i.runtime?this.computedStatusText(e):i.spec.description||""}getTaskActionIcon(i){let e=i.runtime?.status;return e==="running"||e==="stopping"?"pause-circle":"play-circle"}computedStatusText(i){switch(i){case"running":return"\u8FD0\u884C\u4E2D";case"stopping":return"\u505C\u6B62\u4E2D";case"success":return"\u6210\u529F";case"failed":return"\u9519\u8BEF";case"stopped":return"\u5DF2\u505C\u6B62";default:return"\u7A7A\u95F2"}}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=S({type:t,selectors:[["app-project-item-popover"]],inputs:{projectId:"projectId"},features:[_e],decls:11,vars:0,consts:[[1,"dropdown-content"],[1,"pane-toolbar"],[1,"icon"],["nzType","inbox","nzTheme","outline"],[1,"title"],["nz-button","","type","button","nzType","text"],["nzType","close","nzTheme","outline"],[1,"tasks"],["nz-tooltip","","nzTooltipPlacement","right",1,"task-item",3,"nzTooltipTitle"],[1,"item-content",3,"click"],[1,"item-logo"],["nzType","code","nzTheme","outline"],[1,"list-item-info"],[1,"name"],[1,"description"],["nz-button","","nzType","text","type","button",3,"click"],["nzTheme","outline",3,"nzType"]],template:function(e,n){e&1&&(r(0,"div",0)(1,"div",1)(2,"div",2),c(3,"nz-icon",3),a(),r(4,"div",4),p(5,"\u4EFB\u52A1"),a(),r(6,"button",5),c(7,"nz-icon",6),a()(),r(8,"div",7),ie(9,Yo,13,4,"div",8,Ho),a()()),e&2&&(s(9),oe(n.tasks()))},dependencies:[x,y,w,j,W,F,ve,Se,Ke],styles:[".dropdown-content[_ngcontent-%COMP%]{display:flex;flex-direction:column}.dropdown-content[_ngcontent-%COMP%] .pane-toolbar[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding:6px 6px 6px 16px}.dropdown-content[_ngcontent-%COMP%] .pane-toolbar[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:auto 0 0}.dropdown-content[_ngcontent-%COMP%] .pane-toolbar[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{font-size:18px;margin-right:6px}.dropdown-content[_ngcontent-%COMP%] .pane-toolbar[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:100% 1 1;width:0;overflow:hidden;-ms-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.dropdown-content[_ngcontent-%COMP%] .tasks[_ngcontent-%COMP%]{width:320px;max-height:360px;overflow:hidden auto}.dropdown-content[_ngcontent-%COMP%] .tasks[_ngcontent-%COMP%] .task-item[_ngcontent-%COMP%]{padding:16px;display:flex;flex-direction:row;align-items:center}.dropdown-content[_ngcontent-%COMP%] .tasks[_ngcontent-%COMP%] .task-item[_ngcontent-%COMP%]:hover{background:#f5f5f5}.dropdown-content[_ngcontent-%COMP%] .tasks[_ngcontent-%COMP%] .task-item[_ngcontent-%COMP%] .item-content[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;flex:100% 1 1;width:0;gap:16px;cursor:pointer}.dropdown-content[_ngcontent-%COMP%] .tasks[_ngcontent-%COMP%] .task-item[_ngcontent-%COMP%] .item-logo[_ngcontent-%COMP%]{font-size:42px;margin-right:16px;flex:auto 0 0;display:inline-flex;align-items:center}.dropdown-content[_ngcontent-%COMP%] .tasks[_ngcontent-%COMP%] .task-item[_ngcontent-%COMP%] .list-item-info[_ngcontent-%COMP%]{flex:100% 1 1;width:0;overflow:hidden;display:flex;flex-direction:column;align-items:stretch;justify-content:center}.dropdown-content[_ngcontent-%COMP%] .tasks[_ngcontent-%COMP%] .task-item[_ngcontent-%COMP%] .list-item-info[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dropdown-content[_ngcontent-%COMP%] .tasks[_ngcontent-%COMP%] .task-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex:auto 0 0}.dropdown-content[_ngcontent-%COMP%] .tasks[_ngcontent-%COMP%] .task-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] nz-icon[_ngcontent-%COMP%]{font-size:24px}"]})};function Jo(t,i){if(t&1){let e=M();r(0,"button",20),g("click",function(){C(e);let o=m();return _(o.openPageUrl(o.project==null?null:o.project.repoPageUrl))}),c(1,"nz-icon",21),a()}}function Xo(t,i){if(t&1&&c(0,"app-project-item-popover",22),t&2){let e=m();u("projectId",e.project==null?null:e.project.id)}}var Rt=class t{taskRuntime=f(Kn);notify=f(Ge);project=null;open=!1;selectProject=new V;toggleFavorite=new V;editProject=new V;openInEditor=new V;deleteProject=new V;tasksRunningCount=$(()=>{let i=this.project?.id?.trim();return i?this.taskRuntime.runningCountSignal(i)():0});hasTasksRunning=$(()=>this.tasksRunningCount()>0);taskBadgeTip=$(()=>{let i=this.tasksRunningCount();return i>0?`${i} \u4E2A\u4EFB\u52A1\u6B63\u5728\u8FD0\u884C`:"\u4EFB\u52A1"});del(){if(this.hasTasksRunning()){this.notify.warn("\u5F53\u524D\u9879\u76EE\u6709\u4EFB\u52A1\u6B63\u5728\u8FD0\u884C\uFF0C\u8BF7\u5148\u505C\u6B62\u8FD9\u4E9B\u4EFB\u52A1\u540E\u518D\u5220\u9664\u9879\u76EE\u3002");return}this.deleteProject.emit()}openPageUrl(i){i&&window.open(i,"_blank")}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=S({type:t,selectors:[["app-project-item"]],inputs:{project:"project",open:"open"},outputs:{selectProject:"selectProject",toggleFavorite:"toggleFavorite",editProject:"editProject",openInEditor:"openInEditor",deleteProject:"deleteProject"},decls:28,vars:10,consts:[["contentTemplate",""],["nz-row","",1,"project-item"],["nz-col","","nzSpan","24",1,"content"],[1,"favorite"],["nz-button","","nzType","primary",3,"click"],["nzType","star",3,"nzTheme"],[1,"info",3,"click"],[1,"list-item-info"],[1,"name"],["nz-popover","","nzPopoverTrigger","click","nzPopoverPlacement","right",1,"task-popover-trigger",3,"click","nzPopoverContent","nzPopoverOverlayClassName"],[3,"nzStatus","nz-tooltip"],[1,"root-path"],[1,"actions"],["nzSize","large"],["nzType","code","nzTheme","outline"],["nz-button","","nzType","primary","nz-tooltip","\u7F16\u8F91",3,"click"],["nzType","edit","nzTheme","outline"],["nz-button","","nzType","primary","nz-tooltip","\u6253\u5F00\u4ED3\u5E93\u5730\u5740"],["nz-button","","nzType","primary","nz-tooltip","\u5220\u9664",3,"click"],["nzType","delete","nzTheme","outline"],["nz-button","","nzType","primary","nz-tooltip","\u6253\u5F00\u4ED3\u5E93\u5730\u5740",3,"click"],["nzType","global","nzTheme","outline"],[3,"projectId"]],template:function(e,n){if(e&1){let o=M();r(0,"div",1)(1,"div",2)(2,"div",3)(3,"button",4),g("click",function(z){return C(o),z.stopPropagation(),_(n.toggleFavorite.emit())}),c(4,"nz-icon",5),a()(),r(5,"div",6),g("click",function(){return C(o),_(n.selectProject.emit())}),r(6,"div",7)(7,"div",8)(8,"span"),p(9),a(),r(10,"span",9),g("click",function(z){return C(o),_(z.stopPropagation())}),c(11,"nz-badge",10),a()(),r(12,"div",11)(13,"span"),p(14),a()()()(),r(15,"div",12)(16,"nz-space",13)(17,"button",4),g("click",function(){return C(o),_(n.openInEditor.emit())}),c(18,"nz-icon",14),r(19,"span"),p(20,"\u5728\u7F16\u8F91\u5668\u4E2D\u6253\u5F00"),a()(),r(21,"button",15),g("click",function(){return C(o),_(n.editProject.emit())}),c(22,"nz-icon",16),a(),h(23,Jo,2,0,"button",17),r(24,"button",18),g("click",function(){return C(o),_(n.del())}),c(25,"nz-icon",19),a()()()()(),T(26,Xo,1,1,"ng-template",null,0,A)}if(e&2){let o=O(27);he("open",n.open),s(4),u("nzTheme",n.project!=null&&n.project.isFavorite?"fill":"outline"),s(5),N(n.project==null?null:n.project.name),s(),u("nzPopoverContent",o)("nzPopoverOverlayClassName","project-item-popover"),s(),u("nzStatus",n.hasTasksRunning()?"processing":"default")("nz-tooltip",n.taskBadgeTip()),s(3),N(n.project==null?null:n.project.root),s(9),P(n.project!=null&&n.project.repoPageUrl?23:-1)}},dependencies:[x,I,pe,Q,le,j,W,F,ae,y,w,Jn,Yn,ri,oi,Ln,Gn,Wt,Se],styles:['.project-item[_ngcontent-%COMP%]{border-radius:4px;padding:0;margin:8px 0;transition:all .3s;cursor:pointer}.project-item.open[_ngcontent-%COMP%], .project-item[_ngcontent-%COMP%]:hover{box-shadow:0 4px 12px #0000001a;background:var(--app-primary-3)}.project-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding:16px;display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:auto;grid-template-areas:"icon info actions";grid-gap:16px;align-items:center}.project-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .favorite[_ngcontent-%COMP%]{grid-area:icon;display:flex;align-items:center;justify-content:center}.project-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .info[_ngcontent-%COMP%]{grid-area:info;-webkit-user-select:none;user-select:none}.project-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .list-item-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:4px}.project-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .list-item-info[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{flex:auto 0 0}.project-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .list-item-info[_ngcontent-%COMP%] .name[_ngcontent-%COMP%] .task-popover-trigger[_ngcontent-%COMP%]{display:inline-block;margin-left:8px;cursor:pointer}.project-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .list-item-info[_ngcontent-%COMP%] .name[_ngcontent-%COMP%] .task-popover-trigger[_ngcontent-%COMP%] nz-badge[_ngcontent-%COMP%]{font-size:18px}.project-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .list-item-info[_ngcontent-%COMP%] .root-path[_ngcontent-%COMP%]{flex:auto 0 0;opacity:.7;font-size:14px}']})};var ki=t=>({$implicit:t}),Ko=(t,i)=>i.id;function er(t,i){t&1&&Xt(0)}function tr(t,i){if(t&1&&(r(0,"div",6)(1,"h2"),p(2,"\u6536\u85CF\u7684\u9879\u76EE"),a()(),T(3,er,1,0,"ng-container",7)),t&2){let e=m(),n=O(11);s(3),u("ngTemplateOutlet",n)("ngTemplateOutletContext",Je(2,ki,e.projectState.favoriteProjects()))}}function nr(t,i){t&1&&(r(0,"div",6)(1,"h2"),p(2,"\u66F4\u591A\u9879\u76EE"),a()())}function ir(t,i){t&1&&Xt(0)}function or(t,i){t&1&&(r(0,"div",8),c(1,"nz-empty",9),a())}function rr(t,i){if(t&1){let e=M();r(0,"app-project-item",12),g("selectProject",function(){let o=C(e).$implicit,l=m(2);return _(l.projectState.selectProject(o))})("toggleFavorite",function(){let o=C(e).$implicit,l=m(2);return _(l.projectState.toggleFavorite(o.id))})("openInEditor",function(){let o=C(e).$implicit,l=m(2);return _(l.projectState.openInEditor(o.id))})("editProject",function(){let o=C(e).$implicit,l=m(2);return _(l.projectState.openEditModal(o))})("deleteProject",function(){let o=C(e).$implicit,l=m(2);return _(l.projectState.deleteProject(o.id))}),a()}if(t&2){let e=i.$implicit,n=m(2);u("project",e)("project",e)("open",n.projectState.isOpen(e))}}function ar(t,i){if(t&1&&(r(0,"div",10),ie(1,rr,1,3,"app-project-item",11,Ko),a()),t&2){let e=i.$implicit;s(),oe(e)}}var Gt=class t{projectState=f(xe);static \u0275fac=function(e){return new(e||t)};static \u0275cmp=S({type:t,selectors:[["app-project-list"]],decls:12,vars:8,consts:[["itemsTpl",""],["nz-row","",1,"page"],["nz-col","","nzSpan","16","nzOffset","4",1,"col"],["nz-col","",1,"topbar"],["nzInputPrefix","","nzType","search",1,"search-icon"],["nz-input","","placeholder","\u641C\u7D22\u9879\u76EE",3,"ngModelChange","ngModel"],[1,"header"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"no-projects"],["nzNotFoundImage","simple","nzNotFoundContent","\u6682\u65E0\u9879\u76EE\uFF0C\u5FEB\u53BB\u521B\u5EFA\u6216\u5BFC\u5165\u7B2C\u4E00\u4E2A\u9879\u76EE\u5427\uFF01"],[1,"content"],[3,"project","open"],[3,"selectProject","toggleFavorite","openInEditor","editProject","deleteProject","project","open"]],template:function(e,n){if(e&1){let o=M();r(0,"div",1)(1,"div",2)(2,"div",3)(3,"nz-input-wrapper"),c(4,"nz-icon",4),r(5,"input",5),g("ngModelChange",function(z){return C(o),_(n.projectState.keyword.set(z))}),a()()(),h(6,tr,4,4),h(7,nr,3,0,"div",6),T(8,ir,1,0,"ng-container",7),h(9,or,2,0,"div",8),a(),T(10,ar,3,0,"ng-template",null,0,A),a()}if(e&2){let o=O(11);s(5),u("ngModel",n.projectState.keyword()),s(),P(n.projectState.favoriteProjects().length>0?6:-1),s(),P(n.projectState.favoriteProjects().length>0?7:-1),s(),u("ngTemplateOutlet",o)("ngTemplateOutletContext",Je(6,ki,n.projectState.moreProjects())),s(),P(n.projectState.projects().length===0?9:-1)}},dependencies:[x,Ve,I,ce,Z,H,G,pe,Q,le,Rt,St,Pt,Y,me,Ae,ut,y,w],styles:["[_nghost-%COMP%]{display:block;height:100%;overflow:hidden}.page[_ngcontent-%COMP%]{height:100%;overflow-y:auto}.page[_ngcontent-%COMP%] .topbar[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;margin-bottom:12px}.page[_ngcontent-%COMP%] .topbar[_ngcontent-%COMP%] nz-input-wrapper[_ngcontent-%COMP%]{width:25%;min-width:200px}.page[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]{display:flex;flex-direction:column}.header[_ngcontent-%COMP%]{padding:12px 0}.header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:600}"]})};function sr(t,i){t&1&&(c(0,"nz-icon",8),p(1," \u9879\u76EE "))}function lr(t,i){t&1&&c(0,"app-project-list")}function pr(t,i){t&1&&(c(0,"nz-icon",9),p(1," \u521B\u5EFA "))}function cr(t,i){t&1&&c(0,"app-project-create")}function mr(t,i){t&1&&(c(0,"nz-icon",10),p(1," \u5BFC\u5165 "))}function dr(t,i){t&1&&c(0,"app-project-import")}var Lt=class t{importState=f(Ue);selectedIndex=0;tabIndexChange(i){i===2?this.importState.active.set(!0):this.importState.active.set(!1)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=S({type:t,selectors:[["app-projects"]],decls:17,vars:4,consts:[["projectTitleTemplate",""],["addTitleTemplate",""],["importTitleTemplate",""],[1,"page"],[1,"header"],["nzCentered","",1,"tabs-container",3,"nzSelectedIndexChange","nzSelectedIndex"],[3,"nzTitle"],["nz-tab",""],["nzType","unordered-list","nzTheme","outline"],["nzType","plus-square","nzTheme","outline"],["nzType","import","nzTheme","outline"]],template:function(e,n){if(e&1){let o=M();r(0,"div",3)(1,"div",4)(2,"h2"),p(3,"\u9879\u76EE\u7BA1\u7406"),a()(),r(4,"nz-tabs",5),E("nzSelectedIndexChange",function(z){return C(o),D(n.selectedIndex,z)||(n.selectedIndex=z),_(z)}),g("nzSelectedIndexChange",function(z){return C(o),_(n.tabIndexChange(z))}),r(5,"nz-tab",6),T(6,sr,2,0,"ng-template",null,0,A)(8,lr,1,0,"ng-template",7),a(),r(9,"nz-tab",6),T(10,pr,2,0,"ng-template",null,1,A)(12,cr,1,0,"ng-template",7),a(),r(13,"nz-tab",6),T(14,mr,2,0,"ng-template",null,2,A)(16,dr,1,0,"ng-template",7),a()()()}if(e&2){let o=O(7),l=O(11),z=O(15);s(4),b("nzSelectedIndex",n.selectedIndex),s(),u("nzTitle",o),s(4),u("nzTitle",l),s(4),u("nzTitle",z)}},dependencies:[x,ui,di,mi,ci,y,w,Gt,Vt,At],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex:0 0 auto;padding:16px 0}.header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0}nz-tabs.tabs-container[_ngcontent-%COMP%]{flex:1 1 auto;height:0}nz-tabs.tabs-container[_ngcontent-%COMP%] .ant-tabs-content{height:100%}nz-tabs.tabs-container[_ngcontent-%COMP%] .ant-tabs-content .ant-tabs-tabpane{height:100%}.toolbar[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{flex:1}.current[_ngcontent-%COMP%]{margin:10px 0;opacity:.75}"]})};var ur=[{path:"",component:Lt}],$t=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=ze({type:t});static \u0275inj=Ce({imports:[Ke.forChild(ur),Ke]})};var Ti=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=ze({type:t});static \u0275inj=Ce({imports:[x,$t]})};export{Ti as ProjectsModule};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import{a as bn,b as xn,c as wn,d as Sn,e as Pn,f as R}from"./chunk-CO7S3LZV.js";import{a as on,b as rn,c as an}from"./chunk-EC33AXSR.js";import{a as Tn,b as Nn,c as On}from"./chunk-J2JNFWJN.js";import"./chunk-HZ73CM45.js";import{a as yn,b as be,c as zn,d as Mn}from"./chunk-W6TCGG53.js";import{b as Me}from"./chunk-SNCDDYQR.js";import{A as _n,B as vn,G as te,a as qt,b as Xt,j as Q,k as dn,l as J,m as un,n as fn,o as A,p as K,q as ve,r as ye,s as ee,w as gn,x as hn,y as Cn,z as ze}from"./chunk-EP45FT55.js";import{A as Qt,Ab as cn,Bb as pn,Cb as mn,Fb as Ce,Hb as _e,L as Jt,M as S,N as b,O as Kt,P as en,T as tn,U as nn,V as F,W as ue,Y as k,Z as B,a as Yt,jb as ln,lb as fe,pb as ge,vb as he,x as Zt,yb as sn,z as Ue}from"./chunk-PTMJ422K.js";import"./chunk-HFZLJHYR.js";import{A as Gt,B as D,d as me,g as Ft,h as kt,i as L,j as Bt,l as At,m as Rt,r as Vt,s as Wt,u as Ht,v as de,w as Ut,x as $t,y as G,z as Z}from"./chunk-53YRDYLS.js";import{$b as j,$c as He,Aa as ae,Ba as st,Bc as wt,Ca as ct,Cc as St,Dc as N,Eb as _,Fa as pt,Fb as yt,Fc as I,Ha as M,Ia as mt,Ic as m,Jc as T,Kb as P,Kc as $,M as q,Mc as Pt,Nc as Tt,Oc as Nt,Pb as zt,Ra as dt,Tb as Mt,Ub as bt,Uc as Ot,Vb as v,Vc as pe,Wc as Ve,Xa as ut,Xb as y,Zb as xt,Zc as oe,_b as E,_c as We,ac as d,ad as X,bc as r,ca as tt,cc as l,cd as Dt,dc as p,fd as O,gd as ie,hc as H,ic as U,ja as nt,jc as Re,kb as ft,kc as z,la as ot,ma as w,mb as s,md as Et,na as it,pa as rt,pd as jt,qa as re,qb as gt,qc as C,ra as f,rd as It,sa as at,sb as ht,ta as lt,tc as c,uc as se,vc as ce,vd as Lt,wb as Ct,xa as g,xb as _t,ya as h,yb as le,z as et,zb as vt}from"./chunk-SJG2JCPL.js";function qn(t){let n=t;return 5}var Dn=["zh",[["\u4E0A\u5348","\u4E0B\u5348"]],void 0,[["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"],["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"]],void 0,[["1","2","3","4","5","6","7","8","9","10","11","12"],["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]],void 0,[["\u516C\u5143\u524D","\u516C\u5143"]],0,[6,0],["y/M/d","y\u5E74M\u6708d\u65E5",void 0,"y\u5E74M\u6708d\u65E5EEEE"],["HH:mm","HH:mm:ss","z HH:mm:ss","zzzz HH:mm:ss"],["{1} {0}",void 0,void 0,void 0],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"CNY","\xA5","\u4EBA\u6C11\u5E01",{AUD:["AU$","$"],BYN:[void 0,"\u0440."],CNY:["\xA5"],ILR:["ILS"],JPY:["JP\xA5","\xA5"],KRW:["\uFFE6","\u20A9"],PHP:[void 0,"\u20B1"],RUR:[void 0,"\u0440."],TWD:["NT$"],USD:["US$","$"],XXX:[]},"ltr",qn];var Xn="@",Zn=(()=>{class t{doc;delegate;zone;animationType;moduleImpl;_rendererFactoryPromise=null;scheduler=null;injector=f(ae);loadingSchedulerFn=f(Qn,{optional:!0});_engine;constructor(e,o,i,a,u){this.doc=e,this.delegate=o,this.zone=i,this.animationType=a,this.moduleImpl=u}ngOnDestroy(){this._engine?.flush()}loadImpl(){let e=()=>this.moduleImpl??import("./chunk-HEKO7RQP.js").then(i=>i),o;return this.loadingSchedulerFn?o=this.loadingSchedulerFn(e):o=e(),o.catch(i=>{throw new nt(5300,!1)}).then(({\u0275createEngine:i,\u0275AnimationRendererFactory:a})=>{this._engine=i(this.animationType,this.doc);let u=new a(this.delegate,this._engine,this.zone);return this.delegate=u,u})}createRenderer(e,o){let i=this.delegate.createRenderer(e,o);if(i.\u0275type===0)return i;typeof i.throwOnSyntheticProps=="boolean"&&(i.throwOnSyntheticProps=!1);let a=new $e(i);return o?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(u=>{let W=u.createRenderer(e,o);a.use(W),this.scheduler??=this.injector.get(mt,null,{optional:!0}),this.scheduler?.notify(10)}).catch(u=>{a.use(i)}),a}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}componentReplaced(e){this._engine?.flush(),this.delegate.componentReplaced?.(e)}static \u0275fac=function(o){vt()};static \u0275prov=w({token:t,factory:t.\u0275fac})}return t})(),$e=class{delegate;replay=[];\u0275type=1;constructor(n){this.delegate=n}use(n){if(this.delegate=n,this.replay!==null){for(let e of this.replay)e(n);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}get destroyNode(){return this.delegate.destroyNode}appendChild(n,e){this.delegate.appendChild(n,e)}insertBefore(n,e,o,i){this.delegate.insertBefore(n,e,o,i)}removeChild(n,e,o,i){this.delegate.removeChild(n,e,o,i)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,o,i){this.delegate.setAttribute(n,e,o,i)}removeAttribute(n,e,o){this.delegate.removeAttribute(n,e,o)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,o,i){this.delegate.setStyle(n,e,o,i)}removeStyle(n,e,o){this.delegate.removeStyle(n,e,o)}setProperty(n,e,o){this.shouldReplay(e)&&this.replay.push(i=>i.setProperty(n,e,o)),this.delegate.setProperty(n,e,o)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,o,i){return this.shouldReplay(e)&&this.replay.push(a=>a.listen(n,e,o,i)),this.delegate.listen(n,e,o,i)}shouldReplay(n){return this.replay!==null&&n.startsWith(Xn)}},Qn=new rt("");function En(t="animations"){return gt("NgAsyncAnimations"),at([{provide:Ct,useFactory:(n,e,o)=>new Zn(n,e,o,t),deps:[st,At,ht]},{provide:ut,useValue:t==="noop"?"NoopAnimations":"BrowserAnimations"}])}var xe=class t{currentTheme="default";constructor(){}reverseTheme(n){return n==="dark"?"default":"dark"}removeUnusedTheme(n){document.documentElement.classList.remove(n);let e=document.getElementById(n);e&&document.head.removeChild(e)}loadCss(n,e){return new Promise((o,i)=>{let a=document.createElement("link");a.rel="stylesheet",a.href=n,a.id=e,a.onload=o,a.onerror=i,document.head.append(a)})}loadTheme(n=!0){let e=this.currentTheme;return n&&document.documentElement.classList.add(e),new Promise((o,i)=>{this.loadCss(`${e}.css`,e).then(a=>{n||document.documentElement.classList.add(e),this.removeUnusedTheme(this.reverseTheme(e)),o(a)},a=>i(a))})}toggleTheme(){return this.currentTheme=this.reverseTheme(this.currentTheme),this.loadTheme(!1)}static \u0275fac=function(e){return new(e||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})};var jn={provide:zt,useFactory:t=>()=>t.loadTheme(),deps:[xe],multi:!0};var In=[{path:"",redirectTo:"dashboard",pathMatch:"full"},{path:"dashboard",loadChildren:()=>import("./chunk-3MAJTMXX.js").then(t=>t.DashboardModule)},{path:"tasks",loadChildren:()=>import("./chunk-IMQG3SAE.js").then(t=>t.TasksModule)},{path:"projects",loadChildren:()=>import("./chunk-XN5C33GH.js").then(t=>t.ProjectsModule)},{path:"settings",loadChildren:()=>import("./chunk-V27A2EK4.js").then(t=>t.SettingModule)},{path:"configuration",loadChildren:()=>import("./chunk-AZV6AWGC.js").then(t=>t.ConfigurationModule)},{path:"dependencies",loadChildren:()=>import("./chunk-37KQ3UTB.js").then(t=>t.DependenciesModule)},{path:"rquest",loadChildren:()=>import("./chunk-3LDMO67C.js").then(t=>t.ApiClientModule)},{path:"about",loadChildren:()=>import("./chunk-CPA2B3DD.js").then(t=>t.AboutRoutingModule)},{path:"**",redirectTo:"dashboard"}];Bt(Dn);var Ln={providers:[jn,pt(),Dt(),Gt(In),Xt(qt),En(),lt(ze),Vt(Wt([On]))]};var Ge=["*"];function Jn(t,n){}function Kn(t,n){if(t&1&&(r(0,"span",1),P(1,Jn,0,0,"ng-template",2),p(2,"nz-icon",3),l()),t&2){let e=c(),o=N(4);d("nzDropdownMenu",e.nzOverlay),s(),d("ngTemplateOutlet",o)}}function eo(t,n){}function to(t,n){if(t&1&&P(0,eo,0,0,"ng-template",2),t&2){c();let e=N(4);d("ngTemplateOutlet",e)}}function no(t,n){if(t&1&&(H(0),m(1),U()),t&2){let e=c(2);s(),$(" ",e.nzBreadCrumbComponent.nzSeparator," ")}}function oo(t,n){if(t&1&&(r(0,"nz-breadcrumb-separator"),P(1,no,2,1,"ng-container",4),l()),t&2){let e=c();s(),d("nzStringTemplateOutlet",e.nzBreadCrumbComponent.nzSeparator)}}function io(t,n){t&1&&(r(0,"span",5),ce(1),l())}var ro=(t,n)=>n.url;function ao(t,n){if(t&1){let e=z();r(0,"nz-breadcrumb-item")(1,"a",0),C("click",function(i){let a=g(e).$implicit,u=c(2);return h(u.navigate(a.url,i))}),m(2),l()()}if(t&2){let e=n.$implicit;s(),Mt("href",e.url,ft),s(),T(e.label)}}function lo(t,n){if(t&1&&E(0,ao,3,2,"nz-breadcrumb-item",null,ro),t&2){let e=c();j(e.breadcrumbs)}}var we=class{},so=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275cmp=_({type:t,selectors:[["nz-breadcrumb-separator"]],hostAttrs:[1,"ant-breadcrumb-separator"],exportAs:["nzBreadcrumbSeparator"],ngContentSelectors:Ge,decls:1,vars:0,template:function(o,i){o&1&&(se(),ce(0))},encapsulation:2})}return t})(),kn=(()=>{class t{nzBreadCrumbComponent=f(we);nzOverlay;static \u0275fac=function(o){return new(o||t)};static \u0275cmp=_({type:t,selectors:[["nz-breadcrumb-item"]],inputs:{nzOverlay:"nzOverlay"},exportAs:["nzBreadcrumbItem"],ngContentSelectors:Ge,decls:5,vars:2,consts:[["noMenuTpl",""],["nz-dropdown","",1,"ant-breadcrumb-overlay-link",3,"nzDropdownMenu"],[3,"ngTemplateOutlet"],["nzType","down"],[4,"nzStringTemplateOutlet"],[1,"ant-breadcrumb-link"]],template:function(o,i){o&1&&(se(),v(0,Kn,3,2,"span",1)(1,to,1,1,null,2),v(2,oo,2,1,"nz-breadcrumb-separator"),P(3,io,2,0,"ng-template",null,0,X)),o&2&&(y(i.nzOverlay?0:1),s(2),y(i.nzBreadCrumbComponent.nzSeparator?2:-1))},dependencies:[me,so,ee,K,b,S,en,Kt],encapsulation:2,changeDetection:0})}return t})(),co=(()=>{class t{injector=f(ae);cdr=f(It);elementRef=f(dt);renderer=f(_t);directionality=f(Zt);destroyRef=f(ct);nzAutoGenerate=!1;nzSeparator="/";nzRouteLabel="breadcrumb";nzRouteLabelFn=e=>e;nzRouteFn=e=>e;breadcrumbs=[];dir="ltr";ngOnInit(){this.nzAutoGenerate&&this.registerRouterChange(),this.directionality.change?.pipe(Ue(this.destroyRef)).subscribe(e=>{this.dir=e,this.prepareComponentForRtl(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.prepareComponentForRtl()}navigate(e,o){o.preventDefault(),this.injector.get(G).navigateByUrl(e)}registerRouterChange(){try{let e=this.injector.get(G),o=this.injector.get(Ut);e.events.pipe(q(i=>i instanceof de),Ue(this.destroyRef),tt(!0)).subscribe(()=>{this.breadcrumbs=this.getBreadcrumbs(o.root),this.cdr.markForCheck()})}catch{throw new Error(`${Yt} You should import RouterModule if you want to use 'NzAutoGenerate'.`)}}getBreadcrumbs(e,o="",i=[]){let a=e.children;if(a.length===0)return i;for(let u of a)if(u.outlet===Ht){let W=u.snapshot.url.map(ne=>ne.path).filter(ne=>ne).join("/"),Je=W?`${o}/${W}`:o,Ke=this.nzRouteLabelFn(u.snapshot.data[this.nzRouteLabel]),Yn=this.nzRouteFn(Je);if(W&&Ke){let ne={label:Ke,params:u.snapshot.params,url:Yn};i.push(ne)}return this.getBreadcrumbs(u,Je,i)}return i}prepareComponentForRtl(){this.dir==="rtl"?this.renderer.addClass(this.elementRef.nativeElement,"ant-breadcrumb-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-breadcrumb-rtl")}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=_({type:t,selectors:[["nz-breadcrumb"]],hostAttrs:[1,"ant-breadcrumb"],inputs:{nzAutoGenerate:[2,"nzAutoGenerate","nzAutoGenerate",Lt],nzSeparator:"nzSeparator",nzRouteLabel:"nzRouteLabel",nzRouteLabelFn:"nzRouteLabelFn",nzRouteFn:"nzRouteFn"},exportAs:["nzBreadcrumb"],features:[Ot([{provide:we,useExisting:ot(()=>t)}])],ngContentSelectors:Ge,decls:2,vars:1,consts:[[3,"click"]],template:function(o,i){o&1&&(se(),ce(0),v(1,lo,2,0)),o&2&&(s(),y(i.nzAutoGenerate&&i.breadcrumbs.length?1:-1))},dependencies:[kn],encapsulation:2,changeDetection:0})}return t})(),Bn=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=yt({type:t});static \u0275inj=it({imports:[co,kn]})}return t})();function po(t){return t.op==="syslog.tail"}function mo(t){return t.op==="syslog.append"}function Ye(t,n){return n?!(n.scope!==void 0&&t?.scope!==n.scope||n.level!==void 0&&t?.level!==n.level||n.source!==void 0&&t?.source!==n.source||n.refId!==void 0&&t?.refId!==n.refId):!0}var Se=class t{constructor(n){this.ws=n;this.msgSub=this.ws.messages().pipe(q(e=>po(e)||mo(e))).subscribe(e=>this.onWsMessage(e)),this.wsStateSub=this.ws.stateChanges().subscribe(e=>{let o=this.lastWsState==="open",i=e==="open";!o&&i&&(this.subSentForCurrentConnection=!1,this.sendSubIfNeeded()),o&&!i&&(this.subSentForCurrentConnection=!1),this.lastWsState=e})}msgSub;wsStateSub;enabled=M(!1);filter=M({});logs=M([]);unread=M(0);drawerOpen=M(!1);capacity=2e3;tail=300;subSentForCurrentConnection=!1;lastWsState="idle";setDrawerOpen(n){this.drawerOpen.set(n),n&&this.unread.set(0)}setFilter(n){this.filter.set(n??{});let e=this.logs();if(!e.length)return;let o=e.filter(i=>Ye(i,this.filter()));this.logs.set(o.slice(-this.capacity))}enable(n=300){let e=Math.max(0,Math.min(5e3,n|0));if(this.tail=e,this.enabled()){this.ws.isOpen()&&(this.subSentForCurrentConnection=!1,this.sendSubIfNeeded());return}this.enabled.set(!0),this.ws.connect(),this.sendSubIfNeeded()}disable(){this.enabled.set(!1),this.subSentForCurrentConnection=!1}markRead(){this.unread.set(0)}clear(){this.logs.set([]),this.unread.set(0)}sendSubIfNeeded(){this.enabled()&&this.ws.isOpen()&&(this.subSentForCurrentConnection||(this.ws.send({op:"sub",topic:"syslog",tail:this.tail}),this.subSentForCurrentConnection=!0))}onWsMessage(n){let e=this.filter();if(n.op==="syslog.tail"){let u=(n.entries??[]).filter(W=>Ye(W,e));this.logs.set(u.slice(-this.capacity));return}let o=n.entry;if(!Ye(o,e))return;let i=this.logs(),a=i.length>=this.capacity?i.slice(1):i.slice();a.push(o),this.logs.set(a),this.drawerOpen()||this.unread.set(this.unread()+1)}static \u0275fac=function(e){return new(e||t)(re(Me))};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})};var fo=["logBox"],go=()=>({padding:"0px",overflow:"hidden"});function ho(t,n){if(t&1&&(r(0,"nz-tag",12),m(1),oe(2,"uppercase"),l(),r(3,"div",13),m(4),l(),r(5,"div",14),m(6),oe(7,"date"),l()),t&2){let e,o,i,a,u=c();d("nzColor",u.getColor((e=u.lastLine())==null?null:e.level)),s(),$(" ",We(2,4,(o=u.lastLine())==null?null:o.level)," "),s(3),T((i=u.lastLine())==null?null:i.text),s(2),T(He(7,6,(a=u.lastLine())==null?null:a.ts,"yyyy-MM-dd HH:mm:ss"))}}function Co(t,n){t&1&&(r(0,"nz-tag",15),m(1,"INFO"),l(),r(2,"div",13),m(3,"\u6682\u65E0\u65E5\u5FD7"),l(),r(4,"div",14),m(5,"--"),l())}function _o(t,n){if(t&1&&m(0),t&2){let e=c().$implicit;$(" ",e.data==null?null:e.data.icon," ")}}function vo(t,n){if(t&1&&(r(0,"div",18)(1,"nz-tag",12),m(2),oe(3,"uppercase"),l(),r(4,"span",14),m(5),oe(6,"date"),l(),r(7,"span",19),v(8,_o,1,1),m(9),l()()),t&2){let e=n.$implicit,o=c(2);I("err",e.level==="error")("warn",e.level==="warn")("info",e.level==="info")("debug",e.level==="debug")("success",e.level==="success"),s(),d("nzColor",o.getColor(e.level)),s(),$(" ",We(3,15,e.level)," "),s(3),T(He(6,17,e.ts,"yyyy-MM-dd HH:mm:ss")),s(3),y(e.data!=null&&e.data.icon?8:-1),s(),$(" ",e.text," ")}}function yo(t,n){if(t&1&&(H(0),r(1,"div",16,1),E(3,vo,10,20,"div",17,bt().trackByLine,!0),l(),U()),t&2){let e=c();s(3),j(e.lines())}}function zo(t,n){if(t&1){let e=z();r(0,"nz-space",20)(1,"button",21),C("click",function(){g(e);let i=c();return h(i.clearLog())}),p(2,"nz-icon",22),l(),r(3,"button",23),C("click",function(){g(e);let i=c();return h(i.toBottom())}),p(4,"nz-icon",24),l()()}}var Pe=class t{sysLogStream=f(Se);projectState=f(te);logBox=Et("logBox");autoFollow=M(!0);isOpen=M(!1);curProjectPath=O(()=>this.projectState.currentProject()?.root||"");lines=O(()=>this.sysLogStream.logs());lastLine=O(()=>{let n=this.sysLogStream.logs();return n.length?n[n.length-1]:null});unread=O(()=>this.sysLogStream.unread());constructor(){ie(()=>{this.sysLogStream.setDrawerOpen(this.isOpen()),this.isOpen()&&queueMicrotask(()=>this.toBottom())}),ie(()=>{this.lines(),this.isOpen()&&this.autoFollow()&&queueMicrotask(()=>this.toBottom())})}ngOnInit(){this.sysLogStream.enable(300)}openLog(){this.isOpen.set(!0)}closeLog(){this.isOpen.set(!1)}clearLog(){this.sysLogStream.clear()}toBottom(){let n=this.logBox()?.nativeElement;n&&(n.scrollTop=n.scrollHeight)}trackByLine=(n,e)=>`${e.ts}-${e.refId??""}-${e.text}`;getColor(n){if(!n)return"#000000";switch(n){case"success":return"#22c55e";case"info":return"#18bdfd";case"debug":return"#94a3b8";case"error":return"#ef4444";case"warn":return"#f59e0b";default:return"#000000"}}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=_({type:t,selectors:[["app-system-log"]],viewQuery:function(e,o){e&1&&wt(o.logBox,fo,5),e&2&&St()},decls:16,vars:10,consts:[["extra",""],["logBox",""],[1,"status-bar"],[1,"project-path"],["nz-button","","nzType","text","routerLink","/projects","nz-tooltip","\u9879\u76EE\u7BA1\u7406","nzTooltipPlacement","top",1,"home"],["nzType","home","nzTheme","outline",1,"icon"],["nz-button","","nzType","text","nzTooltipPlacement","top",1,"path",3,"nz-tooltip"],["nzType","folder","nzTheme","outline",1,"icon"],["nz-tooltip","\u6253\u5F00\u65E5\u5FD7",1,"last-log",3,"click"],["nzType","profile","nzTheme","outline",1,"icon"],["nzTitle","\u65E5\u5FD7","nzPlacement","bottom",3,"nzOnClose","nzVisible","nzMaskClosable","nzMask","nzExtra","nzHeight","nzBodyStyle"],[4,"nzDrawerContent"],[1,"level-tag",3,"nzColor"],[1,"info"],[1,"time"],["nzColor","default"],[1,"log"],[1,"line",3,"err","warn","info","debug","success"],[1,"line"],[1,"msg"],["nzAlign","center"],["nz-button","","nzType","text","nz-tooltip","\u6E05\u7A7A\u65E5\u5FD7",3,"click"],["nzType","clear","nzTheme","outline"],["nz-button","","nzType","text","nz-tooltip","\u6EDA\u52A8\u5230\u5E95\u90E8",3,"click"],["nzType","vertical-align-bottom","nzTheme","outline"]],template:function(e,o){if(e&1){let i=z();r(0,"div",2)(1,"div",3)(2,"a",4),p(3,"nz-icon",5),l(),r(4,"button",6),p(5,"nz-icon",7),r(6,"span"),m(7),l()()(),r(8,"div",8),C("click",function(){return g(i),h(o.openLog())}),p(9,"nz-icon",9),v(10,ho,8,9)(11,Co,6,0),l()(),r(12,"nz-drawer",10),C("nzOnClose",function(){return g(i),h(o.closeLog())}),P(13,yo,5,0,"ng-container",11),l(),P(14,zo,5,0,"ng-template",null,0,X)}if(e&2){let i=N(15);s(4),d("nz-tooltip",o.curProjectPath()),s(3),T(o.curProjectPath()),s(3),y(o.lastLine()?10:11),s(2),d("nzVisible",o.isOpen())("nzMaskClosable",!1)("nzMask",!1)("nzExtra",i)("nzHeight",300)("nzBodyStyle",pe(9,go))}},dependencies:[L,Nn,Tn,an,rn,on,B,k,F,nn,tn,b,S,_e,Ce,D,Z,Ft,kt],styles:["[_nghost-%COMP%]{display:block;position:relative;z-index:3;flex:0 0 auto}.status-bar[_ngcontent-%COMP%]{height:32px;display:flex;align-items:center;width:100%;-webkit-user-select:none;user-select:none}.status-bar[_ngcontent-%COMP%] .project-path[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;align-items:center;padding:0 8px;gap:4px}.status-bar[_ngcontent-%COMP%] .project-path[_ngcontent-%COMP%] .home[_ngcontent-%COMP%], .status-bar[_ngcontent-%COMP%] .project-path[_ngcontent-%COMP%] .path[_ngcontent-%COMP%]{display:inline-flex;align-items:center;padding:0;max-width:360px}.status-bar[_ngcontent-%COMP%] .project-path[_ngcontent-%COMP%] .home[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .status-bar[_ngcontent-%COMP%] .project-path[_ngcontent-%COMP%] .path[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.status-bar[_ngcontent-%COMP%] .project-path[_ngcontent-%COMP%] .home[_ngcontent-%COMP%]{justify-content:center}.status-bar[_ngcontent-%COMP%] .project-path[_ngcontent-%COMP%] .path[_ngcontent-%COMP%]{min-width:240px;justify-content:flex-start}.status-bar[_ngcontent-%COMP%] .last-log[_ngcontent-%COMP%]{cursor:pointer;flex:1;display:flex;align-items:center;padding:0 12px;gap:8px}.status-bar[_ngcontent-%COMP%] .last-log[_ngcontent-%COMP%] .info[_ngcontent-%COMP%]{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.status-bar[_ngcontent-%COMP%] .last-log[_ngcontent-%COMP%] .time[_ngcontent-%COMP%]{flex:0 0 auto;opacity:.75;font-size:14px}.status-bar[_ngcontent-%COMP%] .last-log[_ngcontent-%COMP%]:hover{background:#f5f7fa}.icon[_ngcontent-%COMP%]{margin-right:8px;font-size:18px;display:inline-flex}.log[_ngcontent-%COMP%]{height:100%;overflow:auto;padding:8px 12px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:14px;line-height:18px}.line[_ngcontent-%COMP%]{display:flex;gap:12px;padding:2px 0;align-items:center}.line[_ngcontent-%COMP%] .time[_ngcontent-%COMP%]{flex:0 0 auto;opacity:.65;font-variant-numeric:tabular-nums}.line[_ngcontent-%COMP%] .msg[_ngcontent-%COMP%]{flex:1 1 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.line.err[_ngcontent-%COMP%] .msg[_ngcontent-%COMP%]{font-weight:600}.line.warn[_ngcontent-%COMP%] .msg[_ngcontent-%COMP%]{font-weight:500}.level-tag[_ngcontent-%COMP%]{font-size:12px;padding:0 4px;line-height:1.5;display:inline-flex;align-items:center;justify-content:center;min-width:58px;border-radius:4px}"],changeDetection:0})};var Te=class t{static \u0275fac=function(e){return new(e||t)};static \u0275cmp=_({type:t,selectors:[["ngm-footer"]],decls:2,vars:0,template:function(e,o){e&1&&(r(0,"nz-footer"),p(1,"app-system-log"),l())},dependencies:[R,xn,Pe],styles:["nz-footer[_ngcontent-%COMP%]{padding:0;align-items:center;display:flex}app-system-log[_ngcontent-%COMP%]{width:100%}"]})};var Ne=class t{static \u0275fac=function(e){return new(e||t)};static \u0275cmp=_({type:t,selectors:[["ngm-header"]],decls:4,vars:0,consts:[[1,"app-header"],["nzType","disconnect","nzTheme","outline"]],template:function(e,o){e&1&&(r(0,"nz-header",0),p(1,"nz-icon",1),r(2,"span"),m(3,"\u8FDE\u63A5\u5DF2\u65AD\u5F00"),l()())},dependencies:[L,R,wn,b,S],styles:["nz-header.app-header[_ngcontent-%COMP%]{padding:0;width:100%;position:relative;height:48px;line-height:48px;background:var(--header-error-background);color:#fff;display:flex;align-items:center;justify-content:center;font-size:18px;gap:8px}"],changeDetection:0})};var Oe=class t{isCollapsed=M(!1);static \u0275fac=function(e){return new(e||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})};var De=class t{currentMenu=M(null);router=f(G);menus=[{title:"\u4EEA\u8868\u76D8",path:"/dashboard",icon:"dashboard",level:1},{title:"\u4F9D\u8D56",path:"/dependencies",icon:"codepen",level:1},{title:"\u4EFB\u52A1",path:"/tasks",icon:"schedule",level:1,taskCountBadge:!0},{title:"\u914D\u7F6E",path:"/configuration",icon:"setting",level:1},{title:"API",path:"/rquest",icon:"api",level:1}];constructor(){this.syncByUrl(this.router.url),this.router.events.pipe(q(n=>n instanceof de)).subscribe(n=>this.syncByUrl(n.urlAfterRedirects))}isActive(n){return this.router.isActive(n,{paths:"subset",queryParams:"ignored",fragment:"ignored",matrixParams:"ignored"})}getMenus(){return this.menus}clickMenu(n){n.path&&this.router.navigateByUrl(n.path),this.currentMenu.set(n)}syncByUrl(n){let e=this.normalizeUrl(n),o=this.findBestMatch(this.menus,e);this.currentMenu.set(o)}normalizeUrl(n){return n.split("?")[0].split("#")[0]}findBestMatch(n,e){let o=this.flatten(n).filter(a=>!!a.path),i=null;for(let a of o){let u=a.path;(e===u||e.startsWith(u+"/"))&&(!i||u.length>i.path.length)&&(i=a)}return i}flatten(n){let e=[];for(let o of n)e.push(o),o.children?.length&&e.push(...this.flatten(o.children));return e}static \u0275fac=function(e){return new(e||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})};var Ee=class t{api=f(yn);runtimeStore=f(be);async initActiveSnapshot(){let n=await et(this.api.active());for(let e of n??[])this.runtimeStore.setRuntime(e)}static \u0275fac=function(e){return new(e||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})};var Rn=t=>({$implicit:t});function Mo(t,n){t&1&&Re(0)}function bo(t,n){if(t&1&&p(0,"nz-icon",6),t&2){let e=c(2).$implicit;d("nzType",e.icon)}}function xo(t,n){t&1&&p(0,"nz-badge",7)}function wo(t,n){if(t&1){let e=z();r(0,"li",5),C("click",function(){g(e);let i=c().$implicit,a=c(2);return h(a.menuService.clickMenu(i))}),v(1,bo,1,1,"nz-icon",6),r(2,"span"),m(3),l(),v(4,xo,1,0,"nz-badge",7),l()}if(t&2){let e=c().$implicit,o=c(2);d("nzPaddingLeft",e.level*24)("nzDisabled",e.disabled)("nzSelected",o.menuService.isActive(e.path))("nz-tooltip",e.taskCountBadge===!0&&o.runningTaskCount()>0?o.runningTaskCount()+"\u4E2A\u4EFB\u52A1\u6B63\u5728\u8FD0\u884C":null),s(),y(e.icon?1:-1),s(2),T(e.title),s(),y(e.taskCountBadge===!0&&o.runningTaskCount()>0?4:-1)}}function So(t,n){t&1&&Re(0)}function Po(t,n){if(t&1&&(r(0,"li",4)(1,"ul"),P(2,So,1,0,"ng-container",2),l()()),t&2){let e=c().$implicit;c(2);let o=N(3);d("nzPaddingLeft",e.level*24)("nzOpen",e.open)("nzTitle",e.title)("nzIcon",e.icon)("nzDisabled",e.disabled),s(2),d("ngTemplateOutlet",o)("ngTemplateOutletContext",Ve(7,Rn,e.children))}}function To(t,n){if(t&1&&v(0,wo,5,7,"li",3)(1,Po,3,9,"li",4),t&2){let e=n.$implicit;y(e.children?1:0)}}function No(t,n){if(t&1&&E(0,To,2,1,null,null,xt),t&2){let e=n.$implicit;j(e)}}var je=class t{isCollapsed=!1;menus=[];menuService=f(De);taskBootstrap=f(Ee);runtimeStore=f(be);runningTaskCount=O(()=>this.runtimeStore.totalRunningCountSignal()());ngOnInit(){this.menus=this.menuService.getMenus(),this.taskBootstrap.initActiveSnapshot()}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=_({type:t,selectors:[["ngm-menu"]],inputs:{isCollapsed:"isCollapsed"},decls:4,vars:5,consts:[["menuTpl",""],["nz-menu","","nzMode","inline",3,"nzInlineCollapsed"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["nz-menu-item","","nzTooltipPlacement","right",3,"nzPaddingLeft","nzDisabled","nzSelected","nz-tooltip"],["nz-submenu","",3,"nzPaddingLeft","nzOpen","nzTitle","nzIcon","nzDisabled"],["nz-menu-item","","nzTooltipPlacement","right",3,"click","nzPaddingLeft","nzDisabled","nzSelected","nz-tooltip"],["nzTheme","outline",2,"font-size","18px",3,"nzType"],["nzStatus","processing",2,"margin-left","12px"]],template:function(e,o){if(e&1&&(r(0,"ul",1),P(1,Mo,1,0,"ng-container",2)(2,No,2,0,"ng-template",null,0,X),l()),e&2){let i=N(3);d("nzInlineCollapsed",o.isCollapsed),s(),d("ngTemplateOutlet",i)("ngTemplateOutletContext",Ve(3,Rn,o.menus))}},dependencies:[me,A,J,Q,dn,b,S,D,_e,Ce,Mn,zn],encapsulation:2})};function Eo(t,n){if(t&1){let e=z();r(0,"div",3)(1,"label",4),m(2,"\u540D\u79F0"),l(),r(3,"nz-input-wrapper")(4,"input",5),C("ngModelChange",function(i){g(e);let a=c(2);return h(a.projectState.editingProject().name=i)})("keydown.enter",function(){g(e);let i=c(2);return h(i.projectState.confirmEditProject())}),l(),p(5,"nz-icon",6),l(),r(6,"div",7),m(7,"\u8F93\u5165\u65B0\u540D\u79F0\uFF0C\u5C06\u540C\u6B65\u66F4\u65B0\u9879\u76EE\u663E\u793A\u540D\u79F0\uFF08\u4E0D\u4F1A\u91CD\u547D\u540D\u78C1\u76D8\u76EE\u5F55\uFF09\u3002"),l(),r(8,"label",4),m(9,"\u4ED3\u5E93\u7F51\u9875\u5730\u5740"),l(),r(10,"nz-input-wrapper")(11,"input",8),C("ngModelChange",function(i){g(e);let a=c(2);return h(a.projectState.editingProject().repoPageUrl=i)}),l(),p(12,"nz-icon",9),l(),r(13,"label",4),m(14,"\u63CF\u8FF0"),l(),r(15,"nz-input-wrapper")(16,"textarea",10),C("ngModelChange",function(i){g(e);let a=c(2);return h(a.projectState.editingProject().description=i)})("keydown.enter",function(){g(e);let i=c(2);return h(i.projectState.confirmEditProject())}),l()()()}if(t&2){let e=c(2);s(4),d("ngModel",e.editingProject().name),s(7),d("ngModel",e.editingProject().repoPageUrl),s(5),d("ngModel",e.editingProject().description)}}function jo(t,n){if(t&1&&(H(0),v(1,Eo,17,3,"div",3),U()),t&2){let e=c();s(),y(e.editingProject()?1:-1)}}function Io(t,n){if(t&1){let e=z();H(0),r(1,"button",11),C("click",function(){g(e);let i=c();return h(i.projectState.closeEditModal())}),m(2,"\u53D6\u6D88"),l(),r(3,"button",12),C("click",function(){g(e);let i=c();return h(i.projectState.confirmEditProject())}),m(4," \u786E\u5B9A "),l(),U()}if(t&2){let e,o=c();s(3),d("disabled",!(!((e=o.projectState.editingProject())==null||e.name==null)&&e.name.trim())||o.projectState.isEditSaving())("nzLoading",o.projectState.isEditSaving())}}var Ie=class t{projectState=f(te);editingProject=this.projectState.editingProject;static \u0275fac=function(e){return new(e||t)};static \u0275cmp=_({type:t,selectors:[["app-project-edit-modal"]],decls:3,vars:3,consts:[["nzTitle","\u7F16\u8F91\u9879\u76EE",3,"nzOnCancel","nzClosable","nzMaskClosable","nzVisible"],[4,"nzModalContent"],[4,"nzModalFooter"],[1,"modal-body"],[1,"label"],["nz-input","","placeholder","\u8BF7\u8F93\u5165\u65B0\u540D\u79F0","autofocus","",3,"ngModelChange","keydown.enter","ngModel"],["nzInputPrefix","","nzType","folder","nzTheme","fill"],[1,"hint"],["nz-input","","placeholder","\u4ED3\u5E93\u7F51\u9875\u5730\u5740",3,"ngModelChange","ngModel"],["nzInputPrefix","","nzType","global","nzTheme","outline"],["nz-input","","rows","3","placeholder","\u8BF7\u8F93\u5165\u65B0\u63CF\u8FF0",2,"resize","none",3,"ngModelChange","keydown.enter","ngModel"],["nz-button","",3,"click"],["nz-button","","nzType","primary",3,"click","disabled","nzLoading"]],template:function(e,o){e&1&&(r(0,"nz-modal",0),C("nzOnCancel",function(){return o.projectState.closeEditModal()}),P(1,jo,2,1,"ng-container",1)(2,Io,5,2,"ng-container",2),l()),e&2&&d("nzClosable",!1)("nzMaskClosable",!1)("nzVisible",o.projectState.isEditModalVisible())},dependencies:[L,he,ln,fe,ge,mn,cn,pn,sn,B,k,F,ue,ze,Cn,hn,gn,b,S],styles:[".modal-body[_ngcontent-%COMP%]{display:grid;gap:12px}.hint[_ngcontent-%COMP%]{font-size:12px;opacity:.75}"]})};var Lo=()=>({width:"100%"}),Vn=(t,n)=>n.id;function Fo(t,n){t&1&&p(0,"nz-icon",2)}function ko(t,n){if(t&1){let e=z();r(0,"li",7),p(1,"nz-icon",11),r(2,"span"),m(3,"\u6DFB\u52A0/\u53D6\u6D88\u6536\u85CF"),l(),r(4,"nz-switch",12),C("ngModelChange",function(){let i;g(e);let a=c();return h(a.projectState.toggleFavorite((i=a.projectState.currentProject())==null?null:i.id))}),l()(),r(5,"li",13),C("click",function(){let i;g(e);let a=c();return h(a.projectState.openInEditor((i=a.projectState.currentProject())==null?null:i.id))}),p(6,"nz-icon",14),r(7,"span"),m(8,"\u5728\u7F16\u8F91\u5668\u4E2D\u6253\u5F00"),l()(),r(9,"li",13),C("click",function(){g(e);let i=c();return h(i.projectState.openEditModal(i.projectState.currentProject()))}),p(10,"nz-icon",15),r(11,"span"),m(12,"\u7F16\u8F91\u9879\u76EE"),l()()}if(t&2){let e,o,i,a=c();s(),d("nzTheme",(e=a.projectState.currentProject())!=null&&e.isFavorite?"fill":"outline"),s(3),d("nzDisabled",!((o=a.projectState.currentProject())!=null&&o.id))("ngModel",(i=a.projectState.currentProject())==null?null:i.isFavorite)}}function Bo(t,n){if(t&1){let e=z();r(0,"li",13),C("click",function(){let i=g(e).$implicit,a=c();return h(a.projectState.selectProject(i))}),p(1,"nz-icon",16),r(2,"span"),m(3),l()()}if(t&2){let e=n.$implicit;s(3),T(e.name)}}function Ao(t,n){if(t&1){let e=z();r(0,"li",13),C("click",function(){let i=g(e).$implicit,a=c();return h(a.projectState.selectProject(i))}),p(1,"nz-icon",11),r(2,"span"),m(3),l()()}if(t&2){let e=n.$implicit;s(),d("nzTheme",e.isFavorite?"fill":"outline"),s(2),T(e.name)}}var Le=class t{constructor(n){this.projectState=n}isCollapsed=jt(!1);curProjectName=O(()=>{let n=this.projectState.currentProject()?.name||"\u8BF7\u9009\u62E9\u9879\u76EE";return this.isCollapsed()?n?.charAt(0).toUpperCase():n});ngOnInit(){this.projectState.getProjects()}static \u0275fac=function(e){return new(e||t)(le(te))};static \u0275cmp=_({type:t,selectors:[["ngm-project-nav"]],inputs:{isCollapsed:[1,"isCollapsed"]},outputs:{isCollapsed:"isCollapsedChange"},decls:23,vars:9,consts:[["menu","nzDropdownMenu"],["nz-button","","nzType","primary","nzSize","large","nz-dropdown","","nzTrigger","click",1,"project-quick-dropdown",3,"nzDropdownMenu","nzPlacement","nzOverlayStyle"],["nzType","down"],[2,"width","100%"],["nz-menu",""],["nz-menu-divider",""],["nz-menu-group","","nzTitle","\u6536\u85CF\u7684\u9879\u76EE"],["nz-menu-item","",1,"item"],["nz-menu-group","","nzTitle","\u6700\u8FD1\u4F7F\u7528"],["routerLink","/projects"],["nzType","project"],["nzType","star",3,"nzTheme"],[2,"margin-left","6px",3,"ngModelChange","nzDisabled","ngModel"],["nz-menu-item","",1,"item",3,"click"],["nzType","code"],["nzType","edit"],["nzType","star","nzTheme","fill"]],template:function(e,o){if(e&1&&(r(0,"button",1)(1,"span"),m(2),l(),v(3,Fo,1,0,"nz-icon",2),l(),r(4,"nz-dropdown-menu",3,0)(6,"ul",4),v(7,ko,13,3),p(8,"li",5)(9,"li",6),E(10,Bo,4,1,"li",7,Vn),p(12,"li",5)(13,"li",8),E(14,Ao,4,2,"li",7,Vn),p(16,"li",5),r(17,"li",7)(18,"a",9),p(19,"nz-icon",10),r(20,"span"),m(21,"\u9879\u76EE\u7BA1\u7406"),l()()()()(),p(22,"app-project-edit-modal")),e&2){let i=N(5);I("collapsed",o.isCollapsed()),d("nzDropdownMenu",i)("nzPlacement","bottomCenter")("nzOverlayStyle",pe(8,Lo)),s(2),T(o.curProjectName()),s(),y(o.isCollapsed()?-1:3),s(4),y(o.projectState.currentProject()?7:-1),s(3),j(o.projectState.favoriteProjects()),s(4),j(o.projectState.recentProjects())}},dependencies:[L,he,fe,ge,ee,J,Q,fn,un,K,ye,ve,A,b,S,vn,_n,B,k,F,ue,D,Z,Ie],styles:["[_nghost-%COMP%]{display:flex;padding:16px}[_nghost-%COMP%] .project-quick-dropdown[_ngcontent-%COMP%]{flex:1;width:100%;display:flex;align-items:center;gap:8px;justify-content:center;border-radius:20px;font-weight:500}[_nghost-%COMP%] .project-quick-dropdown[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item[_ngcontent-%COMP%] .ant-menu-title-content{display:flex;align-items:center;gap:8px;overflow:hidden}.item[_ngcontent-%COMP%] .ant-menu-title-content span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--app-text-color);display:flex;width:100%;align-items:center;gap:8px}"]})};var Fe=class t{router=f(G);state=f(Oe);isCollapsed=this.state.isCollapsed;constructor(){}isActive(n){return this.router.url.startsWith(n)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=_({type:t,selectors:[["ngm-sidebar"]],hostVars:4,hostBindings:function(e,o){e&2&&I("collapsed",o.isCollapsed())("ant-layout-sider",!0)},decls:20,vars:5,consts:[["menu","nzDropdownMenu"],["nzCollapsible","","nzWidth","256px","nzBreakpoint","md",1,"menu-sidebar",3,"nzCollapsedChange","nzCollapsed","nzTrigger"],[1,"header"],[3,"isCollapsed"],[1,"content"],["nz-button","","nzType","link","nz-dropdown","","nzPlacement","bottomRight","nzTrigger","click",1,"more-btn",3,"nzDropdownMenu"],["nzType","more"],["nz-menu",""],["nz-menu-item","",1,"item"],["routerLink","/projects"],["nzType","project","nzTheme","outline"],["routerLink","/about"],["nzType","info-circle","nzTheme","outline"]],template:function(e,o){if(e&1){let i=z();r(0,"nz-sider",1),Nt("nzCollapsedChange",function(u){return g(i),Tt(o.isCollapsed,u)||(o.isCollapsed=u),h(u)}),r(1,"div",2),p(2,"ngm-project-nav",3),l(),r(3,"div",4),p(4,"ngm-menu",3),r(5,"button",5),p(6,"nz-icon",6),l()()(),r(7,"nz-dropdown-menu",null,0)(9,"ul",7)(10,"li",8)(11,"a",9),p(12,"nz-icon",10),r(13,"span"),m(14,"\u9879\u76EE\u7BA1\u7406"),l()()(),r(15,"li",8)(16,"a",11),p(17,"nz-icon",12),r(18,"span"),m(19,"\u5173\u4E8E"),l()()()()()}if(e&2){let i=N(8);Pt("nzCollapsed",o.isCollapsed),d("nzTrigger",null),s(2),d("isCollapsed",o.isCollapsed()),s(2),d("isCollapsed",o.isCollapsed()),s(),d("nzDropdownMenu",i)}},dependencies:[R,Sn,b,S,A,J,Q,je,Le,B,k,F,ee,K,ye,ve,D,Z],styles:["html.default[_ngcontent-%COMP%] [_ngcontent-%COMP%]:root{--app-gray: #e6f7ff;--app-primary: #1890ff;--app-primary-1: #e6f7ff;--app-primary-2: #bae7ff;--app-primary-3: #91d5ff;--app-primary-4: #69c0ff;--app-primary-5: #40a9ff;--app-primary-6: #1890ff;--app-text-color: rgba(0, 0, 0, .85);--app-text-secondary: rgba(0, 0, 0, .45);--text-color-primary: #1890ff;--app-component-bg: #fff;--app-border-color: #d9d9d9;--header-error-background: #ff4d4f}html.default[_ngcontent-%COMP%] [_ngcontent-%COMP%]:root{--text-color-gray: #888}html.default [_nghost-%COMP%] .sidebar-logo[_ngcontent-%COMP%]{background:var(--ant-primary-1)}html.default [_nghost-%COMP%] .sidebar-logo[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:var(--ant-text-color)}html.dark[_ngcontent-%COMP%] [_ngcontent-%COMP%]:root{--text-color-gray: #bbb}html.dark [_nghost-%COMP%] .sidebar-logo[_ngcontent-%COMP%]{background:var(--ant-primary-1)}html.dark [_nghost-%COMP%] .sidebar-logo[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:var(--ant-text-color)}[_nghost-%COMP%]{display:block;box-sizing:border-box;position:relative;z-index:10;box-shadow:2px 0 6px #00152959;width:256px;transition:all .2s;flex:0 0 auto}.collapsed[_nghost-%COMP%]{width:80px}.menu-sidebar[_ngcontent-%COMP%]{height:100%}.menu-sidebar[_ngcontent-%COMP%] .ant-layout-sider-children{display:flex;flex-direction:column;height:100%}.menu-sidebar[_ngcontent-%COMP%] .ant-menu-inline{border-right:none}.menu-sidebar[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{flex:0 0 auto}.menu-sidebar[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{flex:1 1 auto;height:0;display:flex;flex-direction:column}.menu-sidebar[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] ngm-menu[_ngcontent-%COMP%]{flex:1 1 auto;height:0}.menu-sidebar[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:12px;flex:0 0 auto}.menu-sidebar[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--app-primary-2)}.sidebar-logo[_ngcontent-%COMP%]{position:relative;height:64px;padding-left:24px;overflow:hidden;line-height:64px;transition:all .3s}.sidebar-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:inline-block;height:32px;width:32px;vertical-align:middle}.sidebar-logo[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{display:inline-block;margin:0 0 0 20px;font-weight:600;font-size:14px;font-family:Avenir,Helvetica Neue,Arial,Helvetica,sans-serif;vertical-align:middle}.item[_ngcontent-%COMP%] .ant-menu-title-content{display:flex;align-items:center;gap:8px}.item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--app-text-color);display:flex;width:100%;align-items:center;gap:8px}"]})};function Ro(t,n){if(t&1){let e=z();r(0,"div",4),C("transitionend",function(i){g(e);let a=c();return h(a.onWrapTransitionEnd(i))}),r(1,"div",5),C("animationend",function(i){g(e);let a=c();return h(a.onInnerAnimationEnd(i))}),p(2,"ngm-header"),l()()}if(t&2){let e=c();I("leaving",e.leaving()),s(),I("leaving",e.leaving())}}var ke=class t{ws=f(Me);constructor(){this.ws.connect(),ie(()=>this.syncVisible())}wsState=Qt(this.ws.stateChanges(),{initialValue:"idle"});shouldShow=O(()=>this.wsState()!=="open");visible=M(!1);leaving=M(!1);SHOW_DELAY_MS=200;showTimer;removed=!1;syncVisible(){if(this.shouldShow()){if(this.removed=!1,this.visible()){this.leaving.set(!1);return}this.startShowDelay();return}this.clearShowDelay(),this.visible()&&!this.leaving()&&this.leaving.set(!0)}startShowDelay(){this.showTimer||(this.showTimer=setTimeout(()=>{this.showTimer=void 0,this.shouldShow()&&(this.visible.set(!0),this.leaving.set(!1),this.removed=!1)},this.SHOW_DELAY_MS))}clearShowDelay(){this.showTimer&&(clearTimeout(this.showTimer),this.showTimer=void 0)}onInnerAnimationEnd(n){}onWrapTransitionEnd(n){n.propertyName==="height"&&(this.removed||!this.shouldShow()&&this.leaving()&&(this.removed=!0,this.visible.set(!1),this.leaving.set(!1)))}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=_({type:t,selectors:[["ngm-layout"]],decls:9,vars:1,consts:[[1,"app-layout"],[1,"ws-banner-wrap",3,"leaving"],[1,"app-content"],[1,"inner-content"],[1,"ws-banner-wrap",3,"transitionend"],[1,"ws-banner-inner",3,"animationend"]],template:function(e,o){e&1&&(r(0,"nz-layout",0),v(1,Ro,3,4,"div",1),r(2,"nz-layout",2),p(3,"ngm-sidebar"),r(4,"nz-layout")(5,"nz-content")(6,"div",3),p(7,"router-outlet"),l()()()(),p(8,"ngm-footer"),l()),e&2&&(s(),y(o.visible()?1:-1))},dependencies:[D,$t,R,Pn,bn,Bn,b,A,Fe,Ne,Te],styles:["html.default[_ngcontent-%COMP%] [_ngcontent-%COMP%]:root{--app-gray: #e6f7ff;--app-primary: #1890ff;--app-primary-1: #e6f7ff;--app-primary-2: #bae7ff;--app-primary-3: #91d5ff;--app-primary-4: #69c0ff;--app-primary-5: #40a9ff;--app-primary-6: #1890ff;--app-text-color: rgba(0, 0, 0, .85);--app-text-secondary: rgba(0, 0, 0, .45);--text-color-primary: #1890ff;--app-component-bg: #fff;--app-border-color: #d9d9d9;--header-error-background: #ff4d4f}html.default[_ngcontent-%COMP%] [_ngcontent-%COMP%]:root{--text-color-gray: #888}html.default [_nghost-%COMP%] .inner-content[_ngcontent-%COMP%]{background:#fff}html.dark[_ngcontent-%COMP%] [_ngcontent-%COMP%]:root{--text-color-gray: #bbb}html.dark [_nghost-%COMP%] .inner-content[_ngcontent-%COMP%]{background:#141414}[_nghost-%COMP%]{display:flex;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}[_nghost-%COMP%] .app-layout[_ngcontent-%COMP%]{height:100vh;width:100%}[_nghost-%COMP%] .app-layout[_ngcontent-%COMP%] ngm-header[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .app-content[_ngcontent-%COMP%]{flex-direction:row}[_nghost-%COMP%] nz-content[_ngcontent-%COMP%] .inner-content[_ngcontent-%COMP%]{border-radius:8px;height:100%}[_nghost-%COMP%] nz-footer[_ngcontent-%COMP%]{text-align:center}.ws-banner-wrap[_ngcontent-%COMP%]{height:48px;overflow:hidden;transition:height .35s ease}.ws-banner-wrap.leaving[_ngcontent-%COMP%]{height:0}.ws-banner-inner[_ngcontent-%COMP%]{height:48px;display:flex;align-items:stretch}.ws-banner-inner.leaving[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_fadeOutUpSoft .35s ease forwards}@keyframes _ngcontent-%COMP%_fadeOutUpSoft{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-30%)}}"]})};var Wn=`
|
|
2
|
-
<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
-
<path d="M435.8 536.2H512V353z" fill="#DD0031"/>
|
|
4
|
-
<path d="M400.9 616.8l-52.4 130.8h-97.2L512 163V64L94.9 212.7l63.6 551.5L512 960V616.8z" fill="#DD0031"/>
|
|
5
|
-
<path d="M512 353v183.2h76.2z" fill="#C3002F"/>
|
|
6
|
-
<path d="M512 64v99l259.8 584.6h-97.2l-52.4-130.8H512V960l353.5-195.8 63.6-551.5z" fill="#C3002F"/>
|
|
7
|
-
</svg>
|
|
8
|
-
`,Hn=`
|
|
9
|
-
<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg">
|
|
10
|
-
<path d="M615.6 123.6h165.5L512 589.7 242.9 123.6H63.5L512 900.4l448.5-776.9z" fill="#41B883"/>
|
|
11
|
-
<path d="M781.1 123.6H615.6L512 303 408.4 123.6H242.9L512 589.7z" fill="#34495E"/>
|
|
12
|
-
</svg>
|
|
13
|
-
`,Un=`
|
|
14
|
-
<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg">
|
|
15
|
-
<svg t="1767603739899" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="9231" width="200" height="200">
|
|
16
|
-
<path d="M512 511.8m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z" fill="#61DAFB" p-id="9232"></path>
|
|
17
|
-
<path d="M960.5 511.8c0-62.8-73.8-117.2-188.5-150.1 28.9-115.8 18.7-206.9-35.7-238.3-54.5-31.4-138.5 5.3-224.3 88.2-85.8-82.9-169.8-119.6-224.3-88.2-54.4 31.4-64.6 122.6-35.7 238.3C137.3 394.6 63.5 449 63.5 511.8S137.3 629 252 661.9c-28.9 115.7-18.7 206.9 35.7 238.3 13.4 7.8 28.6 11.6 45.2 11.6 39.7 0 87.8-21.8 140-64.2 13-10.6 26.1-22.6 39.1-35.2 13 12.6 26.1 24.6 39.1 35.2 52.2 42.4 100.2 64.2 140 64.2 16.6 0 31.8-3.8 45.2-11.6 54.4-31.4 64.6-122.5 35.7-238.3 114.7-32.9 188.5-87.3 188.5-150.1zM716.8 157.2c35.3 20.4 42.7 94.3 17.6 194.8-36.7-8.4-76.7-14.7-119.3-18.6-24.7-34.9-50.2-66.4-75.8-94 59.2-57.3 114.2-88.4 152-88.4 9.6-0.1 18.2 2 25.5 6.2zM637 584c-13.8 24-28.4 47-43.3 69-26.1 2-53.3 3.1-81.7 3.1-28.3 0-55.5-1.1-81.6-3.1-15-22-29.5-45.1-43.3-69-14.1-24.5-26.7-48.6-38.1-72.2 11.4-23.6 24-47.7 38.1-72.2 14.1-24.5 28.7-47.4 43.4-69.1 26.1-2 53.3-3.1 81.6-3.1 28.3 0 55.5 1.1 81.6 3.1 14.7 21.6 29.3 44.6 43.4 69 14.1 24.5 26.7 48.6 38.1 72.2-11.5 23.7-24.1 47.8-38.2 72.3z m58.8-26.4c11.2 26.6 20.4 52.1 28 76.5-24.9 5.6-51.7 10.4-80.3 14 9.3-14.5 18.4-29.3 27.3-44.6 8.8-15.4 17.1-30.7 25-45.9zM512 756.5c-17.7-19.2-35.1-40.1-52.2-62.6 17.1 0.8 34.5 1.3 52.2 1.3 17.7 0 35.1-0.5 52.2-1.3-17.1 22.5-34.5 43.4-52.2 62.6zM380.5 648.1c-28.6-3.6-55.3-8.4-80.3-14 7.6-24.4 16.8-49.9 28-76.5 7.9 15.2 16.1 30.5 25 45.9 8.9 15.2 18 30 27.3 44.6zM328.2 466c-11.2-26.6-20.4-52.1-28-76.5 24.9-5.6 51.6-10.4 80.2-14-9.2 14.4-18.4 29.2-27.2 44.6-8.8 15.4-17.1 30.7-25 45.9zM512 267.1c17.3 18.7 34.8 39.8 52.1 62.7-17.1-0.8-34.4-1.3-52.1-1.3-17.7 0-35 0.5-52.1 1.3 17.3-22.9 34.8-44 52.1-62.7z m158.7 153c-8.9-15.3-18-30.1-27.2-44.6 28.6 3.6 55.3 8.4 80.2 14-7.6 24.4-16.8 49.9-28 76.5-7.8-15.2-16.1-30.5-25-45.9zM307.2 157.2c7.2-4.2 15.8-6.2 25.6-6.2 37.8 0 92.7 31.1 151.9 88.4-25.6 27.6-51.1 59.2-75.8 94-42.5 3.9-82.6 10.2-119.3 18.6-25.1-100.6-17.6-174.5 17.6-194.8zM102.5 511.8c0-40.8 60.3-84.2 160-112.6 11.1 36 25.6 73.8 43.5 112.6-17.8 38.8-32.4 76.6-43.5 112.6-99.7-28.4-160-71.9-160-112.6z m345.8 305.5c-59.7 48.5-111.1 66.4-141.1 49.2-35.3-20.4-42.7-94.3-17.6-194.8 36.7 8.4 76.7 14.7 119.3 18.6 24.4 34.5 49.9 66.1 75.8 94.2-12.1 11.7-24.2 22.9-36.4 32.8z m268.5 49.2c-29.9 17.3-81.4-0.6-141.1-49.2-12.1-9.9-24.3-21.1-36.5-32.8 26-28.1 51.4-59.7 75.8-94.2 42.5-3.9 82.6-10.2 119.3-18.7 25.2 100.6 17.7 174.5-17.5 194.9z m44.8-242.1c-11.1-36-25.6-73.8-43.5-112.6 17.8-38.8 32.4-76.6 43.5-112.6 99.7 28.5 160 71.9 160 112.6-0.1 40.7-60.4 84.2-160 112.6z" fill="#61DAFB" p-id="9233"></path></svg>
|
|
18
|
-
</svg>
|
|
19
|
-
`,$n=`
|
|
20
|
-
<svg t="1767598826450" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8231" width="200" height="200">
|
|
21
|
-
<path d="M875.2 262.3L546.7 72.7c-20.7-11.8-48.3-11.8-69 0L148.8 262.3c-21.5 12.2-34.5 34.9-34.5 59.7v379.2c0 24.8 13.4 47.9 34.5 60.1l86.1 49.5c41.8 20.7 56.8 20.7 75.9 20.7 62.1 0 97.4-37.8 97.4-102.7V354.4c0-5.3-4.1-9.3-9.3-9.3h-41.4c-5.3 0-9.3 4.1-9.3 9.3v374.3c0 28.8-30 57.7-78.8 33.3l-90.1-52c-3.2-2-5.3-5.3-5.3-8.9V321.9c0-3.7 2-7.3 5.3-8.9l328.1-190c3.2-1.6 7.3-1.6 10.2 0l328.5 189.6c3.2 1.6 5.3 5.3 5.3 8.9v379.2c0 3.7-2 7.3-4.9 8.9L517.9 899.3c-2.8 1.6-7.3 1.6-10.2 0l-84.4-49.9c-2.4-1.2-5.7-1.6-8.1-0.4-23.1 13.4-27.6 15-49.5 22.7-5.7 1.6-13.4 4.9 2.8 14.2l109.6 65c10.6 6.1 22.3 9.3 34.5 9.3 11.8-0.4 24-3.2 34.1-9.7l328.5-189.6c21.1-12.2 34.5-34.9 34.5-59.7V321.9c0-24.3-13.4-47.5-34.5-59.6z" fill="#689F63" p-id="8232"></path>
|
|
22
|
-
<path d="M614.1 641.1c-86.9 0-106-21.9-112.5-65-0.8-4.9-4.5-8.1-9.3-8.1h-42.6c-5.3 0-9.3 4.1-9.3 9.3 0 55.2 30 121.4 173.8 121.4l-0.4-0.4c103.9 0 163.6-41 163.6-112.5 0-70.6-47.9-89.7-149-103.1-101.9-13.4-112.5-20.3-112.5-44.3 0-19.5 8.9-45.9 84.4-45.9 67.8 0 92.6 14.6 102.7 60.1 1.2 4.1 4.9 7.3 9.3 7.3H755c2.4 0 5.3-0.8 6.9-2.8 1.6-2 2.8-4.5 2.4-7.3-6.9-78.4-58.9-114.9-164-114.9-93.4 0-149.4 39.4-149.4 105.6 0 71.9 55.6 91.8 145.8 100.7 107.6 10.6 116.1 26.4 116.1 47.5 0 36.5-29.3 52.4-98.7 52.4z" fill="#689F63" p-id="8233"></path>
|
|
23
|
-
</svg>
|
|
24
|
-
`,Gn=`
|
|
25
|
-
<svg t="1768726164973" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4725" width="200" height="200">
|
|
26
|
-
<path d="M332.72493 412.535453l171.001167-98.72725a13.830826 13.830826 0 0 1 13.83424 0l171.007994 98.72725a13.841066 13.841066 0 0 1 6.915413 11.9808v197.4545a13.858133 13.858133 0 0 1-6.918826 11.980799l-171.004581 98.72725a13.830826 13.830826 0 0 1-13.83424 0l-171.001167-98.72725a13.841066 13.841066 0 0 1-6.915413-11.980799V424.516253a13.847893 13.847893 0 0 1 6.915413-11.9808" fill="#7986CB" p-id="4726"></path>
|
|
27
|
-
<path d="M955.265709 502.476783L750.950409 147.036155c-7.420586-12.8512-21.128533-22.330026-35.969705-22.330026H306.329624c-14.844586 0-28.555946 9.478826-35.976532 22.330026L66.037792 501.701957c-7.420586 12.854613-7.420586 29.081599 0 41.932798L270.353092 896.170637c7.420586 12.8512 21.131946 19.421866 35.976532 19.421866h408.65108c14.83776 0 28.552532-6.372693 35.969705-19.227306l204.3153-353.109322c7.427413-12.847786 7.427413-27.921066 0-40.768852m-169.181861 170.922661c0 5.2224-3.14368 10.059093-7.676586 12.673706l-260.249592 150.152529a14.80704 14.80704 0 0 1-14.725119 0l-260.450978-150.152529c-4.52608-2.614613-7.693653-7.44448-7.693653-12.673706v-300.30847c0-5.229226 3.119787-10.059093 7.649279-12.677119l260.242765-150.152529a14.779733 14.779733 0 0 1 14.71488 0l260.471458 150.152529c4.529493 2.618027 7.717546 7.447893 7.717546 12.677119z" fill="#3F51B5" p-id="4727"></path>
|
|
28
|
-
</svg>
|
|
29
|
-
`;var Be=class t{constructor(n){this.icons=n}inited=!1;init(){this.inited||(this.inited=!0,this.icons.addIconLiteral("proj:angular",Wn),this.icons.addIconLiteral("proj:vue",Hn),this.icons.addIconLiteral("proj:react",Un),this.icons.addIconLiteral("proj:node",$n),this.icons.addIconLiteral("proj:eslint",Gn))}static \u0275fac=function(e){return new(e||t)(re(Jt))};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})};var Ae=class t{constructor(n){n.init()}static \u0275fac=function(e){return new(e||t)(le(Be))};static \u0275cmp=_({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(e,o){e&1&&p(0,"ngm-layout")},dependencies:[ke],styles:["[_nghost-%COMP%]{display:block;height:100vh}"]})};Rt(Ae,Ln).catch(t=>console.error(t));
|