@kb-labs/workflow-entry 2.105.0 → 2.107.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.
Files changed (56) hide show
  1. package/dist/widgets/117.js +2 -3
  2. package/dist/widgets/165.js +1 -2
  3. package/dist/widgets/326.js +1 -2
  4. package/dist/widgets/370.js +1 -2
  5. package/dist/widgets/405.js +1 -2
  6. package/dist/widgets/46.js +1 -2
  7. package/dist/widgets/50.js +1 -2
  8. package/dist/widgets/546.js +1 -2
  9. package/dist/widgets/62.js +1 -2
  10. package/dist/widgets/648.js +1 -2
  11. package/dist/widgets/669.js +1 -2
  12. package/dist/widgets/707.js +1 -2
  13. package/dist/widgets/716.js +1 -2
  14. package/dist/widgets/775.js +1 -2
  15. package/dist/widgets/78.js +1 -2
  16. package/dist/widgets/875.js +25 -0
  17. package/dist/widgets/945.js +1 -2
  18. package/dist/widgets/968.js +1 -2
  19. package/dist/widgets/__federation_expose_Crons.js +1 -2
  20. package/dist/widgets/__federation_expose_Dashboard.js +1 -2
  21. package/dist/widgets/__federation_expose_DefinitionDetail.js +1 -2
  22. package/dist/widgets/__federation_expose_Definitions.js +1 -2
  23. package/dist/widgets/__federation_expose_Jobs.js +1 -2
  24. package/dist/widgets/__federation_expose_RunDetail.js +2 -3
  25. package/dist/widgets/__federation_expose_Runs.js +1 -2
  26. package/dist/widgets/mf-manifest.json +22 -22
  27. package/dist/widgets/mf-stats.json +35 -35
  28. package/dist/widgets/remoteEntry.js +2 -3
  29. package/package.json +6 -6
  30. package/dist/widgets/117.js.map +0 -1
  31. package/dist/widgets/165.js.map +0 -1
  32. package/dist/widgets/326.js.map +0 -1
  33. package/dist/widgets/370.js.map +0 -1
  34. package/dist/widgets/405.js.map +0 -1
  35. package/dist/widgets/46.js.map +0 -1
  36. package/dist/widgets/50.js.map +0 -1
  37. package/dist/widgets/546.js.map +0 -1
  38. package/dist/widgets/62.js.map +0 -1
  39. package/dist/widgets/648.js.map +0 -1
  40. package/dist/widgets/669.js.map +0 -1
  41. package/dist/widgets/707.js.map +0 -1
  42. package/dist/widgets/716.js.map +0 -1
  43. package/dist/widgets/733.js +0 -35
  44. package/dist/widgets/733.js.map +0 -1
  45. package/dist/widgets/775.js.map +0 -1
  46. package/dist/widgets/78.js.map +0 -1
  47. package/dist/widgets/945.js.map +0 -1
  48. package/dist/widgets/968.js.map +0 -1
  49. package/dist/widgets/__federation_expose_Crons.js.map +0 -1
  50. package/dist/widgets/__federation_expose_Dashboard.js.map +0 -1
  51. package/dist/widgets/__federation_expose_DefinitionDetail.js.map +0 -1
  52. package/dist/widgets/__federation_expose_Definitions.js.map +0 -1
  53. package/dist/widgets/__federation_expose_Jobs.js.map +0 -1
  54. package/dist/widgets/__federation_expose_RunDetail.js.map +0 -1
  55. package/dist/widgets/__federation_expose_Runs.js.map +0 -1
  56. package/dist/widgets/remoteEntry.js.map +0 -1
@@ -442,5 +442,4 @@
442
442
  `]:{zIndex:10,width:r,margin:`0 ${tm(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${tm(a(e.paddingXS).mul(2).equal())})`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${tm(a(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}})(i),(e=>{let{componentCls:t,iconCls:n,fontSize:r,lineHeight:o,calc:a}=e,i=`${t}-list-item`,l=`${i}-actions`,c=`${i}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},nW()),{lineHeight:e.lineHeight,[i]:{position:"relative",height:a(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${i}-name`]:Object.assign(Object.assign({},nH),{padding:`0 ${tm(e.paddingXS)}`,lineHeight:o,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[l]:{whiteSpace:"nowrap",[c]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`
443
443
  ${c}:focus-visible,
444
444
  &.picture ${c}
445
- `]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorIcon,fontSize:r},[`${i}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:a(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${i}:hover ${c}`]:{opacity:1},[`${i}-error`]:{color:e.colorError,[`${i}-name, ${t}-icon ${n}`]:{color:e.colorError},[l]:{[`${n}, ${n}:hover`]:{color:e.colorError},[c]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}})(i),(e=>{let{componentCls:t}=e,n=new no("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new no("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${o}-appear, ${o}-enter, ${o}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${o}-appear, ${o}-enter`]:{animationName:n},[`${o}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:ub(e)},n,r]})(i),(e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}})(i),lq(i)]},e=>({actionsColor:e.colorIcon,pictureCardSize:2.55*e.controlHeightLG})),P0={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"};var P1=x.forwardRef(function(e,t){return x.createElement(oi,S({},e,{ref:t,icon:P0}))});let P2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};var P4=x.forwardRef(function(e,t){return x.createElement(oi,S({},e,{ref:t,icon:P2}))});let P3={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"};var P6=x.forwardRef(function(e,t){return x.createElement(oi,S({},e,{ref:t,icon:P3}))});function P5(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function P8(e,t){let n=(0,eM.A)(t),r=n.findIndex(({uid:t})=>t===e.uid);return -1===r?n.push(e):n[r]=e,n}function P7(e,t){let n=void 0!==e.uid?"uid":"name";return t.filter(t=>t[n]===e[n])[0]}let P9=e=>0===e.indexOf("image/"),Te=e=>{if(e.type&&!e.thumbUrl)return P9(e.type);let t=e.thumbUrl||e.url||"",n=((e="")=>{let t=e.split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]})(t);return!!(/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n))||!/^data:/.test(t)&&!n};function Tt(e){return new Promise(t=>{if(!e.type||!P9(e.type))return void t("");let n=document.createElement("canvas");n.width=200,n.height=200,n.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(n);let r=n.getContext("2d"),o=new Image;if(o.onload=()=>{let{width:e,height:a}=o,i=200,l=200,c=0,s=0;e>a?s=-((l=200/e*a)-i)/2:c=-((i=200/a*e)-l)/2,r.drawImage(o,c,s,i,l);let u=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(o.src),t(u)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){let t=new FileReader;t.onload=()=>{t.result&&"string"==typeof t.result&&(o.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){let n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}let Tn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};var Tr=x.forwardRef(function(e,t){return x.createElement(oi,S({},e,{ref:t,icon:Tn}))});let To=x.forwardRef(({prefixCls:e,className:t,style:n,locale:r,listType:o,file:a,items:i,progress:l,iconRender:c,actionIconRender:s,itemRender:u,isImgUrl:d,showPreviewIcon:f,showRemoveIcon:p,showDownloadIcon:m,previewIcon:g,removeIcon:h,downloadIcon:v,extra:b,onPreview:y,onDownload:$,onClose:w},C)=>{var S,k;let{status:O}=a,[A,I]=x.useState(O);x.useEffect(()=>{"removed"!==O&&I(O)},[O]);let[N,j]=x.useState(!1);x.useEffect(()=>{let e=setTimeout(()=>{j(!0)},300);return()=>{clearTimeout(e)}},[]);let M=c(a),R=x.createElement("div",{className:`${e}-icon`},M);if("picture"===o||"picture-card"===o||"picture-circle"===o)if("uploading"!==A&&(a.thumbUrl||a.url)){let t=(null==d?void 0:d(a))?x.createElement("img",{src:a.thumbUrl||a.url,alt:a.name,className:`${e}-list-item-image`,crossOrigin:a.crossOrigin}):M,n=E()(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:d&&!d(a)});R=x.createElement("a",{className:n,onClick:e=>y(a,e),href:a.url||a.thumbUrl,target:"_blank",rel:"noopener noreferrer"},t)}else{let t=E()(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:"uploading"!==A});R=x.createElement("div",{className:t},M)}let P=E()(`${e}-list-item`,`${e}-list-item-${A}`),T="string"==typeof a.linkProps?JSON.parse(a.linkProps):a.linkProps,z=("function"==typeof p?p(a):p)?s(("function"==typeof h?h(a):h)||x.createElement(RP,null),()=>w(a),e,r.removeFile,!0):null,B=("function"==typeof m?m(a):m)&&"done"===A?s(("function"==typeof v?v(a):v)||x.createElement(Tr,null),()=>$(a),e,r.downloadFile):null,D="picture-card"!==o&&"picture-circle"!==o&&x.createElement("span",{key:"download-delete",className:E()(`${e}-list-item-actions`,{picture:"picture"===o})},B,z),H="function"==typeof b?b(a):b,L=H&&x.createElement("span",{className:`${e}-list-item-extra`},H),F=E()(`${e}-list-item-name`),W=a.url?x.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:F,title:a.name},T,{href:a.url,onClick:e=>y(a,e)}),a.name,L):x.createElement("span",{key:"view",className:F,onClick:e=>y(a,e),title:a.name},a.name,L),_=("function"==typeof f?f(a):f)&&(a.url||a.thumbUrl)?x.createElement("a",{href:a.url||a.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:e=>y(a,e),title:r.previewFile},"function"==typeof g?g(a):g||x.createElement(SJ,null)):null,V=("picture-card"===o||"picture-circle"===o)&&"uploading"!==A&&x.createElement("span",{className:`${e}-list-item-actions`},_,"done"===A&&B,z),{getPrefixCls:q}=x.useContext(eF),K=q(),X=x.createElement("div",{className:P},R,W,D,V,N&&x.createElement(oX,{motionName:`${K}-fade`,visible:"uploading"===A,motionDeadline:2e3},({className:t})=>{let n="percent"in a?x.createElement(Aq,Object.assign({type:"line",percent:a.percent,"aria-label":a["aria-label"],"aria-labelledby":a["aria-labelledby"]},l)):null;return x.createElement("div",{className:E()(`${e}-list-item-progress`,t)},n)})),G=a.response&&"string"==typeof a.response?a.response:(null==(S=a.error)?void 0:S.statusText)||(null==(k=a.error)?void 0:k.message)||r.uploadError,Y="error"===A?x.createElement(ms,{title:G,getPopupContainer:e=>e.parentNode},X):X;return x.createElement("div",{className:E()(`${e}-list-item-container`,t),style:n,ref:C},u?u(Y,a,i,{download:$.bind(null,a),preview:y.bind(null,a),remove:w.bind(null,a)}):Y)}),Ta=x.forwardRef((e,t)=>{let{listType:n="text",previewFile:r=Tt,onPreview:o,onDownload:a,onRemove:i,locale:l,iconRender:c,isImageUrl:s=Te,prefixCls:u,items:d=[],showPreviewIcon:f=!0,showRemoveIcon:p=!0,showDownloadIcon:m=!1,removeIcon:g,previewIcon:h,downloadIcon:v,extra:b,progress:y={size:[-1,2],showInfo:!1},appendAction:$,appendActionVisible:w=!0,itemRender:C,disabled:S}=e,[,k]=pW(),[O,A]=x.useState(!1),I=["picture-card","picture-circle"].includes(n);x.useEffect(()=>{n.startsWith("picture")&&(d||[]).forEach(e=>{(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",null==r||r(e.originFileObj).then(t=>{e.thumbUrl=t||"",k()}))})},[n,d,r]),x.useEffect(()=>{A(!0)},[]);let N=(e,t)=>{if(o)return null==t||t.preventDefault(),o(e)},j=e=>{"function"==typeof a?a(e):e.url&&window.open(e.url)},M=e=>{null==i||i(e)},R=e=>{if(c)return c(e,n);let t="uploading"===e.status;if(n.startsWith("picture")){let r="picture"===n?x.createElement(aV,null):l.uploading,o=(null==s?void 0:s(e))?x.createElement(P6,null):x.createElement(P1,null);return t?r:o}return t?x.createElement(aV,null):x.createElement(P4,null)},P=(e,t,n,r,o)=>{let a={type:"text",size:"small",title:r,onClick:n=>{var r,o;t(),x.isValidElement(e)&&(null==(o=(r=e.props).onClick)||o.call(r,n))},className:`${n}-list-item-action`,disabled:!!o&&S};return x.isValidElement(e)?x.createElement(cu,Object.assign({},a,{icon:o7(e,Object.assign(Object.assign({},e.props),{onClick:()=>{}}))})):x.createElement(cu,Object.assign({},a),x.createElement("span",null,e))};x.useImperativeHandle(t,()=>({handlePreview:N,handleDownload:j}));let{getPrefixCls:T}=x.useContext(eF),z=T("upload",u),B=T(),D=E()(`${z}-list`,`${z}-list-${n}`),H=x.useMemo(()=>iX(iq(B),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[B]),L=Object.assign(Object.assign({},I?{}:H),{motionDeadline:2e3,motionName:`${z}-${I?"animate-inline":"animate"}`,keys:(0,eM.A)(d.map(e=>({key:e.uid,file:e}))),motionAppear:O});return x.createElement("div",{className:D},x.createElement(o2,Object.assign({},L,{component:!1}),({key:e,file:t,className:r,style:o})=>x.createElement(To,{key:e,locale:l,prefixCls:z,className:r,style:o,file:t,items:d,progress:y,listType:n,isImgUrl:s,showPreviewIcon:f,showRemoveIcon:p,showDownloadIcon:m,removeIcon:g,previewIcon:h,downloadIcon:v,extra:b,iconRender:R,actionIconRender:P,itemRender:C,onPreview:N,onDownload:j,onClose:M})),$&&x.createElement(oX,Object.assign({},L,{visible:w,forceRender:!0}),({className:e,style:t})=>o7($,n=>({className:E()(n.className,e),style:Object.assign(Object.assign(Object.assign({},t),{pointerEvents:e?"none":void 0}),n.style)}))))}),Ti=`__LIST_IGNORE_${Date.now()}__`,Tl=x.forwardRef((e,t)=>{let n=eV("upload"),{fileList:r,defaultFileList:o,onRemove:a,showUploadList:i=!0,listType:l="text",onPreview:c,onDownload:s,onChange:u,onDrop:d,previewFile:f,disabled:p,locale:m,iconRender:g,isImageUrl:h,progress:v,prefixCls:b,className:y,type:$="select",children:w,style:C,itemRender:S,maxCount:k,data:O={},multiple:A=!1,hasControlInside:I=!0,action:N="",accept:j="",supportServerRender:M=!0,rootClassName:R}=e,P=x.useContext(iu),T=null!=p?p:P,z=e.customRequest||n.customRequest,[B,D]=nb(o||[],{value:r,postState:e=>null!=e?e:[]}),[L,F]=x.useState("drop"),W=x.useRef(null),_=x.useRef(null);x.useMemo(()=>{let e=Date.now();(r||[]).forEach((t,n)=>{t.uid||Object.isFrozen(t)||(t.uid=`__AUTO__${e}_${n}__`)})},[r]);let V=(e,t,n)=>{let r=(0,eM.A)(t),o=!1;1===k?r=r.slice(-1):k&&(o=r.length>k,r=r.slice(0,k)),(0,H.flushSync)(()=>{D(r)});let a={file:e,fileList:r};n&&(a.event=n),(!o||"removed"===e.status||r.some(t=>t.uid===e.uid))&&(0,H.flushSync)(()=>{null==u||u(a)})},q=e=>{let t=e.filter(e=>!e.file[Ti]);if(!t.length)return;let n=t.map(e=>P5(e.file)),r=(0,eM.A)(B);n.forEach(e=>{r=P8(e,r)}),n.forEach((e,n)=>{let o=e;if(t[n].parsedFile)e.status="uploading";else{let t,{originFileObj:n}=e;try{t=new File([n],n.name,{type:n.type})}catch(e){(t=new Blob([n],{type:n.type})).name=n.name,t.lastModifiedDate=new Date,t.lastModified=new Date().getTime()}t.uid=e.uid,o=t}V(o,r)})},K=(e,t,n)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}if(!P7(t,B))return;let r=P5(t);r.status="done",r.percent=100,r.response=e,r.xhr=n;let o=P8(r,B);V(r,o)},X=(e,t)=>{if(!P7(t,B))return;let n=P5(t);n.status="uploading",n.percent=e.percent;let r=P8(n,B);V(n,r,e)},G=(e,t,n)=>{if(!P7(n,B))return;let r=P5(n);r.error=e,r.response=t,r.status="error";let o=P8(r,B);V(r,o)},Y=e=>{let t;Promise.resolve("function"==typeof a?a(e):a).then(n=>{var r;let o,a;if(!1===n)return;let i=(o=void 0!==e.uid?"uid":"name",(a=B.filter(t=>t[o]!==e[o])).length===B.length?null:a);i&&(t=Object.assign(Object.assign({},e),{status:"removed"}),null==B||B.forEach(e=>{let n=void 0!==t.uid?"uid":"name";e[n]!==t[n]||Object.isFrozen(e)||(e.status="removed")}),null==(r=W.current)||r.abort(t),V(t,i))})},U=e=>{F(e.type),"drop"===e.type&&(null==d||d(e))};x.useImperativeHandle(t,()=>({onBatchStart:q,onSuccess:K,onProgress:X,onError:G,fileList:B,upload:W.current,nativeElement:_.current}));let{getPrefixCls:Q,direction:Z,upload:J}=x.useContext(eF),ee=Q("upload",b),et=Object.assign(Object.assign({onBatchStart:q,onError:G,onProgress:X,onSuccess:K},e),{customRequest:z,data:O,multiple:A,action:N,accept:j,supportServerRender:M,prefixCls:ee,disabled:T,beforeUpload:(t,n)=>{var r,o,a,i;return r=void 0,o=void 0,a=void 0,i=function*(){let{beforeUpload:r,transformFile:o}=e,a=t;if(r){let e=yield r(t,n);if(!1===e)return!1;if(delete t[Ti],e===Ti)return Object.defineProperty(t,Ti,{value:!0,configurable:!0}),!1;"object"==typeof e&&e&&(a=e)}return o&&(a=yield o(a)),a},new(a||(a=Promise))(function(e,t){function n(e){try{c(i.next(e))}catch(e){t(e)}}function l(e){try{c(i.throw(e))}catch(e){t(e)}}function c(t){var r;t.done?e(t.value):((r=t.value)instanceof a?r:new a(function(e){e(r)})).then(n,l)}c((i=i.apply(r,o||[])).next())})},onChange:void 0,hasControlInside:I});delete et.className,delete et.style,(!w||T)&&delete et.id;let en=`${ee}-wrapper`,[er,eo,ea]=PJ(ee,en),[ei]=iK("Upload",ir.Upload),{showRemoveIcon:el,showPreviewIcon:ec,showDownloadIcon:es,removeIcon:eu,previewIcon:ed,downloadIcon:ef,extra:ep}="boolean"==typeof i?{}:i,em=void 0===el?!T:el,eg=(e,t)=>i?x.createElement(Ta,{prefixCls:ee,listType:l,items:B,previewFile:f,onPreview:c,onDownload:s,onRemove:Y,showRemoveIcon:em,showPreviewIcon:ec,showDownloadIcon:es,removeIcon:eu,previewIcon:ed,downloadIcon:ef,iconRender:g,extra:ep,locale:Object.assign(Object.assign({},ei),m),isImageUrl:h,progress:v,appendAction:e,appendActionVisible:t,itemRender:S,disabled:T}):e,eh=E()(en,y,R,eo,ea,null==J?void 0:J.className,{[`${ee}-rtl`]:"rtl"===Z,[`${ee}-picture-card-wrapper`]:"picture-card"===l,[`${ee}-picture-circle-wrapper`]:"picture-circle"===l}),ev=Object.assign(Object.assign({},null==J?void 0:J.style),C);if("drag"===$){let e=E()(eo,ee,`${ee}-drag`,{[`${ee}-drag-uploading`]:B.some(e=>"uploading"===e.status),[`${ee}-drag-hover`]:"dragover"===L,[`${ee}-disabled`]:T,[`${ee}-rtl`]:"rtl"===Z});return er(x.createElement("span",{className:eh,ref:_},x.createElement("div",{className:e,style:ev,onDrop:U,onDragOver:U,onDragLeave:U},x.createElement(PZ,Object.assign({},et,{ref:W,className:`${ee}-btn`}),x.createElement("div",{className:`${ee}-drag-container`},w))),eg()))}let eb=E()(ee,`${ee}-select`,{[`${ee}-disabled`]:T,[`${ee}-hidden`]:!w}),ey=x.createElement("div",{className:eb,style:ev},x.createElement(PZ,Object.assign({},et,{ref:W})));return er("picture-card"===l||"picture-circle"===l?x.createElement("span",{className:eh,ref:_},eg(ey,!!w)):x.createElement("span",{className:eh,ref:_},ey,eg()))});var Tc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let Ts=x.forwardRef((e,t)=>{let{style:n,height:r,hasControlInside:o=!1,children:a}=e,i=Tc(e,["style","height","hasControlInside","children"]),l=Object.assign(Object.assign({},n),{height:r});return x.createElement(Tl,Object.assign({ref:t,hasControlInside:o},i,{style:l,type:"drag"}),a)});Tl.Dragger=Ts,Tl.LIST_IGNORE=Ti;let Tu=Tl;w().Component;var Td={subtree:!0,childList:!0,attributeFilter:["style","class"]};let Tf=(e,t,n=1)=>{let r=document.createElement("canvas"),o=r.getContext("2d"),a=e*n,i=t*n;return r.setAttribute("width",`${a}px`),r.setAttribute("height",`${i}px`),o.save(),[o,r,a,i]},Tp={visibility:"visible !important"};function Tm(e,t){return e.size===t.size?e:t}let Tg={position:"relative",overflow:"hidden"},Th=e=>{var t,n,r;let o,a,i,l,c,{zIndex:s=9,rotate:u=-22,width:d,height:f,image:p,content:m,font:g={},style:h,className:v,rootClassName:b,gap:y=[100,100],offset:$,children:C,inherit:S=!0}=e,k=Object.assign(Object.assign({},Tg),h),[,O]=rV(),{color:A=O.colorFill,fontSize:I=O.fontSizeLG,fontWeight:N="normal",fontStyle:j="normal",fontFamily:M="sans-serif",textAlign:R="center"}=g,[P=100,T=100]=y,z=P/2,B=T/2,D=null!=(t=null==$?void 0:$[0])?t:z,H=null!=(n=null==$?void 0:$[1])?n:B,L=w().useMemo(()=>{let e={zIndex:s,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"},t=D-z,n=H-B;return t>0&&(e.left=`${t}px`,e.width=`calc(100% - ${t}px)`,t=0),n>0&&(e.top=`${n}px`,e.height=`calc(100% - ${n}px)`,n=0),e.backgroundPosition=`${t}px ${n}px`,e},[s,D,z,H,B]),[F,W]=w().useState(),[_,V]=w().useState(()=>new Set),q=w().useMemo(()=>[].concat(F?[F]:[],(0,eM.A)(Array.from(_))),[F,_]),K=w().useCallback((e,t,n,r,o,a,i,l)=>{let[c,s,u,d]=Tf(r,o,n);if(e instanceof HTMLImageElement)c.drawImage(e,0,0,u,d);else{let{color:t,fontSize:r,fontStyle:i,fontWeight:l,fontFamily:s,textAlign:d}=a,f=Number(r)*n;c.font=`${i} normal ${l} ${f}px/${o}px ${s}`,c.fillStyle=t,c.textAlign=d,c.textBaseline="top";let p=OX(e);null==p||p.forEach((e,t)=>{c.fillText(null!=e?e:"",u/2,t*(f+3*n))})}let f=Math.PI/180*Number(t),p=Math.max(r,o),[m,g,h]=Tf(p,p,n);m.translate(h/2,h/2),m.rotate(f),u>0&&d>0&&m.drawImage(s,-u/2,-d/2);let v=0,b=0,y=0,$=0,x=u/2,w=d/2;[[0-x,0-w],[0+x,0-w],[0+x,0+w],[0-x,0+w]].forEach(([e,t])=>{let[n,r]=[e*Math.cos(f)-t*Math.sin(f),e*Math.sin(f)+t*Math.cos(f)];v=Math.min(v,n),b=Math.max(b,n),y=Math.min(y,r),$=Math.max($,r)});let C=v+h/2,E=y+h/2,S=b-v,k=$-y,O=i*n,A=l*n,I=(S+O)*2,N=k+A,[j,M]=Tf(I,N),R=(e=0,t=0)=>{j.drawImage(g,C,E,S,k,e,t,S,k)};return R(),R(S+O,-k/2-A/2),R(S+O,k/2+A/2),[M.toDataURL(),I/n,N/n]},[]),X=(o=x.useRef([null,null]),(e,t)=>{let n=e.map(e=>e instanceof HTMLElement||Number.isNaN(e)?"":e);return e5(o.current[0],n)||(o.current=[n,t()]),o.current[1]}),[G,Y]=w().useState(null),U=(r=()=>{let e=document.createElement("canvas").getContext("2d");if(e){let t=window.devicePixelRatio||1,[n,r]=(e=>{let t=120,n=64;if(!p&&e.measureText){e.font=`${Number(I)}px ${M}`;let r=OX(m),o=r.map(t=>{let n=e.measureText(t);return[n.width,n.fontBoundingBoxAscent+n.fontBoundingBoxDescent]});t=Math.ceil(Math.max.apply(Math,(0,eM.A)(o.map(e=>e[0])))),n=Math.ceil(Math.max.apply(Math,(0,eM.A)(o.map(e=>e[1]))))*r.length+(r.length-1)*3}return[null!=d?d:t,null!=f?f:n]})(e),o=e=>{let o=[e||"",u,t,n,r,{color:A,fontSize:I,fontStyle:j,fontWeight:N,fontFamily:M,textAlign:R},P,T],[a,i]=X(o,()=>K.apply(void 0,o));Y([a,i])};if(p){let e=new Image;e.onload=()=>{o(e)},e.onerror=()=>{o(m)},e.crossOrigin="anonymous",e.referrerPolicy="no-referrer",e.src=p}else o(m)}},a=w().useRef(!1),i=w().useRef(null),l=ng(r),()=>{a.current||(a.current=!0,l(),i.current=eB(()=>{a.current=!1}))}),[Q,Z,J]=(c=x.useRef(new Map),[(e,t,n)=>{if(n){var r;if(!c.current.get(n)){let e=document.createElement("div");c.current.set(n,e)}let o=c.current.get(n);o.setAttribute("style",Object.keys(r=Object.assign(Object.assign(Object.assign({},L),{backgroundImage:`url('${e}')`,backgroundSize:`${Math.floor(t)}px`}),Tp)).map(e=>`${e.replace(/([A-Z])/g,"-$1").toLowerCase()}: ${r[e]};`).join(" ")),o.removeAttribute("class"),o.removeAttribute("hidden"),o.parentElement!==n&&n.append(o)}return c.current.get(n)},e=>{let t=c.current.get(e);t&&e&&e.removeChild(t),c.current.delete(e)},e=>Array.from(c.current.values()).includes(e)]);(0,x.useEffect)(()=>{G&&q.forEach(e=>{Q(G[0],G[1],e)})},[G,q]),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Td;x.useEffect(function(){if(eG()&&e){var r,o=Array.isArray(e)?e:[e];return"MutationObserver"in window&&(r=new MutationObserver(t),o.forEach(function(e){r.observe(e,n)})),function(){var e,t;null==(e=r)||e.takeRecords(),null==(t=r)||t.disconnect()}}},[n,e])}(q,ng(e=>{e.forEach(e=>{let t;if(t=!1,e.removedNodes.length&&(t=Array.from(e.removedNodes).some(e=>J(e))),"attributes"===e.type&&J(e.target)&&(t=!0),t)U();else if(e.target===F&&"style"===e.attributeName){let e=Object.keys(Tg);for(let t=0;t<e.length;t+=1){let n=e[t],r=k[n],o=F.style[n];r&&r!==o&&(F.style[n]=r)}}})})),(0,x.useEffect)(U,[u,s,d,f,p,m,A,I,N,j,M,R,P,T,D,H]);let ee=w().useMemo(()=>({add:e=>{V(t=>{let n=new Set(t);return n.add(e),Tm(t,n)})},remove:e=>{Z(e),V(t=>{let n=new Set(t);return n.delete(e),Tm(t,n)})}}),[]),et=S?w().createElement(ua.Provider,{value:ee},C):C;return w().createElement("div",{ref:W,className:E()(v,b),style:k},et)}},796(e,t,n){"use strict";var r=n(3498),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,a,i,l,c,s,u,d,f=!1;t||(t={}),i=t.debug||!1;try{if(c=r(),s=document.createRange(),u=document.getSelection(),(d=document.createElement("span")).textContent=e,d.ariaHidden="true",d.style.all="unset",d.style.position="fixed",d.style.top=0,d.style.clip="rect(0, 0, 0, 0)",d.style.whiteSpace="pre",d.style.webkitUserSelect="text",d.style.MozUserSelect="text",d.style.msUserSelect="text",d.style.userSelect="text",d.addEventListener("copy",function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),void 0===n.clipboardData){i&&console.warn("unable to use e.clipboardData"),i&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var r=o[t.format]||o.default;window.clipboardData.setData(r,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(d),s.selectNodeContents(d),u.addRange(s),!document.execCommand("copy"))throw Error("copy command was unsuccessful");f=!0}catch(r){i&&console.error("unable to copy using execCommand: ",r),i&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(r){i&&console.error("unable to copy using clipboardData: ",r),i&&console.error("falling back to prompt"),n="message"in t?t.message:"Copy to clipboard: #{key}, Enter",a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",l=n.replace(/#{\s*key\s*}/g,a),window.prompt(l,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(s):u.removeAllRanges()),d&&document.body.removeChild(d),c()}return f}},6769(e){e.exports=function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var o=this.$utils(),a=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return o.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return o.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return o.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}});return r.bind(this)(a)}}},8251(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,o=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,i={},l=function(e){return(e*=1)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},s=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e||"Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=i.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[o,c("seconds")],ss:[o,c("seconds")],m:[o,c("minutes")],mm:[o,c("minutes")],H:[o,c("hours")],h:[o,c("hours")],HH:[o,c("hours")],hh:[o,c("hours")],D:[o,c("day")],DD:[r,c("day")],Do:[a,function(e){var t=i.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],w:[o,c("week")],ww:[r,c("week")],M:[o,c("month")],MM:[r,c("month")],MMM:[a,function(e){var t=u("months"),n=(u("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c("year")],YY:[r,function(e){this.year=l(e)}],YYYY:[/\d{4}/,c("year")],Z:s,ZZ:s};return function(n,r,o){o.p.customParseFormat=!0,n&&n.parseTwoDigitYear&&(l=n.parseTwoDigitYear);var a=r.prototype,c=a.parse;a.parse=function(n){var r=n.date,a=n.utc,l=n.args;this.$u=a;var s=l[1];if("string"==typeof s){var u=!0===l[2],d=!0===l[3],p=l[2];d&&(p=l[2]),i=this.$locale(),!u&&p&&(i=o.Ls[p]),this.$d=function(n,r,o,a){try{if(["x","X"].indexOf(r)>-1)return new Date(("X"===r?1e3:1)*n);var l=(function(n){var r,o;r=n,o=i&&i.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,r){var a=r&&r.toUpperCase();return n||o[r]||e[r]||o[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})).match(t),l=a.length,c=0;c<l;c+=1){var s=a[c],u=f[s],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:s.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<l;n+=1){var o=a[n];if("string"==typeof o)r+=o.length;else{var i=o.regex,c=o.parser,s=e.slice(r),u=i.exec(s)[0];c.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}})(r)(n),c=l.year,s=l.month,u=l.day,d=l.hours,p=l.minutes,m=l.seconds,g=l.milliseconds,h=l.zone,v=l.week,b=new Date,y=u||(c||s?1:b.getDate()),$=c||b.getFullYear(),x=0;c&&!s||(x=s>0?s-1:b.getMonth());var w,C=d||0,E=p||0,S=m||0,k=g||0;return h?new Date(Date.UTC($,x,y,C,E,S,k+60*h.offset*1e3)):o?new Date(Date.UTC($,x,y,C,E,S,k)):(w=new Date($,x,y,C,E,S,k),v&&(w=a(w).week(v).toDate()),w)}catch(e){return new Date("")}}(r,s,a,o),this.init(),p&&!0!==p&&(this.$L=this.locale(p).$L),(u||d)&&r!=this.format(s)&&(this.$d=new Date("")),i={}}else if(s instanceof Array)for(var m=s.length,g=1;g<=m;g+=1){l[1]=s[g-1];var h=o.apply(this,l);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}g===m&&(this.$d=new Date(""))}else c.call(this,n)}}}()},5530(e){e.exports=function(e,t,n){var r=t.prototype,o=function(e){return e&&(e.indexOf?e:e.s)},a=function(e,t,n,r,a){var i=e.name?e:e.$locale(),l=o(i[t]),c=o(i[n]),s=l||c.map(function(e){return e.slice(0,r)});if(!a)return s;var u=i.weekStart;return s.map(function(e,t){return s[(t+(u||0))%7]})},i=function(){return n.Ls[n.locale()]},l=function(e,t){return e.formats[t]||e.formats[t.toUpperCase()].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})},c=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):a(e,"months")},monthsShort:function(t){return t?t.format("MMM"):a(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):a(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):a(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):a(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return l(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=i();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return l(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return a(i(),"months")},n.monthsShort=function(){return a(i(),"monthsShort","months",3)},n.weekdays=function(e){return a(i(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return a(i(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return a(i(),"weekdaysMin","weekdays",2,e)}}},4020(e){e.exports=function(){"use strict";var e="week",t="year";return function(n,r,o){var a=r.prototype;a.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var a=o(this).startOf(t).add(1,t).date(r),i=o(this).endOf(e);if(a.isBefore(i))return 1}var l=o(this).startOf(t).date(r).startOf(e).subtract(1,"millisecond"),c=this.diff(l,e,!0);return c<0?o(this).startOf("week").week():Math.ceil(c)},a.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()},7749(e){e.exports=function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}}},8176(e){e.exports=function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(n<t?n+7:n)-t;return this.$utils().u(e)?r:this.subtract(r,"day").add(e,"day")}}},5401(e,t,n){var r=n(6532),o=function(e){var t="",n=Object.keys(e);return n.forEach(function(o,a){var i,l=e[o];i=o=r(o),/[height|width]$/.test(i)&&"number"==typeof l&&(l+="px"),!0===l?t+=o:!1===l?t+="not "+o:t+="("+o+": "+l+")",a<n.length-1&&(t+=" and ")}),t};e.exports=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach(function(n,r){t+=o(n),r<e.length-1&&(t+=", ")}),t):o(e)}},4726(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.ForwardRef=u,t.isMemo=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case i:case a:case d:case f:return e;default:switch(e=e&&e.$$typeof){case s:case c:case u:case m:case p:case l:return e;default:return t}}case r:return t}}}(e)===p}},3930(e,t,n){"use strict";e.exports=n(4726)},6532(e){e.exports=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}).toLowerCase()}},3498(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}},9400(e){!function(){"use strict";var t={}.hasOwnProperty;function n(){for(var e="",o=0;o<arguments.length;o++){var a=arguments[o];a&&(e=r(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var o="";for(var a in e)t.call(e,a)&&e[a]&&(o=r(o,a));return o}(a)))}return e}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],function(){return n}):window.classNames=n}()}}]);
446
- //# sourceMappingURL=46.js.map
445
+ `]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorIcon,fontSize:r},[`${i}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:a(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${i}:hover ${c}`]:{opacity:1},[`${i}-error`]:{color:e.colorError,[`${i}-name, ${t}-icon ${n}`]:{color:e.colorError},[l]:{[`${n}, ${n}:hover`]:{color:e.colorError},[c]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}})(i),(e=>{let{componentCls:t}=e,n=new no("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new no("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${o}-appear, ${o}-enter, ${o}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${o}-appear, ${o}-enter`]:{animationName:n},[`${o}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:ub(e)},n,r]})(i),(e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}})(i),lq(i)]},e=>({actionsColor:e.colorIcon,pictureCardSize:2.55*e.controlHeightLG})),P0={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"};var P1=x.forwardRef(function(e,t){return x.createElement(oi,S({},e,{ref:t,icon:P0}))});let P2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};var P4=x.forwardRef(function(e,t){return x.createElement(oi,S({},e,{ref:t,icon:P2}))});let P3={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"};var P6=x.forwardRef(function(e,t){return x.createElement(oi,S({},e,{ref:t,icon:P3}))});function P5(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function P8(e,t){let n=(0,eM.A)(t),r=n.findIndex(({uid:t})=>t===e.uid);return -1===r?n.push(e):n[r]=e,n}function P7(e,t){let n=void 0!==e.uid?"uid":"name";return t.filter(t=>t[n]===e[n])[0]}let P9=e=>0===e.indexOf("image/"),Te=e=>{if(e.type&&!e.thumbUrl)return P9(e.type);let t=e.thumbUrl||e.url||"",n=((e="")=>{let t=e.split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]})(t);return!!(/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n))||!/^data:/.test(t)&&!n};function Tt(e){return new Promise(t=>{if(!e.type||!P9(e.type))return void t("");let n=document.createElement("canvas");n.width=200,n.height=200,n.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(n);let r=n.getContext("2d"),o=new Image;if(o.onload=()=>{let{width:e,height:a}=o,i=200,l=200,c=0,s=0;e>a?s=-((l=200/e*a)-i)/2:c=-((i=200/a*e)-l)/2,r.drawImage(o,c,s,i,l);let u=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(o.src),t(u)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){let t=new FileReader;t.onload=()=>{t.result&&"string"==typeof t.result&&(o.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){let n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}let Tn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};var Tr=x.forwardRef(function(e,t){return x.createElement(oi,S({},e,{ref:t,icon:Tn}))});let To=x.forwardRef(({prefixCls:e,className:t,style:n,locale:r,listType:o,file:a,items:i,progress:l,iconRender:c,actionIconRender:s,itemRender:u,isImgUrl:d,showPreviewIcon:f,showRemoveIcon:p,showDownloadIcon:m,previewIcon:g,removeIcon:h,downloadIcon:v,extra:b,onPreview:y,onDownload:$,onClose:w},C)=>{var S,k;let{status:O}=a,[A,I]=x.useState(O);x.useEffect(()=>{"removed"!==O&&I(O)},[O]);let[N,j]=x.useState(!1);x.useEffect(()=>{let e=setTimeout(()=>{j(!0)},300);return()=>{clearTimeout(e)}},[]);let M=c(a),R=x.createElement("div",{className:`${e}-icon`},M);if("picture"===o||"picture-card"===o||"picture-circle"===o)if("uploading"!==A&&(a.thumbUrl||a.url)){let t=(null==d?void 0:d(a))?x.createElement("img",{src:a.thumbUrl||a.url,alt:a.name,className:`${e}-list-item-image`,crossOrigin:a.crossOrigin}):M,n=E()(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:d&&!d(a)});R=x.createElement("a",{className:n,onClick:e=>y(a,e),href:a.url||a.thumbUrl,target:"_blank",rel:"noopener noreferrer"},t)}else{let t=E()(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:"uploading"!==A});R=x.createElement("div",{className:t},M)}let P=E()(`${e}-list-item`,`${e}-list-item-${A}`),T="string"==typeof a.linkProps?JSON.parse(a.linkProps):a.linkProps,z=("function"==typeof p?p(a):p)?s(("function"==typeof h?h(a):h)||x.createElement(RP,null),()=>w(a),e,r.removeFile,!0):null,B=("function"==typeof m?m(a):m)&&"done"===A?s(("function"==typeof v?v(a):v)||x.createElement(Tr,null),()=>$(a),e,r.downloadFile):null,D="picture-card"!==o&&"picture-circle"!==o&&x.createElement("span",{key:"download-delete",className:E()(`${e}-list-item-actions`,{picture:"picture"===o})},B,z),H="function"==typeof b?b(a):b,L=H&&x.createElement("span",{className:`${e}-list-item-extra`},H),F=E()(`${e}-list-item-name`),W=a.url?x.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:F,title:a.name},T,{href:a.url,onClick:e=>y(a,e)}),a.name,L):x.createElement("span",{key:"view",className:F,onClick:e=>y(a,e),title:a.name},a.name,L),_=("function"==typeof f?f(a):f)&&(a.url||a.thumbUrl)?x.createElement("a",{href:a.url||a.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:e=>y(a,e),title:r.previewFile},"function"==typeof g?g(a):g||x.createElement(SJ,null)):null,V=("picture-card"===o||"picture-circle"===o)&&"uploading"!==A&&x.createElement("span",{className:`${e}-list-item-actions`},_,"done"===A&&B,z),{getPrefixCls:q}=x.useContext(eF),K=q(),X=x.createElement("div",{className:P},R,W,D,V,N&&x.createElement(oX,{motionName:`${K}-fade`,visible:"uploading"===A,motionDeadline:2e3},({className:t})=>{let n="percent"in a?x.createElement(Aq,Object.assign({type:"line",percent:a.percent,"aria-label":a["aria-label"],"aria-labelledby":a["aria-labelledby"]},l)):null;return x.createElement("div",{className:E()(`${e}-list-item-progress`,t)},n)})),G=a.response&&"string"==typeof a.response?a.response:(null==(S=a.error)?void 0:S.statusText)||(null==(k=a.error)?void 0:k.message)||r.uploadError,Y="error"===A?x.createElement(ms,{title:G,getPopupContainer:e=>e.parentNode},X):X;return x.createElement("div",{className:E()(`${e}-list-item-container`,t),style:n,ref:C},u?u(Y,a,i,{download:$.bind(null,a),preview:y.bind(null,a),remove:w.bind(null,a)}):Y)}),Ta=x.forwardRef((e,t)=>{let{listType:n="text",previewFile:r=Tt,onPreview:o,onDownload:a,onRemove:i,locale:l,iconRender:c,isImageUrl:s=Te,prefixCls:u,items:d=[],showPreviewIcon:f=!0,showRemoveIcon:p=!0,showDownloadIcon:m=!1,removeIcon:g,previewIcon:h,downloadIcon:v,extra:b,progress:y={size:[-1,2],showInfo:!1},appendAction:$,appendActionVisible:w=!0,itemRender:C,disabled:S}=e,[,k]=pW(),[O,A]=x.useState(!1),I=["picture-card","picture-circle"].includes(n);x.useEffect(()=>{n.startsWith("picture")&&(d||[]).forEach(e=>{(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",null==r||r(e.originFileObj).then(t=>{e.thumbUrl=t||"",k()}))})},[n,d,r]),x.useEffect(()=>{A(!0)},[]);let N=(e,t)=>{if(o)return null==t||t.preventDefault(),o(e)},j=e=>{"function"==typeof a?a(e):e.url&&window.open(e.url)},M=e=>{null==i||i(e)},R=e=>{if(c)return c(e,n);let t="uploading"===e.status;if(n.startsWith("picture")){let r="picture"===n?x.createElement(aV,null):l.uploading,o=(null==s?void 0:s(e))?x.createElement(P6,null):x.createElement(P1,null);return t?r:o}return t?x.createElement(aV,null):x.createElement(P4,null)},P=(e,t,n,r,o)=>{let a={type:"text",size:"small",title:r,onClick:n=>{var r,o;t(),x.isValidElement(e)&&(null==(o=(r=e.props).onClick)||o.call(r,n))},className:`${n}-list-item-action`,disabled:!!o&&S};return x.isValidElement(e)?x.createElement(cu,Object.assign({},a,{icon:o7(e,Object.assign(Object.assign({},e.props),{onClick:()=>{}}))})):x.createElement(cu,Object.assign({},a),x.createElement("span",null,e))};x.useImperativeHandle(t,()=>({handlePreview:N,handleDownload:j}));let{getPrefixCls:T}=x.useContext(eF),z=T("upload",u),B=T(),D=E()(`${z}-list`,`${z}-list-${n}`),H=x.useMemo(()=>iX(iq(B),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[B]),L=Object.assign(Object.assign({},I?{}:H),{motionDeadline:2e3,motionName:`${z}-${I?"animate-inline":"animate"}`,keys:(0,eM.A)(d.map(e=>({key:e.uid,file:e}))),motionAppear:O});return x.createElement("div",{className:D},x.createElement(o2,Object.assign({},L,{component:!1}),({key:e,file:t,className:r,style:o})=>x.createElement(To,{key:e,locale:l,prefixCls:z,className:r,style:o,file:t,items:d,progress:y,listType:n,isImgUrl:s,showPreviewIcon:f,showRemoveIcon:p,showDownloadIcon:m,removeIcon:g,previewIcon:h,downloadIcon:v,extra:b,iconRender:R,actionIconRender:P,itemRender:C,onPreview:N,onDownload:j,onClose:M})),$&&x.createElement(oX,Object.assign({},L,{visible:w,forceRender:!0}),({className:e,style:t})=>o7($,n=>({className:E()(n.className,e),style:Object.assign(Object.assign(Object.assign({},t),{pointerEvents:e?"none":void 0}),n.style)}))))}),Ti=`__LIST_IGNORE_${Date.now()}__`,Tl=x.forwardRef((e,t)=>{let n=eV("upload"),{fileList:r,defaultFileList:o,onRemove:a,showUploadList:i=!0,listType:l="text",onPreview:c,onDownload:s,onChange:u,onDrop:d,previewFile:f,disabled:p,locale:m,iconRender:g,isImageUrl:h,progress:v,prefixCls:b,className:y,type:$="select",children:w,style:C,itemRender:S,maxCount:k,data:O={},multiple:A=!1,hasControlInside:I=!0,action:N="",accept:j="",supportServerRender:M=!0,rootClassName:R}=e,P=x.useContext(iu),T=null!=p?p:P,z=e.customRequest||n.customRequest,[B,D]=nb(o||[],{value:r,postState:e=>null!=e?e:[]}),[L,F]=x.useState("drop"),W=x.useRef(null),_=x.useRef(null);x.useMemo(()=>{let e=Date.now();(r||[]).forEach((t,n)=>{t.uid||Object.isFrozen(t)||(t.uid=`__AUTO__${e}_${n}__`)})},[r]);let V=(e,t,n)=>{let r=(0,eM.A)(t),o=!1;1===k?r=r.slice(-1):k&&(o=r.length>k,r=r.slice(0,k)),(0,H.flushSync)(()=>{D(r)});let a={file:e,fileList:r};n&&(a.event=n),(!o||"removed"===e.status||r.some(t=>t.uid===e.uid))&&(0,H.flushSync)(()=>{null==u||u(a)})},q=e=>{let t=e.filter(e=>!e.file[Ti]);if(!t.length)return;let n=t.map(e=>P5(e.file)),r=(0,eM.A)(B);n.forEach(e=>{r=P8(e,r)}),n.forEach((e,n)=>{let o=e;if(t[n].parsedFile)e.status="uploading";else{let t,{originFileObj:n}=e;try{t=new File([n],n.name,{type:n.type})}catch(e){(t=new Blob([n],{type:n.type})).name=n.name,t.lastModifiedDate=new Date,t.lastModified=new Date().getTime()}t.uid=e.uid,o=t}V(o,r)})},K=(e,t,n)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}if(!P7(t,B))return;let r=P5(t);r.status="done",r.percent=100,r.response=e,r.xhr=n;let o=P8(r,B);V(r,o)},X=(e,t)=>{if(!P7(t,B))return;let n=P5(t);n.status="uploading",n.percent=e.percent;let r=P8(n,B);V(n,r,e)},G=(e,t,n)=>{if(!P7(n,B))return;let r=P5(n);r.error=e,r.response=t,r.status="error";let o=P8(r,B);V(r,o)},Y=e=>{let t;Promise.resolve("function"==typeof a?a(e):a).then(n=>{var r;let o,a;if(!1===n)return;let i=(o=void 0!==e.uid?"uid":"name",(a=B.filter(t=>t[o]!==e[o])).length===B.length?null:a);i&&(t=Object.assign(Object.assign({},e),{status:"removed"}),null==B||B.forEach(e=>{let n=void 0!==t.uid?"uid":"name";e[n]!==t[n]||Object.isFrozen(e)||(e.status="removed")}),null==(r=W.current)||r.abort(t),V(t,i))})},U=e=>{F(e.type),"drop"===e.type&&(null==d||d(e))};x.useImperativeHandle(t,()=>({onBatchStart:q,onSuccess:K,onProgress:X,onError:G,fileList:B,upload:W.current,nativeElement:_.current}));let{getPrefixCls:Q,direction:Z,upload:J}=x.useContext(eF),ee=Q("upload",b),et=Object.assign(Object.assign({onBatchStart:q,onError:G,onProgress:X,onSuccess:K},e),{customRequest:z,data:O,multiple:A,action:N,accept:j,supportServerRender:M,prefixCls:ee,disabled:T,beforeUpload:(t,n)=>{var r,o,a,i;return r=void 0,o=void 0,a=void 0,i=function*(){let{beforeUpload:r,transformFile:o}=e,a=t;if(r){let e=yield r(t,n);if(!1===e)return!1;if(delete t[Ti],e===Ti)return Object.defineProperty(t,Ti,{value:!0,configurable:!0}),!1;"object"==typeof e&&e&&(a=e)}return o&&(a=yield o(a)),a},new(a||(a=Promise))(function(e,t){function n(e){try{c(i.next(e))}catch(e){t(e)}}function l(e){try{c(i.throw(e))}catch(e){t(e)}}function c(t){var r;t.done?e(t.value):((r=t.value)instanceof a?r:new a(function(e){e(r)})).then(n,l)}c((i=i.apply(r,o||[])).next())})},onChange:void 0,hasControlInside:I});delete et.className,delete et.style,(!w||T)&&delete et.id;let en=`${ee}-wrapper`,[er,eo,ea]=PJ(ee,en),[ei]=iK("Upload",ir.Upload),{showRemoveIcon:el,showPreviewIcon:ec,showDownloadIcon:es,removeIcon:eu,previewIcon:ed,downloadIcon:ef,extra:ep}="boolean"==typeof i?{}:i,em=void 0===el?!T:el,eg=(e,t)=>i?x.createElement(Ta,{prefixCls:ee,listType:l,items:B,previewFile:f,onPreview:c,onDownload:s,onRemove:Y,showRemoveIcon:em,showPreviewIcon:ec,showDownloadIcon:es,removeIcon:eu,previewIcon:ed,downloadIcon:ef,iconRender:g,extra:ep,locale:Object.assign(Object.assign({},ei),m),isImageUrl:h,progress:v,appendAction:e,appendActionVisible:t,itemRender:S,disabled:T}):e,eh=E()(en,y,R,eo,ea,null==J?void 0:J.className,{[`${ee}-rtl`]:"rtl"===Z,[`${ee}-picture-card-wrapper`]:"picture-card"===l,[`${ee}-picture-circle-wrapper`]:"picture-circle"===l}),ev=Object.assign(Object.assign({},null==J?void 0:J.style),C);if("drag"===$){let e=E()(eo,ee,`${ee}-drag`,{[`${ee}-drag-uploading`]:B.some(e=>"uploading"===e.status),[`${ee}-drag-hover`]:"dragover"===L,[`${ee}-disabled`]:T,[`${ee}-rtl`]:"rtl"===Z});return er(x.createElement("span",{className:eh,ref:_},x.createElement("div",{className:e,style:ev,onDrop:U,onDragOver:U,onDragLeave:U},x.createElement(PZ,Object.assign({},et,{ref:W,className:`${ee}-btn`}),x.createElement("div",{className:`${ee}-drag-container`},w))),eg()))}let eb=E()(ee,`${ee}-select`,{[`${ee}-disabled`]:T,[`${ee}-hidden`]:!w}),ey=x.createElement("div",{className:eb,style:ev},x.createElement(PZ,Object.assign({},et,{ref:W})));return er("picture-card"===l||"picture-circle"===l?x.createElement("span",{className:eh,ref:_},eg(ey,!!w)):x.createElement("span",{className:eh,ref:_},ey,eg()))});var Tc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let Ts=x.forwardRef((e,t)=>{let{style:n,height:r,hasControlInside:o=!1,children:a}=e,i=Tc(e,["style","height","hasControlInside","children"]),l=Object.assign(Object.assign({},n),{height:r});return x.createElement(Tl,Object.assign({ref:t,hasControlInside:o},i,{style:l,type:"drag"}),a)});Tl.Dragger=Ts,Tl.LIST_IGNORE=Ti;let Tu=Tl;w().Component;var Td={subtree:!0,childList:!0,attributeFilter:["style","class"]};let Tf=(e,t,n=1)=>{let r=document.createElement("canvas"),o=r.getContext("2d"),a=e*n,i=t*n;return r.setAttribute("width",`${a}px`),r.setAttribute("height",`${i}px`),o.save(),[o,r,a,i]},Tp={visibility:"visible !important"};function Tm(e,t){return e.size===t.size?e:t}let Tg={position:"relative",overflow:"hidden"},Th=e=>{var t,n,r;let o,a,i,l,c,{zIndex:s=9,rotate:u=-22,width:d,height:f,image:p,content:m,font:g={},style:h,className:v,rootClassName:b,gap:y=[100,100],offset:$,children:C,inherit:S=!0}=e,k=Object.assign(Object.assign({},Tg),h),[,O]=rV(),{color:A=O.colorFill,fontSize:I=O.fontSizeLG,fontWeight:N="normal",fontStyle:j="normal",fontFamily:M="sans-serif",textAlign:R="center"}=g,[P=100,T=100]=y,z=P/2,B=T/2,D=null!=(t=null==$?void 0:$[0])?t:z,H=null!=(n=null==$?void 0:$[1])?n:B,L=w().useMemo(()=>{let e={zIndex:s,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"},t=D-z,n=H-B;return t>0&&(e.left=`${t}px`,e.width=`calc(100% - ${t}px)`,t=0),n>0&&(e.top=`${n}px`,e.height=`calc(100% - ${n}px)`,n=0),e.backgroundPosition=`${t}px ${n}px`,e},[s,D,z,H,B]),[F,W]=w().useState(),[_,V]=w().useState(()=>new Set),q=w().useMemo(()=>[].concat(F?[F]:[],(0,eM.A)(Array.from(_))),[F,_]),K=w().useCallback((e,t,n,r,o,a,i,l)=>{let[c,s,u,d]=Tf(r,o,n);if(e instanceof HTMLImageElement)c.drawImage(e,0,0,u,d);else{let{color:t,fontSize:r,fontStyle:i,fontWeight:l,fontFamily:s,textAlign:d}=a,f=Number(r)*n;c.font=`${i} normal ${l} ${f}px/${o}px ${s}`,c.fillStyle=t,c.textAlign=d,c.textBaseline="top";let p=OX(e);null==p||p.forEach((e,t)=>{c.fillText(null!=e?e:"",u/2,t*(f+3*n))})}let f=Math.PI/180*Number(t),p=Math.max(r,o),[m,g,h]=Tf(p,p,n);m.translate(h/2,h/2),m.rotate(f),u>0&&d>0&&m.drawImage(s,-u/2,-d/2);let v=0,b=0,y=0,$=0,x=u/2,w=d/2;[[0-x,0-w],[0+x,0-w],[0+x,0+w],[0-x,0+w]].forEach(([e,t])=>{let[n,r]=[e*Math.cos(f)-t*Math.sin(f),e*Math.sin(f)+t*Math.cos(f)];v=Math.min(v,n),b=Math.max(b,n),y=Math.min(y,r),$=Math.max($,r)});let C=v+h/2,E=y+h/2,S=b-v,k=$-y,O=i*n,A=l*n,I=(S+O)*2,N=k+A,[j,M]=Tf(I,N),R=(e=0,t=0)=>{j.drawImage(g,C,E,S,k,e,t,S,k)};return R(),R(S+O,-k/2-A/2),R(S+O,k/2+A/2),[M.toDataURL(),I/n,N/n]},[]),X=(o=x.useRef([null,null]),(e,t)=>{let n=e.map(e=>e instanceof HTMLElement||Number.isNaN(e)?"":e);return e5(o.current[0],n)||(o.current=[n,t()]),o.current[1]}),[G,Y]=w().useState(null),U=(r=()=>{let e=document.createElement("canvas").getContext("2d");if(e){let t=window.devicePixelRatio||1,[n,r]=(e=>{let t=120,n=64;if(!p&&e.measureText){e.font=`${Number(I)}px ${M}`;let r=OX(m),o=r.map(t=>{let n=e.measureText(t);return[n.width,n.fontBoundingBoxAscent+n.fontBoundingBoxDescent]});t=Math.ceil(Math.max.apply(Math,(0,eM.A)(o.map(e=>e[0])))),n=Math.ceil(Math.max.apply(Math,(0,eM.A)(o.map(e=>e[1]))))*r.length+(r.length-1)*3}return[null!=d?d:t,null!=f?f:n]})(e),o=e=>{let o=[e||"",u,t,n,r,{color:A,fontSize:I,fontStyle:j,fontWeight:N,fontFamily:M,textAlign:R},P,T],[a,i]=X(o,()=>K.apply(void 0,o));Y([a,i])};if(p){let e=new Image;e.onload=()=>{o(e)},e.onerror=()=>{o(m)},e.crossOrigin="anonymous",e.referrerPolicy="no-referrer",e.src=p}else o(m)}},a=w().useRef(!1),i=w().useRef(null),l=ng(r),()=>{a.current||(a.current=!0,l(),i.current=eB(()=>{a.current=!1}))}),[Q,Z,J]=(c=x.useRef(new Map),[(e,t,n)=>{if(n){var r;if(!c.current.get(n)){let e=document.createElement("div");c.current.set(n,e)}let o=c.current.get(n);o.setAttribute("style",Object.keys(r=Object.assign(Object.assign(Object.assign({},L),{backgroundImage:`url('${e}')`,backgroundSize:`${Math.floor(t)}px`}),Tp)).map(e=>`${e.replace(/([A-Z])/g,"-$1").toLowerCase()}: ${r[e]};`).join(" ")),o.removeAttribute("class"),o.removeAttribute("hidden"),o.parentElement!==n&&n.append(o)}return c.current.get(n)},e=>{let t=c.current.get(e);t&&e&&e.removeChild(t),c.current.delete(e)},e=>Array.from(c.current.values()).includes(e)]);(0,x.useEffect)(()=>{G&&q.forEach(e=>{Q(G[0],G[1],e)})},[G,q]),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Td;x.useEffect(function(){if(eG()&&e){var r,o=Array.isArray(e)?e:[e];return"MutationObserver"in window&&(r=new MutationObserver(t),o.forEach(function(e){r.observe(e,n)})),function(){var e,t;null==(e=r)||e.takeRecords(),null==(t=r)||t.disconnect()}}},[n,e])}(q,ng(e=>{e.forEach(e=>{let t;if(t=!1,e.removedNodes.length&&(t=Array.from(e.removedNodes).some(e=>J(e))),"attributes"===e.type&&J(e.target)&&(t=!0),t)U();else if(e.target===F&&"style"===e.attributeName){let e=Object.keys(Tg);for(let t=0;t<e.length;t+=1){let n=e[t],r=k[n],o=F.style[n];r&&r!==o&&(F.style[n]=r)}}})})),(0,x.useEffect)(U,[u,s,d,f,p,m,A,I,N,j,M,R,P,T,D,H]);let ee=w().useMemo(()=>({add:e=>{V(t=>{let n=new Set(t);return n.add(e),Tm(t,n)})},remove:e=>{Z(e),V(t=>{let n=new Set(t);return n.delete(e),Tm(t,n)})}}),[]),et=S?w().createElement(ua.Provider,{value:ee},C):C;return w().createElement("div",{ref:W,className:E()(v,b),style:k},et)}},796(e,t,n){"use strict";var r=n(3498),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,a,i,l,c,s,u,d,f=!1;t||(t={}),i=t.debug||!1;try{if(c=r(),s=document.createRange(),u=document.getSelection(),(d=document.createElement("span")).textContent=e,d.ariaHidden="true",d.style.all="unset",d.style.position="fixed",d.style.top=0,d.style.clip="rect(0, 0, 0, 0)",d.style.whiteSpace="pre",d.style.webkitUserSelect="text",d.style.MozUserSelect="text",d.style.msUserSelect="text",d.style.userSelect="text",d.addEventListener("copy",function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),void 0===n.clipboardData){i&&console.warn("unable to use e.clipboardData"),i&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var r=o[t.format]||o.default;window.clipboardData.setData(r,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(d),s.selectNodeContents(d),u.addRange(s),!document.execCommand("copy"))throw Error("copy command was unsuccessful");f=!0}catch(r){i&&console.error("unable to copy using execCommand: ",r),i&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(r){i&&console.error("unable to copy using clipboardData: ",r),i&&console.error("falling back to prompt"),n="message"in t?t.message:"Copy to clipboard: #{key}, Enter",a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",l=n.replace(/#{\s*key\s*}/g,a),window.prompt(l,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(s):u.removeAllRanges()),d&&document.body.removeChild(d),c()}return f}},6769(e){e.exports=function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var o=this.$utils(),a=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return o.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return o.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return o.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}});return r.bind(this)(a)}}},8251(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,o=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,i={},l=function(e){return(e*=1)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},s=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e||"Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=i.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[o,c("seconds")],ss:[o,c("seconds")],m:[o,c("minutes")],mm:[o,c("minutes")],H:[o,c("hours")],h:[o,c("hours")],HH:[o,c("hours")],hh:[o,c("hours")],D:[o,c("day")],DD:[r,c("day")],Do:[a,function(e){var t=i.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],w:[o,c("week")],ww:[r,c("week")],M:[o,c("month")],MM:[r,c("month")],MMM:[a,function(e){var t=u("months"),n=(u("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c("year")],YY:[r,function(e){this.year=l(e)}],YYYY:[/\d{4}/,c("year")],Z:s,ZZ:s};return function(n,r,o){o.p.customParseFormat=!0,n&&n.parseTwoDigitYear&&(l=n.parseTwoDigitYear);var a=r.prototype,c=a.parse;a.parse=function(n){var r=n.date,a=n.utc,l=n.args;this.$u=a;var s=l[1];if("string"==typeof s){var u=!0===l[2],d=!0===l[3],p=l[2];d&&(p=l[2]),i=this.$locale(),!u&&p&&(i=o.Ls[p]),this.$d=function(n,r,o,a){try{if(["x","X"].indexOf(r)>-1)return new Date(("X"===r?1e3:1)*n);var l=(function(n){var r,o;r=n,o=i&&i.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,r){var a=r&&r.toUpperCase();return n||o[r]||e[r]||o[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})).match(t),l=a.length,c=0;c<l;c+=1){var s=a[c],u=f[s],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:s.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<l;n+=1){var o=a[n];if("string"==typeof o)r+=o.length;else{var i=o.regex,c=o.parser,s=e.slice(r),u=i.exec(s)[0];c.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}})(r)(n),c=l.year,s=l.month,u=l.day,d=l.hours,p=l.minutes,m=l.seconds,g=l.milliseconds,h=l.zone,v=l.week,b=new Date,y=u||(c||s?1:b.getDate()),$=c||b.getFullYear(),x=0;c&&!s||(x=s>0?s-1:b.getMonth());var w,C=d||0,E=p||0,S=m||0,k=g||0;return h?new Date(Date.UTC($,x,y,C,E,S,k+60*h.offset*1e3)):o?new Date(Date.UTC($,x,y,C,E,S,k)):(w=new Date($,x,y,C,E,S,k),v&&(w=a(w).week(v).toDate()),w)}catch(e){return new Date("")}}(r,s,a,o),this.init(),p&&!0!==p&&(this.$L=this.locale(p).$L),(u||d)&&r!=this.format(s)&&(this.$d=new Date("")),i={}}else if(s instanceof Array)for(var m=s.length,g=1;g<=m;g+=1){l[1]=s[g-1];var h=o.apply(this,l);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}g===m&&(this.$d=new Date(""))}else c.call(this,n)}}}()},5530(e){e.exports=function(e,t,n){var r=t.prototype,o=function(e){return e&&(e.indexOf?e:e.s)},a=function(e,t,n,r,a){var i=e.name?e:e.$locale(),l=o(i[t]),c=o(i[n]),s=l||c.map(function(e){return e.slice(0,r)});if(!a)return s;var u=i.weekStart;return s.map(function(e,t){return s[(t+(u||0))%7]})},i=function(){return n.Ls[n.locale()]},l=function(e,t){return e.formats[t]||e.formats[t.toUpperCase()].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})},c=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):a(e,"months")},monthsShort:function(t){return t?t.format("MMM"):a(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):a(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):a(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):a(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return l(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=i();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return l(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return a(i(),"months")},n.monthsShort=function(){return a(i(),"monthsShort","months",3)},n.weekdays=function(e){return a(i(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return a(i(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return a(i(),"weekdaysMin","weekdays",2,e)}}},4020(e){e.exports=function(){"use strict";var e="week",t="year";return function(n,r,o){var a=r.prototype;a.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var a=o(this).startOf(t).add(1,t).date(r),i=o(this).endOf(e);if(a.isBefore(i))return 1}var l=o(this).startOf(t).date(r).startOf(e).subtract(1,"millisecond"),c=this.diff(l,e,!0);return c<0?o(this).startOf("week").week():Math.ceil(c)},a.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()},7749(e){e.exports=function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}}},8176(e){e.exports=function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(n<t?n+7:n)-t;return this.$utils().u(e)?r:this.subtract(r,"day").add(e,"day")}}},5401(e,t,n){var r=n(6532),o=function(e){var t="",n=Object.keys(e);return n.forEach(function(o,a){var i,l=e[o];i=o=r(o),/[height|width]$/.test(i)&&"number"==typeof l&&(l+="px"),!0===l?t+=o:!1===l?t+="not "+o:t+="("+o+": "+l+")",a<n.length-1&&(t+=" and ")}),t};e.exports=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach(function(n,r){t+=o(n),r<e.length-1&&(t+=", ")}),t):o(e)}},4726(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.ForwardRef=u,t.isMemo=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case i:case a:case d:case f:return e;default:switch(e=e&&e.$$typeof){case s:case c:case u:case m:case p:case l:return e;default:return t}}case r:return t}}}(e)===p}},3930(e,t,n){"use strict";e.exports=n(4726)},6532(e){e.exports=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}).toLowerCase()}},3498(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}},9400(e){!function(){"use strict";var t={}.hasOwnProperty;function n(){for(var e="",o=0;o<arguments.length;o++){var a=arguments[o];a&&(e=r(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var o="";for(var a in e)t.call(e,a)&&e[a]&&(o=r(o,a));return o}(a)))}return e}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],function(){return n}):window.classNames=n}()}}]);
@@ -1,2 +1 @@
1
- "use strict";(self.rspackChunk_kb_labs_workflow_entry=self.rspackChunk_kb_labs_workflow_entry||[]).push([[50],{6026(e,s){var t=Symbol.for("react.transitional.element");function r(e,s,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==s.key&&(o=""+s.key),"key"in s)for(var i in r={},s)"key"!==i&&(r[i]=s[i]);else r=s;return{$$typeof:t,type:e,key:o,ref:void 0!==(s=r.ref)?s:null,props:r}}s.Fragment=Symbol.for("react.fragment"),s.jsx=r,s.jsxs=r},4552(e,s,t){e.exports=t(6026)},4332(e,s,t){t.r(s);var r=t(92),o=t(4552),i=class{subscriptions=new Map;history=[];devToolsObserver;subscribe(e,s,t,r){let o={event:e,handler:s,pluginId:t,pageId:r};return this.subscriptions.has(e)||this.subscriptions.set(e,new Set),this.subscriptions.get(e).add(o),()=>{this.subscriptions.get(e)?.delete(o)}}publish(e,s,t,r){let o={sourcePluginId:t,sourcePageId:r,timestamp:Date.now()},i={event:e,payload:s,meta:o};this.history.push(i),this.history.length>100&&this.history.shift(),this.devToolsObserver?.(i);let n=this.subscriptions.get(e);if(n)for(let t of n)try{t.handler(s,o)}catch(s){console.error(`[StudioEventBus] Handler error for "${e}" in ${t.pluginId}:${t.pageId}:`,s)}}unsubscribeAll(e,s){for(let[,t]of this.subscriptions)for(let r of t)r.pluginId===e&&r.pageId===s&&t.delete(r)}getHistory(){return this.history}setDevToolsObserver(e){this.devToolsObserver=e}clearDevToolsObserver(){this.devToolsObserver=void 0}reset(){this.subscriptions.clear(),this.history=[]}},n=new i,l=(0,r.createContext)(n);function u({children:e,bus:s}){return(0,o.jsx)(l.Provider,{value:s??n,children:e})}function h(){return(0,r.useContext)(l)}t.d(s,{EventBusProvider:()=>u,StudioEventBus:()=>i,eventBus:()=>n,useEventBusContext:()=>h})}}]);
2
- //# sourceMappingURL=50.js.map
1
+ "use strict";(self.rspackChunk_kb_labs_workflow_entry=self.rspackChunk_kb_labs_workflow_entry||[]).push([[50],{6026(e,s){var t=Symbol.for("react.transitional.element");function r(e,s,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==s.key&&(o=""+s.key),"key"in s)for(var i in r={},s)"key"!==i&&(r[i]=s[i]);else r=s;return{$$typeof:t,type:e,key:o,ref:void 0!==(s=r.ref)?s:null,props:r}}s.Fragment=Symbol.for("react.fragment"),s.jsx=r,s.jsxs=r},4552(e,s,t){e.exports=t(6026)},4332(e,s,t){t.r(s);var r=t(92),o=t(4552),i=class{subscriptions=new Map;history=[];devToolsObserver;subscribe(e,s,t,r){let o={event:e,handler:s,pluginId:t,pageId:r};return this.subscriptions.has(e)||this.subscriptions.set(e,new Set),this.subscriptions.get(e).add(o),()=>{this.subscriptions.get(e)?.delete(o)}}publish(e,s,t,r){let o={sourcePluginId:t,sourcePageId:r,timestamp:Date.now()},i={event:e,payload:s,meta:o};this.history.push(i),this.history.length>100&&this.history.shift(),this.devToolsObserver?.(i);let n=this.subscriptions.get(e);if(n)for(let t of n)try{t.handler(s,o)}catch(s){console.error(`[StudioEventBus] Handler error for "${e}" in ${t.pluginId}:${t.pageId}:`,s)}}unsubscribeAll(e,s){for(let[,t]of this.subscriptions)for(let r of t)r.pluginId===e&&r.pageId===s&&t.delete(r)}getHistory(){return this.history}setDevToolsObserver(e){this.devToolsObserver=e}clearDevToolsObserver(){this.devToolsObserver=void 0}reset(){this.subscriptions.clear(),this.history=[]}},n=new i,l=(0,r.createContext)(n);function u({children:e,bus:s}){return(0,o.jsx)(l.Provider,{value:s??n,children:e})}function h(){return(0,r.useContext)(l)}t.d(s,{EventBusProvider:()=>u,StudioEventBus:()=>i,eventBus:()=>n,useEventBusContext:()=>h})}}]);
@@ -1,2 +1 @@
1
- "use strict";(self.rspackChunk_kb_labs_workflow_entry=self.rspackChunk_kb_labs_workflow_entry||[]).push([[546],{3978(e,t,r){var i=r(92);function n(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var s={d:{f:o,r:function(){throw Error(n(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},f=Symbol.for("react.portal"),c=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,t.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(n(299));return function(e,t,r){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:f,key:null==i?null:""+i,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},t.flushSync=function(e){var t=c.T,r=s.p;try{if(c.T=null,s.p=2,e)return e()}finally{c.T=t,s.p=r,s.d.f()}},t.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,s.d.C(e,t))},t.prefetchDNS=function(e){"string"==typeof e&&s.d.D(e)},t.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var r=t.as,i=y(r,t.crossOrigin),n="string"==typeof t.integrity?t.integrity:void 0,o="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===r?s.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:i,integrity:n,fetchPriority:o}):"script"===r&&s.d.X(e,{crossOrigin:i,integrity:n,fetchPriority:o,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},t.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var r=y(t.as,t.crossOrigin);s.d.M(e,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&s.d.M(e)},t.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var r=t.as,i=y(r,t.crossOrigin);s.d.L(e,r,{crossOrigin:i,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},t.preloadModule=function(e,t){if("string"==typeof e)if(t){var r=y(t.as,t.crossOrigin);s.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else s.d.m(e)},t.requestFormReset=function(e){s.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,r){return c.H.useFormState(e,t,r)},t.useFormStatus=function(){return c.H.useHostTransitionStatus()},t.version="19.2.5"},1297(e,t,r){!function e(){if("u">typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(3978)}}]);
2
- //# sourceMappingURL=546.js.map
1
+ "use strict";(self.rspackChunk_kb_labs_workflow_entry=self.rspackChunk_kb_labs_workflow_entry||[]).push([[546],{3978(e,t,r){var i=r(92);function n(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var s={d:{f:o,r:function(){throw Error(n(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},f=Symbol.for("react.portal"),c=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,t.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(n(299));return function(e,t,r){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:f,key:null==i?null:""+i,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},t.flushSync=function(e){var t=c.T,r=s.p;try{if(c.T=null,s.p=2,e)return e()}finally{c.T=t,s.p=r,s.d.f()}},t.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,s.d.C(e,t))},t.prefetchDNS=function(e){"string"==typeof e&&s.d.D(e)},t.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var r=t.as,i=y(r,t.crossOrigin),n="string"==typeof t.integrity?t.integrity:void 0,o="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===r?s.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:i,integrity:n,fetchPriority:o}):"script"===r&&s.d.X(e,{crossOrigin:i,integrity:n,fetchPriority:o,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},t.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var r=y(t.as,t.crossOrigin);s.d.M(e,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&s.d.M(e)},t.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var r=t.as,i=y(r,t.crossOrigin);s.d.L(e,r,{crossOrigin:i,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},t.preloadModule=function(e,t){if("string"==typeof e)if(t){var r=y(t.as,t.crossOrigin);s.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else s.d.m(e)},t.requestFormReset=function(e){s.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,r){return c.H.useFormState(e,t,r)},t.useFormStatus=function(){return c.H.useHostTransitionStatus()},t.version="19.2.5"},1297(e,t,r){!function e(){if("u">typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(3978)}}]);
@@ -93,5 +93,4 @@ ${this.parser.parse(t)}</blockquote>
93
93
  ${t}</tr>
94
94
  `}tablecell(t){let e=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>
95
95
  `}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>${ta(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:n}){let r=this.parser.parseInline(n),i=to(t);if(null===i)return r;let A='<a href="'+(t=i)+'"';return e&&(A+=' title="'+ta(e)+'"'),A+=">"+r+"</a>"}image({href:t,title:e,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=to(t);if(null===i)return ta(n);t=i;let A=`<img src="${t}" alt="${ta(n)}"`;return e&&(A+=` title="${ta(e)}"`),A+=">"}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:ta(t.text)}},td=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}},tp=class t{options;renderer;textRenderer;constructor(t){this.options=t||i,this.options.renderer=this.options.renderer||new th,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new td}static parse(e,n){return new t(n).parse(e)}static parseInline(e,n){return new t(n).parseInline(e)}parse(t){this.renderer.parser=this;let e="";for(let n=0;n<t.length;n++){let r=t[n];if(this.options.extensions?.renderers?.[r.type]){let t=this.options.extensions.renderers[r.type].call({parser:this},r);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(r.type)){e+=t||"";continue}}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 t='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw Error(t)}}}return e}parseInline(t,e=this.renderer){this.renderer.parser=this;let n="";for(let r=0;r<t.length;r++){let i=t[r];if(this.options.extensions?.renderers?.[i.type]){let t=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==t||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=t||"";continue}}switch(i.type){case"escape":case"text":n+=e.text(i);break;case"html":n+=e.html(i);break;case"link":n+=e.link(i);break;case"image":n+=e.image(i);break;case"checkbox":n+=e.checkbox(i);break;case"strong":n+=e.strong(i);break;case"em":n+=e.em(i);break;case"codespan":n+=e.codespan(i);break;case"br":n+=e.br(i);break;case"del":n+=e.del(i);break;default:{let t='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw Error(t)}}}return n}},tg=class{options;block;constructor(t){this.options=t||i}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?tf.lex:tf.lexInline}provideParser(t=this.block){return t?tp.parse:tp.parseInline}},ty=new class{defaults=r();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=tp;Renderer=th;TextRenderer=td;Lexer=tf;Tokenizer=tc;Hooks=tg;constructor(...t){this.use(...t)}walkTokens(t,e){let n=[];for(let r of t)switch(n=n.concat(e.call(this,r)),r.type){case"table":for(let t of r.header)n=n.concat(this.walkTokens(t.tokens,e));for(let t of r.rows)for(let r of t)n=n.concat(this.walkTokens(r.tokens,e));break;case"list":n=n.concat(this.walkTokens(r.items,e));break;default:{let t=r;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach(r=>{let i=t[r].flat(1/0);n=n.concat(this.walkTokens(i,e))}):t.tokens&&(n=n.concat(this.walkTokens(t.tokens,e)))}}return n}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(t=>{let n={...t};if(n.async=this.defaults.async||n.async||!1,t.extensions&&(t.extensions.forEach(t=>{if(!t.name)throw Error("extension name required");if("renderer"in t){let n=e.renderers[t.name];n?e.renderers[t.name]=function(...e){let r=t.renderer.apply(this,e);return!1===r&&(r=n.apply(this,e)),r}:e.renderers[t.name]=t.renderer}if("tokenizer"in t){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw Error("extension level must be 'block' or 'inline'");let n=e[t.level];n?n.unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&("block"===t.level?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:"inline"===t.level&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}"childTokens"in t&&t.childTokens&&(e.childTokens[t.name]=t.childTokens)}),n.extensions=e),t.renderer){let e=this.defaults.renderer||new th(this.defaults);for(let n in t.renderer){if(!(n in e))throw Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=t.renderer[n],i=e[n];e[n]=(...t)=>{let n=r.apply(e,t);return!1===n&&(n=i.apply(e,t)),n||""}}n.renderer=e}if(t.tokenizer){let e=this.defaults.tokenizer||new tc(this.defaults);for(let n in t.tokenizer){if(!(n in e))throw Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=t.tokenizer[n],i=e[n];e[n]=(...t)=>{let n=r.apply(e,t);return!1===n&&(n=i.apply(e,t)),n}}n.tokenizer=e}if(t.hooks){let e=this.defaults.hooks||new tg;for(let n in t.hooks){if(!(n in e))throw Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=t.hooks[n],i=e[n];tg.passThroughHooks.has(n)?e[n]=t=>{if(this.defaults.async&&tg.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await r.call(e,t);return i.call(e,n)})();let A=r.call(e,t);return i.call(e,A)}:e[n]=(...t)=>{if(this.defaults.async)return(async()=>{let n=await r.apply(e,t);return!1===n&&(n=await i.apply(e,t)),n})();let n=r.apply(e,t);return!1===n&&(n=i.apply(e,t)),n}}n.hooks=e}if(t.walkTokens){let e=this.defaults.walkTokens,r=t.walkTokens;n.walkTokens=function(t){let n=[];return n.push(r.call(this,t)),e&&(n=n.concat(e.call(this,t))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return tf.lex(t,e??this.defaults)}parser(t,e){return tp.parse(t,e??this.defaults)}parseMarkdown(t){return(e,n)=>{let r={...n},i={...this.defaults,...r},A=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===r.async)return A(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 e>"u"||null===e)return A(Error("marked(): input parameter is undefined or null"));if("string"!=typeof e)return A(Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=t),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(e):e,r=await (i.hooks?await i.hooks.provideLexer(t):t?tf.lex:tf.lexInline)(n,i),A=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(A,i.walkTokens));let a=await (i.hooks?await i.hooks.provideParser(t):t?tp.parse:tp.parseInline)(A,i);return i.hooks?await i.hooks.postprocess(a):a})().catch(A);try{i.hooks&&(e=i.hooks.preprocess(e));let n=(i.hooks?i.hooks.provideLexer(t):t?tf.lex:tf.lexInline)(e,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(t):t?tp.parse:tp.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(t){return A(t)}}}onError(t,e){return n=>{if(n.message+=`
96
- Please report this to https://github.com/markedjs/marked.`,t){let t="<p>An error occurred:</p><pre>"+ta(n.message+"",!0)+"</pre>";return e?Promise.resolve(t):t}if(e)return Promise.reject(n);throw n}}};function tv(t,e){return ty.parse(t,e)}tv.options=tv.setOptions=function(t){return ty.setOptions(t),tv.defaults=ty.defaults,i=tv.defaults,tv},tv.getDefaults=r,tv.defaults=i,tv.use=function(...t){return ty.use(...t),tv.defaults=ty.defaults,i=tv.defaults,tv},tv.walkTokens=function(t,e){return ty.walkTokens(t,e)},tv.parseInline=ty.parseInline,tv.Parser=tp,tv.parser=tp.parse,tv.Renderer=th,tv.TextRenderer=td,tv.Lexer=tf,tv.lexer=tf.lex,tv.Tokenizer=tc,tv.Hooks=tg,tv.parse=tv,tv.options,tv.setOptions,tv.use,tv.walkTokens,tv.parseInline,tp.parse,tf.lex,n.d(e,{xI:()=>tv})}}]);
97
- //# sourceMappingURL=62.js.map
96
+ Please report this to https://github.com/markedjs/marked.`,t){let t="<p>An error occurred:</p><pre>"+ta(n.message+"",!0)+"</pre>";return e?Promise.resolve(t):t}if(e)return Promise.reject(n);throw n}}};function tv(t,e){return ty.parse(t,e)}tv.options=tv.setOptions=function(t){return ty.setOptions(t),tv.defaults=ty.defaults,i=tv.defaults,tv},tv.getDefaults=r,tv.defaults=i,tv.use=function(...t){return ty.use(...t),tv.defaults=ty.defaults,i=tv.defaults,tv},tv.walkTokens=function(t,e){return ty.walkTokens(t,e)},tv.parseInline=ty.parseInline,tv.Parser=tp,tv.parser=tp.parse,tv.Renderer=th,tv.TextRenderer=td,tv.Lexer=tf,tv.lexer=tf.lex,tv.Tokenizer=tc,tv.Hooks=tg,tv.parse=tv,tv.options,tv.setOptions,tv.use,tv.walkTokens,tv.parseInline,tp.parse,tf.lex,n.d(e,{xI:()=>tv})}}]);
@@ -1,2 +1 @@
1
- (self.rspackChunk_kb_labs_workflow_entry=self.rspackChunk_kb_labs_workflow_entry||[]).push([[648],{6911(t){t.exports=function(){"use strict";var t="millisecond",r="second",e="minute",n="hour",o="week",i="month",u="quarter",a="year",c="date",s="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,l=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y=function(t,r,e){var n=String(t);return!n||n.length>=r?t:""+Array(r+1-n.length).join(e)+t},h="en",d={};d[h]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var r=["th","st","nd","rd"],e=t%100;return"["+t+(r[(e-20)%10]||r[e]||r[0])+"]"}};var p="$isDayjsObject",v=function(t){return t instanceof O||!(!t||!t[p])},b=function t(r,e,n){var o;if(!r)return h;if("string"==typeof r){var i=r.toLowerCase();d[i]&&(o=i),e&&(d[i]=e,o=i);var u=r.split("-");if(!o&&u.length>1)return t(u[0])}else{var a=r.name;d[a]=r,o=a}return!n&&o&&(h=o),o||!n&&h},m=function(t,r){if(v(t))return t.clone();var e="object"==typeof r?r:{};return e.date=t,e.args=arguments,new O(e)},$={s:y,z:function(t){var r=-t.utcOffset(),e=Math.abs(r);return(r<=0?"+":"-")+y(Math.floor(e/60),2,"0")+":"+y(e%60,2,"0")},m:function t(r,e){if(r.date()<e.date())return-t(e,r);var n=12*(e.year()-r.year())+(e.month()-r.month()),o=r.clone().add(n,i),u=e-o<0,a=r.clone().add(n+(u?-1:1),i);return+(-(n+(e-o)/(u?o-a:a-o))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(s){return({M:i,y:a,w:o,d:"day",D:c,h:n,m:e,s:r,ms:t,Q:u})[s]||String(s||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}};$.l=b,$.i=v,$.w=function(t,r){return m(t,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var O=function(){function y(t){this.$L=b(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var h=y.prototype;return h.parse=function(t){this.$d=function(t){var r=t.date,e=t.utc;if(null===r)return new Date(NaN);if($.u(r))return new Date;if(r instanceof Date)return new Date(r);if("string"==typeof r&&!/Z$/i.test(r)){var n=r.match(f);if(n){var o=n[2]-1||0,i=(n[7]||"0").substring(0,3);return e?new Date(Date.UTC(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(r)}(t),this.init()},h.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},h.$utils=function(){return $},h.isValid=function(){return this.$d.toString()!==s},h.isSame=function(t,r){var e=m(t);return this.startOf(r)<=e&&e<=this.endOf(r)},h.isAfter=function(t,r){return m(t)<this.startOf(r)},h.isBefore=function(t,r){return this.endOf(r)<m(t)},h.$g=function(t,r,e){return $.u(t)?this[r]:this.set(e,t)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(t,u){var s=this,f=!!$.u(u)||u,l=$.p(t),y=function(t,r){var e=$.w(s.$u?Date.UTC(s.$y,r,t):new Date(s.$y,r,t),s);return f?e:e.endOf("day")},h=function(t,r){return $.w(s.toDate()[t].apply(s.toDate("s"),(f?[0,0,0,0]:[23,59,59,999]).slice(r)),s)},d=this.$W,p=this.$M,v=this.$D,b="set"+(this.$u?"UTC":"");switch(l){case a:return f?y(1,0):y(31,11);case i:return f?y(1,p):y(0,p+1);case o:var m=this.$locale().weekStart||0,O=(d<m?d+7:d)-m;return y(f?v-O:v+(6-O),p);case"day":case c:return h(b+"Hours",0);case n:return h(b+"Minutes",1);case e:return h(b+"Seconds",2);case r:return h(b+"Milliseconds",3);default:return this.clone()}},h.endOf=function(t){return this.startOf(t,!1)},h.$set=function(o,u){var s,f=$.p(o),l="set"+(this.$u?"UTC":""),y=((s={}).day=l+"Date",s[c]=l+"Date",s[i]=l+"Month",s[a]=l+"FullYear",s[n]=l+"Hours",s[e]=l+"Minutes",s[r]=l+"Seconds",s[t]=l+"Milliseconds",s)[f],h="day"===f?this.$D+(u-this.$W):u;if(f===i||f===a){var d=this.clone().set(c,1);d.$d[y](h),d.init(),this.$d=d.set(c,Math.min(this.$D,d.daysInMonth())).$d}else y&&this.$d[y](h);return this.init(),this},h.set=function(t,r){return this.clone().$set(t,r)},h.get=function(t){return this[$.p(t)]()},h.add=function(t,u){var c,s=this;t=Number(t);var f=$.p(u),l=function(r){var e=m(s);return $.w(e.date(e.date()+Math.round(r*t)),s)};if(f===i)return this.set(i,this.$M+t);if(f===a)return this.set(a,this.$y+t);if("day"===f)return l(1);if(f===o)return l(7);var y=((c={})[e]=6e4,c[n]=36e5,c[r]=1e3,c)[f]||1,h=this.$d.getTime()+t*y;return $.w(h,this)},h.subtract=function(t,r){return this.add(-1*t,r)},h.format=function(t){var r=this,e=this.$locale();if(!this.isValid())return e.invalidDate||s;var n=t||"YYYY-MM-DDTHH:mm:ssZ",o=$.z(this),i=this.$H,u=this.$m,a=this.$M,c=e.weekdays,f=e.months,y=e.meridiem,h=function(t,e,o,i){return t&&(t[e]||t(r,n))||o[e].slice(0,i)},d=function(t){return $.s(i%12||12,t,"0")},p=y||function(t,r,e){var n=t<12?"AM":"PM";return e?n.toLowerCase():n};return n.replace(l,function(t,n){return n||function(t){switch(t){case"YY":return String(r.$y).slice(-2);case"YYYY":return $.s(r.$y,4,"0");case"M":return a+1;case"MM":return $.s(a+1,2,"0");case"MMM":return h(e.monthsShort,a,f,3);case"MMMM":return h(f,a);case"D":return r.$D;case"DD":return $.s(r.$D,2,"0");case"d":return String(r.$W);case"dd":return h(e.weekdaysMin,r.$W,c,2);case"ddd":return h(e.weekdaysShort,r.$W,c,3);case"dddd":return c[r.$W];case"H":return String(i);case"HH":return $.s(i,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return p(i,u,!0);case"A":return p(i,u,!1);case"m":return String(u);case"mm":return $.s(u,2,"0");case"s":return String(r.$s);case"ss":return $.s(r.$s,2,"0");case"SSS":return $.s(r.$ms,3,"0");case"Z":return o}return null}(t)||o.replace(":","")})},h.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},h.diff=function(t,c,s){var f,l=this,y=$.p(c),h=m(t),d=(h.utcOffset()-this.utcOffset())*6e4,p=this-h,v=function(){return $.m(l,h)};switch(y){case a:f=v()/12;break;case i:f=v();break;case u:f=v()/3;break;case o:f=(p-d)/6048e5;break;case"day":f=(p-d)/864e5;break;case n:f=p/36e5;break;case e:f=p/6e4;break;case r:f=p/1e3;break;default:f=p}return s?f:$.a(f)},h.daysInMonth=function(){return this.endOf(i).$D},h.$locale=function(){return d[this.$L]},h.locale=function(t,r){if(!t)return this.$L;var e=this.clone(),n=b(t,r,!0);return n&&(e.$L=n),e},h.clone=function(){return $.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},y}(),g=O.prototype;return m.prototype=g,[["$ms",t],["$s",r],["$m",e],["$H",n],["$W","day"],["$M",i],["$y",a],["$D",c]].forEach(function(t){g[t[1]]=function(r){return this.$g(r,t[0],t[1])}}),m.extend=function(t,r){return t.$i||(t(r,O,m),t.$i=!0),m},m.locale=b,m.isDayjs=v,m.unix=function(t){return m(1e3*t)},m.en=d[h],m.Ls=d,m.p={},m}()},3178(t,r,e){"use strict";function n(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}e.d(r,{A:()=>n})},4930(t,r,e){"use strict";function n(t){if(Array.isArray(t))return t}e.d(r,{A:()=>n})},8172(t,r,e){"use strict";function n(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}e.d(r,{A:()=>n})},6220(t,r,e){"use strict";function n(t,r,e,n,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void e(t)}a.done?r(c):Promise.resolve(c).then(n,o)}function o(t){return function(){var r=this,e=arguments;return new Promise(function(o,i){var u=t.apply(r,e);function a(t){n(u,o,i,a,c,"next",t)}function c(t){n(u,o,i,a,c,"throw",t)}a(void 0)})}}e.d(r,{A:()=>o})},7527(t,r,e){"use strict";var n=e(3593),o=e(4151),i=e(611);function u(t,r,e){return r=(0,n.A)(r),(0,i.A)(t,(0,o.A)()?Reflect.construct(r,e||[],(0,n.A)(t).constructor):r.apply(t,e))}e.d(r,{A:()=>u})},1194(t,r,e){"use strict";function n(t,r){if(!(t instanceof r))throw TypeError("Cannot call a class as a function")}e.d(r,{A:()=>n})},1580(t,r,e){"use strict";var n=e(5605);function o(t,r){for(var e=0;e<r.length;e++){var o=r[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(0,n.A)(o.key),o)}}function i(t,r,e){return r&&o(t.prototype,r),e&&o(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}e.d(r,{A:()=>i})},4828(t,r,e){"use strict";var n=e(3891);function o(t,r){var e="u">typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=(0,n.A)(t))||r&&t&&"number"==typeof t.length){e&&(t=e);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,a=!0,c=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return a=t.done,t},e:function(t){c=!0,u=t},f:function(){try{a||null==e.return||e.return()}finally{if(c)throw u}}}}e.d(r,{A:()=>o})},3268(t,r,e){"use strict";var n=e(5605);function o(t,r,e){return(r=(0,n.A)(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}e.d(r,{A:()=>o})},3593(t,r,e){"use strict";function n(t){return(n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}e.d(r,{A:()=>n})},3834(t,r,e){"use strict";var n=e(3413);function o(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&(0,n.A)(t,r)}e.d(r,{A:()=>o})},4151(t,r,e){"use strict";function n(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(n=function(){return!!t})()}e.d(r,{A:()=>n})},380(t,r,e){"use strict";function n(t){if("u">typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}e.d(r,{A:()=>n})},1059(t,r,e){"use strict";function n(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.d(r,{A:()=>n})},5314(t,r,e){"use strict";var n=e(3268);function o(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,n)}return e}function i(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?o(Object(e),!0).forEach(function(r){(0,n.A)(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):o(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})}return t}e.d(r,{A:()=>i})},9631(t,r,e){"use strict";function n(t,r){if(null==t)return{};var e,n,o=function(t,r){if(null==t)return{};var e={};for(var n in t)if(({}).hasOwnProperty.call(t,n)){if(-1!==r.indexOf(n))continue;e[n]=t[n]}return e}(t,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)e=i[n],-1===r.indexOf(e)&&({}).propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}e.d(r,{A:()=>n})},611(t,r,e){"use strict";var n=e(8143),o=e(8172);function i(t,r){if(r&&("object"==(0,n.A)(r)||"function"==typeof r))return r;if(void 0!==r)throw TypeError("Derived constructors may only return object or undefined");return(0,o.A)(t)}e.d(r,{A:()=>i})},1855(t,r,e){"use strict";function n(t,r){this.v=t,this.k=r}function o(t,r,e,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,r,e,n){function u(r,e){o(t,r,function(t){return this._invoke(r,e,t)})}r?i?i(t,r,{value:e,enumerable:!n,configurable:!n,writable:!n}):t[r]=e:(u("next",0),u("throw",1),u("return",2))})(t,r,e,n)}function i(){var t,r,e="function"==typeof Symbol?Symbol:{},n=e.iterator||"@@iterator",u=e.toStringTag||"@@toStringTag";function a(e,n,i,u){var a=Object.create((n&&n.prototype instanceof s?n:s).prototype);return o(a,"_invoke",function(e,n,o){var i,u,a,s=0,f=o||[],l=!1,y={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(r,e){return i=r,u=0,a=t,y.n=e,c}};function h(e,n){for(u=e,a=n,r=0;!l&&s&&!o&&r<f.length;r++){var o,i=f[r],h=y.p,d=i[2];e>3?(o=d===n)&&(a=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=t):i[0]<=h&&((o=e<2&&h<i[1])?(u=0,y.v=n,y.n=i[1]):h<d&&(o=e<3||i[0]>n||n>d)&&(i[4]=e,i[5]=n,y.n=d,u=0))}if(o||e>1)return c;throw l=!0,n}return function(o,f,d){if(s>1)throw TypeError("Generator is already running");for(l&&1===f&&h(f,d),u=f,a=d;(r=u<2?t:a)||!l;){i||(u?u<3?(u>1&&(y.n=-1),h(u,a)):y.n=a:y.v=a);try{if(s=2,i){if(u||(o="next"),r=i[o]){if(!(r=r.call(i,a)))throw TypeError("iterator result is not an object");if(!r.done)return r;a=r.value,u<2&&(u=0)}else 1===u&&(r=i.return)&&r.call(i),u<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=t}else if((r=(l=y.n<0)?a:e.call(n,y))!==c)break}catch(r){i=t,u=1,a=r}finally{s=1}}return{value:r,done:l}}}(e,i,u),!0),a}var c={};function s(){}function f(){}function l(){}r=Object.getPrototypeOf;var y=l.prototype=s.prototype=Object.create([][n]?r(r([][n]())):(o(r={},n,function(){return this}),r));function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,o(t,u,"GeneratorFunction")),t.prototype=Object.create(y),t}return f.prototype=l,o(y,"constructor",l),o(l,"constructor",f),f.displayName="GeneratorFunction",o(l,u,"GeneratorFunction"),o(y),o(y,u,"Generator"),o(y,n,function(){return this}),o(y,"toString",function(){return"[object Generator]"}),(i=function(){return{w:a,m:h}})()}function u(t,r){var e;this.next||(o(u.prototype),o(u.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),o(this,"_invoke",function(o,i,u){function a(){return new r(function(e,i){!function e(o,i,u,a){try{var c=t[o](i),s=c.value;return s instanceof n?r.resolve(s.v).then(function(t){e("next",t,u,a)},function(t){e("throw",t,u,a)}):r.resolve(s).then(function(t){c.value=t,u(c)},function(t){return e("throw",t,u,a)})}catch(t){a(t)}}(o,u,e,i)})}return e=e?e.then(a,a):a()},!0)}function a(t,r,e,n,o){return new u(i().w(t,r,e,n),o||Promise)}function c(t){var r=Object(t),e=[];for(var n in r)e.unshift(n);return function t(){for(;e.length;)if((n=e.pop())in r)return t.value=n,t.done=!1,t;return t.done=!0,t}}e.d(r,{A:()=>l});var s=e(8143);function f(t){if(null!=t){var r=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],e=0;if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}}}throw TypeError((0,s.A)(t)+" is not iterable")}function l(){var t=i(),r=t.m(l),e=(Object.getPrototypeOf?Object.getPrototypeOf(r):r.__proto__).constructor;function o(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===e||"GeneratorFunction"===(r.displayName||r.name))}var s={throw:1,return:2,break:3,continue:3};function y(t){var r,e;return function(n){r||(r={stop:function(){return e(n.a,2)},catch:function(){return n.v},abrupt:function(t,r){return e(n.a,s[t],r)},delegateYield:function(t,o,i){return r.resultName=o,e(n.d,f(t),i)},finish:function(t){return e(n.f,t)}},e=function(t,e,o){n.p=r.prev,n.n=r.next;try{return t(e,o)}finally{r.next=n.n}}),r.resultName&&(r[r.resultName]=n.v,r.resultName=void 0),r.sent=n.v,r.next=n.n;try{return t.call(this,r)}finally{n.p=r.prev,n.n=r.next}}}return(l=function(){return{wrap:function(r,e,n,o){return t.w(y(r),e,n,o&&o.reverse())},isGeneratorFunction:o,mark:t.m,awrap:function(t,r){return new n(t,r)},AsyncIterator:u,async:function(t,r,e,n,i){return(o(r)?a:function(t,r,e,n,o){var i=a(t,r,e,n,o);return i.next().then(function(t){return t.done?t.value:i.next()})})(y(t),r,e,n,i)},keys:c,values:f}})()}},3413(t,r,e){"use strict";function n(t,r){return(n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t})(t,r)}e.d(r,{A:()=>n})},1095(t,r,e){"use strict";e.d(r,{A:()=>u});var n=e(4930),o=e(3891),i=e(1059);function u(t,r){return(0,n.A)(t)||function(t,r){var e=null==t?null:"u">typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,o,i,u,a=[],c=!0,s=!1;try{if(i=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;c=!1}else for(;!(c=(n=i.call(e)).done)&&(a.push(n.value),a.length!==r);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=e.return&&(u=e.return(),Object(u)!==u))return}finally{if(s)throw o}}return a}}(t,r)||(0,o.A)(t,r)||(0,i.A)()}},1782(t,r,e){"use strict";e.d(r,{A:()=>u});var n=e(3178),o=e(380),i=e(3891);function u(t){return function(t){if(Array.isArray(t))return(0,n.A)(t)}(t)||(0,o.A)(t)||(0,i.A)(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},5605(t,r,e){"use strict";e.d(r,{A:()=>o});var n=e(8143);function o(t){var r=function(t,r){if("object"!=(0,n.A)(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var o=e.call(t,r||"default");if("object"!=(0,n.A)(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==(0,n.A)(r)?r:r+""}},8143(t,r,e){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}e.d(r,{A:()=>n})},3891(t,r,e){"use strict";var n=e(3178);function o(t,r){if(t){if("string"==typeof t)return(0,n.A)(t,r);var e=({}).toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?(0,n.A)(t,r):void 0}}e.d(r,{A:()=>o})}}]);
2
- //# sourceMappingURL=648.js.map
1
+ (self.rspackChunk_kb_labs_workflow_entry=self.rspackChunk_kb_labs_workflow_entry||[]).push([[648],{6911(t){t.exports=function(){"use strict";var t="millisecond",r="second",e="minute",n="hour",o="week",i="month",u="quarter",a="year",c="date",s="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,l=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y=function(t,r,e){var n=String(t);return!n||n.length>=r?t:""+Array(r+1-n.length).join(e)+t},h="en",d={};d[h]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var r=["th","st","nd","rd"],e=t%100;return"["+t+(r[(e-20)%10]||r[e]||r[0])+"]"}};var p="$isDayjsObject",v=function(t){return t instanceof O||!(!t||!t[p])},b=function t(r,e,n){var o;if(!r)return h;if("string"==typeof r){var i=r.toLowerCase();d[i]&&(o=i),e&&(d[i]=e,o=i);var u=r.split("-");if(!o&&u.length>1)return t(u[0])}else{var a=r.name;d[a]=r,o=a}return!n&&o&&(h=o),o||!n&&h},m=function(t,r){if(v(t))return t.clone();var e="object"==typeof r?r:{};return e.date=t,e.args=arguments,new O(e)},$={s:y,z:function(t){var r=-t.utcOffset(),e=Math.abs(r);return(r<=0?"+":"-")+y(Math.floor(e/60),2,"0")+":"+y(e%60,2,"0")},m:function t(r,e){if(r.date()<e.date())return-t(e,r);var n=12*(e.year()-r.year())+(e.month()-r.month()),o=r.clone().add(n,i),u=e-o<0,a=r.clone().add(n+(u?-1:1),i);return+(-(n+(e-o)/(u?o-a:a-o))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(s){return({M:i,y:a,w:o,d:"day",D:c,h:n,m:e,s:r,ms:t,Q:u})[s]||String(s||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}};$.l=b,$.i=v,$.w=function(t,r){return m(t,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var O=function(){function y(t){this.$L=b(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var h=y.prototype;return h.parse=function(t){this.$d=function(t){var r=t.date,e=t.utc;if(null===r)return new Date(NaN);if($.u(r))return new Date;if(r instanceof Date)return new Date(r);if("string"==typeof r&&!/Z$/i.test(r)){var n=r.match(f);if(n){var o=n[2]-1||0,i=(n[7]||"0").substring(0,3);return e?new Date(Date.UTC(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(r)}(t),this.init()},h.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},h.$utils=function(){return $},h.isValid=function(){return this.$d.toString()!==s},h.isSame=function(t,r){var e=m(t);return this.startOf(r)<=e&&e<=this.endOf(r)},h.isAfter=function(t,r){return m(t)<this.startOf(r)},h.isBefore=function(t,r){return this.endOf(r)<m(t)},h.$g=function(t,r,e){return $.u(t)?this[r]:this.set(e,t)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(t,u){var s=this,f=!!$.u(u)||u,l=$.p(t),y=function(t,r){var e=$.w(s.$u?Date.UTC(s.$y,r,t):new Date(s.$y,r,t),s);return f?e:e.endOf("day")},h=function(t,r){return $.w(s.toDate()[t].apply(s.toDate("s"),(f?[0,0,0,0]:[23,59,59,999]).slice(r)),s)},d=this.$W,p=this.$M,v=this.$D,b="set"+(this.$u?"UTC":"");switch(l){case a:return f?y(1,0):y(31,11);case i:return f?y(1,p):y(0,p+1);case o:var m=this.$locale().weekStart||0,O=(d<m?d+7:d)-m;return y(f?v-O:v+(6-O),p);case"day":case c:return h(b+"Hours",0);case n:return h(b+"Minutes",1);case e:return h(b+"Seconds",2);case r:return h(b+"Milliseconds",3);default:return this.clone()}},h.endOf=function(t){return this.startOf(t,!1)},h.$set=function(o,u){var s,f=$.p(o),l="set"+(this.$u?"UTC":""),y=((s={}).day=l+"Date",s[c]=l+"Date",s[i]=l+"Month",s[a]=l+"FullYear",s[n]=l+"Hours",s[e]=l+"Minutes",s[r]=l+"Seconds",s[t]=l+"Milliseconds",s)[f],h="day"===f?this.$D+(u-this.$W):u;if(f===i||f===a){var d=this.clone().set(c,1);d.$d[y](h),d.init(),this.$d=d.set(c,Math.min(this.$D,d.daysInMonth())).$d}else y&&this.$d[y](h);return this.init(),this},h.set=function(t,r){return this.clone().$set(t,r)},h.get=function(t){return this[$.p(t)]()},h.add=function(t,u){var c,s=this;t=Number(t);var f=$.p(u),l=function(r){var e=m(s);return $.w(e.date(e.date()+Math.round(r*t)),s)};if(f===i)return this.set(i,this.$M+t);if(f===a)return this.set(a,this.$y+t);if("day"===f)return l(1);if(f===o)return l(7);var y=((c={})[e]=6e4,c[n]=36e5,c[r]=1e3,c)[f]||1,h=this.$d.getTime()+t*y;return $.w(h,this)},h.subtract=function(t,r){return this.add(-1*t,r)},h.format=function(t){var r=this,e=this.$locale();if(!this.isValid())return e.invalidDate||s;var n=t||"YYYY-MM-DDTHH:mm:ssZ",o=$.z(this),i=this.$H,u=this.$m,a=this.$M,c=e.weekdays,f=e.months,y=e.meridiem,h=function(t,e,o,i){return t&&(t[e]||t(r,n))||o[e].slice(0,i)},d=function(t){return $.s(i%12||12,t,"0")},p=y||function(t,r,e){var n=t<12?"AM":"PM";return e?n.toLowerCase():n};return n.replace(l,function(t,n){return n||function(t){switch(t){case"YY":return String(r.$y).slice(-2);case"YYYY":return $.s(r.$y,4,"0");case"M":return a+1;case"MM":return $.s(a+1,2,"0");case"MMM":return h(e.monthsShort,a,f,3);case"MMMM":return h(f,a);case"D":return r.$D;case"DD":return $.s(r.$D,2,"0");case"d":return String(r.$W);case"dd":return h(e.weekdaysMin,r.$W,c,2);case"ddd":return h(e.weekdaysShort,r.$W,c,3);case"dddd":return c[r.$W];case"H":return String(i);case"HH":return $.s(i,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return p(i,u,!0);case"A":return p(i,u,!1);case"m":return String(u);case"mm":return $.s(u,2,"0");case"s":return String(r.$s);case"ss":return $.s(r.$s,2,"0");case"SSS":return $.s(r.$ms,3,"0");case"Z":return o}return null}(t)||o.replace(":","")})},h.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},h.diff=function(t,c,s){var f,l=this,y=$.p(c),h=m(t),d=(h.utcOffset()-this.utcOffset())*6e4,p=this-h,v=function(){return $.m(l,h)};switch(y){case a:f=v()/12;break;case i:f=v();break;case u:f=v()/3;break;case o:f=(p-d)/6048e5;break;case"day":f=(p-d)/864e5;break;case n:f=p/36e5;break;case e:f=p/6e4;break;case r:f=p/1e3;break;default:f=p}return s?f:$.a(f)},h.daysInMonth=function(){return this.endOf(i).$D},h.$locale=function(){return d[this.$L]},h.locale=function(t,r){if(!t)return this.$L;var e=this.clone(),n=b(t,r,!0);return n&&(e.$L=n),e},h.clone=function(){return $.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},y}(),g=O.prototype;return m.prototype=g,[["$ms",t],["$s",r],["$m",e],["$H",n],["$W","day"],["$M",i],["$y",a],["$D",c]].forEach(function(t){g[t[1]]=function(r){return this.$g(r,t[0],t[1])}}),m.extend=function(t,r){return t.$i||(t(r,O,m),t.$i=!0),m},m.locale=b,m.isDayjs=v,m.unix=function(t){return m(1e3*t)},m.en=d[h],m.Ls=d,m.p={},m}()},3178(t,r,e){"use strict";function n(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}e.d(r,{A:()=>n})},4930(t,r,e){"use strict";function n(t){if(Array.isArray(t))return t}e.d(r,{A:()=>n})},8172(t,r,e){"use strict";function n(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}e.d(r,{A:()=>n})},6220(t,r,e){"use strict";function n(t,r,e,n,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void e(t)}a.done?r(c):Promise.resolve(c).then(n,o)}function o(t){return function(){var r=this,e=arguments;return new Promise(function(o,i){var u=t.apply(r,e);function a(t){n(u,o,i,a,c,"next",t)}function c(t){n(u,o,i,a,c,"throw",t)}a(void 0)})}}e.d(r,{A:()=>o})},7527(t,r,e){"use strict";var n=e(3593),o=e(4151),i=e(611);function u(t,r,e){return r=(0,n.A)(r),(0,i.A)(t,(0,o.A)()?Reflect.construct(r,e||[],(0,n.A)(t).constructor):r.apply(t,e))}e.d(r,{A:()=>u})},1194(t,r,e){"use strict";function n(t,r){if(!(t instanceof r))throw TypeError("Cannot call a class as a function")}e.d(r,{A:()=>n})},1580(t,r,e){"use strict";var n=e(5605);function o(t,r){for(var e=0;e<r.length;e++){var o=r[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(0,n.A)(o.key),o)}}function i(t,r,e){return r&&o(t.prototype,r),e&&o(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}e.d(r,{A:()=>i})},4828(t,r,e){"use strict";var n=e(3891);function o(t,r){var e="u">typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=(0,n.A)(t))||r&&t&&"number"==typeof t.length){e&&(t=e);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,a=!0,c=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return a=t.done,t},e:function(t){c=!0,u=t},f:function(){try{a||null==e.return||e.return()}finally{if(c)throw u}}}}e.d(r,{A:()=>o})},3268(t,r,e){"use strict";var n=e(5605);function o(t,r,e){return(r=(0,n.A)(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}e.d(r,{A:()=>o})},3593(t,r,e){"use strict";function n(t){return(n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}e.d(r,{A:()=>n})},3834(t,r,e){"use strict";var n=e(3413);function o(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&(0,n.A)(t,r)}e.d(r,{A:()=>o})},4151(t,r,e){"use strict";function n(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(n=function(){return!!t})()}e.d(r,{A:()=>n})},380(t,r,e){"use strict";function n(t){if("u">typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}e.d(r,{A:()=>n})},1059(t,r,e){"use strict";function n(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.d(r,{A:()=>n})},5314(t,r,e){"use strict";var n=e(3268);function o(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,n)}return e}function i(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?o(Object(e),!0).forEach(function(r){(0,n.A)(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):o(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})}return t}e.d(r,{A:()=>i})},9631(t,r,e){"use strict";function n(t,r){if(null==t)return{};var e,n,o=function(t,r){if(null==t)return{};var e={};for(var n in t)if(({}).hasOwnProperty.call(t,n)){if(-1!==r.indexOf(n))continue;e[n]=t[n]}return e}(t,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)e=i[n],-1===r.indexOf(e)&&({}).propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}e.d(r,{A:()=>n})},611(t,r,e){"use strict";var n=e(8143),o=e(8172);function i(t,r){if(r&&("object"==(0,n.A)(r)||"function"==typeof r))return r;if(void 0!==r)throw TypeError("Derived constructors may only return object or undefined");return(0,o.A)(t)}e.d(r,{A:()=>i})},1855(t,r,e){"use strict";function n(t,r){this.v=t,this.k=r}function o(t,r,e,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(o=function(t,r,e,n){function u(r,e){o(t,r,function(t){return this._invoke(r,e,t)})}r?i?i(t,r,{value:e,enumerable:!n,configurable:!n,writable:!n}):t[r]=e:(u("next",0),u("throw",1),u("return",2))})(t,r,e,n)}function i(){var t,r,e="function"==typeof Symbol?Symbol:{},n=e.iterator||"@@iterator",u=e.toStringTag||"@@toStringTag";function a(e,n,i,u){var a=Object.create((n&&n.prototype instanceof s?n:s).prototype);return o(a,"_invoke",function(e,n,o){var i,u,a,s=0,f=o||[],l=!1,y={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(r,e){return i=r,u=0,a=t,y.n=e,c}};function h(e,n){for(u=e,a=n,r=0;!l&&s&&!o&&r<f.length;r++){var o,i=f[r],h=y.p,d=i[2];e>3?(o=d===n)&&(a=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=t):i[0]<=h&&((o=e<2&&h<i[1])?(u=0,y.v=n,y.n=i[1]):h<d&&(o=e<3||i[0]>n||n>d)&&(i[4]=e,i[5]=n,y.n=d,u=0))}if(o||e>1)return c;throw l=!0,n}return function(o,f,d){if(s>1)throw TypeError("Generator is already running");for(l&&1===f&&h(f,d),u=f,a=d;(r=u<2?t:a)||!l;){i||(u?u<3?(u>1&&(y.n=-1),h(u,a)):y.n=a:y.v=a);try{if(s=2,i){if(u||(o="next"),r=i[o]){if(!(r=r.call(i,a)))throw TypeError("iterator result is not an object");if(!r.done)return r;a=r.value,u<2&&(u=0)}else 1===u&&(r=i.return)&&r.call(i),u<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=t}else if((r=(l=y.n<0)?a:e.call(n,y))!==c)break}catch(r){i=t,u=1,a=r}finally{s=1}}return{value:r,done:l}}}(e,i,u),!0),a}var c={};function s(){}function f(){}function l(){}r=Object.getPrototypeOf;var y=l.prototype=s.prototype=Object.create([][n]?r(r([][n]())):(o(r={},n,function(){return this}),r));function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,o(t,u,"GeneratorFunction")),t.prototype=Object.create(y),t}return f.prototype=l,o(y,"constructor",l),o(l,"constructor",f),f.displayName="GeneratorFunction",o(l,u,"GeneratorFunction"),o(y),o(y,u,"Generator"),o(y,n,function(){return this}),o(y,"toString",function(){return"[object Generator]"}),(i=function(){return{w:a,m:h}})()}function u(t,r){var e;this.next||(o(u.prototype),o(u.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),o(this,"_invoke",function(o,i,u){function a(){return new r(function(e,i){!function e(o,i,u,a){try{var c=t[o](i),s=c.value;return s instanceof n?r.resolve(s.v).then(function(t){e("next",t,u,a)},function(t){e("throw",t,u,a)}):r.resolve(s).then(function(t){c.value=t,u(c)},function(t){return e("throw",t,u,a)})}catch(t){a(t)}}(o,u,e,i)})}return e=e?e.then(a,a):a()},!0)}function a(t,r,e,n,o){return new u(i().w(t,r,e,n),o||Promise)}function c(t){var r=Object(t),e=[];for(var n in r)e.unshift(n);return function t(){for(;e.length;)if((n=e.pop())in r)return t.value=n,t.done=!1,t;return t.done=!0,t}}e.d(r,{A:()=>l});var s=e(8143);function f(t){if(null!=t){var r=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],e=0;if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}}}throw TypeError((0,s.A)(t)+" is not iterable")}function l(){var t=i(),r=t.m(l),e=(Object.getPrototypeOf?Object.getPrototypeOf(r):r.__proto__).constructor;function o(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===e||"GeneratorFunction"===(r.displayName||r.name))}var s={throw:1,return:2,break:3,continue:3};function y(t){var r,e;return function(n){r||(r={stop:function(){return e(n.a,2)},catch:function(){return n.v},abrupt:function(t,r){return e(n.a,s[t],r)},delegateYield:function(t,o,i){return r.resultName=o,e(n.d,f(t),i)},finish:function(t){return e(n.f,t)}},e=function(t,e,o){n.p=r.prev,n.n=r.next;try{return t(e,o)}finally{r.next=n.n}}),r.resultName&&(r[r.resultName]=n.v,r.resultName=void 0),r.sent=n.v,r.next=n.n;try{return t.call(this,r)}finally{n.p=r.prev,n.n=r.next}}}return(l=function(){return{wrap:function(r,e,n,o){return t.w(y(r),e,n,o&&o.reverse())},isGeneratorFunction:o,mark:t.m,awrap:function(t,r){return new n(t,r)},AsyncIterator:u,async:function(t,r,e,n,i){return(o(r)?a:function(t,r,e,n,o){var i=a(t,r,e,n,o);return i.next().then(function(t){return t.done?t.value:i.next()})})(y(t),r,e,n,i)},keys:c,values:f}})()}},3413(t,r,e){"use strict";function n(t,r){return(n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t})(t,r)}e.d(r,{A:()=>n})},1095(t,r,e){"use strict";e.d(r,{A:()=>u});var n=e(4930),o=e(3891),i=e(1059);function u(t,r){return(0,n.A)(t)||function(t,r){var e=null==t?null:"u">typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,o,i,u,a=[],c=!0,s=!1;try{if(i=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;c=!1}else for(;!(c=(n=i.call(e)).done)&&(a.push(n.value),a.length!==r);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=e.return&&(u=e.return(),Object(u)!==u))return}finally{if(s)throw o}}return a}}(t,r)||(0,o.A)(t,r)||(0,i.A)()}},1782(t,r,e){"use strict";e.d(r,{A:()=>u});var n=e(3178),o=e(380),i=e(3891);function u(t){return function(t){if(Array.isArray(t))return(0,n.A)(t)}(t)||(0,o.A)(t)||(0,i.A)(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},5605(t,r,e){"use strict";e.d(r,{A:()=>o});var n=e(8143);function o(t){var r=function(t,r){if("object"!=(0,n.A)(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var o=e.call(t,r||"default");if("object"!=(0,n.A)(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==(0,n.A)(r)?r:r+""}},8143(t,r,e){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}e.d(r,{A:()=>n})},3891(t,r,e){"use strict";var n=e(3178);function o(t,r){if(t){if("string"==typeof t)return(0,n.A)(t,r);var e=({}).toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?(0,n.A)(t,r):void 0}}e.d(r,{A:()=>o})}}]);
@@ -1,2 +1 @@
1
- "use strict";(self.rspackChunk_kb_labs_workflow_entry=self.rspackChunk_kb_labs_workflow_entry||[]).push([[669],{4332(s,e,t){t.r(e);var r=t(92),i=t(4552),o=class{subscriptions=new Map;history=[];devToolsObserver;subscribe(s,e,t,r){let i={event:s,handler:e,pluginId:t,pageId:r};return this.subscriptions.has(s)||this.subscriptions.set(s,new Set),this.subscriptions.get(s).add(i),()=>{this.subscriptions.get(s)?.delete(i)}}publish(s,e,t,r){let i={sourcePluginId:t,sourcePageId:r,timestamp:Date.now()},o={event:s,payload:e,meta:i};this.history.push(o),this.history.length>100&&this.history.shift(),this.devToolsObserver?.(o);let n=this.subscriptions.get(s);if(n)for(let t of n)try{t.handler(e,i)}catch(e){console.error(`[StudioEventBus] Handler error for "${s}" in ${t.pluginId}:${t.pageId}:`,e)}}unsubscribeAll(s,e){for(let[,t]of this.subscriptions)for(let r of t)r.pluginId===s&&r.pageId===e&&t.delete(r)}getHistory(){return this.history}setDevToolsObserver(s){this.devToolsObserver=s}clearDevToolsObserver(){this.devToolsObserver=void 0}reset(){this.subscriptions.clear(),this.history=[]}},n=new o,u=(0,r.createContext)(n);function l({children:s,bus:e}){return(0,i.jsx)(u.Provider,{value:e??n,children:s})}function h(){return(0,r.useContext)(u)}t.d(e,{EventBusProvider:()=>l,StudioEventBus:()=>o,eventBus:()=>n,useEventBusContext:()=>h})}}]);
2
- //# sourceMappingURL=669.js.map
1
+ "use strict";(self.rspackChunk_kb_labs_workflow_entry=self.rspackChunk_kb_labs_workflow_entry||[]).push([[669],{4332(s,e,t){t.r(e);var r=t(92),i=t(4552),o=class{subscriptions=new Map;history=[];devToolsObserver;subscribe(s,e,t,r){let i={event:s,handler:e,pluginId:t,pageId:r};return this.subscriptions.has(s)||this.subscriptions.set(s,new Set),this.subscriptions.get(s).add(i),()=>{this.subscriptions.get(s)?.delete(i)}}publish(s,e,t,r){let i={sourcePluginId:t,sourcePageId:r,timestamp:Date.now()},o={event:s,payload:e,meta:i};this.history.push(o),this.history.length>100&&this.history.shift(),this.devToolsObserver?.(o);let n=this.subscriptions.get(s);if(n)for(let t of n)try{t.handler(e,i)}catch(e){console.error(`[StudioEventBus] Handler error for "${s}" in ${t.pluginId}:${t.pageId}:`,e)}}unsubscribeAll(s,e){for(let[,t]of this.subscriptions)for(let r of t)r.pluginId===s&&r.pageId===e&&t.delete(r)}getHistory(){return this.history}setDevToolsObserver(s){this.devToolsObserver=s}clearDevToolsObserver(){this.devToolsObserver=void 0}reset(){this.subscriptions.clear(),this.history=[]}},n=new o,u=(0,r.createContext)(n);function l({children:s,bus:e}){return(0,i.jsx)(u.Provider,{value:e??n,children:s})}function h(){return(0,r.useContext)(u)}t.d(e,{EventBusProvider:()=>l,StudioEventBus:()=>o,eventBus:()=>n,useEventBusContext:()=>h})}}]);
@@ -1,2 +1 @@
1
- "use strict";(self.rspackChunk_kb_labs_workflow_entry=self.rspackChunk_kb_labs_workflow_entry||[]).push([[707],{6026(e,r){var o=Symbol.for("react.transitional.element");function n(e,r,n){var s=null;if(void 0!==n&&(s=""+n),void 0!==r.key&&(s=""+r.key),"key"in r)for(var t in n={},r)"key"!==t&&(n[t]=r[t]);else n=r;return{$$typeof:o,type:e,key:s,ref:void 0!==(r=n.ref)?r:null,props:n}}r.Fragment=Symbol.for("react.fragment"),r.jsx=n,r.jsxs=n},4552(e,r,o){e.exports=o(6026)}}]);
2
- //# sourceMappingURL=707.js.map
1
+ "use strict";(self.rspackChunk_kb_labs_workflow_entry=self.rspackChunk_kb_labs_workflow_entry||[]).push([[707],{6026(e,r){var o=Symbol.for("react.transitional.element");function n(e,r,n){var s=null;if(void 0!==n&&(s=""+n),void 0!==r.key&&(s=""+r.key),"key"in r)for(var t in n={},r)"key"!==t&&(n[t]=r[t]);else n=r;return{$$typeof:o,type:e,key:s,ref:void 0!==(r=n.ref)?r:null,props:n}}r.Fragment=Symbol.for("react.fragment"),r.jsx=n,r.jsxs=n},4552(e,r,o){e.exports=o(6026)}}]);
@@ -1,2 +1 @@
1
- "use strict";(self.rspackChunk_kb_labs_workflow_entry=self.rspackChunk_kb_labs_workflow_entry||[]).push([[716],{6026(e,r){var n=Symbol.for("react.transitional.element");function t(e,r,t){var a=null;if(void 0!==t&&(a=""+t),void 0!==r.key&&(a=""+r.key),"key"in r)for(var i in t={},r)"key"!==i&&(t[i]=r[i]);else t=r;return{$$typeof:n,type:e,key:a,ref:void 0!==(r=t.ref)?r:null,props:t}}r.Fragment=Symbol.for("react.fragment"),r.jsx=t,r.jsxs=t},4552(e,r,n){e.exports=n(6026)},5688(e,r,n){var t=n(4552),a=!1,i={queued:"var(--text-tertiary)",running:"var(--warning)",success:"var(--success)",failed:"var(--error)",cancelled:"var(--text-tertiary)",skipped:"var(--text-tertiary)",waiting_approval:"var(--info)"};function l(e){var r,n=e.status;if(!a&&"u">typeof document){a=!0;var l=document.createElement("style");l.textContent="\n@keyframes kb-spin { 0% { transform: rotate(0deg) } 100% { transform: rotate(360deg) } }\n@keyframes kb-shimmer { 0% { left: -60% } 100% { left: 120% } }\n",document.head.appendChild(l)}var s=null!=(r=i[n])?r:"var(--text-tertiary)";return"running"===n?(0,t.jsx)("span",{style:{display:"inline-block",width:8,height:8,flexShrink:0,border:"2px solid ".concat(s),borderTopColor:"transparent",borderRadius:"50%",animation:"kb-spin 0.8s linear infinite"}}):(0,t.jsx)("span",{style:{display:"inline-block",width:8,height:8,flexShrink:0,borderRadius:"50%",background:"success"===n||"failed"===n||"waiting_approval"===n?s:"transparent",border:"2px solid ".concat(s)}})}function s(e){if(!e)return null;if(e<1e3)return"".concat(e,"ms");var r=e/1e3;return r<60?"".concat(r.toFixed(1),"s"):"".concat(Math.floor(r/60),"m ").concat(Math.floor(r%60),"s")}n.d(r,{a3:()=>s,md:()=>l})},9747(e,r,n){var t=n(4552),a={done:"var(--success)",active:"var(--warning)",pending:"var(--text-tertiary)"};function i(e){var r=e.status,n=a[r],i="active"===r?10:8;return"active"===r?(0,t.jsx)("span",{style:{display:"inline-block",width:i,height:i,borderRadius:"50%",border:"2px solid ".concat(n),background:"color-mix(in srgb, ".concat(n," 30%, transparent)"),flexShrink:0}}):(0,t.jsx)("span",{style:{display:"inline-block",width:i,height:i,borderRadius:"50%",background:"done"===r?n:"transparent",border:"2px solid ".concat(n),flexShrink:0}})}function l(e){var r=e.phases,n=e.compact;return r.length?(0,t.jsx)("div",{style:{display:"flex",alignItems:"center",gap:n?4:6},children:r.map(function(e,l){var s=l===r.length-1,o="done"===e.status?"var(--success)":"var(--border-primary)";return(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:n?4:6},children:[(0,t.jsx)(i,{status:e.status}),!n&&(0,t.jsx)("span",{style:{fontSize:11,fontWeight:"active"===e.status?600:400,color:a[e.status],whiteSpace:"nowrap"},children:e.label}),!s&&(0,t.jsx)("div",{style:{width:n?12:24,height:2,background:o,borderRadius:1,flexShrink:0}})]},e.label)})}):null}n.d(r,{g:()=>l})},4461(e,r,n){var t=n(4552);function a(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=Array(r);n<r;n++)t[n]=e[n];return t}function i(e){var r=e.views,n=e.current,i=e.onChange,l=Object.entries(r);return(0,t.jsx)("div",{style:{display:"flex",gap:0,border:"1px solid var(--border-primary)",borderRadius:6,overflow:"hidden"},children:l.map(function(e){var r=function(e){if(Array.isArray(e))return e}(e)||function(e){var r,n,t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),2!==a.length);i=!0);}catch(e){l=!0,n=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw n}}return a}}(e)||function(e){if(e){if("string"==typeof e)return a(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,2)}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),l=r[0],s=r[1];return(0,t.jsx)("button",{onClick:function(){return i(l)},style:{padding:"5px 16px",fontSize:13,fontWeight:500,cursor:"pointer",border:"none",background:n===l?"var(--link)":"var(--bg-secondary)",color:n===l?"var(--text-inverse)":"var(--text-secondary)",transition:"background 0.15s, color 0.15s"},children:s.label},l)})})}n.d(r,{k:()=>i})},8292(e,r,n){var t=n(4552),a=n(5155),i={queued:"info",running:"warning",success:"success",failed:"error",cancelled:"warning",skipped:"info",waiting_approval:"warning"},l={waiting_approval:"WAITING APPROVAL"};function s(e){var r,n,s=e.status,o=null!=(r=i[s])?r:"info",u=null!=(n=l[s])?n:s.toUpperCase();return(0,t.jsx)(a.UIBadge,{variant:o,children:u})}n.d(r,{d:()=>s})},7205(e,r,n){var t=n(92);function a(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function i(e){return(0,t.useMemo)(function(){var r={phases:[],steps:[],reworkLoop:null};if(!(null==e||null==(h=e.jobs)?void 0:h.length))return r;var n=e.jobs[0];if(!(null==n?void 0:n.steps.length))return r;var t=n.steps,i=t.map(function(e,r){var n,a,i;return{stepRun:e,stepType:"builtin:approval"===(i=null!=(n=null==(a=e.spec)?void 0:a.uses)?n:"")?"approval":"builtin:gate"===i?"gate":"shell",phase:function e(r,n,t){if(null==(a=r.spec)?void 0:a.phase)return r.spec.phase;var a,i,l,s=r.name.toLowerCase();if(s.includes("plan")||s.includes("spec")||s.includes("research")||s.includes("approve plan")||s.includes("tech lead"))return"Planning";if(s.includes("implement")||s.includes("develop")||s.includes("cod"))return"Implementation";if(s.includes("review")||s.includes("qa")||s.includes("test")||s.includes("lint")||s.includes("security")||s.includes("license")||s.includes("compliance"))return"Quality";if(s.includes("commit")||s.includes("deploy")||s.includes("release")||s.includes("publish")||s.includes("notify")||s.includes("done")||s.includes("complet"))return"Delivery";if((null==(i=r.spec)?void 0:i.uses)==="builtin:approval"&&n>0){var o=t[n-1];if(o)return e(o,n-1,t)}if((null==(l=r.spec)?void 0:l.uses)==="builtin:gate"&&n>0){var u=t[n-1];if(u)return e(u,n-1,t)}return"Implementation"}(e,r,t)}}),l=function(e){for(var r=0;r<e.length;r++){var n=e[r];if(n&&"gate"===n.stepType){var t=null==(u=n.stepRun.spec)||null==(o=u.with)?void 0:o.routes;if(t){var i=!0,l=!1,s=void 0;try{for(var o,u,c,d=Object.values(t)[Symbol.iterator]();!(i=(c=d.next()).done);i=!0){var p=function(){var t=c.value;if((void 0===t?"undefined":a(t))!=="object"||null===t||!("restartFrom"in t))return"continue";var i=t.restartFrom,l=e.findIndex(function(e){return e.stepRun.id.endsWith(":".concat(i))||e.stepRun.name.toLowerCase()===i.toLowerCase()});if(-1!==l){var s="failed"===n.stepRun.status||"running"===n.stepRun.status;return{v:{gateIndex:r,targetIndex:l,isActive:s}}}}();if("object"===a(p))return p.v}}catch(e){l=!0,s=e}finally{try{i||null==d.return||d.return()}finally{if(l)throw s}}}}}return null}(i);if(l){var s=i[l.gateIndex];if(s&&l.isActive){var o,u,c,d="number"==typeof(c=null==(u=s.stepRun.spec)||null==(o=u.with)?void 0:o.maxIterations)?c:3;s.iteration={current:1,max:d}}}var p=new Map,f=!0,v=!1,y=void 0;try{for(var h,b,m,g=i[Symbol.iterator]();!(f=(m=g.next()).done);f=!0){var x=m.value;p.has(x.phase)||p.set(x.phase,[]),p.get(x.phase).push(x)}}catch(e){v=!0,y=e}finally{try{f||null==g.return||g.return()}finally{if(v)throw y}}var k=null==(b=e.spec)?void 0:b.phases,w=k?k.map(function(e){return e.label}).filter(function(e){return p.has(e)}):Array.from(p.keys()),j=!0,S=!1,I=void 0;try{for(var R,A=p.keys()[Symbol.iterator]();!(j=(R=A.next()).done);j=!0){var C=R.value;w.includes(C)||w.push(C)}}catch(e){S=!0,I=e}finally{try{j||null==A.return||A.return()}finally{if(S)throw I}}return{phases:w.map(function(e){return{label:e,steps:p.get(e)}}),steps:i,reworkLoop:l}},[e])}n.d(r,{F:()=>i})}}]);
2
- //# sourceMappingURL=716.js.map
1
+ "use strict";(self.rspackChunk_kb_labs_workflow_entry=self.rspackChunk_kb_labs_workflow_entry||[]).push([[716],{6026(e,r){var n=Symbol.for("react.transitional.element");function t(e,r,t){var a=null;if(void 0!==t&&(a=""+t),void 0!==r.key&&(a=""+r.key),"key"in r)for(var i in t={},r)"key"!==i&&(t[i]=r[i]);else t=r;return{$$typeof:n,type:e,key:a,ref:void 0!==(r=t.ref)?r:null,props:t}}r.Fragment=Symbol.for("react.fragment"),r.jsx=t,r.jsxs=t},4552(e,r,n){e.exports=n(6026)},5688(e,r,n){var t=n(4552),a=!1,i={queued:"var(--text-tertiary)",running:"var(--warning)",success:"var(--success)",failed:"var(--error)",cancelled:"var(--text-tertiary)",skipped:"var(--text-tertiary)",waiting_approval:"var(--info)"};function l(e){var r,n=e.status;if(!a&&"u">typeof document){a=!0;var l=document.createElement("style");l.textContent="\n@keyframes kb-spin { 0% { transform: rotate(0deg) } 100% { transform: rotate(360deg) } }\n@keyframes kb-shimmer { 0% { left: -60% } 100% { left: 120% } }\n",document.head.appendChild(l)}var s=null!=(r=i[n])?r:"var(--text-tertiary)";return"running"===n?(0,t.jsx)("span",{style:{display:"inline-block",width:8,height:8,flexShrink:0,border:"2px solid ".concat(s),borderTopColor:"transparent",borderRadius:"50%",animation:"kb-spin 0.8s linear infinite"}}):(0,t.jsx)("span",{style:{display:"inline-block",width:8,height:8,flexShrink:0,borderRadius:"50%",background:"success"===n||"failed"===n||"waiting_approval"===n?s:"transparent",border:"2px solid ".concat(s)}})}function s(e){if(!e)return null;if(e<1e3)return"".concat(e,"ms");var r=e/1e3;return r<60?"".concat(r.toFixed(1),"s"):"".concat(Math.floor(r/60),"m ").concat(Math.floor(r%60),"s")}n.d(r,{a3:()=>s,md:()=>l})},9747(e,r,n){var t=n(4552),a={done:"var(--success)",active:"var(--warning)",pending:"var(--text-tertiary)"};function i(e){var r=e.status,n=a[r],i="active"===r?10:8;return"active"===r?(0,t.jsx)("span",{style:{display:"inline-block",width:i,height:i,borderRadius:"50%",border:"2px solid ".concat(n),background:"color-mix(in srgb, ".concat(n," 30%, transparent)"),flexShrink:0}}):(0,t.jsx)("span",{style:{display:"inline-block",width:i,height:i,borderRadius:"50%",background:"done"===r?n:"transparent",border:"2px solid ".concat(n),flexShrink:0}})}function l(e){var r=e.phases,n=e.compact;return r.length?(0,t.jsx)("div",{style:{display:"flex",alignItems:"center",gap:n?4:6},children:r.map(function(e,l){var s=l===r.length-1,o="done"===e.status?"var(--success)":"var(--border-primary)";return(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:n?4:6},children:[(0,t.jsx)(i,{status:e.status}),!n&&(0,t.jsx)("span",{style:{fontSize:11,fontWeight:"active"===e.status?600:400,color:a[e.status],whiteSpace:"nowrap"},children:e.label}),!s&&(0,t.jsx)("div",{style:{width:n?12:24,height:2,background:o,borderRadius:1,flexShrink:0}})]},e.label)})}):null}n.d(r,{g:()=>l})},4461(e,r,n){var t=n(4552);function a(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=Array(r);n<r;n++)t[n]=e[n];return t}function i(e){var r=e.views,n=e.current,i=e.onChange,l=Object.entries(r);return(0,t.jsx)("div",{style:{display:"flex",gap:0,border:"1px solid var(--border-primary)",borderRadius:6,overflow:"hidden"},children:l.map(function(e){var r=function(e){if(Array.isArray(e))return e}(e)||function(e){var r,n,t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),2!==a.length);i=!0);}catch(e){l=!0,n=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw n}}return a}}(e)||function(e){if(e){if("string"==typeof e)return a(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,2)}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),l=r[0],s=r[1];return(0,t.jsx)("button",{onClick:function(){return i(l)},style:{padding:"5px 16px",fontSize:13,fontWeight:500,cursor:"pointer",border:"none",background:n===l?"var(--link)":"var(--bg-secondary)",color:n===l?"var(--text-inverse)":"var(--text-secondary)",transition:"background 0.15s, color 0.15s"},children:s.label},l)})})}n.d(r,{k:()=>i})},8292(e,r,n){var t=n(4552),a=n(5155),i={queued:"info",running:"warning",success:"success",failed:"error",cancelled:"warning",skipped:"info",waiting_approval:"warning"},l={waiting_approval:"WAITING APPROVAL"};function s(e){var r,n,s=e.status,o=null!=(r=i[s])?r:"info",u=null!=(n=l[s])?n:s.toUpperCase();return(0,t.jsx)(a.UIBadge,{variant:o,children:u})}n.d(r,{d:()=>s})},7205(e,r,n){var t=n(92);function a(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function i(e){return(0,t.useMemo)(function(){var r={phases:[],steps:[],reworkLoop:null};if(!(null==e||null==(h=e.jobs)?void 0:h.length))return r;var n=e.jobs[0];if(!(null==n?void 0:n.steps.length))return r;var t=n.steps,i=t.map(function(e,r){var n,a,i;return{stepRun:e,stepType:"builtin:approval"===(i=null!=(n=null==(a=e.spec)?void 0:a.uses)?n:"")?"approval":"builtin:gate"===i?"gate":"shell",phase:function e(r,n,t){if(null==(a=r.spec)?void 0:a.phase)return r.spec.phase;var a,i,l,s=r.name.toLowerCase();if(s.includes("plan")||s.includes("spec")||s.includes("research")||s.includes("approve plan")||s.includes("tech lead"))return"Planning";if(s.includes("implement")||s.includes("develop")||s.includes("cod"))return"Implementation";if(s.includes("review")||s.includes("qa")||s.includes("test")||s.includes("lint")||s.includes("security")||s.includes("license")||s.includes("compliance"))return"Quality";if(s.includes("commit")||s.includes("deploy")||s.includes("release")||s.includes("publish")||s.includes("notify")||s.includes("done")||s.includes("complet"))return"Delivery";if((null==(i=r.spec)?void 0:i.uses)==="builtin:approval"&&n>0){var o=t[n-1];if(o)return e(o,n-1,t)}if((null==(l=r.spec)?void 0:l.uses)==="builtin:gate"&&n>0){var u=t[n-1];if(u)return e(u,n-1,t)}return"Implementation"}(e,r,t)}}),l=function(e){for(var r=0;r<e.length;r++){var n=e[r];if(n&&"gate"===n.stepType){var t=null==(u=n.stepRun.spec)||null==(o=u.with)?void 0:o.routes;if(t){var i=!0,l=!1,s=void 0;try{for(var o,u,c,d=Object.values(t)[Symbol.iterator]();!(i=(c=d.next()).done);i=!0){var p=function(){var t=c.value;if((void 0===t?"undefined":a(t))!=="object"||null===t||!("restartFrom"in t))return"continue";var i=t.restartFrom,l=e.findIndex(function(e){return e.stepRun.id.endsWith(":".concat(i))||e.stepRun.name.toLowerCase()===i.toLowerCase()});if(-1!==l){var s="failed"===n.stepRun.status||"running"===n.stepRun.status;return{v:{gateIndex:r,targetIndex:l,isActive:s}}}}();if("object"===a(p))return p.v}}catch(e){l=!0,s=e}finally{try{i||null==d.return||d.return()}finally{if(l)throw s}}}}}return null}(i);if(l){var s=i[l.gateIndex];if(s&&l.isActive){var o,u,c,d="number"==typeof(c=null==(u=s.stepRun.spec)||null==(o=u.with)?void 0:o.maxIterations)?c:3;s.iteration={current:1,max:d}}}var p=new Map,f=!0,v=!1,y=void 0;try{for(var h,b,m,g=i[Symbol.iterator]();!(f=(m=g.next()).done);f=!0){var x=m.value;p.has(x.phase)||p.set(x.phase,[]),p.get(x.phase).push(x)}}catch(e){v=!0,y=e}finally{try{f||null==g.return||g.return()}finally{if(v)throw y}}var k=null==(b=e.spec)?void 0:b.phases,w=k?k.map(function(e){return e.label}).filter(function(e){return p.has(e)}):Array.from(p.keys()),j=!0,S=!1,I=void 0;try{for(var R,A=p.keys()[Symbol.iterator]();!(j=(R=A.next()).done);j=!0){var C=R.value;w.includes(C)||w.push(C)}}catch(e){S=!0,I=e}finally{try{j||null==A.return||A.return()}finally{if(S)throw I}}return{phases:w.map(function(e){return{label:e,steps:p.get(e)}}),steps:i,reworkLoop:l}},[e])}n.d(r,{F:()=>i})}}]);