@knoflows/engine 0.1.0-beta.18 → 0.1.1-alpha.0
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/dist/engine.js +19 -19
- package/dist/migrations/20260921193000_local_repo_remote/migration.sql +3 -0
- package/dist/migrations/20260921193000_local_repo_remote/snapshot.json +1378 -0
- package/package.json +1 -1
- package/static/assets/i18n/en.json +14 -0
- package/static/assets/i18n/es.json +14 -0
- package/static/chunk--EZIkevK.js +1 -0
- package/static/{chunk-D3JZ8ur5.js → chunk-8ezEUcxN.js} +6 -6
- package/static/chunk-B17yZLWe.js +1 -0
- package/static/{chunk-7NTQwN96.js → chunk-B8OjWpOp.js} +1 -1
- package/static/chunk-BHko4hHm.js +1 -0
- package/static/{chunk-DSgUAlqN.js → chunk-BIJScqTM.js} +1 -1
- package/static/{chunk-B_R_vsLt.js → chunk-BKYaECRn.js} +1 -1
- package/static/chunk-BLN4QkSi.js +1 -0
- package/static/{chunk-BrP_q6LZ.js → chunk-BRAytoQl.js} +1 -1
- package/static/{chunk-xeQj_hSF.js → chunk-BaLWULJh.js} +1 -1
- package/static/{chunk-Dx92ksvP.js → chunk-BcDRgzYZ.js} +1 -1
- package/static/{chunk-5xJXPFlv.js → chunk-Bok52e_k.js} +1 -1
- package/static/{chunk-CuwZV6XG.js → chunk-BowAQ7m9.js} +1 -1
- package/static/{chunk-C9PkSfMb.js → chunk-Bz7bE4tT.js} +1 -1
- package/static/{chunk-BCHj6l85.js → chunk-C7P7hUiX.js} +1 -1
- package/static/{chunk-BcQQgpKh.js → chunk-CAxHAuhV.js} +1 -1
- package/static/{chunk-Cvoe3MtC.js → chunk-CGHIKxZG.js} +1 -1
- package/static/{chunk-CZoPJsBm.js → chunk-CJWR0gwk.js} +1 -1
- package/static/{chunk-BRZ5T52h.js → chunk-CZA-kp5w.js} +1 -1
- package/static/{chunk-ZqQUQSE8.js → chunk-CoQPYpxp.js} +1 -1
- package/static/{chunk-DAONFRT8.js → chunk-CtiubhW7.js} +1 -1
- package/static/{chunk-hpn_m1ZC.js → chunk-CwEMAptL.js} +1 -1
- package/static/{chunk-CRGkNzel.js → chunk-D-ueyYEC.js} +3 -3
- package/static/{chunk-DHC_yfIa.js → chunk-D1355dNd.js} +1 -1
- package/static/{chunk-CV-FUe_H.js → chunk-D8qyjd0z.js} +1 -1
- package/static/{chunk-Dg-4XevL.js → chunk-DOAz4S6b.js} +1 -1
- package/static/{chunk-VXZaUyyE.js → chunk-DbQy6dR8.js} +1 -1
- package/static/chunk-DdDI9wRc.js +5 -0
- package/static/{chunk-BIdwV0jx.js → chunk-Det50scT.js} +1 -1
- package/static/{chunk-BIL86kgf.js → chunk-Dm_EWkUz.js} +1 -1
- package/static/chunk-DoJknvak.js +1 -0
- package/static/{chunk-DEF7Ge5B.js → chunk-DrncP2Qx.js} +1 -1
- package/static/{chunk-DvWh-Q5D.js → chunk-EDwdt-Wk.js} +1 -1
- package/static/chunk-IjKs-6Cl.js +1 -0
- package/static/{chunk-DyiDg8XX.js → chunk-LPXHXTnJ.js} +1 -1
- package/static/{chunk-DVJ9L-aC.js → chunk-SiaN7xSQ.js} +1 -1
- package/static/{chunk-Bv1r1Ly-.js → chunk-YU-Bg77r.js} +1 -1
- package/static/{chunk-Ysn4Fbgj.js → chunk-bSS_wejP.js} +1 -1
- package/static/{chunk-CLM-K-Vg.js → chunk-iIEmH_ui.js} +1 -1
- package/static/{chunk-CPNxRF7A.js → chunk-vINo5yVD.js} +1 -1
- package/static/index.html +1 -1
- package/static/{main-SI5AKDMC.js → main-3VZRFHGG.js} +1 -1
- package/static/chunk--WRMKpmO.js +0 -5
- package/static/chunk-BaYdwXIA.js +0 -1
- package/static/chunk-C3Xml1YG.js +0 -1
- package/static/chunk-DDhSFoAE.js +0 -1
- package/static/chunk-DaO-gpzS.js +0 -1
- package/static/chunk-pi-mtheN.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {N as Nt,K as Ke}from'./chunk-
|
|
1
|
+
import {N as Nt,K as Ke}from'./chunk-C7P7hUiX.js';import {G as Gn,u as un}from'./chunk-bSS_wejP.js';import {a as ai$1,z}from'./chunk-Dm_EWkUz.js';import {f}from'./chunk-CJWR0gwk.js';import {L as Lt}from'./chunk-LPXHXTnJ.js';import {x,h,b,I,w,T,_,k,E,v,D,H,A as A$1,C as C$1,P,J}from'./chunk-D8qyjd0z.js';import {W as W$1,I as I$1}from'./chunk-Bok52e_k.js';import {z as zg,B as B_,h as hy,$ as $y,W as W_,R as R_}from'./chunk-8ezEUcxN.js';import'./chunk-CtiubhW7.js';import'./chunk-iIEmH_ui.js';import {C,a as C1,R as J1,$,V as Ve,b as at$1,S as p,q as qo,U as Uw,u as ue,T as id,W as qw,c as bi$1,Z as ZE,d as $8,X as M5,v as v3,Y as pf,a0 as bd,a1 as sp$1,a2 as fp$1,a3 as Ah,a4 as Th,K as Kt,j as _i$1,l as _D,J as Jc$1,o as gI,M as MD,a5 as q0,a6 as U0,s,r as r$1,I as Iw,P as Pw,L as Lh,p as Fw,H as HD,G as FD,m as mh,n as uh,w as lh,D as ch,a7 as KE,a8 as fu,a9 as Z0,aa as oe$1,ab as Oe,ac as Er$1,ad as jr$1,ae as Le$1,af as H$1,ag as Ql$1,ah as zg$1,ai as ly,aj as $D,ak as UD,al as Sh,am as Ih,an as WD,ao as GD,ap as re$1,aq as el$1,ar as sn,as as st,at as Ee$1,au as w5,av as K0,aw as rh,ax as Eh,ay as n6,z as rl$1,O as Fu,Q as ju,az as jw,E as Aw,x as xD,B as AD,aA as mT,aB as yT,aC as zt$1,aD as Nr$1,aE as J0,aF as $r$1,aG as lw,aH as QD,aI as kw,aJ as tl$1,aK as nl$1,aL as Fh,aM as Yl$1,t as t$1,aN as Yu,aO as SD,aP as Mh,aQ as aw,aR as xw,aS as v$1,aT as Vw,aU as vv}from'./main-3VZRFHGG.js';var Ds=t=>({$implicit:t});function Ps(t,n){if(t&1&&uh(0,"nz-icon",3),t&2){let e=HD(3);lh("nzType",e.icon);}}function As(t,n){if(t&1&&(tl$1(0),Iw(1),nl$1()),t&2){let e=n.$implicit,i=HD(4);gI(),rl$1(" ",e(i.nzPercent)," ");}}function Ms(t,n){if(t&1&&rh(0,As,2,1,"ng-container",4),t&2){let e=HD(3);lh("nzStringTemplateOutlet",e.formatter)("nzStringTemplateOutletContext",Aw(2,Ds,e.nzPercent));}}function Os(t,n){if(t&1&&(_i$1(0,"span",2),_D(1,Ps,1,1,"nz-icon",3)(2,Ms,1,4,"ng-container"),Jc$1()),t&2){let e=HD(2);gI(),MD((e.status==="exception"||e.status==="success")&&!e.nzFormat?1:2);}}function Ns(t,n){if(t&1&&_D(0,Os,3,1,"span",2),t&2){let e=HD();MD(e.nzShowInfo?0:-1);}}function Ls(t,n){if(t&1&&uh(0,"div",8),t&2){let e=n.$implicit;aw(e);}}function js(t,n){}function $s(t,n){if(t&1&&(_i$1(0,"div",5),xD(1,Ls,1,2,"div",6,SD),rh(3,js,0,0,"ng-template",7),Jc$1()),t&2){let e=HD(2),i=QD(1);gI(),AD(e.steps),gI(2),lh("ngTemplateOutlet",i);}}function Ws(t,n){if(t&1&&uh(0,"div",13),t&2){let e=HD(3);Mh("width",e.nzSuccessPercent,"%")("border-radius",e.nzStrokeLinecap==="round"?"100px":"0")("height",e.strokeWidth,"px");}}function Fs(t,n){}function Bs(t,n){if(t&1&&(_i$1(0,"div",9)(1,"div",10),uh(2,"div",11),_D(3,Ws,1,6,"div",12),Jc$1()(),rh(4,Fs,0,0,"ng-template",7)),t&2){let e=HD(2),i=QD(1);gI(2),Mh("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"),gI(),MD(e.nzSuccessPercent||e.nzSuccessPercent===0?3:-1),gI(),lh("ngTemplateOutlet",i);}}function Js(t,n){if(t&1&&(_i$1(0,"div"),_D(1,$s,4,1,"div",5)(2,Bs,5,12),Jc$1()),t&2){let e=HD();gI(),MD(e.isSteps?1:2);}}function Vs(t,n){if(t&1&&(Yu(),uh(0,"stop")),t&2){let e=n.$implicit;ch("offset",e.offset)("stop-color",e.color);}}function Gs(t,n){if(t&1&&(Yu(),_i$1(0,"defs")(1,"linearGradient",17),xD(2,Vs,1,2,":svg:stop",null,SD),Jc$1()()),t&2){let e=HD(2);gI(),lh("id","gradient-"+e.gradientId),gI(),AD(e.circleGradient);}}function Us(t,n){if(t&1&&(Yu(),uh(0,"path",18)),t&2){let e=n.$implicit,i=HD(2);aw(e.strokePathStyle),ch("d",i.pathString)("stroke-linecap",i.nzStrokeLinecap)("stroke",e.stroke)("stroke-width",i.nzPercent?i.strokeWidth:0);}}function qs(t,n){}function Hs(t,n){if(t&1&&(_i$1(0,"div",10),Yu(),_i$1(1,"svg",14),_D(2,Gs,4,1,":svg:defs"),uh(3,"path",15),xD(4,Us,1,6,":svg:path",16,SD),Jc$1(),rh(6,qs,0,0,"ng-template",7),Jc$1()),t&2){let e=HD(),i=QD(1);Mh("width",e.nzWidth,"px")("height",e.nzWidth,"px")("font-size",e.nzWidth*.15+6,"px"),Sh("ant-progress-circle-gradient",e.isGradient),gI(2),MD(e.isGradient?2:-1),gI(),aw(e.trailPathStyle),ch("stroke-width",e.strokeWidth)("d",e.pathString),gI(),AD(e.progressCirclePath),gI(2),lh("ngTemplateOutlet",i);}}function Qs(t){return +t.replace("%","")}var sr=t=>{let n=[];return Object.keys(t).forEach(e=>{let i=t[e],o=Qs(e);isNaN(o)||n.push({key:o,value:i});}),n=n.sort((e,i)=>e.key-i.key),n},Ys=t=>sr(t).map(({key:n,value:e})=>({offset:`${n}%`,color:e})),Zs=t=>{let r=t,{from:n="#1890ff",to:e="#1890ff",direction:i="to right"}=r,o=t$1(r,["from","to","direction"]);if(Object.keys(o).length!==0){let a=sr(o).map(({key:l,value:h})=>`${h} ${l}%`).join(", ");return `linear-gradient(${i}, ${a})`}return `linear-gradient(${i}, ${n}, ${e})`},Xs=0,or="progress",Ks=new Map([["success","check"],["exception","close"]]),ea=new Map([["normal","#108ee9"],["exception","#ff5500"],["success","#87d068"]]),ta=t=>`${t}%`,ai=(()=>{let t,n=[],e=[],i,o=[],r=[],a,l=[],h=[],g,v=[],S=[],P,te=[],$=[],se,Re=[],we=[],ye,Ke=[],Je=[];return class si{static{let M=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[Yl$1()],i=[Yl$1()],a=[Yl$1()],g=[Yl$1()],P=[Yl$1()],se=[Yl$1()],ye=[Yl$1()],mT(null,null,t,{kind:"field",name:"nzShowInfo",static:false,private:false,access:{has:b=>"nzShowInfo"in b,get:b=>b.nzShowInfo,set:(b,L)=>{b.nzShowInfo=L;}},metadata:M},n,e),mT(null,null,i,{kind:"field",name:"nzStrokeColor",static:false,private:false,access:{has:b=>"nzStrokeColor"in b,get:b=>b.nzStrokeColor,set:(b,L)=>{b.nzStrokeColor=L;}},metadata:M},o,r),mT(null,null,a,{kind:"field",name:"nzSize",static:false,private:false,access:{has:b=>"nzSize"in b,get:b=>b.nzSize,set:(b,L)=>{b.nzSize=L;}},metadata:M},l,h),mT(null,null,g,{kind:"field",name:"nzStrokeWidth",static:false,private:false,access:{has:b=>"nzStrokeWidth"in b,get:b=>b.nzStrokeWidth,set:(b,L)=>{b.nzStrokeWidth=L;}},metadata:M},v,S),mT(null,null,P,{kind:"field",name:"nzGapDegree",static:false,private:false,access:{has:b=>"nzGapDegree"in b,get:b=>b.nzGapDegree,set:(b,L)=>{b.nzGapDegree=L;}},metadata:M},te,$),mT(null,null,se,{kind:"field",name:"nzGapPosition",static:false,private:false,access:{has:b=>"nzGapPosition"in b,get:b=>b.nzGapPosition,set:(b,L)=>{b.nzGapPosition=L;}},metadata:M},Re,we),mT(null,null,ye,{kind:"field",name:"nzStrokeLinecap",static:false,private:false,access:{has:b=>"nzStrokeLinecap"in b,get:b=>b.nzStrokeLinecap,set:(b,L)=>{b.nzStrokeLinecap=L;}},metadata:M},Ke,Je),M&&Object.defineProperty(this,Symbol.metadata,{enumerable:true,configurable:true,writable:true,value:M});}_nzModuleName=or;cdr=C(Z0);dir=C(Oe).valueSignal;nzShowInfo=yT(this,n,true);nzWidth=(yT(this,e),132);nzStrokeColor=yT(this,o,void 0);nzSize=(yT(this,r),yT(this,l,"default"));nzFormat=yT(this,h);nzSuccessPercent;nzPercent=0;nzStrokeWidth=yT(this,v,void 0);nzGapDegree=(yT(this,S),yT(this,te,void 0));nzStatus=yT(this,$);nzType="line";nzGapPosition=yT(this,Re,"top");nzStrokeLinecap=(yT(this,we),yT(this,Ke,"round"));nzSteps=(yT(this,Je),0);steps=[];lineGradient=null;isGradient=false;isSteps=false;gradientId=Xs++;progressCirclePath=[];circleGradient;trailPathStyle=null;pathString;icon;get formatter(){return this.nzFormat||ta}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(){zt$1(or,()=>{this.updateIcon(),this.setStrokeColor(),this.getCirclePaths();});}ngOnChanges(M){let{nzSteps:b,nzGapPosition:L,nzStrokeLinecap:fe,nzStrokeColor:B,nzGapDegree:de,nzType:De,nzStatus:Pe,nzPercent:ae,nzSuccessPercent:et,nzStrokeWidth:Ae}=M;Pe&&(this.cachedStatus=this.nzStatus||this.cachedStatus),(ae||et)&&(parseInt(this.nzPercent.toString(),10)>=100?(Nr$1(this.nzSuccessPercent)&&this.nzSuccessPercent>=100||this.nzSuccessPercent===void 0)&&(this.inferredStatus="success"):this.inferredStatus=this.cachedStatus),(Pe||ae||et||B)&&this.updateIcon(),B&&this.setStrokeColor(),(L||fe||de||De||ae||B||B)&&this.getCirclePaths(),(ae||b||Ae)&&(this.isSteps=this.nzSteps>0,this.isSteps&&this.getSteps());}updateIcon(){let M=Ks.get(this.status);this.icon=M?M+(this.isCircleStyle?"-o":"-circle-fill"):"";}getSteps(){let M=Math.floor(this.nzSteps*(this.nzPercent/100)),b=this.nzSize==="small"?2:14,L=[];for(let fe=0;fe<this.nzSteps;fe++){let B;fe<=M-1&&(B=this.nzStrokeColor);let de={backgroundColor:`${B}`,width:`${b}px`,height:`${this.strokeWidth}px`};L.push(de);}this.steps=L;}getCirclePaths(){if(!this.isCircleStyle)return;let M=Nr$1(this.nzSuccessPercent)?[this.nzSuccessPercent,this.nzPercent]:[this.nzPercent],b=50-this.strokeWidth/2,L=this.nzGapPosition||(this.nzType==="circle"?"top":"bottom"),fe=Math.PI*2*b,B=this.nzGapDegree||(this.nzType==="circle"?0:75),de=0,De=-b,Pe=0,ae=b*-2;switch(L){case "left":de=-b,De=0,Pe=b*2,ae=0;break;case "right":de=b,De=0,Pe=b*-2,ae=0;break;case "bottom":De=b,ae=b*2;break;}this.pathString=`M 50,50 m ${de},${De}
|
|
2
2
|
a ${b},${b} 0 1 1 ${Pe},${-ae}
|
|
3
|
-
a ${b},${b} 0 1 1 ${-Pe},${ae}`,this.trailPathStyle={strokeDasharray:`${fe-B}px ${fe}px`,strokeDashoffset:`-${B/2}px`,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s"},this.progressCirclePath=M.map((et,Ae)=>{let Dt=M.length===2&&Ae===0;return {stroke:this.isGradient&&!Dt?`url(#gradient-${this.gradientId})`:null,strokePathStyle:{stroke:this.isGradient?null:Dt?ea.get("success"):this.nzStrokeColor,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s",strokeDasharray:`${(et||0)/100*(fe-B)}px ${fe}px`,strokeDashoffset:`-${B/2}px`}}}).reverse();}setStrokeColor(){let M=this.nzStrokeColor,b=this.isGradient=!!M&&typeof M!="string";b&&!this.isCircleStyle?this.lineGradient=Zs(M):b&&this.isCircleStyle?this.circleGradient=Ys(this.nzStrokeColor):(this.lineGradient=null,this.circleGradient=[]);}static \u0275fac=function(b){return new(b||si)};static \u0275cmp=ZE({type:si,selectors:[["nz-progress"]],inputs:{nzShowInfo:"nzShowInfo",nzWidth:"nzWidth",nzStrokeColor:"nzStrokeColor",nzSize:"nzSize",nzFormat:"nzFormat",nzSuccessPercent:[2,"nzSuccessPercent","nzSuccessPercent",$r$1],nzPercent:[2,"nzPercent","nzPercent",J0],nzStrokeWidth:[2,"nzStrokeWidth","nzStrokeWidth",$r$1],nzGapDegree:[2,"nzGapDegree","nzGapDegree",$r$1],nzStatus:"nzStatus",nzType:"nzType",nzGapPosition:"nzGapPosition",nzStrokeLinecap:"nzStrokeLinecap",nzSteps:[2,"nzSteps","nzSteps",J0]},exportAs:["nzProgress"],features:[ly],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(b,L){b&1&&(rh(0,Ns,1,1,"ng-template",null,0,Vw),_i$1(2,"div"),_D(3,Js,3,1,"div"),_D(4,Hs,7,14,"div",1),Jc$1()),b&2&&(gI(2),lw("ant-progress ant-progress-status-"+L.status),Sh("ant-progress-line",L.nzType==="line")("ant-progress-small",L.nzSize==="small")("ant-progress-default",L.nzSize==="default")("ant-progress-show-info",L.nzShowInfo)("ant-progress-circle",L.isCircleStyle)("ant-progress-steps",L.isSteps)("ant-progress-rtl",L.dir()==="rtl"),gI(),MD(L.nzType==="line"?3:-1),gI(),MD(L.isCircleStyle?4:-1));},dependencies:[Ah,Th,st,Ee$1,w5],encapsulation:2})}})(),ar=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=KE({type:t});static \u0275inj=fu({imports:[ai]})}return t})();var ia=["processDotTemplate"],oa=["itemContainer"],ra=(t,n,e)=>({$implicit:t,status:n,index:e});function sa(t,n){t&1&&uh(0,"div",3);}function aa(t,n){if(t&1&&(_i$1(0,"div",11),uh(1,"nz-progress",12),Jc$1()),t&2){let e=HD(2);gI(),lh("nzPercent",e.nzPercentage)("nzWidth",e.nzSize==="small"?32:40)("nzFormat",e.nullProcessFormat)("nzStrokeWidth",4);}}function la(t,n){t&1&&(_i$1(0,"span",5),uh(1,"nz-icon",13),Jc$1());}function ca(t,n){t&1&&(_i$1(0,"span",5),uh(1,"nz-icon",14),Jc$1());}function pa(t,n){if(t&1&&(_i$1(0,"span",5),Iw(1),Jc$1()),t&2){let e=HD(2);gI(),rl$1(" ",e.index+1," ");}}function da(t,n){if(t&1&&(tl$1(0),uh(1,"nz-icon",15),nl$1()),t&2){let e=n.$implicit;gI(),lh("nzType",e);}}function ua(t,n){if(t&1&&(_i$1(0,"span",5),rh(1,da,2,1,"ng-container",8),Jc$1()),t&2){let e=HD(2);gI(),lh("nzStringTemplateOutlet",e.nzIcon);}}function ma(t,n){if(t&1&&(_D(0,aa,2,4,"div",11),_D(1,la,2,0,"span",5),_D(2,ca,2,0,"span",5),_D(3,pa,2,1,"span",5),_D(4,ua,2,1,"span",5)),t&2){let e=HD();MD(e.showProgress?0:-1),gI(),MD(e.nzStatus==="finish"&&!e.nzIcon?1:-1),gI(),MD(e.nzStatus==="error"?2:-1),gI(),MD((e.nzStatus==="process"||e.nzStatus==="wait")&&!e.nzIcon?3:-1),gI(),MD(e.nzIcon?4:-1);}}function fa(t,n){t&1&&uh(0,"span",17);}function ha(t,n){}function _a(t,n){if(t&1&&(_i$1(0,"span",5),rh(1,fa,1,0,"ng-template",null,1,Vw)(3,ha,0,0,"ng-template",16),Jc$1()),t&2){let e=QD(2),i=HD();gI(3),lh("ngTemplateOutlet",i.customProcessTemplate||e)("ngTemplateOutletContext",kw(2,ra,e,i.nzStatus,i.index));}}function ga(t,n){if(t&1&&(tl$1(0),Iw(1),nl$1()),t&2){let e=HD();gI(),Lh(e.nzTitle);}}function xa(t,n){if(t&1&&(tl$1(0),Iw(1),nl$1()),t&2){let e=HD(2);gI(),Lh(e.nzSubtitle);}}function ba(t,n){if(t&1&&(_i$1(0,"div",9),rh(1,xa,2,1,"ng-container",8),Jc$1()),t&2){let e=HD();gI(),lh("nzStringTemplateOutlet",e.nzSubtitle);}}function Ca(t,n){if(t&1&&(tl$1(0),Iw(1),nl$1()),t&2){let e=HD();gI(),Lh(e.nzDescription);}}var Sa=["*"],Rn=(()=>{class t{cdr=C(Z0);destroyRef=C(at$1);processDotTemplate;itemContainer;nzTitle;nzSubtitle;nzDescription;nzDisabled=false;nzPercentage=null;nzSize="default";get nzStatus(){return this._status}set nzStatus(e){this._status=e,this.isCustomStatus=true;}isCustomStatus=false;_status="wait";get nzIcon(){return this._icon}set nzIcon(e){e instanceof Er$1||(this.oldAPIIcon=typeof e=="string"&&e.indexOf("anticon")>-1),this._icon=e;}oldAPIIcon=true;_icon;customProcessTemplate;direction="horizontal";index=0;last=false;outStatus="process";showProcessDot=false;clickable=false;clickOutsideAngular$=new re$1;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(){el$1(this.itemContainer.nativeElement,"click").pipe(sn(()=>this.clickable&&this.currentIndex!==this.index&&!this.nzDisabled),ue(this.destroyRef)).subscribe(()=>{this.clickOutsideAngular$.next(this.index);});}enable(){this.nzDisabled=false,this.cdr.markForCheck();}disable(){this.nzDisabled=true,this.cdr.markForCheck();}markForCheck(){this.cdr.markForCheck();}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=ZE({type:t,selectors:[["nz-step"]],viewQuery:function(i,o){if(i&1&&Eh(ia,5)(oa,7),i&2){let r;WD(r=GD())&&(o.processDotTemplate=r.first),WD(r=GD())&&(o.itemContainer=r.first);}},hostAttrs:[1,"ant-steps-item"],hostVars:16,hostBindings:function(i,o){i&2&&Sh("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",K0],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(i,o){i&1&&(_i$1(0,"div",2,0),_D(2,sa,1,0,"div",3),_i$1(3,"div",4),_D(4,ma,5,5),_D(5,_a,4,6,"span",5),Jc$1(),_i$1(6,"div",6)(7,"div",7),rh(8,ga,2,1,"ng-container",8),_D(9,ba,2,1,"div",9),Jc$1(),_i$1(10,"div",10),rh(11,Ca,2,1,"ng-container",8),Jc$1()()()),i&2&&(lh("tabindex",o.clickable&&!o.nzDisabled?0:null),ch("role",o.clickable&&!o.nzDisabled?"button":null),gI(2),MD(o.last?-1:2),gI(2),MD(o.showProcessDot?-1:4),gI(),MD(o.showProcessDot?5:-1),gI(3),lh("nzStringTemplateOutlet",o.nzTitle),gI(),MD(o.nzSubtitle?9:-1),gI(2),lh("nzStringTemplateOutlet",o.nzDescription));},dependencies:[ar,ai,Ah,Th,st,Ee$1,w5],encapsulation:2})}return t})(),lr=(()=>{class t{static ngAcceptInputType_nzProgressDot;cdr=C(Z0);ngZone=C(oe$1);dir=C(Oe).valueSignal;destroyRef=C(at$1);steps;nzCurrent=0;nzDirection="horizontal";nzLabelPlacement="horizontal";nzType="default";nzSize="default";nzStartIndex=0;nzStatus="process";set nzProgressDot(e){e instanceof Er$1?(this.showProcessDot=true,this.customProcessDotTemplate=e):this.showProcessDot=jr$1(e),this.updateChildrenSteps();}nzIndexChange=new Le$1;indexChangeSubscription=H$1.EMPTY;showProcessDot=false;showProgress=false;customProcessDotTemplate;ngOnChanges(e){let{nzStartIndex:i,nzDirection:o,nzStatus:r,nzCurrent:a,nzSize:l}=e;(i||o||r||a||l)&&this.updateChildrenSteps();}ngOnInit(){this.updateChildrenSteps();}ngAfterContentInit(){this.steps&&this.steps.changes.pipe(Ql$1(null),ue(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((i,o)=>{Promise.resolve().then(()=>{i.nzSize=this.nzSize,i.outStatus=this.nzStatus,i.showProcessDot=this.showProcessDot,this.customProcessDotTemplate&&(i.customProcessTemplate=this.customProcessDotTemplate),i.clickable=this.nzIndexChange.observers.length>0,i.direction=this.nzDirection,i.index=o+this.nzStartIndex,i.currentIndex=this.nzCurrent,i.last=e===o+1,i.markForCheck();});}),this.indexChangeSubscription.unsubscribe(),this.indexChangeSubscription=zg(...this.steps.map(i=>i.clickOutsideAngular$)).pipe(ue(this.destroyRef)).subscribe(i=>{this.nzIndexChange.observers.length&&this.ngZone.run(()=>this.nzIndexChange.emit(i));});}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=ZE({type:t,selectors:[["nz-steps"]],contentQueries:function(i,o,r){if(i&1&&Ih(r,Rn,4),i&2){let a;WD(a=GD())&&(o.steps=a);}},hostAttrs:[1,"ant-steps"],hostVars:18,hostBindings:function(i,o){i&2&&Sh("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:[ly],ngContentSelectors:Sa,decls:1,vars:0,template:function(i,o){i&1&&($D(),UD(0));},encapsulation:2})}return t})(),cr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=KE({type:t});static \u0275inj=fu({imports:[Rn]})}return t})();function pr(t,n){(n==null||n>t.length)&&(n=t.length);for(var e=0,i=Array(n);e<n;e++)i[e]=t[e];return i}function wa(t){if(Array.isArray(t))return t}function ya(t,n){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var i,o,r,a,l=[],h=true,g=false;try{if(r=(e=e.call(t)).next,n!==0)for(;!(h=(i=r.call(e)).done)&&(l.push(i.value),l.length!==n);h=!0);}catch(v){g=true,o=v;}finally{try{if(!h&&e.return!=null&&(a=e.return(),Object(a)!==a))return}finally{if(g)throw o}}return l}}function va(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
|
+
a ${b},${b} 0 1 1 ${-Pe},${ae}`,this.trailPathStyle={strokeDasharray:`${fe-B}px ${fe}px`,strokeDashoffset:`-${B/2}px`,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s"},this.progressCirclePath=M.map((et,Ae)=>{let Dt=M.length===2&&Ae===0;return {stroke:this.isGradient&&!Dt?`url(#gradient-${this.gradientId})`:null,strokePathStyle:{stroke:this.isGradient?null:Dt?ea.get("success"):this.nzStrokeColor,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s",strokeDasharray:`${(et||0)/100*(fe-B)}px ${fe}px`,strokeDashoffset:`-${B/2}px`}}}).reverse();}setStrokeColor(){let M=this.nzStrokeColor,b=this.isGradient=!!M&&typeof M!="string";b&&!this.isCircleStyle?this.lineGradient=Zs(M):b&&this.isCircleStyle?this.circleGradient=Ys(this.nzStrokeColor):(this.lineGradient=null,this.circleGradient=[]);}static \u0275fac=function(b){return new(b||si)};static \u0275cmp=ZE({type:si,selectors:[["nz-progress"]],inputs:{nzShowInfo:"nzShowInfo",nzWidth:"nzWidth",nzStrokeColor:"nzStrokeColor",nzSize:"nzSize",nzFormat:"nzFormat",nzSuccessPercent:[2,"nzSuccessPercent","nzSuccessPercent",$r$1],nzPercent:[2,"nzPercent","nzPercent",J0],nzStrokeWidth:[2,"nzStrokeWidth","nzStrokeWidth",$r$1],nzGapDegree:[2,"nzGapDegree","nzGapDegree",$r$1],nzStatus:"nzStatus",nzType:"nzType",nzGapPosition:"nzGapPosition",nzStrokeLinecap:"nzStrokeLinecap",nzSteps:[2,"nzSteps","nzSteps",J0]},exportAs:["nzProgress"],features:[ly],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(b,L){b&1&&(rh(0,Ns,1,1,"ng-template",null,0,Vw),_i$1(2,"div"),_D(3,Js,3,1,"div"),_D(4,Hs,7,14,"div",1),Jc$1()),b&2&&(gI(2),lw("ant-progress ant-progress-status-"+L.status),Sh("ant-progress-line",L.nzType==="line")("ant-progress-small",L.nzSize==="small")("ant-progress-default",L.nzSize==="default")("ant-progress-show-info",L.nzShowInfo)("ant-progress-circle",L.isCircleStyle)("ant-progress-steps",L.isSteps)("ant-progress-rtl",L.dir()==="rtl"),gI(),MD(L.nzType==="line"?3:-1),gI(),MD(L.isCircleStyle?4:-1));},dependencies:[Ah,Th,st,Ee$1,w5],encapsulation:2})}})(),ar=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=KE({type:t});static \u0275inj=fu({imports:[ai]})}return t})();var ia=["processDotTemplate"],oa=["itemContainer"],ra=(t,n,e)=>({$implicit:t,status:n,index:e});function sa(t,n){t&1&&uh(0,"div",3);}function aa(t,n){if(t&1&&(_i$1(0,"div",11),uh(1,"nz-progress",12),Jc$1()),t&2){let e=HD(2);gI(),lh("nzPercent",e.nzPercentage)("nzWidth",e.nzSize==="small"?32:40)("nzFormat",e.nullProcessFormat)("nzStrokeWidth",4);}}function la(t,n){t&1&&(_i$1(0,"span",5),uh(1,"nz-icon",13),Jc$1());}function ca(t,n){t&1&&(_i$1(0,"span",5),uh(1,"nz-icon",14),Jc$1());}function pa(t,n){if(t&1&&(_i$1(0,"span",5),Iw(1),Jc$1()),t&2){let e=HD(2);gI(),rl$1(" ",e.index+1," ");}}function da(t,n){if(t&1&&(tl$1(0),uh(1,"nz-icon",15),nl$1()),t&2){let e=n.$implicit;gI(),lh("nzType",e);}}function ua(t,n){if(t&1&&(_i$1(0,"span",5),rh(1,da,2,1,"ng-container",8),Jc$1()),t&2){let e=HD(2);gI(),lh("nzStringTemplateOutlet",e.nzIcon);}}function ma(t,n){if(t&1&&(_D(0,aa,2,4,"div",11),_D(1,la,2,0,"span",5),_D(2,ca,2,0,"span",5),_D(3,pa,2,1,"span",5),_D(4,ua,2,1,"span",5)),t&2){let e=HD();MD(e.showProgress?0:-1),gI(),MD(e.nzStatus==="finish"&&!e.nzIcon?1:-1),gI(),MD(e.nzStatus==="error"?2:-1),gI(),MD((e.nzStatus==="process"||e.nzStatus==="wait")&&!e.nzIcon?3:-1),gI(),MD(e.nzIcon?4:-1);}}function fa(t,n){t&1&&uh(0,"span",17);}function ha(t,n){}function _a(t,n){if(t&1&&(_i$1(0,"span",5),rh(1,fa,1,0,"ng-template",null,1,Vw)(3,ha,0,0,"ng-template",16),Jc$1()),t&2){let e=QD(2),i=HD();gI(3),lh("ngTemplateOutlet",i.customProcessTemplate||e)("ngTemplateOutletContext",kw(2,ra,e,i.nzStatus,i.index));}}function ga(t,n){if(t&1&&(tl$1(0),Iw(1),nl$1()),t&2){let e=HD();gI(),Lh(e.nzTitle);}}function xa(t,n){if(t&1&&(tl$1(0),Iw(1),nl$1()),t&2){let e=HD(2);gI(),Lh(e.nzSubtitle);}}function ba(t,n){if(t&1&&(_i$1(0,"div",9),rh(1,xa,2,1,"ng-container",8),Jc$1()),t&2){let e=HD();gI(),lh("nzStringTemplateOutlet",e.nzSubtitle);}}function Ca(t,n){if(t&1&&(tl$1(0),Iw(1),nl$1()),t&2){let e=HD();gI(),Lh(e.nzDescription);}}var Sa=["*"],Rn=(()=>{class t{cdr=C(Z0);destroyRef=C(at$1);processDotTemplate;itemContainer;nzTitle;nzSubtitle;nzDescription;nzDisabled=false;nzPercentage=null;nzSize="default";get nzStatus(){return this._status}set nzStatus(e){this._status=e,this.isCustomStatus=true;}isCustomStatus=false;_status="wait";get nzIcon(){return this._icon}set nzIcon(e){e instanceof Er$1||(this.oldAPIIcon=typeof e=="string"&&e.indexOf("anticon")>-1),this._icon=e;}oldAPIIcon=true;_icon;customProcessTemplate;direction="horizontal";index=0;last=false;outStatus="process";showProcessDot=false;clickable=false;clickOutsideAngular$=new re$1;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(){el$1(this.itemContainer.nativeElement,"click").pipe(sn(()=>this.clickable&&this.currentIndex!==this.index&&!this.nzDisabled),ue(this.destroyRef)).subscribe(()=>{this.clickOutsideAngular$.next(this.index);});}enable(){this.nzDisabled=false,this.cdr.markForCheck();}disable(){this.nzDisabled=true,this.cdr.markForCheck();}markForCheck(){this.cdr.markForCheck();}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=ZE({type:t,selectors:[["nz-step"]],viewQuery:function(i,o){if(i&1&&Eh(ia,5)(oa,7),i&2){let r;WD(r=GD())&&(o.processDotTemplate=r.first),WD(r=GD())&&(o.itemContainer=r.first);}},hostAttrs:[1,"ant-steps-item"],hostVars:16,hostBindings:function(i,o){i&2&&Sh("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",K0],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(i,o){i&1&&(_i$1(0,"div",2,0),_D(2,sa,1,0,"div",3),_i$1(3,"div",4),_D(4,ma,5,5),_D(5,_a,4,6,"span",5),Jc$1(),_i$1(6,"div",6)(7,"div",7),rh(8,ga,2,1,"ng-container",8),_D(9,ba,2,1,"div",9),Jc$1(),_i$1(10,"div",10),rh(11,Ca,2,1,"ng-container",8),Jc$1()()()),i&2&&(lh("tabindex",o.clickable&&!o.nzDisabled?0:null),ch("role",o.clickable&&!o.nzDisabled?"button":null),gI(2),MD(o.last?-1:2),gI(2),MD(o.showProcessDot?-1:4),gI(),MD(o.showProcessDot?5:-1),gI(3),lh("nzStringTemplateOutlet",o.nzTitle),gI(),MD(o.nzSubtitle?9:-1),gI(2),lh("nzStringTemplateOutlet",o.nzDescription));},dependencies:[ar,ai,Ah,Th,st,Ee$1,w5],encapsulation:2})}return t})(),lr=(()=>{class t{static ngAcceptInputType_nzProgressDot;cdr=C(Z0);ngZone=C(oe$1);dir=C(Oe).valueSignal;destroyRef=C(at$1);steps;nzCurrent=0;nzDirection="horizontal";nzLabelPlacement="horizontal";nzType="default";nzSize="default";nzStartIndex=0;nzStatus="process";set nzProgressDot(e){e instanceof Er$1?(this.showProcessDot=true,this.customProcessDotTemplate=e):this.showProcessDot=jr$1(e),this.updateChildrenSteps();}nzIndexChange=new Le$1;indexChangeSubscription=H$1.EMPTY;showProcessDot=false;showProgress=false;customProcessDotTemplate;ngOnChanges(e){let{nzStartIndex:i,nzDirection:o,nzStatus:r,nzCurrent:a,nzSize:l}=e;(i||o||r||a||l)&&this.updateChildrenSteps();}ngOnInit(){this.updateChildrenSteps();}ngAfterContentInit(){this.steps&&this.steps.changes.pipe(Ql$1(null),ue(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((i,o)=>{Promise.resolve().then(()=>{i.nzSize=this.nzSize,i.outStatus=this.nzStatus,i.showProcessDot=this.showProcessDot,this.customProcessDotTemplate&&(i.customProcessTemplate=this.customProcessDotTemplate),i.clickable=this.nzIndexChange.observers.length>0,i.direction=this.nzDirection,i.index=o+this.nzStartIndex,i.currentIndex=this.nzCurrent,i.last=e===o+1,i.markForCheck();});}),this.indexChangeSubscription.unsubscribe(),this.indexChangeSubscription=zg$1(...this.steps.map(i=>i.clickOutsideAngular$)).pipe(ue(this.destroyRef)).subscribe(i=>{this.nzIndexChange.observers.length&&this.ngZone.run(()=>this.nzIndexChange.emit(i));});}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=ZE({type:t,selectors:[["nz-steps"]],contentQueries:function(i,o,r){if(i&1&&Ih(r,Rn,4),i&2){let a;WD(a=GD())&&(o.steps=a);}},hostAttrs:[1,"ant-steps"],hostVars:18,hostBindings:function(i,o){i&2&&Sh("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:[ly],ngContentSelectors:Sa,decls:1,vars:0,template:function(i,o){i&1&&($D(),UD(0));},encapsulation:2})}return t})(),cr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=KE({type:t});static \u0275inj=fu({imports:[Rn]})}return t})();function pr(t,n){(n==null||n>t.length)&&(n=t.length);for(var e=0,i=Array(n);e<n;e++)i[e]=t[e];return i}function wa(t){if(Array.isArray(t))return t}function ya(t,n){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var i,o,r,a,l=[],h=true,g=false;try{if(r=(e=e.call(t)).next,n!==0)for(;!(h=(i=r.call(e)).done)&&(l.push(i.value),l.length!==n);h=!0);}catch(v){g=true,o=v;}finally{try{if(!h&&e.return!=null&&(a=e.return(),Object(a)!==a))return}finally{if(g)throw o}}return l}}function va(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
4
4
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ta(t,n){return wa(t)||ya(t,n)||za(t,n)||va()}function za(t,n){if(t){if(typeof t=="string")return pr(t,n);var e={}.toString.call(t).slice(8,-1);return e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set"?Array.from(t):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?pr(t,n):void 0}}var vr=Object.entries,dr=Object.setPrototypeOf,Ea=Object.isFrozen,Ia=Object.getPrototypeOf,Ra=Object.getOwnPropertyDescriptor,oe=Object.freeze,re=Object.seal,zt=Object.create,Tr=typeof Reflect<"u"&&Reflect,fi=Tr.apply,hi=Tr.construct;oe||(oe=function(n){return n});re||(re=function(n){return n});fi||(fi=function(n,e){for(var i=arguments.length,o=new Array(i>2?i-2:0),r=2;r<i;r++)o[r-2]=arguments[r];return n.apply(e,o)});hi||(hi=function(n){for(var e=arguments.length,i=new Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];return new n(...i)});var lt=ne(Array.prototype.forEach),Da=ne(Array.prototype.lastIndexOf),ur=ne(Array.prototype.pop),Wt=ne(Array.prototype.push),Pa=ne(Array.prototype.splice),Et=Array.isArray,Jt=ne(String.prototype.toLowerCase),li=ne(String.prototype.toString),mr=ne(String.prototype.match),Ft=ne(String.prototype.replace),fr=ne(String.prototype.indexOf),Aa=ne(String.prototype.trim),Ma=ne(Number.prototype.toString),Oa=ne(Boolean.prototype.toString),hr=typeof BigInt>"u"?null:ne(BigInt.prototype.toString),_r=typeof Symbol>"u"?null:ne(Symbol.prototype.toString),be=ne(Object.prototype.hasOwnProperty),Bt=ne(Object.prototype.toString),ce=ne(RegExp.prototype.test),at=Na(TypeError);function ne(t){return function(n){n instanceof RegExp&&(n.lastIndex=0);for(var e=arguments.length,i=new Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];return fi(t,n,i)}}function Na(t){return function(){for(var n=arguments.length,e=new Array(n),i=0;i<n;i++)e[i]=arguments[i];return hi(t,e)}}function W(t,n){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Jt;if(dr&&dr(t,null),!Et(n))return t;let i=n.length;for(;i--;){let o=n[i];if(typeof o=="string"){let r=e(o);r!==o&&(Ea(n)||(n[i]=r),o=r);}t[o]=true;}return t}function La(t){for(let n=0;n<t.length;n++)be(t,n)||(t[n]=null);return t}function Se(t){let n=zt(null);for(let i of vr(t)){var e=Ta(i,2);let o=e[0],r=e[1];be(t,o)&&(Et(r)?n[o]=La(r):r&&typeof r=="object"&&r.constructor===Object?n[o]=Se(r):n[o]=r);}return n}function ja(t){switch(typeof t){case "string":return t;case "number":return Ma(t);case "boolean":return Oa(t);case "bigint":return hr?hr(t):"0";case "symbol":return _r?_r(t):"Symbol()";case "undefined":return Bt(t);case "function":case "object":{if(t===null)return Bt(t);let n=t,e=ve(n,"toString");if(typeof e=="function"){let i=e(n);return typeof i=="string"?i:Bt(i)}return Bt(t)}default:return Bt(t)}}function ve(t,n){for(;t!==null;){let i=Ra(t,n);if(i){if(i.get)return ne(i.get);if(typeof i.value=="function")return ne(i.value)}t=Ia(t);}function e(){return null}return e}function $a(t){try{return ce(t,""),!0}catch(n){return false}}var gr=oe(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ci=oe(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),pi=oe(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Wa=oe(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),di=oe(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Fa=oe(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),xr=oe(["#text"]),br=oe(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),ui=oe(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Cr=oe(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Dn=oe(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ba=re(/{{[\w\W]*|^[\w\W]*}}/g),Ja=re(/<%[\w\W]*|^[\w\W]*%>/g),Va=re(/\${[\w\W]*/g),Ga=re(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ua=re(/^aria-[\-\w]+$/),Sr=re(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),qa=re(/^(?:\w+script|data):/i),Ha=re(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Qa=re(/^html$/i),Ya=re(/^[a-z][.\w]*(-[.\w]+)+$/i),kr=re(/<[/\w!]/g),wr=re(/<[/\w]/g),Za=re(/<\/no(script|embed|frames)/i),Xa=re(/\/>/i),Ce={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},zr=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],Ka=oe(W({},zr)),el=(function(){let t={};return lt(zr,n=>{t[n]=re(new RegExp("</"+n+"(?=[\\t\\n\\f\\r />])","i"));}),oe(t)})(),tl=function(){return typeof window>"u"?null:window},nl=function(n,e){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let i=null,o="data-tt-policy-suffix";e&&e.hasAttribute(o)&&(i=e.getAttribute(o));let r="dompurify"+(i?"#"+i:"");try{return n.createPolicy(r,{createHTML(a){return a},createScriptURL(a){return a}})}catch(a){return console.warn("TrustedTypes policy "+r+" could not be created."),null}},yr=function(){return {afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Ze=function(n,e,i,o){return be(n,e)&&Et(n[e])?W(o.base?Se(o.base):{},n[e],o.transform):i},mi=function(n,e,i){let o=be(n,e)?n[e]:void 0;return o&&typeof o=="object"?Se(o):i()};function Er(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:tl(),n=x=>Er(x);if(n.version="3.4.15",n.removed=[],!t||!t.document||t.document.nodeType!==Ce.document||!t.Element)return n.isSupported=false,n;let e=t.document,i=e,o=i.currentScript;t.DocumentFragment;let r=t.HTMLTemplateElement,a=t.Node,l=t.Element,h=t.NodeFilter,g=t.NamedNodeMap;g===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;let v=t.DOMParser,S=t.trustedTypes,P=l.prototype,te=ve(P,"cloneNode"),$=ve(P,"remove"),se=ve(P,"removeAttributeNode"),Re=ve(P,"nextSibling"),we=ve(P,"childNodes"),ye=ve(P,"parentNode"),Ke=ve(P,"shadowRoot"),Je=ve(P,"attributes"),Te=a&&a.prototype?ve(a.prototype,"nodeType"):null,M=a&&a.prototype?ve(a.prototype,"nodeName"):null,b=a&&a.prototype?ve(a.prototype,"ownerDocument"):null,L=function(s){return Te?Te(s):s.nodeType},fe=function(s){return M?M(s):s.nodeName};if(typeof r=="function"){let x=e.createElement("template");x.content&&x.content.ownerDocument&&(e=x.content.ownerDocument);}let B,de="",De,Pe=false,ae=0,et=function(){if(ae>0)throw at('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},Ae=function(s){et(),ae++;try{return B.createHTML(s)}finally{ae--;}},Dt=function(s){et(),ae++;try{return B.createScriptURL(s)}finally{ae--;}},is=function(){return Pe||(De=nl(S,o),Pe=true),De},Qt=e,Ln=Qt.implementation,Ei=Qt.createNodeIterator,os=Qt.createDocumentFragment,rs=Qt.getElementsByTagName,ss=i.importNode,U=yr();n.isSupported=typeof vr=="function"&&typeof ye=="function"&&Ln&&Ln.createHTMLDocument!==void 0;let as=Ba,ls=Ja,cs=Va,ps=Ga,ds=Ua,us=qa,Ii=Ha,ms=Ya,Ri=Sr,q=null,jn=W({},[...gr,...ci,...pi,...di,...xr]),H=null,$n=W({},[...br,...ui,...Cr,...Dn]),Me=Object.seal(zt(null,{tagNameCheck:{writable:true,configurable:false,enumerable:true,value:null},attributeNameCheck:{writable:true,configurable:false,enumerable:true,value:null},allowCustomizedBuiltInElements:{writable:true,configurable:false,enumerable:true,value:false}})),Pt=null,Di=null,Ve=Object.seal(zt(null,{tagCheck:{writable:true,configurable:false,enumerable:true,value:null},attributeCheck:{writable:true,configurable:false,enumerable:true,value:null}})),Pi=true,Wn=true,Ai=false,Mi=true,Ge=false,tt=true,nt=false,Fn=false,Yt=null,Zt=null,Bn=false,ut=false,Xt=false,Kt=false,Oi=true,Ni=false,Li="user-content-",Jn=true,Vn=false,mt={},ft=null,ji=W({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),$i=null,Wi=W({},["audio","video","img","source","image","track"]),Fi=null,Bi=W({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),en="http://www.w3.org/1998/Math/MathML",tn="http://www.w3.org/2000/svg",Oe="http://www.w3.org/1999/xhtml",ht=Oe,Gn=false,Un=null,fs=W({},[en,tn,Oe],li),Ji=oe(["mi","mo","mn","ms","mtext"]),qn=W({},Ji),Vi=oe(["annotation-xml"]),Hn=W({},Vi),hs=W({},["title","style","font","a","script"]),At=null,_s=["application/xhtml+xml","text/html"],gs="text/html",ee=null,_t=null,xs=e.createElement("form"),Gi=function(s){return s instanceof RegExp||s instanceof Function},Qn=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(_t&&_t===s)return;(!s||typeof s!="object")&&(s={}),s=Se(s),At=_s.indexOf(s.PARSER_MEDIA_TYPE)===-1?gs:s.PARSER_MEDIA_TYPE,ee=At==="application/xhtml+xml"?li:Jt,q=Ze(s,"ALLOWED_TAGS",jn,{transform:ee}),H=Ze(s,"ALLOWED_ATTR",$n,{transform:ee}),Un=Ze(s,"ALLOWED_NAMESPACES",fs,{transform:li}),Fi=Ze(s,"ADD_URI_SAFE_ATTR",Bi,{transform:ee,base:Bi}),$i=Ze(s,"ADD_DATA_URI_TAGS",Wi,{transform:ee,base:Wi}),ft=Ze(s,"FORBID_CONTENTS",ji,{transform:ee}),Pt=Ze(s,"FORBID_TAGS",Se({}),{transform:ee}),Di=Ze(s,"FORBID_ATTR",Se({}),{transform:ee}),mt=be(s,"USE_PROFILES")?s.USE_PROFILES&&typeof s.USE_PROFILES=="object"?Se(s.USE_PROFILES):s.USE_PROFILES:false,Pi=s.ALLOW_ARIA_ATTR!==false,Wn=s.ALLOW_DATA_ATTR!==false,Ai=s.ALLOW_UNKNOWN_PROTOCOLS||false,Mi=s.ALLOW_SELF_CLOSE_IN_ATTR!==false,Ge=s.SAFE_FOR_TEMPLATES||false,tt=s.SAFE_FOR_XML!==false,nt=s.WHOLE_DOCUMENT||false,ut=s.RETURN_DOM||false,Xt=s.RETURN_DOM_FRAGMENT||false,Kt=s.RETURN_TRUSTED_TYPE||false,Bn=s.FORCE_BODY||false,Oi=s.SANITIZE_DOM!==false,Ni=s.SANITIZE_NAMED_PROPS||false,Jn=s.KEEP_CONTENT!==false,Vn=s.IN_PLACE||false,Ri=$a(s.ALLOWED_URI_REGEXP)?s.ALLOWED_URI_REGEXP:Sr,ht=typeof s.NAMESPACE=="string"?s.NAMESPACE:Oe,qn=mi(s,"MATHML_TEXT_INTEGRATION_POINTS",()=>W({},Ji)),Hn=mi(s,"HTML_INTEGRATION_POINTS",()=>W({},Vi));let p=mi(s,"CUSTOM_ELEMENT_HANDLING",()=>zt(null));if(Me=zt(null),be(p,"tagNameCheck")&&Gi(p.tagNameCheck)&&(Me.tagNameCheck=p.tagNameCheck),be(p,"attributeNameCheck")&&Gi(p.attributeNameCheck)&&(Me.attributeNameCheck=p.attributeNameCheck),be(p,"allowCustomizedBuiltInElements")&&typeof p.allowCustomizedBuiltInElements=="boolean"&&(Me.allowCustomizedBuiltInElements=p.allowCustomizedBuiltInElements),re(Me),Ge&&(Wn=false),Xt&&(ut=true),mt&&(q=W({},xr),H=zt(null),mt.html===true&&(W(q,gr),W(H,br)),mt.svg===true&&(W(q,ci),W(H,ui),W(H,Dn)),mt.svgFilters===true&&(W(q,pi),W(H,ui),W(H,Dn)),mt.mathMl===true&&(W(q,di),W(H,Cr),W(H,Dn))),Ve.tagCheck=null,Ve.attributeCheck=null,be(s,"ADD_TAGS")&&(typeof s.ADD_TAGS=="function"?Ve.tagCheck=s.ADD_TAGS:Et(s.ADD_TAGS)&&(q===jn&&(q=Se(q)),W(q,s.ADD_TAGS,ee))),be(s,"ADD_ATTR")&&(typeof s.ADD_ATTR=="function"?Ve.attributeCheck=s.ADD_ATTR:Et(s.ADD_ATTR)&&(H===$n&&(H=Se(H)),W(H,s.ADD_ATTR,ee))),be(s,"ADD_FORBID_CONTENTS")&&Et(s.ADD_FORBID_CONTENTS)&&(ft===ji&&(ft=Se(ft)),W(ft,s.ADD_FORBID_CONTENTS,ee)),Jn&&(q["#text"]=true),nt&&W(q,["html","head","body"]),q.table&&(W(q,["tbody"]),delete Pt.tbody),s.TRUSTED_TYPES_POLICY){if(typeof s.TRUSTED_TYPES_POLICY.createHTML!="function")throw at('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof s.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw at('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let f=B;B=s.TRUSTED_TYPES_POLICY;try{de=Ae("");}catch(C){throw B=f,C}}else s.TRUSTED_TYPES_POLICY===null?(B=void 0,de=""):(B===void 0&&(B=is()),B&&typeof de=="string"&&(de=Ae("")));oe&&oe(s),_t=s;},Ui=W({},[...ci,...pi,...Wa]),qi=W({},[...di,...Fa]),bs=function(s,p,f){return p.namespaceURI===Oe?s==="svg":p.namespaceURI===en?s==="svg"&&(f==="annotation-xml"||qn[f]):!!Ui[s]},Cs=function(s,p,f){return p.namespaceURI===Oe?s==="math":p.namespaceURI===tn?s==="math"&&Hn[f]:!!qi[s]},Ss=function(s,p,f){return p.namespaceURI===tn&&!Hn[f]||p.namespaceURI===en&&!qn[f]?false:!qi[s]&&(hs[s]||!Ui[s])},ks=function(s){let p=ye(s);(!p||!p.tagName)&&(p={namespaceURI:ht,tagName:"template"});let f=Jt(s.tagName),C=Jt(p.tagName);return Un[s.namespaceURI]?s.namespaceURI===tn?bs(f,p,C):s.namespaceURI===en?Cs(f,p,C):s.namespaceURI===Oe?Ss(f,p,C):!!(At==="application/xhtml+xml"&&Un[s.namespaceURI]):false},Ue=function(s){Wt(n.removed,{element:s});try{ye(s).removeChild(s);}catch(p){if($(s),!ye(s))throw at("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Hi=function(s,p,f){try{se(s,p);}catch(C){try{s.removeAttribute(f);}catch(w){}}},nn=function(s){on(s);let p=we(s);if(p){let C=[];lt(p,w=>{Wt(C,w);}),lt(C,w=>{try{$(w);}catch(R){}});}let f=Je(s);if(f)for(let C=f.length-1;C>=0;--C){let w=f[C],R=w&&w.name;typeof R=="string"&&Hi(s,w,R);}},it=function(s,p,f){if(!f)try{f=p.getAttributeNode(s);}catch(C){f=null;}Wt(n.removed,{attribute:f||null,from:p});try{f?se(p,f):p.removeAttribute(s);}catch(C){try{p.removeAttribute(s);}catch(w){}}if(s==="is")if(ut||Xt)try{Ue(p);}catch(C){}else try{p.setAttribute(s,"");}catch(C){}},ws=function(s){let p=Je(s);if(p)for(let f=p.length-1;f>=0;--f){let C=p[f],w=C&&C.name;typeof w!="string"||H[ee(w)]||Hi(s,C,w);}},on=function(s){let p=[s];for(;p.length>0;){let f=p.pop();L(f)===Ce.element&&ws(f);let w=we(f);if(w)for(let R=w.length-1;R>=0;--R)p.push(w[R]);}},Qi=function(s,p){return tt?s==="patchsrc"?true:s==="for"&&p!=="label"&&p!=="output":false},ys=function(s){if(!tt)return;let p=[s];for(;p.length>0;){let f=p.pop(),C=L(f);if(C===Ce.processingInstruction||C===Ce.comment&&ce(wr,f.data)){try{$(f);}catch(R){}continue}if(C===Ce.element){let R=f,J=ee(fe(f));try{R.hasAttribute&&R.hasAttribute("patchsrc")&&R.removeAttribute("patchsrc"),R.hasAttribute&&R.hasAttribute("for")&&Qi("for",J)&&R.removeAttribute("for");}catch(X){}}let w=we(f);if(w)for(let R=w.length-1;R>=0;--R)p.push(w[R]);}},Yi=function(s){let p=null,f=null;if(Bn)s="<remove></remove>"+s;else {let R=mr(s,/^[\r\n\t ]+/);f=R&&R[0];}At==="application/xhtml+xml"&&ht===Oe&&(s='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+s+"</body></html>");let C=B?Ae(s):s;if(ht===Oe)try{p=new v().parseFromString(C,At);}catch(R){}if(!p||!p.documentElement){p=Ln.createDocument(ht,"template",null);try{p.documentElement.innerHTML=Gn?de:C;}catch(R){}}let w=p.body||p.documentElement;return s&&f&&w.insertBefore(e.createTextNode(f),w.childNodes[0]||null),ht===Oe?rs.call(p,nt?"html":"body")[0]:nt?p.documentElement:w},Zi=function(s){let p=b?b(s):s.ownerDocument;return Ei.call(p||s,s,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},rn=function(s){return s=Ft(s,as," "),s=Ft(s,ls," "),s=Ft(s,cs," "),s},Yn=function(s){var p;s.normalize();let f=b?b(s):s.ownerDocument,C=Ei.call(f||s,s,h.SHOW_TEXT|h.SHOW_COMMENT|h.SHOW_CDATA_SECTION|h.SHOW_PROCESSING_INSTRUCTION,null),w=C.nextNode();for(;w;)w.data=rn(w.data),w=C.nextNode();let R=(p=s.querySelectorAll)===null||p===void 0?void 0:p.call(s,"template");R&<(R,J=>{gt(J.content)&&Yn(J.content);});},sn=function(s){let p=M?M(s):null;return typeof p!="string"||ee(p)!=="form"?false:typeof s.nodeName!="string"||typeof s.textContent!="string"||typeof s.removeChild!="function"||s.attributes!==Je(s)||typeof s.removeAttribute!="function"||typeof s.removeAttributeNode!="function"||typeof s.getAttributeNode!="function"||typeof s.setAttribute!="function"||typeof s.namespaceURI!="string"||typeof s.insertBefore!="function"||typeof s.hasChildNodes!="function"||s.nodeType!==Te(s)||s.childNodes!==we(s)},gt=function(s){if(!Te||typeof s!="object"||s===null)return false;try{return Te(s)===Ce.documentFragment}catch(p){return false}},Mt=function(s){if(!Te||typeof s!="object"||s===null)return false;try{return typeof Te(s)=="number"}catch(p){return false}};function Ne(x,s,p){x.length!==0&<(x,f=>{f.call(n,s,p,_t);});}let vs=function(s,p){return !!(tt&&s.hasChildNodes()&&!Mt(s.firstElementChild)&&ce(kr,s.textContent)&&ce(kr,s.innerHTML)||tt&&s.namespaceURI===Oe&&Ka[p]&&(Mt(s.firstElementChild)||typeof s.textContent=="string"&&ce(el[p],s.textContent))||s.nodeType===Ce.processingInstruction||tt&&s.nodeType===Ce.comment&&ce(wr,s.data))},an=function(s,p){if(s instanceof RegExp)return ce(s,p);if(s instanceof Function){for(var f=arguments.length,C=new Array(f>2?f-2:0),w=2;w<f;w++)C[w-2]=arguments[w];return !!s(p,...C)}return false},Ts=function(s,p,f){if(!Pt[p]&&no(p)&&an(Me.tagNameCheck,p))return false;if(Jn&&!ft[p]){let C=ye(s),w=we(s);if(w&&C){let R=w.length;for(let J=R-1;J>=0;--J){let X=s===f?te(w[J],true):w[J];C.insertBefore(X,Re(s));}}}return Ue(s),true},Xi=function(s,p,f,C){return s.length===0?p:p===f||p===C?Se(p):p},Ki=function(s,p){return s===p||ye(s)!==null?false:(Vn&&on(s),true)},eo=function(s,p){if(Ne(U.beforeSanitizeElements,s,null),Ki(s,p))return true;if(sn(s))return Ue(s),true;let f=ee(fe(s));if(q=Xi(U.uponSanitizeElement,q,jn,Yt),Ne(U.uponSanitizeElement,s,{tagName:f,allowedTags:q}),Ki(s,p))return true;if(vs(s,f))return Ue(s),true;if(Pt[f]||!(Ve.tagCheck instanceof Function&&Ve.tagCheck(f))&&!q[f]){let w=Ts(s,f,p);return w===false&&Ne(U.afterSanitizeElements,s,null),w}if(L(s)===Ce.element&&!ks(s)||(f==="noscript"||f==="noembed"||f==="noframes")&&ce(Za,s.innerHTML))return Ue(s),true;if(Ge&&s.nodeType===Ce.text){let w=rn(s.textContent);s.textContent!==w&&(Wt(n.removed,{element:s.cloneNode()}),s.textContent=w);}return Ne(U.afterSanitizeElements,s,null),false},to=function(s,p,f){if(Di[p]||Qi(p,s)||Oi&&(p==="id"||p==="name")&&(f in e||f in xs))return false;let C=H[p]||Ve.attributeCheck instanceof Function&&Ve.attributeCheck(p,s);return Wn&&ce(ps,p)||Pi&&ce(ds,p)?true:C?Fi[p]||ce(Ri,Ft(f,Ii,""))||(p==="src"||p==="xlink:href"||p==="href")&&s!=="script"&&fr(f,"data:")===0&&$i[s]||Ai&&!ce(us,Ft(f,Ii,""))?true:!f:no(s)&&an(Me.tagNameCheck,s)&&an(Me.attributeNameCheck,p,s)||p==="is"&&Me.allowCustomizedBuiltInElements&&an(Me.tagNameCheck,f)},zs=W({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),no=function(s){return !zs[Jt(s)]&&ce(ms,s)},Es=function(s,p,f,C){if(B&&typeof S=="object"&&typeof S.getAttributeType=="function"&&!f)switch(S.getAttributeType(s,p)){case "TrustedHTML":return Ae(C);case "TrustedScriptURL":return Dt(C)}return C},Is=function(s,p,f,C){try{return f?s.setAttributeNS(f,p,C):s.setAttribute(p,C),sn(s)?(Ue(s),!1):!0}catch(w){return it(p,s),false}},io=function(s){Ne(U.beforeSanitizeAttributes,s,null);let p=s.attributes;if(!p||sn(s))return;H=Xi(U.uponSanitizeAttribute,H,$n,Zt);let f={attrName:"",attrValue:"",keepAttr:true,allowedAttributes:H,forceKeepAttr:void 0},C=p.length,w=ee(s.nodeName);for(;C--;){let R=p[C],J=R.name,X=R.namespaceURI,he=R.value,_e=ee(J),Xn=he,ue=J==="value"?Xn:Aa(Xn),oo=false;if(f.attrName=_e,f.attrValue=ue,f.keepAttr=true,f.forceKeepAttr=void 0,Ne(U.uponSanitizeAttribute,s,f),ue=f.attrValue,Ni&&(_e==="id"||_e==="name")&&fr(ue,Li)!==0&&(it(J,s,R),ue=Li+ue,oo=true),tt&&ce(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,ue)){it(J,s,R);continue}if(_e==="attributename"&&mr(ue,"href")){it(J,s,R);continue}if(!f.forceKeepAttr){if(!f.keepAttr){it(J,s,R);continue}if(!Mi&&ce(Xa,ue)){it(J,s,R);continue}if(Ge&&(ue=rn(ue)),!to(w,_e,ue)){it(J,s,R);continue}ue=Es(w,_e,X,ue),ue!==Xn&&Is(s,J,X,ue)&&oo&&ur(n.removed);}}Ne(U.afterSanitizeAttributes,s,null);},ln=function(s){let p=null,f=Zi(s);for(Ne(U.beforeSanitizeShadowDOM,s,null);p=f.nextNode();)if(Ne(U.uponSanitizeShadowNode,p,null),eo(p,s),io(p),gt(p.content)&&ln(p.content),L(p)===Ce.element){let C=Ke(p);gt(C)&&(Zn(C),ln(C));}Ne(U.afterSanitizeShadowDOM,s,null);},Zn=function(s){let p=[{node:s,shadow:null}];for(;p.length>0;){let f=p.pop();if(f.shadow){ln(f.shadow);continue}let C=f.node,R=L(C)===Ce.element,J=we(C);if(J)for(let X=J.length-1;X>=0;--X)p.push({node:J[X],shadow:null});if(R){let X=M?M(C):null;if(typeof X=="string"&&ee(X)==="template"){let he=C.content;gt(he)&&p.push({node:he,shadow:null});}}if(R){let X=Ke(C);gt(X)&&p.push({node:null,shadow:X},{node:X,shadow:null});}}};return n.sanitize=function(x){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=null,f=null,C=null,w=null;if(Gn=!x,Gn&&(x="<!-->"),typeof x!="string"&&!Mt(x)&&(x=ja(x),typeof x!="string"))throw at("dirty is not a string, aborting");if(!n.isSupported)return x;Fn?(q=Yt,H=Zt):Qn(s),(U.uponSanitizeElement.length>0||U.uponSanitizeAttribute.length>0)&&(q=Se(q)),U.uponSanitizeAttribute.length>0&&(H=Se(H)),n.removed=[];let R=Vn&&typeof x!="string"&&Mt(x);if(R){ys(x);let he=fe(x);if(typeof he=="string"){let _e=ee(he);if(!q[_e]||Pt[_e])throw nn(x),at("root node is forbidden and cannot be sanitized in-place")}if(sn(x))throw nn(x),at("root node is clobbered and cannot be sanitized in-place");try{Zn(x);}catch(_e){throw nn(x),_e}}else if(Mt(x))p=Yi("<!---->"),f=p.ownerDocument.importNode(x,true),f.nodeType===Ce.element&&f.nodeName==="BODY"||f.nodeName==="HTML"?p=f:p.appendChild(f),Zn(p);else {if(!ut&&!Ge&&!nt&&x.indexOf("<")===-1)return B&&Kt?Ae(x):x;if(p=Yi(x),!p)return ut?null:Kt?de:""}p&&Bn&&Ue(p.firstChild);let J=R?x:p;try{let he=Zi(J);for(;C=he.nextNode();)eo(C,J),io(C),gt(C.content)&&ln(C.content);}catch(he){throw R&&(nn(x),lt(n.removed,_e=>{_e.element&&on(_e.element);})),he}if(R)return lt(n.removed,he=>{he.element&&on(he.element);}),Ge&&Yn(x),x;if(ut){if(Ge&&Yn(p),Xt)for(w=os.call(p.ownerDocument);p.firstChild;)w.appendChild(p.firstChild);else w=p;return (H.shadowroot||H.shadowrootmode)&&(w=ss.call(i,w,true)),w}let X=nt?p.outerHTML:p.innerHTML;return nt&&q["!doctype"]&&p.ownerDocument&&p.ownerDocument.doctype&&p.ownerDocument.doctype.name&&ce(Qa,p.ownerDocument.doctype.name)&&(X="<!DOCTYPE "+p.ownerDocument.doctype.name+`>
|
|
5
5
|
`+X),Ge&&(X=rn(X)),B&&Kt?Ae(X):X},n.setConfig=function(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Qn(x),Fn=true,Yt=q,Zt=H;},n.clearConfig=function(){_t=null,Fn=false,Yt=null,Zt=null,B=De,de="";},n.isValidAttribute=function(x,s,p){_t||Qn({});let f=ee(x),C=ee(s);return to(f,C,p)},n.addHook=function(x,s){typeof s=="function"&&be(U,x)&&Wt(U[x],s);},n.removeHook=function(x,s){if(be(U,x)){if(s!==void 0){let p=Da(U[x],s);return p===-1?void 0:Pa(U[x],p,1)[0]}return ur(U[x])}},n.removeHooks=function(x){be(U,x)&&(U[x]=[]);},n.removeAllHooks=function(){U=yr();},n}var Ir=Er();function bi(){return {async:false,breaks:false,extensions:null,gfm:true,hooks:null,pedantic:false,renderer:null,silent:false,tokenizer:null,walkTokens:null}}var dt=bi();function $r(t){dt=t;}var ct={exec:()=>null};function It(t){let n=[];return e=>{let i=Math.max(0,Math.min(3,e-1)),o=n[i];return o||(o=t(i),n[i]=o),o}}function A(t,n=""){let e=typeof t=="string"?t:t.source,i={replace:(o,r)=>{let a=typeof r=="string"?r:r.source;return a=a.replace(pe.caret,"$1"),e=e.replace(o,a),i},getRegex:()=>new RegExp(e,n)};return i}var il=((t="")=>{try{return !!new RegExp("(?<=1)(?<!1)"+t)}catch(n){return false}})(),pe={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:It(t=>new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:It(t=>new RegExp(`^ {0,${t}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:It(t=>new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)),headingBeginRegex:It(t=>new RegExp(`^ {0,${t}}#`)),htmlBeginRegex:It(t=>new RegExp(`^ {0,${t}}(?:</?(?:${qt})(?: +|$|/?>)|<(?:script|pre|style|textarea|!--))`,"i")),blockquoteBeginRegex:It(t=>new RegExp(`^ {0,${t}}>`))},ol=/^(?:[ \t]*(?:\n|$))+/,rl=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,sl=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ut=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,al=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ci=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Wr=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Fr=A(Wr).replace(/bull/g,Ci).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),ll=A(Wr).replace(/bull/g,Ci).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Si=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,cl=/^[^\n]+/,ki=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,pl=A(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ki).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),dl=A(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Ci).getRegex(),qt="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",wi=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ul=A("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",wi).replace("tag",qt).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Br=t=>A(Si).replace("hr",Ut).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",t).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",qt).getRegex(),ml=Br(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),fl=Br(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),hl=A(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",fl).getRegex(),yi={blockquote:hl,code:rl,def:pl,fences:sl,heading:al,hr:Ut,html:ul,lheading:Fr,list:dl,newline:ol,paragraph:ml,table:ct,text:cl},Rr=A("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ut).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",qt).getRegex(),_l=s(r$1({},yi),{lheading:ll,table:Rr,paragraph:A(Si).replace("hr",Ut).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Rr).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",qt).getRegex()}),gl=s(r$1({},yi),{html:A(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",wi).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:ct,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:A(Si).replace("hr",Ut).replace("heading",` *#{1,6} *[^
|
|
6
6
|
]`).replace("lheading",Fr).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),xl=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,bl=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Jr=/^( {2,}|\\)\n(?!\s*$)[ \t]*/,Cl=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Be=/[\p{P}\p{S}]/u,Rt=/[\s\p{P}\p{S}]/u,Ht=/[^\s\p{P}\p{S}]/u,Sl=A(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Rt).getRegex(),kl=/[\p{Pi}\p{Ps}"']/u,Vr=/(?!~)[\p{P}\p{S}]/u,wl=/(?!~)[\s\p{P}\p{S}]/u,yl=/(?:[^\s\p{P}\p{S}]|~)/u,vl=A(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",il?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Gr=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Tl=A(Gr,"u").replace(/punct/g,Be).getRegex(),zl=A(Gr,"u").replace(/punct/g,Vr).getRegex(),El=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,Il=A(El,"u").replace(/openQuote/g,kl).replace(/punct/g,Be).getRegex(),Ur="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Rl=A(Ur,"gu").replace(/notPunctSpace/g,Ht).replace(/punctSpace/g,Rt).replace(/punct/g,Be).getRegex(),Dl=A(Ur,"gu").replace(/notPunctSpace/g,yl).replace(/punctSpace/g,wl).replace(/punct/g,Vr).getRegex(),Pl="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",Al=A(Pl,"gu").replace(/notPunctSpace/g,Ht).replace(/punctSpace/g,Rt).replace(/punct/g,Be).getRegex(),Ml=A("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ht).replace(/punctSpace/g,Rt).replace(/punct/g,Be).getRegex(),Ol="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",Nl=A(Ol,"gu").replace(/notPunctSpace/g,Ht).replace(/punctSpace/g,Rt).replace(/punct/g,Be).getRegex(),Ll=A(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Be).getRegex(),jl="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",$l=A(jl,"gu").replace(/notPunctSpace/g,Ht).replace(/punctSpace/g,Rt).replace(/punct/g,Be).getRegex(),Wl=A(/\\(punct)/,"gu").replace(/punct/g,Be).getRegex(),Fl=A(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Bl=A(wi).replace("(?:-->|$)","-->").getRegex(),Jl=A("^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Bl).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),qr=/\[(?:\\[\s\S]|[^\[\]\\])*\]/,An=A(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace("brackets",qr).getRegex(),Vl=A(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",An).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Gl=A(/^!?\[(label)\]\[(ref)\]/).replace("label",An).replace("ref",ki).getRegex(),Ul=A(/^!?\[(ref)\](?:\[\])?/).replace("ref",ki).getRegex(),Dr=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\]){1,999}/,ql=A(/(?:[^\[\]\\`]*(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\]))){0,999}?[^\[\]\\`]*?/).replace("brackets",qr).getRegex(),Hl=A("reflink|nolink(?!\\()","g").replace("reflink",A(/^!?\[(label)\]\[(ref)\]/).replace("label",ql).replace("ref",Dr).getRegex()).replace("nolink",A(/^!?\[(ref)\](?:\[\])?/).replace("ref",Dr).getRegex()).getRegex(),Pr=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,vi={_backpedal:ct,anyPunctuation:Wl,autolink:Fl,blockSkip:vl,br:Jr,code:bl,del:ct,delLDelim:ct,delRDelim:ct,emStrongLDelim:Tl,emStrongRDelimAst:Rl,emStrongRDelimUnd:Ml,escape:xl,link:Vl,nolink:Ul,punctuation:Sl,reflink:Gl,reflinkSearch:Hl,tag:Jl,text:Cl,url:ct},Ql=s(r$1({},vi),{emStrongLDelim:Il,emStrongRDelimAst:Al,emStrongRDelimUnd:Nl,link:A(/^!?\[(label)\]\((.*?)\)/).replace("label",An).getRegex(),reflink:A(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",An).getRegex()}),_i=s(r$1({},vi),{emStrongRDelimAst:Dl,emStrongLDelim:zl,delLDelim:Ll,delRDelim:$l,url:A(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Pr).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:A(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Pr).getRegex()}),Yl=s(r$1({},_i),{br:A(Jr).replace("{2,}","*").getRegex(),text:A(_i.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),Pn={normal:yi,gfm:_l,pedantic:gl},Vt={normal:vi,gfm:_i,breaks:Yl,pedantic:Ql},Zl={"&":"&","<":"<",">":">",'"':""","'":"'"},Ar=t=>Zl[t];function ke(t,n){if(n){if(pe.escapeTest.test(t))return t.replace(pe.escapeReplace,Ar)}else if(pe.escapeTestNoEncode.test(t))return t.replace(pe.escapeReplaceNoEncode,Ar);return t}function Mr(t){try{t=encodeURI(t).replace(pe.percentDecode,"%");}catch(n){return null}return t}function Or(t,n){let e=t.replace(pe.findPipe,(r,a,l)=>{let h=false,g=a;for(;--g>=0&&l[g]==="\\";)h=!h;return h?"|":" |"}),i=e.split(pe.splitPipe),o=0;if(i[0].trim()||i.shift(),i.length>0&&!i.at(-1)?.trim()&&i.pop(),n)if(i.length>n)i.splice(n);else for(;i.length<n;)i.push("");for(;o<i.length;o++)i[o]=i[o].trim().replace(pe.slashPipe,"|");return i}function Xe(t,n,e){let i=t.length;if(i===0)return "";let o=0;for(;o<i;){let r=t.charAt(i-o-1);if(r===n&&true)o++;else break}return t.slice(0,i-o)}function Nr(t){let n=t.split(`
|
|
@@ -66,5 +66,5 @@ ${this.parser.parse(t)}</blockquote>
|
|
|
66
66
|
${t}</tr>
|
|
67
67
|
`}tablecell(t){let n=this.parser.parseInline(t.tokens),e=t.header?"th":"td";return (t.align?`<${e} align="${t.align}">`:`<${e}>`)+n+`</${e}>
|
|
68
68
|
`}strong({tokens:t}){return `<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return `<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return `<code>${ke(t,true)}</code>`}br(t){return "<br>"}del({tokens:t}){return `<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:n,text:e,tokens:i,autolink:o}){let r=o?ke(e,true):this.parser.parseInline(i),a=Mr(t);if(a===null)return r;t=ke(a,o);let l='<a href="'+t+'"';return n&&(l+=' title="'+ke(n)+'"'),l+=">"+r+"</a>",l}image({href:t,title:n,text:e,tokens:i}){i&&(e=this.parser.parseInline(i,this.parser.textRenderer));let o=Mr(t);if(o===null)return ke(e);t=o;let r=`<img src="${ke(t)}" alt="${ke(e)}"`;return n&&(r+=` title="${ke(n)}"`),r+=">",r}text(t){return "tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:ke(t.text)}},Ti=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return ""+t}image({text:t}){return ""+t}br(){return ""}checkbox({raw:t}){return t}},Ie=class xi{options;renderer;textRenderer;constructor(n){this.options=n||dt,this.options.renderer=this.options.renderer||new Nn,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ti;}static parse(n,e){return new xi(e).parse(n)}static parseInline(n,e){return new xi(e).parseInline(n)}parse(n){this.renderer.parser=this;let e="";for(let i=0;i<n.length;i++){let o=n[i];if(this.options.extensions?.renderers?.[o.type]){let a=o,l=this.options.extensions.renderers[a.type].call({parser:this},a);if(l!==false||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(a.type)){e+=l||"";continue}}let r=o;switch(r.type){case "space":{e+=this.renderer.space(r);break}case "hr":{e+=this.renderer.hr(r);break}case "heading":{e+=this.renderer.heading(r);break}case "code":{e+=this.renderer.code(r);break}case "table":{e+=this.renderer.table(r);break}case "blockquote":{e+=this.renderer.blockquote(r);break}case "list":{e+=this.renderer.list(r);break}case "checkbox":{e+=this.renderer.checkbox(r);break}case "html":{e+=this.renderer.html(r);break}case "def":{e+=this.renderer.def(r);break}case "paragraph":{e+=this.renderer.paragraph(r);break}case "text":{e+=this.renderer.text(r);break}default:{let a='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return e}parseInline(n,e=this.renderer){this.renderer.parser=this;let i="";for(let o=0;o<n.length;o++){let r=n[o];if(this.options.extensions?.renderers?.[r.type]){let l=this.options.extensions.renderers[r.type].call({parser:this},r);if(l!==false||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(r.type)){i+=l||"";continue}}let a=r;switch(a.type){case "escape":{i+=e.text(a);break}case "html":{i+=e.html(a);break}case "link":{i+=e.link(a);break}case "image":{i+=e.image(a);break}case "checkbox":{i+=e.checkbox(a);break}case "strong":{i+=e.strong(a);break}case "em":{i+=e.em(a);break}case "codespan":{i+=e.codespan(a);break}case "br":{i+=e.br(a);break}case "del":{i+=e.del(a);break}case "text":{i+=e.text(a);break}default:{let l='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return i}},Gt=class{options;block;constructor(t){this.options=t||dt;}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(t=this.block){return t?Ee.lex:Ee.lexInline}provideParser(t=this.block){return t?Ie.parse:Ie.parseInline}},tc=class{defaults=bi();options=this.setOptions;parse=this.parseMarkdown(true);parseInline=this.parseMarkdown(false);Parser=Ie;Renderer=Nn;TextRenderer=Ti;Lexer=Ee;Tokenizer=On;Hooks=Gt;constructor(...t){this.use(...t);}walkTokens(t,n){let e=[];for(let i of t)switch(e=e.concat(n.call(this,i)),i.type){case "table":{let o=i;for(let r of o.header)e=e.concat(this.walkTokens(r.tokens,n));for(let r of o.rows)for(let a of r)e=e.concat(this.walkTokens(a.tokens,n));break}case "list":{let o=i;e=e.concat(this.walkTokens(o.items,n));break}default:{let o=i;this.defaults.extensions?.childTokens?.[o.type]?this.defaults.extensions.childTokens[o.type].forEach(r=>{let a=o[r].flat(1/0);e=e.concat(this.walkTokens(a,n));}):o.tokens&&(e=e.concat(this.walkTokens(o.tokens,n)));}}return e}use(...t){let n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(e=>{let i=r$1({},e);if(i.async=this.defaults.async||i.async||false,e.extensions&&(e.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let r=n.renderers[o.name];r?n.renderers[o.name]=function(...a){let l=o.renderer.apply(this,a);return l===false&&(l=r.apply(this,a)),l}:n.renderers[o.name]=o.renderer;}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let r=n[o.level];r?r.unshift(o.tokenizer):n[o.level]=[o.tokenizer],o.start&&(o.level==="block"?n.startBlock?n.startBlock.push(o.start):n.startBlock=[o.start]:o.level==="inline"&&(n.startInline?n.startInline.push(o.start):n.startInline=[o.start]));}"childTokens"in o&&o.childTokens&&(n.childTokens[o.name]=o.childTokens);}),i.extensions=n),e.renderer){let o=this.defaults.renderer||new Nn(this.defaults);for(let r in e.renderer){if(!(r in o))throw new Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;let a=r,l=e.renderer[a],h=o[a];o[a]=(...g)=>{let v=l.apply(o,g);return v===false&&(v=h.apply(o,g)),v||""};}i.renderer=o;}if(e.tokenizer){let o=this.defaults.tokenizer||new On(this.defaults);for(let r in e.tokenizer){if(!(r in o))throw new Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;let a=r,l=e.tokenizer[a],h=o[a];o[a]=(...g)=>{let v=l.apply(o,g);return v===false&&(v=h.apply(o,g)),v};}i.tokenizer=o;}if(e.hooks){let o=this.defaults.hooks||new Gt;for(let r in e.hooks){if(!(r in o))throw new Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;let a=r,l=e.hooks[a],h=o[a];Gt.passThroughHooks.has(r)?o[a]=g=>{if(this.defaults.async&&Gt.passThroughHooksRespectAsync.has(r))return v$1(this,null,function*(){let S=yield l.call(o,g);return h.call(o,S)});let v=l.call(o,g);return h.call(o,v)}:o[a]=(...g)=>{if(this.defaults.async)return v$1(this,null,function*(){let S=yield l.apply(o,g);return S===false&&(S=yield h.apply(o,g)),S});let v=l.apply(o,g);return v===false&&(v=h.apply(o,g)),v};}i.hooks=o;}if(e.walkTokens){let o=this.defaults.walkTokens,r=e.walkTokens;i.walkTokens=function(a){let l=[];return l.push(r.call(this,a)),o&&(l=l.concat(o.call(this,a))),l};}this.defaults=r$1(r$1({},this.defaults),i);}),this}setOptions(t){return this.defaults=r$1(r$1({},this.defaults),t),this}lexer(t,n){return Ee.lex(t,n??this.defaults)}parser(t,n){return Ie.parse(t,n??this.defaults)}parseMarkdown(t){return (n,e)=>{let i=r$1({},e),o=r$1(r$1({},this.defaults),i),r=this.onError(!!o.silent,!!o.async);if(this.defaults.async===true&&i.async===false)return r(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof n>"u"||n===null)return r(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return r(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=t),o.async)return v$1(this,null,function*(){let a=o.hooks?yield o.hooks.preprocess(n):n,l=yield (o.hooks?yield o.hooks.provideLexer(t):t?Ee.lex:Ee.lexInline)(a,o),h=o.hooks?yield o.hooks.processAllTokens(l):l;o.walkTokens&&(yield Promise.all(this.walkTokens(h,o.walkTokens)));let g=yield (o.hooks?yield o.hooks.provideParser(t):t?Ie.parse:Ie.parseInline)(h,o);return o.hooks?yield o.hooks.postprocess(g):g}).catch(r);try{o.hooks&&(n=o.hooks.preprocess(n));let a=(o.hooks?o.hooks.provideLexer(t):t?Ee.lex:Ee.lexInline)(n,o);o.hooks&&(a=o.hooks.processAllTokens(a)),o.walkTokens&&this.walkTokens(a,o.walkTokens);let l=(o.hooks?o.hooks.provideParser(t):t?Ie.parse:Ie.parseInline)(a,o);return o.hooks&&(l=o.hooks.postprocess(l)),l}catch(a){return r(a)}}}onError(t,n){return e=>{if(e.message+=`
|
|
69
|
-
Please report this to https://github.com/markedjs/marked.`,t){let i="<p>An error occurred:</p><pre>"+ke(e.message+"",true)+"</pre>";return n?Promise.resolve(i):i}if(n)return Promise.reject(e);throw e}}},pt=new tc;function F(t,n){return pt.parse(t,n)}F.options=F.setOptions=function(t){return pt.setOptions(t),F.defaults=pt.defaults,$r(F.defaults),F};F.getDefaults=bi;F.defaults=dt;function nc(...t){return pt.use(...t),F.defaults=pt.defaults,$r(F.defaults),F}F.use=nc;F.walkTokens=function(t,n){return pt.walkTokens(t,n)};F.parseInline=pt.parseInline;F.Parser=Ie;F.parser=Ie.parse;F.Renderer=Nn;F.TextRenderer=Ti;F.Lexer=Ee;F.lexer=Ee.lex;F.Tokenizer=On;F.Hooks=Gt;F.parse=F;F.options;F.setOptions;F.walkTokens;F.parseInline;Ie.parse;Ee.lex;function Hr(t){let n=F.parse(t,{async:false,gfm:true,breaks:true});return Ir.sanitize(n)}function ic(t,n){if(t&1&&uh(0,"div",3),t&2){let e=HD();lh("innerHTML",e.safeHtml(),vv);}}function oc(t,n){if(t&1&&(_i$1(0,"pre",4),Iw(1),Jc$1()),t&2){let e=HD();gI(),Lh(e.rawText());}}var Xr=(()=>{class t{constructor(){this.sanitizer=C(n6),this.rawText=q0.required(),this.executionId=q0(null),this.view=qo("markdown"),this.safeHtml=Uw(()=>{let e=Hr(this.rawText());return this.sanitizer.bypassSecurityTrustHtml(e)}),id(()=>{this.executionId(),qw(()=>this.view.set("markdown"));});}setView(e){this.view.set(e);}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275cmp=ZE({type:t,selectors:[["app-step-output"]],inputs:{rawText:[1,"rawText"],executionId:[1,"executionId"]},decls:9,vars:9,consts:[["data-testid","step-output-toggle",1,"output-toggle"],["nz-button","","nzSize","small","type","button","data-testid","step-output-view-markdown",3,"click","nzType"],["nz-button","","nzSize","small","type","button","data-testid","step-output-view-raw",3,"click","nzType"],["data-testid","step-output",1,"knoflows-step-output","knoflows-markdown-body",3,"innerHTML"],["data-testid","step-output",1,"knoflows-step-output","knoflows-step-output-raw"]],template:function(i,o){i&1&&(_i$1(0,"div",0)(1,"button",1),mh("click",function(){return o.setView("markdown")}),Iw(2),Pw(3,"transloco"),Jc$1(),_i$1(4,"button",2),mh("click",function(){return o.setView("raw")}),Iw(5),Pw(6,"transloco"),Jc$1()(),_D(7,ic,1,1,"div",3)(8,oc,2,1,"pre",4)),i&2&&(gI(),lh("nzType",o.view()==="markdown"?"primary":"default"),gI(),rl$1(" ",Fw(3,5,"jobs.detail.outputView.markdown")," "),gI(2),lh("nzType",o.view()==="raw"?"primary":"default"),gI(),rl$1(" ",Fw(6,7,"jobs.detail.outputView.raw")," "),gI(2),MD(o.view()==="markdown"?7:8));},dependencies:[pf,bd,sp$1,fp$1,Kt],styles:["[_nghost-%COMP%]{display:block;min-width:0}.output-toggle[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.35rem;margin:0 0 .75rem}"]});}}return t})();var es=t=>({index:t}),ts=()=>[],ac=(t,n)=>n.definition.id,lc=(t,n)=>n.index,zi=(t,n)=>n.id;function cc(t,n){if(t&1){let e=FD();_i$1(0,"div",2)(1,"button",3),mh("click",function(){Fu(e);let o=HD();return ju(o.closeIteration())}),Iw(2),Pw(3,"transloco"),Jc$1(),_i$1(4,"p",4),Iw(5),Pw(6,"transloco"),Jc$1(),_i$1(7,"app-job-step-workspace",5),mh("selectExecution",function(o){Fu(e);let r=HD();return ju(r.onNestedSelect(o))})("resumeSubmit",function(o){Fu(e);let r=HD();return ju(r.resumeSubmit.emit(o))})("extractResume",function(o){Fu(e);let r=HD();return ju(r.extractResume.emit(o))})("retryStep",function(o){Fu(e);let r=HD();return ju(r.retryStep.emit(o))}),Jc$1()();}if(t&2){let e=n,i=HD();gI(2),rl$1(" ",Fw(3,12,"jobs.detail.loopBack")," "),gI(3),rl$1(" ",jw(6,14,"jobs.detail.loopIteration",Aw(17,es,e.index+1))," "),gI(2),lh("definitions",i.nestedLoopDefinition().steps)("executions",e.stepExecutions)("job",i.job())("selectedExecutionId",i.nestedSelectedId())("currentExecutionId",i.currentExecutionId())("waitingEvent",i.waitingEvent())("resuming",i.resuming())("canResume",i.canResume())("canRetryStep",i.canRetryStep())("retryingStep",i.retryingStep());}}function pc(t,n){if(t&1&&(_i$1(0,"nz-tag",17),Iw(1),Pw(2,"transloco"),Jc$1()),t&2){let e=n,i=HD(2).$implicit,o=HD(2);lh("nzColor",o.stepStatusTagColor(e.status,o.theme.theme()))("ngClass",o.stepStatusTagClass(e.status,o.theme.theme())),ch("data-testid","step-status-"+i.definition.id),gI(),Lh(Fw(2,4,o.stepStatusKey(e.status)));}}function dc(t,n){if(t&1){let e=FD();_i$1(0,"button",13),mh("click",function(){Fu(e);let o=HD().$implicit,r=HD(2);return ju(r.onStepClick(o))}),_i$1(1,"span",14),Iw(2),Jc$1(),_i$1(3,"span",15)(4,"span",16),Iw(5),Pw(6,"transloco"),Jc$1(),_D(7,pc,3,6,"nz-tag",17),Jc$1()();}if(t&2){let e,i=HD().$implicit,o=HD(2);Sh("selected",o.isSelected(i))("current",o.isCurrent(i))("unreached",!i.reached)("skipped",i.execution?.status==="skipped"),lh("disabled",!i.reached),ch("data-testid","step-"+i.definition.id),gI(2),Lh(i.definition.name),gI(3),Lh(Fw(6,13,o.stepTypeKey(i.definition.type))),gI(2),MD((e=i.execution)?7:-1,e);}}function uc(t,n){if(t&1&&(_i$1(0,"nz-step",12),rh(1,dc,8,15,"ng-template",null,0,Vw),Jc$1()),t&2){let e=n.$implicit,i=QD(2),o=HD(2);Sh("selected",o.isSelected(e))("current",o.isCurrent(e))("unreached",!e.reached)("skipped",e.execution?.status==="skipped"),lh("nzDisabled",!e.reached)("nzStatus",o.stepNzStatus(e))("nzTitle",i);}}function mc(t,n){t&1&&(_i$1(0,"p",10),Iw(1),Pw(2,"transloco"),Jc$1()),t&2&&(gI(),rl$1(" ",Fw(2,1,"jobs.detail.noStepSelected")," "));}function fc(t,n){if(t&1&&(_i$1(0,"div")(1,"dt"),Iw(2),Pw(3,"transloco"),Jc$1(),_i$1(4,"dd",26),Iw(5),Jc$1()()),t&2){let e=HD(),i=HD(3);gI(2),Lh(Fw(3,2,"jobs.detail.skipped.equalsValue")),gI(3),rl$1(" ",i.formatUnknown(e.condition.value)," ");}}function hc(t,n){if(t&1&&(_i$1(0,"dl",20)(1,"div")(2,"dt"),Iw(3),Pw(4,"transloco"),Jc$1(),_i$1(5,"dd",21),Iw(6),Jc$1()(),_i$1(7,"div")(8,"dt"),Iw(9),Pw(10,"transloco"),Jc$1(),_i$1(11,"dd",22),Iw(12),Jc$1()(),_i$1(13,"div")(14,"dt"),Iw(15),Pw(16,"transloco"),Jc$1(),_i$1(17,"dd",23),Iw(18),Jc$1()(),_D(19,fc,6,4,"div"),_i$1(20,"div")(21,"dt"),Iw(22),Pw(23,"transloco"),Jc$1(),_i$1(24,"dd",24),Iw(25),Jc$1()()(),_i$1(26,"pre",25),Iw(27),Jc$1()),t&2){let e=n,i=HD(3);gI(3),Lh(Fw(4,10,"jobs.detail.skipped.predicate")),gI(3),Lh(e.condition.type),gI(3),Lh(Fw(10,12,"jobs.detail.skipped.stepId")),gI(3),Lh(e.condition.stepId),gI(3),Lh(Fw(16,14,"jobs.detail.skipped.field")),gI(3),Lh(e.condition.field),gI(),MD(e.condition.type==="field_equals"?19:-1),gI(3),Lh(Fw(23,16,"jobs.detail.skipped.fieldValue")),gI(3),rl$1(" ",i.formatUnknown(e.inputs.fieldValue)," "),gI(2),Lh(i.formatUnknown(e.inputs));}}function _c(t,n){if(t&1&&(_i$1(0,"pre",19),Iw(1),Jc$1()),t&2){let e=HD(3);gI(),Lh(e.formatOutput(e.selectedExecution()));}}function gc(t,n){if(t&1&&(_i$1(0,"div",11)(1,"h3"),Iw(2),Jc$1(),_i$1(3,"p",18),Iw(4),Pw(5,"transloco"),Jc$1(),_D(6,hc,28,18)(7,_c,2,1,"pre",19),Jc$1()),t&2){let e,i=HD(2);gI(2),Lh(i.selectedDefinition()?.name),gI(2),rl$1(" ",Fw(5,3,"jobs.detail.skipped.reason")," "),gI(2),MD((e=i.skippedOutput(i.selectedExecution()))?6:7,e);}}function xc(t,n){t&1&&(_i$1(0,"p",31),Iw(1),Pw(2,"transloco"),Jc$1()),t&2&&(gI(),Lh(Fw(2,1,"jobs.detail.inProgress.loop")));}function bc(t,n){if(t&1){let e=FD();_i$1(0,"li")(1,"button",34),mh("click",function(){let o=Fu(e).$implicit,r=HD(4);return ju(r.openIteration(r.selectedDefinition(),o))}),Iw(2),Pw(3,"transloco"),Jc$1()();}if(t&2){let e=n.$implicit;gI(),ch("data-testid","loop-iteration-"+e.index),gI(),rl$1(" ",jw(3,2,"jobs.detail.loopIteration",Aw(5,es,e.index+1))," ");}}function Cc(t,n){t&1&&(_i$1(0,"li",16),Iw(1),Pw(2,"transloco"),Jc$1()),t&2&&(gI(),Lh(Fw(2,1,"jobs.detail.noIterations")));}function Sc(t,n){if(t&1&&(_i$1(0,"p",33),Iw(1),Jc$1()),t&2){let e=HD(4);gI(),Lh(e.selectedExecution().error);}}function kc(t,n){if(t&1&&(_i$1(0,"div",27)(1,"h3"),Iw(2),Jc$1(),_D(3,xc,3,3,"p",31),_i$1(4,"ul",32),xD(5,bc,4,7,"li",null,lc,false,Cc,3,3,"li",16),Jc$1(),_D(8,Sc,2,1,"p",33),Jc$1()),t&2){let e=HD(3);gI(2),Lh(e.selectedDefinition()?.name),gI(),MD(e.isRunning(e.selectedExecution())?3:-1),gI(2),AD(e.selectedExecution().iterations??xw(4,ts)),gI(3),MD(e.selectedExecution().error?8:-1);}}function wc(t,n){t&1&&(_i$1(0,"p",31),Iw(1),Pw(2,"transloco"),Jc$1()),t&2&&(gI(),rl$1(" ",Fw(2,1,"jobs.detail.inProgress.sub_workflow")," "));}function yc(t,n){if(t&1&&(_i$1(0,"p",33),Iw(1),Jc$1()),t&2){let e=HD(4);gI(),Lh(e.selectedExecution().error);}}function vc(t,n){if(t&1&&(_i$1(0,"div",28)(1,"h3"),Iw(2),Jc$1(),_D(3,wc,3,3,"p",31),uh(4,"app-job-status-table",35),_D(5,yc,2,1,"p",33),Jc$1()),t&2){let e=HD(3);gI(2),Lh(e.selectedDefinition()?.name),gI(),MD(e.isRunning(e.selectedExecution())?3:-1),gI(),lh("jobIds",e.selectedExecution().childJobIds??xw(4,ts)),gI(),MD(e.selectedExecution().error?5:-1);}}function Tc(t,n){if(t&1&&(_i$1(0,"p",40),Iw(1),Jc$1()),t&2){let e=HD(6);gI(),Lh(e.confirmationPrompt());}}function zc(t,n){if(t&1){let e=FD();_i$1(0,"div",37),_D(1,Tc,2,1,"p",40),_i$1(2,"label",41),Iw(3),Pw(4,"transloco"),_i$1(5,"textarea",42),mh("input",function(o){Fu(e);let r=HD(5);return ju(r.setConfirmationComment(o))}),Jc$1()(),_i$1(6,"div",43)(7,"button",44),mh("click",function(){Fu(e);let o=HD(5);return ju(o.submitConfirmation(true))}),Iw(8),Pw(9,"transloco"),Jc$1(),_i$1(10,"button",45),mh("click",function(){Fu(e);let o=HD(5);return ju(o.submitConfirmation(false))}),Iw(11),Pw(12,"transloco"),Jc$1()()();}if(t&2){let e=HD(5);gI(),MD(e.confirmationPrompt()?1:-1),gI(2),rl$1(" ",Fw(4,7,"jobs.resume.comment")," "),gI(2),lh("value",e.confirmationComment()),gI(2),lh("disabled",e.resuming()),gI(),rl$1(" ",Fw(9,9,e.resuming()?"jobs.resume.submitting":"jobs.resume.approve")," "),gI(2),lh("disabled",e.resuming()),gI(),rl$1(" ",Fw(12,11,e.resuming()?"jobs.resume.submitting":"jobs.resume.reject")," ");}}function Ec(t,n){if(t&1){let e=FD();_i$1(0,"div",50)(1,"label",53)(2,"input",54),mh("change",function(o){let r=Fu(e).$implicit,a=HD(6);return ju(a.setCommentReviewIncluded(r.id,o))}),Jc$1(),_i$1(3,"span"),Iw(4),Pw(5,"transloco"),Jc$1()(),_i$1(6,"div",55)(7,"code",56),Iw(8),Jc$1(),_i$1(9,"textarea",57),mh("input",function(o){let r=Fu(e).$implicit,a=HD(6);return ju(a.setCommentReviewBody(r.id,o))}),Jc$1()()();}if(t&2){let e=n.$implicit;ch("data-testid","comment-review-row-"+e.id),gI(2),lh("checked",e.included),ch("data-testid","comment-review-include-"+e.id),gI(2),Lh(Fw(5,9,"jobs.resume.commentReview.include")),gI(3),ch("data-testid","comment-review-location-"+e.id),gI(),Fh("",e.file,":",e.line),gI(),lh("value",e.body),ch("data-testid","comment-review-body-"+e.id);}}function Ic(t,n){t&1&&(_i$1(0,"p",51),Iw(1),Pw(2,"transloco"),Jc$1()),t&2&&(gI(),rl$1(" ",Fw(2,1,"jobs.resume.commentReview.empty")," "));}function Rc(t,n){if(t&1){let e=FD();_i$1(0,"div",38)(1,"div",46)(2,"button",47),mh("click",function(){Fu(e);let o=HD(5);return ju(o.setCommentReviewAllIncluded(true))}),Iw(3),Pw(4,"transloco"),Jc$1(),_i$1(5,"button",48),mh("click",function(){Fu(e);let o=HD(5);return ju(o.setCommentReviewAllIncluded(false))}),Iw(6),Pw(7,"transloco"),Jc$1()(),_i$1(8,"div",49),xD(9,Ec,10,11,"div",50,zi,false,Ic,3,3,"p",51),Jc$1(),_i$1(12,"button",52),mh("click",function(){Fu(e);let o=HD(5);return ju(o.submitCommentReview())}),Iw(13),Pw(14,"transloco"),Jc$1()();}if(t&2){let e=HD(5);gI(2),lh("disabled",e.resuming()||e.commentReviewDrafts().length===0),gI(),rl$1(" ",Fw(4,7,"jobs.resume.commentReview.selectAll")," "),gI(2),lh("disabled",e.resuming()||e.commentReviewDrafts().length===0),gI(),rl$1(" ",Fw(7,9,"jobs.resume.commentReview.selectNone")," "),gI(3),AD(e.commentReviewDrafts()),gI(3),lh("disabled",e.resuming()),gI(),rl$1(" ",Fw(14,11,e.resuming()?"jobs.resume.submitting":"jobs.resume.button")," ");}}function Dc(t,n){if(t&1){let e=FD();_i$1(0,"label",59)(1,"span"),Iw(2),Jc$1(),_i$1(3,"textarea",57),mh("input",function(o){let r=Fu(e).$implicit,a=HD(6);return ju(a.setQuestionnaireAnswer(r.id,o))}),Jc$1()();}if(t&2){let e=n.$implicit,i=HD(6);ch("data-testid","resume-question-"+e.id),gI(2),Lh(e.prompt),gI(),lh("value",i.questionnaireAnswers()[e.id]),ch("data-testid","resume-answer-"+e.id);}}function Pc(t,n){t&1&&(_i$1(0,"p",16),Iw(1),Pw(2,"transloco"),Jc$1()),t&2&&(gI(),Lh(Fw(2,1,"jobs.resume.noQuestions")));}function Ac(t,n){if(t&1){let e=FD();_i$1(0,"div",39)(1,"div",58),xD(2,Dc,4,4,"label",59,zi,false,Pc,3,3,"p",16),Jc$1(),_i$1(5,"label",41),Iw(6),Pw(7,"transloco"),_i$1(8,"textarea",60),mh("input",function(o){Fu(e);let r=HD(5);return ju(r.setAdditionalComments(o))}),Jc$1()(),_i$1(9,"button",52),mh("click",function(){Fu(e);let o=HD(5);return ju(o.submitQuestionnaire())}),Iw(10),Pw(11,"transloco"),Jc$1()();}if(t&2){let e=HD(5);gI(2),AD(e.questionnaireItems()),gI(4),rl$1(" ",Fw(7,5,"jobs.resume.additionalComments")," "),gI(2),lh("value",e.additionalComments()),gI(),lh("disabled",e.resuming()||!e.questionnaireReady()),gI(),rl$1(" ",Fw(11,7,e.resuming()?"jobs.resume.submitting":"jobs.resume.button")," ");}}function Mc(t,n){if(t&1&&(_i$1(0,"section",36)(1,"h4"),Iw(2),Pw(3,"transloco"),Jc$1(),_D(4,zc,13,13,"div",37)(5,Rc,15,13,"div",38)(6,Ac,12,9,"div",39),Jc$1()),t&2){let e=HD(4);gI(2),Lh(Fw(3,2,"jobs.resume.heading")),gI(2),MD(e.interactionKind()==="confirmation"?4:e.interactionKind()==="comment_review"?5:6);}}function Oc(t,n){if(t&1&&(_i$1(0,"pre",19),Iw(1),Jc$1()),t&2){let e=HD(4);gI(),Lh(e.formatOutput(e.selectedExecution()));}}function Nc(t,n){if(t&1&&(_i$1(0,"div",29)(1,"h3"),Iw(2),Jc$1(),_D(3,Mc,7,4,"section",36)(4,Oc,2,1,"pre",19),Jc$1()),t&2){let e=HD(3);gI(2),Lh(e.selectedDefinition()?.name),gI(),MD(e.showResume()?3:4);}}function Lc(t,n){t&1&&(_i$1(0,"p",31),Iw(1),Pw(2,"transloco"),Jc$1()),t&2&&(gI(),rl$1(" ",Fw(2,1,"jobs.detail.inProgress.extract")," "));}function jc(t,n){t&1&&(_i$1(0,"p",16),Iw(1),Pw(2,"transloco"),_i$1(3,"code",69),Iw(4),Jc$1()()),t&2&&(gI(),rl$1(" ",Fw(2,2,"jobs.extract.pattern")," "),gI(3),Lh(n));}function $c(t,n){if(t&1){let e=FD();_i$1(0,"section",61)(1,"h4"),Iw(2),Pw(3,"transloco"),Jc$1(),_i$1(4,"p",16),Iw(5),Pw(6,"transloco"),Jc$1(),_i$1(7,"pre",63),Iw(8),Jc$1(),_D(9,jc,5,4,"p",16),_i$1(10,"label"),Iw(11),Pw(12,"transloco"),_i$1(13,"input",64),mh("input",function(o){Fu(e);let r=HD(4);return ju(r.onExtractValueInput(o))}),Jc$1()(),_i$1(14,"div",65)(15,"button",66),mh("click",function(){Fu(e);let o=HD(4);return ju(o.provideExtractValue())}),Iw(16),Pw(17,"transloco"),Jc$1(),_i$1(18,"button",67),mh("click",function(){Fu(e);let o=HD(4);return ju(o.continueExtract())}),Iw(19),Pw(20,"transloco"),Jc$1(),_i$1(21,"button",68),mh("click",function(){Fu(e);let o=HD(4);return ju(o.cancelExtract())}),Iw(22),Pw(23,"transloco"),Jc$1()()();}if(t&2){let e,i=HD(4);gI(2),Lh(Fw(3,12,"jobs.extract.heading")),gI(3),Lh(Fw(6,14,"jobs.extract.sourceValue")),gI(3),Lh(i.extractSourceDisplay()),gI(),MD((e=i.extractPauseData()?.pattern)?9:-1,e),gI(2),rl$1(" ",Fw(12,16,"jobs.extract.valueLabel")," "),gI(2),lh("value",i.extractValue()),gI(2),lh("disabled",i.resuming()),gI(),rl$1(" ",Fw(17,18,"jobs.extract.provideValue")," "),gI(2),lh("disabled",i.resuming()),gI(),rl$1(" ",Fw(20,20,"jobs.extract.continue")," "),gI(2),lh("disabled",i.resuming()),gI(),rl$1(" ",Fw(23,22,"jobs.extract.cancel")," ");}}function Wc(t,n){if(t&1&&(_i$1(0,"p",62),Iw(1),Jc$1()),t&2){let e=HD(4);gI(),Lh(e.selectedExecution().error);}}function Fc(t,n){if(t&1&&uh(0,"app-step-output",70),t&2){let e=HD(5);lh("rawText",e.formatOutput(e.selectedExecution()))("executionId",e.selectedExecution().id);}}function Bc(t,n){if(t&1&&(_i$1(0,"pre",19),Iw(1),Jc$1()),t&2){let e=HD(5);gI(),Lh(e.formatOutput(e.selectedExecution()));}}function Jc(t,n){if(t&1&&_D(0,Fc,1,2,"app-step-output",70)(1,Bc,2,1,"pre",19),t&2){let e=HD(4);MD(e.outputIsScalar()?0:1);}}function Vc(t,n){if(t&1&&(_i$1(0,"div",30)(1,"h3"),Iw(2),Jc$1(),_D(3,Lc,3,3,"p",31)(4,$c,24,24,"section",61)(5,Wc,2,1,"p",62)(6,Jc,2,1),Jc$1()),t&2){let e=HD(3);gI(2),Lh(e.selectedDefinition()?.name),gI(),MD(e.isRunning(e.selectedExecution())?3:e.showExtractResume()?4:e.selectedExecution().error||e.selectedExecution().status==="failed"?5:6);}}function Gc(t,n){t&1&&(_i$1(0,"p",71),Iw(1),Pw(2,"transloco"),Jc$1()),t&2&&(gI(),rl$1(" ",Fw(2,1,"jobs.detail.waitingForAgentSlot")," "));}function Uc(t,n){if(t&1&&(_i$1(0,"p",31),Iw(1),Pw(2,"transloco"),Jc$1()),t&2){let e=HD(4);gI(),rl$1(" ",Fw(2,1,"jobs.detail.inProgress."+e.selectedExecution().type)," ");}}function qc(t,n){if(t&1&&(_i$1(0,"p",33),Iw(1),Jc$1()),t&2){let e=HD().$implicit;ch("data-testid","review-and-retry-error-"+e.id),gI(),Lh(e.error);}}function Hc(t,n){if(t&1){let e=FD();_i$1(0,"div",50)(1,"label",53)(2,"input",54),mh("change",function(o){let r=Fu(e).$implicit,a=HD(6);return ju(a.setReviewRetryIncluded(r.id,o))}),Jc$1(),_i$1(3,"span"),Iw(4),Pw(5,"transloco"),Jc$1()(),_i$1(6,"div",55)(7,"code",56),Iw(8),Jc$1(),_D(9,qc,2,2,"p",33),_i$1(10,"textarea",57),mh("input",function(o){let r=Fu(e).$implicit,a=HD(6);return ju(a.setReviewRetryBody(r.id,o))}),Jc$1()()();}if(t&2){let e=n.$implicit;ch("data-testid","review-and-retry-row-"+e.id),gI(2),lh("checked",e.included),ch("data-testid","review-and-retry-include-"+e.id),gI(2),Lh(Fw(5,10,"jobs.resume.commentReview.include")),gI(3),ch("data-testid","review-and-retry-location-"+e.id),gI(),Fh("",e.file,":",e.line),gI(),MD(e.error?9:-1),gI(),lh("value",e.body),ch("data-testid","review-and-retry-body-"+e.id);}}function Qc(t,n){if(t&1){let e=FD();_i$1(0,"section",72)(1,"p",74),Iw(2),Pw(3,"transloco"),Jc$1(),_i$1(4,"div",46)(5,"button",75),mh("click",function(){Fu(e);let o=HD(5);return ju(o.setReviewRetryAllIncluded(true))}),Iw(6),Pw(7,"transloco"),Jc$1(),_i$1(8,"button",76),mh("click",function(){Fu(e);let o=HD(5);return ju(o.setReviewRetryAllIncluded(false))}),Iw(9),Pw(10,"transloco"),Jc$1()(),_i$1(11,"div",77),xD(12,Hc,11,12,"div",50,zi),Jc$1(),_i$1(14,"button",78),mh("click",function(){Fu(e);let o=HD(5);return ju(o.submitReviewAndRetry())}),Iw(15),Pw(16,"transloco"),Jc$1()();}if(t&2){let e=HD(5);gI(2),rl$1(" ",Fw(3,7,"jobs.detail.reviewAndRetryHint")," "),gI(3),lh("disabled",e.retryingStep()||e.reviewRetryDrafts().length===0),gI(),rl$1(" ",Fw(7,9,"jobs.resume.commentReview.selectAll")," "),gI(2),lh("disabled",e.retryingStep()||e.reviewRetryDrafts().length===0),gI(),rl$1(" ",Fw(10,11,"jobs.resume.commentReview.selectNone")," "),gI(3),AD(e.reviewRetryDrafts()),gI(2),lh("disabled",e.retryingStep()),gI(),rl$1(" ",Fw(16,13,e.retryingStep()?"jobs.detail.retrying":"jobs.detail.reviewAndRetry")," ");}}function Yc(t,n){if(t&1){let e=FD();_i$1(0,"button",79),mh("click",function(){Fu(e);let o=HD(5);return ju(o.retryStep.emit(void 0))}),Iw(1),Pw(2,"transloco"),Jc$1();}if(t&2){let e=HD(5);lh("disabled",e.retryingStep()),gI(),rl$1(" ",Fw(2,2,e.retryingStep()?"jobs.detail.retrying":"jobs.detail.retryStep")," ");}}function Zc(t,n){if(t&1&&(_i$1(0,"p",62),Iw(1),Jc$1(),_D(2,Qc,17,15,"section",72)(3,Yc,3,4,"button",73)),t&2){let e=HD(4);gI(),Lh(e.selectedExecution().error),gI(),MD(e.showReviewAndRetry()?2:e.showRetryStep()?3:-1);}}function Xc(t,n){if(t&1&&uh(0,"app-step-output",70),t&2){let e=HD(5);lh("rawText",e.formatOutput(e.selectedExecution()))("executionId",e.selectedExecution().id);}}function Kc(t,n){if(t&1&&(_i$1(0,"pre",19),Iw(1),Jc$1()),t&2){let e=HD(5);gI(),Lh(e.formatOutput(e.selectedExecution()));}}function ep(t,n){if(t&1&&_D(0,Xc,1,2,"app-step-output",70)(1,Kc,2,1,"pre",19),t&2){let e=HD(4);MD(e.outputIsScalar()?0:1);}}function tp(t,n){if(t&1&&(_i$1(0,"div")(1,"h3"),Iw(2),Jc$1(),_D(3,Gc,3,3,"p",71)(4,Uc,3,3,"p",31)(5,Zc,4,2)(6,ep,2,1),Jc$1()),t&2){let e=HD(3);ch("data-testid",e.selectedExecution().type+"-view"),gI(2),Lh(e.selectedDefinition()?.name),gI(),MD(e.isQueued(e.selectedExecution())?3:e.isRunning(e.selectedExecution())?4:e.selectedExecution().error||e.selectedExecution().status==="failed"?5:6);}}function np(t,n){if(t&1&&_D(0,kc,9,5,"div",27)(1,vc,6,5,"div",28)(2,Nc,5,2,"div",29)(3,Vc,7,2,"div",30)(4,tp,7,3,"div"),t&2){let e,i=HD(2);MD((e=i.selectedExecution().type)==="loop"?0:e==="sub_workflow"?1:e==="interaction"?2:e==="extract"?3:4);}}function ip(t,n){if(t&1&&(_i$1(0,"nz-card",6),Pw(1,"transloco"),_i$1(2,"nz-steps",7),xD(3,uc,3,11,"nz-step",8,ac),Jc$1()(),_i$1(5,"nz-card",9),_D(6,mc,3,3,"p",10)(7,gc,8,5,"div",11)(8,np,5,1),Jc$1()),t&2){let e=HD();lh("nzTitle",Fw(1,2,"jobs.detail.stepsHeading")),gI(3),AD(e.rows()),gI(3),MD(e.selectedExecution()?e.selectedExecution().status==="skipped"?7:8:6);}}var ns=(()=>{class t{constructor(){this.theme=C(p),this.stepStatusTagClass=T,this.stepStatusTagColor=_,this.definitions=q0.required(),this.executions=q0.required(),this.job=q0.required(),this.selectedExecutionId=q0(null),this.currentExecutionId=q0(null),this.waitingEvent=q0(null),this.resuming=q0(false),this.canResume=q0(false),this.canRetryStep=q0(false),this.retryingStep=q0(false),this.selectExecution=U0(),this.resumeSubmit=U0(),this.extractResume=U0(),this.retryStep=U0(),this.nestedIteration=qo(null),this.nestedLoopDefinition=qo(null),this.nestedSelectedId=qo(null),this.extractValue=qo(""),this.questionnaireAnswers=qo({}),this.additionalComments=qo(""),this.confirmationComment=qo(""),this.commentReviewDrafts=qo([]),this.reviewRetryDrafts=qo([]),this.rows=Uw(()=>k(this.definitions(),this.executions())),this.selectedExecution=Uw(()=>{let e=this.selectedExecutionId();return e?this.executions().find(i=>i.id===e)??null:null}),this.selectedDefinition=Uw(()=>{let e=this.selectedExecution();return e?this.definitions().find(i=>i.id===e.stepDefinitionId)??null:null}),this.outputIsScalar=Uw(()=>{let e=this.selectedDefinition();return e?bg(e,this.job().workflowSnapshot?.appliesTo??"none").isScalar:false}),this.interactionKind=Uw(()=>{let e=this.selectedDefinition();return e?.type==="interaction"?e.interaction:null}),this.interactionData=Uw(()=>{let e=this.selectedDefinition();return E({waitingEvent:this.waitingEvent(),priorOutput:e?v(this.definitions(),this.executions(),e.id,this.job()):void 0,selectedOutput:this.selectedExecution()?.output})}),this.waitingPrompts=Uw(()=>{let e=this.selectedDefinition();return e?.type!=="interaction"?[]:D({interaction:e.interaction,waitingEvent:this.waitingEvent(),priorOutput:v(this.definitions(),this.executions(),e.id,this.job()),selectedOutput:this.selectedExecution()?.output})}),this.questionnaireItems=Uw(()=>H(this.interactionData())),this.questionnaireReady=Uw(()=>A$1(this.questionnaireItems(),this.questionnaireAnswers())),this.confirmationPrompt=Uw(()=>this.waitingPrompts()[0]??""),this.commentReviewItems=Uw(()=>J_(this.interactionData())??[]),this.showResume=Uw(()=>{if(!this.canResume())return false;let e=this.selectedExecution(),i=this.currentExecutionId();return e!=null&&e.id===i&&e.type==="interaction"&&this.job().status==="waiting_for_human"}),this.showExtractResume=Uw(()=>{if(!this.canResume())return false;let e=this.selectedExecution(),i=this.currentExecutionId();return e!=null&&e.id===i&&e.type==="extract"&&this.job().status==="waiting_for_human"}),this.extractPauseData=Uw(()=>{let e=this.waitingEvent();if(e&&Kr(e.data))return e.data;let i=this.selectedExecution()?.output;return Kr(i)?i:null}),this.showRetryStep=Uw(()=>{if(!this.canRetryStep())return false;let e=this.selectedExecution();return !e||e.status!=="failed"||e.id!==this.currentExecutionId()||py(this.selectedDefinition(),e)?false:C$1(e.type)}),this.showReviewAndRetry=Uw(()=>{if(!this.canRetryStep())return false;let e=this.selectedExecution();return !e||e.status!=="failed"||e.id!==this.currentExecutionId()?false:py(this.selectedDefinition(),e)}),id(()=>{let e=this.questionnaireItems(),i=e.map(o=>o.id).slice().sort().join("\0");qw(()=>{let o=this.questionnaireAnswers();if(Object.keys(o).slice().sort().join("\0")===i)return;let a={};for(let l of e)a[l.id]=o[l.id]??"";this.questionnaireAnswers.set(a),this.additionalComments.set(""),this.confirmationComment.set("");});}),id(()=>{let e=this.commentReviewItems(),i=e.map(o=>o.id).slice().sort().join("\0");qw(()=>{let o=this.commentReviewDrafts();if(o.map(l=>l.id).slice().sort().join("\0")===i)return;let a=new Map(o.map(l=>[l.id,l]));this.commentReviewDrafts.set(e.map(l=>{let h=a.get(l.id);return s(r$1({},l),{body:h?.body??l.body,included:h?.included??true})}));});}),id(()=>{let e=fy(this.selectedDefinition(),this.selectedExecution()),i=e.map(o=>o.id).slice().sort().join("\0");qw(()=>{let o=this.reviewRetryDrafts();if(o.map(l=>l.id).slice().sort().join("\0")===i)return;let a=new Map(o.map(l=>[l.id,l]));this.reviewRetryDrafts.set(e.map(l=>{let h=a.get(l.id);return s(r$1({},l),{body:h?.body??l.body,included:h?.included??l.included})}));});});}stepStatusKey(e){return `jobs.stepStatus.${e}`}stepTypeKey(e){return `step-list.stepType.${e}`}onStepClick(e){!e.reached||!e.execution||(this.nestedIteration.set(null),this.nestedLoopDefinition.set(null),this.selectExecution.emit(e.execution.id));}openIteration(e,i){this.nestedLoopDefinition.set(e),this.nestedIteration.set(i);let o=i.stepExecutions.find(a=>a.id===this.currentExecutionId()),r=i.stepExecutions[0];this.nestedSelectedId.set(o?.id??r?.id??null);}closeIteration(){this.nestedIteration.set(null),this.nestedLoopDefinition.set(null),this.nestedSelectedId.set(null);}onNestedSelect(e){this.nestedSelectedId.set(e);}setQuestionnaireAnswer(e,i){let o=i.target.value;this.questionnaireAnswers.update(r=>s(r$1({},r),{[e]:o}));}setAdditionalComments(e){this.additionalComments.set(e.target.value);}setConfirmationComment(e){this.confirmationComment.set(e.target.value);}submitQuestionnaire(){!this.questionnaireReady()||this.resuming()||this.resumeSubmit.emit(P(this.questionnaireItems(),this.questionnaireAnswers(),this.additionalComments()));}submitConfirmation(e){this.resuming()||this.resumeSubmit.emit(J(e,this.confirmationComment()));}setCommentReviewIncluded(e,i){let o=i.target.checked;this.commentReviewDrafts.update(r=>r.map(a=>a.id===e?s(r$1({},a),{included:o}):a));}setCommentReviewBody(e,i){let o=i.target.value;this.commentReviewDrafts.update(r=>r.map(a=>a.id===e?s(r$1({},a),{body:o}):a));}setCommentReviewAllIncluded(e){this.commentReviewDrafts.update(i=>i.map(o=>s(r$1({},o),{included:e})));}submitCommentReview(){this.resuming()||this.resumeSubmit.emit(M_(this.commentReviewDrafts()));}setReviewRetryIncluded(e,i){let o=i.target.checked;this.reviewRetryDrafts.update(r=>r.map(a=>a.id===e?s(r$1({},a),{included:o}):a));}setReviewRetryBody(e,i){let o=i.target.value;this.reviewRetryDrafts.update(r=>r.map(a=>a.id===e?s(r$1({},a),{body:o}):a));}setReviewRetryAllIncluded(e){this.reviewRetryDrafts.update(i=>i.map(o=>s(r$1({},o),{included:e})));}submitReviewAndRetry(){if(this.retryingStep())return;let e=this.reviewRetryDrafts().filter(i=>i.included).map(({file:i,line:o,body:r})=>({file:i,line:o,body:r}));this.retryStep.emit({comments:e});}onExtractValueInput(e){this.extractValue.set(e.target.value);}extractSourceDisplay(){let e=this.extractPauseData();return e?op(e.sourceValue):""}provideExtractValue(){this.extractResume.emit({action:"provide_value",value:this.extractValue()});}continueExtract(){this.extractResume.emit({action:"continue"});}cancelExtract(){this.extractResume.emit({action:"cancel"});}formatOutput(e){return e.error?e.error:e.output===void 0?"":typeof e.output=="string"?e.output:JSON.stringify(e.output,null,2)}formatUnknown(e){return e===void 0?"undefined":typeof e=="string"?e:JSON.stringify(e,null,2)}skippedOutput(e){return e.status!=="skipped"?null:T_(e.output)?e.output:null}isRunning(e){return e?.status==="running"}isQueued(e){return e?.status==="queued"}isSelected(e){return e.execution!=null&&e.execution.id===this.selectedExecutionId()}isCurrent(e){return e.execution!=null&&e.execution.id===this.currentExecutionId()}stepNzStatus(e){let i=e.execution?.status;return i==="failed"?"error":i==="completed"||i==="skipped"?"finish":i==="running"||i==="queued"||i==="waiting_for_children"||this.isSelected(e)||this.isCurrent(e)?"process":"wait"}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275cmp=ZE({type:t,selectors:[["app-job-step-workspace"]],inputs:{definitions:[1,"definitions"],executions:[1,"executions"],job:[1,"job"],selectedExecutionId:[1,"selectedExecutionId"],currentExecutionId:[1,"currentExecutionId"],waitingEvent:[1,"waitingEvent"],resuming:[1,"resuming"],canResume:[1,"canResume"],canRetryStep:[1,"canRetryStep"],retryingStep:[1,"retryingStep"]},outputs:{selectExecution:"selectExecution",resumeSubmit:"resumeSubmit",extractResume:"extractResume",retryStep:"retryStep"},decls:3,vars:1,consts:[["stepTitle",""],["data-testid","job-step-workspace",1,"workspace"],["data-testid","loop-drill-in",1,"nested"],["nz-button","","nzType","link","type","button","data-testid","loop-back",3,"click"],[1,"nested-label"],[3,"selectExecution","resumeSubmit","extractResume","retryStep","definitions","executions","job","selectedExecutionId","currentExecutionId","waitingEvent","resuming","canResume","canRetryStep","retryingStep"],["nzSize","small","data-testid","step-side-panel",1,"side-panel",3,"nzTitle"],["nzDirection","vertical","nzSize","small",1,"step-list"],[3,"nzDisabled","nzStatus","selected","current","unreached","skipped","nzTitle"],["nzSize","small","data-testid","step-main-area",1,"main-area"],["data-testid","no-step-selected",1,"muted"],["data-testid","skipped-view"],[3,"nzDisabled","nzStatus","nzTitle"],["type","button",1,"step-button",3,"click","disabled"],[1,"step-name"],[1,"step-meta"],[1,"muted"],[3,"nzColor","ngClass"],["data-testid","skipped-reason",1,"muted"],["data-testid","step-output"],[1,"skip-details"],["data-testid","skipped-condition-type"],["data-testid","skipped-condition-stepId"],["data-testid","skipped-condition-field"],["data-testid","skipped-evaluated-value"],["data-testid","skipped-inputs"],["data-testid","skipped-condition-value"],["data-testid","loop-view"],["data-testid","sub-workflow-view"],["data-testid","interaction-view"],["data-testid","extract-view"],["data-testid","step-in-progress"],["data-testid","loop-iterations",1,"iteration-list"],[1,"error"],["nz-button","","nzType","link","type","button",3,"click"],[3,"jobIds"],["data-testid","resume-form",1,"resume"],["data-testid","confirmation-resume"],["data-testid","comment-review-resume"],["data-testid","questionnaire-resume"],["data-testid","confirmation-prompt"],[1,"resume-field"],["nz-input","","data-testid","confirmation-comment","rows","2",3,"input","value"],[1,"confirmation-actions"],["nz-button","","nzType","primary","type","button","data-testid","confirmation-approve",3,"click","disabled"],["nz-button","","nzDanger","","type","button","data-testid","confirmation-reject",3,"click","disabled"],[1,"comment-review-toolbar"],["nz-button","","type","button","data-testid","comment-review-select-all",3,"click","disabled"],["nz-button","","type","button","data-testid","comment-review-select-none",3,"click","disabled"],["data-testid","comment-review-suggestions"],[1,"comment-review-row"],["data-testid","comment-review-empty",1,"muted"],["nz-button","","nzType","primary","type","button","data-testid","resume-button",3,"click","disabled"],[1,"comment-review-include"],["type","checkbox",3,"change","checked"],[1,"comment-review-fields"],[1,"comment-review-location"],["nz-input","","rows","2",3,"input","value"],["data-testid","waiting-questions"],[1,"resume-question"],["nz-input","","data-testid","resume-additional-comments","rows","2",3,"input","value"],["data-testid","extract-resume-form",1,"resume"],["data-testid","step-error",1,"error"],["data-testid","extract-source-value"],["nz-input","","data-testid","extract-value",3,"input","value"],[1,"extract-actions"],["nz-button","","nzType","primary","type","button","data-testid","extract-provide",3,"click","disabled"],["nz-button","","type","button","data-testid","extract-continue",3,"click","disabled"],["nz-button","","nzDanger","","type","button","data-testid","extract-cancel",3,"click","disabled"],["data-testid","extract-pattern"],[3,"rawText","executionId"],["data-testid","step-queued"],["data-testid","review-and-retry",1,"resume"],["nz-button","","nzType","primary","type","button","data-testid","retry-step",3,"disabled"],["data-testid","review-and-retry-hint",1,"muted"],["nz-button","","type","button","data-testid","review-and-retry-select-all",3,"click","disabled"],["nz-button","","type","button","data-testid","review-and-retry-select-none",3,"click","disabled"],["data-testid","review-and-retry-comments"],["nz-button","","nzType","primary","type","button","data-testid","review-and-retry-submit",3,"click","disabled"],["nz-button","","nzType","primary","type","button","data-testid","retry-step",3,"click","disabled"]],template:function(i,o){if(i&1&&(_i$1(0,"div",1),_D(1,cc,8,19,"div",2)(2,ip,9,4),Jc$1()),i&2){let r;gI(),MD((r=o.nestedIteration())?1:2,r);}},dependencies:[t,$8,M5,pf,bd,sp$1,fp$1,Nt,Ke,ai$1,z,cr,lr,Rn,W$1,I$1,Lt,Xr,Kt],styles:['[_nghost-%COMP%]{display:block;min-width:0;max-width:100%}.workspace[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(14rem,18rem) minmax(0,1fr);gap:1rem;align-items:start;min-height:20rem;min-width:0;max-width:100%}.nested[_ngcontent-%COMP%]{grid-column:1 / -1;min-width:0}.nested-label[_ngcontent-%COMP%]{margin:0 0 .75rem;color:var(--knoflows-text-secondary, #6b6558)}.side-panel[_ngcontent-%COMP%], .main-area[_ngcontent-%COMP%]{min-width:0}[_nghost-%COMP%] .side-panel.ant-card, [_nghost-%COMP%] .main-area.ant-card{border:1px solid var(--knoflows-border, #e1dacb);border-radius:8px;background:var(--knoflows-surface, #fff);box-shadow:none}.main-area[_ngcontent-%COMP%]{overflow-x:auto;overflow-wrap:anywhere;word-break:break-word;min-height:16rem}[_nghost-%COMP%] .main-area .ant-card-body{min-height:16rem}.main-area[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-top:0;color:var(--knoflows-heading, #12161f)}[_nghost-%COMP%] .step-list.ant-steps-vertical{width:100%}[_nghost-%COMP%] .step-list.ant-steps-vertical>.ant-steps-item{flex:0 0 auto;overflow:hidden;margin:0;padding:0}[_nghost-%COMP%] .step-list.ant-steps-vertical>.ant-steps-item>.ant-steps-item-container{padding-bottom:.35rem}[_nghost-%COMP%] .step-list .ant-steps-item-icon, [_nghost-%COMP%] .step-list .ant-steps-item-tail{display:none!important}[_nghost-%COMP%] .step-list .ant-steps-item-content{min-height:0;margin-inline-start:0!important;width:100%;overflow:visible}[_nghost-%COMP%] .step-list .ant-steps-item-title{display:block;width:100%;padding-right:0;line-height:inherit;color:inherit}[_nghost-%COMP%] .step-list .ant-steps-item-title:after{display:none}.step-button[_ngcontent-%COMP%]{position:relative;width:100%;text-align:left;font:inherit;padding:.45rem .55rem .45rem .7rem;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--knoflows-text-secondary, #6b6558);cursor:pointer;display:flex;flex-direction:column;gap:.2rem}.step-button[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--knoflows-active-bg, #eef1fc)}.step-button.selected[_ngcontent-%COMP%], .step-button.current[_ngcontent-%COMP%]{background:var(--knoflows-active-bg, #eef1fc);color:var(--knoflows-heading, #12161f)}.step-button.selected[_ngcontent-%COMP%]:before, .step-button.current[_ngcontent-%COMP%]:before{content:"";position:absolute;top:8px;bottom:8px;left:4px;width:3px;border-radius:999px;background:var(--knoflows-link, #3854d6)}.step-button.selected[_ngcontent-%COMP%] .step-name[_ngcontent-%COMP%], .step-button.current[_ngcontent-%COMP%] .step-name[_ngcontent-%COMP%]{color:var(--knoflows-heading, #12161f);font-weight:700}.step-button[_ngcontent-%COMP%]:disabled, .step-button.unreached[_ngcontent-%COMP%]{opacity:.55;cursor:not-allowed}.step-button.skipped[_ngcontent-%COMP%]{color:var(--knoflows-text-secondary, #6b6558)}.step-name[_ngcontent-%COMP%]{font-weight:600;overflow-wrap:anywhere}.step-meta[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.35rem;align-items:center;font-size:.8rem}.muted[_ngcontent-%COMP%]{color:var(--knoflows-text-secondary, #6b6558)}.error[_ngcontent-%COMP%]{color:#d64545}[data-testid=retry-step][_ngcontent-%COMP%], [data-testid=review-and-retry][_ngcontent-%COMP%]{margin-top:.5rem}pre[_ngcontent-%COMP%]{max-width:100%;overflow:auto;padding:.75rem;background:var(--knoflows-page, #f7f4ee);border:1px solid var(--knoflows-border, #e1dacb);border-radius:8px;font-size:.85rem;color:var(--knoflows-text, #383429)}.iteration-list[_ngcontent-%COMP%]{padding-left:1.1rem}.resume-question[_ngcontent-%COMP%], .resume-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.35rem;margin:0 0 .75rem;color:var(--knoflows-text, #383429)}.resume-question[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:500;color:var(--knoflows-text, #383429)}.resume[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{resize:vertical}.confirmation-actions[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.5rem}.comment-review-toolbar[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 .75rem}.comment-review-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.5rem .75rem;align-items:start;margin:0 0 .75rem}.comment-review-include[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.35rem;padding-top:.25rem;font-size:.85rem}.comment-review-fields[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.35rem;min-width:0}.comment-review-location[_ngcontent-%COMP%]{font-family:JetBrains Mono,ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.8rem}.extract-actions[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.5rem}.skip-details[_ngcontent-%COMP%]{display:grid;gap:.5rem;margin:0 0 .75rem}.skip-details[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:grid;grid-template-columns:8rem minmax(0,1fr);gap:.5rem}.skip-details[_ngcontent-%COMP%] dt[_ngcontent-%COMP%]{margin:0;color:var(--knoflows-text-secondary, #6b6558);font-size:.85rem}.skip-details[_ngcontent-%COMP%] dd[_ngcontent-%COMP%]{margin:0;overflow-wrap:anywhere}@media(max-width:48rem){.workspace[_ngcontent-%COMP%]{grid-template-columns:minmax(0,1fr)}}']});}}return t})();function Kr(t){return t!=null&&typeof t=="object"&&!Array.isArray(t)&&"sourceValue"in t}function op(t){return t==null?"":typeof t=="string"?t:JSON.stringify(t,null,2)}function rp(t,n){t&1&&(_i$1(0,"p",1),Iw(1),Pw(2,"transloco"),Jc$1()),t&2&&(gI(),Lh(Fw(2,1,"common.loading")));}function sp(t,n){if(t&1&&(_i$1(0,"p",2),Iw(1),Jc$1()),t&2){let e=HD();gI(),Lh(e.loadError());}}function ap(t,n){if(t&1&&(Iw(0),Pw(1,"transloco")),t&2){let e=HD(2);Fh(" ",Fw(1,2,"jobs.detail.worktreeDeleted")," ",e.worktreeDeletedAt," ");}}function lp(t,n){if(t&1&&Iw(0),t&2){let e=HD(3);rl$1(" (",e.branch,") ");}}function cp(t,n){if(t&1&&(Iw(0),Pw(1,"transloco"),_D(2,lp,1,1)),t&2){let e=HD(2);Fh(" ",Fw(1,3,"jobs.detail.worktree")," ",e.worktreePath," "),gI(2),MD(e.branch?2:-1);}}function pp(t,n){if(t&1&&(_i$1(0,"p",12),_D(1,ap,2,4)(2,cp,3,5),Jc$1()),t&2){let e=HD();gI(),MD(e.worktreeDeletedAt?1:2);}}function dp(t,n){if(t&1){let e=FD();_i$1(0,"button",21),mh("click",function(){Fu(e);let o=HD(2);return ju(o.cancelJob())}),Iw(1),Pw(2,"transloco"),Jc$1();}if(t&2){let e=HD(2);lh("disabled",e.cancelling()),gI(),rl$1(" ",Fw(2,2,e.cancelling()?"jobs.detail.cancelling":"jobs.detail.cancel")," ");}}function up(t,n){if(t&1){let e=FD();_i$1(0,"button",22),mh("click",function(){Fu(e);let o=HD(2);return ju(o.retryWorkflow())}),Iw(1),Pw(2,"transloco"),Jc$1();}if(t&2){let e=HD(2);lh("disabled",e.retryingWorkflow()),gI(),rl$1(" ",Fw(2,2,e.retryingWorkflow()?"jobs.detail.retrying":"jobs.detail.retryWorkflow")," ");}}function mp(t,n){if(t&1){let e=FD();_i$1(0,"button",23),mh("click",function(){Fu(e);let o=HD(2);return ju(o.jumpToCurrent())}),Iw(1),Pw(2,"transloco"),Jc$1();}t&2&&(gI(),rl$1(" ",Fw(2,1,"jobs.detail.jumpToCurrent")," "));}function fp(t,n){if(t&1&&(_i$1(0,"p",17),Iw(1),Jc$1()),t&2){let e=HD(2);gI(),Lh(e.actionError());}}function hp(t,n){t&1&&(uh(0,"nz-alert",18),Pw(1,"transloco")),t&2&&lh("nzMessage",Fw(1,1,"jobs.detail.queued"));}function _p(t,n){if(t&1){let e=FD();_i$1(0,"app-job-step-workspace",24),mh("selectExecution",function(o){Fu(e);let r=HD(2);return ju(r.onSelectExecution(o))})("resumeSubmit",function(o){Fu(e);let r=HD(2);return ju(r.submitResume(o))})("extractResume",function(o){Fu(e);let r=HD(2);return ju(r.submitExtractResume(o))})("retryStep",function(o){Fu(e);let r=HD(2);return ju(r.retryThisStep(o))}),Jc$1();}if(t&2){let e=HD(),i=HD();lh("definitions",n.steps)("executions",e.stepHistory)("job",e)("selectedExecutionId",i.viewedExecutionId())("currentExecutionId",i.blockingExecutionId()??i.currentStep()?.id??null)("waitingEvent",i.waitingEvent())("resuming",i.resuming())("canResume",true)("canRetryStep",e.status==="failed")("retryingStep",i.retryingStep());}}function gp(t,n){t&1&&(_i$1(0,"p",20),Iw(1),Pw(2,"transloco"),Jc$1()),t&2&&(gI(),rl$1(" ",Fw(2,1,"jobs.detail.workflowMissing")," "));}function xp(t,n){if(t&1){let e=FD();_i$1(0,"header",3)(1,"div")(2,"a",4),Iw(3),Pw(4,"transloco"),Jc$1(),_i$1(5,"div",5)(6,"h1",6),Iw(7),Jc$1(),_i$1(8,"nz-tag",7),Iw(9),Pw(10,"transloco"),Jc$1()(),_i$1(11,"div",8)(12,"span",9),Iw(13),Jc$1(),_i$1(14,"button",10),Pw(15,"transloco"),mh("click",function(){let o=Fu(e),r=HD();return ju(r.copyJobId(o.id))}),uh(16,"span",11),Jc$1()(),_D(17,pp,3,1,"p",12),Jc$1(),_i$1(18,"div",13),_D(19,dp,3,4,"button",14),_D(20,up,3,4,"button",15),_D(21,mp,3,3,"button",16),Jc$1()(),_D(22,fp,2,1,"p",17),_D(23,hp,2,3,"nz-alert",18)(24,_p,1,10,"app-job-step-workspace",19)(25,gp,3,3,"p",20);}if(t&2){let e,i=n,o=HD();gI(3),Lh(Fw(4,13,"jobs.detail.backToStart")),gI(4),Lh(o.composeJobTitle(i)),gI(),lh("nzColor",o.jobStatusTagColor(i.status,o.theme.theme()))("ngClass",o.jobStatusTagClass(i.status,o.theme.theme())),gI(),Lh(Fw(10,15,o.statusKey(i.status))),gI(4),Lh(i.id),gI(),ch("aria-label",Fw(15,17,"jobs.detail.copyId")),gI(3),MD(i.worktreePath?17:-1),gI(2),MD(o.isTerminalStatus(i.status)?-1:19),gI(),MD(i.status==="failed"?20:-1),gI(),MD(o.showJumpToCurrent()?21:-1),gI(),MD(o.actionError()?22:-1),gI(),MD(o.showQueued()?23:(e=o.workflow())?24:25,e);}}var iu=(()=>{class t{constructor(){this.route=C(C1),this.router=C(J1),this.jobsApi=C($),this.eventsService=C(f),this.transloco=C(Ve),this.destroyRef=C(at$1),this.theme=C(p),this.jobStatusTagClass=x,this.jobStatusTagColor=h,this.composeJobTitle=b,this.job=qo(null),this.workflow=qo(null),this.loading=qo(true),this.loadError=qo(null),this.actionError=qo(null),this.eventStream=qo(null),this.eventsSnapshot=qo([]),this.autoFollow=qo(true),this.viewedExecutionId=qo(null),this.resuming=qo(false),this.retryingWorkflow=qo(false),this.retryingStep=qo(false),this.cancelling=qo(false),this.currentStep=Uw(()=>{let e=this.job();return e?I(e):null}),this.showQueued=Uw(()=>{let e=this.job();return e!=null&&I(e)==null}),this.showJumpToCurrent=Uw(()=>{let e=this.currentStep();return e?this.viewedExecutionId()!==e.id:false}),this.eventLog=Uw(()=>this.eventStream()?.events()??this.eventsSnapshot()),this.waitingEvent=Uw(()=>{let e=this.eventLog();for(let i=e.length-1;i>=0;i-=1){let o=e[i];if(o?.type==="waiting_for_human")return o}return null}),this.blockingExecutionId=Uw(()=>this.job()?.currentStepExecutionId??null),this.destroyRef.onDestroy(()=>this.closeStream()),this.route.paramMap.pipe(ue(this.destroyRef)).subscribe(e=>{let i=e.get("id");if(!i){this.loading.set(false),this.loadError.set(this.transloco.translate("jobs.detail.loadFailed"));return}this.load(i);}),id(()=>{let e=this.eventStream();if(!e)return;let i=e.latest();i&&qw(()=>{(i.type==="step_started"||i.type==="step_completed"||i.type==="step_failed"||i.type==="waiting_for_human"||i.type==="waiting_for_children"||i.type==="human_answered"||i.type==="job_completed"||i.type==="job_failed"||i.type==="job_cancelled")&&this.refreshJob(i.jobId),(i.type==="job_completed"||i.type==="job_failed"||i.type==="job_cancelled")&&this.closeStream();});}),id(()=>{let e=this.currentStep();this.autoFollow()&&qw(()=>{this.viewedExecutionId.set(e?.id??null);});});}statusKey(e){return `jobs.status.${e}`}isTerminalStatus(e){return w(e)}copyJobId(e){let i=globalThis.navigator?.clipboard;i?.writeText&&i.writeText(e);}onSelectExecution(e){this.autoFollow.set(false),this.viewedExecutionId.set(e);}jumpToCurrent(){this.autoFollow.set(true),this.viewedExecutionId.set(this.currentStep()?.id??null);}submitResume(e){let i=this.job();i&&(this.actionError.set(null),this.resuming.set(true),this.jobsApi.resume(i.id,e).subscribe({next:o=>{this.resuming.set(false),this.applyJob(o),w(o.status)&&this.closeStream();},error:o=>{this.resuming.set(false),this.actionError.set(this.errorMessage(o,this.transloco.translate("jobs.errors.resumeFailed")));}}));}submitExtractResume(e){let i=this.job();i&&(this.actionError.set(null),this.resuming.set(true),this.jobsApi.resume(i.id,e).subscribe({next:o=>{this.resuming.set(false),this.applyJob(o),w(o.status)&&this.closeStream();},error:o=>{this.resuming.set(false),this.actionError.set(this.errorMessage(o,this.transloco.translate("jobs.errors.resumeFailed")));}}));}retryWorkflow(){let e=this.job();!e||e.status!=="failed"||this.retryingWorkflow()||(this.actionError.set(null),this.retryingWorkflow.set(true),this.jobsApi.retry(e.id).subscribe({next:i=>{this.retryingWorkflow.set(false),this.router.navigate(["/jobs",i.id]);},error:i=>{this.retryingWorkflow.set(false),this.actionError.set(this.errorMessage(i,this.transloco.translate("jobs.errors.retryFailed")));}}));}retryThisStep(e){let i=this.job();!i||i.status!=="failed"||this.retryingStep()||(this.actionError.set(null),this.retryingStep.set(true),this.jobsApi.retryStep(i.id,e).subscribe({next:o=>{this.retryingStep.set(false),this.applyJob(o),w(o.status)?this.closeStream():(this.closeStream(),this.eventStream.set(this.eventsService.connect({jobId:o.id})));},error:o=>{this.retryingStep.set(false),this.actionError.set(this.errorMessage(o,this.transloco.translate("jobs.errors.retryStepFailed")));}}));}cancelJob(){let e=this.job();!e||w(e.status)||this.cancelling()||(this.actionError.set(null),this.cancelling.set(true),this.jobsApi.cancel(e.id).subscribe({next:i=>{this.cancelling.set(false),this.applyJob(i),w(i.status)&&this.closeStream();},error:i=>{this.cancelling.set(false),this.actionError.set(this.errorMessage(i,this.transloco.translate("jobs.errors.cancelFailed")));}}));}load(e){this.loading.set(true),this.loadError.set(null),this.actionError.set(null),this.autoFollow.set(true),this.viewedExecutionId.set(null),this.retryingWorkflow.set(false),this.retryingStep.set(false),this.cancelling.set(false),this.closeStream(),this.eventsSnapshot.set([]),this.jobsApi.get(e).pipe(ue(this.destroyRef)).subscribe({next:i=>{this.applyJob(i),this.loading.set(false),w(i.status)||this.eventStream.set(this.eventsService.connect({jobId:i.id}));},error:i=>{this.loading.set(false),this.loadError.set(this.errorMessage(i,this.transloco.translate("jobs.detail.loadFailed")));}});}applyJob(e){this.job.set(e),this.workflow.set(e.workflowSnapshot??null),this.autoFollow()&&this.viewedExecutionId.set(I(e)?.id??null);}refreshJob(e){this.jobsApi.get(e).subscribe({next:i=>this.applyJob(i),error:i=>{this.actionError.set(this.errorMessage(i,this.transloco.translate("jobs.errors.refreshFailed")));}});}closeStream(){let e=this.eventStream();e&&(this.eventsSnapshot.set(e.events()),e.close(),this.eventStream.set(null));}errorMessage(e,i){return e instanceof bi$1||e instanceof Error?e.message:i}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275cmp=ZE({type:t,selectors:[["app-job-detail"]],decls:4,vars:1,consts:[["data-testid","job-detail",1,"detail-page"],["data-testid","loading"],["data-testid","load-error",1,"error"],[1,"header"],["routerLink","/jobs"],[1,"title-row"],["data-testid","job-title"],["data-testid","job-status",3,"nzColor","ngClass"],[1,"job-id-line"],["data-testid","job-id",1,"job-id","mono"],["type","button","nz-button","","nzType","text","nzSize","small","data-testid","copy-job-id",1,"copy-job-id",3,"click"],["nz-icon","","nzType","copy","nzTheme","outline"],["data-testid","job-worktree",1,"meta"],[1,"header-actions"],["nz-button","","nzDanger","","type","button","data-testid","cancel-job",3,"disabled"],["nz-button","","nzType","primary","type","button","data-testid","retry-workflow",3,"disabled"],["nz-button","","type","button","data-testid","jump-to-current"],["data-testid","action-error",1,"error"],["data-testid","queued-message","nzType","info",3,"nzMessage"],[3,"definitions","executions","job","selectedExecutionId","currentExecutionId","waitingEvent","resuming","canResume","canRetryStep","retryingStep"],["data-testid","missing-workflow",1,"muted"],["nz-button","","nzDanger","","type","button","data-testid","cancel-job",3,"click","disabled"],["nz-button","","nzType","primary","type","button","data-testid","retry-workflow",3,"click","disabled"],["nz-button","","type","button","data-testid","jump-to-current",3,"click"],[3,"selectExecution","resumeSubmit","extractResume","retryStep","definitions","executions","job","selectedExecutionId","currentExecutionId","waitingEvent","resuming","canResume","canRetryStep","retryingStep"]],template:function(i,o){if(i&1&&(_i$1(0,"main",0),_D(1,rp,3,3,"p",1)(2,sp,2,1,"p",2)(3,xp,26,19),Jc$1()),i&2){let r;gI(),MD(o.loading()?1:o.loadError()?2:(r=o.job())?3:-1,r);}},dependencies:[$8,M5,v3,Gn,un,pf,bd,sp$1,fp$1,Ah,Th,W$1,I$1,ns,Kt],styles:["[_nghost-%COMP%]{display:block;min-width:0;max-width:100%}.detail-page[_ngcontent-%COMP%]{padding:1.25rem 1.5rem 3rem;display:flex;flex-direction:column;gap:1rem;min-width:0;max-width:100%}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}.header-actions[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}.title-row[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;margin-top:.25rem}.title-row[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0;font-size:1.35rem}.title-row[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{margin-inline-end:0}.job-id-line[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.15rem;margin-top:.2rem}.job-id[_ngcontent-%COMP%]{font-size:.8rem;color:var(--knoflows-text-secondary, #6b6558)}.copy-job-id[_ngcontent-%COMP%]{color:var(--knoflows-text-secondary, #6b6558)}.meta[_ngcontent-%COMP%]{margin:.35rem 0 0;color:#57534e;display:flex;flex-wrap:wrap;gap:.35rem;align-items:center}.error[_ngcontent-%COMP%]{color:#9f1239}.muted[_ngcontent-%COMP%]{color:#78716c}"]});}}return t})();
|
|
69
|
+
Please report this to https://github.com/markedjs/marked.`,t){let i="<p>An error occurred:</p><pre>"+ke(e.message+"",true)+"</pre>";return n?Promise.resolve(i):i}if(n)return Promise.reject(e);throw e}}},pt=new tc;function F(t,n){return pt.parse(t,n)}F.options=F.setOptions=function(t){return pt.setOptions(t),F.defaults=pt.defaults,$r(F.defaults),F};F.getDefaults=bi;F.defaults=dt;function nc(...t){return pt.use(...t),F.defaults=pt.defaults,$r(F.defaults),F}F.use=nc;F.walkTokens=function(t,n){return pt.walkTokens(t,n)};F.parseInline=pt.parseInline;F.Parser=Ie;F.parser=Ie.parse;F.Renderer=Nn;F.TextRenderer=Ti;F.Lexer=Ee;F.lexer=Ee.lex;F.Tokenizer=On;F.Hooks=Gt;F.parse=F;F.options;F.setOptions;F.walkTokens;F.parseInline;Ie.parse;Ee.lex;function Hr(t){let n=F.parse(t,{async:false,gfm:true,breaks:true});return Ir.sanitize(n)}function ic(t,n){if(t&1&&uh(0,"div",3),t&2){let e=HD();lh("innerHTML",e.safeHtml(),vv);}}function oc(t,n){if(t&1&&(_i$1(0,"pre",4),Iw(1),Jc$1()),t&2){let e=HD();gI(),Lh(e.rawText());}}var Xr=(()=>{class t{constructor(){this.sanitizer=C(n6),this.rawText=q0.required(),this.executionId=q0(null),this.view=qo("markdown"),this.safeHtml=Uw(()=>{let e=Hr(this.rawText());return this.sanitizer.bypassSecurityTrustHtml(e)}),id(()=>{this.executionId(),qw(()=>this.view.set("markdown"));});}setView(e){this.view.set(e);}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275cmp=ZE({type:t,selectors:[["app-step-output"]],inputs:{rawText:[1,"rawText"],executionId:[1,"executionId"]},decls:9,vars:9,consts:[["data-testid","step-output-toggle",1,"output-toggle"],["nz-button","","nzSize","small","type","button","data-testid","step-output-view-markdown",3,"click","nzType"],["nz-button","","nzSize","small","type","button","data-testid","step-output-view-raw",3,"click","nzType"],["data-testid","step-output",1,"knoflows-step-output","knoflows-markdown-body",3,"innerHTML"],["data-testid","step-output",1,"knoflows-step-output","knoflows-step-output-raw"]],template:function(i,o){i&1&&(_i$1(0,"div",0)(1,"button",1),mh("click",function(){return o.setView("markdown")}),Iw(2),Pw(3,"transloco"),Jc$1(),_i$1(4,"button",2),mh("click",function(){return o.setView("raw")}),Iw(5),Pw(6,"transloco"),Jc$1()(),_D(7,ic,1,1,"div",3)(8,oc,2,1,"pre",4)),i&2&&(gI(),lh("nzType",o.view()==="markdown"?"primary":"default"),gI(),rl$1(" ",Fw(3,5,"jobs.detail.outputView.markdown")," "),gI(2),lh("nzType",o.view()==="raw"?"primary":"default"),gI(),rl$1(" ",Fw(6,7,"jobs.detail.outputView.raw")," "),gI(2),MD(o.view()==="markdown"?7:8));},dependencies:[pf,bd,sp$1,fp$1,Kt],styles:["[_nghost-%COMP%]{display:block;min-width:0}.output-toggle[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.35rem;margin:0 0 .75rem}"]});}}return t})();var es=t=>({index:t}),ts=()=>[],ac=(t,n)=>n.definition.id,lc=(t,n)=>n.index,zi=(t,n)=>n.id;function cc(t,n){if(t&1){let e=FD();_i$1(0,"div",2)(1,"button",3),mh("click",function(){Fu(e);let o=HD();return ju(o.closeIteration())}),Iw(2),Pw(3,"transloco"),Jc$1(),_i$1(4,"p",4),Iw(5),Pw(6,"transloco"),Jc$1(),_i$1(7,"app-job-step-workspace",5),mh("selectExecution",function(o){Fu(e);let r=HD();return ju(r.onNestedSelect(o))})("resumeSubmit",function(o){Fu(e);let r=HD();return ju(r.resumeSubmit.emit(o))})("extractResume",function(o){Fu(e);let r=HD();return ju(r.extractResume.emit(o))})("retryStep",function(o){Fu(e);let r=HD();return ju(r.retryStep.emit(o))}),Jc$1()();}if(t&2){let e=n,i=HD();gI(2),rl$1(" ",Fw(3,12,"jobs.detail.loopBack")," "),gI(3),rl$1(" ",jw(6,14,"jobs.detail.loopIteration",Aw(17,es,e.index+1))," "),gI(2),lh("definitions",i.nestedLoopDefinition().steps)("executions",e.stepExecutions)("job",i.job())("selectedExecutionId",i.nestedSelectedId())("currentExecutionId",i.currentExecutionId())("waitingEvent",i.waitingEvent())("resuming",i.resuming())("canResume",i.canResume())("canRetryStep",i.canRetryStep())("retryingStep",i.retryingStep());}}function pc(t,n){if(t&1&&(_i$1(0,"nz-tag",17),Iw(1),Pw(2,"transloco"),Jc$1()),t&2){let e=n,i=HD(2).$implicit,o=HD(2);lh("nzColor",o.stepStatusTagColor(e.status,o.theme.theme()))("ngClass",o.stepStatusTagClass(e.status,o.theme.theme())),ch("data-testid","step-status-"+i.definition.id),gI(),Lh(Fw(2,4,o.stepStatusKey(e.status)));}}function dc(t,n){if(t&1){let e=FD();_i$1(0,"button",13),mh("click",function(){Fu(e);let o=HD().$implicit,r=HD(2);return ju(r.onStepClick(o))}),_i$1(1,"span",14),Iw(2),Jc$1(),_i$1(3,"span",15)(4,"span",16),Iw(5),Pw(6,"transloco"),Jc$1(),_D(7,pc,3,6,"nz-tag",17),Jc$1()();}if(t&2){let e,i=HD().$implicit,o=HD(2);Sh("selected",o.isSelected(i))("current",o.isCurrent(i))("unreached",!i.reached)("skipped",i.execution?.status==="skipped"),lh("disabled",!i.reached),ch("data-testid","step-"+i.definition.id),gI(2),Lh(i.definition.name),gI(3),Lh(Fw(6,13,o.stepTypeKey(i.definition.type))),gI(2),MD((e=i.execution)?7:-1,e);}}function uc(t,n){if(t&1&&(_i$1(0,"nz-step",12),rh(1,dc,8,15,"ng-template",null,0,Vw),Jc$1()),t&2){let e=n.$implicit,i=QD(2),o=HD(2);Sh("selected",o.isSelected(e))("current",o.isCurrent(e))("unreached",!e.reached)("skipped",e.execution?.status==="skipped"),lh("nzDisabled",!e.reached)("nzStatus",o.stepNzStatus(e))("nzTitle",i);}}function mc(t,n){t&1&&(_i$1(0,"p",10),Iw(1),Pw(2,"transloco"),Jc$1()),t&2&&(gI(),rl$1(" ",Fw(2,1,"jobs.detail.noStepSelected")," "));}function fc(t,n){if(t&1&&(_i$1(0,"div")(1,"dt"),Iw(2),Pw(3,"transloco"),Jc$1(),_i$1(4,"dd",26),Iw(5),Jc$1()()),t&2){let e=HD(),i=HD(3);gI(2),Lh(Fw(3,2,"jobs.detail.skipped.equalsValue")),gI(3),rl$1(" ",i.formatUnknown(e.condition.value)," ");}}function hc(t,n){if(t&1&&(_i$1(0,"dl",20)(1,"div")(2,"dt"),Iw(3),Pw(4,"transloco"),Jc$1(),_i$1(5,"dd",21),Iw(6),Jc$1()(),_i$1(7,"div")(8,"dt"),Iw(9),Pw(10,"transloco"),Jc$1(),_i$1(11,"dd",22),Iw(12),Jc$1()(),_i$1(13,"div")(14,"dt"),Iw(15),Pw(16,"transloco"),Jc$1(),_i$1(17,"dd",23),Iw(18),Jc$1()(),_D(19,fc,6,4,"div"),_i$1(20,"div")(21,"dt"),Iw(22),Pw(23,"transloco"),Jc$1(),_i$1(24,"dd",24),Iw(25),Jc$1()()(),_i$1(26,"pre",25),Iw(27),Jc$1()),t&2){let e=n,i=HD(3);gI(3),Lh(Fw(4,10,"jobs.detail.skipped.predicate")),gI(3),Lh(e.condition.type),gI(3),Lh(Fw(10,12,"jobs.detail.skipped.stepId")),gI(3),Lh(e.condition.stepId),gI(3),Lh(Fw(16,14,"jobs.detail.skipped.field")),gI(3),Lh(e.condition.field),gI(),MD(e.condition.type==="field_equals"?19:-1),gI(3),Lh(Fw(23,16,"jobs.detail.skipped.fieldValue")),gI(3),rl$1(" ",i.formatUnknown(e.inputs.fieldValue)," "),gI(2),Lh(i.formatUnknown(e.inputs));}}function _c(t,n){if(t&1&&(_i$1(0,"pre",19),Iw(1),Jc$1()),t&2){let e=HD(3);gI(),Lh(e.formatOutput(e.selectedExecution()));}}function gc(t,n){if(t&1&&(_i$1(0,"div",11)(1,"h3"),Iw(2),Jc$1(),_i$1(3,"p",18),Iw(4),Pw(5,"transloco"),Jc$1(),_D(6,hc,28,18)(7,_c,2,1,"pre",19),Jc$1()),t&2){let e,i=HD(2);gI(2),Lh(i.selectedDefinition()?.name),gI(2),rl$1(" ",Fw(5,3,"jobs.detail.skipped.reason")," "),gI(2),MD((e=i.skippedOutput(i.selectedExecution()))?6:7,e);}}function xc(t,n){t&1&&(_i$1(0,"p",31),Iw(1),Pw(2,"transloco"),Jc$1()),t&2&&(gI(),Lh(Fw(2,1,"jobs.detail.inProgress.loop")));}function bc(t,n){if(t&1){let e=FD();_i$1(0,"li")(1,"button",34),mh("click",function(){let o=Fu(e).$implicit,r=HD(4);return ju(r.openIteration(r.selectedDefinition(),o))}),Iw(2),Pw(3,"transloco"),Jc$1()();}if(t&2){let e=n.$implicit;gI(),ch("data-testid","loop-iteration-"+e.index),gI(),rl$1(" ",jw(3,2,"jobs.detail.loopIteration",Aw(5,es,e.index+1))," ");}}function Cc(t,n){t&1&&(_i$1(0,"li",16),Iw(1),Pw(2,"transloco"),Jc$1()),t&2&&(gI(),Lh(Fw(2,1,"jobs.detail.noIterations")));}function Sc(t,n){if(t&1&&(_i$1(0,"p",33),Iw(1),Jc$1()),t&2){let e=HD(4);gI(),Lh(e.selectedExecution().error);}}function kc(t,n){if(t&1&&(_i$1(0,"div",27)(1,"h3"),Iw(2),Jc$1(),_D(3,xc,3,3,"p",31),_i$1(4,"ul",32),xD(5,bc,4,7,"li",null,lc,false,Cc,3,3,"li",16),Jc$1(),_D(8,Sc,2,1,"p",33),Jc$1()),t&2){let e=HD(3);gI(2),Lh(e.selectedDefinition()?.name),gI(),MD(e.isRunning(e.selectedExecution())?3:-1),gI(2),AD(e.selectedExecution().iterations??xw(4,ts)),gI(3),MD(e.selectedExecution().error?8:-1);}}function wc(t,n){t&1&&(_i$1(0,"p",31),Iw(1),Pw(2,"transloco"),Jc$1()),t&2&&(gI(),rl$1(" ",Fw(2,1,"jobs.detail.inProgress.sub_workflow")," "));}function yc(t,n){if(t&1&&(_i$1(0,"p",33),Iw(1),Jc$1()),t&2){let e=HD(4);gI(),Lh(e.selectedExecution().error);}}function vc(t,n){if(t&1&&(_i$1(0,"div",28)(1,"h3"),Iw(2),Jc$1(),_D(3,wc,3,3,"p",31),uh(4,"app-job-status-table",35),_D(5,yc,2,1,"p",33),Jc$1()),t&2){let e=HD(3);gI(2),Lh(e.selectedDefinition()?.name),gI(),MD(e.isRunning(e.selectedExecution())?3:-1),gI(),lh("jobIds",e.selectedExecution().childJobIds??xw(4,ts)),gI(),MD(e.selectedExecution().error?5:-1);}}function Tc(t,n){if(t&1&&(_i$1(0,"p",40),Iw(1),Jc$1()),t&2){let e=HD(6);gI(),Lh(e.confirmationPrompt());}}function zc(t,n){if(t&1){let e=FD();_i$1(0,"div",37),_D(1,Tc,2,1,"p",40),_i$1(2,"label",41),Iw(3),Pw(4,"transloco"),_i$1(5,"textarea",42),mh("input",function(o){Fu(e);let r=HD(5);return ju(r.setConfirmationComment(o))}),Jc$1()(),_i$1(6,"div",43)(7,"button",44),mh("click",function(){Fu(e);let o=HD(5);return ju(o.submitConfirmation(true))}),Iw(8),Pw(9,"transloco"),Jc$1(),_i$1(10,"button",45),mh("click",function(){Fu(e);let o=HD(5);return ju(o.submitConfirmation(false))}),Iw(11),Pw(12,"transloco"),Jc$1()()();}if(t&2){let e=HD(5);gI(),MD(e.confirmationPrompt()?1:-1),gI(2),rl$1(" ",Fw(4,7,"jobs.resume.comment")," "),gI(2),lh("value",e.confirmationComment()),gI(2),lh("disabled",e.resuming()),gI(),rl$1(" ",Fw(9,9,e.resuming()?"jobs.resume.submitting":"jobs.resume.approve")," "),gI(2),lh("disabled",e.resuming()),gI(),rl$1(" ",Fw(12,11,e.resuming()?"jobs.resume.submitting":"jobs.resume.reject")," ");}}function Ec(t,n){if(t&1){let e=FD();_i$1(0,"div",50)(1,"label",53)(2,"input",54),mh("change",function(o){let r=Fu(e).$implicit,a=HD(6);return ju(a.setCommentReviewIncluded(r.id,o))}),Jc$1(),_i$1(3,"span"),Iw(4),Pw(5,"transloco"),Jc$1()(),_i$1(6,"div",55)(7,"code",56),Iw(8),Jc$1(),_i$1(9,"textarea",57),mh("input",function(o){let r=Fu(e).$implicit,a=HD(6);return ju(a.setCommentReviewBody(r.id,o))}),Jc$1()()();}if(t&2){let e=n.$implicit;ch("data-testid","comment-review-row-"+e.id),gI(2),lh("checked",e.included),ch("data-testid","comment-review-include-"+e.id),gI(2),Lh(Fw(5,9,"jobs.resume.commentReview.include")),gI(3),ch("data-testid","comment-review-location-"+e.id),gI(),Fh("",e.file,":",e.line),gI(),lh("value",e.body),ch("data-testid","comment-review-body-"+e.id);}}function Ic(t,n){t&1&&(_i$1(0,"p",51),Iw(1),Pw(2,"transloco"),Jc$1()),t&2&&(gI(),rl$1(" ",Fw(2,1,"jobs.resume.commentReview.empty")," "));}function Rc(t,n){if(t&1){let e=FD();_i$1(0,"div",38)(1,"div",46)(2,"button",47),mh("click",function(){Fu(e);let o=HD(5);return ju(o.setCommentReviewAllIncluded(true))}),Iw(3),Pw(4,"transloco"),Jc$1(),_i$1(5,"button",48),mh("click",function(){Fu(e);let o=HD(5);return ju(o.setCommentReviewAllIncluded(false))}),Iw(6),Pw(7,"transloco"),Jc$1()(),_i$1(8,"div",49),xD(9,Ec,10,11,"div",50,zi,false,Ic,3,3,"p",51),Jc$1(),_i$1(12,"button",52),mh("click",function(){Fu(e);let o=HD(5);return ju(o.submitCommentReview())}),Iw(13),Pw(14,"transloco"),Jc$1()();}if(t&2){let e=HD(5);gI(2),lh("disabled",e.resuming()||e.commentReviewDrafts().length===0),gI(),rl$1(" ",Fw(4,7,"jobs.resume.commentReview.selectAll")," "),gI(2),lh("disabled",e.resuming()||e.commentReviewDrafts().length===0),gI(),rl$1(" ",Fw(7,9,"jobs.resume.commentReview.selectNone")," "),gI(3),AD(e.commentReviewDrafts()),gI(3),lh("disabled",e.resuming()),gI(),rl$1(" ",Fw(14,11,e.resuming()?"jobs.resume.submitting":"jobs.resume.button")," ");}}function Dc(t,n){if(t&1){let e=FD();_i$1(0,"label",59)(1,"span"),Iw(2),Jc$1(),_i$1(3,"textarea",57),mh("input",function(o){let r=Fu(e).$implicit,a=HD(6);return ju(a.setQuestionnaireAnswer(r.id,o))}),Jc$1()();}if(t&2){let e=n.$implicit,i=HD(6);ch("data-testid","resume-question-"+e.id),gI(2),Lh(e.prompt),gI(),lh("value",i.questionnaireAnswers()[e.id]),ch("data-testid","resume-answer-"+e.id);}}function Pc(t,n){t&1&&(_i$1(0,"p",16),Iw(1),Pw(2,"transloco"),Jc$1()),t&2&&(gI(),Lh(Fw(2,1,"jobs.resume.noQuestions")));}function Ac(t,n){if(t&1){let e=FD();_i$1(0,"div",39)(1,"div",58),xD(2,Dc,4,4,"label",59,zi,false,Pc,3,3,"p",16),Jc$1(),_i$1(5,"label",41),Iw(6),Pw(7,"transloco"),_i$1(8,"textarea",60),mh("input",function(o){Fu(e);let r=HD(5);return ju(r.setAdditionalComments(o))}),Jc$1()(),_i$1(9,"button",52),mh("click",function(){Fu(e);let o=HD(5);return ju(o.submitQuestionnaire())}),Iw(10),Pw(11,"transloco"),Jc$1()();}if(t&2){let e=HD(5);gI(2),AD(e.questionnaireItems()),gI(4),rl$1(" ",Fw(7,5,"jobs.resume.additionalComments")," "),gI(2),lh("value",e.additionalComments()),gI(),lh("disabled",e.resuming()||!e.questionnaireReady()),gI(),rl$1(" ",Fw(11,7,e.resuming()?"jobs.resume.submitting":"jobs.resume.button")," ");}}function Mc(t,n){if(t&1&&(_i$1(0,"section",36)(1,"h4"),Iw(2),Pw(3,"transloco"),Jc$1(),_D(4,zc,13,13,"div",37)(5,Rc,15,13,"div",38)(6,Ac,12,9,"div",39),Jc$1()),t&2){let e=HD(4);gI(2),Lh(Fw(3,2,"jobs.resume.heading")),gI(2),MD(e.interactionKind()==="confirmation"?4:e.interactionKind()==="comment_review"?5:6);}}function Oc(t,n){if(t&1&&(_i$1(0,"pre",19),Iw(1),Jc$1()),t&2){let e=HD(4);gI(),Lh(e.formatOutput(e.selectedExecution()));}}function Nc(t,n){if(t&1&&(_i$1(0,"div",29)(1,"h3"),Iw(2),Jc$1(),_D(3,Mc,7,4,"section",36)(4,Oc,2,1,"pre",19),Jc$1()),t&2){let e=HD(3);gI(2),Lh(e.selectedDefinition()?.name),gI(),MD(e.showResume()?3:4);}}function Lc(t,n){t&1&&(_i$1(0,"p",31),Iw(1),Pw(2,"transloco"),Jc$1()),t&2&&(gI(),rl$1(" ",Fw(2,1,"jobs.detail.inProgress.extract")," "));}function jc(t,n){t&1&&(_i$1(0,"p",16),Iw(1),Pw(2,"transloco"),_i$1(3,"code",69),Iw(4),Jc$1()()),t&2&&(gI(),rl$1(" ",Fw(2,2,"jobs.extract.pattern")," "),gI(3),Lh(n));}function $c(t,n){if(t&1){let e=FD();_i$1(0,"section",61)(1,"h4"),Iw(2),Pw(3,"transloco"),Jc$1(),_i$1(4,"p",16),Iw(5),Pw(6,"transloco"),Jc$1(),_i$1(7,"pre",63),Iw(8),Jc$1(),_D(9,jc,5,4,"p",16),_i$1(10,"label"),Iw(11),Pw(12,"transloco"),_i$1(13,"input",64),mh("input",function(o){Fu(e);let r=HD(4);return ju(r.onExtractValueInput(o))}),Jc$1()(),_i$1(14,"div",65)(15,"button",66),mh("click",function(){Fu(e);let o=HD(4);return ju(o.provideExtractValue())}),Iw(16),Pw(17,"transloco"),Jc$1(),_i$1(18,"button",67),mh("click",function(){Fu(e);let o=HD(4);return ju(o.continueExtract())}),Iw(19),Pw(20,"transloco"),Jc$1(),_i$1(21,"button",68),mh("click",function(){Fu(e);let o=HD(4);return ju(o.cancelExtract())}),Iw(22),Pw(23,"transloco"),Jc$1()()();}if(t&2){let e,i=HD(4);gI(2),Lh(Fw(3,12,"jobs.extract.heading")),gI(3),Lh(Fw(6,14,"jobs.extract.sourceValue")),gI(3),Lh(i.extractSourceDisplay()),gI(),MD((e=i.extractPauseData()?.pattern)?9:-1,e),gI(2),rl$1(" ",Fw(12,16,"jobs.extract.valueLabel")," "),gI(2),lh("value",i.extractValue()),gI(2),lh("disabled",i.resuming()),gI(),rl$1(" ",Fw(17,18,"jobs.extract.provideValue")," "),gI(2),lh("disabled",i.resuming()),gI(),rl$1(" ",Fw(20,20,"jobs.extract.continue")," "),gI(2),lh("disabled",i.resuming()),gI(),rl$1(" ",Fw(23,22,"jobs.extract.cancel")," ");}}function Wc(t,n){if(t&1&&(_i$1(0,"p",62),Iw(1),Jc$1()),t&2){let e=HD(4);gI(),Lh(e.selectedExecution().error);}}function Fc(t,n){if(t&1&&uh(0,"app-step-output",70),t&2){let e=HD(5);lh("rawText",e.formatOutput(e.selectedExecution()))("executionId",e.selectedExecution().id);}}function Bc(t,n){if(t&1&&(_i$1(0,"pre",19),Iw(1),Jc$1()),t&2){let e=HD(5);gI(),Lh(e.formatOutput(e.selectedExecution()));}}function Jc(t,n){if(t&1&&_D(0,Fc,1,2,"app-step-output",70)(1,Bc,2,1,"pre",19),t&2){let e=HD(4);MD(e.outputIsScalar()?0:1);}}function Vc(t,n){if(t&1&&(_i$1(0,"div",30)(1,"h3"),Iw(2),Jc$1(),_D(3,Lc,3,3,"p",31)(4,$c,24,24,"section",61)(5,Wc,2,1,"p",62)(6,Jc,2,1),Jc$1()),t&2){let e=HD(3);gI(2),Lh(e.selectedDefinition()?.name),gI(),MD(e.isRunning(e.selectedExecution())?3:e.showExtractResume()?4:e.selectedExecution().error||e.selectedExecution().status==="failed"?5:6);}}function Gc(t,n){t&1&&(_i$1(0,"p",71),Iw(1),Pw(2,"transloco"),Jc$1()),t&2&&(gI(),rl$1(" ",Fw(2,1,"jobs.detail.waitingForAgentSlot")," "));}function Uc(t,n){if(t&1&&(_i$1(0,"p",31),Iw(1),Pw(2,"transloco"),Jc$1()),t&2){let e=HD(4);gI(),rl$1(" ",Fw(2,1,"jobs.detail.inProgress."+e.selectedExecution().type)," ");}}function qc(t,n){if(t&1&&(_i$1(0,"p",33),Iw(1),Jc$1()),t&2){let e=HD().$implicit;ch("data-testid","review-and-retry-error-"+e.id),gI(),Lh(e.error);}}function Hc(t,n){if(t&1){let e=FD();_i$1(0,"div",50)(1,"label",53)(2,"input",54),mh("change",function(o){let r=Fu(e).$implicit,a=HD(6);return ju(a.setReviewRetryIncluded(r.id,o))}),Jc$1(),_i$1(3,"span"),Iw(4),Pw(5,"transloco"),Jc$1()(),_i$1(6,"div",55)(7,"code",56),Iw(8),Jc$1(),_D(9,qc,2,2,"p",33),_i$1(10,"textarea",57),mh("input",function(o){let r=Fu(e).$implicit,a=HD(6);return ju(a.setReviewRetryBody(r.id,o))}),Jc$1()()();}if(t&2){let e=n.$implicit;ch("data-testid","review-and-retry-row-"+e.id),gI(2),lh("checked",e.included),ch("data-testid","review-and-retry-include-"+e.id),gI(2),Lh(Fw(5,10,"jobs.resume.commentReview.include")),gI(3),ch("data-testid","review-and-retry-location-"+e.id),gI(),Fh("",e.file,":",e.line),gI(),MD(e.error?9:-1),gI(),lh("value",e.body),ch("data-testid","review-and-retry-body-"+e.id);}}function Qc(t,n){if(t&1){let e=FD();_i$1(0,"section",72)(1,"p",74),Iw(2),Pw(3,"transloco"),Jc$1(),_i$1(4,"div",46)(5,"button",75),mh("click",function(){Fu(e);let o=HD(5);return ju(o.setReviewRetryAllIncluded(true))}),Iw(6),Pw(7,"transloco"),Jc$1(),_i$1(8,"button",76),mh("click",function(){Fu(e);let o=HD(5);return ju(o.setReviewRetryAllIncluded(false))}),Iw(9),Pw(10,"transloco"),Jc$1()(),_i$1(11,"div",77),xD(12,Hc,11,12,"div",50,zi),Jc$1(),_i$1(14,"button",78),mh("click",function(){Fu(e);let o=HD(5);return ju(o.submitReviewAndRetry())}),Iw(15),Pw(16,"transloco"),Jc$1()();}if(t&2){let e=HD(5);gI(2),rl$1(" ",Fw(3,7,"jobs.detail.reviewAndRetryHint")," "),gI(3),lh("disabled",e.retryingStep()||e.reviewRetryDrafts().length===0),gI(),rl$1(" ",Fw(7,9,"jobs.resume.commentReview.selectAll")," "),gI(2),lh("disabled",e.retryingStep()||e.reviewRetryDrafts().length===0),gI(),rl$1(" ",Fw(10,11,"jobs.resume.commentReview.selectNone")," "),gI(3),AD(e.reviewRetryDrafts()),gI(2),lh("disabled",e.retryingStep()),gI(),rl$1(" ",Fw(16,13,e.retryingStep()?"jobs.detail.retrying":"jobs.detail.reviewAndRetry")," ");}}function Yc(t,n){if(t&1){let e=FD();_i$1(0,"button",79),mh("click",function(){Fu(e);let o=HD(5);return ju(o.retryStep.emit(void 0))}),Iw(1),Pw(2,"transloco"),Jc$1();}if(t&2){let e=HD(5);lh("disabled",e.retryingStep()),gI(),rl$1(" ",Fw(2,2,e.retryingStep()?"jobs.detail.retrying":"jobs.detail.retryStep")," ");}}function Zc(t,n){if(t&1&&(_i$1(0,"p",62),Iw(1),Jc$1(),_D(2,Qc,17,15,"section",72)(3,Yc,3,4,"button",73)),t&2){let e=HD(4);gI(),Lh(e.selectedExecution().error),gI(),MD(e.showReviewAndRetry()?2:e.showRetryStep()?3:-1);}}function Xc(t,n){if(t&1&&uh(0,"app-step-output",70),t&2){let e=HD(5);lh("rawText",e.formatOutput(e.selectedExecution()))("executionId",e.selectedExecution().id);}}function Kc(t,n){if(t&1&&(_i$1(0,"pre",19),Iw(1),Jc$1()),t&2){let e=HD(5);gI(),Lh(e.formatOutput(e.selectedExecution()));}}function ep(t,n){if(t&1&&_D(0,Xc,1,2,"app-step-output",70)(1,Kc,2,1,"pre",19),t&2){let e=HD(4);MD(e.outputIsScalar()?0:1);}}function tp(t,n){if(t&1&&(_i$1(0,"div")(1,"h3"),Iw(2),Jc$1(),_D(3,Gc,3,3,"p",71)(4,Uc,3,3,"p",31)(5,Zc,4,2)(6,ep,2,1),Jc$1()),t&2){let e=HD(3);ch("data-testid",e.selectedExecution().type+"-view"),gI(2),Lh(e.selectedDefinition()?.name),gI(),MD(e.isQueued(e.selectedExecution())?3:e.isRunning(e.selectedExecution())?4:e.selectedExecution().error||e.selectedExecution().status==="failed"?5:6);}}function np(t,n){if(t&1&&_D(0,kc,9,5,"div",27)(1,vc,6,5,"div",28)(2,Nc,5,2,"div",29)(3,Vc,7,2,"div",30)(4,tp,7,3,"div"),t&2){let e,i=HD(2);MD((e=i.selectedExecution().type)==="loop"?0:e==="sub_workflow"?1:e==="interaction"?2:e==="extract"?3:4);}}function ip(t,n){if(t&1&&(_i$1(0,"nz-card",6),Pw(1,"transloco"),_i$1(2,"nz-steps",7),xD(3,uc,3,11,"nz-step",8,ac),Jc$1()(),_i$1(5,"nz-card",9),_D(6,mc,3,3,"p",10)(7,gc,8,5,"div",11)(8,np,5,1),Jc$1()),t&2){let e=HD();lh("nzTitle",Fw(1,2,"jobs.detail.stepsHeading")),gI(3),AD(e.rows()),gI(3),MD(e.selectedExecution()?e.selectedExecution().status==="skipped"?7:8:6);}}var ns=(()=>{class t{constructor(){this.theme=C(p),this.stepStatusTagClass=T,this.stepStatusTagColor=_,this.definitions=q0.required(),this.executions=q0.required(),this.job=q0.required(),this.selectedExecutionId=q0(null),this.currentExecutionId=q0(null),this.waitingEvent=q0(null),this.resuming=q0(false),this.canResume=q0(false),this.canRetryStep=q0(false),this.retryingStep=q0(false),this.selectExecution=U0(),this.resumeSubmit=U0(),this.extractResume=U0(),this.retryStep=U0(),this.nestedIteration=qo(null),this.nestedLoopDefinition=qo(null),this.nestedSelectedId=qo(null),this.extractValue=qo(""),this.questionnaireAnswers=qo({}),this.additionalComments=qo(""),this.confirmationComment=qo(""),this.commentReviewDrafts=qo([]),this.reviewRetryDrafts=qo([]),this.rows=Uw(()=>k(this.definitions(),this.executions())),this.selectedExecution=Uw(()=>{let e=this.selectedExecutionId();return e?this.executions().find(i=>i.id===e)??null:null}),this.selectedDefinition=Uw(()=>{let e=this.selectedExecution();return e?this.definitions().find(i=>i.id===e.stepDefinitionId)??null:null}),this.outputIsScalar=Uw(()=>{let e=this.selectedDefinition();return e?zg(e,this.job().workflowSnapshot?.appliesTo??"none").isScalar:false}),this.interactionKind=Uw(()=>{let e=this.selectedDefinition();return e?.type==="interaction"?e.interaction:null}),this.interactionData=Uw(()=>{let e=this.selectedDefinition();return E({waitingEvent:this.waitingEvent(),priorOutput:e?v(this.definitions(),this.executions(),e.id,this.job()):void 0,selectedOutput:this.selectedExecution()?.output})}),this.waitingPrompts=Uw(()=>{let e=this.selectedDefinition();return e?.type!=="interaction"?[]:D({interaction:e.interaction,waitingEvent:this.waitingEvent(),priorOutput:v(this.definitions(),this.executions(),e.id,this.job()),selectedOutput:this.selectedExecution()?.output})}),this.questionnaireItems=Uw(()=>H(this.interactionData())),this.questionnaireReady=Uw(()=>A$1(this.questionnaireItems(),this.questionnaireAnswers())),this.confirmationPrompt=Uw(()=>this.waitingPrompts()[0]??""),this.commentReviewItems=Uw(()=>B_(this.interactionData())??[]),this.showResume=Uw(()=>{if(!this.canResume())return false;let e=this.selectedExecution(),i=this.currentExecutionId();return e!=null&&e.id===i&&e.type==="interaction"&&this.job().status==="waiting_for_human"}),this.showExtractResume=Uw(()=>{if(!this.canResume())return false;let e=this.selectedExecution(),i=this.currentExecutionId();return e!=null&&e.id===i&&e.type==="extract"&&this.job().status==="waiting_for_human"}),this.extractPauseData=Uw(()=>{let e=this.waitingEvent();if(e&&Kr(e.data))return e.data;let i=this.selectedExecution()?.output;return Kr(i)?i:null}),this.showRetryStep=Uw(()=>{if(!this.canRetryStep())return false;let e=this.selectedExecution();return !e||e.status!=="failed"||e.id!==this.currentExecutionId()||hy(this.selectedDefinition(),e)?false:C$1(e.type)}),this.showReviewAndRetry=Uw(()=>{if(!this.canRetryStep())return false;let e=this.selectedExecution();return !e||e.status!=="failed"||e.id!==this.currentExecutionId()?false:hy(this.selectedDefinition(),e)}),id(()=>{let e=this.questionnaireItems(),i=e.map(o=>o.id).slice().sort().join("\0");qw(()=>{let o=this.questionnaireAnswers();if(Object.keys(o).slice().sort().join("\0")===i)return;let a={};for(let l of e)a[l.id]=o[l.id]??"";this.questionnaireAnswers.set(a),this.additionalComments.set(""),this.confirmationComment.set("");});}),id(()=>{let e=this.commentReviewItems(),i=e.map(o=>o.id).slice().sort().join("\0");qw(()=>{let o=this.commentReviewDrafts();if(o.map(l=>l.id).slice().sort().join("\0")===i)return;let a=new Map(o.map(l=>[l.id,l]));this.commentReviewDrafts.set(e.map(l=>{let h=a.get(l.id);return s(r$1({},l),{body:h?.body??l.body,included:h?.included??true})}));});}),id(()=>{let e=$y(this.selectedDefinition(),this.selectedExecution()),i=e.map(o=>o.id).slice().sort().join("\0");qw(()=>{let o=this.reviewRetryDrafts();if(o.map(l=>l.id).slice().sort().join("\0")===i)return;let a=new Map(o.map(l=>[l.id,l]));this.reviewRetryDrafts.set(e.map(l=>{let h=a.get(l.id);return s(r$1({},l),{body:h?.body??l.body,included:h?.included??l.included})}));});});}stepStatusKey(e){return `jobs.stepStatus.${e}`}stepTypeKey(e){return `step-list.stepType.${e}`}onStepClick(e){!e.reached||!e.execution||(this.nestedIteration.set(null),this.nestedLoopDefinition.set(null),this.selectExecution.emit(e.execution.id));}openIteration(e,i){this.nestedLoopDefinition.set(e),this.nestedIteration.set(i);let o=i.stepExecutions.find(a=>a.id===this.currentExecutionId()),r=i.stepExecutions[0];this.nestedSelectedId.set(o?.id??r?.id??null);}closeIteration(){this.nestedIteration.set(null),this.nestedLoopDefinition.set(null),this.nestedSelectedId.set(null);}onNestedSelect(e){this.nestedSelectedId.set(e);}setQuestionnaireAnswer(e,i){let o=i.target.value;this.questionnaireAnswers.update(r=>s(r$1({},r),{[e]:o}));}setAdditionalComments(e){this.additionalComments.set(e.target.value);}setConfirmationComment(e){this.confirmationComment.set(e.target.value);}submitQuestionnaire(){!this.questionnaireReady()||this.resuming()||this.resumeSubmit.emit(P(this.questionnaireItems(),this.questionnaireAnswers(),this.additionalComments()));}submitConfirmation(e){this.resuming()||this.resumeSubmit.emit(J(e,this.confirmationComment()));}setCommentReviewIncluded(e,i){let o=i.target.checked;this.commentReviewDrafts.update(r=>r.map(a=>a.id===e?s(r$1({},a),{included:o}):a));}setCommentReviewBody(e,i){let o=i.target.value;this.commentReviewDrafts.update(r=>r.map(a=>a.id===e?s(r$1({},a),{body:o}):a));}setCommentReviewAllIncluded(e){this.commentReviewDrafts.update(i=>i.map(o=>s(r$1({},o),{included:e})));}submitCommentReview(){this.resuming()||this.resumeSubmit.emit(W_(this.commentReviewDrafts()));}setReviewRetryIncluded(e,i){let o=i.target.checked;this.reviewRetryDrafts.update(r=>r.map(a=>a.id===e?s(r$1({},a),{included:o}):a));}setReviewRetryBody(e,i){let o=i.target.value;this.reviewRetryDrafts.update(r=>r.map(a=>a.id===e?s(r$1({},a),{body:o}):a));}setReviewRetryAllIncluded(e){this.reviewRetryDrafts.update(i=>i.map(o=>s(r$1({},o),{included:e})));}submitReviewAndRetry(){if(this.retryingStep())return;let e=this.reviewRetryDrafts().filter(i=>i.included).map(({file:i,line:o,body:r})=>({file:i,line:o,body:r}));this.retryStep.emit({comments:e});}onExtractValueInput(e){this.extractValue.set(e.target.value);}extractSourceDisplay(){let e=this.extractPauseData();return e?op(e.sourceValue):""}provideExtractValue(){this.extractResume.emit({action:"provide_value",value:this.extractValue()});}continueExtract(){this.extractResume.emit({action:"continue"});}cancelExtract(){this.extractResume.emit({action:"cancel"});}formatOutput(e){return e.error?e.error:e.output===void 0?"":typeof e.output=="string"?e.output:JSON.stringify(e.output,null,2)}formatUnknown(e){return e===void 0?"undefined":typeof e=="string"?e:JSON.stringify(e,null,2)}skippedOutput(e){return e.status!=="skipped"?null:R_(e.output)?e.output:null}isRunning(e){return e?.status==="running"}isQueued(e){return e?.status==="queued"}isSelected(e){return e.execution!=null&&e.execution.id===this.selectedExecutionId()}isCurrent(e){return e.execution!=null&&e.execution.id===this.currentExecutionId()}stepNzStatus(e){let i=e.execution?.status;return i==="failed"?"error":i==="completed"||i==="skipped"?"finish":i==="running"||i==="queued"||i==="waiting_for_children"||this.isSelected(e)||this.isCurrent(e)?"process":"wait"}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275cmp=ZE({type:t,selectors:[["app-job-step-workspace"]],inputs:{definitions:[1,"definitions"],executions:[1,"executions"],job:[1,"job"],selectedExecutionId:[1,"selectedExecutionId"],currentExecutionId:[1,"currentExecutionId"],waitingEvent:[1,"waitingEvent"],resuming:[1,"resuming"],canResume:[1,"canResume"],canRetryStep:[1,"canRetryStep"],retryingStep:[1,"retryingStep"]},outputs:{selectExecution:"selectExecution",resumeSubmit:"resumeSubmit",extractResume:"extractResume",retryStep:"retryStep"},decls:3,vars:1,consts:[["stepTitle",""],["data-testid","job-step-workspace",1,"workspace"],["data-testid","loop-drill-in",1,"nested"],["nz-button","","nzType","link","type","button","data-testid","loop-back",3,"click"],[1,"nested-label"],[3,"selectExecution","resumeSubmit","extractResume","retryStep","definitions","executions","job","selectedExecutionId","currentExecutionId","waitingEvent","resuming","canResume","canRetryStep","retryingStep"],["nzSize","small","data-testid","step-side-panel",1,"side-panel",3,"nzTitle"],["nzDirection","vertical","nzSize","small",1,"step-list"],[3,"nzDisabled","nzStatus","selected","current","unreached","skipped","nzTitle"],["nzSize","small","data-testid","step-main-area",1,"main-area"],["data-testid","no-step-selected",1,"muted"],["data-testid","skipped-view"],[3,"nzDisabled","nzStatus","nzTitle"],["type","button",1,"step-button",3,"click","disabled"],[1,"step-name"],[1,"step-meta"],[1,"muted"],[3,"nzColor","ngClass"],["data-testid","skipped-reason",1,"muted"],["data-testid","step-output"],[1,"skip-details"],["data-testid","skipped-condition-type"],["data-testid","skipped-condition-stepId"],["data-testid","skipped-condition-field"],["data-testid","skipped-evaluated-value"],["data-testid","skipped-inputs"],["data-testid","skipped-condition-value"],["data-testid","loop-view"],["data-testid","sub-workflow-view"],["data-testid","interaction-view"],["data-testid","extract-view"],["data-testid","step-in-progress"],["data-testid","loop-iterations",1,"iteration-list"],[1,"error"],["nz-button","","nzType","link","type","button",3,"click"],[3,"jobIds"],["data-testid","resume-form",1,"resume"],["data-testid","confirmation-resume"],["data-testid","comment-review-resume"],["data-testid","questionnaire-resume"],["data-testid","confirmation-prompt"],[1,"resume-field"],["nz-input","","data-testid","confirmation-comment","rows","2",3,"input","value"],[1,"confirmation-actions"],["nz-button","","nzType","primary","type","button","data-testid","confirmation-approve",3,"click","disabled"],["nz-button","","nzDanger","","type","button","data-testid","confirmation-reject",3,"click","disabled"],[1,"comment-review-toolbar"],["nz-button","","type","button","data-testid","comment-review-select-all",3,"click","disabled"],["nz-button","","type","button","data-testid","comment-review-select-none",3,"click","disabled"],["data-testid","comment-review-suggestions"],[1,"comment-review-row"],["data-testid","comment-review-empty",1,"muted"],["nz-button","","nzType","primary","type","button","data-testid","resume-button",3,"click","disabled"],[1,"comment-review-include"],["type","checkbox",3,"change","checked"],[1,"comment-review-fields"],[1,"comment-review-location"],["nz-input","","rows","2",3,"input","value"],["data-testid","waiting-questions"],[1,"resume-question"],["nz-input","","data-testid","resume-additional-comments","rows","2",3,"input","value"],["data-testid","extract-resume-form",1,"resume"],["data-testid","step-error",1,"error"],["data-testid","extract-source-value"],["nz-input","","data-testid","extract-value",3,"input","value"],[1,"extract-actions"],["nz-button","","nzType","primary","type","button","data-testid","extract-provide",3,"click","disabled"],["nz-button","","type","button","data-testid","extract-continue",3,"click","disabled"],["nz-button","","nzDanger","","type","button","data-testid","extract-cancel",3,"click","disabled"],["data-testid","extract-pattern"],[3,"rawText","executionId"],["data-testid","step-queued"],["data-testid","review-and-retry",1,"resume"],["nz-button","","nzType","primary","type","button","data-testid","retry-step",3,"disabled"],["data-testid","review-and-retry-hint",1,"muted"],["nz-button","","type","button","data-testid","review-and-retry-select-all",3,"click","disabled"],["nz-button","","type","button","data-testid","review-and-retry-select-none",3,"click","disabled"],["data-testid","review-and-retry-comments"],["nz-button","","nzType","primary","type","button","data-testid","review-and-retry-submit",3,"click","disabled"],["nz-button","","nzType","primary","type","button","data-testid","retry-step",3,"click","disabled"]],template:function(i,o){if(i&1&&(_i$1(0,"div",1),_D(1,cc,8,19,"div",2)(2,ip,9,4),Jc$1()),i&2){let r;gI(),MD((r=o.nestedIteration())?1:2,r);}},dependencies:[t,$8,M5,pf,bd,sp$1,fp$1,Nt,Ke,ai$1,z,cr,lr,Rn,W$1,I$1,Lt,Xr,Kt],styles:['[_nghost-%COMP%]{display:block;min-width:0;max-width:100%}.workspace[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(14rem,18rem) minmax(0,1fr);gap:1rem;align-items:start;min-height:20rem;min-width:0;max-width:100%}.nested[_ngcontent-%COMP%]{grid-column:1 / -1;min-width:0}.nested-label[_ngcontent-%COMP%]{margin:0 0 .75rem;color:var(--knoflows-text-secondary, #6b6558)}.side-panel[_ngcontent-%COMP%], .main-area[_ngcontent-%COMP%]{min-width:0}[_nghost-%COMP%] .side-panel.ant-card, [_nghost-%COMP%] .main-area.ant-card{border:1px solid var(--knoflows-border, #e1dacb);border-radius:8px;background:var(--knoflows-surface, #fff);box-shadow:none}.main-area[_ngcontent-%COMP%]{overflow-x:auto;overflow-wrap:anywhere;word-break:break-word;min-height:16rem}[_nghost-%COMP%] .main-area .ant-card-body{min-height:16rem}.main-area[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-top:0;color:var(--knoflows-heading, #12161f)}[_nghost-%COMP%] .step-list.ant-steps-vertical{width:100%}[_nghost-%COMP%] .step-list.ant-steps-vertical>.ant-steps-item{flex:0 0 auto;overflow:hidden;margin:0;padding:0}[_nghost-%COMP%] .step-list.ant-steps-vertical>.ant-steps-item>.ant-steps-item-container{padding-bottom:.35rem}[_nghost-%COMP%] .step-list .ant-steps-item-icon, [_nghost-%COMP%] .step-list .ant-steps-item-tail{display:none!important}[_nghost-%COMP%] .step-list .ant-steps-item-content{min-height:0;margin-inline-start:0!important;width:100%;overflow:visible}[_nghost-%COMP%] .step-list .ant-steps-item-title{display:block;width:100%;padding-right:0;line-height:inherit;color:inherit}[_nghost-%COMP%] .step-list .ant-steps-item-title:after{display:none}.step-button[_ngcontent-%COMP%]{position:relative;width:100%;text-align:left;font:inherit;padding:.45rem .55rem .45rem .7rem;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--knoflows-text-secondary, #6b6558);cursor:pointer;display:flex;flex-direction:column;gap:.2rem}.step-button[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--knoflows-active-bg, #eef1fc)}.step-button.selected[_ngcontent-%COMP%], .step-button.current[_ngcontent-%COMP%]{background:var(--knoflows-active-bg, #eef1fc);color:var(--knoflows-heading, #12161f)}.step-button.selected[_ngcontent-%COMP%]:before, .step-button.current[_ngcontent-%COMP%]:before{content:"";position:absolute;top:8px;bottom:8px;left:4px;width:3px;border-radius:999px;background:var(--knoflows-link, #3854d6)}.step-button.selected[_ngcontent-%COMP%] .step-name[_ngcontent-%COMP%], .step-button.current[_ngcontent-%COMP%] .step-name[_ngcontent-%COMP%]{color:var(--knoflows-heading, #12161f);font-weight:700}.step-button[_ngcontent-%COMP%]:disabled, .step-button.unreached[_ngcontent-%COMP%]{opacity:.55;cursor:not-allowed}.step-button.skipped[_ngcontent-%COMP%]{color:var(--knoflows-text-secondary, #6b6558)}.step-name[_ngcontent-%COMP%]{font-weight:600;overflow-wrap:anywhere}.step-meta[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.35rem;align-items:center;font-size:.8rem}.muted[_ngcontent-%COMP%]{color:var(--knoflows-text-secondary, #6b6558)}.error[_ngcontent-%COMP%]{color:#d64545}[data-testid=retry-step][_ngcontent-%COMP%], [data-testid=review-and-retry][_ngcontent-%COMP%]{margin-top:.5rem}pre[_ngcontent-%COMP%]{max-width:100%;overflow:auto;padding:.75rem;background:var(--knoflows-page, #f7f4ee);border:1px solid var(--knoflows-border, #e1dacb);border-radius:8px;font-size:.85rem;color:var(--knoflows-text, #383429)}.iteration-list[_ngcontent-%COMP%]{padding-left:1.1rem}.resume-question[_ngcontent-%COMP%], .resume-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.35rem;margin:0 0 .75rem;color:var(--knoflows-text, #383429)}.resume-question[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:500;color:var(--knoflows-text, #383429)}.resume[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{resize:vertical}.confirmation-actions[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.5rem}.comment-review-toolbar[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 .75rem}.comment-review-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.5rem .75rem;align-items:start;margin:0 0 .75rem}.comment-review-include[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.35rem;padding-top:.25rem;font-size:.85rem}.comment-review-fields[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.35rem;min-width:0}.comment-review-location[_ngcontent-%COMP%]{font-family:JetBrains Mono,ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.8rem}.extract-actions[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.5rem}.skip-details[_ngcontent-%COMP%]{display:grid;gap:.5rem;margin:0 0 .75rem}.skip-details[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:grid;grid-template-columns:8rem minmax(0,1fr);gap:.5rem}.skip-details[_ngcontent-%COMP%] dt[_ngcontent-%COMP%]{margin:0;color:var(--knoflows-text-secondary, #6b6558);font-size:.85rem}.skip-details[_ngcontent-%COMP%] dd[_ngcontent-%COMP%]{margin:0;overflow-wrap:anywhere}@media(max-width:48rem){.workspace[_ngcontent-%COMP%]{grid-template-columns:minmax(0,1fr)}}']});}}return t})();function Kr(t){return t!=null&&typeof t=="object"&&!Array.isArray(t)&&"sourceValue"in t}function op(t){return t==null?"":typeof t=="string"?t:JSON.stringify(t,null,2)}function rp(t,n){t&1&&(_i$1(0,"p",1),Iw(1),Pw(2,"transloco"),Jc$1()),t&2&&(gI(),Lh(Fw(2,1,"common.loading")));}function sp(t,n){if(t&1&&(_i$1(0,"p",2),Iw(1),Jc$1()),t&2){let e=HD();gI(),Lh(e.loadError());}}function ap(t,n){if(t&1&&(Iw(0),Pw(1,"transloco")),t&2){let e=HD(2);Fh(" ",Fw(1,2,"jobs.detail.worktreeDeleted")," ",e.worktreeDeletedAt," ");}}function lp(t,n){if(t&1&&Iw(0),t&2){let e=HD(3);rl$1(" (",e.branch,") ");}}function cp(t,n){if(t&1&&(Iw(0),Pw(1,"transloco"),_D(2,lp,1,1)),t&2){let e=HD(2);Fh(" ",Fw(1,3,"jobs.detail.worktree")," ",e.worktreePath," "),gI(2),MD(e.branch?2:-1);}}function pp(t,n){if(t&1&&(_i$1(0,"p",12),_D(1,ap,2,4)(2,cp,3,5),Jc$1()),t&2){let e=HD();gI(),MD(e.worktreeDeletedAt?1:2);}}function dp(t,n){if(t&1){let e=FD();_i$1(0,"button",21),mh("click",function(){Fu(e);let o=HD(2);return ju(o.cancelJob())}),Iw(1),Pw(2,"transloco"),Jc$1();}if(t&2){let e=HD(2);lh("disabled",e.cancelling()),gI(),rl$1(" ",Fw(2,2,e.cancelling()?"jobs.detail.cancelling":"jobs.detail.cancel")," ");}}function up(t,n){if(t&1){let e=FD();_i$1(0,"button",22),mh("click",function(){Fu(e);let o=HD(2);return ju(o.retryWorkflow())}),Iw(1),Pw(2,"transloco"),Jc$1();}if(t&2){let e=HD(2);lh("disabled",e.retryingWorkflow()),gI(),rl$1(" ",Fw(2,2,e.retryingWorkflow()?"jobs.detail.retrying":"jobs.detail.retryWorkflow")," ");}}function mp(t,n){if(t&1){let e=FD();_i$1(0,"button",23),mh("click",function(){Fu(e);let o=HD(2);return ju(o.jumpToCurrent())}),Iw(1),Pw(2,"transloco"),Jc$1();}t&2&&(gI(),rl$1(" ",Fw(2,1,"jobs.detail.jumpToCurrent")," "));}function fp(t,n){if(t&1&&(_i$1(0,"p",17),Iw(1),Jc$1()),t&2){let e=HD(2);gI(),Lh(e.actionError());}}function hp(t,n){t&1&&(uh(0,"nz-alert",18),Pw(1,"transloco")),t&2&&lh("nzMessage",Fw(1,1,"jobs.detail.queued"));}function _p(t,n){if(t&1){let e=FD();_i$1(0,"app-job-step-workspace",24),mh("selectExecution",function(o){Fu(e);let r=HD(2);return ju(r.onSelectExecution(o))})("resumeSubmit",function(o){Fu(e);let r=HD(2);return ju(r.submitResume(o))})("extractResume",function(o){Fu(e);let r=HD(2);return ju(r.submitExtractResume(o))})("retryStep",function(o){Fu(e);let r=HD(2);return ju(r.retryThisStep(o))}),Jc$1();}if(t&2){let e=HD(),i=HD();lh("definitions",n.steps)("executions",e.stepHistory)("job",e)("selectedExecutionId",i.viewedExecutionId())("currentExecutionId",i.blockingExecutionId()??i.currentStep()?.id??null)("waitingEvent",i.waitingEvent())("resuming",i.resuming())("canResume",true)("canRetryStep",e.status==="failed")("retryingStep",i.retryingStep());}}function gp(t,n){t&1&&(_i$1(0,"p",20),Iw(1),Pw(2,"transloco"),Jc$1()),t&2&&(gI(),rl$1(" ",Fw(2,1,"jobs.detail.workflowMissing")," "));}function xp(t,n){if(t&1){let e=FD();_i$1(0,"header",3)(1,"div")(2,"a",4),Iw(3),Pw(4,"transloco"),Jc$1(),_i$1(5,"div",5)(6,"h1",6),Iw(7),Jc$1(),_i$1(8,"nz-tag",7),Iw(9),Pw(10,"transloco"),Jc$1()(),_i$1(11,"div",8)(12,"span",9),Iw(13),Jc$1(),_i$1(14,"button",10),Pw(15,"transloco"),mh("click",function(){let o=Fu(e),r=HD();return ju(r.copyJobId(o.id))}),uh(16,"span",11),Jc$1()(),_D(17,pp,3,1,"p",12),Jc$1(),_i$1(18,"div",13),_D(19,dp,3,4,"button",14),_D(20,up,3,4,"button",15),_D(21,mp,3,3,"button",16),Jc$1()(),_D(22,fp,2,1,"p",17),_D(23,hp,2,3,"nz-alert",18)(24,_p,1,10,"app-job-step-workspace",19)(25,gp,3,3,"p",20);}if(t&2){let e,i=n,o=HD();gI(3),Lh(Fw(4,13,"jobs.detail.backToStart")),gI(4),Lh(o.composeJobTitle(i)),gI(),lh("nzColor",o.jobStatusTagColor(i.status,o.theme.theme()))("ngClass",o.jobStatusTagClass(i.status,o.theme.theme())),gI(),Lh(Fw(10,15,o.statusKey(i.status))),gI(4),Lh(i.id),gI(),ch("aria-label",Fw(15,17,"jobs.detail.copyId")),gI(3),MD(i.worktreePath?17:-1),gI(2),MD(o.isTerminalStatus(i.status)?-1:19),gI(),MD(i.status==="failed"?20:-1),gI(),MD(o.showJumpToCurrent()?21:-1),gI(),MD(o.actionError()?22:-1),gI(),MD(o.showQueued()?23:(e=o.workflow())?24:25,e);}}var iu=(()=>{class t{constructor(){this.route=C(C1),this.router=C(J1),this.jobsApi=C($),this.eventsService=C(f),this.transloco=C(Ve),this.destroyRef=C(at$1),this.theme=C(p),this.jobStatusTagClass=x,this.jobStatusTagColor=h,this.composeJobTitle=b,this.job=qo(null),this.workflow=qo(null),this.loading=qo(true),this.loadError=qo(null),this.actionError=qo(null),this.eventStream=qo(null),this.eventsSnapshot=qo([]),this.autoFollow=qo(true),this.viewedExecutionId=qo(null),this.resuming=qo(false),this.retryingWorkflow=qo(false),this.retryingStep=qo(false),this.cancelling=qo(false),this.currentStep=Uw(()=>{let e=this.job();return e?I(e):null}),this.showQueued=Uw(()=>{let e=this.job();return e!=null&&I(e)==null}),this.showJumpToCurrent=Uw(()=>{let e=this.currentStep();return e?this.viewedExecutionId()!==e.id:false}),this.eventLog=Uw(()=>this.eventStream()?.events()??this.eventsSnapshot()),this.waitingEvent=Uw(()=>{let e=this.eventLog();for(let i=e.length-1;i>=0;i-=1){let o=e[i];if(o?.type==="waiting_for_human")return o}return null}),this.blockingExecutionId=Uw(()=>this.job()?.currentStepExecutionId??null),this.destroyRef.onDestroy(()=>this.closeStream()),this.route.paramMap.pipe(ue(this.destroyRef)).subscribe(e=>{let i=e.get("id");if(!i){this.loading.set(false),this.loadError.set(this.transloco.translate("jobs.detail.loadFailed"));return}this.load(i);}),id(()=>{let e=this.eventStream();if(!e)return;let i=e.latest();i&&qw(()=>{(i.type==="step_started"||i.type==="step_completed"||i.type==="step_failed"||i.type==="waiting_for_human"||i.type==="waiting_for_children"||i.type==="human_answered"||i.type==="job_completed"||i.type==="job_failed"||i.type==="job_cancelled")&&this.refreshJob(i.jobId),(i.type==="job_completed"||i.type==="job_failed"||i.type==="job_cancelled")&&this.closeStream();});}),id(()=>{let e=this.currentStep();this.autoFollow()&&qw(()=>{this.viewedExecutionId.set(e?.id??null);});});}statusKey(e){return `jobs.status.${e}`}isTerminalStatus(e){return w(e)}copyJobId(e){let i=globalThis.navigator?.clipboard;i?.writeText&&i.writeText(e);}onSelectExecution(e){this.autoFollow.set(false),this.viewedExecutionId.set(e);}jumpToCurrent(){this.autoFollow.set(true),this.viewedExecutionId.set(this.currentStep()?.id??null);}submitResume(e){let i=this.job();i&&(this.actionError.set(null),this.resuming.set(true),this.jobsApi.resume(i.id,e).subscribe({next:o=>{this.resuming.set(false),this.applyJob(o),w(o.status)&&this.closeStream();},error:o=>{this.resuming.set(false),this.actionError.set(this.errorMessage(o,this.transloco.translate("jobs.errors.resumeFailed")));}}));}submitExtractResume(e){let i=this.job();i&&(this.actionError.set(null),this.resuming.set(true),this.jobsApi.resume(i.id,e).subscribe({next:o=>{this.resuming.set(false),this.applyJob(o),w(o.status)&&this.closeStream();},error:o=>{this.resuming.set(false),this.actionError.set(this.errorMessage(o,this.transloco.translate("jobs.errors.resumeFailed")));}}));}retryWorkflow(){let e=this.job();!e||e.status!=="failed"||this.retryingWorkflow()||(this.actionError.set(null),this.retryingWorkflow.set(true),this.jobsApi.retry(e.id).subscribe({next:i=>{this.retryingWorkflow.set(false),this.router.navigate(["/jobs",i.id]);},error:i=>{this.retryingWorkflow.set(false),this.actionError.set(this.errorMessage(i,this.transloco.translate("jobs.errors.retryFailed")));}}));}retryThisStep(e){let i=this.job();!i||i.status!=="failed"||this.retryingStep()||(this.actionError.set(null),this.retryingStep.set(true),this.jobsApi.retryStep(i.id,e).subscribe({next:o=>{this.retryingStep.set(false),this.applyJob(o),w(o.status)?this.closeStream():(this.closeStream(),this.eventStream.set(this.eventsService.connect({jobId:o.id})));},error:o=>{this.retryingStep.set(false),this.actionError.set(this.errorMessage(o,this.transloco.translate("jobs.errors.retryStepFailed")));}}));}cancelJob(){let e=this.job();!e||w(e.status)||this.cancelling()||(this.actionError.set(null),this.cancelling.set(true),this.jobsApi.cancel(e.id).subscribe({next:i=>{this.cancelling.set(false),this.applyJob(i),w(i.status)&&this.closeStream();},error:i=>{this.cancelling.set(false),this.actionError.set(this.errorMessage(i,this.transloco.translate("jobs.errors.cancelFailed")));}}));}load(e){this.loading.set(true),this.loadError.set(null),this.actionError.set(null),this.autoFollow.set(true),this.viewedExecutionId.set(null),this.retryingWorkflow.set(false),this.retryingStep.set(false),this.cancelling.set(false),this.closeStream(),this.eventsSnapshot.set([]),this.jobsApi.get(e).pipe(ue(this.destroyRef)).subscribe({next:i=>{this.applyJob(i),this.loading.set(false),w(i.status)||this.eventStream.set(this.eventsService.connect({jobId:i.id}));},error:i=>{this.loading.set(false),this.loadError.set(this.errorMessage(i,this.transloco.translate("jobs.detail.loadFailed")));}});}applyJob(e){this.job.set(e),this.workflow.set(e.workflowSnapshot??null),this.autoFollow()&&this.viewedExecutionId.set(I(e)?.id??null);}refreshJob(e){this.jobsApi.get(e).subscribe({next:i=>this.applyJob(i),error:i=>{this.actionError.set(this.errorMessage(i,this.transloco.translate("jobs.errors.refreshFailed")));}});}closeStream(){let e=this.eventStream();e&&(this.eventsSnapshot.set(e.events()),e.close(),this.eventStream.set(null));}errorMessage(e,i){return e instanceof bi$1||e instanceof Error?e.message:i}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275cmp=ZE({type:t,selectors:[["app-job-detail"]],decls:4,vars:1,consts:[["data-testid","job-detail",1,"detail-page"],["data-testid","loading"],["data-testid","load-error",1,"error"],[1,"header"],["routerLink","/jobs"],[1,"title-row"],["data-testid","job-title"],["data-testid","job-status",3,"nzColor","ngClass"],[1,"job-id-line"],["data-testid","job-id",1,"job-id","mono"],["type","button","nz-button","","nzType","text","nzSize","small","data-testid","copy-job-id",1,"copy-job-id",3,"click"],["nz-icon","","nzType","copy","nzTheme","outline"],["data-testid","job-worktree",1,"meta"],[1,"header-actions"],["nz-button","","nzDanger","","type","button","data-testid","cancel-job",3,"disabled"],["nz-button","","nzType","primary","type","button","data-testid","retry-workflow",3,"disabled"],["nz-button","","type","button","data-testid","jump-to-current"],["data-testid","action-error",1,"error"],["data-testid","queued-message","nzType","info",3,"nzMessage"],[3,"definitions","executions","job","selectedExecutionId","currentExecutionId","waitingEvent","resuming","canResume","canRetryStep","retryingStep"],["data-testid","missing-workflow",1,"muted"],["nz-button","","nzDanger","","type","button","data-testid","cancel-job",3,"click","disabled"],["nz-button","","nzType","primary","type","button","data-testid","retry-workflow",3,"click","disabled"],["nz-button","","type","button","data-testid","jump-to-current",3,"click"],[3,"selectExecution","resumeSubmit","extractResume","retryStep","definitions","executions","job","selectedExecutionId","currentExecutionId","waitingEvent","resuming","canResume","canRetryStep","retryingStep"]],template:function(i,o){if(i&1&&(_i$1(0,"main",0),_D(1,rp,3,3,"p",1)(2,sp,2,1,"p",2)(3,xp,26,19),Jc$1()),i&2){let r;gI(),MD(o.loading()?1:o.loadError()?2:(r=o.job())?3:-1,r);}},dependencies:[$8,M5,v3,Gn,un,pf,bd,sp$1,fp$1,Ah,Th,W$1,I$1,ns,Kt],styles:["[_nghost-%COMP%]{display:block;min-width:0;max-width:100%}.detail-page[_ngcontent-%COMP%]{padding:1.25rem 1.5rem 3rem;display:flex;flex-direction:column;gap:1rem;min-width:0;max-width:100%}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}.header-actions[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}.title-row[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;margin-top:.25rem}.title-row[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0;font-size:1.35rem}.title-row[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{margin-inline-end:0}.job-id-line[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.15rem;margin-top:.2rem}.job-id[_ngcontent-%COMP%]{font-size:.8rem;color:var(--knoflows-text-secondary, #6b6558)}.copy-job-id[_ngcontent-%COMP%]{color:var(--knoflows-text-secondary, #6b6558)}.meta[_ngcontent-%COMP%]{margin:.35rem 0 0;color:#57534e;display:flex;flex-wrap:wrap;gap:.35rem;align-items:center}.error[_ngcontent-%COMP%]{color:#9f1239}.muted[_ngcontent-%COMP%]{color:#78716c}"]});}}return t})();
|
|
70
70
|
export{iu as JobDetailComponent};
|