@yinuo-ngm/server 1.0.23 → 1.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/modules/agent-connections/agent-connections.schema.d.ts +4 -0
- package/lib/modules/agent-connections/agent-connections.schema.js +112 -0
- package/lib/modules/agent-connections/agent-connections.service.d.ts +18 -0
- package/lib/modules/agent-connections/agent-connections.service.js +209 -0
- package/lib/modules/agent-connections/agent-connections.types.d.ts +57 -0
- package/lib/modules/agent-connections/agent-connections.types.js +2 -0
- package/lib/modules/agent-connections/atomic-json-file.d.ts +8 -0
- package/lib/modules/agent-connections/atomic-json-file.js +44 -0
- package/lib/modules/agent-connections/token-mask.d.ts +1 -0
- package/lib/modules/agent-connections/token-mask.js +12 -0
- package/lib/routes/agent-connections.routes.d.ts +3 -0
- package/lib/routes/agent-connections.routes.js +28 -0
- package/lib/routes/index.js +2 -0
- package/package.json +4 -3
- package/www/3rdpartylicenses.txt +5 -5
- package/www/browser/chunk-2EB7UV3S.js +15 -0
- package/www/browser/{chunk-3I7BQCXS.js → chunk-2S6Y2RQI.js} +1 -1
- package/www/browser/{chunk-U3EUR236.js → chunk-2SYBXRWK.js} +1 -1
- package/www/browser/{chunk-OUGN4APK.js → chunk-365ZCRSD.js} +1 -1
- package/www/browser/{chunk-6UFDNETG.js → chunk-3MPEGFKP.js} +1 -1
- package/www/browser/{chunk-WCHN62X6.js → chunk-4PSSTE76.js} +1 -1
- package/www/browser/{chunk-DENFXXOY.js → chunk-5HVK6MON.js} +1 -1
- package/www/browser/{chunk-TXAXE73U.js → chunk-5Y7KNVNN.js} +1 -1
- package/www/browser/chunk-6L2CHHFV.js +1 -0
- package/www/browser/{chunk-NNOWADVM.js → chunk-6ZXQKFRQ.js} +1 -1
- package/www/browser/chunk-735SLX4X.js +1 -0
- package/www/browser/chunk-7KLACOZT.js +2 -0
- package/www/browser/chunk-7VJKEZTT.js +20 -0
- package/www/browser/{chunk-CO3CQHKV.js → chunk-7X4X4YHI.js} +1 -1
- package/www/browser/chunk-ACYCDF6M.js +1 -0
- package/www/browser/{chunk-UJKK4A7Y.js → chunk-AQYHNHJ3.js} +1 -1
- package/www/browser/chunk-BHKSOTOM.js +1 -0
- package/www/browser/{chunk-3ODVU46S.js → chunk-BXZVX5KD.js} +1 -1
- package/www/browser/{chunk-TCBOC5FF.js → chunk-C5DOE7UG.js} +1 -1
- package/www/browser/{chunk-7AKVG375.js → chunk-C6GC5OOE.js} +1 -1
- package/www/browser/{chunk-SSCUT2GF.js → chunk-D5W7J3FS.js} +1 -1
- package/www/browser/chunk-DPGKZHEW.js +1 -0
- package/www/browser/chunk-DRV2KPHO.js +1 -0
- package/www/browser/chunk-E2WRB7KQ.js +2 -0
- package/www/browser/{chunk-MPLGMTLT.js → chunk-EAFAHVBG.js} +1 -1
- package/www/browser/{chunk-WWIPELAV.js → chunk-ERH36Q6S.js} +1 -1
- package/www/browser/chunk-GSUKZOEV.js +1 -0
- package/www/browser/chunk-GYXK6ZZT.js +1 -0
- package/www/browser/{chunk-PDI3HSSH.js → chunk-H27FQ6OP.js} +3 -3
- package/www/browser/chunk-I7RTVSMK.js +1 -0
- package/www/browser/{chunk-SD2HFD54.js → chunk-IVX3LVU4.js} +1 -1
- package/www/browser/{chunk-U2YWR3HF.js → chunk-IX6UZA7J.js} +1 -1
- package/www/browser/{chunk-CPJTSA6E.js → chunk-JFR7U5DE.js} +1 -1
- package/www/browser/chunk-JIVQNGBJ.js +1 -0
- package/www/browser/{chunk-PY3AUTHC.js → chunk-KDMWEV46.js} +1 -1
- package/www/browser/{chunk-JM6DCZP6.js → chunk-LRHJZDWY.js} +1 -1
- package/www/browser/chunk-NVN2P466.js +1 -0
- package/www/browser/{chunk-NREWZQVN.js → chunk-O64FT2TA.js} +1 -1
- package/www/browser/{chunk-YVRGRFK2.js → chunk-OZONPLGN.js} +1 -1
- package/www/browser/chunk-PC7TJLCL.js +2 -0
- package/www/browser/{chunk-7GLWEFTM.js → chunk-PNFC3J4Z.js} +1 -1
- package/www/browser/chunk-PRKDURHI.js +1 -0
- package/www/browser/{chunk-RMIYLAEM.js → chunk-PUHSNEN6.js} +1 -1
- package/www/browser/{chunk-442QFABJ.js → chunk-RKKAY5CD.js} +1 -1
- package/www/browser/{chunk-M6NZ6C2R.js → chunk-RLH7DAA2.js} +1 -1
- package/www/browser/chunk-S6BY2OTR.js +1 -0
- package/www/browser/{chunk-KRYMOHYF.js → chunk-SIKDYQOR.js} +1 -1
- package/www/browser/{chunk-RKK4I2RT.js → chunk-SVRGVAFE.js} +1 -1
- package/www/browser/chunk-TPVKLECM.js +1 -0
- package/www/browser/{chunk-UPOORT3S.js → chunk-VBMHQZWH.js} +1 -1
- package/www/browser/chunk-WVRMU265.js +1 -0
- package/www/browser/chunk-X6PRUZ5G.js +1 -0
- package/www/browser/{chunk-PUG3VNTI.js → chunk-XQQ6PT2E.js} +1 -1
- package/www/browser/chunk-XUUNCF53.js +1 -0
- package/www/browser/{chunk-4BRW6LCZ.js → chunk-YGWA6NUS.js} +1 -1
- package/www/browser/{chunk-2VJVGBXG.js → chunk-YNYWN7QI.js} +1 -1
- package/www/browser/chunk-Z4T3LTE2.js +1 -0
- package/www/browser/chunk-Z7GYTPTP.js +1 -0
- package/www/browser/chunk-ZZN3NP7F.js +1 -0
- package/www/browser/index.html +1 -1
- package/www/browser/main-HMOP3OWL.js +38 -0
- package/www/browser/chunk-6J6G7JEP.js +0 -1
- package/www/browser/chunk-7QR6RHLA.js +0 -1
- package/www/browser/chunk-H2USFIYR.js +0 -1
- package/www/browser/chunk-HC5KLPHD.js +0 -1
- package/www/browser/chunk-HJAP6WBI.js +0 -1
- package/www/browser/chunk-K6C5ZIV2.js +0 -20
- package/www/browser/chunk-MBPB43C6.js +0 -1
- package/www/browser/chunk-PB2LGZNW.js +0 -1
- package/www/browser/chunk-R4HSZU2J.js +0 -1
- package/www/browser/chunk-RZA3IFQV.js +0 -2
- package/www/browser/chunk-SEJGGBE2.js +0 -1
- package/www/browser/chunk-TS5ZQYYY.js +0 -1
- package/www/browser/chunk-TVJHI463.js +0 -1
- package/www/browser/chunk-UKCMUTYL.js +0 -1
- package/www/browser/chunk-VW3S7C2Z.js +0 -1
- package/www/browser/chunk-VZYJ3MSW.js +0 -15
- package/www/browser/chunk-WUA5JFDD.js +0 -1
- package/www/browser/chunk-WYNERG74.js +0 -2
- package/www/browser/chunk-XJDJL3TQ.js +0 -1
- package/www/browser/chunk-YV6QPLF5.js +0 -1
- package/www/browser/main-7GYUOEJY.js +0 -38
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as Te}from"./chunk-2VJVGBXG.js";import{a as ze,c as _e}from"./chunk-NNOWADVM.js";import{c as ue,e as fe,h as be}from"./chunk-RMIYLAEM.js";import{Ea as mt,Fa as pt,Ga as J,Ha as tt,L,R as At,S as re,_a as ce,a as kt,cb as he,db as me,eb as ut,h as Dt,m as oe,na as le,nb as pe,pa as U,ra as de,ta as K,x as se}from"./chunk-VZYJ3MSW.js";import{b as ne,e as ie,f as ae}from"./chunk-WUA5JFDD.js";import{i as ht}from"./chunk-KRYMOHYF.js";import{$b as ot,Ac as I,Bc as Zt,Da as et,Dc as Ut,Ec as Z,Fb as O,Fc as xt,Gb as qt,Gc as M,Hb as W,Hc as Kt,Jc as It,L as X,Lb as S,Lc as St,M as Ft,Mb as Gt,N as Pt,Oa as vt,Ra as P,Sa as nt,U as Ht,Ub as q,Wb as N,X as Vt,Xa as Yt,Xc as Jt,Yb as k,Yc as lt,_b as at,ac as st,bc as u,cc as g,da as Ct,dc as C,dd as dt,ec as V,f as _t,g as Tt,ic as G,id as wt,jc as j,l as Lt,lc as B,ma as $t,md as te,nb as f,nc as jt,o as Ot,oa as Qt,od as Nt,p as Wt,qa as Xt,r as Q,rc as A,rd as ee,s as R,sa as h,sb as z,tb as Y,u as gt,uc as c,ud as ct,vc as yt,wb as it,wc as rt,xc as H,ya as _,yc as F,yd as y,za as T,zc as x}from"./chunk-4BRW6LCZ.js";function Me(e,d){if(e&1&&(G(0),V(1,"nz-icon",1),j()),e&2){let t=d.$implicit;f(),u("nzType",t)}}var Le=["nz-tab-body",""];function Oe(e,d){}function We(e,d){if(e&1&&(G(0),V(1,"nz-icon",1),j()),e&2){let t=d.$implicit;f(),u("nzType",t)}}var Fe=()=>({minWidth:"46px"}),Pe=()=>({visible:!1});function He(e,d){if(e&1&&(G(0),It(1),j()),e&2){let t=c().$implicit;f(),St(" ",t.tab.label," ")}}function Ve(e,d){if(e&1){let t=B();g(0,"li",7),A("click",function(){let i=_(t).$implicit,a=c(2);return T(a.onSelect(i))})("contextmenu",function(i){let a=_(t).$implicit,l=c(2);return T(l.onContextmenu(a,i))}),S(1,He,2,1,"ng-container",8),C()}if(e&2){let t=d.$implicit;M("ant-tabs-dropdown-menu-item-disabled",t.disabled),u("nzSelected",t.active)("nzDisabled",t.disabled),f(),u("nzStringTemplateOutlet",t.tab.label)("nzStringTemplateOutletContext",lt(6,Pe))}}function $e(e,d){if(e&1&&(g(0,"ul",4),ot(1,Ve,2,7,"li",6,at),C()),e&2){let t=c();f(),st(t.items)}}function Qe(e,d){if(e&1){let t=B();g(0,"button",9),A("click",function(){_(t);let i=c();return T(i.addClicked.emit())}),C()}if(e&2){let t=c();u("addIcon",t.addIcon)}}var Xe=["navWrap"],Ye=["navList"],qe=["*"];function Ge(e,d){}function je(e,d){if(e&1&&(g(0,"div",2),S(1,Ge,0,0,"ng-template",8),C()),e&2){let t=c();f(),u("ngTemplateOutlet",t.startExtraContent().templateRef)}}function Ze(e,d){if(e&1){let t=B();g(0,"button",9),A("click",function(){_(t);let i=c();return T(i.addClicked.emit())}),C()}if(e&2){let t=c();u("addIcon",t.addIcon),q("tabindex",-1)}}function Ue(e,d){}function Ke(e,d){if(e&1&&(g(0,"div",2),S(1,Ue,0,0,"ng-template",8),C()),e&2){let t=c();f(),u("ngTemplateOutlet",t.endExtraContent().templateRef)}}function Je(e,d){}function tn(e,d){if(e&1&&(g(0,"div",2),S(1,Je,0,0,"ng-template",8),C()),e&2){let t=c();f(),u("ngTemplateOutlet",t.extraTemplate)}}var en=["contentTemplate"],nn=[[["","nz-tab-link",""]],"*"],an=["[nz-tab-link]","*"];function on(e,d){e&1&&rt(0)}function sn(e,d){e&1&&rt(0,1)}var rn=()=>({visible:!0});function ln(e,d){if(e&1&&(G(0),It(1),j()),e&2){let t=c().$implicit;f(),St(" ",t.label," ")}}function dn(e,d){if(e&1){let t=B();g(0,"button",10),A("click",function(i){_(t);let a=c().$index,l=c(2);return T(l.onClose(a,i))}),C()}if(e&2){let t=c().$implicit;u("closeIcon",t.nzCloseIcon)}}function cn(e,d){if(e&1){let t=B();g(0,"div",6),A("click",function(i){let a=_(t),l=a.$implicit,p=a.$index,b=c(2);return T(b.clickNavItem(l,p,i))})("contextmenu",function(i){let a=_(t).$implicit,l=c(2);return T(l.contextmenuNavItem(a,i))}),g(1,"button",7),S(2,ln,2,1,"ng-container",8),N(3,dn,1,1,"button",9),C()()}if(e&2){let t=d.$implicit,n=d.$index,i=c(2);xt("margin-right",i.position==="horizontal"?i.nzTabBarGutter:null,"px")("margin-bottom",i.position==="vertical"?i.nzTabBarGutter:null,"px"),M("ant-tabs-tab-active",i.nzSelectedIndex===n)("ant-tabs-tab-disabled",t.nzDisabled),f(),u("id",i.getTabContentId(n))("disabled",t.nzDisabled)("tab",t)("active",i.nzSelectedIndex===n),q("tabIndex",i.getTabIndex(t,n))("aria-disabled",t.nzDisabled)("aria-selected",i.nzSelectedIndex===n&&!i.nzHideAll)("aria-controls",i.getTabContentId(n)),f(),u("nzStringTemplateOutlet",t.label)("nzStringTemplateOutletContext",lt(19,rn)),f(),k(t.nzClosable&&i.closable&&!t.nzDisabled?3:-1)}}function hn(e,d){if(e&1){let t=B();g(0,"nz-tabs-nav",4),A("tabScroll",function(i){_(t);let a=c();return T(a.nzTabListScroll.emit(i))})("selectFocusedIndex",function(i){_(t);let a=c();return T(a.setSelectedIndex(i))})("addClicked",function(){_(t);let i=c();return T(i.onAdd())}),ot(1,cn,4,20,"div",5,at),C()}if(e&2){let t=c();Kt(t.nzTabBarStyle),u("selectedIndex",t.nzSelectedIndex||0)("inkBarAnimated",t.inkBarAnimated)("addable",t.addable)("addIcon",t.nzAddIcon)("hideBar",t.nzHideAll)("position",t.position)("extraTemplate",t.nzTabBarExtraContent)("extraContents",t.extraContents()),f(),st(t.tabs)}}function mn(e,d){}function pn(e,d){if(e&1&&S(0,mn,0,0,"ng-template",11),e&2){c();let t=Z(4);u("ngTemplateOutlet",t)}}function un(e,d){}function fn(e,d){if(e&1&&S(0,un,0,0,"ng-template",11),e&2){c(2);let t=Z(4);u("ngTemplateOutlet",t)}}function bn(e,d){if(e&1&&N(0,fn,1,1,null,11),e&2){let t=c().$index,n=c(2);k(n.nzSelectedIndex===t?0:-1)}}function zn(e,d){}function _n(e,d){if(e&1&&S(0,zn,0,0,"ng-template",11),e&2){c(2);let t=Z(4);u("ngTemplateOutlet",t)}}function Tn(e,d){if(e&1&&N(0,_n,1,1,null,11),e&2){let t=c(),n=t.$implicit,i=t.$index,a=c(2);k(a.nzSelectedIndex===i||n.hasBeenActive?0:-1)}}function gn(e,d){if(e&1&&V(0,"div",12),e&2){let t=c(),n=t.$implicit,i=t.$index,a=c(2);u("id",a.getTabContentId(i))("active",a.nzSelectedIndex===i)("content",n.content)("animated",a.tabPaneAnimated),q("aria-labelledby",a.getTabContentId(i))}}function Cn(e,d){if(e&1&&(N(0,pn,1,1,null,11)(1,bn,1,1)(2,Tn,1,1),S(3,gn,1,5,"ng-template",null,0,dt)),e&2){let t=d.$implicit,n=c(2);k(t.nzForceRender?0:n.nzDestroyInactiveTabPane?1:2)}}function vn(e,d){if(e&1&&ot(0,Cn,5,1,null,null,at),e&2){let t=c();st(t.tabs)}}var Et=class{index;tab},bt=(()=>{class e{addIcon="plus";element=h(P).nativeElement;getElementWidth(){return this.element?.offsetWidth||0}getElementHeight(){return this.element?.offsetHeight||0}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=O({type:e,selectors:[["nz-tab-add-button"],["button","nz-tab-add-button",""]],hostAttrs:["aria-label","Add tab","type","button",1,"ant-tabs-nav-add"],inputs:{addIcon:"addIcon"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"],["nzTheme","outline",3,"nzType"]],template:function(n,i){n&1&&S(0,Me,2,1,"ng-container",0),n&2&&u("nzStringTemplateOutlet",i.addIcon)},dependencies:[tt,J,pt,mt],encapsulation:2})}return e})(),ge=(()=>{class e{position=Nt("end",{alias:"nzTabBarExtraContent"});templateRef=h(it);static \u0275fac=function(n){return new(n||e)};static \u0275dir=W({type:e,selectors:[["","nzTabBarExtraContent","",5,"nz-tabset",5,"nz-tabs"]],inputs:{position:[1,"nzTabBarExtraContent","position"]}})}return e})(),yn=(()=>{class e{content=null;active=!1;animated=!0;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=O({type:e,selectors:[["","nz-tab-body",""]],hostAttrs:[1,"ant-tabs-tabpane"],hostVars:10,hostBindings:function(n,i){n&2&&(jt("@tabSwitchMotion",i.active?"enter":"leave")("@.disabled",!i.animated),q("tabindex",i.active?0:-1)("aria-hidden",!i.active),xt("overflow-y",i.animated?i.active?null:"none":null),M("ant-tabs-tabpane-active",i.active)("ant-tabs-tabpane-hidden",i.animated?null:!i.active))},inputs:{content:"content",active:"active",animated:"animated"},exportAs:["nzTabBody"],attrs:Le,decls:1,vars:1,consts:[[3,"ngTemplateOutlet"]],template:function(n,i){n&1&&S(0,Oe,0,0,"ng-template",0),n&2&&u("ngTemplateOutlet",i.content)},dependencies:[ht],encapsulation:2,data:{animation:[pe]},changeDetection:0})}return e})(),Ie=(()=>{class e{closeIcon="close";static \u0275fac=function(n){return new(n||e)};static \u0275cmp=O({type:e,selectors:[["nz-tab-close-button"],["button","nz-tab-close-button",""]],hostAttrs:["aria-label","Close tab","type","button",1,"ant-tabs-tab-remove"],inputs:{closeIcon:"closeIcon"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"],["nzTheme","outline",3,"nzType"]],template:function(n,i){n&1&&S(0,We,2,1,"ng-container",0),n&2&&u("nzStringTemplateOutlet",i.closeIcon)},dependencies:[tt,J,pt,mt],encapsulation:2})}return e})(),xn=(()=>{class e{templateRef=h(it,{host:!0});static \u0275fac=function(n){return new(n||e)};static \u0275dir=W({type:e,selectors:[["ng-template","nzTabLink",""]],exportAs:["nzTabLinkTemplate"]})}return e})(),Se=(()=>{class e{elementRef=h(P);routerLink=h(ae,{self:!0,optional:!0});static \u0275fac=function(n){return new(n||e)};static \u0275dir=W({type:e,selectors:[["a","nz-tab-link",""]],exportAs:["nzTabLink"]})}return e})(),we=(()=>{class e{disabled=!1;tab;active=!1;elementRef=h(P);el=this.elementRef.nativeElement;parentElement=this.el.parentElement;focus(){this.el.focus({preventScroll:!0})}get width(){return this.parentElement.offsetWidth}get height(){return this.parentElement.offsetHeight}get left(){return this.parentElement.offsetLeft}get top(){return this.parentElement.offsetTop}static \u0275fac=function(n){return new(n||e)};static \u0275dir=W({type:e,selectors:[["","nzTabNavItem",""]],inputs:{disabled:[2,"disabled","disabled",y],tab:"tab",active:[2,"active","active",y]}})}return e})(),Rt=(()=>{class e{items=[];addable=!1;addIcon="plus";addClicked=new z;selected=new z;closeAnimationWaitTimeoutId;menuOpened=!1;cdr=h(ct);element=h(P).nativeElement;onSelect(t){t.disabled||(t.tab.nzClick.emit(),this.selected.emit(t))}onContextmenu(t,n){t.disabled||t.tab.nzContextmenu.emit(n)}showItems(){clearTimeout(this.closeAnimationWaitTimeoutId),this.menuOpened=!0,this.cdr.markForCheck()}menuVisChange(t){t||(this.closeAnimationWaitTimeoutId=setTimeout(()=>{this.menuOpened=!1,this.cdr.markForCheck()},150))}getElementWidth(){return this.element?.offsetWidth||0}getElementHeight(){return this.element?.offsetHeight||0}ngOnDestroy(){clearTimeout(this.closeAnimationWaitTimeoutId)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=O({type:e,selectors:[["nz-tab-nav-operation"]],hostAttrs:[1,"ant-tabs-nav-operations"],hostVars:2,hostBindings:function(n,i){n&2&&M("ant-tabs-nav-operations-hidden",i.items.length===0)},inputs:{items:"items",addable:[2,"addable","addable",y],addIcon:"addIcon"},outputs:{addClicked:"addClicked",selected:"selected"},exportAs:["nzTabNavOperation"],decls:7,vars:6,consts:[["dropdownTrigger","nzDropdown"],["menu","nzDropdownMenu"],["nz-dropdown","","type","button","tabindex","-1","aria-hidden","true","nzOverlayClassName","nz-tabs-dropdown",1,"ant-tabs-nav-more",3,"nzVisibleChange","mouseenter","nzDropdownMenu","nzOverlayStyle","nzMatchWidthElement"],["nzType","ellipsis"],["nz-menu",""],["nz-tab-add-button","",3,"addIcon"],["nz-menu-item","",1,"ant-tabs-dropdown-menu-item",3,"ant-tabs-dropdown-menu-item-disabled","nzSelected","nzDisabled"],["nz-menu-item","",1,"ant-tabs-dropdown-menu-item",3,"click","contextmenu","nzSelected","nzDisabled"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["nz-tab-add-button","",3,"click","addIcon"]],template:function(n,i){if(n&1){let a=B();g(0,"button",2,0),A("nzVisibleChange",function(p){return _(a),T(i.menuVisChange(p))})("mouseenter",function(){return _(a),T(i.showItems())}),V(2,"nz-icon",3),C(),g(3,"nz-dropdown-menu",null,1),N(5,$e,3,0,"ul",4),C(),N(6,Qe,1,1,"button",5)}if(n&2){let a=Z(4);u("nzDropdownMenu",a)("nzOverlayStyle",lt(5,Fe))("nzMatchWidthElement",null),f(5),k(i.menuOpened?5:-1),f(),k(i.addable?6:-1)}},dependencies:[pt,mt,tt,J,bt,_e,be,fe,ue,ze],encapsulation:2,changeDetection:0})}return e})(),In=.1,Ce=.01,ft=20,ve=.995**ft,Sn=(()=>{class e{ngZone=h(Y);destroyRef=h(et);el=h(P).nativeElement;lastWheelDirection=null;lastWheelTimestamp=0;lastTimestamp=0;lastTimeDiff=0;lastMixedWheel=0;lastWheelPrevent=!1;touchPosition=null;lastOffset=null;motion=-1;offsetChange=new z;tabScroll=new z;ngOnInit(){let t=U(this.el,"wheel"),n=U(this.el,"touchstart"),i=U(this.el,"touchmove"),a=U(this.el,"touchend");this.subscribeWrap("wheel",t,this.onWheel),this.subscribeWrap("touchstart",n,this.onTouchStart),this.subscribeWrap("touchmove",i,this.onTouchMove),this.subscribeWrap("touchend",a,this.onTouchEnd)}subscribeWrap(t,n,i){return n.pipe(L(this.destroyRef)).subscribe(a=>{this.tabScroll.emit({type:t,event:a}),a.defaultPrevented||i(a)})}onTouchEnd=t=>{if(!this.touchPosition)return;let n=this.lastOffset,i=this.lastTimeDiff;if(this.lastOffset=this.touchPosition=null,n){let a=n.x/i,l=n.y/i,p=Math.abs(a),b=Math.abs(l);if(Math.max(p,b)<In)return;let w=a,E=l;this.motion=window.setInterval(()=>{if(Math.abs(w)<Ce&&Math.abs(E)<Ce){window.clearInterval(this.motion);return}w*=ve,E*=ve,this.onOffset(w*ft,E*ft,t)},ft)}};onTouchMove=t=>{if(!this.touchPosition)return;t.preventDefault();let{screenX:n,screenY:i}=t.touches[0],a=n-this.touchPosition.x,l=i-this.touchPosition.y;this.onOffset(a,l,t);let p=Date.now();this.lastTimeDiff=p-this.lastTimestamp,this.lastTimestamp=p,this.lastOffset={x:a,y:l},this.touchPosition={x:n,y:i}};onTouchStart=t=>{let{screenX:n,screenY:i}=t.touches[0];this.touchPosition={x:n,y:i},window.clearInterval(this.motion)};onWheel=t=>{let{deltaX:n,deltaY:i}=t,a,l=Math.abs(n),p=Math.abs(i);l===p?a=this.lastWheelDirection==="x"?n:i:l>p?(a=n,this.lastWheelDirection="x"):(a=i,this.lastWheelDirection="y");let b=Date.now(),w=Math.abs(a);(b-this.lastWheelTimestamp>100||w-this.lastMixedWheel>10)&&(this.lastWheelPrevent=!1),this.onOffset(-a,-a,t),(t.defaultPrevented||this.lastWheelPrevent)&&(this.lastWheelPrevent=!0),this.lastWheelTimestamp=b,this.lastMixedWheel=w};onOffset(t,n,i){this.offsetChange.observers.length&&this.ngZone.run(()=>{this.offsetChange.emit({x:t,y:n,event:i})})}static \u0275fac=function(n){return new(n||e)};static \u0275dir=W({type:e,selectors:[["","nzTabScrollList",""]],outputs:{offsetChange:"offsetChange",tabScroll:"tabScroll"}})}return e})(),ye=(()=>{class e{ngZone=h(Y);el=h(P).nativeElement;position="horizontal";animated=!0;animationMode=h(Yt,{optional:!0});get _animated(){return this.animationMode!=="NoopAnimations"&&this.animated}alignToElement(t){this.ngZone.runOutsideAngular(()=>{ut(()=>this.setStyles(t))})}setStyles(t){this.position==="horizontal"?(this.el.style.top="",this.el.style.height="",this.el.style.left=this.getLeftPosition(t),this.el.style.width=this.getElementWidth(t)):(this.el.style.left="",this.el.style.width="",this.el.style.top=this.getTopPosition(t),this.el.style.height=this.getElementHeight(t))}getLeftPosition(t){return t?`${t.offsetLeft||0}px`:"0"}getElementWidth(t){return t?`${t.offsetWidth||0}px`:"0"}getTopPosition(t){return t?`${t.offsetTop||0}px`:"0"}getElementHeight(t){return t?`${t.offsetHeight||0}px`:"0"}static \u0275fac=function(n){return new(n||e)};static \u0275dir=W({type:e,selectors:[["nz-tabs-ink-bar"],["","nz-tabs-ink-bar",""]],hostAttrs:[1,"ant-tabs-ink-bar"],hostVars:2,hostBindings:function(n,i){n&2&&M("ant-tabs-ink-bar-animated",i._animated)},inputs:{position:"position",animated:"animated"}})}return e})(),wn=typeof ut<"u"?Wt:Ot,xe=150,Bt=(()=>{class e{cdr=h(ct);ngZone=h(Y);viewportRuler=h(oe);nzResizeObserver=h(Te);dir=h(kt);destroyRef=h(et);indexFocused=new z;selectFocusedIndex=new z;addClicked=new z;tabScroll=new z;position="horizontal";addable=!1;hideBar=!1;addIcon="plus";inkBarAnimated=!0;extraTemplate;extraContents=Nt.required();startExtraContent=wt(()=>this.extraContents().find(t=>t.position()==="start"));endExtraContent=wt(()=>this.extraContents().find(t=>t.position()==="end"));get selectedIndex(){return this._selectedIndex}set selectedIndex(t){let n=Dt(t);this._selectedIndex!==n&&(this._selectedIndex=t,this.selectedIndexChanged=!0,this.keyManager&&this.keyManager.updateActiveItem(t))}navWrapRef;navListRef;operationRef;addBtnRef;inkBar;items;get focusIndex(){return this.keyManager?this.keyManager.activeItemIndex:0}set focusIndex(t){!this.isValidIndex(t)||this.focusIndex===t||!this.keyManager||this.keyManager.setActiveItem(t)}get showAddButton(){return this.hiddenItems.length===0&&this.addable}translate=null;transformX=0;transformY=0;pingLeft=!1;pingRight=!1;pingTop=!1;pingBottom=!1;hiddenItems=[];keyManager;_selectedIndex=0;wrapperWidth=0;wrapperHeight=0;scrollListWidth=0;scrollListHeight=0;operationWidth=0;operationHeight=0;addButtonWidth=0;addButtonHeight=0;selectedIndexChanged=!1;lockAnimationTimeoutId;cssTransformTimeWaitingId;constructor(){this.destroyRef.onDestroy(()=>{clearTimeout(this.lockAnimationTimeoutId),clearTimeout(this.cssTransformTimeWaitingId)})}ngAfterViewInit(){let t=this.dir?this.dir.change.asObservable():gt(null),n=this.viewportRuler.change(150),i=()=>{this.updateScrollListPosition(),this.alignInkBarToSelectedTab()};this.keyManager=new me(this.items).withHorizontalOrientation(this.getLayoutDirection()).withWrap(),this.keyManager.updateActiveItem(this.selectedIndex),ut(i),X(this.nzResizeObserver.observe(this.navWrapRef),this.nzResizeObserver.observe(this.navListRef)).pipe(L(this.destroyRef),Pt(16,wn)).subscribe(()=>{i()}),X(t,n,this.items.changes).pipe(L(this.destroyRef)).subscribe(()=>{Promise.resolve().then(i),this.keyManager.withHorizontalOrientation(this.getLayoutDirection())}),this.keyManager.change.pipe(L(this.destroyRef)).subscribe(a=>{this.indexFocused.emit(a),this.scrollToTab(this.keyManager.activeItem)})}ngAfterContentChecked(){this.selectedIndexChanged&&(this.updateScrollListPosition(),this.alignInkBarToSelectedTab(),this.selectedIndexChanged=!1,this.cdr.markForCheck())}onSelectedFromMenu(t){let n=this.items.toArray().findIndex(i=>i===t);n!==-1&&(this.keyManager.updateActiveItem(n),this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this.scrollToTab(t)))}onOffsetChange(t){if(this.position==="horizontal"){if(!this.lockAnimationTimeoutId&&(this.transformX>=0&&t.x>0||this.transformX<=this.wrapperWidth-this.scrollListWidth&&t.x<0))return;t.event.preventDefault(),this.transformX=this.clampTransformX(this.transformX+t.x),this.setTransform(this.transformX,0)}else{if(!this.lockAnimationTimeoutId&&(this.transformY>=0&&t.y>0||this.transformY<=this.wrapperHeight-this.scrollListHeight&&t.y<0))return;t.event.preventDefault(),this.transformY=this.clampTransformY(this.transformY+t.y),this.setTransform(0,this.transformY)}this.lockAnimation(),this.setVisibleRange(),this.setPingStatus()}handleKeydown(t){let n=this.navWrapRef.nativeElement.contains(t.target);if(!(se(t)||!n))switch(t.keyCode){case 37:case 38:case 39:case 40:this.lockAnimation(),this.keyManager.onKeydown(t);break;case 13:case 32:this.focusIndex!==this.selectedIndex&&this.selectFocusedIndex.emit(this.focusIndex);break;default:this.keyManager.onKeydown(t)}}isValidIndex(t){if(!this.items)return!0;let n=this.items?this.items.toArray()[t]:null;return!!n&&!n.disabled}scrollToTab(t){if(!this.items.find(i=>i===t))return;let n=this.items.toArray();if(this.position==="horizontal"){let i=this.transformX;if(this.getLayoutDirection()==="rtl"){let a=n[0].left+n[0].width-t.left-t.width;a<this.transformX?i=a:a+t.width>this.transformX+this.wrapperWidth&&(i=a+t.width-this.wrapperWidth)}else t.left<-this.transformX?i=-t.left:t.left+t.width>-this.transformX+this.wrapperWidth&&(i=-(t.left+t.width-this.wrapperWidth));this.transformX=i,this.transformY=0,this.setTransform(i,0)}else{let i=this.transformY;t.top<-this.transformY?i=-t.top:t.top+t.height>-this.transformY+this.wrapperHeight&&(i=-(t.top+t.height-this.wrapperHeight)),this.transformY=i,this.transformX=0,this.setTransform(0,i)}clearTimeout(this.cssTransformTimeWaitingId),this.cssTransformTimeWaitingId=setTimeout(()=>{this.setVisibleRange()},xe)}lockAnimation(){this.lockAnimationTimeoutId||this.ngZone.runOutsideAngular(()=>{this.navListRef.nativeElement.style.transition="none",this.lockAnimationTimeoutId=setTimeout(()=>{this.navListRef.nativeElement.style.transition="",this.lockAnimationTimeoutId=void 0},xe)})}setTransform(t,n){this.navListRef.nativeElement.style.transform=`translate(${t}px, ${n}px)`}clampTransformX(t){let n=this.wrapperWidth-this.scrollListWidth;return this.getLayoutDirection()==="rtl"?Math.max(Math.min(n,t),0):Math.min(Math.max(n,t),0)}clampTransformY(t){return Math.min(Math.max(this.wrapperHeight-this.scrollListHeight,t),0)}updateScrollListPosition(){this.resetSizes(),this.transformX=this.clampTransformX(this.transformX),this.transformY=this.clampTransformY(this.transformY),this.setVisibleRange(),this.setPingStatus(),this.keyManager&&(this.keyManager.updateActiveItem(this.keyManager.activeItemIndex),this.keyManager.activeItem&&this.scrollToTab(this.keyManager.activeItem))}resetSizes(){this.addButtonWidth=this.addBtnRef?this.addBtnRef.getElementWidth():0,this.addButtonHeight=this.addBtnRef?this.addBtnRef.getElementHeight():0,this.operationWidth=this.operationRef.getElementWidth(),this.operationHeight=this.operationRef.getElementHeight(),this.wrapperWidth=this.navWrapRef.nativeElement.offsetWidth||0,this.wrapperHeight=this.navWrapRef.nativeElement.offsetHeight||0,this.scrollListHeight=this.navListRef.nativeElement.offsetHeight||0,this.scrollListWidth=this.navListRef.nativeElement.offsetWidth||0}alignInkBarToSelectedTab(){let t=this.items&&this.items.length?this.items.toArray()[this.selectedIndex]:null,n=t?t.elementRef.nativeElement:null;n&&this.inkBar.alignToElement(n.parentElement)}setPingStatus(){let t={top:!1,right:!1,bottom:!1,left:!1},n=this.navWrapRef.nativeElement;this.position==="horizontal"?this.getLayoutDirection()==="rtl"?(t.right=this.transformX>0,t.left=this.transformX+this.wrapperWidth<this.scrollListWidth):(t.left=this.transformX<0,t.right=-this.transformX+this.wrapperWidth<this.scrollListWidth):(t.top=this.transformY<0,t.bottom=-this.transformY+this.wrapperHeight<this.scrollListHeight),Object.keys(t).forEach(i=>{let a=`ant-tabs-nav-wrap-ping-${i}`;t[i]?n.classList.add(a):n.classList.remove(a)})}setVisibleRange(){let t,n,i,a,l,p,b=this.items.toArray(),w={width:0,height:0,left:0,top:0,right:0},E=m=>{let D,zt=b[m]||w;return n==="right"?D=b[0].left+b[0].width-b[m].left-b[m].width:D=zt[n],D};this.position==="horizontal"?(t="width",a=this.wrapperWidth,l=this.scrollListWidth-(this.hiddenItems.length?this.operationWidth:0),p=this.addButtonWidth,i=Math.abs(this.transformX),this.getLayoutDirection()==="rtl"?(n="right",this.pingRight=this.transformX>0,this.pingLeft=this.transformX+this.wrapperWidth<this.scrollListWidth):(this.pingLeft=this.transformX<0,this.pingRight=-this.transformX+this.wrapperWidth<this.scrollListWidth,n="left")):(t="height",a=this.wrapperHeight,l=this.scrollListHeight-(this.hiddenItems.length?this.operationHeight:0),p=this.addButtonHeight,n="top",i=-this.transformY,this.pingTop=this.transformY<0,this.pingBottom=-this.transformY+this.wrapperHeight<this.scrollListHeight);let $=a;if(l+p>a&&($=a-p),!b.length){this.hiddenItems=[],this.cdr.markForCheck();return}let v=b.length,Mt=v;for(let m=0;m<v;m+=1){let D=E(m),zt=b[m]||w;if(D+zt[t]>i+$){Mt=m-1;break}}let s=0;for(let m=v-1;m>=0;m-=1)if(E(m)<i){s=m+1;break}let o=b.slice(0,s),r=b.slice(Mt+1);this.hiddenItems=[...o,...r],this.cdr.markForCheck()}getLayoutDirection(){return this.dir&&this.dir.value==="rtl"?"rtl":"ltr"}ngOnChanges(t){let{position:n}=t;n&&!n.isFirstChange()&&(this.alignInkBarToSelectedTab(),this.lockAnimation(),this.updateScrollListPosition())}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=O({type:e,selectors:[["nz-tabs-nav"]],contentQueries:function(n,i,a){if(n&1&&H(a,we,5),n&2){let l;x(l=I())&&(i.items=l)}},viewQuery:function(n,i){if(n&1&&(F(Xe,7),F(Ye,7),F(Rt,7),F(bt,5),F(ye,7)),n&2){let a;x(a=I())&&(i.navWrapRef=a.first),x(a=I())&&(i.navListRef=a.first),x(a=I())&&(i.operationRef=a.first),x(a=I())&&(i.addBtnRef=a.first),x(a=I())&&(i.inkBar=a.first)}},hostAttrs:[1,"ant-tabs-nav"],hostBindings:function(n,i){n&1&&A("keydown",function(l){return i.handleKeydown(l)})},inputs:{position:"position",addable:[2,"addable","addable",y],hideBar:[2,"hideBar","hideBar",y],addIcon:"addIcon",inkBarAnimated:"inkBarAnimated",extraTemplate:"extraTemplate",extraContents:[1,"extraContents"],selectedIndex:"selectedIndex"},outputs:{indexFocused:"indexFocused",selectFocusedIndex:"selectFocusedIndex",addClicked:"addClicked",tabScroll:"tabScroll"},exportAs:["nzTabsNav"],features:[vt],ngContentSelectors:qe,decls:11,vars:17,consts:[["navWrap",""],["navList",""],[1,"ant-tabs-extra-content"],[1,"ant-tabs-nav-wrap"],["nzTabScrollList","","role","tablist",1,"ant-tabs-nav-list",3,"offsetChange","tabScroll"],["role","tab","nz-tab-add-button","",3,"addIcon"],["nz-tabs-ink-bar","",3,"hidden","position","animated"],[3,"addClicked","selected","addIcon","addable","items"],[3,"ngTemplateOutlet"],["role","tab","nz-tab-add-button","",3,"click","addIcon"]],template:function(n,i){if(n&1){let a=B();yt(),N(0,je,2,1,"div",2),g(1,"div",3,0)(3,"div",4,1),A("offsetChange",function(p){return _(a),T(i.onOffsetChange(p))})("tabScroll",function(p){return _(a),T(i.tabScroll.emit(p))}),rt(5),N(6,Ze,1,2,"button",5),V(7,"div",6),C()(),g(8,"nz-tab-nav-operation",7),A("addClicked",function(){return _(a),T(i.addClicked.emit())})("selected",function(p){return _(a),T(i.onSelectedFromMenu(p))}),C(),N(9,Ke,2,1,"div",2)(10,tn,2,1,"div",2)}n&2&&(k(i.startExtraContent()?0:-1),f(),M("ant-tabs-nav-wrap-ping-left",i.pingLeft)("ant-tabs-nav-wrap-ping-right",i.pingRight)("ant-tabs-nav-wrap-ping-top",i.pingTop)("ant-tabs-nav-wrap-ping-bottom",i.pingBottom),f(5),k(i.showAddButton?6:-1),f(),u("hidden",i.hideBar)("position",i.position)("animated",i.inkBarAnimated),f(),u("addIcon",i.addIcon)("addable",i.addable)("items",i.hiddenItems),f(),k(i.endExtraContent()?9:i.extraTemplate?10:-1))},dependencies:[Sn,bt,ye,Rt,ht],encapsulation:2,changeDetection:0})}return e})(),Nn=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275dir=W({type:e,selectors:[["","nz-tab",""]],exportAs:["nzTab"]})}return e})(),Ne=new Xt(""),kn=(()=>{class e{nzTitle="";nzClosable=!1;nzCloseIcon="close";nzDisabled=!1;nzForceRender=!1;nzSelect=new z;nzDeselect=new z;nzClick=new z;nzContextmenu=new z;nzTabLinkTemplateDirective;template=null;linkDirective;contentTemplate;isActive=!1;hasBeenActive=!1;position=null;origin=null;closestTabSet=h(Ne);stateChanges=new Lt;get content(){return this.template||this.contentTemplate}get label(){return this.nzTitle||this.nzTabLinkTemplateDirective?.templateRef}ngOnChanges(t){let{nzTitle:n,nzDisabled:i,nzForceRender:a}=t;(n||i||a)&&this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete()}setActive(t){this.isActive=t,t&&(this.hasBeenActive=!0)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=O({type:e,selectors:[["nz-tab"]],contentQueries:function(n,i,a){if(n&1&&(H(a,xn,5),H(a,Nn,5,it),H(a,Se,5)),n&2){let l;x(l=I())&&(i.nzTabLinkTemplateDirective=l.first),x(l=I())&&(i.template=l.first),x(l=I())&&(i.linkDirective=l.first)}},viewQuery:function(n,i){if(n&1&&F(en,7),n&2){let a;x(a=I())&&(i.contentTemplate=a.first)}},inputs:{nzTitle:"nzTitle",nzClosable:[2,"nzClosable","nzClosable",y],nzCloseIcon:"nzCloseIcon",nzDisabled:[2,"nzDisabled","nzDisabled",y],nzForceRender:[2,"nzForceRender","nzForceRender",y]},outputs:{nzSelect:"nzSelect",nzDeselect:"nzDeselect",nzClick:"nzClick",nzContextmenu:"nzContextmenu"},exportAs:["nzTab"],features:[vt],ngContentSelectors:an,decls:4,vars:0,consts:[["tabLinkTemplate",""],["contentTemplate",""]],template:function(n,i){n&1&&(yt(nn),Gt(0,on,1,0,"ng-template",null,0,dt)(2,sn,1,0,"ng-template",null,1,dt))},encapsulation:2,changeDetection:0})}return e})(),Dn="tabs",An=0,En=(()=>{var v;let e,d=[],t=[],n,i=[],a=[],l,p=[],b=[],w,E=[],$=[];return v=class{_nzModuleName=Dn;nzConfigService=h(de);ngZone=h(Y);cdr=h(ct);directionality=h(kt);destroyRef=h(et);get nzSelectedIndex(){return this.selectedIndex}set nzSelectedIndex(s){this.indexToSelect=Dt(s,null)}nzTabPosition="top";nzTabBarExtraContent;nzCanDeactivate=null;nzAddIcon="plus";nzTabBarStyle=null;nzType=R(this,d,"line");nzSize=(R(this,t),R(this,i,"default"));nzAnimated=(R(this,a),R(this,p,!0));nzTabBarGutter=(R(this,b),R(this,E,void 0));nzHideAdd=(R(this,$),!1);nzCentered=!1;nzHideAll=!1;nzLinkRouter=!1;nzLinkExact=!0;nzDestroyInactiveTabPane=!1;nzSelectChange=new z(!0);nzSelectedIndexChange=new z;nzTabListScroll=new z;nzClose=new z;nzAdd=new z;get position(){return["top","bottom"].indexOf(this.nzTabPosition)===-1?"vertical":"horizontal"}get addable(){return this.nzType==="editable-card"&&!this.nzHideAdd}get closable(){return this.nzType==="editable-card"}get line(){return this.nzType==="line"}get inkBarAnimated(){return this.line&&(typeof this.nzAnimated=="boolean"?this.nzAnimated:this.nzAnimated.inkBar)}get tabPaneAnimated(){return typeof this.nzAnimated=="boolean"?this.nzAnimated:this.nzAnimated.tabPane}allTabs=new nt;tabLinks=new nt;tabNavBarRef;tabs=new nt;extraContents=ee(ge);dir="ltr";tabSetId;indexToSelect=0;selectedIndex=null;tabLabelSubscription=Tt.EMPTY;canDeactivateSubscription=Tt.EMPTY;router=h(ie,{optional:!0});constructor(){this.tabSetId=An++,h(te)==="nz-tabset"&&re(`${At} <nz-tabset> is deprecated, please use <nz-tabs> instead.`),this.destroyRef.onDestroy(()=>{this.tabs.destroy(),this.tabLabelSubscription.unsubscribe(),this.canDeactivateSubscription.unsubscribe()})}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe(L(this.destroyRef)).subscribe(s=>{this.dir=s,this.cdr.detectChanges()})}ngAfterContentInit(){this.ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>this.setUpRouter())}),this.subscribeToTabLabels(),this.subscribeToAllTabChanges(),this.tabs.changes.pipe(L(this.destroyRef)).subscribe(()=>{if(this.clampTabIndex(this.indexToSelect)===this.selectedIndex){let o=this.tabs.toArray();for(let r=0;r<o.length;r++)if(o[r].isActive){this.indexToSelect=this.selectedIndex=r;break}}this.subscribeToTabLabels(),this.cdr.markForCheck()})}ngAfterContentChecked(){let s=this.indexToSelect=this.clampTabIndex(this.indexToSelect);if(this.selectedIndex!==s){let o=this.selectedIndex==null;o||this.nzSelectChange.emit(this.createChangeEvent(s)),Promise.resolve().then(()=>{this.tabs.forEach((r,m)=>r.setActive(m===s)),o||this.nzSelectedIndexChange.emit(s)})}this.tabs.forEach((o,r)=>{o.position=r-s,this.selectedIndex!=null&&o.position===0&&!o.origin&&(o.origin=s-this.selectedIndex)}),this.selectedIndex!==s&&(this.selectedIndex=s,this.cdr.markForCheck())}onClose(s,o){o.preventDefault(),o.stopPropagation(),this.nzClose.emit({index:s})}onAdd(){this.nzAdd.emit()}clampTabIndex(s){return Math.min(this.tabs.length-1,Math.max(s||0,0))}createChangeEvent(s){let o=new Et;return o.index=s,this.tabs&&this.tabs.length&&(o.tab=this.tabs.toArray()[s],this.tabs.forEach((r,m)=>{m!==s&&r.nzDeselect.emit()}),o.tab.nzSelect.emit()),o}subscribeToTabLabels(){this.tabLabelSubscription&&this.tabLabelSubscription.unsubscribe(),this.tabLabelSubscription=X(...this.tabs.map(s=>s.stateChanges)).subscribe(()=>this.cdr.markForCheck())}subscribeToAllTabChanges(){this.allTabs.changes.pipe(Ct(this.allTabs)).subscribe(s=>{this.tabs.reset(s.filter(o=>o.closestTabSet===this)),this.tabs.notifyOnChanges()})}canDeactivateFun(s,o){return typeof this.nzCanDeactivate=="function"?le(this.nzCanDeactivate(s,o)).pipe(Vt(),L(this.destroyRef)):gt(!0)}clickNavItem(s,o,r){s.nzDisabled||(s.nzClick.emit(),this.isRouterLinkClickEvent(o,r)||this.setSelectedIndex(o))}isRouterLinkClickEvent(s,o){let r=o.target;return this.nzLinkRouter?!!this.tabs.toArray()[s]?.linkDirective?.elementRef.nativeElement.contains(r):!1}contextmenuNavItem(s,o){s.nzDisabled||s.nzContextmenu.emit(o)}setSelectedIndex(s){this.canDeactivateSubscription.unsubscribe(),this.canDeactivateSubscription=this.canDeactivateFun(this.selectedIndex,s).subscribe(o=>{o&&(this.nzSelectedIndex=s,this.tabNavBarRef.focusIndex=s,this.cdr.markForCheck())})}getTabIndex(s,o){return s.nzDisabled?null:this.selectedIndex===o?0:-1}getTabContentId(s){return`nz-tabs-${this.tabSetId}-tab-${s}`}setUpRouter(){if(this.nzLinkRouter){if(!this.router)throw new Error(`${At} you should import 'RouterModule' if you want to use 'nzLinkRouter'!`);X(this.router.events.pipe(Ft(s=>s instanceof ne)),this.tabLinks.changes).pipe(Ct(!0),Ht(0),L(this.destroyRef)).subscribe(()=>{this.updateRouterActive(),this.cdr.markForCheck()})}}updateRouterActive(){if(this.router?.navigated){let s=this.findShouldActiveTabIndex();s!==this.selectedIndex&&this.setSelectedIndex(s),Promise.resolve().then(()=>this.nzHideAll=s===-1)}}findShouldActiveTabIndex(){let s=this.tabs.toArray(),o=this.isLinkActive(this.router);return s.findIndex(r=>{let m=r.linkDirective;return m?o(m.routerLink):!1})}isLinkActive(s){return o=>o?!!s?.isActive(o.urlTree||"",{paths:this.nzLinkExact?"exact":"subset",queryParams:this.nzLinkExact?"exact":"subset",fragment:"ignored",matrixParams:"ignored"}):!1}},(()=>{let s=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;e=[K()],n=[K()],l=[K()],w=[K()],Q(null,null,e,{kind:"field",name:"nzType",static:!1,private:!1,access:{has:o=>"nzType"in o,get:o=>o.nzType,set:(o,r)=>{o.nzType=r}},metadata:s},d,t),Q(null,null,n,{kind:"field",name:"nzSize",static:!1,private:!1,access:{has:o=>"nzSize"in o,get:o=>o.nzSize,set:(o,r)=>{o.nzSize=r}},metadata:s},i,a),Q(null,null,l,{kind:"field",name:"nzAnimated",static:!1,private:!1,access:{has:o=>"nzAnimated"in o,get:o=>o.nzAnimated,set:(o,r)=>{o.nzAnimated=r}},metadata:s},p,b),Q(null,null,w,{kind:"field",name:"nzTabBarGutter",static:!1,private:!1,access:{has:o=>"nzTabBarGutter"in o,get:o=>o.nzTabBarGutter,set:(o,r)=>{o.nzTabBarGutter=r}},metadata:s},E,$),s&&Object.defineProperty(v,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:s})})(),_t(v,"\u0275fac",function(o){return new(o||v)}),_t(v,"\u0275cmp",O({type:v,selectors:[["nz-tabs"],["nz-tabset"]],contentQueries:function(o,r,m){if(o&1&&(Zt(m,r.extraContents,ge,4),H(m,kn,5),H(m,Se,5)),o&2){Ut();let D;x(D=I())&&(r.allTabs=D),x(D=I())&&(r.tabLinks=D)}},viewQuery:function(o,r){if(o&1&&F(Bt,5),o&2){let m;x(m=I())&&(r.tabNavBarRef=m.first)}},hostAttrs:[1,"ant-tabs"],hostVars:24,hostBindings:function(o,r){o&2&&M("ant-tabs-card",r.nzType==="card"||r.nzType==="editable-card")("ant-tabs-editable",r.nzType==="editable-card")("ant-tabs-editable-card",r.nzType==="editable-card")("ant-tabs-centered",r.nzCentered)("ant-tabs-rtl",r.dir==="rtl")("ant-tabs-top",r.nzTabPosition==="top")("ant-tabs-bottom",r.nzTabPosition==="bottom")("ant-tabs-left",r.nzTabPosition==="left")("ant-tabs-right",r.nzTabPosition==="right")("ant-tabs-default",r.nzSize==="default")("ant-tabs-small",r.nzSize==="small")("ant-tabs-large",r.nzSize==="large")},inputs:{nzSelectedIndex:"nzSelectedIndex",nzTabPosition:"nzTabPosition",nzTabBarExtraContent:"nzTabBarExtraContent",nzCanDeactivate:"nzCanDeactivate",nzAddIcon:"nzAddIcon",nzTabBarStyle:"nzTabBarStyle",nzType:"nzType",nzSize:"nzSize",nzAnimated:"nzAnimated",nzTabBarGutter:"nzTabBarGutter",nzHideAdd:[2,"nzHideAdd","nzHideAdd",y],nzCentered:[2,"nzCentered","nzCentered",y],nzHideAll:[2,"nzHideAll","nzHideAll",y],nzLinkRouter:[2,"nzLinkRouter","nzLinkRouter",y],nzLinkExact:[2,"nzLinkExact","nzLinkExact",y],nzDestroyInactiveTabPane:[2,"nzDestroyInactiveTabPane","nzDestroyInactiveTabPane",y]},outputs:{nzSelectChange:"nzSelectChange",nzSelectedIndexChange:"nzSelectedIndexChange",nzTabListScroll:"nzTabListScroll",nzClose:"nzClose",nzAdd:"nzAdd"},exportAs:["nzTabs"],features:[Jt([{provide:Ne,useExisting:$t(()=>v)}])],decls:4,vars:12,consts:[["tabpaneTmpl",""],[3,"style","selectedIndex","inkBarAnimated","addable","addIcon","hideBar","position","extraTemplate","extraContents"],[1,"ant-tabs-content-holder"],[1,"ant-tabs-content"],[3,"tabScroll","selectFocusedIndex","addClicked","selectedIndex","inkBarAnimated","addable","addIcon","hideBar","position","extraTemplate","extraContents"],[1,"ant-tabs-tab",3,"margin-right","margin-bottom","ant-tabs-tab-active","ant-tabs-tab-disabled"],[1,"ant-tabs-tab",3,"click","contextmenu"],["type","button","role","tab","nzTabNavItem","","cdkMonitorElementFocus","",1,"ant-tabs-tab-btn",3,"id","disabled","tab","active"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["type","button","nz-tab-close-button","",3,"closeIcon"],["type","button","nz-tab-close-button","",3,"click","closeIcon"],[3,"ngTemplateOutlet"],["role","tabpanel","nz-tab-body","",3,"id","active","content","animated"]],template:function(o,r){o&1&&(N(0,hn,3,10,"nz-tabs-nav",1),g(1,"div",2)(2,"div",3),N(3,vn,2,0),C()()),o&2&&(k(r.tabs.length||r.addable?0:-1),f(2),M("ant-tabs-content-top",r.nzTabPosition==="top")("ant-tabs-content-bottom",r.nzTabPosition==="bottom")("ant-tabs-content-left",r.nzTabPosition==="left")("ant-tabs-content-right",r.nzTabPosition==="right")("ant-tabs-content-animated",r.tabPaneAnimated),f(),k(r.nzHideAll?-1:3))},dependencies:[Bt,ht,we,he,ce,tt,J,Ie,yn],encapsulation:2})),v})();var bi=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=qt({type:e});static \u0275inj=Qt({imports:[En,Bt,Rt,bt,Ie]})}return e})();export{Nn as a,kn as b,En as c,bi as d};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import{$ as ca,A as aa,Ea as Ia,Fa as Na,G as fa,Ga as ha,H as la,Ha as pa,kb as ga,r as _a,ra as Ea,sa as da,sb as Aa}from"./chunk-VZYJ3MSW.js";import{e as ua}from"./chunk-WUA5JFDD.js";import{v as oa,w as sa}from"./chunk-KRYMOHYF.js";import{$b as j_,B as y_,Ba as H_,Da as K_,Fb as Vo,Fc as ra,Gc as na,Ha as Lr,Hb as Wo,Hc as ta,Ic as $o,Jb as Ho,Lb as z_,M as b_,Pa as Bo,S as G_,Wb as J_,Yb as q_,_b as Y_,_c as ia,a as dn,ac as Q_,b as U_,bc as qn,cc as Yn,d as Ie,dc as Jt,e as w_,ec as Xr,ha as M_,ic as k_,id as ce,jb as X_,jc as Z_,l as zt,lc as ea,na as le,nb as In,ra as B_,rc as Ko,sa as J,sb as $_,t as x_,uc as Xo,ud as zo,ya as V_,z as Mo,za as W_}from"./chunk-4BRW6LCZ.js";var Fr=Ie(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.AppError=void 0;var Yo=class extends Error{constructor(a,E,A){super(E),this.meta=A,this.name="AppError",this.code=a,this.source="@yinuo-ngm/errors",this.timestamp=Date.now(),Object.setPrototypeOf(this,new.target.prototype)}toJSON(){return{name:this.name,code:this.code,message:this.message,source:this.source,timestamp:this.timestamp,meta:this.meta}}};Yt.AppError=Yo});var Qt=Ie(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.GlobalErrorCodes=void 0;jt.GlobalErrorCodes={UNKNOWN_ERROR:10001,INTERNAL_ERROR:10002,BAD_REQUEST:10003,NOT_FOUND:10004,NOT_IMPLEMENTED:10005,STORAGE_IO_ERROR:10101,FS_PATH_NOT_FOUND:10102,FS_PERMISSION_DENIED:10103,FS_ALREADY_EXISTS:10104,FS_INVALID_NAME:10105,FS_MKDIR_FAILED:10106,BAD_JSON:10301,BAD_MSG:10302,OP_NOT_SUPPORTED:10303,TOPIC_NOT_FOUND:10304,HANDLER_FAILED:10305,OP_NOT_FOUND:10306,UNAUTHORIZED:10401,INVALID_TIMESTAMP:10402}});var Zt=Ie(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.CoreErrorCodes=void 0;kt.CoreErrorCodes={PROJECT_NOT_FOUND:22001,PROJECT_ROOT_INVALID:22002,PROJECT_ALREADY_EXISTS:22003,PROJECT_ID_REQUIRED:22004,PROJECT_IMPORT_NOT_EXISTS:22101,PROJECT_IMPORT_NOT_DIR:22102,PROJECT_IMPORT_ALREADY_REGISTERED:22103,PROJECT_IMPORT_NOT_RECOGNIZED:22104,PROJECT_IMPORT_SCAN_FAILED:22105,BOOTSTRAP_NOT_IN_PICK_STATE:22106,BOOTSTRAP_CTX_NOT_FOUND:22107,BOOTSTRAP_INVALID_PICKED_ROOT:22108,BOOTSTRAP_NOT_WAITING_PICK:22109,INVALID_NAME:22201,TARGET_EXISTS:22202,INVALID_REPO_URL:22203,INVALID_PARENT_DIR:22204,GIT_CHECKOUT_FAILED:22205,PROJECT_ANGULAR_JSON_INVALID:22301,PROJECT_ANGULAR_JSON_NOT_FOUND:22302,PROJECT_VITE_CONFIG_INVALID:22303,PROJECT_VUE_CONFIG_NOT_FOUND:22304,ASSET_NOT_FOUND:22401,ASSET_KIND_NOT_SUPPORTED:22402,ASSET_URL_REQUIRED:22403,ASSET_LABEL_REQUIRED:22404,ASSET_URL_INVALID:22405,ASSET_MODE_INVALID:22406,CONFIG_BACKUP_NOT_FOUND:40001,CONFIG_READ_FAILED:40002,CONFIG_WRITE_FAILED:40003,CONFIG_CONFLICT:40004,CONFIG_OPEN_FAILED:40005,CONFIG_SCHEMA_NOT_FOUND:40006,CONFIG_DOMAIN_NOT_FOUND:40007,CONFIG_DOC_NOT_FOUND:40008,CONFIG_PROVIDER_NOT_FOUND:40009,CONFIG_FILE_OUT_OF_PROJECT:40010,CONFIG_PATCH_INVALID:40011,CONFIG_UNSUPPORTED_WRITE:40012,CONFIG_UNSUPPORTED_PREVIEW:40013,CONFIG_PROVIDER_ALREADY_EXISTS:40014,TASK_NOT_FOUND:32001,RUN_NOT_FOUND:32002,TASK_ID_REQUIRED:32003,TASK_ALREADY_RUNNING:32004,PROCESS_SPAWN_FAILED:32005,TASK_SPEC_NOT_FOUND:32006,TASK_NOT_RUNNABLE:32007,COMMAND_NOT_FOUND:32008,FS_EXISTS_FAILED:50001,FS_INVALID_NAME:50002,FS_ALREADY_EXISTS:50003,FS_PERMISSION_DENIED:50004,FS_MKDIR_FAILED:50005,FS_PATH_NOT_FOUND:50006,DASHBOARD_CONFLICT:60001,WIDGET_NOT_FOUND:60002,WIDGET_LOCKED:60003,SPRITE_CONFIG_NOT_FOUND:70001,SPRITE_GROUP_NOT_FOUND:70002,SPRITE_ICONS_ROOT_NOT_FOUND:70003,SPRITE_ICONS_ROOT_REQUIRED:70004,SPRITE_OUT_DIR_REQUIRED:70005,SPRITE_URL_TEMPLATE_REQUIRED:70006,SPRITE_GROUP_EMPTY:70007,SPRITE_GROUP_MIXED:70008,SPRITE_GROUP_INVALID_TYPE:70009,SVN_SYNC_ALREADY_RUNNING:80001,SVN_SYNC_FAILED:80002,SVN_SOURCE_ID_REQUIRED:80003,DEP_INSTALL_FAILED:90001,DEP_UNINSTALL_FAILED:90002,DEP_NOT_FOUND:90003,NO_VERSION_MANAGER:100001,SWITCH_VERSION_FAILED:100002,NO_AVAILABLE_VERSIONS:100003,VERSION_REQUIRED:100004,PROJECT_PATH_REQUIRED:100005,EDITOR_NOT_FOUND:110001,EDITOR_LAUNCH_FAILED:110002,RSS_FETCH_FAILED:120001,INVALID_RSS_URL:120002,KILL_PORT_FAILED:120003,INVALID_PORT:120004}});var ri=Ie(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});ei.NginxErrorCodes=void 0;ei.NginxErrorCodes={NGINX_NOT_BOUND:20001,NGINX_ALREADY_RUNNING:20002,NGINX_NOT_RUNNING:20003,NGINX_START_FAILED:20004,NGINX_STOP_FAILED:20005,NGINX_RELOAD_FAILED:20006,NGINX_TEST_FAILED:20007,NGINX_CONFIG_READ_FAILED:20101,NGINX_CONFIG_WRITE_FAILED:20102,NGINX_CONFIG_INVALID:20103,NGINX_CONFIG_NOT_MANAGEABLE:20104,NGINX_SERVER_NOT_FOUND:20201,NGINX_SERVER_ALREADY_EXISTS:20202,NGINX_SERVER_PORT_CONFLICT:20203,NGINX_SERVER_NAME_CONFLICT:20204,NGINX_SERVER_FILE_INVALID:20205,NGINX_SERVER_DELETE_BLOCKED:20206,NGINX_SERVER_IMPORT_FAILED:20207,NGINX_SSL_CERT_NOT_FOUND:20301,NGINX_SSL_KEY_NOT_FOUND:20302,NGINX_SSL_CERT_INVALID:20303,NGINX_UPSTREAM_NOT_FOUND:20401,NGINX_UPSTREAM_ALREADY_EXISTS:20402,NGINX_UPSTREAM_NODE_INVALID:20403}});var ti=Ie(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.ApiErrorCodes=void 0;ni.ApiErrorCodes={API_REQUEST_NOT_FOUND:21001,API_REQUEST_SAVE_FAILED:21002,API_COLLECTION_NOT_FOUND:21003,API_COLLECTION_ALREADY_EXISTS:21004,API_ENV_NOT_FOUND:21005,API_SEND_FAILED:21006,API_TIMEOUT:21007,API_INVALID_URL:21008,API_HUB_TOKEN_INVALID:21009,API_HUB_TOKEN_REQUIRED:21010,API_HISTORY_NOT_FOUND:21011,API_PROJECT_ID_REQUIRED:21012,API_REQUEST_ID_REQUIRED:21013,API_COLLECTION_NOT_EMPTY:21014}});var oi=Ie(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.AisErrorCodes=void 0;ii.AisErrorCodes={AIS_BIT_BUFFER_OVERFLOW:25001,AIS_BIT_BUFFER_UNDERFLOW:25002,AIS_INVALID_SIXBIT_CHAR:25003,AIS_ENCODE_FAILED:25004,AIS_DECODE_FAILED:25005,AIS_TEXT_ENCODE_FAILED:25006,AIS_TEXT_DECODE_FAILED:25007,AIS_INVALID_LATLNG:25008,AIS_INVALID_NMEA_SENTENCE:25009,AIS_TRANSPORT_INVALID:25010,AIS_SCHEMA_ENCODE_FAILED:25011,AIS_FIELD_CONSTRAINT_VIOLATED:25012,AIS_CHANNEL_REQUIRED:25013,AIS_CHANNEL_INVALID:25014,AIS_MSG_TYPE_NOT_SUPPORTED:25015,AIS_DAC_INVALID:25016,AIS_FI_INVALID:25017,AIS_APP_DATA_TOO_LONG:25018}});var ui=Ie(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.RuntimeErrorCodes=void 0;si.RuntimeErrorCodes={RUNTIME_LOCK_FAILED:31001,RUNTIME_SERVER_NOT_STARTED:31002,RUNTIME_HEALTH_CHECK_FAILED:31003,RUNTIME_SHUTDOWN_FAILED:31004}});var Oa=Ie(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.httpStatusMap=void 0;Nn.getHttpStatus=kN;var oe=Qt(),O=Zt(),Y=ri(),Ye=ti(),_e=oi(),_i=ui();Nn.httpStatusMap={[oe.GlobalErrorCodes.UNKNOWN_ERROR]:500,[oe.GlobalErrorCodes.INTERNAL_ERROR]:500,[oe.GlobalErrorCodes.BAD_REQUEST]:400,[oe.GlobalErrorCodes.NOT_FOUND]:404,[oe.GlobalErrorCodes.NOT_IMPLEMENTED]:501,[oe.GlobalErrorCodes.STORAGE_IO_ERROR]:500,[oe.GlobalErrorCodes.FS_PATH_NOT_FOUND]:404,[oe.GlobalErrorCodes.FS_PERMISSION_DENIED]:403,[oe.GlobalErrorCodes.FS_ALREADY_EXISTS]:409,[oe.GlobalErrorCodes.FS_INVALID_NAME]:400,[oe.GlobalErrorCodes.FS_MKDIR_FAILED]:500,[oe.GlobalErrorCodes.BAD_JSON]:400,[oe.GlobalErrorCodes.BAD_MSG]:400,[oe.GlobalErrorCodes.OP_NOT_SUPPORTED]:400,[oe.GlobalErrorCodes.TOPIC_NOT_FOUND]:404,[oe.GlobalErrorCodes.HANDLER_FAILED]:500,[oe.GlobalErrorCodes.OP_NOT_FOUND]:400,[oe.GlobalErrorCodes.UNAUTHORIZED]:401,[oe.GlobalErrorCodes.INVALID_TIMESTAMP]:400,[Y.NginxErrorCodes.NGINX_NOT_BOUND]:400,[Y.NginxErrorCodes.NGINX_ALREADY_RUNNING]:409,[Y.NginxErrorCodes.NGINX_NOT_RUNNING]:400,[Y.NginxErrorCodes.NGINX_START_FAILED]:500,[Y.NginxErrorCodes.NGINX_STOP_FAILED]:500,[Y.NginxErrorCodes.NGINX_RELOAD_FAILED]:500,[Y.NginxErrorCodes.NGINX_TEST_FAILED]:400,[Y.NginxErrorCodes.NGINX_CONFIG_READ_FAILED]:500,[Y.NginxErrorCodes.NGINX_CONFIG_WRITE_FAILED]:500,[Y.NginxErrorCodes.NGINX_CONFIG_INVALID]:400,[Y.NginxErrorCodes.NGINX_CONFIG_NOT_MANAGEABLE]:403,[Y.NginxErrorCodes.NGINX_SERVER_NOT_FOUND]:404,[Y.NginxErrorCodes.NGINX_SERVER_ALREADY_EXISTS]:409,[Y.NginxErrorCodes.NGINX_SERVER_PORT_CONFLICT]:409,[Y.NginxErrorCodes.NGINX_SERVER_NAME_CONFLICT]:409,[Y.NginxErrorCodes.NGINX_SERVER_FILE_INVALID]:400,[Y.NginxErrorCodes.NGINX_SERVER_DELETE_BLOCKED]:409,[Y.NginxErrorCodes.NGINX_SERVER_IMPORT_FAILED]:400,[Y.NginxErrorCodes.NGINX_SSL_CERT_NOT_FOUND]:400,[Y.NginxErrorCodes.NGINX_SSL_KEY_NOT_FOUND]:400,[Y.NginxErrorCodes.NGINX_SSL_CERT_INVALID]:400,[Y.NginxErrorCodes.NGINX_UPSTREAM_NOT_FOUND]:404,[Y.NginxErrorCodes.NGINX_UPSTREAM_ALREADY_EXISTS]:409,[Y.NginxErrorCodes.NGINX_UPSTREAM_NODE_INVALID]:400,[O.CoreErrorCodes.PROJECT_NOT_FOUND]:404,[O.CoreErrorCodes.PROJECT_ROOT_INVALID]:400,[O.CoreErrorCodes.PROJECT_ALREADY_EXISTS]:409,[O.CoreErrorCodes.PROJECT_ID_REQUIRED]:400,[O.CoreErrorCodes.PROJECT_IMPORT_NOT_EXISTS]:404,[O.CoreErrorCodes.PROJECT_IMPORT_NOT_DIR]:400,[O.CoreErrorCodes.PROJECT_IMPORT_ALREADY_REGISTERED]:409,[O.CoreErrorCodes.PROJECT_IMPORT_NOT_RECOGNIZED]:422,[O.CoreErrorCodes.PROJECT_IMPORT_SCAN_FAILED]:500,[O.CoreErrorCodes.BOOTSTRAP_NOT_IN_PICK_STATE]:400,[O.CoreErrorCodes.BOOTSTRAP_CTX_NOT_FOUND]:404,[O.CoreErrorCodes.BOOTSTRAP_INVALID_PICKED_ROOT]:400,[O.CoreErrorCodes.BOOTSTRAP_NOT_WAITING_PICK]:400,[O.CoreErrorCodes.INVALID_NAME]:400,[O.CoreErrorCodes.TARGET_EXISTS]:409,[O.CoreErrorCodes.INVALID_REPO_URL]:400,[O.CoreErrorCodes.INVALID_PARENT_DIR]:400,[O.CoreErrorCodes.GIT_CHECKOUT_FAILED]:500,[O.CoreErrorCodes.PROJECT_ANGULAR_JSON_INVALID]:400,[O.CoreErrorCodes.PROJECT_ANGULAR_JSON_NOT_FOUND]:404,[O.CoreErrorCodes.PROJECT_VITE_CONFIG_INVALID]:400,[O.CoreErrorCodes.PROJECT_VUE_CONFIG_NOT_FOUND]:404,[O.CoreErrorCodes.ASSET_NOT_FOUND]:404,[O.CoreErrorCodes.ASSET_KIND_NOT_SUPPORTED]:400,[O.CoreErrorCodes.ASSET_URL_REQUIRED]:400,[O.CoreErrorCodes.ASSET_LABEL_REQUIRED]:400,[O.CoreErrorCodes.ASSET_URL_INVALID]:400,[O.CoreErrorCodes.ASSET_MODE_INVALID]:400,[O.CoreErrorCodes.TASK_NOT_FOUND]:404,[O.CoreErrorCodes.RUN_NOT_FOUND]:404,[O.CoreErrorCodes.TASK_ID_REQUIRED]:400,[O.CoreErrorCodes.TASK_ALREADY_RUNNING]:409,[O.CoreErrorCodes.PROCESS_SPAWN_FAILED]:500,[O.CoreErrorCodes.TASK_SPEC_NOT_FOUND]:404,[O.CoreErrorCodes.TASK_NOT_RUNNABLE]:400,[O.CoreErrorCodes.COMMAND_NOT_FOUND]:404,[O.CoreErrorCodes.CONFIG_BACKUP_NOT_FOUND]:404,[O.CoreErrorCodes.CONFIG_READ_FAILED]:500,[O.CoreErrorCodes.CONFIG_WRITE_FAILED]:500,[O.CoreErrorCodes.CONFIG_CONFLICT]:409,[O.CoreErrorCodes.CONFIG_OPEN_FAILED]:500,[O.CoreErrorCodes.CONFIG_SCHEMA_NOT_FOUND]:404,[O.CoreErrorCodes.CONFIG_DOMAIN_NOT_FOUND]:404,[O.CoreErrorCodes.CONFIG_DOC_NOT_FOUND]:404,[O.CoreErrorCodes.CONFIG_PROVIDER_NOT_FOUND]:404,[O.CoreErrorCodes.CONFIG_FILE_OUT_OF_PROJECT]:400,[O.CoreErrorCodes.CONFIG_PATCH_INVALID]:400,[O.CoreErrorCodes.CONFIG_UNSUPPORTED_WRITE]:400,[O.CoreErrorCodes.CONFIG_UNSUPPORTED_PREVIEW]:400,[O.CoreErrorCodes.CONFIG_PROVIDER_ALREADY_EXISTS]:409,[O.CoreErrorCodes.FS_EXISTS_FAILED]:500,[O.CoreErrorCodes.DASHBOARD_CONFLICT]:409,[O.CoreErrorCodes.WIDGET_NOT_FOUND]:404,[O.CoreErrorCodes.WIDGET_LOCKED]:423,[O.CoreErrorCodes.SPRITE_CONFIG_NOT_FOUND]:404,[O.CoreErrorCodes.SPRITE_GROUP_NOT_FOUND]:404,[O.CoreErrorCodes.SPRITE_ICONS_ROOT_NOT_FOUND]:404,[O.CoreErrorCodes.SVN_SYNC_ALREADY_RUNNING]:409,[O.CoreErrorCodes.SVN_SYNC_FAILED]:500,[O.CoreErrorCodes.SVN_SOURCE_ID_REQUIRED]:400,[O.CoreErrorCodes.DEP_INSTALL_FAILED]:500,[O.CoreErrorCodes.DEP_UNINSTALL_FAILED]:500,[O.CoreErrorCodes.DEP_NOT_FOUND]:404,[O.CoreErrorCodes.NO_VERSION_MANAGER]:503,[O.CoreErrorCodes.SWITCH_VERSION_FAILED]:500,[O.CoreErrorCodes.NO_AVAILABLE_VERSIONS]:409,[O.CoreErrorCodes.VERSION_REQUIRED]:400,[O.CoreErrorCodes.PROJECT_PATH_REQUIRED]:400,[O.CoreErrorCodes.EDITOR_NOT_FOUND]:404,[O.CoreErrorCodes.EDITOR_LAUNCH_FAILED]:500,[O.CoreErrorCodes.RSS_FETCH_FAILED]:500,[O.CoreErrorCodes.INVALID_RSS_URL]:400,[O.CoreErrorCodes.KILL_PORT_FAILED]:500,[O.CoreErrorCodes.INVALID_PORT]:400,[Ye.ApiErrorCodes.API_REQUEST_NOT_FOUND]:404,[Ye.ApiErrorCodes.API_REQUEST_SAVE_FAILED]:500,[Ye.ApiErrorCodes.API_COLLECTION_NOT_FOUND]:404,[Ye.ApiErrorCodes.API_COLLECTION_ALREADY_EXISTS]:409,[Ye.ApiErrorCodes.API_ENV_NOT_FOUND]:404,[Ye.ApiErrorCodes.API_SEND_FAILED]:500,[Ye.ApiErrorCodes.API_TIMEOUT]:504,[Ye.ApiErrorCodes.API_INVALID_URL]:400,[Ye.ApiErrorCodes.API_HUB_TOKEN_INVALID]:401,[Ye.ApiErrorCodes.API_HUB_TOKEN_REQUIRED]:400,[Ye.ApiErrorCodes.API_HISTORY_NOT_FOUND]:404,[_e.AisErrorCodes.AIS_BIT_BUFFER_OVERFLOW]:400,[_e.AisErrorCodes.AIS_BIT_BUFFER_UNDERFLOW]:400,[_e.AisErrorCodes.AIS_INVALID_SIXBIT_CHAR]:400,[_e.AisErrorCodes.AIS_ENCODE_FAILED]:500,[_e.AisErrorCodes.AIS_DECODE_FAILED]:500,[_e.AisErrorCodes.AIS_TEXT_ENCODE_FAILED]:500,[_e.AisErrorCodes.AIS_TEXT_DECODE_FAILED]:500,[_e.AisErrorCodes.AIS_INVALID_LATLNG]:400,[_e.AisErrorCodes.AIS_INVALID_NMEA_SENTENCE]:400,[_e.AisErrorCodes.AIS_TRANSPORT_INVALID]:400,[_e.AisErrorCodes.AIS_SCHEMA_ENCODE_FAILED]:500,[_e.AisErrorCodes.AIS_FIELD_CONSTRAINT_VIOLATED]:400,[_e.AisErrorCodes.AIS_CHANNEL_REQUIRED]:400,[_e.AisErrorCodes.AIS_CHANNEL_INVALID]:400,[_e.AisErrorCodes.AIS_MSG_TYPE_NOT_SUPPORTED]:400,[_e.AisErrorCodes.AIS_DAC_INVALID]:400,[_e.AisErrorCodes.AIS_FI_INVALID]:400,[_e.AisErrorCodes.AIS_APP_DATA_TOO_LONG]:400,[_i.RuntimeErrorCodes.RUNTIME_LOCK_FAILED]:500,[_i.RuntimeErrorCodes.RUNTIME_SERVER_NOT_STARTED]:500,[_i.RuntimeErrorCodes.RUNTIME_HEALTH_CHECK_FAILED]:500,[_i.RuntimeErrorCodes.RUNTIME_SHUTDOWN_FAILED]:500};function kN(t){return Nn.httpStatusMap[t]??500}});var Ca=Ie(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.globalErrors=hn.GlobalError=void 0;var ZN=Fr(),tr=Qt(),Pe=class extends ZN.AppError{constructor(){super(...arguments),this.source="@yinuo-ngm/errors"}};hn.GlobalError=Pe;hn.globalErrors={unknown:t=>new Pe(tr.GlobalErrorCodes.UNKNOWN_ERROR,"\u672A\u77E5\u9519\u8BEF",t),internal:t=>new Pe(tr.GlobalErrorCodes.INTERNAL_ERROR,"\u5185\u90E8\u9519\u8BEF",t),badRequest:(t,a)=>new Pe(tr.GlobalErrorCodes.BAD_REQUEST,t??"\u8BF7\u6C42\u9519\u8BEF",a),notFound:(t,a)=>new Pe(tr.GlobalErrorCodes.NOT_FOUND,t?`${t} \u4E0D\u5B58\u5728`:"\u672A\u627E\u5230",a),notImplemented:t=>new Pe(tr.GlobalErrorCodes.NOT_IMPLEMENTED,t?`${t} \u672A\u5B9E\u73B0`:"\u529F\u80FD\u672A\u5B9E\u73B0"),storageIo:(t,a)=>new Pe(tr.GlobalErrorCodes.STORAGE_IO_ERROR,t?`\u5B58\u50A8 IO \u9519\u8BEF: ${t}`:"\u5B58\u50A8 IO \u9519\u8BEF",a),pathNotFound:t=>new Pe(tr.GlobalErrorCodes.FS_PATH_NOT_FOUND,`\u8DEF\u5F84\u4E0D\u5B58\u5728: ${t}`,{path:t}),permissionDenied:t=>new Pe(tr.GlobalErrorCodes.FS_PERMISSION_DENIED,t?`\u6743\u9650\u4E0D\u8DB3: ${t}`:"\u6743\u9650\u4E0D\u8DB3",t?{path:t}:void 0),alreadyExists:t=>new Pe(tr.GlobalErrorCodes.FS_ALREADY_EXISTS,`${t} \u5DF2\u5B58\u5728`),invalidName:(t,a)=>new Pe(tr.GlobalErrorCodes.FS_INVALID_NAME,a?`\u65E0\u6548\u540D\u79F0: ${a}`:"\u6587\u4EF6\u540D\u65E0\u6548",t?{name:t}:void 0)}});var Ra=Ie(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.nginxErrors=pn.NginxError=void 0;var eh=Fr(),j=ri(),K=class extends eh.AppError{constructor(){super(...arguments),this.source="@yinuo-ngm/nginx"}};pn.NginxError=K;pn.nginxErrors={notBound:t=>new K(j.NginxErrorCodes.NGINX_NOT_BOUND,"Nginx \u672A\u7ED1\u5B9A\uFF0C\u8BF7\u5148\u7ED1\u5B9A Nginx \u5B9E\u4F8B",t?{path:t}:void 0),alreadyRunning:()=>new K(j.NginxErrorCodes.NGINX_ALREADY_RUNNING,"Nginx \u5DF2\u5728\u8FD0\u884C"),notRunning:()=>new K(j.NginxErrorCodes.NGINX_NOT_RUNNING,"Nginx \u672A\u8FD0\u884C"),startFailed:t=>new K(j.NginxErrorCodes.NGINX_START_FAILED,`Nginx \u542F\u52A8\u5931\u8D25: ${t}`,{reason:t}),stopFailed:t=>new K(j.NginxErrorCodes.NGINX_STOP_FAILED,`Nginx \u505C\u6B62\u5931\u8D25: ${t}`,{reason:t}),reloadFailed:t=>new K(j.NginxErrorCodes.NGINX_RELOAD_FAILED,`Nginx \u91CD\u8F7D\u5931\u8D25: ${t}`,{reason:t}),testFailed:t=>new K(j.NginxErrorCodes.NGINX_TEST_FAILED,t?.length?`\u914D\u7F6E\u68C0\u6D4B\u5931\u8D25: ${t.join(", ")}`:"\u914D\u7F6E\u68C0\u6D4B\u5931\u8D25",t?{errors:t}:void 0),configReadFailed:(t,a)=>new K(j.NginxErrorCodes.NGINX_CONFIG_READ_FAILED,`\u8BFB\u53D6\u914D\u7F6E\u6587\u4EF6\u5931\u8D25: ${t}`,{filePath:t,cause:a}),configWriteFailed:(t,a)=>new K(j.NginxErrorCodes.NGINX_CONFIG_WRITE_FAILED,`\u5199\u5165\u914D\u7F6E\u6587\u4EF6\u5931\u8D25: ${t}`,{filePath:t,cause:a}),configInvalid:(t,a)=>new K(j.NginxErrorCodes.NGINX_CONFIG_INVALID,`\u914D\u7F6E\u6587\u4EF6\u65E0\u6548: ${a}`,{filePath:t,reason:a}),configNotManageable:t=>new K(j.NginxErrorCodes.NGINX_CONFIG_NOT_MANAGEABLE,`\u914D\u7F6E\u6587\u4EF6\u4E0D\u5728\u53EF\u7BA1\u7406\u8303\u56F4: ${t}`,{filePath:t}),serverNotFound:t=>new K(j.NginxErrorCodes.NGINX_SERVER_NOT_FOUND,`Server \u4E0D\u5B58\u5728: ${t}`,{serverId:t}),serverAlreadyExists:t=>new K(j.NginxErrorCodes.NGINX_SERVER_ALREADY_EXISTS,`Server \u5DF2\u5B58\u5728: ${t}`,{name:t}),serverPortConflict:(t,a)=>new K(j.NginxErrorCodes.NGINX_SERVER_PORT_CONFLICT,`\u7AEF\u53E3 ${t} \u5DF2\u88AB ${a.join(", ")} \u5360\u7528`,{port:t,owners:a}),serverNameConflict:t=>new K(j.NginxErrorCodes.NGINX_SERVER_NAME_CONFLICT,`Server \u540D\u79F0\u51B2\u7A81: ${t}`,{name:t}),serverFileInvalid:(t,a)=>new K(j.NginxErrorCodes.NGINX_SERVER_FILE_INVALID,`Server \u914D\u7F6E\u6587\u4EF6\u65E0\u6548: ${a}`,{filePath:t,reason:a}),serverDeleteBlocked:t=>new K(j.NginxErrorCodes.NGINX_SERVER_DELETE_BLOCKED,`\u5220\u9664\u88AB\u963B\u6B62: ${t}`,{reason:t}),serverImportFailed:t=>new K(j.NginxErrorCodes.NGINX_SERVER_IMPORT_FAILED,`Server \u5BFC\u5165\u5931\u8D25: ${t}`,{reason:t}),sslCertNotFound:t=>new K(j.NginxErrorCodes.NGINX_SSL_CERT_NOT_FOUND,`SSL \u8BC1\u4E66\u6587\u4EF6\u4E0D\u5B58\u5728: ${t}`,{path:t}),sslKeyNotFound:t=>new K(j.NginxErrorCodes.NGINX_SSL_KEY_NOT_FOUND,`SSL \u5BC6\u94A5\u6587\u4EF6\u4E0D\u5B58\u5728: ${t}`,{path:t}),sslCertInvalid:(t,a)=>new K(j.NginxErrorCodes.NGINX_SSL_CERT_INVALID,`SSL \u8BC1\u4E66\u65E0\u6548: ${a}`,{path:t,reason:a}),upstreamNotFound:t=>new K(j.NginxErrorCodes.NGINX_UPSTREAM_NOT_FOUND,`Upstream \u4E0D\u5B58\u5728: ${t}`,{name:t}),upstreamAlreadyExists:t=>new K(j.NginxErrorCodes.NGINX_UPSTREAM_ALREADY_EXISTS,`Upstream \u5DF2\u5B58\u5728: ${t}`,{name:t}),upstreamNodeInvalid:(t,a)=>new K(j.NginxErrorCodes.NGINX_UPSTREAM_NODE_INVALID,`Upstream \u8282\u70B9\u65E0\u6548: ${a}`,{node:t,reason:a})}});var Sa=Ie(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.apiErrors=gn.ApiError=void 0;var rh=Fr(),je=ti(),Ce=class extends rh.AppError{constructor(){super(...arguments),this.source="@yinuo-ngm/api"}};gn.ApiError=Ce;gn.apiErrors={requestNotFound:t=>new Ce(je.ApiErrorCodes.API_REQUEST_NOT_FOUND,`\u8BF7\u6C42\u4E0D\u5B58\u5728: ${t}`,{requestId:t}),requestSaveFailed:(t,a)=>new Ce(je.ApiErrorCodes.API_REQUEST_SAVE_FAILED,`\u8BF7\u6C42\u4FDD\u5B58\u5931\u8D25: ${t}`,{requestId:t,cause:a}),collectionNotFound:t=>new Ce(je.ApiErrorCodes.API_COLLECTION_NOT_FOUND,`\u96C6\u5408\u4E0D\u5B58\u5728: ${t}`,{collectionId:t}),collectionAlreadyExists:t=>new Ce(je.ApiErrorCodes.API_COLLECTION_ALREADY_EXISTS,`\u96C6\u5408\u5DF2\u5B58\u5728: ${t}`,{name:t}),envNotFound:t=>new Ce(je.ApiErrorCodes.API_ENV_NOT_FOUND,`\u73AF\u5883\u4E0D\u5B58\u5728: ${t}`,{envId:t}),sendFailed:(t,a)=>new Ce(je.ApiErrorCodes.API_SEND_FAILED,`\u8BF7\u6C42\u53D1\u9001\u5931\u8D25: ${t}`,a),timeout:(t,a)=>new Ce(je.ApiErrorCodes.API_TIMEOUT,`\u8BF7\u6C42\u8D85\u65F6: ${t}`,{url:t,timeoutMs:a}),invalidUrl:t=>new Ce(je.ApiErrorCodes.API_INVALID_URL,`URL \u65E0\u6548: ${t}`,{url:t}),hubTokenInvalid:()=>new Ce(je.ApiErrorCodes.API_HUB_TOKEN_INVALID,"Hub Token \u65E0\u6548"),hubTokenRequired:()=>new Ce(je.ApiErrorCodes.API_HUB_TOKEN_REQUIRED,"Hub Token \u5FC5\u586B"),historyNotFound:t=>new Ce(je.ApiErrorCodes.API_HISTORY_NOT_FOUND,`\u5386\u53F2\u8BB0\u5F55\u4E0D\u5B58\u5728: ${t}`,{historyId:t})}});var Da=Ie(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.aisErrors=An.AisError=void 0;var nh=Fr(),ae=oi(),re=class extends nh.AppError{constructor(){super(...arguments),this.source="@yinuo-ngm/ais"}};An.AisError=re;An.aisErrors={bitBufferOverflow:(t,a,E)=>new re(ae.AisErrorCodes.AIS_BIT_BUFFER_OVERFLOW,`\u4F4D\u7F13\u51B2\u533A\u6EA2\u51FA: ${t} (${a} > ${E})`,{field:t,bits:a,capacity:E}),bitBufferUnderflow:(t,a)=>new re(ae.AisErrorCodes.AIS_BIT_BUFFER_UNDERFLOW,`\u4F4D\u7F13\u51B2\u533A\u4E0B\u6EA2: ${t} (${a} < 0)`,{field:t,bits:a}),invalidSixbitChar:(t,a)=>new re(ae.AisErrorCodes.AIS_INVALID_SIXBIT_CHAR,`\u65E0\u6548\u7684 6-bit \u5B57\u7B26: '${t}' at position ${a}`,{char:t,position:a}),encodeFailed:(t,a)=>new re(ae.AisErrorCodes.AIS_ENCODE_FAILED,`AIS \u7F16\u7801\u5931\u8D25: ${t}`,a),decodeFailed:(t,a)=>new re(ae.AisErrorCodes.AIS_DECODE_FAILED,`AIS \u89E3\u7801\u5931\u8D25: ${t}`,a),textEncodeFailed:(t,a)=>new re(ae.AisErrorCodes.AIS_TEXT_ENCODE_FAILED,`\u6587\u672C\u7F16\u7801\u5931\u8D25: ${a}`,{text:t,reason:a}),textDecodeFailed:(t,a)=>new re(ae.AisErrorCodes.AIS_TEXT_DECODE_FAILED,`\u6587\u672C\u89E3\u7801\u5931\u8D25: ${t}`,a),invalidLatLng:(t,a)=>new re(ae.AisErrorCodes.AIS_INVALID_LATLNG,`\u7ECF\u7EAC\u5EA6\u65E0\u6548: ${t}=${a}`,{field:t,value:a}),invalidNmeaSentence:(t,a)=>new re(ae.AisErrorCodes.AIS_INVALID_NMEA_SENTENCE,`NMEA \u8BED\u53E5\u65E0\u6548: ${a}`,{sentence:t,reason:a}),transportInvalid:(t,a)=>new re(ae.AisErrorCodes.AIS_TRANSPORT_INVALID,`\u4F20\u8F93\u5C42\u914D\u7F6E\u65E0\u6548: ${t} - ${a}`,{field:t,reason:a}),schemaEncodeFailed:(t,a)=>new re(ae.AisErrorCodes.AIS_SCHEMA_ENCODE_FAILED,`Schema \u7F16\u7801\u5931\u8D25: ${t} - ${a}`,{field:t,reason:a}),fieldConstraintViolated:(t,a,E)=>new re(ae.AisErrorCodes.AIS_FIELD_CONSTRAINT_VIOLATED,`\u5B57\u6BB5\u7EA6\u675F\u8FDD\u53CD: ${t} (${a}): ${E}`,{field:t,constraint:a,value:E}),channelRequired:()=>new re(ae.AisErrorCodes.AIS_CHANNEL_REQUIRED,"\u9891\u9053\u5FC5\u586B"),channelInvalid:t=>new re(ae.AisErrorCodes.AIS_CHANNEL_INVALID,`\u9891\u9053\u65E0\u6548: ${t}`,{channel:t}),msgTypeNotSupported:t=>new re(ae.AisErrorCodes.AIS_MSG_TYPE_NOT_SUPPORTED,`\u6D88\u606F\u7C7B\u578B\u4E0D\u652F\u6301: ${t}`,{msgType:t}),dacInvalid:t=>new re(ae.AisErrorCodes.AIS_DAC_INVALID,`DAC \u65E0\u6548: ${t}`,{dac:t}),fiInvalid:t=>new re(ae.AisErrorCodes.AIS_FI_INVALID,`FI \u65E0\u6548: ${t}`,{fi:t}),appDataTooLong:(t,a)=>new re(ae.AisErrorCodes.AIS_APP_DATA_TOO_LONG,`\u5E94\u7528\u6570\u636E\u8FC7\u957F: ${t} > ${a}`,{dataLen:t,maxLen:a})}});var va=Ie(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.runtimeErrors=Tn.RuntimeError=void 0;var th=Fr(),ai=ui(),zr=class extends th.AppError{constructor(){super(...arguments),this.source="@yinuo-ngm/runtime"}};Tn.RuntimeError=zr;Tn.runtimeErrors={lockFailed:t=>new zr(ai.RuntimeErrorCodes.RUNTIME_LOCK_FAILED,t?`\u9501\u6587\u4EF6\u64CD\u4F5C\u5931\u8D25: ${t}`:"\u9501\u6587\u4EF6\u64CD\u4F5C\u5931\u8D25",t?{cause:t}:void 0),serverNotStarted:()=>new zr(ai.RuntimeErrorCodes.RUNTIME_SERVER_NOT_STARTED,"\u670D\u52A1\u5668\u672A\u542F\u52A8"),healthCheckFailed:t=>new zr(ai.RuntimeErrorCodes.RUNTIME_HEALTH_CHECK_FAILED,`\u5065\u5EB7\u68C0\u67E5\u5931\u8D25: ${t}`,{reason:t}),shutdownFailed:t=>new zr(ai.RuntimeErrorCodes.RUNTIME_SHUTDOWN_FAILED,`\u5173\u95ED\u5931\u8D25: ${t}`,{reason:t})}});var La=Ie(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.spriteErrors=ir.coreErrors=ir.SpriteError=ir.CoreError=void 0;var ma=Fr(),$=Zt(),ne=class extends ma.AppError{constructor(){super(...arguments),this.source="@yinuo-ngm/core"}};ir.CoreError=ne;var Ve=class extends ma.AppError{constructor(){super(...arguments),this.source="@yinuo-ngm/sprite"}};ir.SpriteError=Ve;ir.coreErrors={projectNotFound:t=>new ne($.CoreErrorCodes.PROJECT_NOT_FOUND,`\u9879\u76EE\u4E0D\u5B58\u5728: ${t}`,{projectId:t}),projectAlreadyExists:t=>new ne($.CoreErrorCodes.PROJECT_ALREADY_EXISTS,`\u9879\u76EE\u5DF2\u5B58\u5728: ${t}`,{name:t}),projectRootInvalid:(t,a)=>new ne($.CoreErrorCodes.PROJECT_ROOT_INVALID,a?`\u9879\u76EE\u6839\u76EE\u5F55\u65E0\u6548: ${a}`:"\u9879\u76EE\u6839\u76EE\u5F55\u65E0\u6548",{path:t}),taskNotFound:t=>new ne($.CoreErrorCodes.TASK_NOT_FOUND,`\u4EFB\u52A1\u4E0D\u5B58\u5728: ${t}`,{taskId:t}),taskAlreadyRunning:t=>new ne($.CoreErrorCodes.TASK_ALREADY_RUNNING,`\u4EFB\u52A1\u5DF2\u5728\u8FD0\u884C: ${t}`,{taskId:t}),taskNotRunnable:(t,a)=>new ne($.CoreErrorCodes.TASK_NOT_RUNNABLE,`\u4EFB\u52A1\u4E0D\u53EF\u8FD0\u884C: ${a}`,{taskId:t,reason:a}),configNotFound:t=>new ne($.CoreErrorCodes.CONFIG_DOC_NOT_FOUND,`\u914D\u7F6E\u6587\u4EF6\u4E0D\u5B58\u5728: ${t}`,{path:t}),configReadFailed:(t,a)=>new ne($.CoreErrorCodes.CONFIG_READ_FAILED,`\u914D\u7F6E\u6587\u4EF6\u8BFB\u53D6\u5931\u8D25: ${t}`,{path:t,cause:a}),configWriteFailed:(t,a)=>new ne($.CoreErrorCodes.CONFIG_WRITE_FAILED,`\u914D\u7F6E\u6587\u4EF6\u5199\u5165\u5931\u8D25: ${t}`,{path:t,cause:a}),dashboardConflict:t=>new ne($.CoreErrorCodes.DASHBOARD_CONFLICT,`\u4EEA\u8868\u76D8\u51B2\u7A81: ${t}`,{dashboardId:t}),widgetNotFound:t=>new ne($.CoreErrorCodes.WIDGET_NOT_FOUND,`\u7EC4\u4EF6\u4E0D\u5B58\u5728: ${t}`,{widgetId:t}),svnSyncAlreadyRunning:t=>new ne($.CoreErrorCodes.SVN_SYNC_ALREADY_RUNNING,`SVN \u540C\u6B65\u5DF2\u5728\u8FD0\u884C: ${t}`,{projectId:t}),svnSyncFailed:(t,a)=>new ne($.CoreErrorCodes.SVN_SYNC_FAILED,`SVN \u540C\u6B65\u5931\u8D25: ${a}`,{projectId:t,reason:a}),depInstallFailed:(t,a)=>new ne($.CoreErrorCodes.DEP_INSTALL_FAILED,`\u4F9D\u8D56\u5B89\u88C5\u5931\u8D25: ${t}`,{packageName:t,reason:a}),depNotFound:t=>new ne($.CoreErrorCodes.DEP_NOT_FOUND,`\u4F9D\u8D56\u4E0D\u5B58\u5728: ${t}`,{packageName:t}),editorNotFound:()=>new ne($.CoreErrorCodes.EDITOR_NOT_FOUND,"\u7F16\u8F91\u5668\u4E0D\u5B58\u5728"),editorLaunchFailed:(t,a)=>new ne($.CoreErrorCodes.EDITOR_LAUNCH_FAILED,a?`\u7F16\u8F91\u5668\u542F\u52A8\u5931\u8D25: ${a}`:`\u7F16\u8F91\u5668\u542F\u52A8\u5931\u8D25: ${t}`,{path:t,reason:a})};ir.spriteErrors={configNotFound:t=>new Ve($.CoreErrorCodes.SPRITE_CONFIG_NOT_FOUND,`\u96EA\u78A7\u56FE\u914D\u7F6E\u4E0D\u5B58\u5728: ${t}`,{path:t}),groupNotFound:t=>new Ve($.CoreErrorCodes.SPRITE_GROUP_NOT_FOUND,`\u56FE\u6807\u7EC4\u4E0D\u5B58\u5728: ${t}`,{group:t}),iconsRootNotFound:t=>new Ve($.CoreErrorCodes.SPRITE_ICONS_ROOT_NOT_FOUND,`\u56FE\u6807\u76EE\u5F55\u4E0D\u5B58\u5728: ${t}`,{path:t}),iconsRootRequired:()=>new Ve($.CoreErrorCodes.SPRITE_ICONS_ROOT_REQUIRED,"iconsRoot is required"),outDirRequired:()=>new Ve($.CoreErrorCodes.SPRITE_OUT_DIR_REQUIRED,"outDir is required"),urlTemplateRequired:()=>new Ve($.CoreErrorCodes.SPRITE_URL_TEMPLATE_REQUIRED,"spriteUrlTemplate is required"),groupEmpty:t=>new Ve($.CoreErrorCodes.SPRITE_GROUP_EMPTY,`group "${t}" is empty`,{group:t}),groupMixed:t=>new Ve($.CoreErrorCodes.SPRITE_GROUP_MIXED,`group "${t}" has both png and svg (mixed)`,{group:t}),groupInvalidType:(t,a)=>new Ve($.CoreErrorCodes.SPRITE_GROUP_INVALID_TYPE,`Group "${t}" is ${a}. Use generateSvgGroup() for SVG.`,{group:t,type:a})}});var jo=Ie(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.spriteErrors=L.SpriteError=L.coreErrors=L.CoreError=L.runtimeErrors=L.RuntimeError=L.aisErrors=L.AisError=L.apiErrors=L.ApiError=L.nginxErrors=L.NginxError=L.globalErrors=L.GlobalError=L.RuntimeErrorCodes=L.AisErrorCodes=L.ApiErrorCodes=L.NginxErrorCodes=L.CoreErrorCodes=L.GlobalErrorCodes=L.getHttpStatus=L.httpStatusMap=L.AppError=void 0;var ih=Fr();Object.defineProperty(L,"AppError",{enumerable:!0,get:function(){return ih.AppError}});var Pa=Oa();Object.defineProperty(L,"httpStatusMap",{enumerable:!0,get:function(){return Pa.httpStatusMap}});Object.defineProperty(L,"getHttpStatus",{enumerable:!0,get:function(){return Pa.getHttpStatus}});var oh=Qt();Object.defineProperty(L,"GlobalErrorCodes",{enumerable:!0,get:function(){return oh.GlobalErrorCodes}});var sh=Zt();Object.defineProperty(L,"CoreErrorCodes",{enumerable:!0,get:function(){return sh.CoreErrorCodes}});var uh=ri();Object.defineProperty(L,"NginxErrorCodes",{enumerable:!0,get:function(){return uh.NginxErrorCodes}});var _h=ti();Object.defineProperty(L,"ApiErrorCodes",{enumerable:!0,get:function(){return _h.ApiErrorCodes}});var ah=oi();Object.defineProperty(L,"AisErrorCodes",{enumerable:!0,get:function(){return ah.AisErrorCodes}});var fh=ui();Object.defineProperty(L,"RuntimeErrorCodes",{enumerable:!0,get:function(){return fh.RuntimeErrorCodes}});var Fa=Ca();Object.defineProperty(L,"GlobalError",{enumerable:!0,get:function(){return Fa.GlobalError}});Object.defineProperty(L,"globalErrors",{enumerable:!0,get:function(){return Fa.globalErrors}});var Ua=Ra();Object.defineProperty(L,"NginxError",{enumerable:!0,get:function(){return Ua.NginxError}});Object.defineProperty(L,"nginxErrors",{enumerable:!0,get:function(){return Ua.nginxErrors}});var wa=Sa();Object.defineProperty(L,"ApiError",{enumerable:!0,get:function(){return wa.ApiError}});Object.defineProperty(L,"apiErrors",{enumerable:!0,get:function(){return wa.apiErrors}});var xa=Da();Object.defineProperty(L,"AisError",{enumerable:!0,get:function(){return xa.AisError}});Object.defineProperty(L,"aisErrors",{enumerable:!0,get:function(){return xa.aisErrors}});var ya=va();Object.defineProperty(L,"RuntimeError",{enumerable:!0,get:function(){return ya.RuntimeError}});Object.defineProperty(L,"runtimeErrors",{enumerable:!0,get:function(){return ya.runtimeErrors}});var fi=La();Object.defineProperty(L,"CoreError",{enumerable:!0,get:function(){return fi.CoreError}});Object.defineProperty(L,"coreErrors",{enumerable:!0,get:function(){return fi.coreErrors}});Object.defineProperty(L,"SpriteError",{enumerable:!0,get:function(){return fi.SpriteError}});Object.defineProperty(L,"spriteErrors",{enumerable:!0,get:function(){return fi.spriteErrors}})});var ch=Ie((Rn,jn)=>{"use strict";(function(){var t,a="4.17.23",E=200,A="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",C="Expected a function",M="Invalid `variable` option passed into `_.template`",or="__lodash_hash_undefined__",Wa=500,Qn="__lodash_placeholder__",hr=1,ko=2,qr=4,Yr=1,kn=2,Fe=1,wr=2,Zo=4,Qe=8,jr=16,ke=32,Qr=64,sr=128,Sn=256,Ii=512,Ha=30,Ka="...",Xa=800,$a=16,es=1,za=2,Ja=3,xr=1/0,pr=9007199254740991,qa=17976931348623157e292,Zn=NaN,Ze=4294967295,Ya=Ze-1,ja=Ze>>>1,Qa=[["ary",sr],["bind",Fe],["bindKey",wr],["curry",Qe],["curryRight",jr],["flip",Ii],["partial",ke],["partialRight",Qr],["rearg",Sn]],kr="[object Arguments]",et="[object Array]",ka="[object AsyncFunction]",Dn="[object Boolean]",vn="[object Date]",Za="[object DOMException]",rt="[object Error]",nt="[object Function]",rs="[object GeneratorFunction]",He="[object Map]",mn="[object Number]",ef="[object Null]",ur="[object Object]",ns="[object Promise]",rf="[object Proxy]",Ln="[object RegExp]",Ke="[object Set]",Pn="[object String]",tt="[object Symbol]",nf="[object Undefined]",Fn="[object WeakMap]",tf="[object WeakSet]",Un="[object ArrayBuffer]",Zr="[object DataView]",Ni="[object Float32Array]",hi="[object Float64Array]",pi="[object Int8Array]",gi="[object Int16Array]",Ai="[object Int32Array]",Ti="[object Uint8Array]",Oi="[object Uint8ClampedArray]",Ci="[object Uint16Array]",Ri="[object Uint32Array]",of=/\b__p \+= '';/g,sf=/\b(__p \+=) '' \+/g,uf=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ts=/&(?:amp|lt|gt|quot|#39);/g,is=/[&<>"']/g,_f=RegExp(ts.source),af=RegExp(is.source),ff=/<%-([\s\S]+?)%>/g,lf=/<%([\s\S]+?)%>/g,os=/<%=([\s\S]+?)%>/g,cf=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ef=/^\w*$/,df=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Si=/[\\^$.*+?()[\]{}|]/g,If=RegExp(Si.source),Di=/^\s+/,Nf=/\s/,hf=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,pf=/\{\n\/\* \[wrapped with (.+)\] \*/,gf=/,? & /,Af=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Tf=/[()=,{}\[\]\/\s]/,Of=/\\(\\)?/g,Cf=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ss=/\w*$/,Rf=/^[-+]0x[0-9a-f]+$/i,Sf=/^0b[01]+$/i,Df=/^\[object .+?Constructor\]$/,vf=/^0o[0-7]+$/i,mf=/^(?:0|[1-9]\d*)$/,Lf=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,it=/($^)/,Pf=/['\n\r\u2028\u2029\\]/g,ot="\\ud800-\\udfff",Ff="\\u0300-\\u036f",Uf="\\ufe20-\\ufe2f",wf="\\u20d0-\\u20ff",us=Ff+Uf+wf,_s="\\u2700-\\u27bf",as="a-z\\xdf-\\xf6\\xf8-\\xff",xf="\\xac\\xb1\\xd7\\xf7",yf="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",bf="\\u2000-\\u206f",Gf=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",fs="A-Z\\xc0-\\xd6\\xd8-\\xde",ls="\\ufe0e\\ufe0f",cs=xf+yf+bf+Gf,vi="['\u2019]",Mf="["+ot+"]",Es="["+cs+"]",st="["+us+"]",ds="\\d+",Bf="["+_s+"]",Is="["+as+"]",Ns="[^"+ot+cs+ds+_s+as+fs+"]",mi="\\ud83c[\\udffb-\\udfff]",Vf="(?:"+st+"|"+mi+")",hs="[^"+ot+"]",Li="(?:\\ud83c[\\udde6-\\uddff]){2}",Pi="[\\ud800-\\udbff][\\udc00-\\udfff]",en="["+fs+"]",ps="\\u200d",gs="(?:"+Is+"|"+Ns+")",Wf="(?:"+en+"|"+Ns+")",As="(?:"+vi+"(?:d|ll|m|re|s|t|ve))?",Ts="(?:"+vi+"(?:D|LL|M|RE|S|T|VE))?",Os=Vf+"?",Cs="["+ls+"]?",Hf="(?:"+ps+"(?:"+[hs,Li,Pi].join("|")+")"+Cs+Os+")*",Kf="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Xf="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Rs=Cs+Os+Hf,$f="(?:"+[Bf,Li,Pi].join("|")+")"+Rs,zf="(?:"+[hs+st+"?",st,Li,Pi,Mf].join("|")+")",Jf=RegExp(vi,"g"),qf=RegExp(st,"g"),Fi=RegExp(mi+"(?="+mi+")|"+zf+Rs,"g"),Yf=RegExp([en+"?"+Is+"+"+As+"(?="+[Es,en,"$"].join("|")+")",Wf+"+"+Ts+"(?="+[Es,en+gs,"$"].join("|")+")",en+"?"+gs+"+"+As,en+"+"+Ts,Xf,Kf,ds,$f].join("|"),"g"),jf=RegExp("["+ps+ot+us+ls+"]"),Qf=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,kf=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Zf=-1,z={};z[Ni]=z[hi]=z[pi]=z[gi]=z[Ai]=z[Ti]=z[Oi]=z[Ci]=z[Ri]=!0,z[kr]=z[et]=z[Un]=z[Dn]=z[Zr]=z[vn]=z[rt]=z[nt]=z[He]=z[mn]=z[ur]=z[Ln]=z[Ke]=z[Pn]=z[Fn]=!1;var X={};X[kr]=X[et]=X[Un]=X[Zr]=X[Dn]=X[vn]=X[Ni]=X[hi]=X[pi]=X[gi]=X[Ai]=X[He]=X[mn]=X[ur]=X[Ln]=X[Ke]=X[Pn]=X[tt]=X[Ti]=X[Oi]=X[Ci]=X[Ri]=!0,X[rt]=X[nt]=X[Fn]=!1;var el={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},rl={"&":"&","<":"<",">":">",'"':""","'":"'"},nl={"&":"&","<":"<",">":">",""":'"',"'":"'"},tl={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},il=parseFloat,ol=parseInt,Ss=typeof global=="object"&&global&&global.Object===Object&&global,sl=typeof self=="object"&&self&&self.Object===Object&&self,se=Ss||sl||Function("return this")(),Ui=typeof Rn=="object"&&Rn&&!Rn.nodeType&&Rn,yr=Ui&&typeof jn=="object"&&jn&&!jn.nodeType&&jn,Ds=yr&&yr.exports===Ui,wi=Ds&&Ss.process,Ue=(function(){try{var l=yr&&yr.require&&yr.require("util").types;return l||wi&&wi.binding&&wi.binding("util")}catch{}})(),vs=Ue&&Ue.isArrayBuffer,ms=Ue&&Ue.isDate,Ls=Ue&&Ue.isMap,Ps=Ue&&Ue.isRegExp,Fs=Ue&&Ue.isSet,Us=Ue&&Ue.isTypedArray;function Re(l,I,d){switch(d.length){case 0:return l.call(I);case 1:return l.call(I,d[0]);case 2:return l.call(I,d[0],d[1]);case 3:return l.call(I,d[0],d[1],d[2])}return l.apply(I,d)}function ul(l,I,d,R){for(var P=-1,B=l==null?0:l.length;++P<B;){var te=l[P];I(R,te,d(te),l)}return R}function we(l,I){for(var d=-1,R=l==null?0:l.length;++d<R&&I(l[d],d,l)!==!1;);return l}function _l(l,I){for(var d=l==null?0:l.length;d--&&I(l[d],d,l)!==!1;);return l}function ws(l,I){for(var d=-1,R=l==null?0:l.length;++d<R;)if(!I(l[d],d,l))return!1;return!0}function gr(l,I){for(var d=-1,R=l==null?0:l.length,P=0,B=[];++d<R;){var te=l[d];I(te,d,l)&&(B[P++]=te)}return B}function ut(l,I){var d=l==null?0:l.length;return!!d&&rn(l,I,0)>-1}function xi(l,I,d){for(var R=-1,P=l==null?0:l.length;++R<P;)if(d(I,l[R]))return!0;return!1}function q(l,I){for(var d=-1,R=l==null?0:l.length,P=Array(R);++d<R;)P[d]=I(l[d],d,l);return P}function Ar(l,I){for(var d=-1,R=I.length,P=l.length;++d<R;)l[P+d]=I[d];return l}function yi(l,I,d,R){var P=-1,B=l==null?0:l.length;for(R&&B&&(d=l[++P]);++P<B;)d=I(d,l[P],P,l);return d}function al(l,I,d,R){var P=l==null?0:l.length;for(R&&P&&(d=l[--P]);P--;)d=I(d,l[P],P,l);return d}function bi(l,I){for(var d=-1,R=l==null?0:l.length;++d<R;)if(I(l[d],d,l))return!0;return!1}var fl=Gi("length");function ll(l){return l.split("")}function cl(l){return l.match(Af)||[]}function xs(l,I,d){var R;return d(l,function(P,B,te){if(I(P,B,te))return R=B,!1}),R}function _t(l,I,d,R){for(var P=l.length,B=d+(R?1:-1);R?B--:++B<P;)if(I(l[B],B,l))return B;return-1}function rn(l,I,d){return I===I?Rl(l,I,d):_t(l,ys,d)}function El(l,I,d,R){for(var P=d-1,B=l.length;++P<B;)if(R(l[P],I))return P;return-1}function ys(l){return l!==l}function bs(l,I){var d=l==null?0:l.length;return d?Bi(l,I)/d:Zn}function Gi(l){return function(I){return I==null?t:I[l]}}function Mi(l){return function(I){return l==null?t:l[I]}}function Gs(l,I,d,R,P){return P(l,function(B,te,H){d=R?(R=!1,B):I(d,B,te,H)}),d}function dl(l,I){var d=l.length;for(l.sort(I);d--;)l[d]=l[d].value;return l}function Bi(l,I){for(var d,R=-1,P=l.length;++R<P;){var B=I(l[R]);B!==t&&(d=d===t?B:d+B)}return d}function Vi(l,I){for(var d=-1,R=Array(l);++d<l;)R[d]=I(d);return R}function Il(l,I){return q(I,function(d){return[d,l[d]]})}function Ms(l){return l&&l.slice(0,Hs(l)+1).replace(Di,"")}function Se(l){return function(I){return l(I)}}function Wi(l,I){return q(I,function(d){return l[d]})}function wn(l,I){return l.has(I)}function Bs(l,I){for(var d=-1,R=l.length;++d<R&&rn(I,l[d],0)>-1;);return d}function Vs(l,I){for(var d=l.length;d--&&rn(I,l[d],0)>-1;);return d}function Nl(l,I){for(var d=l.length,R=0;d--;)l[d]===I&&++R;return R}var hl=Mi(el),pl=Mi(rl);function gl(l){return"\\"+tl[l]}function Al(l,I){return l==null?t:l[I]}function nn(l){return jf.test(l)}function Tl(l){return Qf.test(l)}function Ol(l){for(var I,d=[];!(I=l.next()).done;)d.push(I.value);return d}function Hi(l){var I=-1,d=Array(l.size);return l.forEach(function(R,P){d[++I]=[P,R]}),d}function Ws(l,I){return function(d){return l(I(d))}}function Tr(l,I){for(var d=-1,R=l.length,P=0,B=[];++d<R;){var te=l[d];(te===I||te===Qn)&&(l[d]=Qn,B[P++]=d)}return B}function at(l){var I=-1,d=Array(l.size);return l.forEach(function(R){d[++I]=R}),d}function Cl(l){var I=-1,d=Array(l.size);return l.forEach(function(R){d[++I]=[R,R]}),d}function Rl(l,I,d){for(var R=d-1,P=l.length;++R<P;)if(l[R]===I)return R;return-1}function Sl(l,I,d){for(var R=d+1;R--;)if(l[R]===I)return R;return R}function tn(l){return nn(l)?vl(l):fl(l)}function Xe(l){return nn(l)?ml(l):ll(l)}function Hs(l){for(var I=l.length;I--&&Nf.test(l.charAt(I)););return I}var Dl=Mi(nl);function vl(l){for(var I=Fi.lastIndex=0;Fi.test(l);)++I;return I}function ml(l){return l.match(Fi)||[]}function Ll(l){return l.match(Yf)||[]}var Pl=function l(I){I=I==null?se:Or.defaults(se.Object(),I,Or.pick(se,kf));var d=I.Array,R=I.Date,P=I.Error,B=I.Function,te=I.Math,H=I.Object,Ki=I.RegExp,Fl=I.String,xe=I.TypeError,ft=d.prototype,Ul=B.prototype,on=H.prototype,lt=I["__core-js_shared__"],ct=Ul.toString,V=on.hasOwnProperty,wl=0,Ks=(function(){var e=/[^.]+$/.exec(lt&<.keys&<.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),Et=on.toString,xl=ct.call(H),yl=se._,bl=Ki("^"+ct.call(V).replace(Si,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dt=Ds?I.Buffer:t,Cr=I.Symbol,It=I.Uint8Array,Xs=dt?dt.allocUnsafe:t,Nt=Ws(H.getPrototypeOf,H),$s=H.create,zs=on.propertyIsEnumerable,ht=ft.splice,Js=Cr?Cr.isConcatSpreadable:t,xn=Cr?Cr.iterator:t,br=Cr?Cr.toStringTag:t,pt=(function(){try{var e=Wr(H,"defineProperty");return e({},"",{}),e}catch{}})(),Gl=I.clearTimeout!==se.clearTimeout&&I.clearTimeout,Ml=R&&R.now!==se.Date.now&&R.now,Bl=I.setTimeout!==se.setTimeout&&I.setTimeout,gt=te.ceil,At=te.floor,Xi=H.getOwnPropertySymbols,Vl=dt?dt.isBuffer:t,qs=I.isFinite,Wl=ft.join,Hl=Ws(H.keys,H),ie=te.max,Ee=te.min,Kl=R.now,Xl=I.parseInt,Ys=te.random,$l=ft.reverse,$i=Wr(I,"DataView"),yn=Wr(I,"Map"),zi=Wr(I,"Promise"),sn=Wr(I,"Set"),bn=Wr(I,"WeakMap"),Gn=Wr(H,"create"),Tt=bn&&new bn,un={},zl=Hr($i),Jl=Hr(yn),ql=Hr(zi),Yl=Hr(sn),jl=Hr(bn),Ot=Cr?Cr.prototype:t,Mn=Ot?Ot.valueOf:t,js=Ot?Ot.toString:t;function s(e){if(k(e)&&!F(e)&&!(e instanceof b)){if(e instanceof ye)return e;if(V.call(e,"__wrapped__"))return Qu(e)}return new ye(e)}var _n=(function(){function e(){}return function(r){if(!Q(r))return{};if($s)return $s(r);e.prototype=r;var n=new e;return e.prototype=t,n}})();function Ct(){}function ye(e,r){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!r,this.__index__=0,this.__values__=t}s.templateSettings={escape:ff,evaluate:lf,interpolate:os,variable:"",imports:{_:s}},s.prototype=Ct.prototype,s.prototype.constructor=s,ye.prototype=_n(Ct.prototype),ye.prototype.constructor=ye;function b(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ze,this.__views__=[]}function Ql(){var e=new b(this.__wrapped__);return e.__actions__=ge(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ge(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ge(this.__views__),e}function kl(){if(this.__filtered__){var e=new b(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Zl(){var e=this.__wrapped__.value(),r=this.__dir__,n=F(e),i=r<0,o=n?e.length:0,u=lE(0,o,this.__views__),_=u.start,f=u.end,c=f-_,N=i?f:_-1,h=this.__iteratees__,g=h.length,T=0,S=Ee(c,this.__takeCount__);if(!n||!i&&o==c&&S==c)return Au(e,this.__actions__);var v=[];e:for(;c--&&T<S;){N+=r;for(var w=-1,m=e[N];++w<g;){var y=h[w],G=y.iteratee,me=y.type,pe=G(m);if(me==za)m=pe;else if(!pe){if(me==es)continue e;break e}}v[T++]=m}return v}b.prototype=_n(Ct.prototype),b.prototype.constructor=b;function Gr(e){var r=-1,n=e==null?0:e.length;for(this.clear();++r<n;){var i=e[r];this.set(i[0],i[1])}}function ec(){this.__data__=Gn?Gn(null):{},this.size=0}function rc(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}function nc(e){var r=this.__data__;if(Gn){var n=r[e];return n===or?t:n}return V.call(r,e)?r[e]:t}function tc(e){var r=this.__data__;return Gn?r[e]!==t:V.call(r,e)}function ic(e,r){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Gn&&r===t?or:r,this}Gr.prototype.clear=ec,Gr.prototype.delete=rc,Gr.prototype.get=nc,Gr.prototype.has=tc,Gr.prototype.set=ic;function _r(e){var r=-1,n=e==null?0:e.length;for(this.clear();++r<n;){var i=e[r];this.set(i[0],i[1])}}function oc(){this.__data__=[],this.size=0}function sc(e){var r=this.__data__,n=Rt(r,e);if(n<0)return!1;var i=r.length-1;return n==i?r.pop():ht.call(r,n,1),--this.size,!0}function uc(e){var r=this.__data__,n=Rt(r,e);return n<0?t:r[n][1]}function _c(e){return Rt(this.__data__,e)>-1}function ac(e,r){var n=this.__data__,i=Rt(n,e);return i<0?(++this.size,n.push([e,r])):n[i][1]=r,this}_r.prototype.clear=oc,_r.prototype.delete=sc,_r.prototype.get=uc,_r.prototype.has=_c,_r.prototype.set=ac;function ar(e){var r=-1,n=e==null?0:e.length;for(this.clear();++r<n;){var i=e[r];this.set(i[0],i[1])}}function fc(){this.size=0,this.__data__={hash:new Gr,map:new(yn||_r),string:new Gr}}function lc(e){var r=bt(this,e).delete(e);return this.size-=r?1:0,r}function cc(e){return bt(this,e).get(e)}function Ec(e){return bt(this,e).has(e)}function dc(e,r){var n=bt(this,e),i=n.size;return n.set(e,r),this.size+=n.size==i?0:1,this}ar.prototype.clear=fc,ar.prototype.delete=lc,ar.prototype.get=cc,ar.prototype.has=Ec,ar.prototype.set=dc;function Mr(e){var r=-1,n=e==null?0:e.length;for(this.__data__=new ar;++r<n;)this.add(e[r])}function Ic(e){return this.__data__.set(e,or),this}function Nc(e){return this.__data__.has(e)}Mr.prototype.add=Mr.prototype.push=Ic,Mr.prototype.has=Nc;function $e(e){var r=this.__data__=new _r(e);this.size=r.size}function hc(){this.__data__=new _r,this.size=0}function pc(e){var r=this.__data__,n=r.delete(e);return this.size=r.size,n}function gc(e){return this.__data__.get(e)}function Ac(e){return this.__data__.has(e)}function Tc(e,r){var n=this.__data__;if(n instanceof _r){var i=n.__data__;if(!yn||i.length<E-1)return i.push([e,r]),this.size=++n.size,this;n=this.__data__=new ar(i)}return n.set(e,r),this.size=n.size,this}$e.prototype.clear=hc,$e.prototype.delete=pc,$e.prototype.get=gc,$e.prototype.has=Ac,$e.prototype.set=Tc;function Qs(e,r){var n=F(e),i=!n&&Kr(e),o=!n&&!i&&mr(e),u=!n&&!i&&!o&&cn(e),_=n||i||o||u,f=_?Vi(e.length,Fl):[],c=f.length;for(var N in e)(r||V.call(e,N))&&!(_&&(N=="length"||o&&(N=="offset"||N=="parent")||u&&(N=="buffer"||N=="byteLength"||N=="byteOffset")||Er(N,c)))&&f.push(N);return f}function ks(e){var r=e.length;return r?e[to(0,r-1)]:t}function Oc(e,r){return Gt(ge(e),Br(r,0,e.length))}function Cc(e){return Gt(ge(e))}function Ji(e,r,n){(n!==t&&!ze(e[r],n)||n===t&&!(r in e))&&fr(e,r,n)}function Bn(e,r,n){var i=e[r];(!(V.call(e,r)&&ze(i,n))||n===t&&!(r in e))&&fr(e,r,n)}function Rt(e,r){for(var n=e.length;n--;)if(ze(e[n][0],r))return n;return-1}function Rc(e,r,n,i){return Rr(e,function(o,u,_){r(i,o,n(o),_)}),i}function Zs(e,r){return e&&rr(r,ue(r),e)}function Sc(e,r){return e&&rr(r,Te(r),e)}function fr(e,r,n){r=="__proto__"&&pt?pt(e,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[r]=n}function qi(e,r){for(var n=-1,i=r.length,o=d(i),u=e==null;++n<i;)o[n]=u?t:Lo(e,r[n]);return o}function Br(e,r,n){return e===e&&(n!==t&&(e=e<=n?e:n),r!==t&&(e=e>=r?e:r)),e}function be(e,r,n,i,o,u){var _,f=r&hr,c=r&ko,N=r&qr;if(n&&(_=o?n(e,i,o,u):n(e)),_!==t)return _;if(!Q(e))return e;var h=F(e);if(h){if(_=EE(e),!f)return ge(e,_)}else{var g=de(e),T=g==nt||g==rs;if(mr(e))return Cu(e,f);if(g==ur||g==kr||T&&!o){if(_=c||T?{}:Hu(e),!f)return c?nE(e,Sc(_,e)):rE(e,Zs(_,e))}else{if(!X[g])return o?e:{};_=dE(e,g,f)}}u||(u=new $e);var S=u.get(e);if(S)return S;u.set(e,_),h_(e)?e.forEach(function(m){_.add(be(m,r,n,m,e,u))}):I_(e)&&e.forEach(function(m,y){_.set(y,be(m,r,n,y,e,u))});var v=N?c?Io:Eo:c?Te:ue,w=h?t:v(e);return we(w||e,function(m,y){w&&(y=m,m=e[y]),Bn(_,y,be(m,r,n,y,e,u))}),_}function Dc(e){var r=ue(e);return function(n){return eu(n,e,r)}}function eu(e,r,n){var i=n.length;if(e==null)return!i;for(e=H(e);i--;){var o=n[i],u=r[o],_=e[o];if(_===t&&!(o in e)||!u(_))return!1}return!0}function ru(e,r,n){if(typeof e!="function")throw new xe(C);return zn(function(){e.apply(t,n)},r)}function Vn(e,r,n,i){var o=-1,u=ut,_=!0,f=e.length,c=[],N=r.length;if(!f)return c;n&&(r=q(r,Se(n))),i?(u=xi,_=!1):r.length>=E&&(u=wn,_=!1,r=new Mr(r));e:for(;++o<f;){var h=e[o],g=n==null?h:n(h);if(h=i||h!==0?h:0,_&&g===g){for(var T=N;T--;)if(r[T]===g)continue e;c.push(h)}else u(r,g,i)||c.push(h)}return c}var Rr=mu(er),nu=mu(ji,!0);function vc(e,r){var n=!0;return Rr(e,function(i,o,u){return n=!!r(i,o,u),n}),n}function St(e,r,n){for(var i=-1,o=e.length;++i<o;){var u=e[i],_=r(u);if(_!=null&&(f===t?_===_&&!ve(_):n(_,f)))var f=_,c=u}return c}function mc(e,r,n,i){var o=e.length;for(n=U(n),n<0&&(n=-n>o?0:o+n),i=i===t||i>o?o:U(i),i<0&&(i+=o),i=n>i?0:g_(i);n<i;)e[n++]=r;return e}function tu(e,r){var n=[];return Rr(e,function(i,o,u){r(i,o,u)&&n.push(i)}),n}function fe(e,r,n,i,o){var u=-1,_=e.length;for(n||(n=NE),o||(o=[]);++u<_;){var f=e[u];r>0&&n(f)?r>1?fe(f,r-1,n,i,o):Ar(o,f):i||(o[o.length]=f)}return o}var Yi=Lu(),iu=Lu(!0);function er(e,r){return e&&Yi(e,r,ue)}function ji(e,r){return e&&iu(e,r,ue)}function Dt(e,r){return gr(r,function(n){return dr(e[n])})}function Vr(e,r){r=Dr(r,e);for(var n=0,i=r.length;e!=null&&n<i;)e=e[nr(r[n++])];return n&&n==i?e:t}function ou(e,r,n){var i=r(e);return F(e)?i:Ar(i,n(e))}function Ne(e){return e==null?e===t?nf:ef:br&&br in H(e)?fE(e):CE(e)}function Qi(e,r){return e>r}function Lc(e,r){return e!=null&&V.call(e,r)}function Pc(e,r){return e!=null&&r in H(e)}function Fc(e,r,n){return e>=Ee(r,n)&&e<ie(r,n)}function ki(e,r,n){for(var i=n?xi:ut,o=e[0].length,u=e.length,_=u,f=d(u),c=1/0,N=[];_--;){var h=e[_];_&&r&&(h=q(h,Se(r))),c=Ee(h.length,c),f[_]=!n&&(r||o>=120&&h.length>=120)?new Mr(_&&h):t}h=e[0];var g=-1,T=f[0];e:for(;++g<o&&N.length<c;){var S=h[g],v=r?r(S):S;if(S=n||S!==0?S:0,!(T?wn(T,v):i(N,v,n))){for(_=u;--_;){var w=f[_];if(!(w?wn(w,v):i(e[_],v,n)))continue e}T&&T.push(v),N.push(S)}}return N}function Uc(e,r,n,i){return er(e,function(o,u,_){r(i,n(o),u,_)}),i}function Wn(e,r,n){r=Dr(r,e),e=zu(e,r);var i=e==null?e:e[nr(Me(r))];return i==null?t:Re(i,e,n)}function su(e){return k(e)&&Ne(e)==kr}function wc(e){return k(e)&&Ne(e)==Un}function xc(e){return k(e)&&Ne(e)==vn}function Hn(e,r,n,i,o){return e===r?!0:e==null||r==null||!k(e)&&!k(r)?e!==e&&r!==r:yc(e,r,n,i,Hn,o)}function yc(e,r,n,i,o,u){var _=F(e),f=F(r),c=_?et:de(e),N=f?et:de(r);c=c==kr?ur:c,N=N==kr?ur:N;var h=c==ur,g=N==ur,T=c==N;if(T&&mr(e)){if(!mr(r))return!1;_=!0,h=!1}if(T&&!h)return u||(u=new $e),_||cn(e)?Bu(e,r,n,i,o,u):_E(e,r,c,n,i,o,u);if(!(n&Yr)){var S=h&&V.call(e,"__wrapped__"),v=g&&V.call(r,"__wrapped__");if(S||v){var w=S?e.value():e,m=v?r.value():r;return u||(u=new $e),o(w,m,n,i,u)}}return T?(u||(u=new $e),aE(e,r,n,i,o,u)):!1}function bc(e){return k(e)&&de(e)==He}function Zi(e,r,n,i){var o=n.length,u=o,_=!i;if(e==null)return!u;for(e=H(e);o--;){var f=n[o];if(_&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++o<u;){f=n[o];var c=f[0],N=e[c],h=f[1];if(_&&f[2]){if(N===t&&!(c in e))return!1}else{var g=new $e;if(i)var T=i(N,h,c,e,r,g);if(!(T===t?Hn(h,N,Yr|kn,i,g):T))return!1}}return!0}function uu(e){if(!Q(e)||pE(e))return!1;var r=dr(e)?bl:Df;return r.test(Hr(e))}function Gc(e){return k(e)&&Ne(e)==Ln}function Mc(e){return k(e)&&de(e)==Ke}function Bc(e){return k(e)&&Kt(e.length)&&!!z[Ne(e)]}function _u(e){return typeof e=="function"?e:e==null?Oe:typeof e=="object"?F(e)?lu(e[0],e[1]):fu(e):P_(e)}function eo(e){if(!$n(e))return Hl(e);var r=[];for(var n in H(e))V.call(e,n)&&n!="constructor"&&r.push(n);return r}function Vc(e){if(!Q(e))return OE(e);var r=$n(e),n=[];for(var i in e)i=="constructor"&&(r||!V.call(e,i))||n.push(i);return n}function ro(e,r){return e<r}function au(e,r){var n=-1,i=Ae(e)?d(e.length):[];return Rr(e,function(o,u,_){i[++n]=r(o,u,_)}),i}function fu(e){var r=ho(e);return r.length==1&&r[0][2]?Xu(r[0][0],r[0][1]):function(n){return n===e||Zi(n,e,r)}}function lu(e,r){return go(e)&&Ku(r)?Xu(nr(e),r):function(n){var i=Lo(n,e);return i===t&&i===r?Po(n,e):Hn(r,i,Yr|kn)}}function vt(e,r,n,i,o){e!==r&&Yi(r,function(u,_){if(o||(o=new $e),Q(u))Wc(e,r,_,n,vt,i,o);else{var f=i?i(To(e,_),u,_+"",e,r,o):t;f===t&&(f=u),Ji(e,_,f)}},Te)}function Wc(e,r,n,i,o,u,_){var f=To(e,n),c=To(r,n),N=_.get(c);if(N){Ji(e,n,N);return}var h=u?u(f,c,n+"",e,r,_):t,g=h===t;if(g){var T=F(c),S=!T&&mr(c),v=!T&&!S&&cn(c);h=c,T||S||v?F(f)?h=f:Z(f)?h=ge(f):S?(g=!1,h=Cu(c,!0)):v?(g=!1,h=Ru(c,!0)):h=[]:Jn(c)||Kr(c)?(h=f,Kr(f)?h=A_(f):(!Q(f)||dr(f))&&(h=Hu(c))):g=!1}g&&(_.set(c,h),o(h,c,i,u,_),_.delete(c)),Ji(e,n,h)}function cu(e,r){var n=e.length;if(n)return r+=r<0?n:0,Er(r,n)?e[r]:t}function Eu(e,r,n){r.length?r=q(r,function(u){return F(u)?function(_){return Vr(_,u.length===1?u[0]:u)}:u}):r=[Oe];var i=-1;r=q(r,Se(D()));var o=au(e,function(u,_,f){var c=q(r,function(N){return N(u)});return{criteria:c,index:++i,value:u}});return dl(o,function(u,_){return eE(u,_,n)})}function Hc(e,r){return du(e,r,function(n,i){return Po(e,i)})}function du(e,r,n){for(var i=-1,o=r.length,u={};++i<o;){var _=r[i],f=Vr(e,_);n(f,_)&&Kn(u,Dr(_,e),f)}return u}function Kc(e){return function(r){return Vr(r,e)}}function no(e,r,n,i){var o=i?El:rn,u=-1,_=r.length,f=e;for(e===r&&(r=ge(r)),n&&(f=q(e,Se(n)));++u<_;)for(var c=0,N=r[u],h=n?n(N):N;(c=o(f,h,c,i))>-1;)f!==e&&ht.call(f,c,1),ht.call(e,c,1);return e}function Iu(e,r){for(var n=e?r.length:0,i=n-1;n--;){var o=r[n];if(n==i||o!==u){var u=o;Er(o)?ht.call(e,o,1):so(e,o)}}return e}function to(e,r){return e+At(Ys()*(r-e+1))}function Xc(e,r,n,i){for(var o=-1,u=ie(gt((r-e)/(n||1)),0),_=d(u);u--;)_[i?u:++o]=e,e+=n;return _}function io(e,r){var n="";if(!e||r<1||r>pr)return n;do r%2&&(n+=e),r=At(r/2),r&&(e+=e);while(r);return n}function x(e,r){return Oo($u(e,r,Oe),e+"")}function $c(e){return ks(En(e))}function zc(e,r){var n=En(e);return Gt(n,Br(r,0,n.length))}function Kn(e,r,n,i){if(!Q(e))return e;r=Dr(r,e);for(var o=-1,u=r.length,_=u-1,f=e;f!=null&&++o<u;){var c=nr(r[o]),N=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(o!=_){var h=f[c];N=i?i(h,c,f):t,N===t&&(N=Q(h)?h:Er(r[o+1])?[]:{})}Bn(f,c,N),f=f[c]}return e}var Nu=Tt?function(e,r){return Tt.set(e,r),e}:Oe,Jc=pt?function(e,r){return pt(e,"toString",{configurable:!0,enumerable:!1,value:Uo(r),writable:!0})}:Oe;function qc(e){return Gt(En(e))}function Ge(e,r,n){var i=-1,o=e.length;r<0&&(r=-r>o?0:o+r),n=n>o?o:n,n<0&&(n+=o),o=r>n?0:n-r>>>0,r>>>=0;for(var u=d(o);++i<o;)u[i]=e[i+r];return u}function Yc(e,r){var n;return Rr(e,function(i,o,u){return n=r(i,o,u),!n}),!!n}function mt(e,r,n){var i=0,o=e==null?i:e.length;if(typeof r=="number"&&r===r&&o<=ja){for(;i<o;){var u=i+o>>>1,_=e[u];_!==null&&!ve(_)&&(n?_<=r:_<r)?i=u+1:o=u}return o}return oo(e,r,Oe,n)}function oo(e,r,n,i){var o=0,u=e==null?0:e.length;if(u===0)return 0;r=n(r);for(var _=r!==r,f=r===null,c=ve(r),N=r===t;o<u;){var h=At((o+u)/2),g=n(e[h]),T=g!==t,S=g===null,v=g===g,w=ve(g);if(_)var m=i||v;else N?m=v&&(i||T):f?m=v&&T&&(i||!S):c?m=v&&T&&!S&&(i||!w):S||w?m=!1:m=i?g<=r:g<r;m?o=h+1:u=h}return Ee(u,Ya)}function hu(e,r){for(var n=-1,i=e.length,o=0,u=[];++n<i;){var _=e[n],f=r?r(_):_;if(!n||!ze(f,c)){var c=f;u[o++]=_===0?0:_}}return u}function pu(e){return typeof e=="number"?e:ve(e)?Zn:+e}function De(e){if(typeof e=="string")return e;if(F(e))return q(e,De)+"";if(ve(e))return js?js.call(e):"";var r=e+"";return r=="0"&&1/e==-xr?"-0":r}function Sr(e,r,n){var i=-1,o=ut,u=e.length,_=!0,f=[],c=f;if(n)_=!1,o=xi;else if(u>=E){var N=r?null:sE(e);if(N)return at(N);_=!1,o=wn,c=new Mr}else c=r?[]:f;e:for(;++i<u;){var h=e[i],g=r?r(h):h;if(h=n||h!==0?h:0,_&&g===g){for(var T=c.length;T--;)if(c[T]===g)continue e;r&&c.push(g),f.push(h)}else o(c,g,n)||(c!==f&&c.push(g),f.push(h))}return f}function so(e,r){r=Dr(r,e);var n=-1,i=r.length;if(!i)return!0;for(var o=e==null||typeof e!="object"&&typeof e!="function";++n<i;){var u=r[n];if(typeof u=="string"){if(u==="__proto__"&&!V.call(e,"__proto__"))return!1;if(u==="constructor"&&n+1<i&&typeof r[n+1]=="string"&&r[n+1]==="prototype"){if(o&&n===0)continue;return!1}}}var _=zu(e,r);return _==null||delete _[nr(Me(r))]}function gu(e,r,n,i){return Kn(e,r,n(Vr(e,r)),i)}function Lt(e,r,n,i){for(var o=e.length,u=i?o:-1;(i?u--:++u<o)&&r(e[u],u,e););return n?Ge(e,i?0:u,i?u+1:o):Ge(e,i?u+1:0,i?o:u)}function Au(e,r){var n=e;return n instanceof b&&(n=n.value()),yi(r,function(i,o){return o.func.apply(o.thisArg,Ar([i],o.args))},n)}function uo(e,r,n){var i=e.length;if(i<2)return i?Sr(e[0]):[];for(var o=-1,u=d(i);++o<i;)for(var _=e[o],f=-1;++f<i;)f!=o&&(u[o]=Vn(u[o]||_,e[f],r,n));return Sr(fe(u,1),r,n)}function Tu(e,r,n){for(var i=-1,o=e.length,u=r.length,_={};++i<o;){var f=i<u?r[i]:t;n(_,e[i],f)}return _}function _o(e){return Z(e)?e:[]}function ao(e){return typeof e=="function"?e:Oe}function Dr(e,r){return F(e)?e:go(e,r)?[e]:ju(W(e))}var jc=x;function vr(e,r,n){var i=e.length;return n=n===t?i:n,!r&&n>=i?e:Ge(e,r,n)}var Ou=Gl||function(e){return se.clearTimeout(e)};function Cu(e,r){if(r)return e.slice();var n=e.length,i=Xs?Xs(n):new e.constructor(n);return e.copy(i),i}function fo(e){var r=new e.constructor(e.byteLength);return new It(r).set(new It(e)),r}function Qc(e,r){var n=r?fo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function kc(e){var r=new e.constructor(e.source,ss.exec(e));return r.lastIndex=e.lastIndex,r}function Zc(e){return Mn?H(Mn.call(e)):{}}function Ru(e,r){var n=r?fo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Su(e,r){if(e!==r){var n=e!==t,i=e===null,o=e===e,u=ve(e),_=r!==t,f=r===null,c=r===r,N=ve(r);if(!f&&!N&&!u&&e>r||u&&_&&c&&!f&&!N||i&&_&&c||!n&&c||!o)return 1;if(!i&&!u&&!N&&e<r||N&&n&&o&&!i&&!u||f&&n&&o||!_&&o||!c)return-1}return 0}function eE(e,r,n){for(var i=-1,o=e.criteria,u=r.criteria,_=o.length,f=n.length;++i<_;){var c=Su(o[i],u[i]);if(c){if(i>=f)return c;var N=n[i];return c*(N=="desc"?-1:1)}}return e.index-r.index}function Du(e,r,n,i){for(var o=-1,u=e.length,_=n.length,f=-1,c=r.length,N=ie(u-_,0),h=d(c+N),g=!i;++f<c;)h[f]=r[f];for(;++o<_;)(g||o<u)&&(h[n[o]]=e[o]);for(;N--;)h[f++]=e[o++];return h}function vu(e,r,n,i){for(var o=-1,u=e.length,_=-1,f=n.length,c=-1,N=r.length,h=ie(u-f,0),g=d(h+N),T=!i;++o<h;)g[o]=e[o];for(var S=o;++c<N;)g[S+c]=r[c];for(;++_<f;)(T||o<u)&&(g[S+n[_]]=e[o++]);return g}function ge(e,r){var n=-1,i=e.length;for(r||(r=d(i));++n<i;)r[n]=e[n];return r}function rr(e,r,n,i){var o=!n;n||(n={});for(var u=-1,_=r.length;++u<_;){var f=r[u],c=i?i(n[f],e[f],f,n,e):t;c===t&&(c=e[f]),o?fr(n,f,c):Bn(n,f,c)}return n}function rE(e,r){return rr(e,po(e),r)}function nE(e,r){return rr(e,Vu(e),r)}function Pt(e,r){return function(n,i){var o=F(n)?ul:Rc,u=r?r():{};return o(n,e,D(i,2),u)}}function an(e){return x(function(r,n){var i=-1,o=n.length,u=o>1?n[o-1]:t,_=o>2?n[2]:t;for(u=e.length>3&&typeof u=="function"?(o--,u):t,_&&he(n[0],n[1],_)&&(u=o<3?t:u,o=1),r=H(r);++i<o;){var f=n[i];f&&e(r,f,i,u)}return r})}function mu(e,r){return function(n,i){if(n==null)return n;if(!Ae(n))return e(n,i);for(var o=n.length,u=r?o:-1,_=H(n);(r?u--:++u<o)&&i(_[u],u,_)!==!1;);return n}}function Lu(e){return function(r,n,i){for(var o=-1,u=H(r),_=i(r),f=_.length;f--;){var c=_[e?f:++o];if(n(u[c],c,u)===!1)break}return r}}function tE(e,r,n){var i=r&Fe,o=Xn(e);function u(){var _=this&&this!==se&&this instanceof u?o:e;return _.apply(i?n:this,arguments)}return u}function Pu(e){return function(r){r=W(r);var n=nn(r)?Xe(r):t,i=n?n[0]:r.charAt(0),o=n?vr(n,1).join(""):r.slice(1);return i[e]()+o}}function fn(e){return function(r){return yi(m_(v_(r).replace(Jf,"")),e,"")}}function Xn(e){return function(){var r=arguments;switch(r.length){case 0:return new e;case 1:return new e(r[0]);case 2:return new e(r[0],r[1]);case 3:return new e(r[0],r[1],r[2]);case 4:return new e(r[0],r[1],r[2],r[3]);case 5:return new e(r[0],r[1],r[2],r[3],r[4]);case 6:return new e(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new e(r[0],r[1],r[2],r[3],r[4],r[5],r[6])}var n=_n(e.prototype),i=e.apply(n,r);return Q(i)?i:n}}function iE(e,r,n){var i=Xn(e);function o(){for(var u=arguments.length,_=d(u),f=u,c=ln(o);f--;)_[f]=arguments[f];var N=u<3&&_[0]!==c&&_[u-1]!==c?[]:Tr(_,c);if(u-=N.length,u<n)return yu(e,r,Ft,o.placeholder,t,_,N,t,t,n-u);var h=this&&this!==se&&this instanceof o?i:e;return Re(h,this,_)}return o}function Fu(e){return function(r,n,i){var o=H(r);if(!Ae(r)){var u=D(n,3);r=ue(r),n=function(f){return u(o[f],f,o)}}var _=e(r,n,i);return _>-1?o[u?r[_]:_]:t}}function Uu(e){return cr(function(r){var n=r.length,i=n,o=ye.prototype.thru;for(e&&r.reverse();i--;){var u=r[i];if(typeof u!="function")throw new xe(C);if(o&&!_&&yt(u)=="wrapper")var _=new ye([],!0)}for(i=_?i:n;++i<n;){u=r[i];var f=yt(u),c=f=="wrapper"?No(u):t;c&&Ao(c[0])&&c[1]==(sr|Qe|ke|Sn)&&!c[4].length&&c[9]==1?_=_[yt(c[0])].apply(_,c[3]):_=u.length==1&&Ao(u)?_[f]():_.thru(u)}return function(){var N=arguments,h=N[0];if(_&&N.length==1&&F(h))return _.plant(h).value();for(var g=0,T=n?r[g].apply(this,N):h;++g<n;)T=r[g].call(this,T);return T}})}function Ft(e,r,n,i,o,u,_,f,c,N){var h=r&sr,g=r&Fe,T=r&wr,S=r&(Qe|jr),v=r&Ii,w=T?t:Xn(e);function m(){for(var y=arguments.length,G=d(y),me=y;me--;)G[me]=arguments[me];if(S)var pe=ln(m),Le=Nl(G,pe);if(i&&(G=Du(G,i,o,S)),u&&(G=vu(G,u,_,S)),y-=Le,S&&y<N){var ee=Tr(G,pe);return yu(e,r,Ft,m.placeholder,n,G,ee,f,c,N-y)}var Je=g?n:this,Nr=T?Je[e]:e;return y=G.length,f?G=RE(G,f):v&&y>1&&G.reverse(),h&&c<y&&(G.length=c),this&&this!==se&&this instanceof m&&(Nr=w||Xn(Nr)),Nr.apply(Je,G)}return m}function wu(e,r){return function(n,i){return Uc(n,e,r(i),{})}}function Ut(e,r){return function(n,i){var o;if(n===t&&i===t)return r;if(n!==t&&(o=n),i!==t){if(o===t)return i;typeof n=="string"||typeof i=="string"?(n=De(n),i=De(i)):(n=pu(n),i=pu(i)),o=e(n,i)}return o}}function lo(e){return cr(function(r){return r=q(r,Se(D())),x(function(n){var i=this;return e(r,function(o){return Re(o,i,n)})})})}function wt(e,r){r=r===t?" ":De(r);var n=r.length;if(n<2)return n?io(r,e):r;var i=io(r,gt(e/tn(r)));return nn(r)?vr(Xe(i),0,e).join(""):i.slice(0,e)}function oE(e,r,n,i){var o=r&Fe,u=Xn(e);function _(){for(var f=-1,c=arguments.length,N=-1,h=i.length,g=d(h+c),T=this&&this!==se&&this instanceof _?u:e;++N<h;)g[N]=i[N];for(;c--;)g[N++]=arguments[++f];return Re(T,o?n:this,g)}return _}function xu(e){return function(r,n,i){return i&&typeof i!="number"&&he(r,n,i)&&(n=i=t),r=Ir(r),n===t?(n=r,r=0):n=Ir(n),i=i===t?r<n?1:-1:Ir(i),Xc(r,n,i,e)}}function xt(e){return function(r,n){return typeof r=="string"&&typeof n=="string"||(r=Be(r),n=Be(n)),e(r,n)}}function yu(e,r,n,i,o,u,_,f,c,N){var h=r&Qe,g=h?_:t,T=h?t:_,S=h?u:t,v=h?t:u;r|=h?ke:Qr,r&=~(h?Qr:ke),r&Zo||(r&=~(Fe|wr));var w=[e,r,o,S,g,v,T,f,c,N],m=n.apply(t,w);return Ao(e)&&Ju(m,w),m.placeholder=i,qu(m,e,r)}function co(e){var r=te[e];return function(n,i){if(n=Be(n),i=i==null?0:Ee(U(i),292),i&&qs(n)){var o=(W(n)+"e").split("e"),u=r(o[0]+"e"+(+o[1]+i));return o=(W(u)+"e").split("e"),+(o[0]+"e"+(+o[1]-i))}return r(n)}}var sE=sn&&1/at(new sn([,-0]))[1]==xr?function(e){return new sn(e)}:yo;function bu(e){return function(r){var n=de(r);return n==He?Hi(r):n==Ke?Cl(r):Il(r,e(r))}}function lr(e,r,n,i,o,u,_,f){var c=r≀if(!c&&typeof e!="function")throw new xe(C);var N=i?i.length:0;if(N||(r&=~(ke|Qr),i=o=t),_=_===t?_:ie(U(_),0),f=f===t?f:U(f),N-=o?o.length:0,r&Qr){var h=i,g=o;i=o=t}var T=c?t:No(e),S=[e,r,n,i,o,h,g,u,_,f];if(T&&TE(S,T),e=S[0],r=S[1],n=S[2],i=S[3],o=S[4],f=S[9]=S[9]===t?c?0:e.length:ie(S[9]-N,0),!f&&r&(Qe|jr)&&(r&=~(Qe|jr)),!r||r==Fe)var v=tE(e,r,n);else r==Qe||r==jr?v=iE(e,r,f):(r==ke||r==(Fe|ke))&&!o.length?v=oE(e,r,n,i):v=Ft.apply(t,S);var w=T?Nu:Ju;return qu(w(v,S),e,r)}function Gu(e,r,n,i){return e===t||ze(e,on[n])&&!V.call(i,n)?r:e}function Mu(e,r,n,i,o,u){return Q(e)&&Q(r)&&(u.set(r,e),vt(e,r,t,Mu,u),u.delete(r)),e}function uE(e){return Jn(e)?t:e}function Bu(e,r,n,i,o,u){var _=n&Yr,f=e.length,c=r.length;if(f!=c&&!(_&&c>f))return!1;var N=u.get(e),h=u.get(r);if(N&&h)return N==r&&h==e;var g=-1,T=!0,S=n&kn?new Mr:t;for(u.set(e,r),u.set(r,e);++g<f;){var v=e[g],w=r[g];if(i)var m=_?i(w,v,g,r,e,u):i(v,w,g,e,r,u);if(m!==t){if(m)continue;T=!1;break}if(S){if(!bi(r,function(y,G){if(!wn(S,G)&&(v===y||o(v,y,n,i,u)))return S.push(G)})){T=!1;break}}else if(!(v===w||o(v,w,n,i,u))){T=!1;break}}return u.delete(e),u.delete(r),T}function _E(e,r,n,i,o,u,_){switch(n){case Zr:if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset)return!1;e=e.buffer,r=r.buffer;case Un:return!(e.byteLength!=r.byteLength||!u(new It(e),new It(r)));case Dn:case vn:case mn:return ze(+e,+r);case rt:return e.name==r.name&&e.message==r.message;case Ln:case Pn:return e==r+"";case He:var f=Hi;case Ke:var c=i&Yr;if(f||(f=at),e.size!=r.size&&!c)return!1;var N=_.get(e);if(N)return N==r;i|=kn,_.set(e,r);var h=Bu(f(e),f(r),i,o,u,_);return _.delete(e),h;case tt:if(Mn)return Mn.call(e)==Mn.call(r)}return!1}function aE(e,r,n,i,o,u){var _=n&Yr,f=Eo(e),c=f.length,N=Eo(r),h=N.length;if(c!=h&&!_)return!1;for(var g=c;g--;){var T=f[g];if(!(_?T in r:V.call(r,T)))return!1}var S=u.get(e),v=u.get(r);if(S&&v)return S==r&&v==e;var w=!0;u.set(e,r),u.set(r,e);for(var m=_;++g<c;){T=f[g];var y=e[T],G=r[T];if(i)var me=_?i(G,y,T,r,e,u):i(y,G,T,e,r,u);if(!(me===t?y===G||o(y,G,n,i,u):me)){w=!1;break}m||(m=T=="constructor")}if(w&&!m){var pe=e.constructor,Le=r.constructor;pe!=Le&&"constructor"in e&&"constructor"in r&&!(typeof pe=="function"&&pe instanceof pe&&typeof Le=="function"&&Le instanceof Le)&&(w=!1)}return u.delete(e),u.delete(r),w}function cr(e){return Oo($u(e,t,e_),e+"")}function Eo(e){return ou(e,ue,po)}function Io(e){return ou(e,Te,Vu)}var No=Tt?function(e){return Tt.get(e)}:yo;function yt(e){for(var r=e.name+"",n=un[r],i=V.call(un,r)?n.length:0;i--;){var o=n[i],u=o.func;if(u==null||u==e)return o.name}return r}function ln(e){var r=V.call(s,"placeholder")?s:e;return r.placeholder}function D(){var e=s.iteratee||wo;return e=e===wo?_u:e,arguments.length?e(arguments[0],arguments[1]):e}function bt(e,r){var n=e.__data__;return hE(r)?n[typeof r=="string"?"string":"hash"]:n.map}function ho(e){for(var r=ue(e),n=r.length;n--;){var i=r[n],o=e[i];r[n]=[i,o,Ku(o)]}return r}function Wr(e,r){var n=Al(e,r);return uu(n)?n:t}function fE(e){var r=V.call(e,br),n=e[br];try{e[br]=t;var i=!0}catch{}var o=Et.call(e);return i&&(r?e[br]=n:delete e[br]),o}var po=Xi?function(e){return e==null?[]:(e=H(e),gr(Xi(e),function(r){return zs.call(e,r)}))}:bo,Vu=Xi?function(e){for(var r=[];e;)Ar(r,po(e)),e=Nt(e);return r}:bo,de=Ne;($i&&de(new $i(new ArrayBuffer(1)))!=Zr||yn&&de(new yn)!=He||zi&&de(zi.resolve())!=ns||sn&&de(new sn)!=Ke||bn&&de(new bn)!=Fn)&&(de=function(e){var r=Ne(e),n=r==ur?e.constructor:t,i=n?Hr(n):"";if(i)switch(i){case zl:return Zr;case Jl:return He;case ql:return ns;case Yl:return Ke;case jl:return Fn}return r});function lE(e,r,n){for(var i=-1,o=n.length;++i<o;){var u=n[i],_=u.size;switch(u.type){case"drop":e+=_;break;case"dropRight":r-=_;break;case"take":r=Ee(r,e+_);break;case"takeRight":e=ie(e,r-_);break}}return{start:e,end:r}}function cE(e){var r=e.match(pf);return r?r[1].split(gf):[]}function Wu(e,r,n){r=Dr(r,e);for(var i=-1,o=r.length,u=!1;++i<o;){var _=nr(r[i]);if(!(u=e!=null&&n(e,_)))break;e=e[_]}return u||++i!=o?u:(o=e==null?0:e.length,!!o&&Kt(o)&&Er(_,o)&&(F(e)||Kr(e)))}function EE(e){var r=e.length,n=new e.constructor(r);return r&&typeof e[0]=="string"&&V.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function Hu(e){return typeof e.constructor=="function"&&!$n(e)?_n(Nt(e)):{}}function dE(e,r,n){var i=e.constructor;switch(r){case Un:return fo(e);case Dn:case vn:return new i(+e);case Zr:return Qc(e,n);case Ni:case hi:case pi:case gi:case Ai:case Ti:case Oi:case Ci:case Ri:return Ru(e,n);case He:return new i;case mn:case Pn:return new i(e);case Ln:return kc(e);case Ke:return new i;case tt:return Zc(e)}}function IE(e,r){var n=r.length;if(!n)return e;var i=n-1;return r[i]=(n>1?"& ":"")+r[i],r=r.join(n>2?", ":" "),e.replace(hf,`{
|
|
2
|
-
/* [wrapped with `+r+`] */
|
|
3
|
-
`)}function NE(e){return F(e)||Kr(e)||!!(Js&&e&&e[Js])}function Er(e,r){var n=typeof e;return r=r??pr,!!r&&(n=="number"||n!="symbol"&&mf.test(e))&&e>-1&&e%1==0&&e<r}function he(e,r,n){if(!Q(n))return!1;var i=typeof r;return(i=="number"?Ae(n)&&Er(r,n.length):i=="string"&&r in n)?ze(n[r],e):!1}function go(e,r){if(F(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||ve(e)?!0:Ef.test(e)||!cf.test(e)||r!=null&&e in H(r)}function hE(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}function Ao(e){var r=yt(e),n=s[r];if(typeof n!="function"||!(r in b.prototype))return!1;if(e===n)return!0;var i=No(n);return!!i&&e===i[0]}function pE(e){return!!Ks&&Ks in e}var gE=lt?dr:Go;function $n(e){var r=e&&e.constructor,n=typeof r=="function"&&r.prototype||on;return e===n}function Ku(e){return e===e&&!Q(e)}function Xu(e,r){return function(n){return n==null?!1:n[e]===r&&(r!==t||e in H(n))}}function AE(e){var r=Wt(e,function(i){return n.size===Wa&&n.clear(),i}),n=r.cache;return r}function TE(e,r){var n=e[1],i=r[1],o=n|i,u=o<(Fe|wr|sr),_=i==sr&&n==Qe||i==sr&&n==Sn&&e[7].length<=r[8]||i==(sr|Sn)&&r[7].length<=r[8]&&n==Qe;if(!(u||_))return e;i&Fe&&(e[2]=r[2],o|=n&Fe?0:Zo);var f=r[3];if(f){var c=e[3];e[3]=c?Du(c,f,r[4]):f,e[4]=c?Tr(e[3],Qn):r[4]}return f=r[5],f&&(c=e[5],e[5]=c?vu(c,f,r[6]):f,e[6]=c?Tr(e[5],Qn):r[6]),f=r[7],f&&(e[7]=f),i&sr&&(e[8]=e[8]==null?r[8]:Ee(e[8],r[8])),e[9]==null&&(e[9]=r[9]),e[0]=r[0],e[1]=o,e}function OE(e){var r=[];if(e!=null)for(var n in H(e))r.push(n);return r}function CE(e){return Et.call(e)}function $u(e,r,n){return r=ie(r===t?e.length-1:r,0),function(){for(var i=arguments,o=-1,u=ie(i.length-r,0),_=d(u);++o<u;)_[o]=i[r+o];o=-1;for(var f=d(r+1);++o<r;)f[o]=i[o];return f[r]=n(_),Re(e,this,f)}}function zu(e,r){return r.length<2?e:Vr(e,Ge(r,0,-1))}function RE(e,r){for(var n=e.length,i=Ee(r.length,n),o=ge(e);i--;){var u=r[i];e[i]=Er(u,n)?o[u]:t}return e}function To(e,r){if(!(r==="constructor"&&typeof e[r]=="function")&&r!="__proto__")return e[r]}var Ju=Yu(Nu),zn=Bl||function(e,r){return se.setTimeout(e,r)},Oo=Yu(Jc);function qu(e,r,n){var i=r+"";return Oo(e,IE(i,SE(cE(i),n)))}function Yu(e){var r=0,n=0;return function(){var i=Kl(),o=$a-(i-n);if(n=i,o>0){if(++r>=Xa)return arguments[0]}else r=0;return e.apply(t,arguments)}}function Gt(e,r){var n=-1,i=e.length,o=i-1;for(r=r===t?i:r;++n<r;){var u=to(n,o),_=e[u];e[u]=e[n],e[n]=_}return e.length=r,e}var ju=AE(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(df,function(n,i,o,u){r.push(o?u.replace(Of,"$1"):i||n)}),r});function nr(e){if(typeof e=="string"||ve(e))return e;var r=e+"";return r=="0"&&1/e==-xr?"-0":r}function Hr(e){if(e!=null){try{return ct.call(e)}catch{}try{return e+""}catch{}}return""}function SE(e,r){return we(Qa,function(n){var i="_."+n[0];r&n[1]&&!ut(e,i)&&e.push(i)}),e.sort()}function Qu(e){if(e instanceof b)return e.clone();var r=new ye(e.__wrapped__,e.__chain__);return r.__actions__=ge(e.__actions__),r.__index__=e.__index__,r.__values__=e.__values__,r}function DE(e,r,n){(n?he(e,r,n):r===t)?r=1:r=ie(U(r),0);var i=e==null?0:e.length;if(!i||r<1)return[];for(var o=0,u=0,_=d(gt(i/r));o<i;)_[u++]=Ge(e,o,o+=r);return _}function vE(e){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var u=e[r];u&&(o[i++]=u)}return o}function mE(){var e=arguments.length;if(!e)return[];for(var r=d(e-1),n=arguments[0],i=e;i--;)r[i-1]=arguments[i];return Ar(F(n)?ge(n):[n],fe(r,1))}var LE=x(function(e,r){return Z(e)?Vn(e,fe(r,1,Z,!0)):[]}),PE=x(function(e,r){var n=Me(r);return Z(n)&&(n=t),Z(e)?Vn(e,fe(r,1,Z,!0),D(n,2)):[]}),FE=x(function(e,r){var n=Me(r);return Z(n)&&(n=t),Z(e)?Vn(e,fe(r,1,Z,!0),t,n):[]});function UE(e,r,n){var i=e==null?0:e.length;return i?(r=n||r===t?1:U(r),Ge(e,r<0?0:r,i)):[]}function wE(e,r,n){var i=e==null?0:e.length;return i?(r=n||r===t?1:U(r),r=i-r,Ge(e,0,r<0?0:r)):[]}function xE(e,r){return e&&e.length?Lt(e,D(r,3),!0,!0):[]}function yE(e,r){return e&&e.length?Lt(e,D(r,3),!0):[]}function bE(e,r,n,i){var o=e==null?0:e.length;return o?(n&&typeof n!="number"&&he(e,r,n)&&(n=0,i=o),mc(e,r,n,i)):[]}function ku(e,r,n){var i=e==null?0:e.length;if(!i)return-1;var o=n==null?0:U(n);return o<0&&(o=ie(i+o,0)),_t(e,D(r,3),o)}function Zu(e,r,n){var i=e==null?0:e.length;if(!i)return-1;var o=i-1;return n!==t&&(o=U(n),o=n<0?ie(i+o,0):Ee(o,i-1)),_t(e,D(r,3),o,!0)}function e_(e){var r=e==null?0:e.length;return r?fe(e,1):[]}function GE(e){var r=e==null?0:e.length;return r?fe(e,xr):[]}function ME(e,r){var n=e==null?0:e.length;return n?(r=r===t?1:U(r),fe(e,r)):[]}function BE(e){for(var r=-1,n=e==null?0:e.length,i={};++r<n;){var o=e[r];i[o[0]]=o[1]}return i}function r_(e){return e&&e.length?e[0]:t}function VE(e,r,n){var i=e==null?0:e.length;if(!i)return-1;var o=n==null?0:U(n);return o<0&&(o=ie(i+o,0)),rn(e,r,o)}function WE(e){var r=e==null?0:e.length;return r?Ge(e,0,-1):[]}var HE=x(function(e){var r=q(e,_o);return r.length&&r[0]===e[0]?ki(r):[]}),KE=x(function(e){var r=Me(e),n=q(e,_o);return r===Me(n)?r=t:n.pop(),n.length&&n[0]===e[0]?ki(n,D(r,2)):[]}),XE=x(function(e){var r=Me(e),n=q(e,_o);return r=typeof r=="function"?r:t,r&&n.pop(),n.length&&n[0]===e[0]?ki(n,t,r):[]});function $E(e,r){return e==null?"":Wl.call(e,r)}function Me(e){var r=e==null?0:e.length;return r?e[r-1]:t}function zE(e,r,n){var i=e==null?0:e.length;if(!i)return-1;var o=i;return n!==t&&(o=U(n),o=o<0?ie(i+o,0):Ee(o,i-1)),r===r?Sl(e,r,o):_t(e,ys,o,!0)}function JE(e,r){return e&&e.length?cu(e,U(r)):t}var qE=x(n_);function n_(e,r){return e&&e.length&&r&&r.length?no(e,r):e}function YE(e,r,n){return e&&e.length&&r&&r.length?no(e,r,D(n,2)):e}function jE(e,r,n){return e&&e.length&&r&&r.length?no(e,r,t,n):e}var QE=cr(function(e,r){var n=e==null?0:e.length,i=qi(e,r);return Iu(e,q(r,function(o){return Er(o,n)?+o:o}).sort(Su)),i});function kE(e,r){var n=[];if(!(e&&e.length))return n;var i=-1,o=[],u=e.length;for(r=D(r,3);++i<u;){var _=e[i];r(_,i,e)&&(n.push(_),o.push(i))}return Iu(e,o),n}function Co(e){return e==null?e:$l.call(e)}function ZE(e,r,n){var i=e==null?0:e.length;return i?(n&&typeof n!="number"&&he(e,r,n)?(r=0,n=i):(r=r==null?0:U(r),n=n===t?i:U(n)),Ge(e,r,n)):[]}function e0(e,r){return mt(e,r)}function r0(e,r,n){return oo(e,r,D(n,2))}function n0(e,r){var n=e==null?0:e.length;if(n){var i=mt(e,r);if(i<n&&ze(e[i],r))return i}return-1}function t0(e,r){return mt(e,r,!0)}function i0(e,r,n){return oo(e,r,D(n,2),!0)}function o0(e,r){var n=e==null?0:e.length;if(n){var i=mt(e,r,!0)-1;if(ze(e[i],r))return i}return-1}function s0(e){return e&&e.length?hu(e):[]}function u0(e,r){return e&&e.length?hu(e,D(r,2)):[]}function _0(e){var r=e==null?0:e.length;return r?Ge(e,1,r):[]}function a0(e,r,n){return e&&e.length?(r=n||r===t?1:U(r),Ge(e,0,r<0?0:r)):[]}function f0(e,r,n){var i=e==null?0:e.length;return i?(r=n||r===t?1:U(r),r=i-r,Ge(e,r<0?0:r,i)):[]}function l0(e,r){return e&&e.length?Lt(e,D(r,3),!1,!0):[]}function c0(e,r){return e&&e.length?Lt(e,D(r,3)):[]}var E0=x(function(e){return Sr(fe(e,1,Z,!0))}),d0=x(function(e){var r=Me(e);return Z(r)&&(r=t),Sr(fe(e,1,Z,!0),D(r,2))}),I0=x(function(e){var r=Me(e);return r=typeof r=="function"?r:t,Sr(fe(e,1,Z,!0),t,r)});function N0(e){return e&&e.length?Sr(e):[]}function h0(e,r){return e&&e.length?Sr(e,D(r,2)):[]}function p0(e,r){return r=typeof r=="function"?r:t,e&&e.length?Sr(e,t,r):[]}function Ro(e){if(!(e&&e.length))return[];var r=0;return e=gr(e,function(n){if(Z(n))return r=ie(n.length,r),!0}),Vi(r,function(n){return q(e,Gi(n))})}function t_(e,r){if(!(e&&e.length))return[];var n=Ro(e);return r==null?n:q(n,function(i){return Re(r,t,i)})}var g0=x(function(e,r){return Z(e)?Vn(e,r):[]}),A0=x(function(e){return uo(gr(e,Z))}),T0=x(function(e){var r=Me(e);return Z(r)&&(r=t),uo(gr(e,Z),D(r,2))}),O0=x(function(e){var r=Me(e);return r=typeof r=="function"?r:t,uo(gr(e,Z),t,r)}),C0=x(Ro);function R0(e,r){return Tu(e||[],r||[],Bn)}function S0(e,r){return Tu(e||[],r||[],Kn)}var D0=x(function(e){var r=e.length,n=r>1?e[r-1]:t;return n=typeof n=="function"?(e.pop(),n):t,t_(e,n)});function i_(e){var r=s(e);return r.__chain__=!0,r}function v0(e,r){return r(e),e}function Mt(e,r){return r(e)}var m0=cr(function(e){var r=e.length,n=r?e[0]:0,i=this.__wrapped__,o=function(u){return qi(u,e)};return r>1||this.__actions__.length||!(i instanceof b)||!Er(n)?this.thru(o):(i=i.slice(n,+n+(r?1:0)),i.__actions__.push({func:Mt,args:[o],thisArg:t}),new ye(i,this.__chain__).thru(function(u){return r&&!u.length&&u.push(t),u}))});function L0(){return i_(this)}function P0(){return new ye(this.value(),this.__chain__)}function F0(){this.__values__===t&&(this.__values__=p_(this.value()));var e=this.__index__>=this.__values__.length,r=e?t:this.__values__[this.__index__++];return{done:e,value:r}}function U0(){return this}function w0(e){for(var r,n=this;n instanceof Ct;){var i=Qu(n);i.__index__=0,i.__values__=t,r?o.__wrapped__=i:r=i;var o=i;n=n.__wrapped__}return o.__wrapped__=e,r}function x0(){var e=this.__wrapped__;if(e instanceof b){var r=e;return this.__actions__.length&&(r=new b(this)),r=r.reverse(),r.__actions__.push({func:Mt,args:[Co],thisArg:t}),new ye(r,this.__chain__)}return this.thru(Co)}function y0(){return Au(this.__wrapped__,this.__actions__)}var b0=Pt(function(e,r,n){V.call(e,n)?++e[n]:fr(e,n,1)});function G0(e,r,n){var i=F(e)?ws:vc;return n&&he(e,r,n)&&(r=t),i(e,D(r,3))}function M0(e,r){var n=F(e)?gr:tu;return n(e,D(r,3))}var B0=Fu(ku),V0=Fu(Zu);function W0(e,r){return fe(Bt(e,r),1)}function H0(e,r){return fe(Bt(e,r),xr)}function K0(e,r,n){return n=n===t?1:U(n),fe(Bt(e,r),n)}function o_(e,r){var n=F(e)?we:Rr;return n(e,D(r,3))}function s_(e,r){var n=F(e)?_l:nu;return n(e,D(r,3))}var X0=Pt(function(e,r,n){V.call(e,n)?e[n].push(r):fr(e,n,[r])});function $0(e,r,n,i){e=Ae(e)?e:En(e),n=n&&!i?U(n):0;var o=e.length;return n<0&&(n=ie(o+n,0)),Xt(e)?n<=o&&e.indexOf(r,n)>-1:!!o&&rn(e,r,n)>-1}var z0=x(function(e,r,n){var i=-1,o=typeof r=="function",u=Ae(e)?d(e.length):[];return Rr(e,function(_){u[++i]=o?Re(r,_,n):Wn(_,r,n)}),u}),J0=Pt(function(e,r,n){fr(e,n,r)});function Bt(e,r){var n=F(e)?q:au;return n(e,D(r,3))}function q0(e,r,n,i){return e==null?[]:(F(r)||(r=r==null?[]:[r]),n=i?t:n,F(n)||(n=n==null?[]:[n]),Eu(e,r,n))}var Y0=Pt(function(e,r,n){e[n?0:1].push(r)},function(){return[[],[]]});function j0(e,r,n){var i=F(e)?yi:Gs,o=arguments.length<3;return i(e,D(r,4),n,o,Rr)}function Q0(e,r,n){var i=F(e)?al:Gs,o=arguments.length<3;return i(e,D(r,4),n,o,nu)}function k0(e,r){var n=F(e)?gr:tu;return n(e,Ht(D(r,3)))}function Z0(e){var r=F(e)?ks:$c;return r(e)}function ed(e,r,n){(n?he(e,r,n):r===t)?r=1:r=U(r);var i=F(e)?Oc:zc;return i(e,r)}function rd(e){var r=F(e)?Cc:qc;return r(e)}function nd(e){if(e==null)return 0;if(Ae(e))return Xt(e)?tn(e):e.length;var r=de(e);return r==He||r==Ke?e.size:eo(e).length}function td(e,r,n){var i=F(e)?bi:Yc;return n&&he(e,r,n)&&(r=t),i(e,D(r,3))}var id=x(function(e,r){if(e==null)return[];var n=r.length;return n>1&&he(e,r[0],r[1])?r=[]:n>2&&he(r[0],r[1],r[2])&&(r=[r[0]]),Eu(e,fe(r,1),[])}),Vt=Ml||function(){return se.Date.now()};function od(e,r){if(typeof r!="function")throw new xe(C);return e=U(e),function(){if(--e<1)return r.apply(this,arguments)}}function u_(e,r,n){return r=n?t:r,r=e&&r==null?e.length:r,lr(e,sr,t,t,t,t,r)}function __(e,r){var n;if(typeof r!="function")throw new xe(C);return e=U(e),function(){return--e>0&&(n=r.apply(this,arguments)),e<=1&&(r=t),n}}var So=x(function(e,r,n){var i=Fe;if(n.length){var o=Tr(n,ln(So));i|=ke}return lr(e,i,r,n,o)}),a_=x(function(e,r,n){var i=Fe|wr;if(n.length){var o=Tr(n,ln(a_));i|=ke}return lr(r,i,e,n,o)});function f_(e,r,n){r=n?t:r;var i=lr(e,Qe,t,t,t,t,t,r);return i.placeholder=f_.placeholder,i}function l_(e,r,n){r=n?t:r;var i=lr(e,jr,t,t,t,t,t,r);return i.placeholder=l_.placeholder,i}function c_(e,r,n){var i,o,u,_,f,c,N=0,h=!1,g=!1,T=!0;if(typeof e!="function")throw new xe(C);r=Be(r)||0,Q(n)&&(h=!!n.leading,g="maxWait"in n,u=g?ie(Be(n.maxWait)||0,r):u,T="trailing"in n?!!n.trailing:T);function S(ee){var Je=i,Nr=o;return i=o=t,N=ee,_=e.apply(Nr,Je),_}function v(ee){return N=ee,f=zn(y,r),h?S(ee):_}function w(ee){var Je=ee-c,Nr=ee-N,F_=r-Je;return g?Ee(F_,u-Nr):F_}function m(ee){var Je=ee-c,Nr=ee-N;return c===t||Je>=r||Je<0||g&&Nr>=u}function y(){var ee=Vt();if(m(ee))return G(ee);f=zn(y,w(ee))}function G(ee){return f=t,T&&i?S(ee):(i=o=t,_)}function me(){f!==t&&Ou(f),N=0,i=c=o=f=t}function pe(){return f===t?_:G(Vt())}function Le(){var ee=Vt(),Je=m(ee);if(i=arguments,o=this,c=ee,Je){if(f===t)return v(c);if(g)return Ou(f),f=zn(y,r),S(c)}return f===t&&(f=zn(y,r)),_}return Le.cancel=me,Le.flush=pe,Le}var sd=x(function(e,r){return ru(e,1,r)}),ud=x(function(e,r,n){return ru(e,Be(r)||0,n)});function _d(e){return lr(e,Ii)}function Wt(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new xe(C);var n=function(){var i=arguments,o=r?r.apply(this,i):i[0],u=n.cache;if(u.has(o))return u.get(o);var _=e.apply(this,i);return n.cache=u.set(o,_)||u,_};return n.cache=new(Wt.Cache||ar),n}Wt.Cache=ar;function Ht(e){if(typeof e!="function")throw new xe(C);return function(){var r=arguments;switch(r.length){case 0:return!e.call(this);case 1:return!e.call(this,r[0]);case 2:return!e.call(this,r[0],r[1]);case 3:return!e.call(this,r[0],r[1],r[2])}return!e.apply(this,r)}}function ad(e){return __(2,e)}var fd=jc(function(e,r){r=r.length==1&&F(r[0])?q(r[0],Se(D())):q(fe(r,1),Se(D()));var n=r.length;return x(function(i){for(var o=-1,u=Ee(i.length,n);++o<u;)i[o]=r[o].call(this,i[o]);return Re(e,this,i)})}),Do=x(function(e,r){var n=Tr(r,ln(Do));return lr(e,ke,t,r,n)}),E_=x(function(e,r){var n=Tr(r,ln(E_));return lr(e,Qr,t,r,n)}),ld=cr(function(e,r){return lr(e,Sn,t,t,t,r)});function cd(e,r){if(typeof e!="function")throw new xe(C);return r=r===t?r:U(r),x(e,r)}function Ed(e,r){if(typeof e!="function")throw new xe(C);return r=r==null?0:ie(U(r),0),x(function(n){var i=n[r],o=vr(n,0,r);return i&&Ar(o,i),Re(e,this,o)})}function dd(e,r,n){var i=!0,o=!0;if(typeof e!="function")throw new xe(C);return Q(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),c_(e,r,{leading:i,maxWait:r,trailing:o})}function Id(e){return u_(e,1)}function Nd(e,r){return Do(ao(r),e)}function hd(){if(!arguments.length)return[];var e=arguments[0];return F(e)?e:[e]}function pd(e){return be(e,qr)}function gd(e,r){return r=typeof r=="function"?r:t,be(e,qr,r)}function Ad(e){return be(e,hr|qr)}function Td(e,r){return r=typeof r=="function"?r:t,be(e,hr|qr,r)}function Od(e,r){return r==null||eu(e,r,ue(r))}function ze(e,r){return e===r||e!==e&&r!==r}var Cd=xt(Qi),Rd=xt(function(e,r){return e>=r}),Kr=su((function(){return arguments})())?su:function(e){return k(e)&&V.call(e,"callee")&&!zs.call(e,"callee")},F=d.isArray,Sd=vs?Se(vs):wc;function Ae(e){return e!=null&&Kt(e.length)&&!dr(e)}function Z(e){return k(e)&&Ae(e)}function Dd(e){return e===!0||e===!1||k(e)&&Ne(e)==Dn}var mr=Vl||Go,vd=ms?Se(ms):xc;function md(e){return k(e)&&e.nodeType===1&&!Jn(e)}function Ld(e){if(e==null)return!0;if(Ae(e)&&(F(e)||typeof e=="string"||typeof e.splice=="function"||mr(e)||cn(e)||Kr(e)))return!e.length;var r=de(e);if(r==He||r==Ke)return!e.size;if($n(e))return!eo(e).length;for(var n in e)if(V.call(e,n))return!1;return!0}function Pd(e,r){return Hn(e,r)}function Fd(e,r,n){n=typeof n=="function"?n:t;var i=n?n(e,r):t;return i===t?Hn(e,r,t,n):!!i}function vo(e){if(!k(e))return!1;var r=Ne(e);return r==rt||r==Za||typeof e.message=="string"&&typeof e.name=="string"&&!Jn(e)}function Ud(e){return typeof e=="number"&&qs(e)}function dr(e){if(!Q(e))return!1;var r=Ne(e);return r==nt||r==rs||r==ka||r==rf}function d_(e){return typeof e=="number"&&e==U(e)}function Kt(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=pr}function Q(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}function k(e){return e!=null&&typeof e=="object"}var I_=Ls?Se(Ls):bc;function wd(e,r){return e===r||Zi(e,r,ho(r))}function xd(e,r,n){return n=typeof n=="function"?n:t,Zi(e,r,ho(r),n)}function yd(e){return N_(e)&&e!=+e}function bd(e){if(gE(e))throw new P(A);return uu(e)}function Gd(e){return e===null}function Md(e){return e==null}function N_(e){return typeof e=="number"||k(e)&&Ne(e)==mn}function Jn(e){if(!k(e)||Ne(e)!=ur)return!1;var r=Nt(e);if(r===null)return!0;var n=V.call(r,"constructor")&&r.constructor;return typeof n=="function"&&n instanceof n&&ct.call(n)==xl}var mo=Ps?Se(Ps):Gc;function Bd(e){return d_(e)&&e>=-pr&&e<=pr}var h_=Fs?Se(Fs):Mc;function Xt(e){return typeof e=="string"||!F(e)&&k(e)&&Ne(e)==Pn}function ve(e){return typeof e=="symbol"||k(e)&&Ne(e)==tt}var cn=Us?Se(Us):Bc;function Vd(e){return e===t}function Wd(e){return k(e)&&de(e)==Fn}function Hd(e){return k(e)&&Ne(e)==tf}var Kd=xt(ro),Xd=xt(function(e,r){return e<=r});function p_(e){if(!e)return[];if(Ae(e))return Xt(e)?Xe(e):ge(e);if(xn&&e[xn])return Ol(e[xn]());var r=de(e),n=r==He?Hi:r==Ke?at:En;return n(e)}function Ir(e){if(!e)return e===0?e:0;if(e=Be(e),e===xr||e===-xr){var r=e<0?-1:1;return r*qa}return e===e?e:0}function U(e){var r=Ir(e),n=r%1;return r===r?n?r-n:r:0}function g_(e){return e?Br(U(e),0,Ze):0}function Be(e){if(typeof e=="number")return e;if(ve(e))return Zn;if(Q(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=Q(r)?r+"":r}if(typeof e!="string")return e===0?e:+e;e=Ms(e);var n=Sf.test(e);return n||vf.test(e)?ol(e.slice(2),n?2:8):Rf.test(e)?Zn:+e}function A_(e){return rr(e,Te(e))}function $d(e){return e?Br(U(e),-pr,pr):e===0?e:0}function W(e){return e==null?"":De(e)}var zd=an(function(e,r){if($n(r)||Ae(r)){rr(r,ue(r),e);return}for(var n in r)V.call(r,n)&&Bn(e,n,r[n])}),T_=an(function(e,r){rr(r,Te(r),e)}),$t=an(function(e,r,n,i){rr(r,Te(r),e,i)}),Jd=an(function(e,r,n,i){rr(r,ue(r),e,i)}),qd=cr(qi);function Yd(e,r){var n=_n(e);return r==null?n:Zs(n,r)}var jd=x(function(e,r){e=H(e);var n=-1,i=r.length,o=i>2?r[2]:t;for(o&&he(r[0],r[1],o)&&(i=1);++n<i;)for(var u=r[n],_=Te(u),f=-1,c=_.length;++f<c;){var N=_[f],h=e[N];(h===t||ze(h,on[N])&&!V.call(e,N))&&(e[N]=u[N])}return e}),Qd=x(function(e){return e.push(t,Mu),Re(O_,t,e)});function kd(e,r){return xs(e,D(r,3),er)}function Zd(e,r){return xs(e,D(r,3),ji)}function eI(e,r){return e==null?e:Yi(e,D(r,3),Te)}function rI(e,r){return e==null?e:iu(e,D(r,3),Te)}function nI(e,r){return e&&er(e,D(r,3))}function tI(e,r){return e&&ji(e,D(r,3))}function iI(e){return e==null?[]:Dt(e,ue(e))}function oI(e){return e==null?[]:Dt(e,Te(e))}function Lo(e,r,n){var i=e==null?t:Vr(e,r);return i===t?n:i}function sI(e,r){return e!=null&&Wu(e,r,Lc)}function Po(e,r){return e!=null&&Wu(e,r,Pc)}var uI=wu(function(e,r,n){r!=null&&typeof r.toString!="function"&&(r=Et.call(r)),e[r]=n},Uo(Oe)),_I=wu(function(e,r,n){r!=null&&typeof r.toString!="function"&&(r=Et.call(r)),V.call(e,r)?e[r].push(n):e[r]=[n]},D),aI=x(Wn);function ue(e){return Ae(e)?Qs(e):eo(e)}function Te(e){return Ae(e)?Qs(e,!0):Vc(e)}function fI(e,r){var n={};return r=D(r,3),er(e,function(i,o,u){fr(n,r(i,o,u),i)}),n}function lI(e,r){var n={};return r=D(r,3),er(e,function(i,o,u){fr(n,o,r(i,o,u))}),n}var cI=an(function(e,r,n){vt(e,r,n)}),O_=an(function(e,r,n,i){vt(e,r,n,i)}),EI=cr(function(e,r){var n={};if(e==null)return n;var i=!1;r=q(r,function(u){return u=Dr(u,e),i||(i=u.length>1),u}),rr(e,Io(e),n),i&&(n=be(n,hr|ko|qr,uE));for(var o=r.length;o--;)so(n,r[o]);return n});function dI(e,r){return C_(e,Ht(D(r)))}var II=cr(function(e,r){return e==null?{}:Hc(e,r)});function C_(e,r){if(e==null)return{};var n=q(Io(e),function(i){return[i]});return r=D(r),du(e,n,function(i,o){return r(i,o[0])})}function NI(e,r,n){r=Dr(r,e);var i=-1,o=r.length;for(o||(o=1,e=t);++i<o;){var u=e==null?t:e[nr(r[i])];u===t&&(i=o,u=n),e=dr(u)?u.call(e):u}return e}function hI(e,r,n){return e==null?e:Kn(e,r,n)}function pI(e,r,n,i){return i=typeof i=="function"?i:t,e==null?e:Kn(e,r,n,i)}var R_=bu(ue),S_=bu(Te);function gI(e,r,n){var i=F(e),o=i||mr(e)||cn(e);if(r=D(r,4),n==null){var u=e&&e.constructor;o?n=i?new u:[]:Q(e)?n=dr(u)?_n(Nt(e)):{}:n={}}return(o?we:er)(e,function(_,f,c){return r(n,_,f,c)}),n}function AI(e,r){return e==null?!0:so(e,r)}function TI(e,r,n){return e==null?e:gu(e,r,ao(n))}function OI(e,r,n,i){return i=typeof i=="function"?i:t,e==null?e:gu(e,r,ao(n),i)}function En(e){return e==null?[]:Wi(e,ue(e))}function CI(e){return e==null?[]:Wi(e,Te(e))}function RI(e,r,n){return n===t&&(n=r,r=t),n!==t&&(n=Be(n),n=n===n?n:0),r!==t&&(r=Be(r),r=r===r?r:0),Br(Be(e),r,n)}function SI(e,r,n){return r=Ir(r),n===t?(n=r,r=0):n=Ir(n),e=Be(e),Fc(e,r,n)}function DI(e,r,n){if(n&&typeof n!="boolean"&&he(e,r,n)&&(r=n=t),n===t&&(typeof r=="boolean"?(n=r,r=t):typeof e=="boolean"&&(n=e,e=t)),e===t&&r===t?(e=0,r=1):(e=Ir(e),r===t?(r=e,e=0):r=Ir(r)),e>r){var i=e;e=r,r=i}if(n||e%1||r%1){var o=Ys();return Ee(e+o*(r-e+il("1e-"+((o+"").length-1))),r)}return to(e,r)}var vI=fn(function(e,r,n){return r=r.toLowerCase(),e+(n?D_(r):r)});function D_(e){return Fo(W(e).toLowerCase())}function v_(e){return e=W(e),e&&e.replace(Lf,hl).replace(qf,"")}function mI(e,r,n){e=W(e),r=De(r);var i=e.length;n=n===t?i:Br(U(n),0,i);var o=n;return n-=r.length,n>=0&&e.slice(n,o)==r}function LI(e){return e=W(e),e&&af.test(e)?e.replace(is,pl):e}function PI(e){return e=W(e),e&&If.test(e)?e.replace(Si,"\\$&"):e}var FI=fn(function(e,r,n){return e+(n?"-":"")+r.toLowerCase()}),UI=fn(function(e,r,n){return e+(n?" ":"")+r.toLowerCase()}),wI=Pu("toLowerCase");function xI(e,r,n){e=W(e),r=U(r);var i=r?tn(e):0;if(!r||i>=r)return e;var o=(r-i)/2;return wt(At(o),n)+e+wt(gt(o),n)}function yI(e,r,n){e=W(e),r=U(r);var i=r?tn(e):0;return r&&i<r?e+wt(r-i,n):e}function bI(e,r,n){e=W(e),r=U(r);var i=r?tn(e):0;return r&&i<r?wt(r-i,n)+e:e}function GI(e,r,n){return n||r==null?r=0:r&&(r=+r),Xl(W(e).replace(Di,""),r||0)}function MI(e,r,n){return(n?he(e,r,n):r===t)?r=1:r=U(r),io(W(e),r)}function BI(){var e=arguments,r=W(e[0]);return e.length<3?r:r.replace(e[1],e[2])}var VI=fn(function(e,r,n){return e+(n?"_":"")+r.toLowerCase()});function WI(e,r,n){return n&&typeof n!="number"&&he(e,r,n)&&(r=n=t),n=n===t?Ze:n>>>0,n?(e=W(e),e&&(typeof r=="string"||r!=null&&!mo(r))&&(r=De(r),!r&&nn(e))?vr(Xe(e),0,n):e.split(r,n)):[]}var HI=fn(function(e,r,n){return e+(n?" ":"")+Fo(r)});function KI(e,r,n){return e=W(e),n=n==null?0:Br(U(n),0,e.length),r=De(r),e.slice(n,n+r.length)==r}function XI(e,r,n){var i=s.templateSettings;n&&he(e,r,n)&&(r=t),e=W(e),r=$t({},r,i,Gu);var o=$t({},r.imports,i.imports,Gu),u=ue(o),_=Wi(o,u),f,c,N=0,h=r.interpolate||it,g="__p += '",T=Ki((r.escape||it).source+"|"+h.source+"|"+(h===os?Cf:it).source+"|"+(r.evaluate||it).source+"|$","g"),S="//# sourceURL="+(V.call(r,"sourceURL")?(r.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Zf+"]")+`
|
|
4
|
-
`;e.replace(T,function(m,y,G,me,pe,Le){return G||(G=me),g+=e.slice(N,Le).replace(Pf,gl),y&&(f=!0,g+=`' +
|
|
5
|
-
__e(`+y+`) +
|
|
6
|
-
'`),pe&&(c=!0,g+=`';
|
|
7
|
-
`+pe+`;
|
|
8
|
-
__p += '`),G&&(g+=`' +
|
|
9
|
-
((__t = (`+G+`)) == null ? '' : __t) +
|
|
10
|
-
'`),N=Le+m.length,m}),g+=`';
|
|
11
|
-
`;var v=V.call(r,"variable")&&r.variable;if(!v)g=`with (obj) {
|
|
12
|
-
`+g+`
|
|
13
|
-
}
|
|
14
|
-
`;else if(Tf.test(v))throw new P(M);g=(c?g.replace(of,""):g).replace(sf,"$1").replace(uf,"$1;"),g="function("+(v||"obj")+`) {
|
|
15
|
-
`+(v?"":`obj || (obj = {});
|
|
16
|
-
`)+"var __t, __p = ''"+(f?", __e = _.escape":"")+(c?`, __j = Array.prototype.join;
|
|
17
|
-
function print() { __p += __j.call(arguments, '') }
|
|
18
|
-
`:`;
|
|
19
|
-
`)+g+`return __p
|
|
20
|
-
}`;var w=L_(function(){return B(u,S+"return "+g).apply(t,_)});if(w.source=g,vo(w))throw w;return w}function $I(e){return W(e).toLowerCase()}function zI(e){return W(e).toUpperCase()}function JI(e,r,n){if(e=W(e),e&&(n||r===t))return Ms(e);if(!e||!(r=De(r)))return e;var i=Xe(e),o=Xe(r),u=Bs(i,o),_=Vs(i,o)+1;return vr(i,u,_).join("")}function qI(e,r,n){if(e=W(e),e&&(n||r===t))return e.slice(0,Hs(e)+1);if(!e||!(r=De(r)))return e;var i=Xe(e),o=Vs(i,Xe(r))+1;return vr(i,0,o).join("")}function YI(e,r,n){if(e=W(e),e&&(n||r===t))return e.replace(Di,"");if(!e||!(r=De(r)))return e;var i=Xe(e),o=Bs(i,Xe(r));return vr(i,o).join("")}function jI(e,r){var n=Ha,i=Ka;if(Q(r)){var o="separator"in r?r.separator:o;n="length"in r?U(r.length):n,i="omission"in r?De(r.omission):i}e=W(e);var u=e.length;if(nn(e)){var _=Xe(e);u=_.length}if(n>=u)return e;var f=n-tn(i);if(f<1)return i;var c=_?vr(_,0,f).join(""):e.slice(0,f);if(o===t)return c+i;if(_&&(f+=c.length-f),mo(o)){if(e.slice(f).search(o)){var N,h=c;for(o.global||(o=Ki(o.source,W(ss.exec(o))+"g")),o.lastIndex=0;N=o.exec(h);)var g=N.index;c=c.slice(0,g===t?f:g)}}else if(e.indexOf(De(o),f)!=f){var T=c.lastIndexOf(o);T>-1&&(c=c.slice(0,T))}return c+i}function QI(e){return e=W(e),e&&_f.test(e)?e.replace(ts,Dl):e}var kI=fn(function(e,r,n){return e+(n?" ":"")+r.toUpperCase()}),Fo=Pu("toUpperCase");function m_(e,r,n){return e=W(e),r=n?t:r,r===t?Tl(e)?Ll(e):cl(e):e.match(r)||[]}var L_=x(function(e,r){try{return Re(e,t,r)}catch(n){return vo(n)?n:new P(n)}}),ZI=cr(function(e,r){return we(r,function(n){n=nr(n),fr(e,n,So(e[n],e))}),e});function eN(e){var r=e==null?0:e.length,n=D();return e=r?q(e,function(i){if(typeof i[1]!="function")throw new xe(C);return[n(i[0]),i[1]]}):[],x(function(i){for(var o=-1;++o<r;){var u=e[o];if(Re(u[0],this,i))return Re(u[1],this,i)}})}function rN(e){return Dc(be(e,hr))}function Uo(e){return function(){return e}}function nN(e,r){return e==null||e!==e?r:e}var tN=Uu(),iN=Uu(!0);function Oe(e){return e}function wo(e){return _u(typeof e=="function"?e:be(e,hr))}function oN(e){return fu(be(e,hr))}function sN(e,r){return lu(e,be(r,hr))}var uN=x(function(e,r){return function(n){return Wn(n,e,r)}}),_N=x(function(e,r){return function(n){return Wn(e,n,r)}});function xo(e,r,n){var i=ue(r),o=Dt(r,i);n==null&&!(Q(r)&&(o.length||!i.length))&&(n=r,r=e,e=this,o=Dt(r,ue(r)));var u=!(Q(n)&&"chain"in n)||!!n.chain,_=dr(e);return we(o,function(f){var c=r[f];e[f]=c,_&&(e.prototype[f]=function(){var N=this.__chain__;if(u||N){var h=e(this.__wrapped__),g=h.__actions__=ge(this.__actions__);return g.push({func:c,args:arguments,thisArg:e}),h.__chain__=N,h}return c.apply(e,Ar([this.value()],arguments))})}),e}function aN(){return se._===this&&(se._=yl),this}function yo(){}function fN(e){return e=U(e),x(function(r){return cu(r,e)})}var lN=lo(q),cN=lo(ws),EN=lo(bi);function P_(e){return go(e)?Gi(nr(e)):Kc(e)}function dN(e){return function(r){return e==null?t:Vr(e,r)}}var IN=xu(),NN=xu(!0);function bo(){return[]}function Go(){return!1}function hN(){return{}}function pN(){return""}function gN(){return!0}function AN(e,r){if(e=U(e),e<1||e>pr)return[];var n=Ze,i=Ee(e,Ze);r=D(r),e-=Ze;for(var o=Vi(i,r);++n<e;)r(n);return o}function TN(e){return F(e)?q(e,nr):ve(e)?[e]:ge(ju(W(e)))}function ON(e){var r=++wl;return W(e)+r}var CN=Ut(function(e,r){return e+r},0),RN=co("ceil"),SN=Ut(function(e,r){return e/r},1),DN=co("floor");function vN(e){return e&&e.length?St(e,Oe,Qi):t}function mN(e,r){return e&&e.length?St(e,D(r,2),Qi):t}function LN(e){return bs(e,Oe)}function PN(e,r){return bs(e,D(r,2))}function FN(e){return e&&e.length?St(e,Oe,ro):t}function UN(e,r){return e&&e.length?St(e,D(r,2),ro):t}var wN=Ut(function(e,r){return e*r},1),xN=co("round"),yN=Ut(function(e,r){return e-r},0);function bN(e){return e&&e.length?Bi(e,Oe):0}function GN(e,r){return e&&e.length?Bi(e,D(r,2)):0}return s.after=od,s.ary=u_,s.assign=zd,s.assignIn=T_,s.assignInWith=$t,s.assignWith=Jd,s.at=qd,s.before=__,s.bind=So,s.bindAll=ZI,s.bindKey=a_,s.castArray=hd,s.chain=i_,s.chunk=DE,s.compact=vE,s.concat=mE,s.cond=eN,s.conforms=rN,s.constant=Uo,s.countBy=b0,s.create=Yd,s.curry=f_,s.curryRight=l_,s.debounce=c_,s.defaults=jd,s.defaultsDeep=Qd,s.defer=sd,s.delay=ud,s.difference=LE,s.differenceBy=PE,s.differenceWith=FE,s.drop=UE,s.dropRight=wE,s.dropRightWhile=xE,s.dropWhile=yE,s.fill=bE,s.filter=M0,s.flatMap=W0,s.flatMapDeep=H0,s.flatMapDepth=K0,s.flatten=e_,s.flattenDeep=GE,s.flattenDepth=ME,s.flip=_d,s.flow=tN,s.flowRight=iN,s.fromPairs=BE,s.functions=iI,s.functionsIn=oI,s.groupBy=X0,s.initial=WE,s.intersection=HE,s.intersectionBy=KE,s.intersectionWith=XE,s.invert=uI,s.invertBy=_I,s.invokeMap=z0,s.iteratee=wo,s.keyBy=J0,s.keys=ue,s.keysIn=Te,s.map=Bt,s.mapKeys=fI,s.mapValues=lI,s.matches=oN,s.matchesProperty=sN,s.memoize=Wt,s.merge=cI,s.mergeWith=O_,s.method=uN,s.methodOf=_N,s.mixin=xo,s.negate=Ht,s.nthArg=fN,s.omit=EI,s.omitBy=dI,s.once=ad,s.orderBy=q0,s.over=lN,s.overArgs=fd,s.overEvery=cN,s.overSome=EN,s.partial=Do,s.partialRight=E_,s.partition=Y0,s.pick=II,s.pickBy=C_,s.property=P_,s.propertyOf=dN,s.pull=qE,s.pullAll=n_,s.pullAllBy=YE,s.pullAllWith=jE,s.pullAt=QE,s.range=IN,s.rangeRight=NN,s.rearg=ld,s.reject=k0,s.remove=kE,s.rest=cd,s.reverse=Co,s.sampleSize=ed,s.set=hI,s.setWith=pI,s.shuffle=rd,s.slice=ZE,s.sortBy=id,s.sortedUniq=s0,s.sortedUniqBy=u0,s.split=WI,s.spread=Ed,s.tail=_0,s.take=a0,s.takeRight=f0,s.takeRightWhile=l0,s.takeWhile=c0,s.tap=v0,s.throttle=dd,s.thru=Mt,s.toArray=p_,s.toPairs=R_,s.toPairsIn=S_,s.toPath=TN,s.toPlainObject=A_,s.transform=gI,s.unary=Id,s.union=E0,s.unionBy=d0,s.unionWith=I0,s.uniq=N0,s.uniqBy=h0,s.uniqWith=p0,s.unset=AI,s.unzip=Ro,s.unzipWith=t_,s.update=TI,s.updateWith=OI,s.values=En,s.valuesIn=CI,s.without=g0,s.words=m_,s.wrap=Nd,s.xor=A0,s.xorBy=T0,s.xorWith=O0,s.zip=C0,s.zipObject=R0,s.zipObjectDeep=S0,s.zipWith=D0,s.entries=R_,s.entriesIn=S_,s.extend=T_,s.extendWith=$t,xo(s,s),s.add=CN,s.attempt=L_,s.camelCase=vI,s.capitalize=D_,s.ceil=RN,s.clamp=RI,s.clone=pd,s.cloneDeep=Ad,s.cloneDeepWith=Td,s.cloneWith=gd,s.conformsTo=Od,s.deburr=v_,s.defaultTo=nN,s.divide=SN,s.endsWith=mI,s.eq=ze,s.escape=LI,s.escapeRegExp=PI,s.every=G0,s.find=B0,s.findIndex=ku,s.findKey=kd,s.findLast=V0,s.findLastIndex=Zu,s.findLastKey=Zd,s.floor=DN,s.forEach=o_,s.forEachRight=s_,s.forIn=eI,s.forInRight=rI,s.forOwn=nI,s.forOwnRight=tI,s.get=Lo,s.gt=Cd,s.gte=Rd,s.has=sI,s.hasIn=Po,s.head=r_,s.identity=Oe,s.includes=$0,s.indexOf=VE,s.inRange=SI,s.invoke=aI,s.isArguments=Kr,s.isArray=F,s.isArrayBuffer=Sd,s.isArrayLike=Ae,s.isArrayLikeObject=Z,s.isBoolean=Dd,s.isBuffer=mr,s.isDate=vd,s.isElement=md,s.isEmpty=Ld,s.isEqual=Pd,s.isEqualWith=Fd,s.isError=vo,s.isFinite=Ud,s.isFunction=dr,s.isInteger=d_,s.isLength=Kt,s.isMap=I_,s.isMatch=wd,s.isMatchWith=xd,s.isNaN=yd,s.isNative=bd,s.isNil=Md,s.isNull=Gd,s.isNumber=N_,s.isObject=Q,s.isObjectLike=k,s.isPlainObject=Jn,s.isRegExp=mo,s.isSafeInteger=Bd,s.isSet=h_,s.isString=Xt,s.isSymbol=ve,s.isTypedArray=cn,s.isUndefined=Vd,s.isWeakMap=Wd,s.isWeakSet=Hd,s.join=$E,s.kebabCase=FI,s.last=Me,s.lastIndexOf=zE,s.lowerCase=UI,s.lowerFirst=wI,s.lt=Kd,s.lte=Xd,s.max=vN,s.maxBy=mN,s.mean=LN,s.meanBy=PN,s.min=FN,s.minBy=UN,s.stubArray=bo,s.stubFalse=Go,s.stubObject=hN,s.stubString=pN,s.stubTrue=gN,s.multiply=wN,s.nth=JE,s.noConflict=aN,s.noop=yo,s.now=Vt,s.pad=xI,s.padEnd=yI,s.padStart=bI,s.parseInt=GI,s.random=DI,s.reduce=j0,s.reduceRight=Q0,s.repeat=MI,s.replace=BI,s.result=NI,s.round=xN,s.runInContext=l,s.sample=Z0,s.size=nd,s.snakeCase=VI,s.some=td,s.sortedIndex=e0,s.sortedIndexBy=r0,s.sortedIndexOf=n0,s.sortedLastIndex=t0,s.sortedLastIndexBy=i0,s.sortedLastIndexOf=o0,s.startCase=HI,s.startsWith=KI,s.subtract=yN,s.sum=bN,s.sumBy=GN,s.template=XI,s.times=AN,s.toFinite=Ir,s.toInteger=U,s.toLength=g_,s.toLower=$I,s.toNumber=Be,s.toSafeInteger=$d,s.toString=W,s.toUpper=zI,s.trim=JI,s.trimEnd=qI,s.trimStart=YI,s.truncate=jI,s.unescape=QI,s.uniqueId=ON,s.upperCase=kI,s.upperFirst=Fo,s.each=o_,s.eachRight=s_,s.first=r_,xo(s,(function(){var e={};return er(s,function(r,n){V.call(s.prototype,n)||(e[n]=r)}),e})(),{chain:!1}),s.VERSION=a,we(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){s[e].placeholder=s}),we(["drop","take"],function(e,r){b.prototype[e]=function(n){n=n===t?1:ie(U(n),0);var i=this.__filtered__&&!r?new b(this):this.clone();return i.__filtered__?i.__takeCount__=Ee(n,i.__takeCount__):i.__views__.push({size:Ee(n,Ze),type:e+(i.__dir__<0?"Right":"")}),i},b.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),we(["filter","map","takeWhile"],function(e,r){var n=r+1,i=n==es||n==Ja;b.prototype[e]=function(o){var u=this.clone();return u.__iteratees__.push({iteratee:D(o,3),type:n}),u.__filtered__=u.__filtered__||i,u}}),we(["head","last"],function(e,r){var n="take"+(r?"Right":"");b.prototype[e]=function(){return this[n](1).value()[0]}}),we(["initial","tail"],function(e,r){var n="drop"+(r?"":"Right");b.prototype[e]=function(){return this.__filtered__?new b(this):this[n](1)}}),b.prototype.compact=function(){return this.filter(Oe)},b.prototype.find=function(e){return this.filter(e).head()},b.prototype.findLast=function(e){return this.reverse().find(e)},b.prototype.invokeMap=x(function(e,r){return typeof e=="function"?new b(this):this.map(function(n){return Wn(n,e,r)})}),b.prototype.reject=function(e){return this.filter(Ht(D(e)))},b.prototype.slice=function(e,r){e=U(e);var n=this;return n.__filtered__&&(e>0||r<0)?new b(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),r!==t&&(r=U(r),n=r<0?n.dropRight(-r):n.take(r-e)),n)},b.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},b.prototype.toArray=function(){return this.take(Ze)},er(b.prototype,function(e,r){var n=/^(?:filter|find|map|reject)|While$/.test(r),i=/^(?:head|last)$/.test(r),o=s[i?"take"+(r=="last"?"Right":""):r],u=i||/^find/.test(r);o&&(s.prototype[r]=function(){var _=this.__wrapped__,f=i?[1]:arguments,c=_ instanceof b,N=f[0],h=c||F(_),g=function(y){var G=o.apply(s,Ar([y],f));return i&&T?G[0]:G};h&&n&&typeof N=="function"&&N.length!=1&&(c=h=!1);var T=this.__chain__,S=!!this.__actions__.length,v=u&&!T,w=c&&!S;if(!u&&h){_=w?_:new b(this);var m=e.apply(_,f);return m.__actions__.push({func:Mt,args:[g],thisArg:t}),new ye(m,T)}return v&&w?e.apply(this,f):(m=this.thru(g),v?i?m.value()[0]:m.value():m)})}),we(["pop","push","shift","sort","splice","unshift"],function(e){var r=ft[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);s.prototype[e]=function(){var o=arguments;if(i&&!this.__chain__){var u=this.value();return r.apply(F(u)?u:[],o)}return this[n](function(_){return r.apply(F(_)?_:[],o)})}}),er(b.prototype,function(e,r){var n=s[r];if(n){var i=n.name+"";V.call(un,i)||(un[i]=[]),un[i].push({name:r,func:n})}}),un[Ft(t,wr).name]=[{name:"wrapper",func:t}],b.prototype.clone=Ql,b.prototype.reverse=kl,b.prototype.value=Zl,s.prototype.at=m0,s.prototype.chain=L0,s.prototype.commit=P0,s.prototype.next=F0,s.prototype.plant=w0,s.prototype.reverse=x0,s.prototype.toJSON=s.prototype.valueOf=s.prototype.value=y0,s.prototype.first=s.prototype.head,xn&&(s.prototype[xn]=U0),s},Or=Pl();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(se._=Or,define(function(){return Or})):yr?((yr.exports=Or)._=Or,Ui._=Or):se._=Or}).call(Rn)});var MN=(t,a)=>({$implicit:t,data:a});function BN(t,a){t&1&&Xr(0,"nz-icon",3)}function VN(t,a){t&1&&Xr(0,"nz-icon",4)}function WN(t,a){t&1&&Xr(0,"nz-icon",5)}function HN(t,a){t&1&&Xr(0,"nz-icon",6)}function KN(t,a){t&1&&Xr(0,"nz-icon",7)}function XN(t,a){if(t&1&&(k_(0),Xr(1,"span",9),Z_()),t&2){let E=Xo();In(),qn("innerHTML",E.instance.content,X_)}}function $N(t,a){if(t&1){let E=ea();Yn(0,"nz-message",2),Ko("destroyed",function(C){V_(E);let M=Xo();return W_(M.remove(C.id,C.userAction))}),Jt()}if(t&2){let E=a.$implicit;qn("instance",E)}}var zN=0,Jo=class{container;nzSingletonService=J(Aa);injector=J(H_);remove(a){this.container&&(a?this.container.remove(a):this.container.removeAll())}getInstanceId(){return`${this.componentPrefix}-${zN++}`}withContainer(a){let E=this.nzSingletonService.getSingletonWithKey(this.componentPrefix);if(E)return E;let A=la(this.injector,{hasBackdrop:!1,scrollStrategy:aa(),positionStrategy:fa(this.injector)}),C=new _a(a,null,this.injector),M=A.attach(C),or=A.hostElement;return or.style.zIndex="1010",E||(this.container=E=M.instance,this.nzSingletonService.registerSingletonWithKey(this.componentPrefix,E),this.container.afterAllInstancesRemoved.subscribe(()=>{this.container=void 0,this.nzSingletonService.unregisterSingletonWithKey(this.componentPrefix),A.dispose()})),E}},JN=(()=>{class t{config;instances=[];_afterAllInstancesRemoved=new zt;afterAllInstancesRemoved=this._afterAllInstancesRemoved.asObservable();cdr=J(zo);nzConfigService=J(Ea);constructor(){this.subscribeConfigChange()}create(E){let A=this.onCreate(E);return this.instances.length>=this.config.nzMaxStack&&(this.instances=this.instances.slice(1)),this.instances=[...this.instances,A],this.readyInstances(),A}remove(E,A=!1){this.instances.map((C,M)=>({index:M,instance:C})).filter(({instance:C})=>C.messageId===E).forEach(({index:C,instance:M})=>{this.instances.splice(C,1),this.instances=[...this.instances],this.onRemove(M,A),this.readyInstances()}),this.instances.length||this.onAllInstancesRemoved()}removeAll(){this.instances.forEach(E=>this.onRemove(E,!1)),this.instances=[],this.readyInstances(),this.onAllInstancesRemoved()}onCreate(E){return E.options=this.mergeOptions(E.options),E.onClose=new zt,E}onRemove(E,A){E.onClose.next(A),E.onClose.complete()}onAllInstancesRemoved(){this._afterAllInstancesRemoved.next(),this._afterAllInstancesRemoved.complete()}readyInstances(){this.cdr.detectChanges()}mergeOptions(E){let{nzDuration:A,nzAnimate:C,nzPauseOnHover:M}=this.config;return dn({nzDuration:A,nzAnimate:C,nzPauseOnHover:M},E)}static \u0275fac=function(A){return new(A||t)};static \u0275dir=Wo({type:t})}return t})(),qN=(()=>{class t{cdr=J(zo);destroyRef=J(K_);animationStateChanged=new zt;options;autoClose;closeTimer;userAction=!1;eraseTimer;eraseTimingStart;eraseTTL;constructor(){this.destroyRef.onDestroy(()=>{this.autoClose&&this.clearEraseTimeout(),this.animationStateChanged.complete()})}ngOnInit(){this.options=this.instance.options,this.options.nzAnimate&&(this.instance.state="enter",this.animationStateChanged.pipe(b_(E=>E.phaseName==="done"&&E.toState==="leave"),G_(1)).subscribe(()=>{clearTimeout(this.closeTimer),this.destroyed.next({id:this.instance.messageId,userAction:this.userAction})})),this.autoClose=this.options.nzDuration>0,this.autoClose&&(this.initErase(),this.startEraseTimeout())}onEnter(){this.autoClose&&this.options.nzPauseOnHover&&(this.clearEraseTimeout(),this.updateTTL())}onLeave(){this.autoClose&&this.options.nzPauseOnHover&&this.startEraseTimeout()}destroy(E=!1){this.userAction=E,this.options.nzAnimate?(this.instance.state="leave",this.cdr.detectChanges(),this.closeTimer=setTimeout(()=>{this.closeTimer=void 0,this.destroyed.next({id:this.instance.messageId,userAction:E})},200)):this.destroyed.next({id:this.instance.messageId,userAction:E})}initErase(){this.eraseTTL=this.options.nzDuration,this.eraseTimingStart=Date.now()}updateTTL(){this.autoClose&&(this.eraseTTL-=Date.now()-this.eraseTimingStart)}startEraseTimeout(){this.eraseTTL>0?(this.clearEraseTimeout(),this.eraseTimer=setTimeout(()=>this.destroy(),this.eraseTTL),this.eraseTimingStart=Date.now()):this.destroy()}clearEraseTimeout(){this.eraseTimer!==null&&(clearTimeout(this.eraseTimer),this.eraseTimer=void 0)}static \u0275fac=function(A){return new(A||t)};static \u0275dir=Wo({type:t})}return t})(),YN=(()=>{class t extends qN{instance;destroyed=new $_;index;static \u0275fac=(()=>{let E;return function(C){return(E||(E=Bo(t)))(C||t)}})();static \u0275cmp=Vo({type:t,selectors:[["nz-message"]],inputs:{instance:"instance"},outputs:{destroyed:"destroyed"},exportAs:["nzMessage"],features:[Ho],decls:9,vars:13,consts:[[1,"ant-message-notice",3,"mouseenter","mouseleave"],[1,"ant-message-notice-content"],[1,"ant-message-custom-content"],["nzType","check-circle"],["nzType","info-circle"],["nzType","exclamation-circle"],["nzType","close-circle"],["nzType","loading"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[3,"innerHTML"]],template:function(A,C){if(A&1&&(Yn(0,"div",0),Ko("@moveUpMotion.done",function(or){return C.animationStateChanged.next(or)})("mouseenter",function(){return C.onEnter()})("mouseleave",function(){return C.onLeave()}),Yn(1,"div",1)(2,"div",2),J_(3,BN,1,0,"nz-icon",3)(4,VN,1,0,"nz-icon",4)(5,WN,1,0,"nz-icon",5)(6,HN,1,0,"nz-icon",6)(7,KN,1,0,"nz-icon",7),z_(8,XN,2,1,"ng-container",8),Jt()()()),A&2){let M;ta(C.instance.options==null?null:C.instance.options.nzStyle),$o(C.instance.options==null?null:C.instance.options.nzClass),qn("@moveUpMotion",C.instance.state),In(2),$o("ant-message-"+C.instance.type),In(),q_((M=C.instance.type)==="success"?3:M==="info"?4:M==="warning"?5:M==="error"?6:M==="loading"?7:-1),In(5),qn("nzStringTemplateOutlet",C.instance.content)("nzStringTemplateOutletContext",ia(10,MN,C,C.instance.options==null?null:C.instance.options.nzData))}},dependencies:[Na,Ia,pa,ha],encapsulation:2,data:{animation:[ga]},changeDetection:0})}return t})(),qt="message",jN={nzAnimate:!0,nzDuration:3e3,nzMaxStack:7,nzPauseOnHover:!0,nzTop:24,nzDirection:"ltr"},QN=(()=>{class t extends JN{dir=this.nzConfigService.getConfigForComponent(qt)?.nzDirection||"ltr";top;constructor(){super(),this.updateConfig()}subscribeConfigChange(){da(qt,()=>{this.updateConfig(),this.dir=this.nzConfigService.getConfigForComponent(qt)?.nzDirection||this.dir})}updateConfig(){this.config=dn(dn(dn({},jN),this.config),this.nzConfigService.getConfigForComponent(qt)),this.top=ca(this.config.nzTop),this.cdr.markForCheck()}static \u0275fac=function(A){return new(A||t)};static \u0275cmp=Vo({type:t,selectors:[["nz-message-container"]],exportAs:["nzMessageContainer"],features:[Ho],decls:3,vars:4,consts:[[1,"ant-message"],[3,"instance"],[3,"destroyed","instance"]],template:function(A,C){A&1&&(Yn(0,"div",0),j_(1,$N,1,1,"nz-message",1,Y_),Jt()),A&2&&(ra("top",C.top),na("ant-message-rtl",C.dir==="rtl"),In(),Q_(C.instances))},dependencies:[YN],encapsulation:2,changeDetection:0})}return t})(),Ta=(()=>{class t extends Jo{componentPrefix="message-";success(E,A){return this.createInstance({type:"success",content:E},A)}error(E,A){return this.createInstance({type:"error",content:E},A)}info(E,A){return this.createInstance({type:"info",content:E},A)}warning(E,A){return this.createInstance({type:"warning",content:E},A)}loading(E,A){return this.createInstance({type:"loading",content:E},A)}create(E,A,C){return this.createInstance({type:E,content:A},C)}createInstance(E,A){return this.container=this.withContainer(QN),this.container.create(U_(dn({},E),{createdAt:new Date,messageId:this.getInstanceId(),options:A}))}static \u0275fac=(()=>{let E;return function(C){return(E||(E=Bo(t)))(C||t)}})();static \u0275prov=le({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var qo=class t{get(a){let E=localStorage.getItem(a);if(E==null)return null;try{return JSON.parse(E)}catch{return E}}set(a,E){localStorage.setItem(a,JSON.stringify(E))}remove(a){localStorage.removeItem(a)}static \u0275fac=function(E){return new(E||t)};static \u0275prov=le({token:t,factory:t.\u0275fac,providedIn:"root"})},Pr=class t{constructor(a){this.driver=a}get(a,E){return this.driver.get(a)??E}getNullable(a){return this.driver.get(a)}set(a,E){this.driver.set(a,E)}remove(a){this.driver.remove(a)}static \u0275fac=function(E){return new(E||t)(B_(qo))};static \u0275prov=le({token:t,factory:t.\u0275fac,providedIn:"root"})};var qe={project:{currentProjectId:"ngm:project:currentProjectId"},token:{hubV2PersonalToken:"ngm:token:hubV2PersonalToken"},fs:{explorer:{lastPath:"ngm:fs:explorer:lastPath",favorites:"ngm:fs:explorer:favorites"}},dashboard:{layout:"ngm:dashboard:layout"}};var Qo=w_(jo());var p=w_(jo()),We={CONNECTION_LOST:990001,HTTP_ERROR:990002,WS_ERROR:990003,WS_CLOSED:990004,INVALID_JSON:990005,INVALID_MSG:990006},ba={[p.CoreErrorCodes.TASK_NOT_FOUND]:{level:"silent"},[p.CoreErrorCodes.TASK_ALREADY_RUNNING]:{level:"toast",message:"\u4EFB\u52A1\u5DF2\u5728\u8FD0\u884C\u4E2D"},[p.CoreErrorCodes.PROCESS_SPAWN_FAILED]:{level:"toast",message:"\u4EFB\u52A1\u542F\u52A8\u5931\u8D25"},[p.CoreErrorCodes.TASK_SPEC_NOT_FOUND]:{level:"toast",message:"\u4EFB\u52A1\u89C4\u683C\u672A\u627E\u5230"},[p.CoreErrorCodes.TASK_NOT_RUNNABLE]:{level:"toast",message:"\u4EFB\u52A1\u4E0D\u53EF\u8FD0\u884C"},[p.CoreErrorCodes.RUN_NOT_FOUND]:{level:"toast",message:"\u8FD0\u884C\u5B9E\u4F8B\u672A\u627E\u5230"},[p.CoreErrorCodes.TASK_ID_REQUIRED]:{level:"toast",message:"\u4EFB\u52A1 ID \u4E3A\u5FC5\u586B\u9879"},[p.CoreErrorCodes.COMMAND_NOT_FOUND]:{level:"toast",message:"\u547D\u4EE4\u672A\u627E\u5230\uFF0C\u8BF7\u786E\u4FDD\u5DF2\u6B63\u786E\u5B89\u88C5\u6240\u9700\u8F6F\u4EF6"},[p.CoreErrorCodes.PROJECT_NOT_FOUND]:{level:"toast",message:"\u9879\u76EE\u4E0D\u5B58\u5728"},[p.CoreErrorCodes.PROJECT_ROOT_INVALID]:{level:"toast",message:"\u9879\u76EE\u6839\u76EE\u5F55\u65E0\u6548"},[p.CoreErrorCodes.PROJECT_ALREADY_EXISTS]:{level:"toast",message:"\u9879\u76EE\u5DF2\u5B58\u5728"},[p.CoreErrorCodes.INVALID_NAME]:{level:"toast",message:"\u65E0\u6548\u7684\u9879\u76EE\u540D\u79F0"},[p.CoreErrorCodes.TARGET_EXISTS]:{level:"toast",message:"\u76EE\u6807\u8DEF\u5F84\u5DF2\u5B58\u5728"},[p.CoreErrorCodes.INVALID_REPO_URL]:{level:"toast",message:"\u65E0\u6548\u7684\u4ED3\u5E93\u5730\u5740"},[p.CoreErrorCodes.GIT_CHECKOUT_FAILED]:{level:"toast",message:"Git \u68C0\u51FA\u5931\u8D25"},[p.CoreErrorCodes.BOOTSTRAP_NOT_IN_PICK_STATE]:{level:"toast",message:"\u5F53\u524D\u4E0D\u5904\u4E8E\u9009\u62E9\u6839\u76EE\u5F55\u72B6\u6001"},[p.CoreErrorCodes.BOOTSTRAP_CTX_NOT_FOUND]:{level:"toast",message:"\u5F15\u5BFC\u4E0A\u4E0B\u6587\u672A\u627E\u5230"},[p.CoreErrorCodes.BOOTSTRAP_INVALID_PICKED_ROOT]:{level:"toast",message:"\u9009\u62E9\u7684\u6839\u76EE\u5F55\u65E0\u6548"},[p.CoreErrorCodes.BOOTSTRAP_NOT_WAITING_PICK]:{level:"toast",message:"\u5F15\u5BFC\u672A\u5904\u4E8E\u7B49\u5F85\u9009\u62E9\u72B6\u6001"},[p.CoreErrorCodes.PROJECT_ANGULAR_JSON_INVALID]:{level:"toast",message:"angular.json \u65E0\u6548"},[p.CoreErrorCodes.PROJECT_ANGULAR_JSON_NOT_FOUND]:{level:"toast",message:"angular.json \u672A\u627E\u5230"},[p.CoreErrorCodes.PROJECT_VITE_CONFIG_INVALID]:{level:"toast",message:"vite \u914D\u7F6E\u65E0\u6548"},[p.CoreErrorCodes.PROJECT_VUE_CONFIG_NOT_FOUND]:{level:"toast",message:"vite \u914D\u7F6E\u672A\u627E\u5230"},[p.CoreErrorCodes.CONFIG_BACKUP_NOT_FOUND]:{level:"toast",message:"\u914D\u7F6E\u5907\u4EFD\u672A\u627E\u5230"},[p.CoreErrorCodes.CONFIG_READ_FAILED]:{level:"toast",message:"\u914D\u7F6E\u8BFB\u53D6\u5931\u8D25\uFF0C\u6587\u4EF6\u53EF\u80FD\u5DF2\u635F\u574F"},[p.CoreErrorCodes.CONFIG_CONFLICT]:{level:"toast",message:"\u914D\u7F6E\u5DF2\u88AB\u5176\u4ED6\u5730\u65B9\u4FEE\u6539\uFF0C\u8BF7\u5237\u65B0\u91CD\u8BD5"},[p.GlobalErrorCodes.FS_ALREADY_EXISTS]:{level:"toast",message:"\u6587\u4EF6\u6216\u6587\u4EF6\u5939\u5DF2\u5B58\u5728"},[p.GlobalErrorCodes.FS_PATH_NOT_FOUND]:{level:"toast",message:"\u6587\u4EF6\u6216\u6587\u4EF6\u5939\u672A\u627E\u5230"},[p.GlobalErrorCodes.FS_PERMISSION_DENIED]:{level:"toast",message:"\u6587\u4EF6\u7CFB\u7EDF\u6743\u9650\u88AB\u62D2\u7EDD"},[p.CoreErrorCodes.FS_EXISTS_FAILED]:{level:"toast",message:"\u68C0\u67E5\u8DEF\u5F84\u662F\u5426\u5B58\u5728\u65F6\u51FA\u9519"},[p.GlobalErrorCodes.FS_INVALID_NAME]:{level:"toast",message:"\u65E0\u6548\u7684\u6587\u4EF6\u6216\u6587\u4EF6\u5939\u540D\u79F0"},[p.GlobalErrorCodes.FS_MKDIR_FAILED]:{level:"toast",message:"\u521B\u5EFA\u6587\u4EF6\u5939\u5931\u8D25"},[p.GlobalErrorCodes.INTERNAL_ERROR]:{level:"toast",message:"\u7CFB\u7EDF\u5F02\u5E38\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"},[We.CONNECTION_LOST]:{level:"banner",message:"\u4E0E\u672C\u5730\u670D\u52A1\u7684\u8FDE\u63A5\u5DF2\u65AD\u5F00",action:{retry:!0}},[We.HTTP_ERROR]:{level:"toast",message:"\u7F51\u7EDC\u8BF7\u6C42\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u8FDE\u63A5"},[p.GlobalErrorCodes.UNAUTHORIZED]:{level:"banner",message:"\u672A\u6388\u6743\u8BBF\u95EE\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55",action:{reload:!0}},[p.GlobalErrorCodes.UNKNOWN_ERROR]:{level:"toast",message:"\u53D1\u751F\u672A\u77E5\u9519\u8BEF\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"},[We.WS_ERROR]:{level:"banner",message:"WebSocket \u8FDE\u63A5\u5F02\u5E38",action:{retry:!0}},[We.WS_CLOSED]:{level:"banner",message:"WebSocket \u8FDE\u63A5\u5DF2\u5173\u95ED",action:{retry:!0}},[p.GlobalErrorCodes.BAD_JSON]:{level:"toast",message:"\u6536\u5230\u65E0\u6548\u7684 JSON \u6570\u636E"},[p.GlobalErrorCodes.BAD_MSG]:{level:"toast",message:"\u6536\u5230\u65E0\u6548\u7684\u6D88\u606F\u683C\u5F0F"},[p.GlobalErrorCodes.OP_NOT_SUPPORTED]:{level:"toast",message:"\u64CD\u4F5C\u4E0D\u88AB\u652F\u6301"},[p.GlobalErrorCodes.HANDLER_FAILED]:{level:"toast",message:"\u6D88\u606F\u5904\u7406\u5931\u8D25"},[p.GlobalErrorCodes.TOPIC_NOT_FOUND]:{level:"toast",message:"\u672A\u77E5\u7684\u6D88\u606F\u4E3B\u9898"},[p.GlobalErrorCodes.OP_NOT_FOUND]:{level:"toast",message:"\u672A\u77E5\u7684\u64CD\u4F5C\u7C7B\u578B"},[p.CoreErrorCodes.DEP_INSTALL_FAILED]:{level:"toast",message:"\u4F9D\u8D56\u5B89\u88C5\u5931\u8D25"},[p.CoreErrorCodes.DEP_UNINSTALL_FAILED]:{level:"toast",message:"\u4F9D\u8D56\u5378\u8F7D\u5931\u8D25"},[p.CoreErrorCodes.DEP_NOT_FOUND]:{level:"toast",message:"\u4F9D\u8D56\u672A\u627E\u5230"},[p.CoreErrorCodes.DASHBOARD_CONFLICT]:{level:"toast",message:"\u4EEA\u8868\u76D8\u5DF2\u88AB\u5176\u4ED6\u5730\u65B9\u4FEE\u6539\uFF0C\u8BF7\u5237\u65B0\u91CD\u8BD5"},[p.CoreErrorCodes.WIDGET_NOT_FOUND]:{level:"toast",message:"\u90E8\u4EF6\u672A\u627E\u5230"},[p.CoreErrorCodes.WIDGET_LOCKED]:{level:"toast",message:"\u90E8\u4EF6\u88AB\u9501\u5B9A\uFF0C\u65E0\u6CD5\u4FEE\u6539"},[p.CoreErrorCodes.RSS_FETCH_FAILED]:{level:"toast",message:"RSS \u6E90\u83B7\u53D6\u5931\u8D25"},[p.CoreErrorCodes.INVALID_RSS_URL]:{level:"toast",message:"\u65E0\u6548\u7684 RSS \u6E90\u5730\u5740"},[p.CoreErrorCodes.KILL_PORT_FAILED]:{level:"toast",message:"\u7AEF\u53E3\u91CA\u653E\u5931\u8D25"},[p.CoreErrorCodes.INVALID_PORT]:{level:"toast",message:"\u65E0\u6548\u7684\u7AEF\u53E3\u53F7"},[p.ApiErrorCodes.API_COLLECTION_NOT_EMPTY]:{level:"toast",message:"\u96C6\u5408\u4E0D\u4E3A\u7A7A\uFF0C\u65E0\u6CD5\u5220\u9664"},[We.INVALID_JSON]:{level:"dev-only"},[We.INVALID_MSG]:{level:"dev-only"}},lh={TASK_NOT_FOUND:p.CoreErrorCodes.TASK_NOT_FOUND,TASK_ALREADY_RUNNING:p.CoreErrorCodes.TASK_ALREADY_RUNNING,PROCESS_SPAWN_FAILED:p.CoreErrorCodes.PROCESS_SPAWN_FAILED,TASK_SPEC_NOT_FOUND:p.CoreErrorCodes.TASK_SPEC_NOT_FOUND,TASK_NOT_RUNNABLE:p.CoreErrorCodes.TASK_NOT_RUNNABLE,RUN_NOT_FOUND:p.CoreErrorCodes.RUN_NOT_FOUND,TASK_ID_REQUIRED:p.CoreErrorCodes.TASK_ID_REQUIRED,COMMAND_NOT_FOUND:p.CoreErrorCodes.COMMAND_NOT_FOUND,PROJECT_NOT_FOUND:p.CoreErrorCodes.PROJECT_NOT_FOUND,PROJECT_ROOT_INVALID:p.CoreErrorCodes.PROJECT_ROOT_INVALID,PROJECT_ALREADY_EXISTS:p.CoreErrorCodes.PROJECT_ALREADY_EXISTS,INVALID_NAME:p.CoreErrorCodes.INVALID_NAME,TARGET_EXISTS:p.CoreErrorCodes.TARGET_EXISTS,INVALID_REPO_URL:p.CoreErrorCodes.INVALID_REPO_URL,GIT_CHECKOUT_FAILED:p.CoreErrorCodes.GIT_CHECKOUT_FAILED,BOOTSTRAP_NOT_IN_PICK_STATE:p.CoreErrorCodes.BOOTSTRAP_NOT_IN_PICK_STATE,BOOTSTRAP_CTX_NOT_FOUND:p.CoreErrorCodes.BOOTSTRAP_CTX_NOT_FOUND,BOOTSTRAP_INVALID_PICKED_ROOT:p.CoreErrorCodes.BOOTSTRAP_INVALID_PICKED_ROOT,BOOTSTRAP_NOT_WAITING_PICK:p.CoreErrorCodes.BOOTSTRAP_NOT_WAITING_PICK,PROJECT_ANGULAR_JSON_INVALID:p.CoreErrorCodes.PROJECT_ANGULAR_JSON_INVALID,PROJECT_ANGULAR_JSON_NOT_FOUND:p.CoreErrorCodes.PROJECT_ANGULAR_JSON_NOT_FOUND,PROJECT_VITE_CONFIG_INVALID:p.CoreErrorCodes.PROJECT_VITE_CONFIG_INVALID,PROJECT_VUE_CONFIG_NOT_FOUND:p.CoreErrorCodes.PROJECT_VUE_CONFIG_NOT_FOUND,CONFIG_BACKUP_NOT_FOUND:p.CoreErrorCodes.CONFIG_BACKUP_NOT_FOUND,CONFIG_READ_FAILED:p.CoreErrorCodes.CONFIG_READ_FAILED,CONFIG_CONFLICT:p.CoreErrorCodes.CONFIG_CONFLICT,FS_ALREADY_EXISTS:p.GlobalErrorCodes.FS_ALREADY_EXISTS,FS_PATH_NOT_FOUND:p.GlobalErrorCodes.FS_PATH_NOT_FOUND,FS_PERMISSION_DENIED:p.GlobalErrorCodes.FS_PERMISSION_DENIED,FS_EXISTS_FAILED:p.CoreErrorCodes.FS_EXISTS_FAILED,FS_INVALID_NAME:p.GlobalErrorCodes.FS_INVALID_NAME,FS_MKDIR_FAILED:p.GlobalErrorCodes.FS_MKDIR_FAILED,INTERNAL_ERROR:p.GlobalErrorCodes.INTERNAL_ERROR,CONNECTION_LOST:We.CONNECTION_LOST,HTTP_ERROR:We.HTTP_ERROR,UNAUTHORIZED:p.GlobalErrorCodes.UNAUTHORIZED,UNKNOWN_ERROR:p.GlobalErrorCodes.UNKNOWN_ERROR,WS_ERROR:We.WS_ERROR,WS_CLOSED:We.WS_CLOSED,BAD_JSON:p.GlobalErrorCodes.BAD_JSON,BAD_MSG:p.GlobalErrorCodes.BAD_MSG,OP_NOT_SUPPORTED:p.GlobalErrorCodes.OP_NOT_SUPPORTED,HANDLER_FAILED:p.GlobalErrorCodes.HANDLER_FAILED,TOPIC_NOT_FOUND:p.GlobalErrorCodes.TOPIC_NOT_FOUND,OP_NOT_FOUND:p.GlobalErrorCodes.OP_NOT_FOUND,DEP_INSTALL_FAILED:p.CoreErrorCodes.DEP_INSTALL_FAILED,DEP_UNINSTALL_FAILED:p.CoreErrorCodes.DEP_UNINSTALL_FAILED,DEP_NOT_FOUND:p.CoreErrorCodes.DEP_NOT_FOUND,DASHBOARD_CONFLICT:p.CoreErrorCodes.DASHBOARD_CONFLICT,WIDGET_NOT_FOUND:p.CoreErrorCodes.WIDGET_NOT_FOUND,WIDGET_LOCKED:p.CoreErrorCodes.WIDGET_LOCKED,KILL_PORT_FAILED:p.CoreErrorCodes.KILL_PORT_FAILED,INVALID_PORT:p.CoreErrorCodes.INVALID_PORT,RSS_FETCH_FAILED:p.CoreErrorCodes.RSS_FETCH_FAILED,INVALID_RSS_URL:p.CoreErrorCodes.INVALID_RSS_URL,COLLECTION_NOT_EMPTY:p.ApiErrorCodes.API_COLLECTION_NOT_EMPTY,INVALID_JSON:We.INVALID_JSON,INVALID_MSG:We.INVALID_MSG};function Ga(t){if(typeof t=="number"&&Number.isFinite(t))return t;if(typeof t=="string"){let a=t.trim();return/^\d+$/.test(a)?Number.parseInt(a,10):lh[a]}}var On=class t{msg=J(Ta);error(a,E){console.error("[UI ERROR]",a,E),this.msg.error(a)}warn(a){this.msg.warning(a)}info(a){this.msg.info(a)}success(a){this.msg.success(a)}banner(a,E){}totast(a,E){}static \u0275fac=function(E){return new(E||t)};static \u0275prov=le({token:t,factory:t.\u0275fac,providedIn:"root"})};var Ma={production:!0,environment:"WEB-PROD"};var Ba=class t{ui=J(On);dispatch(a,E,A){let C=ba[a];if(!C){this.ui.error(E??"\u672A\u77E5\u9519\u8BEF");return}let M=typeof C.message=="function"?C.message(A):C.message??E;switch(C.level){case"silent":return;case"toast":this.ui.error(M??"\u64CD\u4F5C\u5931\u8D25");return;case"banner":this.ui.banner?.(M??"\u7CFB\u7EDF\u5F02\u5E38",C.action);return;case"dev-only":Ma.production||console.warn("[DEV ERROR]",a,A);return}}static \u0275fac=function(E){return new(E||t)};static \u0275prov=le({token:t,factory:t.\u0275fac,providedIn:"root"})};var Jr=class extends Error{constructor(E,A,C,M){super(A);this.code=E;this.details=C;this.requestId=M;this.name="ApiBizError"}};function li(t){return typeof t=="object"&&t!==null}function Ur(){return y_(t=>{if(li(t)&&t.ok===!0)return t.data;if(li(t)&&t.ok===!1&&li(t.error)){let a=Ga(t.error.code)??Qo.GlobalErrorCodes.UNKNOWN_ERROR,E=typeof t.error.message=="string"?t.error.message:"\u8BF7\u6C42\u5931\u8D25",A=t.error.details,C=li(t.meta)&&typeof t.meta.requestId=="string"?t.meta.requestId:void 0;throw new Jr(a,E,A,C)}throw new Jr(Qo.GlobalErrorCodes.UNKNOWN_ERROR,"\u63A5\u53E3\u54CD\u5E94\u683C\u5F0F\u4E0D\u6B63\u786E",t)})}var Cn=class t{ls=J(Pr);http=J(sa);base="/api/client";get(a,E){return this.http.get(a,{params:E}).pipe(Ur())}post(a,E,A){return this.http.post(a,E,{params:A}).pipe(Ur())}delete(a,E){return this.http.delete(a,{params:E}).pipe(Ur())}put(a,E,A){return this.http.put(a,E,{params:A}).pipe(Ur())}patch(a,E,A){return this.http.patch(a,E,{params:A}).pipe(Ur())}async hubRequestWithPrjId(a){return await Mo(this.http.post(`${this.base}/hub-token/request`,{projectId:a.projectId,path:a.path,method:a.method??"GET",query:a.query,body:a.payload,headers:a.headers}).pipe(Ur()))}async hubRequestWithPersonalToken(a){return await Mo(this.http.post(`${this.base}/hub-token/request`,{projectId:a.projectId,path:a.path,method:a.method??"GET",query:a.query,body:a.payload,headers:a.headers,tokenType:"personal",personalToken:this.ls.get(qe.token.hubV2PersonalToken,"").trim()||void 0}).pipe(Ur()))}static \u0275fac=function(E){return new(E||t)};static \u0275prov=le({token:t,factory:t.\u0275fac,providedIn:"root"})};function ci(t,a){if(t&&typeof t=="object"&&a in t)return t[a]}function wp(t,a="\u8BF7\u6C42\u5931\u8D25"){if(t instanceof Jr)return t.message||a;if(t instanceof oa){let M=ci(t.error,"message");return typeof M=="string"&&M.trim()?M:t.message||a}if(t instanceof Error)return t.message||a;if(typeof t=="string"&&t.trim())return t;let E=ci(t,"message");if(typeof E=="string"&&E.trim())return E;let A=ci(t,"error"),C=ci(A,"message");return typeof C=="string"&&C.trim()?C:a}var Ei=class t{api=J(Cn);list(){return this.api.get("/api/projects/list")}getProjectMembers(a){return this.api.hubRequestWithPrjId({projectId:a,path:"/members"})}static \u0275fac=function(E){return new(E||t)};static \u0275prov=le({token:t,factory:t.\u0275fac,providedIn:"root"})};var di=class t{ls=J(Pr);projectApi=J(Ei);router=J(ua);currentProjectState=Lr(null);projectsState=Lr([]);membersState=Lr([]);projects=ce(()=>this.projectsState());currentProject=ce(()=>this.currentProjectState());currentProjectId=ce(()=>this.currentProjectState()?.id||null);currentProjectKey=ce(()=>this.currentProjectState()?.env?.NGM_HUB_V2_PROJECT_KEY);currentProjectToken=ce(()=>this.currentProjectState()?.env?.NGM_HUB_V2_TOKEN);currentProjectMembers=ce(()=>this.membersState());isHubProjectValid=ce(()=>!!this.currentProjectState()?.env?.NGM_HUB_V2_TOKEN);favoriteProjects=ce(()=>this.projects().filter(a=>a.isFavorite));recentProjects=ce(()=>this.projects().slice().sort((a,E)=>{let A=new Date(a.lastOpened||0).getTime();return new Date(E.lastOpened||0).getTime()-A}).slice(0,5));setProjects(a){this.projectsState.set(a)}setCurrentProject(a){this.currentProjectState.set(a);let E=a?a.id:null;E?this.ls.set(qe.project.currentProjectId,E):this.ls.remove(qe.project.currentProjectId)}setCurrentProjectById(a){let E=this.projects().find(A=>A.id===a)||null;this.setCurrentProject(E)}setMembers(a){this.membersState.set(a)}patchProject(a){this.projectsState.update(E=>E.map(A=>A.id===a.id?a:A)),this.currentProjectId()===a.id&&this.currentProjectState.set(a)}removeProject(a){if(this.projectsState.update(E=>E.filter(A=>A.id!==a)),this.currentProjectId()===a){let E=this.projectsState()[0]||null;this.setCurrentProject(E)}}getProjectById(a){return this.projectsState().find(E=>E.id===a)||null}isOpen(a){return this.currentProjectId()===a.id}async loadProjectMembers(a){try{let E=(await this.projectApi.getProjectMembers(a)).items;this.setMembers(E)}catch{this.setMembers([])}}loadProjects(a){return this.projectApi.list().pipe(M_(E=>{this.setProjects(E),this.initCurrentProject(E,a)}))}initCurrentProject(a,E){if(!a.length){this.setCurrentProject(null);return}if(E){let M=a.find(or=>or.id===E);if(M){this.setCurrentProject(M);return}}let A=this.ls.getNullable(qe.project.currentProjectId),C=A?a.find(M=>M.id===A):null;if(C){this.setCurrentProject(C);return}this.setCurrentProject(a[0])}static \u0275fac=function(E){return new(E||t)};static \u0275prov=le({token:t,factory:t.\u0275fac,providedIn:"root"})};var Va=class t{apiClient=J(Cn);projectContextStore=J(di);ls=J(Pr);notify=J(On);currentUserState=Lr(null);hubUserTokenState=Lr(null);initializedState=Lr(!1);currentUser=ce(()=>this.currentUserState());currentUserId=ce(()=>this.currentUserState()?this.currentUserState().userId:"");hubUserToken=ce(()=>this.hubUserTokenState());initialized=ce(()=>this.initializedState());isAuthenticated=ce(()=>!!this.currentUserState());hasHubUserToken=ce(()=>!!this.hubUserTokenState());loadCurrentUser(){let a=this.ls.get(qe.token.hubV2PersonalToken,"").trim(),E=this.projectContextStore.currentProjectId();!a||!E||(this.setHubUserToken(a),x_(this.apiClient.hubRequestWithPersonalToken({path:"/me",projectId:E})).subscribe({next:A=>{this.setCurrentUser(A),this.markInitialized()},error:()=>{this.notify.error("Personal Token \u9A8C\u8BC1\u5931\u8D25"),this.setCurrentUser(null)}}))}ensureUserLoaded(){this.initializedState()||this.loadCurrentUser()}setCurrentUser(a){this.currentUserState.set(a)}setHubUserToken(a){let E=a?a.trim():"";if(E){this.ls.set(qe.token.hubV2PersonalToken,E),this.hubUserTokenState.set(E);return}this.hubUserTokenState.set(null),this.currentUserState.set(null),this.ls.remove(qe.token.hubV2PersonalToken)}ensureHubUserTokenLoaded(){this.hubUserTokenState()||this.setHubUserToken(this.ls.get(qe.token.hubV2PersonalToken,""))}markInitialized(){this.initializedState.set(!0)}reset(){this.currentUserState.set(null),this.initializedState.set(!1)}static \u0275fac=function(E){return new(E||t)};static \u0275prov=le({token:t,factory:t.\u0275fac,providedIn:"root"})};export{jo as a,We as b,Ga as c,Ta as d,On as e,Ma as f,Ba as g,Jr as h,qe as i,Pr as j,Cn as k,wp as l,di as m,Va as n,ch as o};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$ as pe,Ga as W,Ha as Z,L as de,a as se,b as ce,sa as ze,ta as Q}from"./chunk-VZYJ3MSW.js";import{i as $}from"./chunk-KRYMOHYF.js";import{$b as L,Ac as q,Da as ee,Fb as g,Fc as A,Gb as B,Gc as h,Hb as F,Hc as j,Jc as M,Kc as E,Lb as _,Mb as ne,Oa as V,Wb as c,Yb as d,Yc as le,Zb as ie,_b as ae,a as x,ac as H,bc as m,cc as z,dc as p,ec as S,f as G,hc as oe,ic as N,jc as k,nb as o,oa as O,r as P,s as v,sa as y,uc as s,ud as R,vc as D,wb as te,wc as b,xc as U,yc as re,yd as C,zc as I}from"./chunk-4BRW6LCZ.js";var ve=["nzType","avatar"];var ge=["*"];function he(e,a){if(e&1&&(z(0,"div",0),S(1,"nz-skeleton-element",4),p()),e&2){let t=s(2);o(),m("nzSize",t.avatar.size||"default")("nzShape",t.avatar.shape||"circle")}}function ye(e,a){if(e&1&&S(0,"h3",5),e&2){let t=s(2);A("width",t.toCSSUnit(t.title.width))}}function Se(e,a){if(e&1&&S(0,"li"),e&2){let t=a.$index,n=s(3);A("width",n.toCSSUnit(n.widthList[t]))}}function Te(e,a){if(e&1&&(z(0,"ul",3),L(1,Se,1,2,"li",6,ae),p()),e&2){let t=s(2);o(),H(t.rowsList)}}function xe(e,a){if(e&1&&(c(0,he,2,2,"div",0),z(1,"div",1),c(2,ye,1,2,"h3",2),c(3,Te,3,0,"ul",3),p()),e&2){let t=s();d(t.nzAvatar?0:-1),o(2),d(t.nzTitle?2:-1),o(),d(t.nzParagraph?3:-1)}}function Ne(e,a){e&1&&b(0)}var ke=(()=>{class e{nzActive=!1;nzType;nzBlock=!1;static \u0275fac=function(n){return new(n||e)};static \u0275dir=F({type:e,selectors:[["nz-skeleton-element"]],hostAttrs:[1,"ant-skeleton","ant-skeleton-element"],hostVars:4,hostBindings:function(n,i){n&2&&h("ant-skeleton-active",i.nzActive)("ant-skeleton-block",i.nzBlock)},inputs:{nzActive:[2,"nzActive","nzActive",C],nzType:"nzType",nzBlock:[2,"nzBlock","nzBlock",C]}})}return e})();var De=(()=>{class e{nzShape="circle";nzSize="default";styleMap={};ngOnChanges(t){if(t.nzSize&&typeof this.nzSize=="number"){let n=`${this.nzSize}px`;this.styleMap={width:n,height:n,"line-height":n}}else this.styleMap={}}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=g({type:e,selectors:[["nz-skeleton-element","nzType","avatar"]],inputs:{nzShape:"nzShape",nzSize:"nzSize"},features:[V],attrs:ve,decls:1,vars:10,consts:[[1,"ant-skeleton-avatar"]],template:function(n,i){n&1&&oe(0,"span",0),n&2&&(j(i.styleMap),h("ant-skeleton-avatar-square",i.nzShape==="square")("ant-skeleton-avatar-circle",i.nzShape==="circle")("ant-skeleton-avatar-lg",i.nzSize==="large")("ant-skeleton-avatar-sm",i.nzSize==="small"))},encapsulation:2,changeDetection:0})}return e})();var me=(()=>{class e{cdr=y(R);nzActive=!1;nzLoading=!0;nzRound=!1;nzTitle=!0;nzAvatar=!1;nzParagraph=!0;title;avatar;paragraph;rowsList=[];widthList=[];toCSSUnit(t=""){return pe(t)}getTitleProps(){let t=!!this.nzAvatar,n=!!this.nzParagraph,i="";return!t&&n?i="38%":t&&n&&(i="50%"),x({width:i},this.getProps(this.nzTitle))}getAvatarProps(){let t=this.nzTitle&&!this.nzParagraph?"square":"circle";return x({shape:t,size:"large"},this.getProps(this.nzAvatar))}getParagraphProps(){let t=!!this.nzAvatar,n=!!this.nzTitle,i={};return(!t||!n)&&(i.width="61%"),!t&&n?i.rows=3:i.rows=2,x(x({},i),this.getProps(this.nzParagraph))}getProps(t){return t&&typeof t=="object"?t:{}}getWidthList(){let{width:t,rows:n}=this.paragraph,i=[];return t&&Array.isArray(t)?i=t:t&&!Array.isArray(t)&&(i=[],i[n-1]=t),i}updateProps(){this.title=this.getTitleProps(),this.avatar=this.getAvatarProps(),this.paragraph=this.getParagraphProps(),this.rowsList=[...Array(this.paragraph.rows)],this.widthList=this.getWidthList(),this.cdr.markForCheck()}ngOnInit(){this.updateProps()}ngOnChanges(t){(t.nzTitle||t.nzAvatar||t.nzParagraph)&&this.updateProps()}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=g({type:e,selectors:[["nz-skeleton"]],hostAttrs:[1,"ant-skeleton"],hostVars:6,hostBindings:function(n,i){n&2&&h("ant-skeleton-with-avatar",!!i.nzAvatar)("ant-skeleton-active",i.nzActive)("ant-skeleton-round",i.nzRound)},inputs:{nzActive:[2,"nzActive","nzActive",C],nzLoading:[2,"nzLoading","nzLoading",C],nzRound:[2,"nzRound","nzRound",C],nzTitle:"nzTitle",nzAvatar:"nzAvatar",nzParagraph:"nzParagraph"},exportAs:["nzSkeleton"],features:[V],ngContentSelectors:ge,decls:2,vars:1,consts:[[1,"ant-skeleton-header"],[1,"ant-skeleton-content"],[1,"ant-skeleton-title",3,"width"],[1,"ant-skeleton-paragraph"],["nzType","avatar",3,"nzSize","nzShape"],[1,"ant-skeleton-title"],[3,"width"]],template:function(n,i){n&1&&(D(),c(0,xe,4,3)(1,Ne,1,0)),n&2&&d(i.nzLoading?0:1)},dependencies:[ke,De],encapsulation:2,changeDetection:0})}return e})(),ue=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=B({type:e});static \u0275inj=O({})}return e})();function Ae(e,a){}function Me(e,a){if(e&1&&(z(0,"div",0),_(1,Ae,0,0,"ng-template",2),p()),e&2){let t=s();o(),m("ngTemplateOutlet",t.nzAvatar)}}function Ee(e,a){if(e&1&&(N(0),M(1),k()),e&2){let t=s(3);o(),E(t.nzTitle)}}function we(e,a){if(e&1&&(z(0,"div",3),_(1,Ee,2,1,"ng-container",5),p()),e&2){let t=s(2);o(),m("nzStringTemplateOutlet",t.nzTitle)}}function Pe(e,a){if(e&1&&(N(0),M(1),k()),e&2){let t=s(3);o(),E(t.nzDescription)}}function Oe(e,a){if(e&1&&(z(0,"div",4),_(1,Pe,2,1,"ng-container",5),p()),e&2){let t=s(2);o(),m("nzStringTemplateOutlet",t.nzDescription)}}function Be(e,a){if(e&1&&(z(0,"div",1),c(1,we,2,1,"div",3),c(2,Oe,2,1,"div",4),p()),e&2){let t=s();o(),d(t.nzTitle?1:-1),o(),d(t.nzDescription?2:-1)}}var fe=["*"];function Fe(e,a){e&1&&b(0)}var Le=()=>({rows:4});function He(e,a){if(e&1&&(N(0),M(1),k()),e&2){let t=s(3);o(),E(t.nzTitle)}}function Ie(e,a){if(e&1&&(z(0,"div",6),_(1,He,2,1,"ng-container",9),p()),e&2){let t=s(2);o(),m("nzStringTemplateOutlet",t.nzTitle)}}function qe(e,a){if(e&1&&(N(0),M(1),k()),e&2){let t=s(3);o(),E(t.nzExtra)}}function je(e,a){if(e&1&&(z(0,"div",7),_(1,qe,2,1,"ng-container",9),p()),e&2){let t=s(2);o(),m("nzStringTemplateOutlet",t.nzExtra)}}function Re(e,a){}function Qe(e,a){if(e&1&&_(0,Re,0,0,"ng-template",8),e&2){let t=s(2);m("ngTemplateOutlet",t.listOfNzCardTabComponent.template)}}function Ge(e,a){if(e&1&&(z(0,"div",0)(1,"div",5),c(2,Ie,2,1,"div",6),c(3,je,2,1,"div",7),p(),c(4,Qe,1,1,null,8),p()),e&2){let t=s();o(2),d(t.nzTitle?2:-1),o(),d(t.nzExtra?3:-1),o(),d(t.listOfNzCardTabComponent?4:-1)}}function Ve(e,a){}function Ue(e,a){if(e&1&&(z(0,"div",1),_(1,Ve,0,0,"ng-template",8),p()),e&2){let t=s();o(),m("ngTemplateOutlet",t.nzCover)}}function $e(e,a){e&1&&S(0,"nz-skeleton",3),e&2&&m("nzActive",!0)("nzTitle",!1)("nzParagraph",le(3,Le))}function We(e,a){e&1&&b(0)}function Ze(e,a){}function Je(e,a){if(e&1&&(z(0,"li")(1,"span"),_(2,Ze,0,0,"ng-template",8),p()()),e&2){let t=a.$implicit,n=s(2);A("width",100/n.nzActions.length,"%"),o(2),m("ngTemplateOutlet",t)}}function Ke(e,a){if(e&1&&(z(0,"ul",4),L(1,Je,3,3,"li",10,ie),p()),e&2){let t=s();o(),H(t.nzActions)}}var Xe=(()=>{class e{nzHoverable=!0;static \u0275fac=function(n){return new(n||e)};static \u0275dir=F({type:e,selectors:[["","nz-card-grid",""]],hostAttrs:[1,"ant-card-grid"],hostVars:2,hostBindings:function(n,i){n&2&&h("ant-card-hoverable",i.nzHoverable)},inputs:{nzHoverable:[2,"nzHoverable","nzHoverable",C]},exportAs:["nzCardGrid"]})}return e})(),Ye=(()=>{class e{nzTitle=null;nzDescription=null;nzAvatar=null;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=g({type:e,selectors:[["nz-card-meta"]],hostAttrs:[1,"ant-card-meta"],inputs:{nzTitle:"nzTitle",nzDescription:"nzDescription",nzAvatar:"nzAvatar"},exportAs:["nzCardMeta"],decls:2,vars:2,consts:[[1,"ant-card-meta-avatar"],[1,"ant-card-meta-detail"],[3,"ngTemplateOutlet"],[1,"ant-card-meta-title"],[1,"ant-card-meta-description"],[4,"nzStringTemplateOutlet"]],template:function(n,i){n&1&&(c(0,Me,2,1,"div",0),c(1,Be,3,2,"div",1)),n&2&&(d(i.nzAvatar?0:-1),o(),d(i.nzTitle||i.nzDescription?1:-1))},dependencies:[$,Z,W],encapsulation:2,changeDetection:0})}return e})(),et=(()=>{class e{template;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=g({type:e,selectors:[["nz-card-tab"]],viewQuery:function(n,i){if(n&1&&re(te,7),n&2){let T;I(T=q())&&(i.template=T.first)}},exportAs:["nzCardTab"],ngContentSelectors:fe,decls:1,vars:0,template:function(n,i){n&1&&(D(),ne(0,Fe,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return e})(),Ce="card",tt=(()=>{var f;let e,a=[],t=[],n,i=[],T=[],J,K=[],X=[];return f=class{cdr=y(R);directionality=y(se);destroyRef=y(ee);_nzModuleName=Ce;nzBordered=v(this,a,!0);nzLoading=(v(this,t),!1);nzHoverable=v(this,i,!1);nzBodyStyle=(v(this,T),null);nzCover;nzActions=[];nzType=null;nzSize=v(this,K,"default");nzTitle=v(this,X);nzExtra;listOfNzCardTabComponent;listOfNzCardGridDirective;dir="ltr";constructor(){ze(Ce,()=>this.cdr.markForCheck())}ngOnInit(){this.directionality.change?.pipe(de(this.destroyRef)).subscribe(u=>{this.dir=u,this.cdr.detectChanges()}),this.dir=this.directionality.value}},(()=>{let u=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;e=[Q()],n=[Q()],J=[Q()],P(null,null,e,{kind:"field",name:"nzBordered",static:!1,private:!1,access:{has:r=>"nzBordered"in r,get:r=>r.nzBordered,set:(r,l)=>{r.nzBordered=l}},metadata:u},a,t),P(null,null,n,{kind:"field",name:"nzHoverable",static:!1,private:!1,access:{has:r=>"nzHoverable"in r,get:r=>r.nzHoverable,set:(r,l)=>{r.nzHoverable=l}},metadata:u},i,T),P(null,null,J,{kind:"field",name:"nzSize",static:!1,private:!1,access:{has:r=>"nzSize"in r,get:r=>r.nzSize,set:(r,l)=>{r.nzSize=l}},metadata:u},K,X),u&&Object.defineProperty(f,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:u})})(),G(f,"\u0275fac",function(r){return new(r||f)}),G(f,"\u0275cmp",g({type:f,selectors:[["nz-card"]],contentQueries:function(r,l,Y){if(r&1&&(U(Y,et,5),U(Y,Xe,4)),r&2){let w;I(w=q())&&(l.listOfNzCardTabComponent=w.first),I(w=q())&&(l.listOfNzCardGridDirective=w)}},hostAttrs:[1,"ant-card"],hostVars:16,hostBindings:function(r,l){r&2&&h("ant-card-loading",l.nzLoading)("ant-card-bordered",l.nzBordered)("ant-card-hoverable",l.nzHoverable)("ant-card-small",l.nzSize==="small")("ant-card-contain-grid",l.listOfNzCardGridDirective&&l.listOfNzCardGridDirective.length)("ant-card-type-inner",l.nzType==="inner")("ant-card-contain-tabs",!!l.listOfNzCardTabComponent)("ant-card-rtl",l.dir==="rtl")},inputs:{nzBordered:[2,"nzBordered","nzBordered",C],nzLoading:[2,"nzLoading","nzLoading",C],nzHoverable:[2,"nzHoverable","nzHoverable",C],nzBodyStyle:"nzBodyStyle",nzCover:"nzCover",nzActions:"nzActions",nzType:"nzType",nzSize:"nzSize",nzTitle:"nzTitle",nzExtra:"nzExtra"},exportAs:["nzCard"],ngContentSelectors:fe,decls:6,vars:6,consts:[[1,"ant-card-head"],[1,"ant-card-cover"],[1,"ant-card-body"],[3,"nzActive","nzTitle","nzParagraph"],[1,"ant-card-actions"],[1,"ant-card-head-wrapper"],[1,"ant-card-head-title"],[1,"ant-card-extra"],[3,"ngTemplateOutlet"],[4,"nzStringTemplateOutlet"],[3,"width"]],template:function(r,l){r&1&&(D(),c(0,Ge,5,3,"div",0),c(1,Ue,2,1,"div",1),z(2,"div",2),c(3,$e,1,4,"nz-skeleton",3)(4,We,1,0),p(),c(5,Ke,3,0,"ul",4)),r&2&&(d(l.nzTitle||l.nzExtra||l.listOfNzCardTabComponent?0:-1),o(),d(l.nzCover?1:-1),o(),j(l.nzBodyStyle),o(),d(l.nzLoading?3:4),o(2),d(l.nzActions.length?5:-1))},dependencies:[Z,W,$,ue,me],encapsulation:2,changeDetection:0})),f})(),wt=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=B({type:e});static \u0275inj=O({imports:[tt,Ye,ce]})}return e})();export{tt as a,wt as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as N,b as E,c as p,f as i,g as T,h as w,o as O}from"./chunk-K6C5ZIV2.js";import{v}from"./chunk-KRYMOHYF.js";import{J as f,O as m,e as u,l,m as h,na as g,ra as S,sa as y,tb as b,v as r}from"./chunk-4BRW6LCZ.js";var d=class e{constructor(n){this.zone=n}ws;url=i.production===!0?`ws:${window.location.host}/ws`:"ws://127.0.0.1:3211/ws";pending=[];state$=new h("idle");inbound$=new l;reconnectAttempt=0;manualClose=!1;opening=!1;reconnectSub;stateChanges(){return this.state$.asObservable()}messages(){return this.inbound$.asObservable()}connect(){this.opening||this.ws&&(this.ws.readyState===WebSocket.OPEN||this.ws.readyState===WebSocket.CONNECTING)||(this.manualClose=!1,this.open())}close(){this.manualClose=!0,this.cancelReconnect(),this.stopHeartbeat(),this.ws?.close(),this.ws=void 0,this.opening=!1,this.state$.next("closed")}send(n){let s=JSON.stringify(n);this.ws?.readyState===WebSocket.OPEN?this.ws.send(s):this.pending.push(n)}isOpen(){return this.state$.value==="open"}open(){this.opening||this.ws&&(this.ws.readyState===WebSocket.OPEN||this.ws.readyState===WebSocket.CONNECTING)||(this.opening=!0,this.state$.next("connecting"),this.cancelReconnect(),this.zone.runOutsideAngular(()=>{let n=new WebSocket(this.url);this.ws=n,n.onopen=()=>{this.reconnectAttempt=0,this.opening=!1,this.cancelReconnect(),this.pending.splice(0).forEach(o=>this.send(o)),this.zone.run(()=>this.state$.next("open")),this.startHeartbeat()},n.onmessage=s=>{let o;try{o=JSON.parse(s.data)}catch{return}this.zone.run(()=>this.inbound$.next(o))},n.onerror=()=>{this.zone.run(()=>this.state$.next("error"));try{n.close()}catch{}},n.onclose=()=>{this.opening=!1,this.ws=void 0,this.stopHeartbeat(),this.zone.run(()=>this.state$.next("closed")),this.manualClose||this.scheduleReconnect()}}))}heartbeatTimer;startHeartbeat(){this.stopHeartbeat(),this.heartbeatTimer=setInterval(()=>{this.send({op:"ping"})},2e4)}stopHeartbeat(){this.heartbeatTimer&&(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0)}scheduleReconnect(){if(this.reconnectSub)return;this.reconnectAttempt++;let n=Math.min(1e3*Math.pow(2,this.reconnectAttempt),15e3);this.reconnectSub=f(n).subscribe(()=>{this.reconnectSub=void 0,!this.manualClose&&this.open()})}cancelReconnect(){this.reconnectSub?.unsubscribe(),this.reconnectSub=void 0}static \u0275fac=function(s){return new(s||e)(S(b))};static \u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"})};var a=u(N());var R=u(O());function c(e){return typeof e=="object"&&e!==null}function C(e){if(c(e.error)){let n=e.error.error,s=c(n)?n:void 0,o=p(e.error.code);if(o!==void 0)return o;let t=p(s?.code);if(t!==void 0)return t}return e.status===0?E.HTTP_ERROR:e.status===401?a.GlobalErrorCodes.UNAUTHORIZED:a.GlobalErrorCodes.INTERNAL_ERROR}function M(e){if(c(e.error)){let n=e.error.error,o=(c(n)?n:void 0)?.message;if(typeof o=="string"&&o.trim())return o;let t=e.error.message;if(typeof t=="string"&&t.trim())return t}return typeof e.message=="string"&&e.message.trim()?e.message:"\u8BF7\u6C42\u5931\u8D25"}var J=(e,n)=>{let s=y(T),o=R.uniqueId("req-");return e=e.clone({setHeaders:{"X-Request-Id":o}}),n(e).pipe(m(t=>{if(i.production||console.error(`[HTTP][${o}] Error:`,t),t instanceof w)return s.dispatch(t.code,t.message,t.details),r(()=>t);if(t instanceof v){let P=C(t),x=M(t);return s.dispatch(P,x,t.error),r(()=>t)}let k=t instanceof Error?t.message:"\u672A\u77E5\u9519\u8BEF";return s.dispatch(a.GlobalErrorCodes.INTERNAL_ERROR,k,t),r(()=>t)}))};export{d as a,J as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ea as Z,Fa as q,Ga as H,Ha as J,L,a as G,mb as K,sa as W,ta as M}from"./chunk-VZYJ3MSW.js";import{Da as k,Fb as B,Gb as j,Gc as P,Jc as T,Kc as g,Lb as f,Oa as F,Wb as c,Yb as s,bc as p,cc as d,dc as _,ec as N,f as I,ic as x,jc as h,kc as R,lc as w,nb as a,oa as E,r as A,rc as D,s as u,sa as S,sb as V,uc as o,ud as U,ya as b,yd as y,za as v}from"./chunk-4BRW6LCZ.js";function $(n,t){n&1&&R(0)}function nn(n,t){if(n&1&&f(0,$,1,0,"ng-container",7),n&2){let e=o(3);p("nzStringTemplateOutlet",e.nzIcon)}}function en(n,t){if(n&1&&N(0,"nz-icon",6),n&2){let e=o(3);p("nzType",e.nzIconType||e.inferredIconType)("nzTheme",e.iconTheme)}}function tn(n,t){if(n&1&&(d(0,"div",2),c(1,nn,1,1,"ng-container")(2,en,1,2,"nz-icon",6),_()),n&2){let e=o(2);a(),s(e.nzIcon?1:2)}}function on(n,t){if(n&1&&(x(0),T(1),h()),n&2){let e=o(4);a(),g(e.nzMessage)}}function an(n,t){if(n&1&&(d(0,"span",8),f(1,on,2,1,"ng-container",7),_()),n&2){let e=o(3);a(),p("nzStringTemplateOutlet",e.nzMessage)}}function ln(n,t){if(n&1&&(x(0),T(1),h()),n&2){let e=o(4);a(),g(e.nzDescription)}}function rn(n,t){if(n&1&&(d(0,"span",9),f(1,ln,2,1,"ng-container",7),_()),n&2){let e=o(3);a(),p("nzStringTemplateOutlet",e.nzDescription)}}function cn(n,t){if(n&1&&(d(0,"div",3),c(1,an,2,1,"span",8),c(2,rn,2,1,"span",9),_()),n&2){let e=o(2);a(),s(e.nzMessage?1:-1),a(),s(e.nzDescription?2:-1)}}function sn(n,t){if(n&1&&(x(0),T(1),h()),n&2){let e=o(3);a(),g(e.nzAction)}}function dn(n,t){if(n&1&&(d(0,"div",4),f(1,sn,2,1,"ng-container",7),_()),n&2){let e=o(2);a(),p("nzStringTemplateOutlet",e.nzAction)}}function _n(n,t){if(n&1&&(x(0),d(1,"span",12),T(2),_(),h()),n&2){let e=o(4);a(2),g(e.nzCloseText)}}function pn(n,t){if(n&1&&f(0,_n,3,1,"ng-container",7),n&2){let e=o(3);p("nzStringTemplateOutlet",e.nzCloseText)}}function zn(n,t){n&1&&N(0,"nz-icon",11)}function mn(n,t){if(n&1){let e=w();d(0,"button",10),D("click",function(){b(e);let C=o(2);return v(C.closeAlert())}),c(1,pn,1,1,"ng-container")(2,zn,1,0,"nz-icon",11),_()}if(n&2){let e=o(2);a(),s(e.nzCloseText?1:2)}}function Cn(n,t){if(n&1){let e=w();d(0,"div",1),D("@slideAlertMotion.done",function(){b(e);let C=o();return v(C.onFadeAnimationDone())}),c(1,tn,3,1,"div",2),c(2,cn,3,2,"div",3),c(3,dn,2,1,"div",4),c(4,mn,3,1,"button",5),_()}if(n&2){let e=o();P("ant-alert-rtl",e.dir==="rtl")("ant-alert-success",e.nzType==="success")("ant-alert-info",e.nzType==="info")("ant-alert-warning",e.nzType==="warning")("ant-alert-error",e.nzType==="error")("ant-alert-no-icon",!e.nzShowIcon)("ant-alert-banner",e.nzBanner)("ant-alert-closable",e.nzCloseable)("ant-alert-with-description",!!e.nzDescription),p("@.disabled",e.nzNoAnimation)("@slideAlertMotion",void 0),a(),s(e.nzShowIcon?1:-1),a(),s(e.nzMessage||e.nzDescription?2:-1),a(),s(e.nzAction?3:-1),a(),s(e.nzCloseable||e.nzCloseText?4:-1)}}var Q="alert",fn=(()=>{var l;let n,t=[],e=[],m,C=[],O=[];return l=class{cdr=S(U);directionality=S(G);destroyRef=S(k);_nzModuleName=Q;nzAction=null;nzCloseText=null;nzIconType=null;nzMessage=null;nzDescription=null;nzType="info";nzCloseable=u(this,t,!1);nzShowIcon=(u(this,e),u(this,C,!1));nzBanner=(u(this,O),!1);nzNoAnimation=!1;nzIcon=null;nzOnClose=new V;closed=!1;iconTheme="fill";inferredIconType="info-circle";dir="ltr";isTypeSet=!1;isShowIconSet=!1;constructor(){W(Q,()=>this.cdr.markForCheck())}ngOnInit(){this.directionality.change?.pipe(L(this.destroyRef)).subscribe(r=>{this.dir=r,this.cdr.detectChanges()}),this.dir=this.directionality.value}closeAlert(){this.closed=!0}onFadeAnimationDone(){this.closed&&this.nzOnClose.emit(!0)}ngOnChanges(r){let{nzShowIcon:i,nzDescription:z,nzType:X,nzBanner:Y}=r;if(i&&(this.isShowIconSet=!0),X)switch(this.isTypeSet=!0,this.nzType){case"error":this.inferredIconType="close-circle";break;case"success":this.inferredIconType="check-circle";break;case"info":this.inferredIconType="info-circle";break;case"warning":this.inferredIconType="exclamation-circle";break}z&&(this.iconTheme=this.nzDescription?"outline":"fill"),Y&&(this.isTypeSet||(this.nzType="warning"),this.isShowIconSet||(this.nzShowIcon=!0))}},(()=>{let r=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;n=[M()],m=[M()],A(null,null,n,{kind:"field",name:"nzCloseable",static:!1,private:!1,access:{has:i=>"nzCloseable"in i,get:i=>i.nzCloseable,set:(i,z)=>{i.nzCloseable=z}},metadata:r},t,e),A(null,null,m,{kind:"field",name:"nzShowIcon",static:!1,private:!1,access:{has:i=>"nzShowIcon"in i,get:i=>i.nzShowIcon,set:(i,z)=>{i.nzShowIcon=z}},metadata:r},C,O),r&&Object.defineProperty(l,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:r})})(),I(l,"\u0275fac",function(i){return new(i||l)}),I(l,"\u0275cmp",B({type:l,selectors:[["nz-alert"]],inputs:{nzAction:"nzAction",nzCloseText:"nzCloseText",nzIconType:"nzIconType",nzMessage:"nzMessage",nzDescription:"nzDescription",nzType:"nzType",nzCloseable:[2,"nzCloseable","nzCloseable",y],nzShowIcon:[2,"nzShowIcon","nzShowIcon",y],nzBanner:[2,"nzBanner","nzBanner",y],nzNoAnimation:[2,"nzNoAnimation","nzNoAnimation",y],nzIcon:"nzIcon"},outputs:{nzOnClose:"nzOnClose"},exportAs:["nzAlert"],features:[F],decls:1,vars:1,consts:[[1,"ant-alert",3,"ant-alert-rtl","ant-alert-success","ant-alert-info","ant-alert-warning","ant-alert-error","ant-alert-no-icon","ant-alert-banner","ant-alert-closable","ant-alert-with-description"],[1,"ant-alert"],[1,"ant-alert-icon"],[1,"ant-alert-content"],[1,"ant-alert-action"],["type","button","tabindex","0",1,"ant-alert-close-icon"],[3,"nzType","nzTheme"],[4,"nzStringTemplateOutlet"],[1,"ant-alert-message"],[1,"ant-alert-description"],["type","button","tabindex","0",1,"ant-alert-close-icon",3,"click"],["nzType","close"],[1,"ant-alert-close-text"]],template:function(i,z){i&1&&c(0,Cn,5,24,"div",0),i&2&&s(z.closed?-1:0)},dependencies:[q,Z,J,H],encapsulation:2,data:{animation:[K]},changeDetection:0})),l})(),kn=(()=>{class n{static \u0275fac=function(m){return new(m||n)};static \u0275mod=j({type:n});static \u0275inj=E({imports:[fn]})}return n})();export{fn as a,kn as b};
|